/* ═══════════════════════════════════════════════════════════════
   pages.css — 下層ページ（利用規約／プライバシー／TestFlight案内／お問い合わせ）
   2026-07-30 制作: Claude Code（/design の制作構造を通す）

   設計の前提（トップと同じ言語で作る）
   ・主役は1つ＝「読ませる本文」。実機やチェキは置かない（トップの主役と競合させない）
   ・借りる部品はトップから: 貼り紙チップ(.sheet-chip) / 淡い大番号(.big-num) /
     白カード(.card) / 丸チップのメニュー / アプリFAB同値のCTA(.cta)
   ・色を消しても階層が分かること（見出しは字の太さと大きさで階層を作り、色に依存しない）
   ・装飾は足さない（発光・粒子・意味のないグラデ・回路模様は使わない）
   ・媒体: 招待リンクはiPhoneで開かれる。スマホ最優先で組み、PCは行長を制御して読み物にする
   ═══════════════════════════════════════════════════════════════ */

:root {
  --header-h: 80px;
  --site-bg: #FAF8F4;
  --bg: #F4F1EA;
  --card: #FEFCFB;
  --ink: #1A1714;
  --sub: #5C5042;
  --meta: #6E6255;
  --line: #E5E0D9;
  --accent: #EE9070;
  --accent-deep: #B45332;
  --accent-soft: #FDEEE5;
  --brand-icon-coral: #ED9073;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --num: "DM Sans", var(--round);
  --page: min(1184px, calc(100vw - 96px));
  /* 行長: 14.5pxで全角44字相当。日本語は45字を超えると視線が戻れなくなる（実測で47字→是正） */
  --reading: min(636px, calc(100vw - 48px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--site-bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-deep);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 6px 18px rgba(60, 45, 25, .2);
  color: var(--ink);
  font-family: var(--round);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ── ヘッダー（トップと同じ見た目・同じ丸チップメニュー） ───────────── */
.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(92, 80, 66, .1);
  background: rgba(250, 248, 244, .94);
  backdrop-filter: saturate(1.4) blur(10px);
}

.header-inner {
  width: var(--page);
  height: var(--header-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #D17250; /* トップと同色（2026-08-06 社長「全てindexとヘッダーは統一」） */
  font-family: var(--round);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .13em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 44px;
  overflow: hidden;
  flex: 0 0 auto;
}

/* トップ側の是正（2026-07-30「ロゴの頭が切れる」＝拡大率265%・+1.2px下げ）と同値に統一 */
.brand-mark img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 265%;
  max-width: none;
  transform: translate(-50%, calc(-50% + 1.2px));
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.4vw, 36px);
  font-family: var(--round);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  /* 見た目は変えず、当たり判定だけ44pxに広げる */
  min-height: 44px;
  color: var(--sub);
  text-decoration: none;
  transition: color .2s;
}

.header-nav a:hover,
.header-nav a[aria-current] {
  color: var(--accent-deep);
}

/* CTA＝アプリのFABと同値（グラデ・内側の白ハイライト・コーラルの影） */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 23px;
  /* 2026-08-04: 一度AA(4.5)対応で濃くしたが、社長指示で**元の色へ戻した**。
     コントラストは 2.53（AA未達）だが、「CTAはアプリのFABと同値」を優先する。
     ＝ wiki/決定.md の確定どおり。 */
  background: linear-gradient(150deg, #F0A079 0%, #C2603A 100%);
  color: #FEFDFB;
  font-family: var(--round);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow:
    0 8px 22px rgba(194, 96, 58, .42),
    inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .18s, box-shadow .18s;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 26px rgba(194, 96, 58, .46),
    inset 0 1px 0 rgba(255, 255, 255, .45);
}

.cta-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--card);
  box-shadow:
    0 1px 2px rgba(60, 45, 25, .08),
    0 6px 16px rgba(60, 45, 25, .07);
  color: var(--accent-deep);
  font-family: var(--round);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  box-shadow:
    0 1px 2px rgba(60, 45, 25, .08),
    0 6px 14px -6px rgba(60, 45, 25, .22);
  color: var(--brand-icon-coral);
  cursor: pointer;
}

