/* PanoPage サイト共通のスタイル。
   外部のフォントや画像は読み込まない（「データを集めない」という説明と矛盾させないため）。 */

/* ===== 色と寸法 ===== */
:root {
  color-scheme: light dark;

  /* 色はアイコンに合わせている: 地の濃いグレー #1F2937、レンズのオレンジ #FF5A1F、白。
     --accent は図形や枠線用のオレンジ。文字に使うと白地でコントラストが足りないので、
     リンクなどの文字には少し濃い --brand を使う。 */
  --accent: #ff5a1f;
  --brand: #b93a0a;
  --brand-strong: #8f2c06;
  --brand-tint: #fff0e8;
  --btn-bg: #ff5a1f;
  --btn-bg-hover: #ff7a47;
  --btn-ink: #111827;

  --ink: #1f2937;
  --ink-2: #4b5563;
  --paper: #ffffff;
  --field: #f3f4f6;
  --line: #d5d9e0;

  /* マーカーの黄色。「強調」と「公開前に要確認」の印に使う。 */
  --marker: #ffe14d;
  --marker-tint: #fff7c4;
  --marker-edge: #b89600;

  --hero-bg: #1f2937;
  --hero-ink: #ffffff;
  --hero-ink-2: #d1d5db;
  --hero-line: rgba(255, 255, 255, 0.34);
  --hero-frame: #cbd0d8;

  /* 図（自前で描いた模式図）の色 */
  --ill-paper: #ffffff;
  --ill-ink: #1f2937;
  --ill-mid: #aeb4bf;
  --ill-soft: #e5e7eb;

  --focus: #b93a0a;
  --radius: 10px;
  --radius-sm: 6px;
  --wrap: 1120px;

  --font: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

/* 日本語・中国語では、欧文はそのまま、和文と中文だけ各 OS の標準フォントに任せる。 */
html:lang(ja) {
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI",
    "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
}
html:lang(zh-CN) {
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei",
    "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #ff6a33;
    --brand: #ff8a5c;
    --brand-strong: #ffb08f;
    --brand-tint: #2e2019;

    --ink: #f3f4f6;
    --ink-2: #a8b0bd;
    --paper: #141a24;
    --field: #0f141c;
    --line: #2f3947;

    --marker-tint: #37320f;
    --marker-edge: #d9b72b;

    --ill-paper: #1b2433;
    --ill-ink: #e5e7eb;
    --ill-mid: #6b7280;
    --ill-soft: #374151;

    --focus: #ff8a5c;
  }
}

