/* ==========================================================================
   STAGE-T — base.css
   Shared design system: tokens, type, grid, header, menu, footer, buttons,
   captions, spec rows, reveal motion. Page files only add page layouts.
   Values come from the proposal (VISUAL SYSTEM / MOTION SYSTEM).
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  /* STAGE */
  --stage: #040404;          /* matches the dark-studio photo black (#000–#020202) */
  --warm: #0F0B08;           /* footer only */
  --gunmetal: #2F2E34;       /* plinth blocks, 1px lines */
  --resin: #ECE8E3;          /* primary text on STAGE; BENCH paper */
  --sand: #878080;           /* secondary text on STAGE */
  --lava: #FE6600;           /* accent: pixel marker, primary-button hover fill */
  --deep-lava: #D84E02;      /* pressed; graphic accent on BENCH */
  /* BENCH */
  --paper: #ECE8E3;
  --ink: #040404;
  --ink-grey: #5F5A58;
  --paper-rule: #C9C4BF;
  --paper-hover: #E0DAD4;

  /* active mode (STAGE by default) */
  --bg: var(--stage);
  --fg: var(--resin);
  --fg2: var(--sand);
  --rule: var(--gunmetal);
  --marker: var(--lava);

  /* type */
  --f-display: "Sofia Sans Condensed", "DIN Next LT Pro Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  --f-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  /* grid */
  --m: 48px;                 /* outer margin */
  --g: 24px;                 /* gutter */
  --cols: 12;
  --maxw: 1680px;
  --wrap: min(100vw, var(--maxw));
  --col: calc((var(--wrap) - 2 * var(--m) - (var(--cols) - 1) * var(--g)) / var(--cols));
  --header-h: 72px;

  /* spacing (8px base) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px; --s12: 96px; --s16: 128px; --s24: 192px; --s32: 256px;
  --section: 192px;          /* between sections */
  --section-l: 256px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-step: steps(8, end);
  --d-micro: 160ms; --d-short: 320ms; --d-mid: 640ms; --d-long: 1200ms;
}
@media (max-width: 1279px) { :root { --m: 32px; --g: 16px; --cols: 8; } }
@media (max-width: 767px) {
  :root { --m: 24px; --g: 16px; --cols: 4; --header-h: 56px; --section: 96px; --section-l: 128px; }
}

/* ---------- modes ---------- */
.stage { --bg: var(--stage); --fg: var(--resin); --fg2: var(--sand); --rule: var(--gunmetal); --marker: var(--lava); background: var(--bg); color: var(--fg); }
.bench { --bg: var(--paper); --fg: var(--ink); --fg2: var(--ink-grey); --rule: var(--paper-rule); --marker: var(--deep-lava); background: var(--bg); color: var(--fg); }
.plinth { background: var(--gunmetal); color: var(--resin); --fg2: var(--resin); }   /* Sand Grey is only 3.5:1 here */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--stage); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-jp); font-size: 15px; line-height: 2; letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt" 0;
  overflow-x: clip;          /* guard against accidental horizontal scroll; unlike hidden it keeps position:sticky working */
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
main { display: block; }
::selection { background: var(--lava); color: var(--ink); }

/* focus: 2px outline + 2px offset; never orange-only */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.bench :focus-visible { outline-color: var(--ink); }

.skip {
  position: fixed; left: 16px; top: -64px; z-index: 200; padding: 12px 16px;
  background: var(--resin); color: var(--ink); font-size: 14px; transition: top var(--d-short) var(--ease-out);
}
.skip:focus { top: 16px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Japanese line breaking: break at phrase boundaries where supported, never start a line with ー/。 */
main { line-break: strict; word-break: auto-phrase; }
.nw { display: inline-block; }            /* keep a phrase together: <span class="nw">ステージのための</span> */

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--g); }
.bleed { width: 100%; }                        /* full-bleed images sit outside .wrap */
.section { padding-block: var(--section); }

