﻿/* ============================================================
   KR — Keio Robotics  |  shared design system
   Minimal / editorial. Sharp corners, soft layered shadows,
   off-white + sumi ink + signal yellow.
   ============================================================ */

:root {
  --bg:        #FAFAF7;
  --paper:     #FFFFFF;
  --ink:       #0A0A0A;
  --ink-soft:  #4A4A45;
  --ink-faint: #6E6E66;
  --line:      #E6E5DD;
  --line-soft: #EFEEE7;
  --accent:    #F2DD27;
  --accent-deep: #E0C800;

  /* 集約トークン（散在していた色をルール化） */
  --ink-mute:    #A9A8A1; /* 暗背景上の弱いテキスト */
  --on-ink:      #ECEBE5; /* 墨背景上の本文 */
  --on-ink-soft: #C9C8C1; /* 墨背景上の弱テキスト */
  --ph-bg:       #F0EFE8; /* プレースホルダー枠の地色 */
  --ok:          #2FA968; /* ステータス（稼働/成功）の状態色 */

  /* タイポスケール（役割ベース。全サイズはこの段階に寄せる） */
  --fs-2xs:   .64rem;  /* 最小ラベル・タグ・アイコン注記 */
  --fs-label: .68rem;  /* mono ラベル・eyebrow */
  --fs-xs:    .72rem;  /* 小ラベル */
  --fs-cap:   .8rem;   /* キャプション・小リンク・ナビ */
  --fs-sm:    .9rem;   /* 補助本文 */
  --fs-body:  1rem;    /* 本文（16px 基準） */
  --fs-md:    1.12rem; /* やや大きい本文・サブ見出し */
  --fs-xl:    1.4rem;  /* カード見出し */

  /* layered, near-invisible shadow (no hard AI drop-shadow) */
  --shadow-1: 0 1px 1px rgba(20,20,12,.03), 0 6px 16px rgba(20,20,12,.035), 0 18px 44px rgba(20,20,12,.03);
  --shadow-2: 0 1px 2px rgba(20,20,12,.04), 0 10px 30px rgba(20,20,12,.05), 0 30px 70px rgba(20,20,12,.04);

  --maxw: 1320px;
  --gutter: clamp(16px, 4vw, 54px);

  --font-display: 'Jost', 'Zen Kaku Gothic New', sans-serif;
  --font-jp: 'Zen Kaku Gothic New', 'Jost', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.col  { max-width: 760px; }

/* big editorial headings — extreme jump ratio, tight tracking */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.035em;
  margin: 0;
}
h1.display { font-size: clamp(2.5rem, 7.2vw, 6.9rem); }
h2.display { font-size: clamp(1.8rem, 4.2vw, 3.7rem); }
/* 和文見出しは詰めすぎず、行間もやや広げて可読性を確保 */
:lang(ja) .display { letter-spacing: -.01em; line-height: 1.06; }
.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 46ch;
  font-weight: 400;
}

.section { padding-block: clamp(36px, 5vh, 72px); }
.section-tight { padding-block: clamp(20px, 3vh, 40px); }

.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* yellow underline mark for inline emphasis */
.mark { background: linear-gradient(transparent 62%, var(--accent) 62%); padding: 0 .04em; }

