/* NEXGIA DRIVE — 公式サイト デザイントークン
   ベース: 黒 (#0b0b0c) + 白文字 + 控えめゴールド差し色
   フォント: Noto Sans JP (和文) / Inter (英字) */

:root {
  --bg: #0b0b0c;
  --bg-elev: #131315;
  --bg-elev-2: #1a1a1d;
  --bg-elev-3: #202023;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f4f2ee;
  --text-dim: #b8b4ac;
  --text-faint: #7d7972;

  --gold: #d5b25e;
  --gold-2: #e9bf73;
  --gold-soft: rgba(213, 178, 94, 0.16);
  --gold-line: rgba(213, 178, 94, 0.38);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.42);

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Inter", "Noto Sans JP", sans-serif;

  /* page-home 専用: 明朝系ディスプレイ書体(見出し用)。JA/ENで切替(html[lang]) */
  --font-jp-display: "Klee One", "Noto Serif JP", serif;
  --font-en-display: "Cormorant Garamond", "Playfair Display", serif;
  --font-display: var(--font-jp-display);

  --container: 1120px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[lang="en"] { --font-display: var(--font-en-display); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en), var(--font-jp);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.4; color: var(--text); }
::selection { background: var(--gold-soft); color: var(--text); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 11, 12, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-en);
  letter-spacing: 0.06em;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}
.brand__sub {
  font-weight: 800;
  font-size: 18px;
  color: var(--gold);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.site-nav a {
  color: var(--text-dim);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.is-active {
  color: var(--gold-2);
  border-bottom-color: var(--gold-line);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}
.lang-switch__current { color: var(--gold-2); font-weight: 600; }
.lang-switch__divider { color: var(--text-faint); }
.lang-switch__link { color: var(--text-faint); }
.lang-switch__link:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ---------- hero ---------- */
.hero {
  padding: 96px 24px 72px;
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(213, 178, 94, 0.10), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-jp);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
.hero__title .accent { color: var(--gold-2); }
.hero__subtitle {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: 17px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #16130a;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost {
  background: var(--bg-elev);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--gold-line); color: var(--gold-2); }
.btn.is-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* ---------- hero v2 (home page hero) ---------- */
.hero-v2 {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-v2__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-v2__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-v2__bg-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 6, 7, 0.78) 0%, rgba(6, 6, 7, 0.42) 42%, rgba(6, 6, 7, 0.20) 58%, rgba(6, 6, 7, 0.62) 100%),
    linear-gradient(180deg, rgba(6, 6, 7, 0.18), rgba(6, 6, 7, 0.30) 65%, rgba(6, 6, 7, 0.82) 100%);
}
.hero-v2__sweep {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  transform: scaleX(0);
  transform-origin: left center;
}
.hero-v2__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
  padding: 128px 24px 84px;
}
.hero-v2__copy {
  flex: 0 0 40%;
  max-width: 480px;
}
.hero-v2__frame-wrap {
  flex: 0 0 55%;
  margin-left: auto;
}
.hero-v2__title {
  font-family: var(--font-jp);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 900;
  line-height: 1.35;
  margin: 20px 0 18px;
  letter-spacing: 0.01em;
}
.hero-v2__title .accent { color: var(--gold-2); }
.hero-v2__subtitle {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 440px;
  margin: 0 0 32px;
}
.hero-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-v2__sweep { animation: heroSweep 0.9s ease-out forwards; }
  .hero-v2__copy {
    opacity: 0;
    transform: translateY(18px);
    animation: heroFadeUp 0.6s ease-out 0.35s forwards;
  }
  .hero-v2__frame-wrap .device-frame {
    opacity: 0;
    transform: scale(0.96);
    animation: heroFrameIn 0.6s ease-out 0.5s forwards;
  }
}
@keyframes heroSweep {
  0% { transform: scaleX(0); opacity: 1; }
  55% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFrameIn {
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .hero-v2 { min-height: auto; }
  .hero-v2__inner { flex-direction: column; align-items: stretch; padding: 100px 20px 56px; gap: 36px; }
  .hero-v2__copy, .hero-v2__frame-wrap { flex: 1 1 auto; max-width: 100%; margin-left: 0; }
  .hero-v2__subtitle { max-width: 100%; }
}

/* ---------- device frame (reused for hero + gallery + feature media) ---------- */
.device-frame {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #050505;
  border: 1px solid var(--gold-line);
  box-shadow: 0 0 0 1px rgba(213, 178, 94, 0.10), var(--shadow-lg);
  transition: border-color 0.2s ease;
}
.device-frame--crossfade { aspect-ratio: 1920 / 844; }
.device-frame--crossfade .device-frame__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease;
}
.device-frame--crossfade .device-frame__slide.is-active { opacity: 1; }
.device-frame--static { aspect-ratio: 1920 / 844; }
.device-frame--static img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* DRIVE LOG section only: the source screenshot is taller relative to the
   frame than the other device-frame images, so a centered crop clips the
   DRIVE LOG header row at the top. Anchor to the top instead so only the
   bottom gets cropped. Scoped to this class so hero/gallery frames are
   unaffected. */
