/* よあけ のサポート・ポリシーのページ。アプリと同じ空気にする（設計書 §16）。
   昼: 地 #F5FAFD、白カード、罫 #DFE9F0、墨 #1C2735、朱 #E25A2C、金 #F2B544。夜（端末がダーク）: 紺 #111737、月色 #F6D98B。
   書体は Zen Kaku Gothic New 400/500/700/900（アプリと同じ）。site/fonts の woff2 はページ内の文字だけに絞った自前のもの
   （tools/build_site_fonts.sh）。Google Fonts には飛ばさない（ポリシーのページが外部に通信しないように）。
   頭には朝（夜は夜）の景色を置き、その上に白い見出し。カードは 1px 罫・角丸 18・影なし。 */
@font-face { font-family: "Zen Kaku Gothic New"; src: url("fonts/zen-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("fonts/zen-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("fonts/zen-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("fonts/zen-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
    --bg: #F5FAFD;
    --card: #FFFFFF;
    --line: #DFE9F0;
    --line2: #EDF3F7;
    --ink: #1C2735;
    --ink2: #66727F;
    --ink3: #A0ACB8;
    --accent: #E25A2C;
    --accent-tint: #FDEBE3;
    --gold: #F2B544;
    --good: #3C9A6E;
    --good-tint: #E6F4EC;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111737;
        --card: rgba(255,255,255,.06);
        --line: rgba(255,255,255,.12);
        --line2: rgba(255,255,255,.08);
        --ink: #F6F4EC;
        --ink2: rgba(246,244,236,.66);
        --ink3: rgba(246,244,236,.40);
        --accent: #F6D98B;
        --accent-tint: rgba(246,217,139,.14);
        --good: #7CCB9F;
        --good-tint: rgba(60,154,110,.18);
        color-scheme: dark;
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    background: var(--bg);
    color: var(--ink);
    font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
    font-variant-numeric: tabular-nums;
    -webkit-text-size-adjust: 100%;
}

body {
    line-height: 1.9;
    letter-spacing: .01em;
    font-size: 14px;
    font-weight: 500;
}

/* ---- 頭: 景色と、その上の白い見出し ---- */
.scene {
    position: relative;
    height: 300px;
    overflow: hidden;
}
.scene svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.scene .night { display: none; }
@media (prefers-color-scheme: dark) {
    .scene .morning { display: none; }
    .scene .night { display: block; }
}
.scene .head {
    position: absolute;
    left: 0; right: 0; top: 0;
    max-width: 680px;
    margin: 0 auto;
    padding: 28px 24px 0;
    color: #F6F4EC;
    text-shadow: 0 1px 6px rgba(28,39,53,.35);
}
.scene .name {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    color: #F6F4EC;
    text-decoration: none;
    opacity: .9;
}
.scene h1 {
    margin-top: 10px;
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: .02em;
    max-width: 22em;
}
.scene .sub {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    opacity: .92;
}

/* 景色の太陽は開いたときに1回だけ昇る（アプリと同じ 1.6 秒） */
.sun-rise { animation: rise 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { transform: translateY(40px); } to { transform: translateY(0); } }
.star { animation: twinkle 3.4s ease-in-out infinite; }
.star.b { animation-duration: 4.6s; animation-delay: -1.2s; }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.cloud { animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(14px); } }
@media (prefers-reduced-motion: reduce) {
    .sun-rise, .star, .cloud { animation: none; }
}

/* ---- 本文 ---- */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px 20px 56px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 20px;
}
.card + .card { margin-top: 12px; }

/* カードは開いたときに少し浮き上がる（0.3 / 0.45 / 0.6 秒遅れ、アプリと同じ） */
.card { animation: lift .5s cubic-bezier(.2,.7,.2,1) both; }
.card:nth-of-type(2) { animation-delay: .15s; }
.card:nth-of-type(3) { animation-delay: .3s; }
.card:nth-of-type(n+4) { animation-delay: .4s; }
@keyframes lift { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }

.meta {
    color: var(--ink3);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 12px;
}

/* 見出しはカードのラベルと同じ文法（小さく・太く・字間） */
.label {
    display: block;
    color: var(--ink3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    margin: 4px 4px 8px;
}
.card .label { margin: 0 0 8px; }

h2 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    margin: 26px 0 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line2);
}
h2:first-child, .meta + h2, p + h2.tight { margin-top: 0; padding-top: 0; border-top: none; }
h2[id] { scroll-margin-top: 24px; }

h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 20px 0 4px;
}

p { margin-bottom: 12px; }
p:last-child { margin-bottom: 0; }

.lead {
    font-size: 14px;
    color: var(--ink2);
}

ul { list-style: none; margin: 0 0 12px; }
li { position: relative; padding-left: 1.2em; margin-bottom: 6px; }
li::before {
    content: "";
    position: absolute;
    left: .1em;
    top: .85em;
    width: .4em;
    height: 2px;
    border-radius: 1px;
    background: var(--gold);
}
li ul { margin: 6px 0 0; }
li li::before { background: var(--ink3); height: 1px; top: .9em; }

strong { font-weight: 700; }

/* リンクは朱（夜は月色）。下線は細く */
a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .25em;
    text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
a:hover { text-decoration-color: var(--accent); }

/* 約束を1行で見せるタグ（アプリのタグと同じ高さ 24・角丸 12） */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    background: var(--good-tint);
    color: var(--good);
}

/* ---- 表: 細い罫だけ ---- */
.tablewrap { overflow-x: auto; margin-bottom: 14px; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.7;
}
th, td {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px 10px 0;
    border-top: 1px solid var(--line2);
}
tr:last-child th, tr:last-child td { border-bottom: 1px solid var(--line2); }
th {
    font-weight: 700;
    color: var(--ink3);
    font-size: 11px;
    letter-spacing: .06em;
    white-space: nowrap;
}
td:first-child { font-weight: 700; }
.tablewrap table { min-width: 540px; }

/* 項目名と内容の 2 列の表（特商法）は、狭い画面で縦に積む */
table.stack { min-width: 0; }
@media (max-width: 560px) {
    table.stack tr { display: block; border-top: 1px solid var(--line2); padding: 8px 0; }
    table.stack tr:first-child { display: none; }
    table.stack tr:last-child { border-bottom: 1px solid var(--line2); }
    table.stack td { display: block; border: none; padding: 0; }
    table.stack td:first-child { color: var(--ink3); font-weight: 700; font-size: 11px; letter-spacing: .06em; }
}

.note { font-size: 12px; color: var(--ink3); }

/* 価格の 3 段（アプリのプラン画面と同じ並び） */
.plans { display: grid; gap: 8px; margin: 0 0 12px; }
.plan {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
}
.plan.on { border-color: var(--accent); background: var(--accent-tint); }
.plan .n { font-weight: 700; font-size: 14px; }
.plan .s { font-size: 11px; color: var(--ink3); }
.plan .p { font-weight: 900; font-size: 16px; white-space: nowrap; }

/* ---- 脚 ---- */
footer {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    font-size: 12px;
    color: var(--ink3);
}
footer p { margin: 0; }
footer nav a { margin-right: 16px; color: var(--ink2); text-decoration-color: var(--line); }
footer nav a:hover { color: var(--accent); }

@media (max-width: 560px) {
    .scene { height: 260px; }
    .scene .head { padding: 22px 20px 0; }
    .container { padding: 14px 16px 48px; }
    .card { padding: 16px; }
}