/* ---------- header / nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.brand img.mark-ic { width: 34px; height: 34px; }
.brand-ic { height: 27px; width: auto; display: block; }
.brand-wm { height: 14px; width: auto; display: block; }
.brand .bn { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-body); letter-spacing: .02em; line-height: 1; }
.brand .bs { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .22em; color: var(--ink-faint); text-transform: uppercase; }
.brand .stack { display: flex; flex-direction: column; gap: 3px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: var(--fs-cap); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft);
  position: relative; padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.current::after { width: 100%; }
.nav-links a.current { color: var(--ink); }

.lang {
  display: inline-flex; border: 1px solid var(--ink); font-family: var(--font-mono);
  font-size: var(--fs-label); letter-spacing: .08em; overflow: hidden;
}
.lang button {
  background: transparent; border: 0; padding: 7px 11px; color: var(--ink-soft);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang button.active { background: var(--ink); color: var(--bg); }

.burger { display: none; background: none; border: 0; padding: 8px; }
.burger span { display:block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s var(--ease); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--font-mono); font-size: var(--fs-cap); letter-spacing: .1em; text-transform: uppercase;
  padding: 15px 26px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.btn .ar { transition: transform .35s var(--ease); }
.btn:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn:hover .ar { transform: translateX(5px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- media placeholder (striped) ---------- */
.ph {
  position: relative; background: var(--ph-bg);
  border: 1px solid var(--line);
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(10,10,10,.05) 11px 12px);
  display: flex; align-items: flex-end; justify-content: flex-start;
  overflow: hidden;
}

.ph .tag {
  position: relative; z-index: 1;
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); padding: 11px 14px; background: var(--bg); border-top: 1px solid var(--line); border-right: 1px solid var(--line);
}
.ph .ico { position: absolute; top: 0; left: 0; z-index: 1; font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--ink-faint); letter-spacing: .12em; padding: 11px 14px; background: var(--bg); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: var(--on-ink); padding-block: clamp(32px, 5vh, 60px) 28px; }
.site-foot a { color: var(--on-ink-soft); transition: color .25s var(--ease); }
.site-foot a:hover { color: var(--accent); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-col h4 { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.4); margin: 0 0 18px; font-weight: 400; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: var(--fs-sm); }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-ic { width: 56px; height: 56px; flex: none; }
.foot-mark { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem,4vw,3.2rem); letter-spacing: -.03em; line-height: .9; color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .1em; color: rgba(255,255,255,.45); text-transform: uppercase; }

/* ---------- scroll reveal ----------
   NOTE: base state stays fully visible (opacity:1). We only animate a
   subtle upward rise. This guarantees content is never stranded invisible
   even in environments that pause/limit CSS transitions. */
.reveal { transform: translateY(20px); transition: transform .85s var(--ease); will-change: transform; }
.reveal.in { transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- i18n visibility ---------- */
html[data-lang="en"] [data-jp-only] { display: none !important; }
html[data-lang="jp"] [data-en-only] { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links, .nav .lang { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 26px var(--gutter) 34px;
  }
  .nav .lang.show { display: inline-flex; }
  .burger { display: block; margin-left: auto; }
}

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */
.crumb { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); padding-top: clamp(30px,4.5vh,60px); display: flex; gap: 10px; align-items: center; }
.crumb a { color: var(--ink-soft); border-bottom: 1px solid transparent; transition: border-color .25s var(--ease); }
.crumb a:hover { border-color: var(--ink); }
.crumb .sep { opacity: .5; }

.pd-head { padding-top: 22px; padding-bottom: clamp(26px,4vh,46px); }
.pd-top { display: block; }
.pd-index { font-family: var(--font-mono); font-size: var(--fs-cap); letter-spacing: .22em; color: var(--accent-deep); }
.pd-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.7rem,7.2vw,6.4rem); letter-spacing: -.04em; line-height: .9; margin: 14px 0 10px; }
.pd-sub { font-family: var(--font-display); font-weight: 500; font-size: clamp(0.9rem,1.4vw,1.2rem); color: var(--ink-soft); margin: 0; }
.pd-top-r { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-bottom: 8px; }
.status { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line); padding: 8px 14px; }
.status .dot { width: 8px; height: 8px; background: var(--accent-deep); border-radius: 50%; display: inline-block; }
.status.live .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(47,169,104,.16); }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* link buttons with arrow */
.lnk { display: inline-flex; align-items: center; gap: .7em; white-space: nowrap; font-family: var(--font-mono); font-size: var(--fs-cap); letter-spacing: .08em; text-transform: uppercase; padding: 13px 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); transition: background .3s var(--ease), color .3s var(--ease); }
.lnk .ext { font-size: .9em; transition: transform .3s var(--ease); }
.lnk:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.lnk:hover .ext { transform: translate(2px,-2px); }
.lnk.ghost { background: transparent; color: var(--ink); }
.lnk.ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lnk .gh { width: 16px; height: 16px; display: inline-block; }