.device-frame--drivelog img { object-position: top; }
.device-frame--gallery {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-frame--gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- sections ---------- */
.section {
  padding: 72px 24px;
}
.section--tight { padding: 48px 24px; }
.section__head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section__eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}
.section__title {
  font-family: var(--font-jp);
  font-size: clamp(22px, 3.4vw, 30px);
  margin: 0 0 12px;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section__lead { color: var(--text-dim); }

.feature-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: var(--gold-line);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(213, 178, 94, 0.10);
}
.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}
.feature-card__icon svg {
  width: 22px;
  height: 22px;
}
.feature-card__title {
  font-size: 16px;
  margin: 0 0 8px;
}
.feature-card__text {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
}

.notice-panel {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}
.notice-panel h3 {
  margin-top: 0;
  color: var(--gold-2);
  font-size: 16px;
}
.notice-panel p { color: var(--text-dim); margin-bottom: 0; font-size: 14px; }
.notice-panel a { color: var(--gold-2); }

/* ---------- scroll reveal (home page) ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

/* ---------- stats ---------- */
.stats-section {
  padding: 56px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.stats-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-card__value {
  font-family: var(--font-en);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--gold-2);
  line-height: 1;
}
.stat-card__label {
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 14px;
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- gallery ---------- */
.gallery-section { position: relative; overflow: hidden; }
.gallery-section > * { position: relative; z-index: 1; }
.gallery-section__bg { position: absolute; inset: 0; z-index: 0 !important; }
.gallery-section__bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.gallery-section__bg-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,6,7,0.90) 0%, rgba(6,6,7,0.56) 30%, rgba(6,6,7,0.50) 70%, rgba(6,6,7,0.90) 100%),
    linear-gradient(90deg, rgba(6,6,7,0.22), rgba(6,6,7,0.06) 50%, rgba(6,6,7,0.22));
}

.gallery-scroll {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.gallery-card {
  flex: 0 0 auto;
  width: 340px;
  scroll-snap-align: start;
}
.gallery-card .device-frame:hover,
.gallery-card:focus-within .device-frame {
  border-color: var(--gold-2);
}
.gallery-card__caption {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-dim);
}
@media (max-width: 720px) {
  .gallery-card { width: 78vw; }
}

/* ---------- split sections (controller mapping / DRIVE LOG) ---------- */
.split-section__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}
.split-section__copy { flex: 1 1 420px; }
.split-section__media { flex: 1 1 480px; }
.split-section__title {
  font-family: var(--font-jp);
  font-size: clamp(22px, 3.2vw, 28px);
  margin: 14px 0 14px;
}
.split-section__lead {
  color: var(--text-dim);
  margin: 0 0 22px;
}
.split-section__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.split-section__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-dim);
  font-size: 15px;
}
.split-section__list li::before {
  content: "—";
  color: var(--gold);
  flex-shrink: 0;
}
@media (max-width: 860px) {
  .split-section__inner { flex-direction: column; align-items: stretch; }
}

/* ---------- controller section: full-width photo w/ overlay copy on top,
   bullet list + mapping screenshot side-by-side below (2026-09-07: replaces
   the old copy-left/photo+inset-right layout — owner asked to drop the
   screenshot-over-photo overlap) ---------- */
.controller-section__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.controller-hero {
  /* 横いっぱい(フルブリード): コンテナから外へ広げる。上下は金の細線だけ */
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: clamp(420px, 44vw, 640px);
  border-radius: 0;
  overflow: hidden;
  background: #050505;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}
.controller-section { overflow-x: clip; }
.controller-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.controller-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.86) 0%, rgba(5, 5, 5, 0.5) 50%, rgba(5, 5, 5, 0) 78%);
}
.controller-hero__copy {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
}
.controller-hero__copy > * { max-width: 620px; }
.controller-hero__title {
  font-family: var(--font-jp);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  margin: 14px 0;
}
.controller-hero__lead {
  color: var(--text-dim);
  margin: 0;
}
.controller-bottom { margin-top: 40px; }
/* 写真の被写体が左にいる時は文字を右へ(DRIVE LOG) */
.controller-hero--right .controller-hero__scrim {
  background: linear-gradient(270deg, rgba(5, 5, 5, 0.86) 0%, rgba(5, 5, 5, 0.5) 50%, rgba(5, 5, 5, 0) 78%);
}
.controller-hero--right .controller-hero__copy > * { margin-left: auto; }
.controller-hero--right .controller-hero__copy { text-align: left; }
.controller-hero--right .controller-hero__img { object-position: 35% center; }
/* .split-section__copy/__media set flex-basis in px meant for the row
   layout's width; when .split-section__inner switches to column at
   <=860px that basis is read as a *height*, stretching this block's much
   shorter bullet list to match the taller media pane. Reset to auto here
   (scoped to this new block only, not the shared drivelog split-section)
   so both panes size to their own content when stacked. */
