@charset "UTF-8";

/* ==========================================================================
   typography.css
   見出し・本文・Eyebrow・装飾バリエーション
   ========================================================================== */
@layer typography {

  body {
    font-family: var(--ff-base);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);
    letter-spacing: var(--tr-body);
    color: var(--c-text);
    background: var(--c-bg);
  }

  /* ----------------------------------------
     見出し共通
     ---------------------------------------- */
  h1, h2, h3, h4, h5, h6 {
    color: var(--c-text);
    line-height: var(--lh-heading);
    letter-spacing: var(--tr-heading);
    font-weight: var(--fw-bold);
  }

  h1 {
    font-size: var(--fs-h1);
    margin: 0 0 var(--sp-5);
  }
  h2 {
    font-size: var(--fs-h2);
    margin: var(--sp-7) 0 var(--sp-5);
  }
  h3 {
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    margin: var(--sp-6) 0 var(--sp-4);
  }
  h4 {
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
    margin: var(--sp-5) 0 var(--sp-3);
  }

  /* 親の最初の子は上マージン0 */
  :where(h1, h2, h3, h4, h5, h6):first-child { margin-top: 0; }

  /* 段落 */
  p {
    line-height: var(--lh-body);
    letter-spacing: var(--tr-body);
  }
  p + p { margin-top: var(--sp-4); }

  /* リンク（本文中） */
  a {
    color: var(--c-action-primary);
    transition: opacity var(--dur) var(--ease);
  }
  a:hover { opacity: 0.7; }

  strong, b { font-weight: var(--fw-semibold); }

  small, .t-caption {
    font-size: var(--fs-caption);
    color: var(--c-text-muted);
  }

  /* ----------------------------------------
     Eyebrow（小さな英字ラベル）
     ---------------------------------------- */
  .t-eyebrow {
    display: inline-block;
    font-family: var(--ff-num);
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-medium);
    letter-spacing: var(--tr-eyebrow);
    text-transform: uppercase;
    color: var(--c-brand-800);
    line-height: 1;
  }

  /* ----------------------------------------
     リード文
     ---------------------------------------- */
  .t-lead {
    font-size: var(--fs-lead);
    line-height: var(--lh-loose);
    color: var(--c-text);
  }

  /* ----------------------------------------
     見出し装飾：h2 デフォルト（左縦線・bar）
     ---------------------------------------- */
  h2.t-heading--bar,
  h2[data-style="bar"] {
    position: relative;
    padding-left: 0.9em;
  }
  h2.t-heading--bar::before,
  h2[data-style="bar"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 4px;
    background: var(--c-brand-800);
    border-radius: 2px;
  }

  /* センター＋下線（ヒーロー用） */
  h2.t-heading--centered,
  h2.is-style-centered {
    text-align: center;
    padding-bottom: 0.75em;
    position: relative;
  }
  h2.t-heading--centered::after,
  h2.is-style-centered::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 2.5em;
    height: 2px;
    background: var(--c-brand-800);
  }

  /* 下線 */
  h2.t-heading--underline,
  h2.is-style-underline {
    padding-bottom: 0.65em;
    position: relative;
  }
  h2.t-heading--underline::after,
  h2.is-style-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2.5em;
    height: 3px;
    background: var(--c-brand-800);
    border-radius: 2px;
  }

  /* 番号付き */
  h2.t-heading--number {
    display: flex;
    align-items: baseline;
    gap: 0.85em;
  }
  h2.t-heading--number::before {
    content: attr(data-number);
    font-family: var(--ff-num);
    font-size: 0.5em;
    font-weight: 500;
    color: var(--c-brand-800);
    letter-spacing: 0.15em;
  }

  /* 装飾なし */
  h2.t-heading--plain,
  h2.is-style-plain { padding-left: 0; }
  h2.t-heading--plain::before,
  h2.t-heading--plain::after,
  h2.is-style-plain::before,
  h2.is-style-plain::after { display: none; }

  /* ----------------------------------------
     見出し装飾：h3 デフォルト（小さな四角）
     ---------------------------------------- */
  h3.t-heading--square {
    display: flex;
    align-items: center;
    gap: 0.55em;
  }
  h3.t-heading--square::before {
    content: "";
    display: block;
    width: 0.55em;
    height: 0.55em;
    background: var(--c-brand-800);
    flex-shrink: 0;
  }

  /* 罫線パターン */
  h3.t-heading--rule {
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--c-line);
  }

  /* ----------------------------------------
     見出し装飾：h4（左縦線細）
     ---------------------------------------- */
  h4.t-heading--accent-line {
    padding-left: 0.7em;
    border-left: 2px solid var(--c-brand-800);
  }

  /* ----------------------------------------
     セクションヘッダ（英字＋日本語のセット）
     既存トップの「about_en + about_title」パターンを汎用化
     ---------------------------------------- */
  .t-section-head {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    margin-bottom: var(--sp-6);
  }
  .t-section-head--centered {
    align-items: center;
    text-align: center;
  }
  .t-section-head > .t-eyebrow { margin: 0; }
  .t-section-head > h2 { margin: 0; }

  /* ----------------------------------------
     パンくず
     ---------------------------------------- */
  .t-breadcrumb {
    font-size: var(--fs-caption);
    color: var(--c-text-subtle);
    padding: var(--sp-4) 0;
  }
  .t-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    align-items: center;
  }
  .t-breadcrumb li::after {
    content: "／";
    margin-left: 0.4em;
    color: var(--c-text-subtle);
    opacity: 0.6;
  }
  .t-breadcrumb li:last-child::after { content: none; }
  .t-breadcrumb a {
    color: var(--c-text-muted);
    text-decoration: none;
  }
  .t-breadcrumb a:hover { color: var(--c-brand-800); }
  .t-breadcrumb [aria-current="page"] { color: var(--c-text); }

}