/* ---------- type ---------- */
.t-display-xl { font-family: var(--f-display); font-weight: 700; font-size: min(22vw, 320px); line-height: 0.86; letter-spacing: -0.01em; text-transform: uppercase; }
.t-h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(96px, 11.1vw, 184px); line-height: 0.86; letter-spacing: -0.01em; text-transform: uppercase; }
.t-h2 { font-family: var(--f-display); font-weight: 700; font-size: 88px; line-height: 0.9; letter-spacing: 0; text-transform: uppercase; }
.t-h3 { font-family: var(--f-display); font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.t-jp-display { font-family: var(--f-jp); font-weight: 700; font-size: 56px; line-height: 1.4; letter-spacing: 0.06em; font-feature-settings: "palt"; }
.t-jp-display-s { font-family: var(--f-jp); font-weight: 700; font-size: 40px; line-height: 1.4; letter-spacing: 0.06em; font-feature-settings: "palt"; }
.t-numeral { font-family: var(--f-display); font-weight: 700; font-size: 88px; line-height: 0.9; letter-spacing: 0; }
.t-lead { font-family: var(--f-jp); font-weight: 500; font-size: 22px; line-height: 1.8; letter-spacing: 0.06em; font-feature-settings: "palt"; }
.t-body { font-family: var(--f-jp); font-weight: 400; font-size: 15px; line-height: 2; letter-spacing: 0.05em; max-width: 34em; }
.t-body + .t-body { margin-top: var(--s3); }
.t-small { font-size: 12px; line-height: 1.8; letter-spacing: 0.04em; color: var(--fg2); }
.t-caption { font-family: var(--f-mono); font-weight: 400; font-size: 11px; line-height: 1.5; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg2); }
.t-index { font-family: var(--f-mono); font-weight: 500; font-size: 12px; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg2); }
.t-spec-label { font-family: var(--f-mono); font-weight: 500; font-size: 12px; line-height: 1.4; letter-spacing: 0.1em; text-transform: uppercase; }
.t-spec-value { font-family: var(--f-jp); font-weight: 500; font-size: 17px; line-height: 1.6; letter-spacing: 0.02em; }
.t-nav { font-family: var(--f-display); font-weight: 500; font-size: 14px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; }
.t-fg2 { color: var(--fg2); }

@media (max-width: 767px) {
  .t-display-xl { font-size: 64px; }
  .t-h1 { font-size: 64px; }
  .t-h2 { font-size: 44px; }
  .t-h3 { font-size: 28px; }
  .t-jp-display { font-size: 30px; }
  .t-jp-display-s { font-size: 26px; }
  .t-numeral { font-size: 72px; }
  .t-lead { font-size: 17px; }
  .t-body { font-size: 14px; }
  .t-caption { font-size: 10px; }
  .t-index, .t-spec-label { font-size: 11px; }
  .t-spec-value { font-size: 15px; }
}
@media (min-width: 400px) and (max-width: 767px) {
  .t-h1 { font-size: 72px; }
  .t-jp-display { font-size: 32px; }
}

/* ---------- small parts ---------- */
.marker { display: inline-block; width: 4px; height: 4px; background: var(--marker); flex: none; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* Caption: Mono, uppercase, 24px short rule in front — "03 — BRIDGE / OR" */
.caption { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.caption::before { content: ""; width: 24px; height: 1px; background: currentColor; flex: none; }
.caption { font-family: var(--f-mono); font-size: 11px; line-height: 1.5; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg2); }
@media (max-width: 767px) { .caption { font-size: 10px; margin-top: 12px; } }

/* Figure: images are always 0 radius, 0 shadow, 0 border */
.fig { position: relative; margin: 0; }
.fig__img { position: relative; overflow: hidden; }
.fig__img > img, .fig__img > video, .fig__img > picture > img { width: 100%; height: 100%; object-fit: cover; }

/* Swatch (16px) — product colours only live here */
.swatch { display: inline-block; width: 16px; height: 16px; background: var(--c, #888); flex: none; box-shadow: inset 0 0 0 1px rgba(135, 128, 128, 0.35); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--resin); --btn-fg: var(--ink); --btn-fill: var(--lava); --btn-fill-fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 56px; padding: 0 24px; min-width: 240px; background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--f-display); font-weight: 500; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase;
  line-height: 1; white-space: nowrap; overflow: hidden; isolation: isolate; cursor: pointer; border: 0;
}
.btn__jp { font-family: var(--f-jp); font-weight: 500; font-size: 14px; letter-spacing: 0.02em; text-transform: none; }
.btn__label { display: inline-flex; align-items: baseline; }
.btn__arrow { font-family: var(--f-jp); font-size: 15px; transition: transform var(--d-micro) var(--ease-out); }
/* 8-step fill from the left (steps(8), 240ms) */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-fill);
  transform: scaleX(0); transform-origin: left center; transition: transform 240ms var(--ease-step);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: var(--btn-fill-fg); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }
