/* =====================================================================
   徳杜（とくもり）アプリ紹介LP 共通スタイル
   出典: アプリ紹介LP設計書 v1.4 §10（UI/UX v2.6.25 トークン準拠）
   朱4%以下・余白多く・静謐・ジグザグにしない
   ===================================================================== */
:root {
  --color-primary: #B23B3B;
  --color-primary-dark: #7A2828;
  --color-primary-pale: #FBEEEC;
  --color-background: #FFFFFF;
  --color-surface-soft: #FAF7F5;
  --color-border: #EFD8D5;
  --color-gold: #B8923D;
  --color-teal: #3F7A6E;
  --color-error: #A03838;
  --color-text-primary: #1F1F1F;
  --color-text-secondary: #5A5A5A;
  --brand-paper: #F1E9D4;
  --brand-ink: #4A2A14;
  --serif: "Shippori Mincho B1", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Yu Gothic", sans-serif;
  --kokuin: "Klee One", cursive;
  --aux: "BIZ UDPGothic", sans-serif;

  /* Tweaks: 余白/密度 */
  --sec-pad: 120px;
  --gap-l: 56px;
  --gap-m: 32px;
  /* Tweaks: 見出しサイズ */
  --fv-size: clamp(34px, 6vw, 58px);
  --h2-size: clamp(26px, 3.6vw, 38px);
}
html[data-density="roomy"]   { --sec-pad: 168px; --gap-l: 76px; --gap-m: 44px; }
html[data-density="compact"] { --sec-pad: 84px;  --gap-l: 40px; --gap-m: 24px; }
html[data-heading="modest"]  { --fv-size: clamp(28px, 4.6vw, 44px); --h2-size: clamp(22px, 2.9vw, 30px); }
html[data-heading="grand"]   { --fv-size: clamp(40px, 7.2vw, 72px); --h2-size: clamp(30px, 4.4vw, 46px); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--color-background);
  color: var(--color-text-primary);
  font-family: var(--sans); font-size: 16px; line-height: 2;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.serif { font-family: var(--serif); }
