@charset "UTF-8";

/* ==========================================================================
   合同会社アソビルダーズ コーポレートサイト
   デザインシステム：Onyx Kinetic（99_参考資料 / DESIGN.md）
   黒背景・白文字・アクセント #FF6B00
   ---------------------------------------------------------------------------
   コントラスト比（文字は 4.5:1 以上）
     #FFFFFF on #000000 ... 21.0:1
     #FFFFFF on #121212 ... 18.9:1
     #A3A3A3 on #121212 ...  7.4:1
     #FF6B00 on #000000 ...  7.4:1
     #FF6B00 on #121212 ...  6.6:1
     #000000 on #FF6B00 ...  7.4:1（オレンジのボタン）
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. デザイントークン
   -------------------------------------------------------------------------- */

:root {
  /* 色（DESIGN.md の Tonal Tiers に準拠） */
  --color-bg: #000000;            /* Tier 0：ページ背景 */
  --color-bg-alt: #0e0e0e;        /* セクションの区切り用 */
  --color-surface: #121212;       /* Tier 1：カード・表 */
  --color-surface-2: #1b1b1b;     /* 表の縞模様 */
  --color-border: #2a2a2a;        /* 枠線 */
  --color-text: #ffffff;          /* 本文・見出し */
  --color-text-muted: #a3a3a3;    /* 補足・キャプション */
  --color-accent: #ff6b00;        /* Vibrant Orange */
  --color-focus: #ffe600;         /* フォーカス枠（黄） */
  --color-focus-edge: #000000;    /* フォーカス枠の外側（黒） */

  /* 余白（8pxの倍数） */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;   /* section-gap */

  /* 角丸 */
  --radius-sm: 4px;   /* ボタン */
  --radius-md: 8px;   /* カード・コンテナ */

  /* レイアウト */
  --container-max: 1280px;
  --gutter: 24px;
  --margin-inline: var(--space-3);
}

/* --------------------------------------------------------------------------
   2. ベース
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 1rem; /* 16px */
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  /* 文字を200%まで拡大しても横スクロールが出ないようにする */
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

p {
  margin: 0 0 var(--space-2);
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0 0 var(--space-2);
  padding-left: 1.5em;
}

li + li {
  margin-top: var(--space-1);
}

address {
  font-style: normal;
}

/* リンク：色だけに頼らず、必ず下線を付ける */
a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* フォーカス枠：黄＋黒の二重線。消さない */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--color-focus-edge);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. 共通パーツ
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-inline);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  transform: translateY(-200%);
  padding: var(--space-1) var(--space-2);
  background-color: var(--color-focus);
  color: #000000;
  font-weight: 700;
  text-decoration: underline;
}

.skip-link:focus {
  transform: translateY(0);
}

/* 小さな英字ラベル（DESIGN.md の label-sm 相当。14px未満にはしない） */
.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--color-accent);
  font-size: 0.875rem; /* 14px */
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   4. ヘッダー
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--color-surface);
}

.site-header > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-2);
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 44px;
  text-decoration: none;
}

.site-header__icon {
  width: 32px;
  height: auto;
}

.site-header__wordmark {
  width: 160px;
  height: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-1);
  color: var(--color-text);
  font-size: 0.875rem; /* 14px */
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.4em;
}

/* --------------------------------------------------------------------------
   5. セクションの帯
   -------------------------------------------------------------------------- */

.band {
  padding-block: var(--space-10);
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-surface);
}

.band--alt {
  background-color: var(--color-bg-alt);
}

/* --------------------------------------------------------------------------
   6. 見出し・本文
   -------------------------------------------------------------------------- */

.page-header {
  padding-block: var(--space-10);
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-surface);
}

