/*
 * Kanowa — Web 用 CSS。design/genspark-handoff-20260927/kanowa.css を土台に、接頭辞 .wk を外して :root に置いたもの。
 * 値（hex・px・余白・角丸）は README §4「CSS 変数」「文字サイズ」「ボタン」「入力欄」「注意書き」の確定値。
 * 外部読み込みなし。フォントは public/fonts の Noto Sans JP 400/700（woff）を自前配信。
 * PC（min-width: 720px）は --gut 32px・h1 36px・h2 22px に切り替わる（見本の .wk.pc に相当）。
 * 契約のクラス: .btn .btn-primary .btn-secondary .btn-sm .card .card-flat .bdg .bdg-live .bdg-today .bdg-place .bdg-ok .bdg-soon
 *   .fld .lbl .hint .in .chk .note .note-draft .note-warn .note-info .prose .hd .wrap .ft .t-h1 .t-h2 .t-h3 .t-sm .t-xs .sub
 * それ以外（.eyebrow .wm .pick .marks .cal-img .rows .day など）は screens.jsx の inline style を名前にしたもの。
 */
@font-face { font-family: "Noto Sans JP"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/noto-sans-jp-latin-400-normal.woff") format("woff"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans JP"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/noto-sans-jp-latin-700-normal.woff") format("woff"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans JP"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/noto-sans-jp-japanese-400-normal.woff") format("woff"); }
@font-face { font-family: "Noto Sans JP"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/noto-sans-jp-japanese-700-normal.woff") format("woff"); }

:root {
  --bg: #fafaf8;          /* 器。わずかに暖かい白 */
  --card: #ffffff;
  --fg: #1d2126;
  --sub: #646b75;         /* 本文上で 5.3:1 */
  --line: #e6e6e2;
  --accent: #d6456b;      /* ブランドの芯 */
  --accent-fg: #ffffff;
  --accent-soft: #fbeaef;
  --ok: #15815a; --ok-soft: #e6f3ec;     /* 状態色：成功・いま使える */
  --warn: #9a6300; --warn-soft: #fbf1dc; /* 状態色：暫定・準備中 */
  --radius: 12px; --radius-sm: 8px;
  --maxw: 720px;
  --gut: 20px;            /* スマホ左右余白。PC は 32px */
}
@media (min-width: 720px) { :root { --gut: 32px; } }

* { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%; display: flex; flex-direction: column;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px; line-height: 1.7; color: var(--fg); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: "palt" 0;
}
main { flex: 1 0 auto; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.9em; background: rgba(29,33,38,.045); padding: 0.1em 0.4em; border-radius: 4px; word-break: break-all; }

/* 文字 */
.t-h1 { font-size: 28px; line-height: 1.4; font-weight: 700; letter-spacing: .01em; text-wrap: balance; }
.t-h2 { font-size: 20px; line-height: 1.5; font-weight: 700; }
.t-h3 { font-size: 16px; line-height: 1.6; font-weight: 700; }
.t-sm { font-size: 14px; line-height: 1.7; }
.t-xs { font-size: 12px; line-height: 1.6; letter-spacing: .02em; }
.sub { color: var(--sub); }
.eyebrow { font-size: 12px; line-height: 1.6; font-weight: 700; letter-spacing: .12em; color: var(--sub); }
@media (min-width: 720px) {
  .t-h1 { font-size: 36px; line-height: 1.35; }
  .t-h2 { font-size: 22px; }
}

/* ヘッダー・フッター・本文の幅。ヘッダーとフッターの中身は .wrap と同じ左端に揃える */
.hd { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 max(var(--gut), calc((100% - var(--maxw)) / 2 + var(--gut))); border-bottom: 1px solid var(--line); background: var(--bg); }
.hd nav { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--sub); }
.hd nav a { text-decoration: none; }
.hd nav a:hover { color: var(--fg); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* ワードマーク（インライン SVG。色は currentColor） */
.wm { display: inline-flex; align-items: center; color: var(--fg); text-decoration: none; }
.wm svg { display: block; height: 18px; width: auto; }
.wm-sm svg { height: 12px; }
.ft { border-top: 1px solid var(--line); padding: 24px max(var(--gut), calc((100% - var(--maxw)) / 2 + var(--gut))) 40px; font-size: 12px; color: var(--sub); display: flex; flex-direction: column; gap: 10px; }
.ft nav { display: flex; gap: 16px; flex-wrap: wrap; }
.ft nav a { text-decoration: none; }
.ft nav a:hover { text-decoration: underline; }
.ft .wm { color: var(--sub); }
.ft-brand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ボタン: pill */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 700; line-height: 1; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: #c23a5f; }
.btn-secondary { background: var(--card); color: var(--fg); border-color: var(--fg); }
.btn-secondary:hover { background: var(--fg); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--fg); padding: 0 12px; }
.btn-ghost:hover { background: rgba(29,33,38,.06); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line); color: var(--sub); border-color: transparent; cursor: not-allowed; transform: none; }
.btn:focus-visible, .in:focus-visible, .chk input:focus-visible + i { outline: 3px solid rgba(214,69,107,.4); outline-offset: 2px; }

