/*
 * Design tokens — the only file allowed to contain raw values (hex colors, sizes).
 * Source: SPEC.md §1. "Q<n>" refers to an open designer question in SPEC.md §5.
 *
 * Fluid values: clamp(min, intercept + slope·vw, max), linear between two
 * viewport widths and frozen outside them. Type uses rem so it follows the
 * user's font size; spacing uses px like the rest of the scale.
 *
 * Breakpoints (SPEC §4.1; custom properties cannot be used in @media,
 * so write these literally in media queries):
 *   bp-sm 600px · bp-md 768px · bp-lg 1024px · bp-xl 1200px
 */

:root {
  /* ---- Color (SPEC §1.1) ---- */
  --color-green-700: #206d37; /* primary */
  --color-green-800: #175e1d;
  --color-green-50: #e6f0e6; /* base-light */
  --color-ink-900: #1f1f1c;
  --color-ink-700: #37394e; /* body text */
  --color-ink-600: #444870;
  --color-ink-500: #707070; /* muted */
  --color-ink-300: #a0a2b7; /* input borders, placeholders */
  --color-line: #dfddd2;
  --color-surface: #fff;
  --color-bg: #fefdfb; /* base */
  --color-bg-alt: #fcfcf9; /* PC TOP + golfer pages; Q3 assumes --color-bg everywhere */
  --color-on-dark: #fcfefb; /* text on dark; Q3 */
  --color-table-head: #f3f3f3;
  --color-note-bg: #fff6f6;
  --color-pager-off: #d5d5d5;
  --color-required: #f13b3b;

  /* ---- Font families & weights (SPEC §1.2) ---- */
  --font-ja: "LINE Seed JP", sans-serif; /* Google Fonts, 400 + 700 */
  --font-noto: "Noto Sans JP", sans-serif; /* Google Fonts, 700 */

  /* Europa is not loaded yet: it needs an Adobe Fonts web project */
  --font-en: "Europa", sans-serif;
  --font-weight-regular: 400;
  --font-weight-bold: 700;

  /* ---- Type scale (SPEC §1.2); 1rem = 16px ----
     Every role that differs between PC and SP is fluid from the SP value at
     390 to the PC value at 1920 (SPEC §4.1 #18, #19). Comments: SP → PC px. */

  /* display 32/48 → 64/96 */
  --text-display-size: clamp(2rem, 1.4902rem + 2.0915vw, 4rem);
  --text-display-lh: 1.5;

  /* marquee 32/48 → 72/108 */
  --text-marquee-size: clamp(2rem, 1.3627rem + 2.6144vw, 4.5rem);
  --text-marquee-lh: 1.5;

  /* h1-ja 32/48 → 40/60 */
  --text-h1-ja-size: clamp(2rem, 1.8725rem + 0.5229vw, 2.5rem);
  --text-h1-ja-lh: 1.5;

  /* h2-ja 24/32 → 32/48 */
  --text-h2-ja-size: clamp(1.5rem, 1.3725rem + 0.5229vw, 2rem);
  --text-h2-ja-lh: clamp(2rem, 1.7451rem + 1.0458vw, 3rem);

  /* lead 14/28.8 → 20/30 */
  --text-lead-size: clamp(0.875rem, 0.7794rem + 0.3922vw, 1.25rem);
  --text-lead-lh: clamp(1.8rem, 1.7809rem + 0.0784vw, 1.875rem);

  /* label-en 14/31 → 24/31 */
  --text-label-en-size: clamp(0.875rem, 0.7157rem + 0.6536vw, 1.5rem);
  --text-label-en-lh: 1.9375rem;

  /* copyright 12/20 → 14/21 */
  --text-copyright-size: clamp(0.75rem, 0.7181rem + 0.1307vw, 0.875rem);
  --text-copyright-lh: clamp(1.25rem, 1.2341rem + 0.0654vw, 1.3125rem);

  /* eyebrow 16/31 → 20/31 */
  --text-eyebrow-size: clamp(1rem, 0.9363rem + 0.2614vw, 1.25rem);
  --text-eyebrow-lh: 1.9375rem;

  /* h2-tight: catch copy 24 → 32, サンミュージックゴルフ部 20 → 32.
     Line-height 31 is below the font size, as designed (Q11). */
  --text-h2-tight-size: clamp(1.5rem, 1.3725rem + 0.5229vw, 2rem);
  --text-h2-tight-sm-size: clamp(1.25rem, 1.0588rem + 0.7843vw, 2rem);
  --text-h2-tight-lh: 1.9375rem;

  /* Same on PC and SP */
  --text-h3-size: 1.5rem; /* 24 */
  --text-h3-lh: 2rem; /* 32 */
  --text-h4-size: 1.25rem; /* 20 */
  --text-h4-lh: 2rem; /* 32 */
  --text-h4-noto-size: 1.25rem; /* 20 */
  --text-h4-noto-lh: 1.875rem; /* 30 */
  --text-body-size: 1rem; /* 16 */
  --text-body-lh: 1.8rem; /* 28.8 */
  --text-body-compact-size: 1rem; /* 16 */
  --text-body-compact-lh: 1.5rem; /* 24 */
  --text-small-size: 0.875rem; /* 14 */
  --text-small-lh: 1.3125rem; /* 21 */
  --text-small-loose-size: 0.875rem; /* 14 */
  --text-small-loose-lh: 1.8rem; /* 28.8 */
  --text-button-main-size: 0.9375rem; /* 15, btn-main (Q10) */
  --text-button-size: 1rem; /* 16, all other buttons; line-height unset in XD */
  --text-badge-size: 0.75rem; /* 12 */

  /* ---- Spacing scale (SPEC §1.3): fixed, measured steps ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 64px;
  --space-9: 128px;

  /* ---- Fluid spacing (SPEC §1.3, §4.1 #21, §4.2) ---- */

  /* Between sections: 64 → 128, fluid 600 → 1024 */
  --space-section-gap: clamp(
    var(--space-8),
    -26.566px + 15.0943vw,
    var(--space-9)
  );

  /* Inside sections: 32 → 64, fluid 600 → 1024 */
  --space-section-pad: clamp(
    var(--space-6),
    -13.283px + 7.5472vw,
    var(--space-8)
  );

  /* Grid gap: 16 (SP team 2×2) → 40 (PC cards), fluid 390 → 1200 */
  --space-grid-gap: clamp(var(--space-3), 4.444px + 2.963vw, var(--space-7));

  /* ---- Containers & gutters (SPEC §1.3, §4.2) ---- */
  --container-content: 1000px;
  --container-content-wide: 1048px;
  --container-top-wide: 1552px;
  --container-header: 1171px;

  /* Page gutter: 16 → 24, fluid 390 → 768 */
  --gutter: clamp(var(--space-3), 7.746px + 2.1164vw, var(--space-5));

  /* top-wide gutter: follows --gutter up to 1024, then 24 → 64 by 1440 */
  --gutter-wide: clamp(var(--gutter), -74.462px + 9.6154vw, var(--space-8));

  /* ---- Radii (SPEC §1.4) ---- */
  --radius-xs: 3px; /* checkbox */
  --radius-sm: 4px; /* inputs */
  --radius-md: 6px; /* page-number squares */
  --radius-lg: 8px; /* cards, thumbnails */
  --radius-tag: 16px; /* category tag chip */
  --radius-pill: 9999px; /* buttons, header pill */
  --radius-circle: 50%;
  --radius-sheet: 0 0 8px 8px; /* SP header bar */
  --radius-drawer: 0 0 8px 0; /* SP drawer */

  /* ---- Borders (SPEC §1.5: cards are flat with 1px borders) ---- */
  --border-thin: 1px;

  /* ---- Shadows (SPEC §1.5) ---- */
  --shadow-header: 0 3px 3px rgb(0 0 0 / 16.1%);
  --shadow-float: 0 3px 5px rgb(0 0 0 / 16.1%);

  /* ---- Focus (SPEC §2 state rules, ASSUMPTION Q4) ----
     Components on green or dark backgrounds set
     --focus-ring-color: var(--focus-ring-color-on-dark). */
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
  --focus-ring-color: var(--color-green-700);
  --focus-ring-color-on-dark: var(--color-surface);

  /* ---- Motion (SPEC §2: hover transitions 150–200ms, ASSUMPTION Q4) ----
     Set to 0s under prefers-reduced-motion in base.css. Components must use
     this token for transitions. */
  --duration-hover: 150ms;

  /* ---- States (SPEC §2 state rules, ASSUMPTION Q4) ---- */
  --press-offset: 1px; /* active: element moves down */
  --opacity-disabled: 0.4;
  --opacity-pressed: 0.7; /* active text links on dark (footer, SPEC §2.29) */

  /* ---- Buttons (SPEC §2.4; sizes from XD contentPadding) ----
     btn-main and btn-primary differ only in size (Q10: merge proposed). */
  --button-height: 44px;
  --button-height-main: 41px;
  --button-padding-inline: var(--space-5); /* 24 */
  --button-padding-inline-main: 43px;
  --button-width-sp: 240px; /* SP main actions, below 600 */

  /* ---- Category tag chip (SPEC §2.5; XD コンポーネント 10, contentPadding
     16/16/8/8, 1px stroke inside) ---- */
  --tag-height: 31px;
  --tag-padding-inline: var(--space-3); /* 16 */

  /* ---- Page title block (SPEC §2.9; XD コンポーネント 47, title--center--sp,
     title--left--sp) ----
     The display line box starts inside the eyebrow's (31 tall): 26 below the
     eyebrow top on SP (overlap 5), 17.8 on PC (overlap 13.2; baselines 67
     apart). Fluid 390 → 1920 like the display type (SPEC §4.1 #18). */
  --page-title-overlap: clamp(5px, 2.9098px + 0.5359vw, 13.2px);

  /* ---- Back-to-top (SPEC §2.16; XD group "TOP", symbol 8b03d954,
     meta.ux.fixed, constraints right + bottom) ----
     The chevron (XD keyboard_arrow_down, flipped: 24.3×15, 4px stroke,
     arms at 45°) is the top and left border of a square turned 45°:
     side = 24.32 / √2. Its centre sits 1px above the circle's centre. */
  --back-to-top-size: 44px;
  --back-to-top-inset-inline: var(--space-3); /* 16 */
  --back-to-top-inset-block: 18px; /* PC 18; SP artboards 16–26, mostly 17 (Q33) */
  --back-to-top-icon-side: 17.2px;
  --back-to-top-icon-stroke: 4px;

  /* Moves the turned square's centre down so the visible chevron is centred
     1px high: (side − stroke) × √2 / 4 − 1px */
  --back-to-top-icon-shift: 3.67px;

  /* ---- Header (SPEC §2.1–2.3) ----
     PC: XD symbol "header" (b40a0d1d): a white pill 1165×65.8 plus the
     192×66 CTA, which ends 6 past the pill (group 1171 = --container-header),
     35 from the page top (Q28). SP: XD コンポーネント 28 (1f9febb8): a bar
     358×66.9, contentPadding 24/16/10/14, flush to the top. Drawer: XD
     menu-open 長方形 840: 374×453 green-700 from the top-left. The logo is
     assets/img/logo.svg (186.91×48.5 on PC, 128.25×33.21 on SP). */
  --header-offset: 35px;
  --header-height: 66px; /* PC pill and CTA */
  --header-padding-inline-start: var(--space-5); /* 24: PC logo inset */
  --header-nav-gap: var(--space-7); /* 40: PC links, last link → CTA */
  --header-cta-padding-inline: 48px;
  --header-logo-height: 48.5px;
  --header-logo-height-sp: 33.21px;
  --header-sp-max: 720px; /* SP bar from 768 up (SPEC §4.2) */
  --header-sp-padding-block-start: var(--space-5); /* 24 */
  --header-sp-padding-block-end: 10px;
  --header-sp-padding-inline-start: 14px;
  --header-sp-padding-inline-end: var(--space-3); /* 16 */

  /* Hamburger: 3 lines 24 wide, 2px, 9 apart; close ×: 24×24 diagonals.
     The tap target is 44×44 (SPEC §2.2). */
  --header-toggle-size: 44px;
  --header-toggle-line: 24px;
  --header-toggle-pitch: 9px;
  --header-toggle-line-diagonal: calc(var(--header-toggle-line) * 1.4142);

  /* Drawer: logo 22 from the top; links on a 58 pitch (the whole row is the
     tap target); 20 between logo, links and CTA; 24 below the CTA. */
  --header-drawer-padding-block-start: 22px;
  --header-drawer-padding-block-end: var(--space-5);
  --header-drawer-gap: var(--space-4);
  --header-drawer-link-height: 58px;
  --color-scrim: color-mix(
    in srgb,
    var(--color-ink-900) 40%,
    transparent
  ); /* ASSUMPTION Q9 */

  /* Drawer open / close: slide from the top plus a fade (ASSUMPTION).
     0s under prefers-reduced-motion (base.css); the JS reads it. */
  --duration-drawer: 200ms;

  /* ---- Footer (SPEC §2.29; design v2, XD SMGA-lp—pc / —sp) ----
     PC: an ink-900 band 1920×130, centred. SP: 390×171, left-aligned,
     16 gutters. v2 moves Instagram into the link list (last item): PC
     one row 契約ゴルファー | YouTube | お問い合わせ | Instagram; SP 2×2
     (契約ゴルファー, YouTube | お問い合わせ, Instagram).
     Instagram glyph 24.2 square (v1: 34.3), 12.3 before its label.
     PC link row: 1px white rules 24 tall, 16 either side (XD 14–16).
     SP links: 2 equal columns on a 42 pitch (28.8 line + 13.2).
     Vertical rhythm, top → bottom (XD):
       SP  18 · links 70.8 · 10 · © 2 lines 40 · 32
       PC  38 · links 28.8 · 19 · © 1 line 21  · 23 */
  --footer-padding-block-start: 18px;
  --footer-padding-block-start-pc: 38px;
  --footer-padding-block-end: 32px;
  --footer-padding-block-end-pc: 23px;
  --footer-gap-copyright: 10px;
  --footer-gap-copyright-pc: 19px;
  --footer-icon-size: 24.2px;
  --footer-icon-gap: 12.3px;
  --footer-link-gap: 13.2px; /* SP rows: 42 pitch */
  --footer-separator-height: var(--space-5); /* 24 */
  --footer-separator-gap: var(--space-3); /* 16 */

  /* TOP below 1024: a page-colour band under the ink band where the
     floating YouTube ball rests at the end of the page
     (design/v2/sp-footer-design-reference.png).
     SP: half the ball + its inset, so the ball's upper half overlaps the
     ink band (over the copyright, below the links: 32 + 40 > half ball).
     768–1023: the whole ball + inset; the PC footer has only 23 + 21
     under its centred link row, less than half the ball. */
  --footer-ball-clearance: calc(
    var(--youtube-ball-height) / 2 + var(--youtube-ball-inset-block)
  );
  --footer-ball-clearance-full: calc(
    var(--youtube-ball-height) + var(--youtube-ball-inset-block)
  );

  /* ---- News row (SPEC §2.6; XD TOP グループ 1106 = the list of 2,
     golfer PC グループ 1106 / 1858 / 1859 = one row each, golfer SP
     グループ 1106 = the list of 3; date + tag line グループ 850) ----
     A row, top → bottom: date + tag line · title · 13.2 · 1px line
     divider (centre) · 24 · next row. Pitch: TOP 105, golfer 113.
     The tag starts 106 from the date's left edge (date frame 98 + 8).
     The date's line box sits 6.5 below the tag top (Q44), so the line is
     35.3 tall. The title starts 8 below the tag on TOP, 16 on golfer
     pages (Q45). */
  --news-meta-date-width: 98px;
  --news-meta-date-offset: 6.5px;
  --news-row-title-gap: var(--space-3); /* golfer pages: 16 below the tag */
  --news-row-title-gap-compact: var(--space-2); /* TOP: 8 */
  --news-row-divider-gap: 13.2px; /* title → divider centre */
  --news-row-gap: var(--space-5); /* divider centre → next row */

  /* TOP NEWS title column, PC: x 184 → 542 (SPEC §3.1); styleguide demo. */
  --top-news-title-column: 358px;

  /* ---- Golfer team card (SPEC §2.11; XD TOP PC グループ 2059–2062, SP
     グループ 2071–2074; label グループ 2058 = 長方形 952 + name) ----
     A circular photo (mask 358 PC / 171 SP, the card width) with a white
     radius-lg label centred on its bottom edge (half above, half below):
     PC 288×58 (35 in from each side, contentPadding 24/16, name 24/32),
     SP 139×34 (16 in, contentPadding 16/8, name 16/32). Card = circle +
     half the label: 387 PC, 188 SP. Grid: 4 × 358 + 3 × 40 = 1552
     (top-wide); SP 2 × 171 + 16, rows 24 apart. The PC label is used from
     1200 (ASSUMPTION: at 1024 a 24px name no longer fits the label). The
     photo is cropped to its upper part (XD 078873: 35.2 of 179 = 20%). */
  --team-card-label-height: 34px;
  --team-card-label-height-pc: 58px;
  --team-card-label-inset: var(--space-3); /* 16 */
  --team-card-label-inset-pc: 35px;
  --team-card-label-padding-inline: var(--space-3); /* 16 */
  --team-card-label-padding-inline-pc: var(--space-5); /* 24 */
  --text-team-card-name-size: var(--text-body-size); /* 16 */
  --text-team-card-name-lh: 2rem; /* 32 */
  --team-card-image-position: 50% 20%;
  --team-card-zoom: 1.04; /* hover (ASSUMPTION, SPEC §2.11) */
  --team-cards-row-gap: var(--space-5); /* 24 (SP 2×2) */

  /* ---- YouTube block (SPEC §2.13; XD TOP PC / SP: pill グループ 2158,
     photo マスクグループ 25, video 🔴サンミュージック公式ゴルフチャンネル始動) ----
     OFFICIAL YOUTUBE pill: green-50, label-en, the red YouTube mark before
     the label. PC 310×53 (padding 16, mark 45.9×32.3, 16.1 gap, radius 8);
     SP 171×32 (padding 8, mark 24.9×17.6, 4.1 gap, radius 4). Fluid
     390 → 1920 like label-en (SPEC §4.1 #19).
     Intro: the photo (XD 960×537 PC, 390×218 SP: the same ratio) fills the
     right half from 1024 and the full width above the text below it
     (SPEC §4.1 #7). Text column (line boxes, top → bottom):
       PC  photo top · 39 · pill 53 · 24.8 · title 60 · 34.6 · catch 31 ·
           19.1 · body (frame 756, ends 20 before the photo)
       SP  photo · 31 · pill 32 · 19.8 · title 2 × 48 · 27.6 · catch 2 × 31
           · 16.1 · body
     The body gap is XD's frame top − 5.5 (autoHeight frames start 5.5 below
     the first line box). The photo crop follows XD: 43% from the top on PC,
     25% on SP (the same 477×466 image, placed differently).
     Video: 16:9 (XD 1000×562.8 PC, 358×201.5 SP), the content column; the
     play mark is centred, 7.54% of the video width (the button baked into
     the XD screenshot: 126 of 1672). 40 above the 公式YouTubeチャンネル
     button (XD 39.2 PC, 40.5 SP). */
  --youtube-badge-height: clamp(32px, 26.647px + 1.3725vw, 53px);
  --youtube-badge-padding-inline: clamp(
    var(--space-2),
    5.961px + 0.5229vw,
    var(--space-3)
  );
  --youtube-badge-gap: clamp(4.1px, 1.041px + 0.7843vw, 16.1px);
  --youtube-badge-mark-width: clamp(24.9px, 19.547px + 1.3725vw, 45.9px);
  --youtube-badge-radius: clamp(
    var(--radius-sm),
    2.98px + 0.2614vw,
    var(--radius-lg)
  );
  --youtube-intro-media-ratio: 960 / 537;
  --youtube-intro-image-position: 50% 25%;
  --youtube-intro-image-position-pc: 50% 43%;
  --youtube-intro-media-gap: 31px; /* SP: photo → pill */
  --youtube-intro-padding-block-start-pc: 39px; /* photo top → pill */
  --youtube-intro-padding-inline-end-pc: var(--space-4); /* 20 */
  --youtube-intro-title-gap: clamp(19.8px, 18.525px + 0.3268vw, 24.8px);
  --youtube-intro-catch-gap: clamp(27.6px, 25.816px + 0.4575vw, 34.6px);
  --youtube-intro-text-gap: clamp(16.1px, 15.335px + 0.1961vw, 19.1px);
  --youtube-video-ratio: 16 / 9;
  --youtube-video-play-width: 7.54%;
  --youtube-video-dim: 0.9; /* hover: 10% darker (ASSUMPTION, SPEC §2.13) */
  --youtube-video-action-gap: var(--space-7); /* 40 */

  /* ---- Marquee band (SPEC §2.14; XD TOP PC グループ 2149 = one positioned
     text line + 長方形 959, SP グループ 2164 = the text only) ----
     "SUN MUSIC OFFICIAL GOLF CHANNEL" in marquee type, green-50, on the page
     background between the team band and the YouTube photo. The band runs
     from the grass band's bottom edge to the photo's top edge:
       PC  82.5 = text area 77.5 + a 1920×5 green-50 rule (長方形 959);
           baseline 66.6 below the band top, the rule 10.9 below the
           baseline; the text has a 1px green-50 stroke; it starts at x −18.
       SP  42.8, no rule, no stroke; baseline 35.8 below the top, the photo
           7 below the baseline; the text starts at x 0.
     The text's line box (1.5em) is trimmed into the band: the trims are
     how far it reaches above the band top and below the text area, from
     the measured Europa baseline (79 of 108 PC, 35 of 48 SP). Trims and
     the start offset are fluid 390 → 1920 like the type (SPEC §4.1 #18).
     Scroll (ASSUMPTION, Q18): one phrase per --duration-marquee, no motion
     under prefers-reduced-motion. */
  --marquee-trim-start: clamp(-0.76px, -4.1247px + 0.8627vw, 12.44px);
  --marquee-trim-end: clamp(5.96px, 2.8757px + 0.7908vw, 18.06px);
  --marquee-start: clamp(-18px, 4.5882px - 1.1765vw, 0px);
  --marquee-space: 0.294em; /* one Europa Bold Italic space between copies */
  --marquee-rule: 5px; /* PC, from 1200 */
  --marquee-stroke: var(--border-thin); /* PC text stroke, from 1200 */
  --duration-marquee: 40s; /* per phrase (SPEC §2.14: about 40s per loop) */

  /* ---- Floating YouTube ball (SPEC §2.15; XD TOP グループ 2165, fixed:
     ball@2x 302×322 bitmap + 楕円形 16, an unfilled ellipse with the
     shadow-float drop shadow behind the sphere) ----
       PC  171×182, constraint right: 77 from the right, 8 from the bottom
           of the 1080 viewport (y 890).
       SP  108×116, constraint top: centred (141 each side), y 701 of the
           844 viewport = 27 from the bottom (ASSUMPTION: anchored to the
           bottom, Q72).
     Size fluid 390 → 1920 (SPEC §4.1 #18); placement switches at 1024 with
     the TOP NEWS columns (§4.1 #5, ASSUMPTION Q72).
     The sphere (shadow caster) in % of the ball box, PC = SP within 0.5%:
     x 30.8 / 171, y 51.7 / 182, 130.5 × 132.3. */
  --youtube-ball-width: clamp(108px, 91.9412px + 4.1176vw, 171px);
  --youtube-ball-height: clamp(116px, 99.1765px + 4.3137vw, 182px);
  --youtube-ball-inset-block: 27px; /* SP: from the viewport bottom */
  --youtube-ball-inset-block-pc: 8px;
  --youtube-ball-inset-inline-pc: 77px; /* from the right edge */
  --youtube-ball-sphere-inline-start: 18.03%;
  --youtube-ball-sphere-block-start: 28.39%;
  --youtube-ball-sphere-inline-size: 76.32%;
  --youtube-ball-sphere-block-size: 72.71%;

  /* XD renders the unfilled ellipse's shadow as if the ellipse were filled:
     a blurred copy under the sphere (y 3, blur 5 = std dev 2.5, 16.1%). */
  --youtube-ball-shadow-color: rgb(0 0 0 / 16.1%);
  --youtube-ball-shadow-offset: 3px;
  --youtube-ball-shadow-blur: 2.5px;
  --youtube-ball-hover-rotate: -8deg; /* SPEC §2.15 (ASSUMPTION) */
  --youtube-ball-hover-scale: 1.05;

  /* ---- TOP page (SPEC §3.1): section rhythm ----
     XD LP PC / SP gaps between sections (design v2): hero → NEWS 64 / 80,
     NEWS → team band 128 / 80, YouTube intro → video 40 / 26 (from the PC
     photo's bottom / the SP text's bottom), video → footer 128 / 80.
     Fluid 600 → 1024 like the other spacing (SPEC §4.1 #21). */
  --top-gap: clamp(80px, 12.0755px + 11.3208vw, 128px); /* 80 → 128 */
  --top-gap-hero: clamp(64px, 102.6415px - 3.7736vw, 80px); /* 80 → 64 */
  --top-gap-video: clamp(26px, 6.1887px + 3.3019vw, 40px); /* 26 → 40 */

  /* NEWS (§3.1 #2): title column 184–542 of the 1552 top-wide row on PC
     (358 = 23.07%), 240 at 1024 (SPEC §4.2); the list fills the rest. */
  --top-news-head-share: 23.07%;
  --top-news-head-min: 240px;
  --top-news-head-max: 358px;

  /* ---- Hero (SPEC §3.1 #1; XD グループ 1935 PC 1920×680, マスクグループ 19
     SP 390×480; photo portmanock 1-2, logo レイヤー 1, lead text) ----
     Height 480 → 680 fluid 390 → 1440 (SPEC §4.1 #20, §4.2: 600 at 1024).
     The logo scales with the viewport (201 = 51.5% of 390), capped at 678.
     Logo top 176 (SP) / 206 (PC), the lead 40 / 41 below it, 310 / 672
     wide (40 in from the SP edges). The photo position keeps XD's PC crop
     (rows 355–1017 of 1280) and SP crop centre (x 1007 of 1920). */

  /* Design v2 (2026-11-16, XD SMGA-lp—pc / —sp; DESIGN-CHANGES.md):
     logo 201 (SP) → 339 (PC; v1: 678) at top 142 / 200; then the catch
     (24/48 → 32/48 bold, 30 / 43 below the logo) and a 4-line centred lead
     (14/28 → 20/40 bold, 7 / 29 below the catch, 358 / 417 wide). A black
     multiply overlay at 24.5% darkens the photo (new in v2). The photo
     moved: PC crop rows 152–814 of 1280 (y 25%), SP crop centre x 953 of
     1920 (x 49%). All fluid 390 → 1440. */
  --hero-height: clamp(480px, 405.7143px + 19.0476vw, 680px);
  --hero-content-start: clamp(142px, 120.1829px + 5.5429vw, 200px);
  --hero-logo-width: clamp(201px, 149.7429px + 13.1429vw, 339px);
  --hero-catch-gap: clamp(30px, 25.1714px + 1.2381vw, 43px);
  --hero-lead-gap: clamp(7px, -1.1714px + 2.0952vw, 29px);
  --hero-lead-inset: var(--space-3);
  --hero-lead-max: 417px;
  --hero-overlay-color: #000;
  --hero-overlay-opacity: 0.245;
  --hero-image-position: 49% 25%;
  --text-hero-catch-size: clamp(1.5rem, 1.3143rem + 0.7619vw, 2rem);
  --text-hero-catch-lh: 3rem; /* 48 */
  --text-hero-lead-size: clamp(0.875rem, 0.7357rem + 0.5714vw, 1.25rem);
  --text-hero-lead-lh: clamp(1.75rem, 1.4714rem + 1.1429vw, 2.5rem);

  /* ---- Team band (SPEC §3.1 #3; XD グループ 2042 / マスクグループ 20) ----
     Grass photo with a convex top edge: PC arc 39.23 tall over 1920
     (M0,39.23 C480,0 960,0 … 1920,39.23), SP about 24 over 390; the
     PC curve is used at every width, height fluid 390 → 1920 (ASSUMPTION).
     Title 61 / 67 below the peak (built: 64), cards 32 below the title,
     the band ends 64 / 39 below the cards. */
  --team-band-arc: clamp(24px, 20.1176px + 0.9954vw, 39.23px);
  --team-band-padding-block-start: var(--space-8);

  /* v2: the band ends 19 / 38.5 below the 詳細は近日公開予定 note
     (v1: 39 / 64 below the cards). */
  --team-band-padding-block-end: clamp(20px, 14.902px + 1.3072vw, 40px);
  --team-band-gap: var(--space-6);

  /* v2 note box (XD 長方形 978): 3px white inside stroke, square corners,
     244×62 (SP, text 20/32) → 280×66 (PC, text 24/32), 40 below the card
     labels, centred. Fluid 390 → 1440. */
  --team-note-gap: var(--space-7);
  --team-note-border: 3px;
  --team-note-padding-inline: 29px;
  --team-note-padding-block: clamp(12px, 11.2571px + 0.1905vw, 14px);
  --text-team-note-size: clamp(1.25rem, 1.1571rem + 0.381vw, 1.5rem);
  --text-team-note-lh: 2rem; /* 32 */
  --color-mask: #000; /* opaque mask layer, not a visible colour */

  /* ---- 404 page (SPEC §3.8; not-found.css). Kept from the v1 contact
     sent page, which the 404 copied: buttons → footer PC 64, SP 24
     (fluid 600 → 1024); heading → message 16, message → TOPに戻る 32. */
  --contact-gap-end: clamp(24px, -32.6038px + 9.434vw, 64px); /* 24 → 64 */
  --notice-text-gap: var(--space-3); /* 16: heading → message */
  --notice-actions-gap: var(--space-6); /* 32: message → button */

  /* ---- Page shell for the 404 (not-found.css; v1 inner-page rhythm) ----
     Header bottom → page title 63 / 40, title block → first content
     25 / 24. Fluid 600 → 1024 (SPEC §4.1 #21). */
  --page-gap-start: clamp(40px, 6.0377px + 5.6604vw, 64px); /* 40 → 64 */
  --page-title-gap: var(--space-5); /* 24 */
  --page-gap-end: clamp(80px, 12.0755px + 11.3208vw, 128px); /* 80 → 128 */

  /* ---- Text links (SPEC §2.1 nav hover / current, §2.29 footer) ---- */
  --underline-thickness: 2px;
  --underline-offset: var(--space-1); /* 4 below the baseline */

  /* ---- Stacking ----
     The header and its drawer sit above the back-to-top button and the
     floating YouTube ball (they never overlap each other). */
  --z-back-to-top: 100;
  --z-youtube-ball: 100;
  --z-header: 200;

  /* ---- Icons ---- */
  --icon-size-sm: var(--space-3); /* 16: filter plus / ×, search glyph */
  --icon-size-sm-diagonal: calc(var(--icon-size-sm) * 1.4142);
  --icon-mail-width: 20px; /* v2 mail glyph in the header / drawer CTA */
  --icon-mail-height: var(--space-3); /* 16 */
  --stroke-icon: 2px;
}