.page-title {
  margin: 0;
  font-size: clamp(1.75rem, 7vw, 3rem); /* 28〜48px */
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.section {
  margin: 0;
}

.section__title {
  margin: 0 0 var(--space-4);
  font-size: clamp(1.75rem, 5vw, 3rem); /* 28〜48px */
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.lead {
  margin-bottom: var(--space-4);
  font-size: 1.125rem; /* 18px */
  line-height: 1.75;
}

.note {
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   7. ヒーロー
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-10) var(--margin-inline);
}

/* 背景の「遊」アイコン（装飾のため alt="" ） */
.hero__bg {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -14%;
  width: 440px;
  max-width: 92%;
  height: auto;
  transform: translateY(-50%);
  opacity: 0.06;
  pointer-events: none;
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4rem); /* 32〜64px */
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  /* 200%まで拡大しても見切れないよう、長い英単語を折り返す */
  hyphens: auto;
  overflow-wrap: anywhere;
}

.hero__title .accent {
  display: block;
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   8. カード
   -------------------------------------------------------------------------- */

.card {
  padding: var(--space-4);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.card__title {
  margin: 0 0 var(--space-2);
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.card__text {
  margin: 0;
  color: var(--color-text-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

/* Aboutの紹介ブロック */
.statement {
  margin: 0;
  padding: var(--space-4);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: clamp(1.125rem, 3vw, 1.5rem); /* 18〜24px */
  font-weight: 700;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   9. お問い合わせ
   -------------------------------------------------------------------------- */

.contact {
  text-align: center;
}

.contact__text {
  margin: 0 auto var(--space-4);
  max-width: 36em;
  color: var(--color-text-muted);
}

.contact__mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  overflow-wrap: anywhere;
  padding: var(--space-1) var(--space-4);
  background-color: var(--color-accent);
  border-radius: var(--radius-sm);
  color: #000000;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact__mail:hover {
  background-color: #ff8c33;
}

.contact__note {
  margin: var(--space-3) auto 0;
  max-width: 36em;
  color: var(--color-text-muted);
  font-size: 0.875rem; /* 14px */
}

/* --------------------------------------------------------------------------
   10. 表（会社概要）
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 10em;
  color: var(--color-text-muted);
  font-size: 0.875rem; /* 14px */
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* 行の区切りは背景の濃淡で示す（色だけに頼らない） */
.info-table tr:nth-child(odd) th,
.info-table tr:nth-child(odd) td {
  background-color: var(--color-surface-2);
}

/* --------------------------------------------------------------------------
   11. プライバシーポリシー（左に目次、右に本文）
   -------------------------------------------------------------------------- */

.doc {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.doc__index ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc__index li + li {
  margin-top: 0;
}

.doc__index a {
  display: block;
  padding-block: var(--space-1);
  color: var(--color-text);
  font-size: 0.875rem; /* 14px */
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.doc__index a:hover {
  color: var(--color-accent);
}

.doc__body > * + * {
  margin-top: var(--gutter);
}

.doc__section {
  padding: var(--space-4);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  scroll-margin-top: 96px;
}

.doc__section .section__title {
  margin-bottom: var(--space-2);
  font-size: clamp(1.25rem, 3vw, 1.75rem); /* 20〜28px */
}

.doc__contact {
  margin-top: var(--space-3);
  overflow-wrap: anywhere;
  padding: var(--space-3);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   12. フッター
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: var(--space-4);
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-surface);
}

.site-footer > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.site-footer__copyright {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.875rem; /* 14px */
  letter-spacing: 0.1em;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text-muted);
  font-size: 0.875rem; /* 14px */
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.site-footer__link:hover {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   13. パソコン向け（768px以上）
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  :root {
    --margin-inline: var(--space-8);
  }

  .site-header > .container {
    flex-wrap: nowrap;
  }

  .site-header__wordmark {
    width: 200px;
  }

  .hero__inner {
    padding-block: 160px;
  }

  .hero__bg {
    right: -8%;
    width: 760px;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card,
  .statement,
  .doc__section {
    padding: var(--space-6);
  }

  .info-table th {
    width: 14em;
  }

  .doc {
    grid-template-columns: 240px 1fr;
    gap: var(--space-8);
  }

  .doc__index {
    position: sticky;
    top: 96px;
    align-self: start;
  }
}