.pd-cover { aspect-ratio: 16/8; box-shadow: var(--shadow-2); }

.pd-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(26px,4.5vw,68px); align-items: start; }
.pd-narrative > .blk + .blk { margin-top: clamp(26px,4vh,42px); }
.pd-narrative h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem,1.9vw,1.6rem); letter-spacing: -.02em; margin: 0 0 16px; }
.pd-narrative p { color: var(--ink-soft); font-size: var(--fs-body); line-height: 1.95; margin: 0 0 16px; max-width: 62ch; }
.pd-narrative ul.facts { list-style: none; margin: 22px 0 0; padding: 0; }
.pd-narrative ul.facts li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: var(--fs-body); }
.pd-narrative ul.facts li:last-child { border-bottom: 1px solid var(--line); }
.pd-narrative ul.facts li b { font-family: var(--font-mono); font-weight: 400; color: var(--accent-deep); font-size: var(--fs-cap); }

/* sticky info card */
.pd-aside { position: sticky; top: 96px; }
.info-card { border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-1); }
.info-card .ic-sec { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.info-card .ic-sec:last-child { border-bottom: 0; }
.info-card h4 { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; font-weight: 400; }
.info-card .kv { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: var(--fs-sm); }
.info-card .kv dt { color: var(--ink-faint); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; }
.info-card .kv dd { margin: 0; text-align: right; white-space: nowrap; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tags i { font-family: var(--font-mono); font-style: normal; font-size: var(--fs-label); letter-spacing: .1em; padding: 6px 11px; border: 1px solid var(--line); color: var(--ink-soft); }
.ic-links { display: flex; flex-direction: column; }
.ic-links a { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: var(--fs-cap); letter-spacing: .05em; transition: color .25s var(--ease); }
.ic-links a:first-child { border-top: 0; }
.ic-links a:hover { color: var(--accent-deep); }
.ic-links a .ext { color: var(--ink-faint); }

/* gallery */
.pd-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(14px,1.6vw,22px); }
.pd-gallery .ph { aspect-ratio: 4/3; box-shadow: var(--shadow-1); }

/* prev/next nav */
.pd-nav { border-top: 1px solid var(--line); }
.pd-nav .wrap { display: flex; justify-content: space-between; gap: 20px; padding-block: clamp(26px,4.5vh,48px); }
.pd-nav a { display: flex; flex-direction: column; gap: 6px; }
.pd-nav a.next { text-align: right; align-items: flex-end; }
.pd-nav .lbl { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.pd-nav .nm { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem,2.4vw,1.9rem); letter-spacing: -.02em; transition: color .25s var(--ease); }
.pd-nav a:hover .nm { color: var(--accent-deep); }

@media (max-width: 900px) {
  .pd-top { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .pd-body { grid-template-columns: 1fr; gap: 40px; }
  .pd-aside { position: static; }
  .pd-cover { aspect-ratio: 16/10; }
  .pd-gallery { grid-template-columns: 1fr; }
  .pd-gallery .ph:nth-child(2) { transform: none; }
}

/* ---------- supporter portraits (on dark) ---------- */
.sup-avatar { width: 72px; height: 72px; border-radius: 50%; flex: none; border: 1px solid rgba(255,255,255,.22); background: #1b1b19; background-image: repeating-linear-gradient(135deg, transparent 0 7px, rgba(255,255,255,.05) 7px 8px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sup-avatar span { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .08em; color: rgba(255,255,255,.42); text-transform: uppercase; }
.sup-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sup-avatar.sm { width: 54px; height: 54px; }
.sup-quote footer { display: flex; align-items: center; gap: 16px; }
.sup-item { display: flex; gap: 16px; align-items: flex-start; }
.sup-item .sup-item-body { flex: 1; }
.sup-item .sup-avatar { margin-top: 4px; }

/* ---------- footer supporter logos ---------- */
.foot-logos { margin-top: clamp(24px,3vh,40px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.foot-logos h4 { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.4); margin: 0 0 20px; font-weight: 400; }
.logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
.logo-cell { background: var(--ink); aspect-ratio: 16/7; display: flex; align-items: center; justify-content: center; padding: 14px; transition: background .3s var(--ease); }
.logo-cell:hover { background: #1c1c1a; }
.logo-cell span { font-family: var(--font-display); font-weight: 500; font-size: clamp(.8rem,1.3vw,1.05rem); letter-spacing: .02em; color: rgba(255,255,255,.5); white-space: nowrap; }
.logo-cell .mono { font-family: var(--font-mono); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; font-size: clamp(.66rem,1vw,.82rem); }
@media (max-width: 760px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   MOBILE RESPONSIVE PATCH
   Site-wide overrides for narrow screens.
   ============================================================ */

@media (max-width: 880px) {
  :root {
    --gutter: clamp(16px, 5vw, 28px);
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav {
    position: relative;
    min-height: 62px;
    padding-block: 10px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-ic {
    height: 24px;
    flex: none;
  }

  .brand-wm {
    max-width: min(42vw, 170px);
    height: 13px;
    object-fit: contain;
  }

  .nav .lang {
    display: inline-flex;
    margin-left: auto;
    flex: none;
  }

  .lang button {
    min-height: 36px;
    padding: 7px 10px;
  }

  .burger {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-left: 0;
  }

  .burger[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .burger[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links.open {
    gap: 0;
    max-height: calc(100vh - 62px);
    overflow-y: auto;
    padding-block: 12px;
    box-shadow: var(--shadow-1);
  }

  .nav-links.open a {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
    font-size: var(--fs-sm);
  }

  .nav-links.open a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 72px;
  }

  body {
    line-height: 1.7;
  }

  .section {
    padding-block: clamp(30px, 6vh, 48px);
  }

  .section-tight {
    padding-block: clamp(30px, 6vh, 48px);
  }

  .display,
  h1.display,
  h2.display,
  .pd-name {
    line-height: 1;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
  }

  h1.display,
  .pd-name {
    font-size: clamp(2rem, 12vw, 3.3rem);
  }

  h2.display {
    font-size: clamp(1.6rem, 8.8vw, 2.6rem);
  }

  .lead {
    max-width: none;
    font-size: var(--fs-body);
    line-height: 1.75;
  }

  .btn,
  .lnk,
  .pblock-link {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding-inline: 16px;
    text-align: center;
  }

  .ph .tag,
  .ph .ico {
    max-width: calc(100% - 24px);
    font-size: var(--fs-2xs);
    line-height: 1.35;
    white-space: normal;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-wordmark {
    white-space: normal;
    font-size: var(--fs-sm);
    letter-spacing: .1em;
  }

  .hero-title {
    margin-block: 20px 22px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
  }

  .strip {
    margin-top: 44px;
  }

  .strip-track {
    gap: 20px;
    font-size: var(--fs-label);
    padding-block: 12px;
  }

  .pillars,
  .policy-grid,
  .ph-stats {
    gap: 0;
  }

  .pillar,
  .policy,
  .stat,
  .join-card {
    padding: 26px 22px 30px;
  }

  .sec-head-row,
  .cta-inner,
  .pd-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .news-row a {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }

  .news-row a:hover {
    padding-inline: 0;
    background: transparent;
    box-shadow: none;
  }

  .nr-cat {
    width: max-content;
    padding-inline: 10px;
  }

  .nr-title {
    font-size: var(--fs-body);
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .nr-ar {
    display: none;
  }

  .feature {
    border-inline: 0;
    margin-inline: calc(var(--gutter) * -1);
  }

  .feat-body {
    padding: 24px var(--gutter) 30px;
  }

  .cat-row {
    flex-wrap: nowrap;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cat-row::-webkit-scrollbar {
    display: none;
  }

  .cat {
    min-height: 42px;
    flex: 0 0 auto;
  }

  .spec > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pd-cover {
    aspect-ratio: 4/3;
  }

  .pd-top-r,
  .pd-actions {
    width: 100%;
  }

  .status {
    white-space: normal;
  }

  .info-card .ic-sec {
    padding: 20px;
  }

  .info-card .kv {
    align-items: flex-start;
  }

  .info-card .kv dd {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .ic-links a {
    gap: 14px;
    overflow-wrap: anywhere;
  }

  .pd-nav .wrap {
    flex-direction: column;
  }

  .pd-nav a.next {
    text-align: left;
    align-items: flex-start;
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .foot-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 420px) {
  .brand-wm {
    max-width: 36vw;
  }

  .nav .lang {
    font-size: var(--fs-2xs);
  }

  .lang button {
    padding-inline: 8px;
  }

  .burger {
    width: 38px;
  }

  .sup-item,
  .sup-quote footer {
    align-items: flex-start;
  }

  .sup-avatar {
    width: 58px;
    height: 58px;
  }
}

/* ============================================================
   HERO — full-bleed background video (index ファーストビュー)
   ============================================================ */
.hero.has-video {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 64px);
  padding-block: clamp(36px, 8vh, 88px);
  overflow: hidden;
  /* section sits directly in <main>, so it already spans full width */
  width: 100%;
  background: #0A0A0A;
}
.hero.has-video .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
  filter: sepia(.18) saturate(.82) contrast(1.08) brightness(.74);
  transform: scale(1.03);
}
.hero.has-video .hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 43%,
      rgba(255,255,255,.06) 0%,
      rgba(8,8,8,.30) 46%,
      rgba(8,8,8,.62) 100%),
    rgba(8,8,8,.18);
}
.hero.has-video .hero-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-center {
  width: min(620px, 100%);
  min-height: min(54svh, 520px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding-block: clamp(18px, 4vh, 44px);
}

.hero-statement {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.8rem);
  line-height: 1.55;
  letter-spacing: .08em;
  text-shadow: 0 6px 26px rgba(0,0,0,.55);
}

.hero-statement span {
  display: block;
}

.hero-logo-lockup {
  margin-top: clamp(18px, 3.2vh, 32px);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(178px, 24vw, 360px);
  height: auto;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.38));
}

.hero-wordmark-logo {
  opacity: .9;
}

/* light text over the video */
.hero.has-video .hero-wordmark { color: #fff; }
.hero.has-video .display,
.hero.has-video .hero-title { color: #fff; }
.hero.has-video .lead { color: rgba(255,255,255,.84); }
.hero.has-video .mark { color: var(--ink); }
/* ghost CTA needs to read on dark */
.hero.has-video .btn.ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero.has-video .btn.ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

@media (max-width: 720px) {
  .hero.has-video {
    min-height: calc(100svh - 56px);
    padding-block: 38px;
  }
  .hero.has-video .hero-scrim {
    background:
      radial-gradient(circle at 50% 42%,
        rgba(255,255,255,.07) 0%,
        rgba(8,8,8,.36) 54%,
        rgba(8,8,8,.68) 100%),
      rgba(8,8,8,.20);
  }

  .hero-center {
    min-height: 56svh;
  }

  .hero-statement {
    font-size: clamp(1rem, 5.2vw, 1.45rem);
    line-height: 1.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.has-video .hero-video { display: none; }
  .hero.has-video {
    background: #0A0A0A url("assets/hero-poster.jpg") center/cover no-repeat;
  }
}