@media (max-width: 860px) {
  .controller-bottom.split-section__inner > .split-section__copy,
  .controller-bottom.split-section__inner > .split-section__media {
    flex: 0 1 auto;
  }
}
@media (max-width: 640px) {
  .controller-hero { height: auto; }
  .controller-hero__img { position: static; width: 100%; height: 260px; }
  .controller-hero__scrim { display: none; }
  .controller-hero__copy {
    position: static;
    height: auto;
    max-width: none;
    padding: 20px 20px 24px;
  }
  .controller-hero__title { font-size: 20px; }
  .controller-hero__lead { font-size: 14px; }
}

/* ---------- trust (backup / update / compatibility) ---------- */
.trust-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}
.trust-card h3 { margin: 0 0 10px; font-size: 16px; color: var(--gold-2); }
.trust-card p { margin: 0; color: var(--text-dim); font-size: 14px; }
.trust-card .compat-list { margin-top: 14px; }
.trust-card .compat-list li { font-size: 13.5px; padding: 8px 0; }
@media (max-width: 860px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ---------- final CTA ---------- */
.cta-panel {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-elev);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
}
.cta-panel h2 {
  font-family: var(--font-jp);
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 14px;
}
.cta-panel p { color: var(--text-dim); margin: 0 0 30px; }
.cta-panel .hero__actions { justify-content: center; }
.cta-panel__form { margin: 20px 0 0; font-size: 13.5px; }
.cta-panel__form a { color: var(--text-faint); text-decoration: underline; }
@media (max-width: 720px) {
  .cta-panel { padding: 40px 24px; }
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 24px 32px;
  background: var(--bg);
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.site-footer__brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-en);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.site-footer__disclaimer {
  font-size: 12.5px;
  color: var(--text-faint);
  max-width: 720px;
  line-height: 1.8;
}
.site-footer__links {
  margin: 16px 0;
  font-size: 13px;
  color: var(--text-dim);
}
.site-footer__links .dot { margin: 0 8px; color: var(--text-faint); }
.site-footer__copy {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 0;
}

/* ---------- page header (manual / changelog / 404) ---------- */
.page-hero {
  padding: 56px 24px 32px;
  border-bottom: 1px solid var(--border);
}
.page-hero__inner { max-width: var(--container); margin: 0 auto; }
.page-hero__eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}
.page-hero__title {
  font-family: var(--font-jp);
  font-size: clamp(24px, 4vw, 34px);
  margin: 0;
}
.page-hero__lead { color: var(--text-dim); margin: 10px 0 0; }

/* ---------- manual layout ---------- */
.manual-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 96px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 18px 16px;
}
.toc__title {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 12px;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc > ul > li { margin-bottom: 4px; }
.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 13.5px;
  border-left: 2px solid transparent;
}
.toc a:hover { color: var(--text); text-decoration: none; background: var(--bg-elev-2); }
.toc a.is-active {
  color: var(--gold-2);
  border-left-color: var(--gold);
  background: var(--gold-soft);
}
.toc ul ul {
  margin-left: 10px;
  border-left: 1px solid var(--border);
}
.toc ul ul a { font-size: 12.5px; color: var(--text-faint); }

.toc-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
  cursor: pointer;
}
.toc-toggle::after { content: "▾"; color: var(--gold); transition: transform 0.2s ease; }
.toc-toggle.is-open::after { transform: rotate(180deg); }

.manual-content {
  min-width: 0;
}
.chapter {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.chapter:last-child { border-bottom: none; margin-bottom: 0; }
.chapter h2 {
  font-family: var(--font-jp);
  font-size: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gold-line);
  margin: 0 0 20px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.chapter h3 {
  font-size: 17px;
  color: var(--gold-2);
  margin: 32px 0 12px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.chapter p { color: var(--text-dim); }
.chapter strong { color: var(--text); }

/* 経路表記チップ 例: 設定 → 画面 → サイドバー */
.path-chip, .chapter code.path {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold-2);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13.5px;
  font-family: var(--font-jp);
  white-space: nowrap;
}

/* ※注意 ブロック */
.chapter blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border: 1px solid var(--gold-line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--text-dim);
  font-size: 14.5px;
}
.chapter blockquote p { margin: 0; }
.chapter blockquote p:first-child::before {
  content: "※ 注意";
  display: block;
  color: var(--gold-2);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.chapter ol { padding-left: 22px; color: var(--text-dim); }
.chapter ol li { margin-bottom: 8px; padding-left: 4px; }
.chapter ul { padding-left: 22px; color: var(--text-dim); }
.chapter ul li { margin-bottom: 6px; }

.chapter table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  overflow-x: auto;
  display: block;
}
.chapter table thead { background: var(--bg-elev-2); }
.chapter table th, .chapter table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.chapter table th { color: var(--gold-2); font-weight: 600; }
.chapter table td { color: var(--text-dim); }