/* カード */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-flat { background: transparent; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-tight { padding: 0; overflow: hidden; }

/* バッジ */
.bdg { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .04em; white-space: nowrap; }
.bdg-live { background: var(--accent); color: #fff; }
.bdg-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.bdg-today { background: var(--fg); color: var(--bg); }
.bdg-place { background: transparent; color: var(--sub); border: 1px solid var(--line); font-weight: 400; }
.bdg-soon { background: var(--warn-soft); color: var(--warn); }
.bdg-ok { background: var(--ok-soft); color: var(--ok); }

/* フォーム */
.fld { display: flex; flex-direction: column; gap: 6px; }
.lbl { font-size: 14px; font-weight: 700; }
.lbl .sub { font-weight: 400; }
.hint { font-size: 12px; color: var(--sub); line-height: 1.6; }
.in { width: 100%; height: 48px; padding: 0 14px; border-radius: var(--radius-sm); border: 1.5px solid #d3d3ce; background: var(--card); font: inherit; font-size: 16px; color: var(--fg); transition: border-color .15s; }
.in::placeholder { color: #9aa0a8; }
.in:hover { border-color: #b3b3ad; }
.in:focus { border-color: var(--fg); outline: none; }
.in.err, .in:user-invalid { border-color: #c2362f; }
select.in { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sub) 50%), linear-gradient(135deg, var(--sub) 50%, transparent 50%); background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 15px) calc(50% - 2px); background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.in-40 { height: 40px; }
.in-44 { height: 44px; }
.chk { position: relative; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chk i { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 5px; border: 1.5px solid #b3b3ad; background: var(--card); display: grid; place-items: center; }
.chk input:checked + i { background: var(--fg); border-color: var(--fg); }
.chk input:checked + i::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }
.chk a { text-decoration: underline; }

/* 選択カード（ムード・配色のラジオ。input を隠し、選んだものは枠線 2px fg・ほかは 1.5px line） */
.pick { position: relative; display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 8px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pick:has(input:checked) { border: 2px solid var(--fg); padding: 7.5px; }
.pick:has(input:checked) .t-xs { font-weight: 700; }
.pick:has(input:focus-visible) { outline: 3px solid rgba(214,69,107,.4); outline-offset: 2px; }
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pick-grid-5 { grid-template-columns: repeat(5, 1fr); }
.pick-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 479px) { .pick-grid-5 { grid-template-columns: repeat(3, 1fr); } }
.swatch { width: 100%; height: 34px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; gap: 4px; }
.swatch i { display: block; border-radius: 9px; }
.swatch .sw-bar { width: 16px; height: 4px; border-radius: 2px; }
.swatch .sw-dot { width: 8px; height: 8px; }

/* 注意書き: 暫定・警告・案内 */
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.7; }
.note b { flex: none; }
.note a { text-decoration: underline; }
.note-draft { background: var(--warn-soft); color: #5f3d00; }
.note-warn { background: #fdecea; color: #8a241f; }
.note-info { background: rgba(29,33,38,.045); color: var(--fg); }

/* 本文長文（法務） */
.prose { font-size: 16px; line-height: 1.85; max-width: 38em; }
.prose h2 { font-size: 18px; line-height: 1.5; font-weight: 700; margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose p + p, .prose ul + p, .prose ol + p, .prose div + p { margin-top: 1em; }
.prose ol, .prose ul { padding-left: 1.4em; margin: 12px 0 0; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0 0; font-size: 14px; line-height: 1.7; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; background: rgba(29,33,38,.03); }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 100%; }
.toc { padding: 14px 18px; }
.toc ol { margin: 0; padding-left: 1.4em; color: var(--sub); }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* 並べる部品 */
.stack { display: flex; flex-direction: column; }
.stack-4 { gap: 4px; }
.stack-8 { gap: 8px; }
.stack-10 { gap: 10px; }
.stack-12 { gap: 12px; }
.stack-16 { gap: 16px; }
.stack-20 { gap: 20px; }
.row { display: flex; align-items: center; gap: 8px; }
.row-between { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.mt-2 { margin-top: 2px; } .mt-4 { margin-top: 4px; } .mt-6 { margin-top: 6px; } .mt-8 { margin-top: 8px; } .mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; } .mt-32 { margin-top: 32px; } .mt-36 { margin-top: 36px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-10 { margin-bottom: 10px; } .mb-12 { margin-bottom: 12px; } .mb-14 { margin-bottom: 14px; }

/* 見出しつきの一覧（ランディング「いま使えるもの」「準備中のこと」）。頭は緑の点（ok）か輪だけ（soon） */
.marks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.marks li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.marks li:first-child { border-top: 0; }
.marks li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 99px; }
.marks-ok li::before { background: var(--ok); }
.marks-soon li::before { background: transparent; border: 1.5px solid var(--sub); width: 5px; height: 5px; }
.marks b { display: block; font-weight: 700; }

/* 生成画像（1280×720）の枚 */
.cal-img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }

/* ページの縦の余白（ランディング上 44 / PC 72、ほか） */
.pad-page { padding-top: 44px; padding-bottom: 40px; }
.pad-form { padding-top: 28px; padding-bottom: 48px; }
.pad-result { padding-top: 24px; padding-bottom: 48px; }
.pad-legal { padding-top: 28px; padding-bottom: 56px; }
@media (min-width: 720px) {
  .pad-page { padding-top: 72px; padding-bottom: 56px; }
  .pad-form { padding-top: 48px; }
  .pad-result { padding-top: 40px; }
  .pad-legal { padding-top: 48px; }
}

/* スマホでは縦・PC では横（主ボタン＋添え書き、ダウンロード＋X に貼る など） */
.cta { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta .btn { width: 100%; }
.cta .t-sm { text-align: center; }
.split { display: flex; flex-direction: column; gap: 10px; }
.split > .btn { flex: 1; }
@media (min-width: 720px) {
  .cta { flex-direction: row; align-items: center; }
  .cta .btn { width: auto; }
  .cta .t-sm { text-align: left; }
  .split { flex-direction: row; }
}

/* /make の手入力 7 行（PC は 96/84/1fr/120/150 の grid・スマホは <details> で畳む） */
.rows { border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.rows > * + * { border-top: 1px solid var(--line); }
.rows-day { font-size: 14px; font-weight: 700; }
.rows-day.we { color: var(--accent); }
.rows details { padding: 12px 14px; }
.rows summary { display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; }
.rows summary::-webkit-details-marker { display: none; }
.rows summary .t-xs::before { content: "＋ "; }
.rows details[open] summary .t-xs::before { content: "－ "; }
.rows-fields { display: grid; grid-template-columns: 84px 1fr; gap: 8px; margin-top: 8px; }
.rows-fields .in { height: 44px; }
.rows-fields .span2 { grid-column: 1 / -1; }
.rows-pc { display: none; }
@media (min-width: 720px) {
  .rows details { display: none; }
  .rows-pc { display: grid; grid-template-columns: 96px 84px 1fr 120px 150px; gap: 8px; align-items: center; padding: 8px 12px; }
  .rows-pc .in { height: 40px; }
}

/* 公開ページ（無料・ベース）。ムード別の上書きは /moods.css */
.hero-band { height: 130px; background: linear-gradient(#f3eef0, var(--bg)); }
.avatar { width: 72px; height: 72px; border-radius: 999px; background: #fff; border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-top: -36px; position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) {
  .hero-band { height: 200px; }
  .avatar { width: 96px; height: 96px; margin-top: -48px; }
}
.day { display: flex; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); }
.day:first-child { border-top: 0; }
.day.today { background: #fdf6f8; }
.day-head { width: 52px; flex: none; display: flex; flex-direction: column; align-items: flex-start; }
.day-head b { font-weight: 700; font-size: 18px; line-height: 1.3; }
.day.we .day-head b { color: var(--accent); }
.day-body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ev { display: flex; gap: 10px; align-items: baseline; }
.ev b { font-feature-settings: "tnum"; flex: none; }
.ev-title { line-height: 1.5; }
.ev-title a { text-decoration: none; }
.ev-title a:hover { text-decoration: underline; }
.ev-tags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