.mobile-menu-toggle-lines {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.mobile-menu-toggle-lines i {
  position: absolute;
  left: 0;
  display: block;
  height: 2.6px;
  border-radius: 3px;
  background: currentColor;
  transition: transform .25s ease, top .25s ease, width .25s ease;
}

.mobile-menu-toggle-lines i:nth-child(1) { top: 1px; width: 18px; }
.mobile-menu-toggle-lines i:nth-child(2) { top: 8.5px; right: 0; left: auto; width: 12px; }

.site-header.is-open .mobile-menu-toggle-lines i:nth-child(1) {
  top: 4.7px;
  transform: rotate(40deg);
}

.site-header.is-open .mobile-menu-toggle-lines i:nth-child(2) {
  top: 4.7px;
  right: auto;
  left: 0;
  width: 18px;
  transform: rotate(-40deg);
}

/* ── 本文の器 ─────────────────────────────────────────────── */
main {
  padding-top: var(--header-h);
}

.reading {
  width: var(--reading);
  margin: 0 auto;
}

/* 本文は44字で折るが、カード/FAQ/手順の並びは狭すぎると間延びする。
   「読む列」と「並べる列」で幅を分ける（媒体から逆算）
   :has() 非対応環境では読む列の幅（狭い方）にフォールバックする＝崩れない */
.reading:has(.faq-list),
.reading:has(.grid-2),
.reading:has(.closing-inner),
.reading:has(.steps) {
  width: min(860px, calc(100vw - 48px));
}

@supports not selector(:has(*)) {
  /* 幅を出せないぶん、詰まって見えないよう最低限の間隔を確保する */
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .closing-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.page-head {
  padding: clamp(48px, 7vw, 88px) 0 clamp(26px, 3.4vw, 38px);
}

.sheet-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 10px;
  background: var(--card);
  box-shadow:
    0 1px 2px rgba(60, 45, 25, .08),
    0 6px 16px rgba(60, 45, 25, .07);
  color: var(--ink);
  font-family: var(--round);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  transform: rotate(-.7deg);
}

.page-head h1 {
  margin: 18px 0 0;
  font-family: var(--round);
  font-size: clamp(30px, 5.2vw, 44px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.24;
}

.page-head .lead {
  /* 器が「並べる列」(860px)に広がるページでも、文章は44字で折る（実測 59字→是正） */
  max-width: 636px;
  margin: 14px 0 0;
  color: var(--sub);
  font-size: 14.5px;
  line-height: 1.9;
}

.page-head h1 {
  max-width: 636px;
}

.page-meta {
  margin: 20px 0 0;
  color: var(--meta);
  font-family: var(--num);
  font-size: 12.5px;
  letter-spacing: .04em;
}

/* ── 要点カード（本文の前に置く「先に知りたいこと」） ───────────── */
.summary-card {
  margin: 0 0 clamp(30px, 4vw, 44px);
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 30px);
  border-radius: 18px;
  background: var(--card);
  box-shadow:
    0 1px 2px rgba(60, 45, 25, .07),
    0 14px 34px -18px rgba(60, 45, 25, .3);
}

.summary-card h2 {
  margin: 0 0 14px;
  font-family: var(--round);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
}

.summary-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-card li {
  position: relative;
  padding: 0 0 0 26px;
  color: var(--sub);
  font-size: 14px;
  line-height: 1.85;
}

.summary-card li + li {
  margin-top: 10px;
}

.summary-card li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.summary-card li b {
  color: var(--ink);
  font-weight: 700;
}

/* ── 目次 ─────────────────────────────────────────────────── */
.toc {
  margin: 0 0 clamp(34px, 4.4vw, 52px);
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.toc h2 {
  margin: 0 0 12px;
  color: var(--meta);
  font-family: var(--round);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
}

.toc ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 24px;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.6;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  margin-right: 9px;
  /* 条番号は情報。accent(#EE9070)は対背景2.23で不足するためaccent-deep(4.69)を使う */
  color: var(--accent-deep);
  font-family: var(--num);
  font-size: 11.5px;
  font-weight: 700;
}

.toc a:hover {
  color: var(--accent-deep);
}

/* ── 法務本文 ─────────────────────────────────────────────── */
.legal-body {
  padding-bottom: clamp(56px, 8vw, 104px);
}

.legal-body > p,
.legal-body > ul,
.legal-body > ol {
  margin: 0 0 1.5em;
  color: var(--sub);
  font-size: 14.5px;
  line-height: 1.95;
}

.legal-body section {
  padding-top: clamp(30px, 4vw, 44px);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.legal-body section + section {
  border-top: 1px solid var(--line);
}

.legal-body h2 {
  display: flex;
  margin: 0 0 .9em;
  align-items: baseline;
  gap: 12px;
  font-family: var(--round);
  font-size: clamp(18px, 2.5vw, 21px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.45;
}

.legal-body h2 .art {
  flex: 0 0 auto;
  /* 「第1条」は情報。コントラスト確保のためaccent-deep */
  color: var(--accent-deep);
  font-family: var(--num);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.legal-body h3 {
  margin: 1.9em 0 .7em;
  font-family: var(--round);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .01em;
}

.legal-body ul {
  padding-left: 0;
  list-style: none;
}

.legal-body ul li {
  position: relative;
  padding-left: 20px;
}

.legal-body ul li + li {
  margin-top: .55em;
}

.legal-body ul li::before {
  content: "";
  position: absolute;
  top: .82em;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(194, 96, 58, .42);
}

.legal-foot {
  margin-top: clamp(38px, 5vw, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--meta);
  font-size: 13px;
  line-height: 1.9;
}

.legal-foot p {
  margin: 0 0 .6em;
}

/* ── 手順（TestFlight案内） ───────────────────────────────── */
.steps {
  padding: 0 0 clamp(44px, 6vw, 72px);
  counter-reset: step;
}

.step {
  position: relative;
  padding: clamp(26px, 3.6vw, 34px) 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.step > .big-num {
  position: absolute;
  top: clamp(20px, 3vw, 26px);
  left: 0;
  z-index: 0;
  color: rgba(194, 96, 58, .13);
  font-family: var(--num);
  font-size: clamp(50px, 9vw, 66px);
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: .78;
  pointer-events: none;
  user-select: none;
}

.step > .big-num::after {
  content: counter(step, decimal-leading-zero);
}

/* 手順ページでは番号が「いま何番目か」の情報。トップの重ね方は借りつつ、
   番号が読み切れる分だけ本文を右へ寄せる（実測: 46pxの番号に対し本文開始48px） */
.step-body {
  position: relative;
  z-index: 1;
  padding-left: clamp(48px, 8vw, 62px);
}

.step h2 {
  margin: 0;
  font-family: var(--round);
  font-size: clamp(17px, 2.6vw, 20px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.5;
}

.step p {
  margin: 10px 0 0;
  color: var(--sub);
  font-size: 14px;
  line-height: 1.9;
}

/* 画面に実際に出るボタン名。装飾でなく「押すもの」の実物を見せる */
.tap {
  display: flex;
  margin: 14px 0 0;
  flex-wrap: wrap;
  gap: 8px;
}

.tap span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(194, 96, 58, .28);
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--round);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.tap span::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 7px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: .5;
}

/* ── 汎用セクション ───────────────────────────────────────── */
.band {
  padding: clamp(48px, 7vw, 84px) 0;
  background: var(--bg);
}

.band-head {
  margin: 0 0 clamp(22px, 3vw, 32px);
}

.band-head h2 {
  margin: 12px 0 0;
  font-family: var(--round);
  font-size: clamp(21px, 3.4vw, 28px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.36;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  padding: 22px 22px 24px;
  border-radius: 16px;
  background: var(--card);
  box-shadow:
    0 1px 2px rgba(60, 45, 25, .07),
    0 10px 26px -16px rgba(60, 45, 25, .26);
}

/* 2026-08-02: confirmed.html / 404.html は h1 の次が h3 で階層が飛んでいたため
   カード見出しを h2 に上げた。見た目は変えないので同じ指定を効かせる。 */
.card h3,
.card .card-title {
  margin: 0 0 9px;
  font-family: var(--round);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.5;
}

.card p {
  margin: 0;
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.85;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: 14px;
  background: var(--card);
  box-shadow:
    0 1px 2px rgba(60, 45, 25, .06),
    0 8px 20px -14px rgba(60, 45, 25, .24);
}

.faq-item summary {
  display: flex;
  padding: 17px 20px;
  align-items: baseline;
  gap: 11px;
  cursor: pointer;
  font-family: var(--round);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.6;
  list-style: none;
}

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

.faq-item summary::before {
  content: "Q";
  flex: 0 0 auto;
  color: var(--accent-deep);
  font-family: var(--num);
  font-size: 13px;
  font-weight: 700;
}

.faq-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid rgba(92, 80, 66, .45);
  border-bottom: 2px solid rgba(92, 80, 66, .45);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .22s;
}

.faq-item[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq-item .answer {
  padding: 0 20px 19px 42px;
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.9;
}

/* ── 締めの連絡ブロック ───────────────────────────────────── */
.closing {
  padding: clamp(48px, 7vw, 84px) 0;
}

.closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(26px, 3.6vw, 36px) clamp(24px, 3.4vw, 36px);
  border-radius: 20px;
  background: var(--card);
  box-shadow:
    0 1px 2px rgba(60, 45, 25, .07),
    0 18px 40px -22px rgba(60, 45, 25, .3);
}

.closing h2 {
  margin: 10px 0 0;
  font-family: var(--round);
  font-size: clamp(19px, 2.8vw, 24px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.42;
}

.closing p {
  margin: 10px 0 0;
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.85;
}

/* ── フッター（トップと同じ） ─────────────────────────────── */
.site-footer {
  background: var(--card);
}

.footer-inner {
  width: var(--page);
  min-height: 150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  gap: clamp(18px, 2.4vw, 32px);
  font-size: 12.5px;
}

.footer-links a {
  color: var(--meta);
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--accent-deep);
}

/* ══ スマホ（招待リンクはここで開かれる＝最優先） ══════════════ */
@media (max-width: 820px) {
  :root {
    --header-h: 72px;
    --page: calc(100vw - 40px);
    --reading: calc(100vw - 40px);
  }

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

  .closing-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    min-height: 180px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 64px;
    --page: calc(100vw - 32px);
    --reading: calc(100vw - 32px);
  }


  body {
    font-size: 15px;
  }

  .brand {
    font-size: 19px;
  }

  /* トップSP（33×38・原比率38:44）と同値 */
  .brand-mark {
    width: 33px;
    height: 38px;
  }

  /* メニューは丸チップに畳む＝トップと同じ操作感 */
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .header-nav {
    position: fixed;
    z-index: 3;
    inset: 0;
    display: grid;
    padding:
      calc(96px + env(safe-area-inset-top))
      24px
      calc(24px + env(safe-area-inset-bottom));
    grid-template-rows: repeat(3, auto) 1fr auto;
    align-content: start;
    gap: 0;
    background:
      radial-gradient(circle at 78% 12%, rgba(232, 145, 108, .16), transparent 31%),
      #2B211C;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .24s ease, transform .24s ease, visibility .24s;
  }

  .site-header.is-open .header-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .header-nav a:not(.cta) {
    display: grid;
    min-height: 72px;
    grid-template-columns: 46px 1fr;
    align-items: center;
    border-bottom: 1px solid rgba(255, 249, 242, .16);
    color: #FFF9F2;
    font-family: var(--round);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: .04em;
  }

  .header-nav a:not(.cta)::before {
    content: attr(data-idx);
    color: #F0A183;
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: .14em;
  }

  .header-nav .cta {
    width: 100%;
    min-height: 54px;
    align-self: end;
    border-radius: 17px;
    font-size: 15px;
  }

  .site-header.is-open .brand {
    color: #F0A183;
    position: relative;
    z-index: 5;
  }

  .site-header.is-open .mobile-menu-toggle {
    position: relative;
    z-index: 5;
    background: rgba(255, 249, 242, .12);
    color: #FFF9F2;
  }

  html.is-menu-open,
  html.is-menu-open body {
    overflow: hidden;
  }

  .legal-body h2 {
    flex-direction: column;
    gap: 2px;
  }

  .step-body {
    padding-left: 46px;
  }

  .step > .big-num {
    font-size: 42px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}

/* ══ FAQ再設計（2026-08-06 社長FB） ═══════════════════════════
   ①見出し行はカード列と左を揃える ②節見出しを撤去しチップだけで区切る
   ③背景の縞をやめ一様に ④問い合わせはフォームページへ */
.reading--wide {
  width: min(860px, calc(100vw - 48px));
}

.faq-sec {
  padding: clamp(18px, 2.6vw, 30px) 0;
}

.faq-sec .band-head {
  margin: 0 0 14px;
}

/* ── お問い合わせフォーム（contact.html） ── */
.contact-form {
  display: grid;
  gap: 20px;
  margin: 8px 0 clamp(56px, 8vw, 96px);
  padding: clamp(24px, 3.4vw, 34px);
}

.contact-form .field {
  display: grid;
  gap: 8px;
}

.contact-form label {
  font-family: var(--round);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.contact-form .opt {
  margin-left: 8px;
  color: var(--meta);
  font-size: 11px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--site-bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-form .submit-row {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.contact-form button.cta {
  border: 0;
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: var(--meta);
  font-size: 12.5px;
  line-height: 1.8;
}

/* ── 2026-08-06 社長FB 追補 ──
   ①ヘッダーCTAの文字が .header-nav a の茶色に負けて白でなかった（詳細度 0-1-1 > 0-1-0）
   ②FAQページはチップも一問目のカードも白で区別がつかない→チップだけ淡いコーラルの紙にする */
.header-nav a.cta {
  color: #FEFDFB;
}

.header-nav a.cta:hover {
  color: #FFFFFF;
}

.faq-sec .sheet-chip {
  background: var(--accent-soft);
  color: var(--accent-deep);
  box-shadow: 0 1px 2px rgba(60, 45, 25, .07);
}

/* 蜜壺（ボット対策の隠しフィールド）と送信完了表示 */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sent-title {
  margin: 0;
  font-family: var(--round);
  font-size: 21px;
  font-weight: 800;
}

/* 手順の注記（先行体験版ページ・2026-08-06） */
.step-notes {
  margin: 14px 0 0;
  padding: 0 0 0 18px;
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.85;
}

.step-notes li + li {
  margin-top: 6px;
}

.step-notes b {
  color: var(--ink);
}

/* 写真添付（お問い合わせ・2026-08-06） */
.contact-form input[type="file"] {
  padding: 9px 11px;
  border: 1px dashed rgba(194, 96, 58, .35);
  background: var(--site-bg);
  font-size: 13.5px;
}

.contact-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--round);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.file-note {
  margin: 2px 0 0;
  color: var(--meta);
  font-size: 12px;
  line-height: 1.7;
}

.file-note.is-error {
  color: #B33A2B;
}

/* ══ 先行体験ページの再設計（2026-08-06 社長方向確定）══════════
   「テキストでの説明を保つ・ビジュアライズしすぎない・構造化とインフォグラフィック」
   却下条件（次回も適用）: ミニ実機イラスト=過剰／カルーセル=スワイプ必須が非IT層に不利。
   使う道具は4つだけ: ①事実の要約チップ ②番号を縦線で結ぶ進行レール
   ③画面に出るボタンの言葉の模写ピル ④折りたたみへの退避 */

/* 見出しの上の貼り紙チップ（トップのヒーローと同じ言語・2026-08-06 社長FB「tipにするべき」） */
.page-head .sheet-chip {
  margin: 0 0 14px;
}

/* チップの中の「できた」だけ色を持たせる（トップのヒーローと同じ扱い） */
.page-head .sheet-chip b {
  color: var(--accent-deep);
}

/* ① 事実の要約（所要・料金・対応）
   2026-08-06 社長FB「スマホだとすごくAI感がある」＝白カード4枚の羅列が原因。
   カード・影・角丸をやめ、罫線で仕切る明細にする（装飾を削っても情報は残る） */
.spec-row {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-item {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(240, 160, 121, .12);
}

.spec-item .label {
  color: var(--meta);
  font-size: 11.5px;
  letter-spacing: .04em;
}

.spec-item .value {
  color: var(--accent-deep);
  font-family: var(--round);
  font-size: 13.5px;
  font-weight: 800;
}

.spec-item .value small {
  margin-left: 3px;
  color: #A4643F;
  font-size: 11px;
  font-weight: 700;
}

/* iPhone必須の帯（アイコン+1行） */
.device-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: #8A4327;
  font-family: var(--round);
  font-size: 13px;
  font-weight: 800;
}

.device-note svg {
  flex: 0 0 auto;
  stroke: #D17250;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.device-note .sub {
  display: block;
  margin-top: 2px;
  color: #A4643F;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
}

/* ② ステップ（2026-08-06 社長FB第2波: 丸バッジの番号は不採用／見出しとCTAの折返しを是正）
   番号は丸で囲まず「STEP 1」の小さな見出しラベルにする＝視線は見出しの文へ先に届く */
.flow {
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}

/* 2026-08-06 社長FB第4波: 番号は丸囲みでも大番号でもなく、見出しの頭に置く丸数字 */
.flow-step {
  padding: 20px 22px 22px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(60, 45, 25, .07), 0 10px 26px -16px rgba(60, 45, 25, .26);
}

.flow-num {
  margin-right: 8px;
  color: var(--ink);
  font-weight: 800;
}

.flow-step h2 {
  margin: 0;
  font-family: var(--round);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.02em;
  /* 「準備す／る」のような1〜2字の孤立行を作らない */
  text-wrap: pretty;
  /* 単語の途中で折らない（TestFlight や あしあと が割れない） */
  overflow-wrap: break-word;
}

/* 器が広い列(860px)でも本文は44字前後で折る */
.flow-step > p {
  margin: 9px 0 0;
  max-width: 636px;
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.85;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.flow-step .cta { margin-top: 14px; }

/* スマホではボタンを全幅にして、文字が2行に割れるのを防ぐ */
@media (max-width: 560px) {
  .flow-step .cta,
  .closing-inner .cta {
    display: flex;
    width: 100%;
    padding: 0 16px;
    text-align: center;
  }
}

/* ヒント行は 2026-08-06 社長FBで撤去（内容はFAQへ集約済み）。様式は残さない */

/* ③ 画面に出るボタンの言葉の模写（説明文の代わりに実物を引用する） */
.tapline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
}

.tapline .word {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}

.tapline .word::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ED9073;
  background: #FDEEE5;
}

.tapline .next { color: var(--meta); }

.tapline .why {
  width: 100%;
  margin: 0;
  color: var(--meta);
  font-size: 11.5px;
}

/* 問い合わせカードのCTAは1行で（2026-08-06 社長FB: 折り返さない・横を伸ばす） */
.closing-inner .cta {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ④ 折りたたみへの退避（つまずき・FAQ） */
.fold {
  margin: 14px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.fold summary {
  padding: 14px 16px;
  font-family: var(--round);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

.fold summary::before {
  content: "▸ ";
  color: var(--accent-deep);
}

.fold[open] summary::before { content: "▾ "; }

.fold .fold-body {
  padding: 0 18px 16px;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.85;
}

.fold dl { margin: 0; }

.fold dt {
  margin: 10px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.fold dt:first-child { margin-top: 0; }

.fold dd { margin: 2px 0 0; }

/* 先行体験ページはメニューを出さない（2026-08-06 社長「メニューいらない」）
   このページの仕事は「入れてもらう」ことだけ。ロゴでトップへ戻れれば足りる */
.page-beta .mobile-menu-toggle {
  display: none !important;
}

/* スマホの改行を自然に（2026-08-06 社長「改行もスマホは特に自然に」）
   ・リード文と本文は文節で折る（word-break: keep-all＋pretty）
   ・「。」「、」の直後で折れるのは自然なので許す */
@media (max-width: 560px) {
  .page-head .lead,
  .device-note span,
  .faq-item summary,
  .faq-item .answer,
  .closing-inner p,
  .contact-form .form-note {
      overflow-wrap: break-word;
    /* balance だと行数が少ない段落で頭の1語だけが浮く（「あしあとは、」で改行）。
       pretty は末尾だけを整えるので、頭の不自然な改行が出ない */
    text-wrap: pretty;
  }

  /* リードは器いっぱいを使って、短い語で折れないようにする */
  .page-head .lead {
    max-width: none;
  }

  .page-head .sheet-chip {
    height: auto;
    padding: 7px 13px;
    line-height: 1.6;
    white-space: normal;
  }
}

/* 英語の固有名詞は途中で折らない（App Store / TestFlight） */
.nowrap { white-space: nowrap; }

/* PC専用の改行（スマホは自然折返しに任せる） */
.br-pc { display: none; }

@media (min-width: 561px) {
  .br-pc { display: inline; }

  /* 指定の改行で1行に収める（2026-08-06 社長「アプリですまでで1文にしたい。右に余白あるし」）
     読む列の 636px では1行に入らないため、この段落だけ器の幅いっぱいを使う */
  .page-head .lead:has(.br-pc) {
    max-width: none;
  }
}

/* ── 戻る（2026-08-06 社長「先行体験版のページ・よくあるご質問・お問い合わせ・利用規約…
   等々のページで戻るボタンがない」）
   ヘッダーの下・本文の先頭に置く。ブラウザの履歴があれば戻り、無ければトップへ。 */
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0 0;
  padding: 8px 14px 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--sub);
  font-family: var(--round);
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
}

.page-back:hover {
  border-color: rgba(194, 96, 58, .34);
  color: var(--accent-deep);
}

.page-back svg {
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ── 招待リンクの中継ページ（join.html・2026-08-06） ── */
/* コードは常時表示（2026-08-06 社長「コードは出したいな」）。
   ただし主役はあくまで手順1・2。淡いコーラルの紙で控えめに置き、コピーを添える。 */
.join-code {
  margin: 20px 0 0;
  padding: 18px 20px 20px;
  border-radius: 18px;
  background: var(--accent-soft);
  text-align: center;
}

.join-code-help {
  margin: 12px 0 0;
  color: #A4643F;
  font-size: 11.5px;
  line-height: 1.75;
}

.join-code .label {
  display: block;
  color: #A4643F;
  font-size: 12px;
  letter-spacing: .06em;
}

.join-code .code {
  display: block;
  margin: 6px 0 0;
  color: var(--accent-deep);
  font-family: var(--num);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 700;
  letter-spacing: .08em;
}

.join-code.is-empty .code {
  font-family: var(--round);
  font-size: 15px;
  letter-spacing: 0;
}

.code-copy {
  margin: 12px 0 0;
  padding: 8px 16px;
  border: 1.5px solid rgba(194, 96, 58, .34);
  border-radius: 999px;
  background: transparent;
  color: var(--accent-deep);
  font-family: var(--round);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.join-actions {
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.join-actions .cta,
.join-actions .cta-ghost {
  justify-content: center;
  text-align: center;
}

/* ── 招待ページ（2026-08-06 社長「なるべくシンプルにわかりやすく」）
   要素は5つだけ: 見出し / 写真1枚 / ボタン1つ / 未インストールの1行 / 番号。
   みてね調査の学び= 非IT層に選択肢を並べない・主動線は1つ・コードは補助。 */
.page-head h1 b {
  color: var(--accent-deep);
}

/* ── 招待ページ（2026-08-06 ゼロベース再設計）
   このリンクを開く人は初回なら100%アプリを持っていない。
   並列の選択肢でなく「1インストール → 2参加」の順番のある手順にし、
   すでに持っている人は一行の補足で拾う。ボタンの強さも 1>2 に差をつける。 */
.join-flow {
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.join-flow-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 20px 22px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(60, 45, 25, .07), 0 10px 26px -16px rgba(60, 45, 25, .26);
}

.join-flow-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--num);
  font-size: 16px;
  font-weight: 700;
}

.join-flow-step h2 {
  margin: 4px 0 0;
  font-family: var(--round);
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -.01em;
}

.join-flow-step p {
  margin: 7px 0 0;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.8;
}

.join-flow-step .cta,
.join-flow-step .cta-line {
  display: flex;
  width: 100%;
  margin-top: 13px;
  justify-content: center;
  text-align: center;
}

/* 2番目のボタン＝線だけ。1番目（塗り）と強さを変えて順番を目で分からせる */
.cta-line {
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1.5px solid rgba(194, 96, 58, .38);
  border-radius: 23px;
  color: var(--accent-deep);
  font-family: var(--round);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
}

.cta-line:hover {
  background: rgba(240, 160, 121, .1);
}

.join-already {
  margin: 14px 0 0;
  color: var(--meta);
  font-size: 12.5px;
  line-height: 1.8;
  text-align: center;
}

.join-already b {
  color: var(--accent-deep);
}

/* 最後の逃げ道（非IT層の砦） */
.join-ask {
  margin: 22px 0 0;
  color: var(--meta);
  font-size: 12.5px;
  line-height: 1.85;
  text-align: center;
}


/* ══ 招待ページは1枚を同じ列で読ませる（2026-08-08 社長指摘）══════════
   `.reading:has(.faq-list)` 等は「FAQ・カード・手順の並びが狭すぎると間延びする」ため
   幅を min(860px, 100vw-48px) に広げる（288行）。
   ところが招待ページでは本文が min(636px, 100vw-48px) なので列が段違いになる。
   実測のずれ: PC 1440px で **112px**（本文402 / FAQ290）、スマホ 393px で 8px。

   招待ページは「番号を知っている人だけが開く1枚もの」で、
   上から下まで同じ列で読ませたい。段違いの列を作る意味がない。
   → このページに限って例外を打ち消す。他のページ（FAQ一覧・法務など）は広げたまま。 */
.page-join .reading:has(.faq-list),
.page-join .reading:has(.grid-2),
.page-join .reading:has(.closing-inner),
.page-join .reading:has(.steps) {
  width: var(--reading);
}