.btn:active::before { background: var(--deep-lava); }
/* on BENCH the primary button inverts: ink ground, resin text, lava fill */
.bench .btn:not(.btn--secondary) { --btn-bg: var(--ink); --btn-fg: var(--resin); }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--fg); background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.btn--secondary::before { background: var(--resin); transition: transform var(--d-micro) linear; }
.btn--secondary:hover, .btn--secondary:focus-visible { color: var(--ink); box-shadow: inset 0 0 0 1px var(--resin); }
.bench .btn--secondary::before { background: var(--ink); }
.bench .btn--secondary:hover, .bench .btn--secondary:focus-visible { color: var(--resin); }
.btn--sm { height: 40px; min-width: 200px; padding: 0 16px; font-size: 13px; }
.btn--sm .btn__jp { font-size: 13px; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { pointer-events: none; opacity: 0.5; }
@media (max-width: 767px) { .btn { font-size: 16px; } .btn__jp { font-size: 15px; } }

/* Text link: "STAGE-Tを見る →" — arrow moves 8px, underline draws from the left */
.link {
  display: inline-flex; align-items: center; gap: 10px; position: relative; min-height: 44px; padding-block: 6px;
  font-family: var(--f-jp); font-weight: 500; font-size: 15px; letter-spacing: 0.04em; color: var(--fg);
}
.link__arrow { transition: transform var(--d-short) var(--ease-out); }
.link::after { content: ""; position: absolute; left: 0; right: 24px; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--d-short) var(--ease-out); }
.link:hover .link__arrow, .link:focus-visible .link__arrow { transform: translateX(8px); }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
.link--display { font-family: var(--f-display); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: var(--m);
  color: var(--resin); background: transparent;
  transition: background-color var(--d-short) var(--ease-out), transform var(--d-short) var(--ease-out), box-shadow var(--d-short) var(--ease-out);
}
.site-header.is-scrolled { background: rgba(4, 4, 4, 0.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 -1px 0 var(--gunmetal); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__logo { justify-self: start; display: block; height: 27px; color: var(--resin); }
.site-header__logo svg { height: 27px; width: auto; shape-rendering: crispEdges; }
.site-nav { display: flex; align-items: center; gap: 40px; }
.site-nav > a, .site-nav__prod { position: relative; display: inline-flex; align-items: center; height: 44px; color: var(--sand); font-family: var(--f-display); font-weight: 500; font-size: 14px; letter-spacing: 0.14em; transition: color var(--d-micro) linear; }
.site-nav > a::before, .site-nav__prod::before { content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: var(--lava); opacity: 0; }
.site-nav > a:hover, .site-nav > a[aria-current="page"], .site-nav__prod:hover, .site-nav__prod[aria-expanded="true"], .site-nav__prod.is-current { color: var(--resin); }
.site-nav > a:hover::before, .site-nav > a[aria-current="page"]::before, .site-nav__prod.is-current::before, .site-nav__prod[aria-expanded="true"]::before { opacity: 1; }
/* PRODUCTS / STAGE-T: a pixel caret (three 2px squares) that flips when its panel is open */
.site-nav__prod { gap: 10px; }
.site-nav__prod i { position: relative; width: 6px; height: 4px; transition: transform var(--d-micro) var(--ease-step); }
.site-nav__prod i::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 2px; background: currentColor; box-shadow: 4px 0 0 currentColor, 2px 2px 0 currentColor; }
.site-nav__prod[aria-expanded="true"] i { transform: scaleY(-1); }
/* while a panel is open only its trigger carries the marker (one marker per screen) */
.site-header.is-mega .site-nav > a[aria-current="page"]:not(:hover)::before, .site-header.is-mega .site-nav__prod.is-current[aria-expanded="false"]:not(:hover)::before { opacity: 0; }
.site-nav__rule { width: 1px; height: 14px; background: var(--gunmetal); margin-inline: -12px; }
.site-header.is-mega { background: var(--stage); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.site-header__buy { justify-self: end; }
.site-header__m { display: none; }
@media (max-width: 1100px) { .site-nav { gap: 26px; } .site-nav__rule { margin-inline: -8px; } }
/* the nav + the buy button no longer fit below ~960px: switch to the compact header (購入 + MENU) */
@media (max-width: 959px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav, .site-header__buy { display: none; }
  .site-header__m { display: flex; align-items: center; gap: 20px; justify-self: end; }
  .site-header__m a, .site-header__m button { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; }
  .site-header__m .m-buy { font-family: var(--f-jp); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; }
  .site-header__m .m-menu { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; }
  body.has-buybar .site-header__m .m-buy { display: none; }   /* only one buy button on screen */
}

/* ---------- PRODUCTS panel (desktop ≥960px; generated by tools/build_lineup.py) ----------
   Hover / focus / click on PRODUCTS opens it; categories are tabs (hover switches them too).
   Each category is a row of fronts standing side by side, grouped by series — the guitar wall.
   Opens with the 8-step wipe (clip-path, steps(8)). */
.mega {
  --iw: clamp(56px, 6.2vw, 104px);                       /* one guitar's column */
  --gh: min(calc(var(--iw) * 3), 34vh);                  /* guitar height (all fronts share it) */
  position: absolute; left: 0; right: 0; top: 100%; z-index: 1;
  background: var(--stage); color: var(--resin); box-shadow: inset 0 1px 0 var(--gunmetal), 0 1px 0 var(--gunmetal);
  clip-path: inset(0 0 100% 0); transition: clip-path 240ms var(--ease-step);
}
.mega.is-open { clip-path: inset(0 0 -2px 0); }
.mega[hidden] { display: none; }
.mega__in { max-width: var(--maxw); margin: 0 auto; padding: 36px var(--m) 40px; display: grid; grid-template-columns: 184px 1fr; column-gap: 40px; }
.mega__side { display: flex; flex-direction: column; padding-right: 32px; box-shadow: inset -1px 0 0 var(--gunmetal); }
.mega__tabs { display: flex; flex-direction: column; }
.mega__cat { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 0 10px 16px; text-align: left; color: var(--sand); font-family: var(--f-jp); font-weight: 500; font-size: 15px; letter-spacing: 0.06em; line-height: 1.5; transition: color var(--d-micro) linear; }
.mega__cat::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: var(--lava); opacity: 0; }
.mega__cat:hover, .mega__cat[aria-selected="true"] { color: var(--resin); }
.mega__cat[aria-selected="true"]::before { opacity: 1; }
.mega__cat-n { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--sand); }
.mega__all { align-self: flex-start; margin-top: auto; padding-top: 24px; font-size: 13px; }
.mega__pane { display: flex; align-items: stretch; justify-content: space-between; gap: 40px; min-width: 0; max-width: 1180px; }
.mega__pane[hidden] { display: none; }
.mega__series { flex: none; min-width: 0; display: flex; flex-direction: column; }
.mega__pane--bass { justify-content: flex-start; gap: 64px; }
.mega__sname { margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--gunmetal); font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; color: var(--sand); line-height: 1; }
.mega__row { display: flex; gap: 16px; margin: auto 0 0; padding: 0; list-style: none; }
.mm { position: relative; display: flex; flex-direction: column; align-items: center; width: var(--iw); gap: 10px; padding-bottom: 4px; }
.mm__img { display: flex; align-items: flex-end; justify-content: center; height: var(--gh); width: 100%; }
.mm__img img { height: 100%; width: auto; max-width: none; transition: transform var(--d-short) var(--ease-out), opacity var(--d-short) var(--ease-out); }
.mm__img--none { box-shadow: inset 0 0 0 1px var(--gunmetal); width: 40%; }
.mm--feat .mm__img { height: calc(var(--gh) * 1.1); }
.mm--feat::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: 40px; width: calc(var(--iw) * 2.4); height: calc(var(--gh) * 0.7); transform: translateX(-50%); background: radial-gradient(closest-side, rgba(236, 232, 227, 0.08), transparent); pointer-events: none; }
.mm__name { position: relative; font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: 0.08em; line-height: 1; white-space: nowrap; }
.mm[aria-current="page"] .mm__name::before { content: ""; position: absolute; left: -10px; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: var(--lava); }
.mm__n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mega__pane:hover .mm:not(:hover) .mm__img img { opacity: 0.4; }
.mm:hover .mm__img img, .mm:focus-visible .mm__img img { transform: translateY(-8px); }
.mm:focus-visible { outline: 2px solid var(--resin); outline-offset: 4px; }
/* items rise in once per opening */
.mega .mm { opacity: 0; transform: translateY(12px); }
.mega.is-open .mm { opacity: 1; transform: none; transition: opacity var(--d-short) var(--ease-out), transform var(--d-short) var(--ease-out); transition-delay: calc(160ms + var(--k, 0) * 30ms); }
.mega-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(4, 4, 4, 0.6); opacity: 0; transition: opacity var(--d-short) var(--ease-out); }
.mega-scrim.is-on { opacity: 1; }
.mega-scrim[hidden] { display: none; }
@media (max-width: 1279px) { .mega__in { grid-template-columns: 152px 1fr; column-gap: 28px; } .mega__side { padding-right: 20px; } .mega__pane { gap: 24px; } .mega__row { gap: 8px; } }
@media (max-width: 959px) { .mega, .mega-scrim { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mega, .mega.is-open { clip-path: none; transition: none; } .mega .mm, .stp .stp__card, .stp .stp__link { transform: none !important; } }

/* switching between the two header panels is instant (no wipe, no rise) */
.mega.is-instant, .mega.is-instant * { transition: none !important; }

/* ---------- STAGE-T panel (desktop; generated by tools/build_lineup.py) ----------
   Same ground and 8-step wipe as PRODUCTS: a STAGE-T card (pixel mark + the LAVA front lying down, like the
   dimension drawing) → stage-t.html, and STAGE-T's own views as numbered rows. */
.stp__in { max-width: var(--maxw); margin: 0 auto; padding: 32px var(--m) 36px; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); column-gap: 64px; align-items: stretch; }
.stp__card { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; column-gap: 24px; row-gap: 20px; padding: 4px 32px 0 0; box-shadow: inset -1px 0 0 var(--gunmetal); color: var(--resin); }
.stp__mark { grid-column: 1 / -1; display: block; width: 176px; height: 28px; }
.stp__mark svg { display: block; width: 176px; height: 28px; shape-rendering: crispEdges; }
.stp__g { grid-column: 1 / -1; position: relative; display: block; width: 100%; max-width: 440px; aspect-ratio: 1201 / 400; }
.stp__g img { position: absolute; left: 50%; top: 50%; width: calc(100% * 400 / 1201); height: auto; max-width: none; transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--d-short) var(--ease-out); }
.stp__card:hover .stp__g img, .stp__card:focus-visible .stp__g img { transform: translate(calc(-50% + 8px), -50%) rotate(90deg); }
.stp__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding-right: 32px; }
.stp__lead { font-family: var(--f-jp); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; line-height: 1.6; color: var(--sand); font-feature-settings: "palt" 1; }
.stp__card .stp__arrow { position: absolute; right: 32px; top: 6px; }
.stp__arrow { font-family: var(--f-display); font-size: 16px; color: var(--sand); transition: transform var(--d-short) var(--ease-out), color var(--d-micro) linear; }
.stp__card:hover .stp__arrow, .stp__card:focus-visible .stp__arrow, .stp__link:hover .stp__arrow, .stp__link:focus-visible .stp__arrow { transform: translateX(6px); color: var(--resin); }
.stp__card[aria-current="page"] .stp__mark { position: relative; }
.stp__card[aria-current="page"] .stp__mark::before { content: ""; position: absolute; left: -14px; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: var(--lava); }
.stp__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; justify-content: center; }
.stp__list li + li { box-shadow: inset 0 1px 0 var(--gunmetal); }
.stp__link { position: relative; display: grid; grid-template-columns: 40px minmax(120px, auto) 1fr auto; align-items: baseline; column-gap: 16px; min-height: 64px; padding: 18px 0 16px; color: var(--sand); transition: color var(--d-micro) linear; }
.stp__no { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; }
.stp__name { position: relative; font-family: var(--f-display); font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: 0.06em; color: var(--resin); }
.stp__ja { font-family: var(--f-jp); font-weight: 500; font-size: 13px; letter-spacing: 0.06em; font-feature-settings: "palt" 1; }
.stp__link:hover, .stp__link:focus-visible { color: var(--resin); }
.stp__link[aria-current="page"] .stp__name::before { content: ""; position: absolute; left: -14px; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: var(--lava); }
.stp__card:focus-visible, .stp__link:focus-visible { outline: 2px solid var(--resin); outline-offset: 4px; }
.stp__list:hover .stp__link:not(:hover) .stp__name { color: var(--sand); }
/* items rise in once per opening, like the guitar wall */
.stp .stp__card, .stp .stp__link { opacity: 0; transform: translateY(12px); }
.stp.is-open .stp__card, .stp.is-open .stp__link { opacity: 1; transform: none; transition: opacity var(--d-short) var(--ease-out), transform var(--d-short) var(--ease-out), color var(--d-micro) linear; transition-delay: calc(160ms + var(--k, 0) * 40ms), calc(160ms + var(--k, 0) * 40ms), 0s; }
@media (max-width: 1279px) { .stp__in { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); column-gap: 40px; } .stp__link { grid-template-columns: 32px minmax(104px, auto) 1fr auto; } .stp__name { font-size: 24px; } }

