/* タベカル 献立プランナー：ログイン・アカウントの画面（プランナー本体と同じ色・文字） */
:root {
  --bg: #F7F5F2; --surface: #FFFFFF; --surface-2: #F2EEEA; --line: #E3DCD5; --line-strong: #CBC2BA;
  --ink: #232634; --ink-2: #545969; --ink-3: #7F8492;
  --accent: #EF6351; --accent-ink: #B23C2B; --accent-soft: #FCE6E1;
  --cta-bg: #C7412D; --cta-fg: #FFFFFF; --primary: #232A3D; --on-primary: #FFFFFF; --primary-soft: #E7E9EF;
  --ok: #1A6E45; --ok-soft: #E1F1E8; --warn: #85560A; --warn-soft: #FBEFD6; --bad: #A8271F; --bad-soft: #FBE3E0; --info: #2B4878; --info-soft: #E6EDF8;
  --shadow: 0 1px 2px rgba(35, 38, 52, .06), 0 6px 18px rgba(35, 38, 52, .07);
  --scrim: rgba(24, 22, 30, .42);
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-num: "Nunito", "Zen Kaku Gothic New", system-ui, sans-serif;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161C; --surface: #1D2029; --surface-2: #252935; --line: #313644; --line-strong: #464C5C;
    --ink: #EDEEF1; --ink-2: #B5B9C4; --ink-3: #8D92A0;
    --accent: #F47C6B; --accent-ink: #FF9D8D; --accent-soft: #3A2522;
    --cta-bg: #F27C69; --cta-fg: #1B1311; --primary: #ECEEF2; --on-primary: #171A22; --primary-soft: #2C3140;
    --ok: #74D6A0; --ok-soft: #1A3226; --warn: #F0C46A; --warn-soft: #382E1C; --bad: #FF8F85; --bad-soft: #3C2220; --info: #AAC2EA; --info-soft: #1E293C;
    --scrim: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 15px/1.75 var(--font-body); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.4; margin: 0; }
p { margin: 0; }
a { color: var(--accent-ink); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }

.top { padding: 16px 16px 0; max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }
.brand-mark .ring { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 68 91.1; }
.brand-mark .dot { fill: var(--accent); }
.brand-mark .seed { fill: var(--accent-ink); }
.brand-word { font: 900 21px/1 var(--font-display); color: var(--accent-ink); letter-spacing: .04em; }
.brand-sub { font-weight: 700; font-size: 13px; color: var(--ink-2); }
.env-tag { font: 800 11px/1 var(--font-num); letter-spacing: .1em; color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 5px 9px; }

.main { max-width: 960px; margin: 0 auto; padding: 24px 16px 64px; display: grid; justify-items: center; }
.main:focus { outline: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.panel { width: 100%; max-width: 460px; padding: 28px 24px; display: grid; gap: 18px; }
.panel.wide { max-width: 720px; }
.title { font-size: 24px; }
.lead { color: var(--ink-2); font-size: 14px; }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.muted { color: var(--ink-3); font-size: 13px; }
.small { font-size: 13px; }
.center { text-align: center; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.field { display: grid; gap: 6px; }
.label { font-weight: 700; font-size: 14px; }
.hint { color: var(--ink-3); font-size: 12.5px; }
.input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); }
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.input.code { font: 800 22px/1 var(--font-num); letter-spacing: .3em; text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; background: transparent; white-space: nowrap; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-cta { background: var(--cta-bg); color: var(--cta-fg); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-ghost { color: var(--ink-2); }
.btn-danger { border-color: color-mix(in srgb, var(--bad) 50%, transparent); color: var(--bad); background: var(--surface); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.link { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.note { border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.note-info { background: var(--info-soft); color: var(--info); }
.note-ok { background: var(--ok-soft); color: var(--ok); }
.note-warn { background: var(--warn-soft); color: var(--warn); }
.note-bad { background: var(--bad-soft); color: var(--bad); }

.choice { display: grid; gap: 12px; }
.option { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.option .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.option .ic svg { width: 22px; height: 22px; }
.option h3 { font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge { font: 800 11px/1 var(--font-num); letter-spacing: .08em; border-radius: 999px; padding: 4px 8px; background: var(--ok-soft); color: var(--ok); }

.qr { display: grid; place-items: center; padding: 12px; background: #FFFFFF; border-radius: var(--r-md); border: 1px solid var(--line); width: max-content; margin: 0 auto; }
.qr svg { width: 196px; height: 196px; display: block; }
.secret { font: 700 14px/1.6 var(--font-num); letter-spacing: .12em; word-break: break-all; background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; text-align: center; }

.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px; background: var(--surface-2); border-radius: var(--r-md); }
.codes li { list-style: none; font: 800 16px/1.6 var(--font-num); letter-spacing: .08em; text-align: center; }
.codes ol, ol.codes { margin: 0; }

.list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.item { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--surface); }
.item + .item { border-top: 1px solid var(--line); }
.item .meta { display: grid; gap: 2px; min-width: 0; }
.item .meta b { font-size: 14.5px; overflow-wrap: anywhere; }
.item .meta span { color: var(--ink-3); font-size: 12.5px; overflow-wrap: anywhere; }
.section { display: grid; gap: 12px; }
.section h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.section h2 svg { width: 20px; height: 20px; color: var(--accent-ink); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--primary); color: var(--on-primary); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }

.modal-wrap { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { width: 100%; max-width: 420px; padding: 24px; display: grid; gap: 16px; }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  .panel { padding: 22px 18px; }
  .title { font-size: 21px; }
  .codes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } .toast { transition: none; } }

/* 利用規約・プライバシーポリシー */
.doc { width: 100%; max-width: 760px; padding: 32px 28px; display: grid; gap: 22px; }
.doc h1 { font-size: 26px; }
.doc h2 { font-size: 18px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.doc p, .doc li { font-size: 15px; line-height: 1.9; }
.doc ol, .doc ul { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; }
.doc .meta { color: var(--ink-3); font-size: 13px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); line-height: 1.7; }
.doc th { background: var(--surface-2); font-weight: 700; white-space: nowrap; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
@media (max-width: 560px) {
  .doc { padding: 24px 18px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc th { border-bottom: 0; }
  .doc td { border-top: 0; margin-bottom: 8px; }
}

/* お申し込みの内容（最終確認画面） */
.terms { display: grid; margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.terms > div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.terms > div:first-child { border-top: 0; }
.terms dt { font-weight: 700; color: var(--ink-2); }
.terms dd { margin: 0; }
@media (max-width: 480px) { .terms > div { grid-template-columns: 1fr; gap: 2px; } }
/* ページの下のリンク */
.site-foot { max-width: 960px; margin: 0 auto; padding: 0 16px 32px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.site-foot a { color: var(--ink-2); }