/* サイドバー表のアプリ実アイコン。金色PNGは背景無しでも視認できるが、
   ボタンらしく見えるよう控えめな暗色チップで囲む(既存トークン流用)。 */
.sb-icon {
  display: inline-block;
  height: 28px;
  width: auto;
  vertical-align: middle;
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.sb-icon + .sb-icon { margin-left: 6px; }

.chapter code {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.92em;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--gold-2);
}
.chapter pre {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
}
.chapter pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
}

/* スクリーンショット枕 */
.chapter figure {
  margin: 24px 0;
}
.chapter figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.chapter figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1920 / 720;
  width: 100%;
  max-width: 100%;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* 初回起動フロー等: 大きさの違う画面を同じ枠で並べる */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.shot-grid figure { margin: 0; }
.shot-grid img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
@media (max-width: 640px) {
  .shot-grid { grid-template-columns: 1fr; }
}

/* ヒーロー見出しは指定した改行位置だけで折り返す */
.page-home .hero-v2__title { white-space: nowrap; }
@media (max-width: 400px) { .page-home .hero-v2__title { white-space: normal; } }

/* ---------- changelog ---------- */
.changelog-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.changelog-item {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.changelog-item__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.changelog-item__version {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--gold-2);
  font-size: 15px;
}
.changelog-item__date {
  font-size: 12.5px;
  color: var(--text-faint);
}
.changelog-item__body { color: var(--text-dim); font-size: 14.5px; }
.changelog-item__body p:first-child { margin-top: 0; }
.changelog-item__body p:last-child { margin-bottom: 0; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
}
.error-page__code {
  font-family: var(--font-en);
  font-size: 88px;
  font-weight: 800;
  color: var(--gold);
  margin: 0;
  letter-spacing: 0.02em;
}
.error-page__title { margin: 8px 0 12px; }
.error-page__text { color: var(--text-dim); margin-bottom: 28px; }

/* ---------- compat notice list ---------- */
.compat-list {
  max-width: 820px;
  margin: 24px auto 0;
  list-style: none;
  padding: 0;
  color: var(--text-dim);
  font-size: 14.5px;
}
.compat-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.compat-list li:last-child { border-bottom: none; }
.compat-list li::before {
  content: "—";
  color: var(--gold);
  flex-shrink: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .manual-layout { grid-template-columns: 1fr; }
  .toc {
    position: static;
    max-height: none;
    display: none;
  }
  .toc.is-open { display: block; }
  .toc-toggle { display: flex; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .lang-switch { display: none; }
  .hero { padding: 64px 20px 48px; }
  .section { padding: 52px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .changelog-item { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

.site-header.is-open .site-nav {
  display: flex;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 24px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header.is-open .lang-switch { display: inline-flex; margin-top: 8px; }

/* ---------- page-home: 高級感タイポグラフィ (2026-09-07 オーナー指示)
   トップページ(製品情報)のみに適用。説明書/更新履歴/404は対象外。
   見出し=明朝系ディスプレイ書体(JA: Klee One / EN: Cormorant Garamond)、
   ラベル=Inter細字大文字字間広め、数字=Cormorant Garamondの大きな数字、
   本文=既存フォントのままウェイトを落として行間を広げる。 ---------- */

.page-home .hero__eyebrow,
.page-home .section__eyebrow {
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.page-home .hero-v2__title,
.page-home .section__title,
.page-home .split-section__title,
.page-home .controller-hero__title,
.page-home .cta-panel h2 {
  font-family: var(--font-display), serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.page-home .hero-v2__title {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.15;
}
html[lang="en"] .page-home .hero-v2__title {
  font-size: clamp(24px, 2.8vw, 36px);
}

.page-home .stat-card__value {
  font-family: var(--font-en-display);
  font-weight: 500;
}
.page-home .stat-card__label {
  font-family: var(--font-en);
}

.page-home .hero-v2__subtitle,
.page-home .section__lead,
.page-home .split-section__lead,
.page-home .split-section__list li,
.page-home .controller-hero__lead,
.page-home .feature-card__text,
.page-home .trust-card p,
.page-home .cta-panel p,
.page-home .notice-panel p,
.page-home .stat-card__label {
  font-weight: 300;
  line-height: 1.9;
}

.page-home .feature-card__title {
  font-weight: 500;
}

.page-home .btn {
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