/* small colour chips (menus, cards): top colour framed by the edge colour */
.chips-s { display: flex; flex-wrap: wrap; gap: 3px; }
.chips-s i { display: block; width: 10px; height: 10px; background: var(--top); box-shadow: inset 0 0 0 2px var(--band), 0 0 0 1px rgba(135, 128, 128, 0.3); }

/* ---------- STAGE-T sub-nav (_partials/stnav.html → <!-- @stnav --> on stage-t / design / spec) ----------
   One slim Stage Black band that ties STAGE-T's four views together: pixel mark (= overview) | DESIGN GALLERY SPEC.
   stage-t.html: right after the colour hero. design / spec: first in <main>, directly under the header. */
.stnav { position: relative; z-index: 2; background: var(--stage); color: var(--resin); box-shadow: inset 0 1px 0 var(--gunmetal), inset 0 -1px 0 var(--gunmetal); }
main > .stnav:first-child { margin-top: var(--header-h); }
main > .stnav:first-child + * { --header-h: 0px; }      /* that section's own header clearance is taken by the sub-nav */
.stnav__in { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.stnav__in::-webkit-scrollbar { display: none; }
.stnav__list { display: flex; align-items: center; gap: 40px; min-height: 56px; margin: 0; padding: 0; list-style: none; }
.stnav__list li { flex: none; }
.stnav__list a { position: relative; display: inline-flex; align-items: center; min-height: 48px; font-family: var(--f-display); font-weight: 500; font-size: 14px; letter-spacing: 0.14em; color: var(--sand); white-space: nowrap; transition: color var(--d-micro) linear; }
.stnav__list a::before { content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: var(--lava); opacity: 0; }
.stnav__list a:hover, .stnav__list a[aria-current="page"],
body[data-page="stage-t"] [data-stnav="stage-t"], body[data-page="design"] [data-stnav="design"], body[data-page="spec"] [data-stnav="spec"] { color: var(--resin); }
.stnav__list a[aria-current="page"]::before,
body[data-page="stage-t"] [data-stnav="stage-t"]::before, body[data-page="design"] [data-stnav="design"]::before, body[data-page="spec"] [data-stnav="spec"]::before { opacity: 1; }
.stnav__mark svg { display: block; width: 88px; height: 14px; shape-rendering: crispEdges; }   /* 1px per grid cell: crisp */
.stnav__rule { width: 1px; height: 14px; background: var(--gunmetal); margin-inline: -12px; }
@media (max-width: 767px) {
  .stnav__list { gap: 28px; min-height: 52px; }
  .stnav__list a { font-size: 13px; letter-spacing: 0.12em; }
  .stnav__rule { margin-inline: -8px; }
}

/* ---------- mobile menu (8 bands close top→down, steps of 40ms) ---------- */
.menu { position: fixed; inset: 0; z-index: 150; color: var(--resin); pointer-events: none; visibility: hidden; }
.menu.is-open { pointer-events: auto; visibility: visible; }
.menu__bands { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(8, 1fr); }
.menu__bands span { background: var(--stage); transform: scaleY(0); transform-origin: top; }
.menu.is-open .menu__bands span { transform: scaleY(1.02); transition: transform 0s linear calc(var(--i) * 40ms); }
.menu.is-closing .menu__bands span { transform: scaleY(0); transition: transform 0s linear calc((7 - var(--i)) * 20ms); }
.menu__inner { position: relative; height: 100%; display: flex; flex-direction: column; padding: 0 var(--m) 32px; overflow-y: auto; overscroll-behavior: contain; }
.menu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.menu__top svg { height: 27px; width: auto; }
.menu__close { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; min-height: 44px; min-width: 44px; }
.menu__list { margin-top: 40px; }
.menu__list > a, .menu__acc { display: flex; width: 100%; align-items: baseline; gap: 24px; height: 72px; font-family: var(--f-display); font-weight: 600; font-size: 40px; letter-spacing: 0.02em; line-height: 1; }
.menu__list > a .t-index, .menu__acc .t-index { width: 24px; flex: none; }
.menu__list > a[aria-current="page"] .t-index::before, .menu__acc.is-current .t-index::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 8px; margin-left: -12px; background: var(--lava); vertical-align: middle; }
.menu__acc { text-align: left; align-items: center; }
.menu__acc i { position: relative; width: 14px; height: 14px; margin-left: auto; align-self: center; }
.menu__acc i::before, .menu__acc i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; }
.menu__acc i::after { transform: rotate(90deg); transition: transform var(--d-micro) var(--ease-step); }
.menu__acc[aria-expanded="true"] i::after { transform: none; }
.menu__plist { padding: 4px 0 24px 48px; }
.menu__plist[hidden] { display: none; }
.menu__cat { margin: 16px 0 4px; font-size: 12px; letter-spacing: 0.06em; color: var(--sand); }
.menu__series { margin: 0; padding: 0; list-style: none; }
.menu__series li { display: grid; grid-template-columns: 76px 1fr; align-items: baseline; column-gap: 12px; border-bottom: 1px solid var(--gunmetal); }
.menu__sname { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--sand); }
.menu__models { display: flex; flex-wrap: wrap; column-gap: 20px; }
.menu__models a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: 0.06em; }
.menu__models a[aria-current="page"] { color: var(--lava); }
.menu__all { margin-top: 20px; font-size: 13px; }
.menu__sub { margin: 0; padding: 4px 0 0; list-style: none; }
.menu__sub li { border-bottom: 1px solid var(--gunmetal); }
.menu__sub a { display: flex; align-items: center; min-height: 48px; font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: 0.06em; }
.menu__sub a[aria-current="page"] { color: var(--lava); }
.menu__foot { margin-top: auto; padding-top: 32px; }
.menu__foot .rule { margin-bottom: 32px; }
.menu__social { display: flex; gap: 32px; margin-top: 24px; }
.menu__item { opacity: 0; transform: translateY(16px); }
.menu.is-open .menu__item { opacity: 1; transform: none; transition: opacity var(--d-short) var(--ease-out), transform var(--d-short) var(--ease-out); transition-delay: calc(320ms + var(--i) * 40ms); }
.menu.is-closing .menu__item { opacity: 0; transition: opacity 120ms linear; transition-delay: 0s; }
body.menu-open { overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--warm); color: var(--resin); padding: 128px 0 48px; --fg2: var(--sand); --rule: var(--gunmetal); }
.site-footer__mark { display: block; width: min(480px, 100%); color: var(--resin); }
.site-footer__mark svg { width: 100%; height: auto; }
.site-footer__sub { width: 86px; margin-top: 12px; }
.site-footer__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-top: 96px; }
.site-footer__map { display: grid; grid-template-columns: repeat(4, minmax(120px, auto)); column-gap: 64px; row-gap: 32px; }
.site-footer__h { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.06em; color: var(--sand); }
.site-footer__map ul { margin: 0; padding: 0; list-style: none; }
.site-footer__map a { display: inline-flex; align-items: center; min-height: 32px; font-family: var(--f-display); font-weight: 500; font-size: 15px; letter-spacing: 0.1em; color: var(--resin); transition: color var(--d-micro) linear; }
.site-footer__map a:hover { color: var(--lava); }
.site-footer__map a[aria-current="page"] { color: var(--sand); }
.site-footer__map a.site-footer__ja { font-family: var(--f-jp); font-weight: 400; font-size: 13px; letter-spacing: 0.04em; }   /* Japanese beside the condensed caps: same visual size */
@media (max-width: 1279px) { .site-footer__map { column-gap: 40px; } }
.site-footer .rule { margin: 48px 0 32px; }
.site-footer__base { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 32px; }
.site-footer__script { width: 120px; }
.site-footer__tag { justify-self: end; }
.site-footer__meta { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 32px; }
.site-footer__meta a { color: var(--sand); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__meta { align-items: center; }
.menu__social a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__meta a:hover { color: var(--resin); }
@media (max-width: 767px) {
  .site-footer { padding: 96px 0 40px; }
  .site-footer__row { flex-direction: column; align-items: stretch; margin-top: 64px; }
  .site-footer__map { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .site-footer__col:first-child { grid-row: span 2; }   /* エレキギター (8) beside ベース + STAGE-T; Mojolnir below */
  .site-footer__map a { min-height: 40px; }
  .site-footer__base { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__tag { justify-self: start; }
}

/* ---------- spec rows (shared by HOME S07 / STAGE-T P05 / SPEC) ---------- */
.spec { border-top: 1px solid var(--rule); }
.spec-row {
  display: grid; grid-template-columns: 40px minmax(120px, 0.9fr) 1fr; align-items: center; column-gap: 16px;
  min-height: 64px; padding-block: 12px; border-bottom: 1px solid var(--rule); transition: background-color var(--d-micro) linear;
}
.spec-row__no { font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; color: var(--fg2); }
.spec-row__label { display: flex; align-items: center; gap: 12px; min-width: 0; }
.spec-row__label .en { font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.spec-row__label .ja { font-size: 12px; letter-spacing: 0.04em; color: var(--fg2); white-space: nowrap; }
.spec-row__label::after { content: ""; flex: 1; min-width: 16px; height: 1px; background-image: radial-gradient(circle, var(--rule) 0.7px, transparent 0.8px); background-size: 4px 1px; background-repeat: repeat-x; }
.spec-row__value { font-family: var(--f-jp); font-weight: 500; font-size: 17px; line-height: 1.6; letter-spacing: 0.02em; }
.spec-row__value small { display: block; font-size: 12px; font-weight: 400; color: var(--fg2); letter-spacing: 0.04em; }
.bench .spec-row:hover, .bench .spec-row.is-active { background: var(--paper-hover); }
/* stacked label (EN above JP, as on the spec boards) */
.spec-row__label--stack { display: grid; gap: 2px; align-content: center; }
.spec-row__label--stack::after { display: none; }
.spec-row__label--stack .ja { white-space: normal; }
@media (max-width: 767px) {
  .spec-row { grid-template-columns: 32px 1fr; row-gap: 4px; min-height: 0; padding-block: 16px; }
  .spec-row__value { grid-column: 2; font-size: 15px; }
  .spec-row__label::after { display: none; }
}

/* ---------- reveal motion ----------
   data-reveal="soft"  image: fade 640ms + inner media 1.06→1.00 over 1200ms (default for images)
   data-reveal="fade"  fade only (BENCH images, captions) — captions: add data-delay="240"
   data-reveal="up"    text: fade + rise 16px (use data-rise="24" for JP headings)
   data-reveal="lines" EN display heading: each .line > span slides up from 100%, 80ms apart
   data-reveal="step"  8-Step Reveal (signature — logos and each page's opening image only)
   JS adds .is-in when the element's top crosses 85% of the viewport. */
html.js [data-reveal] { will-change: opacity, transform; }
html.js [data-reveal="soft"], html.js [data-reveal="fade"], html.js [data-reveal="up"] { opacity: 0; }
html.js [data-reveal="up"] { transform: translateY(var(--rise, 16px)); }
html.js [data-reveal="soft"] img, html.js [data-reveal="soft"] video { transform: scale(1.06); }
html.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity var(--d-mid) var(--ease-out) var(--delay, 0ms), transform var(--d-mid) var(--ease-out) var(--delay, 0ms); }
html.js [data-reveal="soft"].is-in img, html.js [data-reveal="soft"].is-in video { transform: none; transition: transform var(--d-long) var(--ease-out) var(--delay, 0ms); }
html.js [data-reveal="fade"].is-in { transition-duration: var(--d-short); }
.line { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.line > span { display: block; }
html.js [data-reveal="lines"] .line > span { transform: translateY(105%); }
html.js [data-reveal="lines"].is-in .line > span { transform: none; transition: transform var(--d-mid) var(--ease-out); transition-delay: calc(var(--delay, 0ms) + var(--li, 0) * 80ms); }
html.js [data-reveal="step"] { clip-path: polygon(0 100%, 0 100%, 0 100%); }
html.js [data-reveal="step"] img, html.js [data-reveal="step"] video { transform: scale(1.06); }
html.js [data-reveal="step"].is-in img, html.js [data-reveal="step"].is-in video { transform: none; transition: transform var(--d-long) var(--ease-out); }
html.js [data-reveal="step"].is-done { clip-path: none; }
/* BENCH images only fade (like a manual) */
html.js .bench [data-reveal="soft"] img { transform: none; }

/* reduced motion: 200ms fades, nothing moves */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal], html.js [data-reveal] img, html.js [data-reveal] video, html.js [data-reveal] .line > span { transform: none !important; clip-path: none !important; }
  html.js [data-reveal].is-in { transition: opacity 200ms linear !important; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* ---------- page transition ("暗転": fade to Stage Black 320ms, and back up on arrival) ---------- */
.veil { position: fixed; inset: 0; z-index: 300; background: var(--stage); opacity: 0; pointer-events: none; transition: opacity var(--d-short) var(--ease-io); }
html.is-leaving .veil { opacity: 1; pointer-events: auto; }
/* arrival veil lives on html::after so it paints before any script runs (set by the head partial) */
html::after { content: ""; position: fixed; inset: 0; z-index: 300; background: var(--stage); opacity: 0; pointer-events: none; transition: opacity var(--d-short) var(--ease-io); }
html.is-entering::after { opacity: 1; transition: none; }

/* ---------- looping video pause control ---------- */
.video-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 2; min-height: 44px; min-width: 44px; padding: 0 12px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--resin); background: rgba(4, 4, 4, 0.6); box-shadow: inset 0 0 0 1px rgba(236, 232, 227, 0.4);
}

/* ---------- preview notice (HOTMUSIC URL not yet configured) ---------- */
.notice {
  position: fixed; left: 50%; bottom: 24px; z-index: 400; transform: translate(-50%, 16px); opacity: 0;
  max-width: calc(100vw - 48px); padding: 14px 20px; background: var(--resin); color: var(--ink);
  font-size: 13px; line-height: 1.6; letter-spacing: 0.04em; pointer-events: none;
  transition: opacity var(--d-short) var(--ease-out), transform var(--d-short) var(--ease-out);
}
.notice.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- YouTube (click-to-load facade: nothing from YouTube loads until the user presses play) ---------- */
.yt { margin: 0; }
.yt__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--stage); }
.yt__btn { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: pointer; }
.yt__btn img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.82); transition: filter var(--d-short) var(--ease-out), transform var(--d-long) var(--ease-out); }
.yt__btn:hover img, .yt__btn:focus-visible img { filter: brightness(1); transform: scale(1.02); }
.yt__play {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  background: var(--resin); color: var(--ink); font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  isolation: isolate; overflow: hidden;
}
.yt__play::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lava); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-step); }
.yt__btn:hover .yt__play::before, .yt__btn:focus-visible .yt__play::before { transform: scaleX(1); }
.yt__play i { display: block; width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.yt__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__meta { margin-top: 16px; }

/* spec rows: when the Japanese label stands alone (§11), it is the label — full ink, 13px */
.spec-row__label .ja:only-child { font-size: 13px; color: var(--fg); letter-spacing: 0.06em; }

/* footer mark follows the product line: STAGE-T everywhere, the Tipsy script on the M40T page */
.site-footer__mark--m40t { display: none; width: min(320px, 70%); }
.site-footer__mark--m40t img { width: 100%; height: auto; }
.site-footer__m40t { display: block; margin-top: 12px; font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: 0.2em; }
body[data-page="m40t"] .site-footer__mark:not(.site-footer__mark--m40t) { display: none; }
body[data-page="m40t"] .site-footer__mark--m40t { display: block; }