.aux { font-family: var(--aux); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
.wrap-n { max-width: 760px; margin: 0 auto; padding: 0 28px; }

/* ---------------- 落款風QR（v1.6 R-13/R-14・PC限定・共通コンポーネント） ----------------
   墨色QRを和紙台紙に載せ、掛け軸の落款のように画面右上へ静かに佇ませる。
   PC限定（≥960px）で表示。スマホ/タブレットは非表示＝ヘッダー/フッターのバッジからDL。 */
.rakkan-qr { display: none; }
@media (min-width: 960px) {
  .rakkan-qr {
    position: fixed; top: 80px; right: 22px; z-index: 90;
    display: block; width: 118px; text-align: center;
    padding: 12px 12px 10px; border-radius: 4px;
    background: var(--brand-paper);
    border: 1px solid rgba(178,59,59,.22);   /* 朱の差し色（面積比 4%以下） */
    box-shadow: 0 8px 24px rgba(74,42,20,.14);
  }
  .rakkan-qr::before {
    content: ""; position: absolute; inset: 5px;
    border: 1px solid rgba(178,59,59,.16); border-radius: 2px; pointer-events: none;
  }
  .rakkan-qr__qrwrap { position: relative; width: 88px; height: 88px; margin: 0 auto; }
  .rakkan-qr .qr { width: 88px; height: 88px; display: block; }
  .rakkan-qr .note {
    margin: 8px 0 0; font-family: var(--serif); font-size: 10.5px;
    letter-spacing: .08em; color: var(--brand-ink); line-height: 1.5;
  }
}

/* ---------------- リリース予定ラベル（2026年8月リリース予定） ---------------- */
.release-note {
  display: block; text-align: center; margin: 14px auto 0;
  font-family: var(--serif); font-size: 12.5px; letter-spacing: .14em;
  color: var(--color-primary-dark);
}
.release-note--hero { margin: 26px auto 0; font-size: 13px; letter-spacing: .18em; }
.release-note--head {
  order: -1; margin: 0 10px 0 0; align-self: center; white-space: nowrap;
  font-family: var(--aux); font-size: 10.5px; letter-spacing: .04em;
  color: var(--color-text-secondary);
}
@media (max-width: 860px) { .release-note--head { display: none; } }

/* 帯（QR・DLバナーに重ねる「2026年8月リリース予定」） */
.release-band {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  text-align: center; font-family: var(--aux); font-weight: 700;
  color: #fff; background: rgba(178,59,59,.92);
  letter-spacing: .06em; white-space: nowrap; pointer-events: none;
  font-size: 12px; padding: 4px 0; line-height: 1.3;
  box-shadow: 0 1px 6px rgba(122,40,40,.28);
}
.release-band--qr {
  font-size: 9px; letter-spacing: .01em; white-space: normal; padding: 3px 2px;
}

/* ---------------- S0 ヘッダー（追従） ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(239,216,213,.6);
}
.site-header .inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; }
.brand .name { font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: .08em; }
.gnav { display: flex; gap: 26px; margin-left: auto; }
.gnav a { font-family: var(--aux); font-size: 13px; color: var(--color-text-secondary); letter-spacing: .1em; }
.gnav a:hover { color: var(--color-primary-dark); }
.header-badges { display: flex; gap: 8px; }

/* ストアバッジ（共通） */
.store-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1F1F1F; color: #fff; border-radius: 8px;
  padding: 7px 14px 7px 12px; line-height: 1.15;
}
.store-badge svg { width: 20px; height: 20px; flex: none; }
.store-badge .t { display: flex; flex-direction: column; text-align: left; }
.store-badge .t small { font-size: 8.5px; opacity: .8; font-family: var(--aux); letter-spacing: .04em; }
.store-badge .t strong { font-size: 13.5px; font-weight: 600; font-family: var(--sans); }
.store-badge.lg { border-radius: 10px; padding: 10px 20px 10px 16px; }
.store-badge.lg svg { width: 26px; height: 26px; }
.store-badge.lg .t small { font-size: 10px; }
.store-badge.lg .t strong { font-size: 17px; }
.badges-row { display: flex; gap: 14px; justify-content: center;
  position: relative; width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; }

/* ---------------- セクション共通 ---------------- */
.sec { padding: var(--sec-pad) 0; }
.sec-label {
  font-family: var(--aux); font-size: 12px; letter-spacing: .3em;
  color: var(--color-text-secondary); text-align: center; margin: 0 0 18px;
}
.h2 {
  font-family: var(--serif); font-weight: 600; font-size: var(--h2-size);
  letter-spacing: .12em; line-height: 1.6; text-align: center; margin: 0;
}
.lead {
  text-align: center; margin: 26px auto 0; max-width: 640px;
  font-size: 16.5px; line-height: 2.3; color: var(--color-text-primary);
}
.lead .serif { font-size: 1.05em; }

/* 和紙面 */
.washi {
  background:
    radial-gradient(120% 80% at 78% 12%, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 55%),
    repeating-linear-gradient(93deg, rgba(74,42,20,.018) 0 4px, rgba(74,42,20,0) 4px 9px),
    var(--brand-paper);
}
.soft { background: var(--color-surface-soft); }

/* ---------------- 実機フレーム／モック ---------------- */
.phones { display: flex; gap: var(--gap-l); justify-content: center; align-items: flex-start; flex-wrap: wrap; margin-top: var(--gap-l); }
.phone { width: 300px; }
.phone .screen {
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 50px rgba(74,42,20,.14);
  background: #fff;
}
html[data-frame="on"] .phone .screen {
  border: 10px solid #26221F; border-radius: 40px;
  box-shadow: 0 24px 60px rgba(31,31,31,.28);
}
.phone .cap {
  font-family: var(--aux); font-size: 11.5px; color: var(--color-text-secondary);
  text-align: center; margin-top: 14px; letter-spacing: .12em;
}
.phone.sm { width: 260px; }