/* ===== 土台 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* 翻訳の辞書を読み込むあいだだけ本文を隠す（英語が一瞬見えるのを防ぐ）。 */
html.i18n-pending body {
  visibility: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

html:lang(ja) body,
html:lang(zh-CN) body {
  line-height: 1.8;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

html:lang(ja) :is(h1, h2, h3),
html:lang(zh-CN) :is(h1, h2, h3) {
  line-height: 1.35;
  letter-spacing: 0;
}

/* 日本語は文節の途中で折り返さないようにする（対応ブラウザのみ）。 */
html:lang(ja) :is(h1, h2, h3, .lead) {
  word-break: auto-phrase;
}

p,
ul,
ol,
dl {
  margin: 0;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-strong);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

img,
svg {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 0.05em 0.5em;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.875em;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* ===== ヘッダー ===== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  display: block;
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 0.9375rem;
}

.site-nav a {
  padding-block: 6px;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.lang a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.lang a:hover {
  color: var(--ink);
}

.lang a[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* トップページでは、ヘッダーをヒーローの色の上に重ねる。 */
.site-header--hero {
  --focus: #ffffff;
  background: var(--hero-bg);
  border-bottom-color: transparent;
}

.site-header--hero .brand,
.site-header--hero .site-nav a {
  color: var(--hero-ink);
}

.site-header--hero .lang {
  border-color: var(--hero-line);
}

.site-header--hero .lang a {
  color: var(--hero-ink-2);
}

.site-header--hero .lang a:hover {
  color: var(--hero-ink);
}

.site-header--hero .lang a[aria-current="true"] {
  background: #ffffff;
  color: #1f2937;
}

@media (max-width: 760px) {
  .site-header__in {
    gap: 6px 12px;
  }

  /* ロゴと言語スイッチを 1 段目に並べる（入りきらない幅では言語スイッチが 2 段目に回る）。 */
  .brand {
    font-size: 1.0625rem;
  }

  .lang {
    font-size: 0.75rem;
  }

  .lang a {
    padding: 4px 8px;
  }

  /* 狭い画面ではナビゲーションを 2 段目に回す。 */
  .site-nav {
    order: 3;
    width: 100%;
    gap: 2px 18px;
  }
}

/* ===== ボタンと「準備中」表示 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-ink);
}

.btn--ghost {
  border-color: currentColor;
  background: transparent;
  color: var(--brand);
}

.btn--ghost:hover {
  background: var(--brand-tint);
  color: var(--brand-strong);
}

/* リンクがまだ無いときの表示。押せないことが分かるよう、破線の枠にしている。 */
.pending-pill {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 2px dashed var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

/* 押せるものではない案内（いまの Pro の入手方法など）。細い実線の枠。 */
.info-pill {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  /* 2 行になるときは、最後の 1 文字だけが折り返されないよう行の長さをそろえる。 */
  text-wrap: balance;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== ヒーロー ===== */
.hero {
  --focus: #ffffff;
  position: relative;
  z-index: 1;
  background: var(--hero-bg);
  color: var(--hero-ink);
}

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px clamp(32px, 6vw, 88px);
  align-items: start;
  padding-top: clamp(32px, 6vw, 64px);
}

.hero__text {
  padding-bottom: clamp(48px, 8vw, 96px);
}

.hero h1 {
  max-width: 13em;
  font-size: clamp(2.375rem, 4.6vw + 1rem, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

html:lang(ja) .hero h1,
html:lang(zh-CN) .hero h1 {
  font-size: clamp(2rem, 3.6vw + 1rem, 3.25rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero .lead {
  max-width: 34em;
  margin-top: 24px;
  color: var(--hero-ink-2);
  font-size: 1.1875rem;
}

.hero .cta-row {
  margin-top: 32px;
}

.hero .btn:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-ink);
}

.hero .btn--ghost {
  border-color: #ffffff;
  background: transparent;
  color: #ffffff;
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.hero .pending-pill,
.hero .info-pill {
  border-color: var(--hero-line);
  color: var(--hero-ink);
}

.hero__note {
  max-width: 36em;
  margin-top: 20px;
  color: var(--hero-ink-2);
  font-size: 0.9375rem;
}

/* 注記が 2 つ続くとき（対応ブラウザの説明 + 無料・試用の説明）は、間を詰めてひとまとまりに見せる。
   1 つ目が隠れているとき（Chrome や Edge で見ているとき）は、ふつうの間隔のままにする。 */
.hero__note:not([hidden]) + .hero__note {
  margin-top: 6px;
}

/* --- ヒーローの図: 画面に収まる範囲と、PanoPage が保存する範囲 --- */
.shot {
  --tile: 124px;
  --bar: 26px;
  --w: 232px;
  display: grid;
  grid-template-columns: minmax(0, 148px) var(--w);
  gap: 22px;
  align-self: end;
  margin: 0 0 -44px;
}

.shot__legend {
  display: grid;
  gap: 16px;
  align-content: start;
  margin-top: 30px;
  padding: 0;
  list-style: none;
  color: var(--hero-ink);
  font-size: 0.875rem;
  line-height: 1.4;
}

.shot__legend li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}

.shot__key {
  width: 22px;
  height: 16px;
  margin-top: 2px;
  border: 3px solid var(--hero-frame);
  border-radius: 3px;
}

.shot__key--capture {
  border-color: var(--accent);
}

.shot__stage {
  position: relative;
  width: var(--w);
  padding-top: var(--bar);
}

/* ブラウザの窓（上の帯と、1 画面ぶんの枠）。特定の製品の見た目は使わない。 */
.shot__bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: var(--bar);
  border-radius: 9px 9px 0 0;
  background: var(--hero-frame);
}

.shot__bar::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 34px;
  width: 46%;
  height: 10px;
  border-radius: 5px;
  background: #8a93a2;
}

.shot__bar::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8a93a2;
}

.shot__page {
  display: block;
  width: var(--w);
  height: calc(var(--tile) * 4);
}

.shot__window {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: calc(var(--bar) + var(--tile));
  border: 3px solid var(--hero-frame);
  border-radius: 9px 9px 3px 3px;
  pointer-events: none;
}

.shot__capture {
  position: absolute;
  top: calc(var(--bar) - 3px);
  right: -9px;
  left: -9px;
  height: calc(var(--tile) * 4 + 12px);
  border: 4px solid var(--accent);
  border-radius: 5px;
  pointer-events: none;
  animation: shot-grow 2.1s steps(3, end) 0.7s both;
}

/* 図の中の色（SVG の塗り） */
.shot .s-paper {
  fill: #ffffff;
}
.shot .s-ink {
  fill: #1f2937;
}
.shot .s-mid {
  fill: #aeb4bf;
}
.shot .s-soft {
  fill: #e5e7eb;
}
.shot .s-brand {
  fill: #ff5a1f;
}
.shot .s-foot {
  fill: #6b7280;
}

/* 2 枚目以降のタイルは、撮影が届くまで薄くしておく。 */
.shot__tile--2 {
  animation: shot-fill 0.25s linear 1.4s both;
}
.shot__tile--3 {
  animation: shot-fill 0.25s linear 2.1s both;
}
.shot__tile--4 {
  animation: shot-fill 0.25s linear 2.8s both;
}

/* つなぎ目の破線は、最後に消えて 1 枚の画像になる。 */
.shot__seam {
  stroke: #1f2937;
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  opacity: 0;
  animation: shot-seam 3.6s linear both;
}

@keyframes shot-grow {
  from {
    height: calc(var(--tile) + 12px);
  }
  to {
    height: calc(var(--tile) * 4 + 12px);
  }
}

@keyframes shot-fill {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}

@keyframes shot-seam {
  0%,
  85% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot__capture,
  .shot__tile,
  .shot__seam {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero__in {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__text {
    padding-bottom: 0;
  }

  .shot {
    --tile: 104px;
    --w: 216px;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    justify-self: center;
    gap: 20px;
    margin-bottom: -36px;
  }

  .shot__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    justify-content: center;
    margin-top: 0;
  }

  .shot__legend li {
    grid-template-columns: 22px auto;
  }
}

/* ===== セクション共通 ===== */
.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section--field {
  background: var(--field);
}

.section--after-hero {
  padding-top: clamp(88px, 10vw, 128px);
}

.section__head {
  max-width: 40em;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section h2 {
  font-size: clamp(1.75rem, 2vw + 1.1rem, 2.5rem);
  letter-spacing: -0.025em;
}

html:lang(ja) .section h2,
html:lang(zh-CN) .section h2 {
  font-size: clamp(1.5rem, 1.6vw + 1.05rem, 2.125rem);
  letter-spacing: 0;
}

.section__head p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 1.125rem;
}

.section__head .section__note {
  margin-top: 10px;
  font-size: 0.9375rem;
}

/* ===== 機能の一覧 ===== */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 28px clamp(32px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.feature h3 {
  font-size: 1.375rem;
}

.feature__text > p {
  max-width: 36em;
  margin-top: 12px;
}

.feature__list {
  display: grid;
  gap: 8px;
  max-width: 38em;
  margin-top: 16px;
  padding-left: 1.2em;
  color: var(--ink-2);
}

.feature__list li::marker {
  color: var(--accent);
}

/* 「誰でも試せる／書き出しは Pro」の注記 */
.tier {
  display: flex;
  gap: 10px;
  align-items: baseline;
  max-width: 38em;
  margin-top: 18px;
  font-size: 0.9375rem;
}

.badge {
  flex: none;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #111827;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.6;
}

/* 画像を置く側。中身は実際の画面を撮った画像（tools/make-screenshots.mjs）。 */
.feature__media {
  display: grid;
  gap: 16px;
  align-items: start;
}

.feature__media--pair {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.feature__media--sheets {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.shot-fig {
  margin: 0;
}

.shot-fig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.shot-fig figcaption {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* エディターの紹介: 文章を 2 段に分け、その下に実際の画面を大きく載せる。 */
.feature--showcase {
  grid-template-columns: minmax(0, 1fr);
}

.feature__text--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px clamp(32px, 6vw, 80px);
  align-items: start;
}

.feature__text--split .feature__list {
  margin-top: 4px;
}

.feature__text--split p:not(.tier) {
  max-width: 36em;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature__text--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature__text--split .feature__list {
    margin-top: 0;
  }
}

/* 狭い画面では、シートを選ぶ画面を小さめに置き、その下に撮影結果を幅いっぱいで見せる。 */
@media (max-width: 600px) {
  .feature__media--sheets {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature__media--sheets .shot-fig:first-child {
    max-width: 250px;
  }
}

/* ===== 無料と Pro の比較 ===== */
.compare-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.compare th,
.compare td {
  padding: 14px clamp(10px, 2vw, 20px);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare tbody tr:last-child > * {
  border-bottom: 0;
}

.compare thead th {
  font-size: 1.0625rem;
}

.compare tbody th {
  font-weight: 500;
}

.compare .compare__col {
  width: 24%;
}

.compare .compare__pro {
  background: var(--brand-tint);
}

.compare td {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  vertical-align: -5px;
}

.mark--yes path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark--no path {
  fill: none;
  stroke: var(--ill-mid);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.offer {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 32px);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
}

.offer h3 {
  font-size: 1.375rem;
}

.offer__price {
  margin-top: 6px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.offer__lead {
  max-width: 44em;
  margin-top: 10px;
}

.offer__points {
  display: grid;
  gap: 4px;
  max-width: 46em;
  margin-top: 10px;
  padding-left: 1.2em;
  color: var(--ink-2);
}

.offer .btn {
  margin-top: 18px;
}

@media (max-width: 760px) {
  .compare {
    font-size: 0.9375rem;
  }

  .compare .compare__col {
    width: 27%;
  }

  .compare td {
    font-size: 0.875rem;
  }
}

/* ===== 使い方 ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(24px, 4vw, 56px);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding-top: 18px;
  border-top: 3px solid var(--ink);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.steps p + p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.aside-note {
  max-width: 44em;
  margin-top: 32px;
  padding-left: 16px;
  border-left: 3px solid var(--line);
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== プライバシーの要点 ===== */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px clamp(24px, 4vw, 56px);
}

.facts h3 {
  font-size: 1.1875rem;
}

.facts p {
  margin-top: 8px;
  color: var(--ink-2);
}

.section__more {
  margin-top: 32px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== よくある質問 ===== */
.faq {
  max-width: 46em;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: grid;
  grid-template-columns: 1fr 20px;
  gap: 16px;
  align-items: center;
  padding-block: 18px;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* 開閉の印（＋ と −）を線で描く。 */
.faq summary::after {
  content: "";
  width: 16px;
  height: 16px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 16px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 16px no-repeat;
}

.faq details[open] summary::after {
  background: linear-gradient(var(--accent), var(--accent)) center / 16px 2px no-repeat;
}

.faq details > :not(summary) {
  margin-bottom: 18px;
  color: var(--ink-2);
}

/* ===== フッター ===== */
.site-footer {
  padding-block: 40px 56px;
  border-top: 1px solid var(--line);
  background: var(--field);
  color: var(--ink-2);
  font-size: 0.875rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

.site-footer__nav a {
  color: var(--ink);
}

.site-footer p {
  max-width: 60em;
}

.site-footer p + p {
  margin-top: 8px;
}

/* ===== 文書ページ（プライバシーポリシー・サポート・購入条件） ===== */
.doc {
  padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px);
}

.doc__in {
  max-width: 46em;
}

.doc h1 {
  font-size: clamp(2rem, 3vw + 1.1rem, 2.875rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

html:lang(ja) .doc h1,
html:lang(zh-CN) .doc h1 {
  font-size: clamp(1.75rem, 2.4vw + 1.05rem, 2.375rem);
  font-weight: 700;
  letter-spacing: 0;
}

.doc__meta {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.doc__lead {
  margin-top: 24px;
  font-size: 1.1875rem;
}

.doc h2 {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 1.5rem;
}

.doc h3 {
  margin-top: 28px;
  font-size: 1.125rem;
}

.doc :is(p, ul, ol, dl, .pending) + :is(p, ul, ol, dl, .pending),
.doc :is(h2, h3) + :is(p, ul, ol, dl, .pending) {
  margin-top: 14px;
}

.doc ul,
.doc ol {
  display: grid;
  gap: 8px;
  padding-left: 1.3em;
}

.doc li::marker {
  color: var(--accent);
}

/* 権限とその理由の一覧 */
.terms-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.terms-list > div {
  display: grid;
  grid-template-columns: 11em minmax(0, 1fr);
  gap: 4px 24px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.terms-list dt {
  font-weight: 600;
}

.terms-list dd {
  margin: 0;
  color: var(--ink-2);
}

@media (max-width: 600px) {
  .terms-list > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 公開前に確認が必要な箇所。マーカーの色で目立たせる。 */
.pending {
  padding: 16px 18px;
  border: 2px dashed var(--marker-edge);
  border-radius: var(--radius);
  background: var(--marker-tint);
}

.pending__label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--marker);
  color: #111827;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.6;
}

.pending > :is(p, ul) + :is(p, ul) {
  margin-top: 10px;
}

.contact-card {
  margin-top: 24px;
  padding: clamp(18px, 3vw, 28px);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
}

.contact-card__address {
  font-size: clamp(1.25rem, 2vw + 0.9rem, 1.625rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-card p + p {
  margin-top: 8px;
  color: var(--ink-2);
}

/* キーの組み合わせは途中で折り返さない。 */
.keys {
  white-space: nowrap;
}
