/* キゲンドロップ販売サイト 共通スタイル
   アプリ本体（src/renderer/pop.css）の色・文字・部品の形に合わせている。色を変えるときはアプリと一緒に変える。 */
:root {
  --bg: #f4f6fb; --surface: #ffffff; --surface2: #eef1fa; --ink: #1d2350; --muted: #676d93; --line: #dfe3f0;
  --accent: #ff6a3d; --accent-ink: #ffffff; --accent-soft: #fff0ea; --blue: #3557f5;
  --ok: #12a883; --ok-soft: #e3f7f1; --soon: #e0a100; --soon-soft: #fff6d9; --hot: #f2701f; --hot-soft: #ffeadb; --over: #e0414a; --over-soft: #fde7e8; --warn: #8a55f0; --warn-soft: #f1eaff;
  --f-display: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
  --f-body: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  --f-num: 'DM Mono', ui-monospace, 'Consolas', monospace;
  --r: 18px; --shadow: 0 1px 2px rgba(29,35,80,.06), 0 6px 20px rgba(29,35,80,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #12152a; --surface: #1b1f3a; --surface2: #232849; --ink: #eef0ff; --muted: #a3a8cc; --line: #2f3560;
  --accent: #ff7a50; --accent-soft: #3a2626; --blue: #7d93ff;
  --ok: #3ad1a8; --ok-soft: #173a35; --soon: #f3c442; --soon-soft: #3a3320; --hot: #ff9350; --hot-soft: #3d2a1e; --over: #ff6b72; --over-soft: #3d1f25; --warn: #b18cff; --warn-soft: #2d2448;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #12152a; --surface: #1b1f3a; --surface2: #232849; --ink: #eef0ff; --muted: #a3a8cc; --line: #2f3560;
  --accent: #ff7a50; --accent-soft: #3a2626; --blue: #7d93ff;
  --ok: #3ad1a8; --ok-soft: #173a35; --soon: #f3c442; --soon-soft: #3a3320; --hot: #ff9350; --hot-soft: #3d2a1e; --over: #ff6b72; --over-soft: #3d1f25; --warn: #b18cff; --warn-soft: #2d2448;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--ink); }
body { font-family: var(--f-body); font-size: 15px; line-height: 1.8; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.4; font-weight: 800; }
a { color: var(--blue); font-weight: 700; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-size: 13px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

/* 上部の帯とロゴ（アプリと同じ） */
.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.top .in { max-width: 1120px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 8px; font: 800 22px var(--f-display); letter-spacing: .02em; color: var(--ink); text-decoration: none; }
.logo b { color: var(--accent); }
.logotext { display: flex; flex-direction: column; line-height: 1.1; }
.logotext small { font: 700 11px var(--f-body); color: var(--muted); letter-spacing: .18em; margin-top: 2px; }
.drop { width: 26px; height: 31px; flex-shrink: 0; }
.drop.big { width: 64px; height: 76px; }
.top nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.top nav a { padding: 8px 14px; border-radius: 999px; font-weight: 700; color: var(--muted); text-decoration: none; }
.top nav a:hover { background: var(--surface2); color: var(--ink); }
.top nav a.btn { color: var(--accent-ink); margin-left: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.narrow { max-width: 720px; }

/* ボタン（アプリと同じ） */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 800; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 60%, #000); }
.btn.primary:hover { filter: brightness(1.04); }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 60%, #000); }
.btn.lg { padding: 14px 30px; font-size: 17px; }
.btn.block { width: 100%; }
.btn.danger { border-color: var(--over); color: var(--over); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.hint { font-size: 13px; color: var(--muted); }

/* 受け皿（アプリのドロップ欄） */
.zone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 44px 24px 36px; border-radius: 28px; background: radial-gradient(120% 90% at 50% 0%, var(--accent-soft), var(--surface) 70%); border: 3px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); }
.zone .drop.big { animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .zone .drop.big { animation: none; } }
.zone h1 { font-size: clamp(28px, 4.6vw, 46px); }
.zone .lead { margin: 0; color: var(--muted); max-width: 40em; font-size: 16px; }
.zonebtns { display: flex; gap: 14px; align-items: center; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.rights { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink); }

/* 期限カード（アプリと同じ） */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.dcard { --c: var(--ok); --s: var(--ok-soft); display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); border-left: 8px solid var(--c); min-width: 0; text-align: left; }
.dcard.soon { --c: var(--soon); --s: var(--soon-soft); } .dcard.hot { --c: var(--hot); --s: var(--hot-soft); } .dcard.over { --c: var(--over); --s: var(--over-soft); } .dcard.warn { --c: var(--warn); --s: var(--warn-soft); }
.pill { align-self: flex-start; font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--s, var(--accent-soft)); color: var(--c, var(--accent)); margin-bottom: 6px; }
.ddate { font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.dkind { font-size: 13px; font-weight: 700; }
.dref { font-size: 13px; color: var(--muted); }

/* セクション */
section { padding: 64px 0; }
.sechead { margin-bottom: 28px; }
.sechead h2 { font-size: clamp(24px, 3vw, 30px); }
.sechead p { color: var(--muted); margin: 6px 0 0; }
.panel { background: var(--surface); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.panel h3 { font-size: 19px; margin-bottom: 8px; }
.panel p, .panel li { color: var(--muted); }
.panel ul { padding-left: 1.2em; margin: 10px 0 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.badge { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font: 800 18px var(--f-display); margin-bottom: 12px; }

/* 手順 */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.flow .panel { position: relative; padding-top: 58px; }
.flow .panel::before { counter-increment: s; content: counter(s); position: absolute; left: 24px; top: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 800 15px var(--f-display); }

/* 料金 */
.plan { display: flex; flex-direction: column; }
.plan.best { border: 3px solid var(--accent); }
.plan .tag { align-self: flex-start; font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); margin-bottom: 8px; }
.price { font: 800 40px/1.2 var(--f-display); margin: 8px 0 0; }
.price small { font: 700 14px var(--f-body); color: var(--muted); }
.tax { color: var(--muted); font-size: 13px; margin: 2px 0 12px; }
.plan ul { flex: 1; margin-bottom: 20px; }
.option { margin-top: 16px; background: var(--accent-soft); border-radius: 24px; padding: 20px 24px; }
.option p { margin: 6px 0 0; color: var(--ink); opacity: .85; }

/* 表 */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 13px; color: var(--muted); padding: 12px 10px; border-bottom: 1px solid var(--line); width: 30%; vertical-align: top; white-space: nowrap; }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }

/* よくある質問 */
details { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 800; }
details p { color: var(--muted); margin: 10px 0 2px; }

/* フォーム */
label.opt { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; margin-bottom: 8px; font-weight: 700; }
label.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
label.opt input { accent-color: var(--accent); width: 18px; height: 18px; }
label.opt .hint { font-weight: 400; }
.field { font-size: 15px; padding: 9px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); }
.field:focus { border-color: var(--accent); outline: none; }
input[type=number].field { width: 6em; }
input[type=email].field { width: 100%; max-width: 380px; }
form.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
textarea.key { width: 100%; height: 120px; font: 13px/1.6 var(--f-num); padding: 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); resize: vertical; word-break: break-all; }

/* お知らせ */
.note { border-radius: 14px; padding: 10px 16px; font-size: 14px; font-weight: 700; }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.over { background: var(--over-soft); color: var(--over); }
.note.test { background: var(--soon-soft); color: color-mix(in srgb, var(--soon) 70%, var(--ink)); }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: 14px; }
dl.kv dd { margin: 0; font-weight: 700; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* 最後の呼びかけ・フッター */
.final { text-align: center; padding: 64px 0 72px; }
.final p { color: var(--muted); margin: 8px 0 24px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); font-weight: 700; text-decoration: none; }
footer a:hover { color: var(--ink); }

.page { padding: 36px 0 64px; }
.page h1 { font-size: 28px; margin-bottom: 4px; }
.stack > * + * { margin-top: 16px; }

@media (max-width: 860px) {
  .grid3, .grid2, .flow { grid-template-columns: 1fr; }
  .top nav a:not(.btn) { display: none; }
  section { padding: 44px 0; }
  .zone { padding: 32px 18px 28px; border-radius: 22px; }
  .tbl th { width: 36%; white-space: normal; }
}