/* ---------------- ④ ラベル羅列 ---------------- */
.labels { margin-top: var(--gap-m); text-align: center; }
.labels .base {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  letter-spacing: .14em; color: var(--brand-ink);
}
.labels .items {
  margin-top: 10px; font-family: var(--aux); font-size: 13.5px;
  letter-spacing: .12em; color: var(--color-text-secondary);
}

/* ---------------- ⑤ 導線 ---------------- */
.more { text-align: center; margin-top: var(--gap-m); }
.more a {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 15.5px; letter-spacing: .16em;
  color: var(--color-primary-dark);
  padding: 10px 6px; border-bottom: 1px solid rgba(178,59,59,.35);
}
.more a:hover { border-bottom-color: var(--color-primary); }

/* ---------------- S3 見取り図 ---------------- */
.map-list { max-width: 680px; margin: var(--gap-l) auto 0; display: flex; flex-direction: column; }
.map-item {
  display: flex; align-items: center; gap: 26px;
  padding: 30px 8px; border-bottom: 1px solid rgba(239,216,213,.7);
}
.map-item:first-child { border-top: 1px solid rgba(239,216,213,.7); }
.map-item .crest {
  width: 54px; height: 54px; flex: none; border-radius: 50%;
  background: var(--color-primary-pale);
  display: grid; place-items: center;
}
.map-item .crest img { width: 26px; opacity: .5; }
.map-item .crest .num {
  font-family: var(--serif); font-weight: 600; font-size: 24px;
  color: var(--color-primary); letter-spacing: 0; line-height: 1;
}
.map-item h3 {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: 20px; letter-spacing: .14em;
}
.map-item p { margin: 6px 0 0; font-size: 14px; color: var(--color-text-secondary); line-height: 1.9; }
.map-item .arrow { margin-left: auto; color: #C9A9A2; flex: none; }

/* ---------------- S9 料金 ---------------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: var(--gap-l) auto 0; }
.plan { border: 1px solid var(--color-border); border-radius: 16px; padding: 38px 34px; background: #fff; }
.plan.std { background: linear-gradient(180deg, #FFFFFF 0%, #FDF9F2 100%); }
.plan .pname { font-family: var(--aux); font-size: 12px; letter-spacing: .26em; color: var(--color-text-secondary); }
.plan h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: .08em; margin: 14px 0 18px; line-height: 1.7; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plan li { font-size: 14px; color: var(--color-text-secondary); padding-left: 20px; position: relative; }
.plan li::before { content: "・"; position: absolute; left: 0; color: #C9A9A2; }
.benefits { max-width: 720px; margin: var(--gap-l) auto 0; display: flex; flex-direction: column; gap: var(--gap-m); }
.benefit h4 { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: .1em; margin: 0; text-align: center; line-height: 1.8; }
.benefit p { margin: 14px auto 0; max-width: 620px; font-size: 14.5px; line-height: 2.2; color: var(--color-text-primary); text-align: center; }
.benefit .fn { display: block; margin-top: 10px; text-align: center; font-family: var(--aux); font-size: 12px; letter-spacing: .18em; color: var(--color-text-secondary); }
.price-box { text-align: center; margin-top: var(--gap-l); }
/* 月額を主役に（大）・年額を従に（小）＝たさ指示で強弱を逆転 */
.price-box .main { font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: .06em; color: var(--brand-ink); }
.price-box .main small { font-size: 14px; font-weight: 400; color: var(--color-text-secondary); margin-left: 10px; }
.price-box .sub { margin-top: 10px; font-size: 15px; color: var(--color-text-secondary); }
.price-box .sub small { font-size: 13px; margin-left: 8px; }

/* ---------------- S11 フッター ---------------- */
.site-footer { background: var(--color-surface-soft); border-top: 1px solid var(--color-border); padding: 64px 0 40px; }
.site-footer .cols { display: flex; gap: 56px; flex-wrap: wrap; justify-content: space-between; max-width: 1040px; margin: 0 auto; padding: 0 28px; }
.site-footer .fbrand { display: flex; align-items: center; gap: 10px; }
.site-footer .fbrand img { width: 26px; }
.site-footer .fbrand span { font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .08em; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav a { font-family: var(--aux); font-size: 12.5px; color: var(--color-text-secondary); letter-spacing: .08em; }
.site-footer nav a:hover { color: var(--color-primary-dark); }
.site-footer .copy { text-align: center; margin-top: 48px; font-family: var(--aux); font-size: 11.5px; color: #9A938B; letter-spacing: .12em; }

/* ---------------- スポーク詳細ページ共通 ---------------- */
.crumb { padding: 96px 0 0; }
.crumb .inner { max-width: 760px; margin: 0 auto; padding: 0 28px; font-family: var(--aux); font-size: 12px; letter-spacing: .12em; color: #9A938B; }
.crumb a:hover { color: var(--color-primary-dark); }
.page-head { padding: 44px 0 var(--sec-pad); text-align: center; }
.page-head .h1 {
  font-family: var(--serif); font-weight: 600; font-size: var(--h2-size);
  letter-spacing: .16em; margin: 0; line-height: 1.6;
}
.page-head .lead { margin-top: 30px; }
.block { padding: var(--sec-pad) 0; }
.block .promise {
  font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: .12em;
  text-align: center; margin: 0 0 6px; line-height: 1.9;
}
.block .b-head {
  font-family: var(--aux); font-size: 12px; letter-spacing: .26em;
  color: var(--color-text-secondary); text-align: center; margin: 0 0 16px;
}
.block .b-body { max-width: 620px; margin: 22px auto 0; font-size: 15px; line-height: 2.3; text-align: center; }
.block .b-fn { margin-top: 14px; text-align: center; font-family: var(--aux); font-size: 12px; letter-spacing: .18em; color: var(--color-text-secondary); }
.quiet {
  text-align: center; font-family: var(--serif); font-size: 18px;
  letter-spacing: .14em; line-height: 2.6; color: var(--brand-ink);
}
.rel-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.rel-links a {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--color-border); border-radius: 999px;
  padding: 13px 28px; font-family: var(--serif); font-size: 15px; letter-spacing: .12em;
  background: #fff;
}
.rel-links a:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }

/* b-6 比較表 */
.cmp { width: 100%; max-width: 720px; margin: var(--gap-m) auto 0; border-collapse: collapse; }
.cmp th, .cmp td { padding: 14px 12px; border-bottom: 1px solid rgba(239,216,213,.7); font-size: 14px; }
.cmp thead th { font-family: var(--aux); font-size: 12px; letter-spacing: .2em; color: var(--color-text-secondary); font-weight: 400; }
.cmp td.i { text-align: left; }
.cmp th.c, .cmp td.c { text-align: center; width: 130px; }
.cmp td.c { font-family: var(--aux); color: var(--brand-ink); }
.cmp td.c .ok { color: var(--color-primary); }
.cmp td.c .no { color: #C9C2B9; }

@media (max-width: 860px) {
  .gnav { display: none; }
  .plans { grid-template-columns: 1fr; }
  .phones { gap: 36px; }
}

/* モバイル: ヘッダーを圧縮（DLボタン常設は維持・ブランドは極小幅でロゴのみ） */
@media (max-width: 720px) {
  .site-header .inner { gap: 12px; padding: 0 16px; }
  .brand .name { font-size: 14px; letter-spacing: .04em; white-space: nowrap; }
  .header-badges { margin-left: auto; }
  .header-badges .store-badge { padding: 6px 10px; }
  .header-badges .store-badge svg { width: 16px; height: 16px; }
  .header-badges .store-badge .t small { display: none; }
  .header-badges .store-badge .t strong { font-size: 11.5px; }
}
@media (max-width: 440px) {
  .brand .name { display: none; }
}

/* =====================================================================
   世界観強化レイヤー（ui-ux-pro-max 検証反映・2026-07-04）
   E-Ink/Paper: 和紙グレイン ／ Storytelling: 落款・章の記号 ／ a11y: focus
   ===================================================================== */

/* 和紙グレイン（feTurbulence・不透明度はSVG側で5%） */
.washi, .hero { position: relative; }
.washi::after, .hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/washi-grain.svg") repeat; background-size: 240px;
  mix-blend-mode: multiply; z-index: 0;
}
.washi > *, .hero > * { position: relative; z-index: 1; }

/* 日本語プロポーショナルメトリクス・見出しの改行バランス */
body { font-feature-settings: "palt"; }
.h2, .page-head .h1, .hero-copy h1 { text-wrap: balance; }

/* 落款（章の印）: Klee One 白抜き・朱・僅かな傾き＝朱4%以下の点使い */
.rakkan {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 6px;
  background: radial-gradient(circle at 36% 30%, #C24A46 0%, #B23B3B 58%, #9C3030 100%);
  color: #FBEEEC; font-family: var(--kokuin); font-size: 19px; font-weight: 600;
  transform: rotate(-3deg); box-shadow: 0 2px 8px rgba(122,40,40,.25);
  margin: 0 auto 16px;
}

/* フォーカス可視化（キーボード操作） */
a:focus-visible, button:focus-visible, select:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 4px;
}

/* ホバー（色/影のみ・レイアウト不変） */
.map-item { transition: background-color .25s ease; }
.map-item:hover { background-color: rgba(178,59,59,.035); }
.map-item:hover .arrow { color: var(--color-primary); }
.map-item .arrow { transition: color .25s ease; }
.store-badge { transition: background-color .2s ease, box-shadow .2s ease; }
.store-badge:hover { background: #000; box-shadow: 0 6px 18px rgba(31,31,31,.25); }
.more a, .rel-links a, .gnav a, .site-footer nav a { transition: color .2s ease, border-color .2s ease; }

/* ---------------- お知らせ・更新履歴 /news/（v1.6 R-15/R-16・静かな記録調） ---------------- */
.news-list { list-style: none; margin: var(--gap-l) 0 0; padding: 0; }
.news-item { border-bottom: 1px solid rgba(239,216,213,.7); }
.news-item:first-child { border-top: 1px solid rgba(239,216,213,.7); }
.news-item > a {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 6px; transition: background-color .25s ease;
}
.news-item > a:hover { background-color: rgba(178,59,59,.035); }
.news-meta { display: flex; align-items: center; gap: 12px; }
.news-meta time {
  font-family: var(--aux); font-size: 12.5px; letter-spacing: .1em;
  color: var(--color-text-secondary); font-variant-numeric: tabular-nums;
}
.news-cat {
  font-family: var(--aux); font-size: 11px; letter-spacing: .08em;
  padding: 2px 9px; border-radius: 2px; line-height: 1.7; white-space: nowrap;
}
.news-cat--announcement { background: var(--color-primary-pale); color: var(--color-primary-dark); }
.news-cat--app { background: rgba(63,122,110,.12); color: var(--color-teal); }
.news-cat--database { background: rgba(184,146,61,.14); color: #8A6A22; }
.news-ttl {
  font-family: var(--serif); font-weight: 600; font-size: 17px;
  letter-spacing: .04em; line-height: 1.7; color: var(--brand-ink);
}
.news-ttl small { font-family: var(--aux); font-weight: 400; font-size: 12px; color: var(--color-text-secondary); }
.news-empty { padding: 40px 6px; color: var(--color-text-secondary); font-size: 14px; }

/* 個別記事 */
.news-article { max-width: 760px; margin: 0 auto; padding: 40px 28px 96px; }
.news-article .news-meta { margin-bottom: 18px; }
.news-ver { font-family: var(--aux); font-size: 12px; color: var(--color-text-secondary); }
.news-article h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 3vw, 30px);
  letter-spacing: .08em; line-height: 1.8; margin: 0 0 28px; color: var(--brand-ink);
}
.news-body p { font-size: 15px; line-height: 2.1; margin: 14px 0; color: var(--color-text-primary); }
.news-back { margin-top: 44px; }
.news-back a { font-family: var(--aux); font-size: 13px; color: var(--color-primary-dark); letter-spacing: .06em; }
