/* ============================================================
   ヨビネ — 公開ページ共通スタイル
   デザイントークンは docs-internal/design.md §2（紙・朱・墨）
   ============================================================ */

:root {
  --paper: #F5F1E8;
  --card: #FFFFFF;
  --ink: #1E1A15;
  --ink2: #5C554B;
  --ink3: #6F675B;
  --shu: #BF3C1A;
  --on-shu: #FFFFFF;
  --shu-text: #B33A18;
  --wave: #8C8374;
  --take: #2E7A58;
  --line: #DDD5C7;
  --ai: #2F5D8C;
  --yamabuki: #B8860B;
  --fuji: #7056A0;
  --shadow: 0 18px 44px rgba(30, 26, 21, 0.12);
  --shadow-sm: 0 4px 14px rgba(30, 26, 21, 0.08);
  --radius: 12px;
  --maxw: 1040px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14110E;
    --card: #211D18;
    --ink: #F2ECE2;
    --ink2: #B8AFA2;
    --ink3: #948B7E;
    --shu: #FF7B54;
    --on-shu: #1C0D06;
    --shu-text: #FF8A66;
    --wave: #7E766A;
    --take: #5BC596;
    --line: #39332C;
    --ai: #7FA8D6;
    --yamabuki: #E8B84A;
    --fuji: #B7A2E0;
    --shadow: 0 0 0 1px #39332C;
    --shadow-sm: 0 0 0 1px #39332C;
    color-scheme: dark;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.num { font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 24px; } }

/* ---------- ナビ ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--ink2); }
.nav-links a:hover { color: var(--ink); }
.nav-pill {
  background: var(--shu); color: var(--on-shu) !important; font-weight: 700;
  padding: 6px 16px; border-radius: 999px;
}
@media (max-width: 640px) { .nav-links a:not(.nav-pill) { display: none; } }

/* ---------- 紙帯（穴の列） ---------- */
.holes { display: flex; align-items: center; gap: 4px; height: 44px; }
.holes span { width: 5px; border-radius: 3px; background: var(--shu); }
.holes span.dim { background: var(--wave); opacity: .6; }

/* ---------- ヒーロー ---------- */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 32px; }
.hero h1 { font-size: clamp(32px, 6vw, 54px); font-weight: 800; line-height: 1.3; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--shu-text); }
.hero .lead { margin-top: 20px; font-size: clamp(15px, 2.2vw, 18px); color: var(--ink2); }
.hero .holes { margin-top: 28px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  padding: 10px 20px; border-radius: 12px; font-weight: 700; line-height: 1.2;
}
.badge-soon small { display: block; font-size: 11px; font-weight: 500; opacity: .8; }
.hero-note { font-size: 13px; color: var(--ink3); }
.phone {
  width: min(300px, 78vw); margin: 0 auto;
  border-radius: 40px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--card);
}
@media (max-width: 760px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- セクション ---------- */
.section { padding: 72px 0; }
.section-label {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--shu-text);
  border: 1px solid var(--shu-text); border-radius: 999px; padding: 2px 12px; margin-bottom: 14px;
}
.section h2, .feature h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; line-height: 1.45; }
.desc { margin-top: 16px; color: var(--ink2); font-size: 16px; }
.center { text-align: center; }
.narrow { max-width: 680px; margin: 0 auto; }

.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 48px 0; }
.feature.reverse > :first-child { order: 2; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse > :first-child { order: 0; }
}

/* 手順 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.step { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--shu); }
.step .n { font-weight: 800; color: var(--shu-text); font-size: 20px; }
.step b { display: block; margin-top: 4px; }
.step p { font-size: 14px; color: var(--ink2); margin-top: 6px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* 料金の表 */
.plan { max-width: 560px; margin: 32px auto 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.plan table { width: 100%; border-collapse: collapse; font-size: 15px; }
.plan th, .plan td { padding: 12px 16px; text-align: left; border-top: 1px solid var(--line); }
.plan thead th { border-top: none; font-size: 13px; color: var(--ink2); }
.plan thead th:last-child, .plan td:last-child { color: var(--shu-text); font-weight: 700; }
.plan td:nth-child(2) { color: var(--ink2); }
.plan-note { text-align: center; margin-top: 14px; font-size: 14px; color: var(--ink3); }

/* プライバシーの帯 */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.pcard { background: var(--paper); border-radius: var(--radius); padding: 18px; text-align: center; }
.pcard b { display: block; font-size: 16px; }
.pcard span { font-size: 13px; color: var(--ink2); }
@media (max-width: 760px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }

/* 色タグ */
.swatches { display: flex; gap: 10px; margin-top: 20px; }
.swatch { width: 12px; height: 36px; border-radius: 3px; }

/* ---------- 文書ページ ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 16px 80px; }
.doc h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 800; margin-top: 12px; }
.doc .updated { color: var(--ink3); font-size: 14px; margin-top: 4px; }
.doc h2 { font-size: 20px; font-weight: 800; margin-top: 40px; padding-left: 12px; border-left: 4px solid var(--shu); line-height: 1.4; }
.doc h3 { font-size: 17px; font-weight: 700; margin-top: 28px; }
.doc p, .doc ul, .doc ol { margin-top: 12px; color: var(--ink2); }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin-top: 4px; }
.doc strong { color: var(--ink); }
.callout { background: var(--card); border-radius: var(--radius); padding: 18px 20px; margin-top: 24px; box-shadow: var(--shadow-sm); color: var(--ink); }
.back-home { font-size: 14px; color: var(--ink2); }
.inline { color: var(--shu-text); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }

/* ---------- フッター ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 13px; color: var(--ink3); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: var(--ink); }
