/* 地は白。色はロゴに合わせる：文字と塗りの黒 #262626、アクセントのオレンジ #ff7a00（グラデーション #ff8a00→#ff6400）。
   和文はOSのフォント（saiq-ui）。オレンジは白地の文字には使わない（2.6:1）。文字のオレンジは --accent-ink #b84a00（白地で5.2:1）。
   オレンジの塗りの上の文字は黒 #262626（6.1:1）。 */
:root {
  --ink: #262626;
  --sub: #5c5853;
  --line: #ebe5dc;
  --soft: #faf7f3;
  --brand: #ff7a00;
  --brand-grad: linear-gradient(135deg, #ff8a00, #ff6400);
  --accent: #ff7a00;          /* 塗り・線 */
  --accent-ink: #b84a00;      /* 文字 */
  --accent-soft: #fff3e6;
  --gold: #ff9d3a;            /* 装飾だけに使う（文字色にしない） */
  --keep: #ff7a00;
  --keep-ink: #b84a00;
  --keep-soft: #fff3e6;
  --skip: #9a3b32;
  --skip-soft: #f7e7e5;
  --ok: #2f7a4f;
  --ok-soft: #e7f2ea;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(60, 30, 0, .12), 0 2px 6px rgba(60, 30, 0, .06);
  --nav-h: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: var(--ink); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
a { color: var(--accent-ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ヘッダーと4タブ ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; text-decoration: none; color: var(--ink); }
.brand img { display: block; }

/* スマホ：画面下に固定。セーフエリアの分だけ持ち上げる */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--line);
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 44px; text-decoration: none; color: var(--sub); font-size: 12px; font-weight: 700;
}
.tabs .ico { font-size: 22px; line-height: 1; filter: grayscale(1) opacity(.6); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"] .ico { filter: none; }
.tabs a[aria-current="page"] .lbl { border-bottom: 2px solid var(--accent); }
/* キーボードが出ている間は下部タブを隠す（入力欄に重ねない） */
body.kb .tabs { display: none; }
body.kb { padding-bottom: 0; }

/* PC：同じ4項目をヘッダー内に横並び */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .tabs { position: static; display: flex; gap: 4px; height: auto; padding: 0; border: 0; background: none; }
  .tabs a { flex-direction: row; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 14px; }
  .tabs .ico { font-size: 18px; }
  .tabs a[aria-current="page"] { background: var(--accent-soft); }
  .tabs a[aria-current="page"] .lbl { border-bottom: 0; }
}

main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 16px; outline: none; }
.loading, .empty { color: var(--sub); text-align: center; padding: 48px 0; }

/* 未送信の操作（通信失敗時に保持して再試行する） */
.outbox {
  position: sticky; top: 53px; z-index: 9; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 16px; background: var(--skip-soft); color: var(--skip); font-size: 14px; font-weight: 700;
}
.outbox[hidden] { display: none; }
.outbox button { min-height: 44px; border: 1px solid var(--skip); background: #fff; color: var(--skip); border-radius: 10px; padding: 0 14px; cursor: pointer; font-weight: 700; }

/* ---------- 理想の中の切替（スワイプ／キープ／一覧） ---------- */
.segment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.segment a { display: grid; place-items: center; min-height: 44px; border-radius: 9px; text-decoration: none; color: var(--sub); font-weight: 700; font-size: 14px; }
.segment a[aria-current="page"] { background: #fff; color: var(--accent-ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- スワイプ ---------- */
.deck { position: relative; height: min(55dvh, 500px); margin-top: 4px; touch-action: pan-y; }
.card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 20px 16px; cursor: grab; user-select: none; touch-action: none;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.2), opacity .25s;
  will-change: transform; overflow: hidden;
}
.card.dragging { transition: none; cursor: grabbing; }
.card.behind { transform: scale(.95) translateY(14px); opacity: .7; pointer-events: none; }
.card .title { font-size: clamp(21px, 6vw, 27px); font-weight: 800; line-height: 1.3; margin: 4px 0 10px; word-break: keep-all; overflow-wrap: anywhere; }
.model-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 800;
}
.industry { margin: 10px 0 0; font-size: 14px; color: var(--sub); font-weight: 700; }
.facts { margin: 0; display: grid; gap: 8px; }
.facts dt { font-size: 12px; color: var(--sub); font-weight: 700; }
.facts dd { margin: 0; font-size: 15px; }
.industry .specialty { color: var(--accent-ink); }
.industry .assume { font-weight: 400; font-size: 12px; }
.duties { background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; }
.duties-h { margin: 0 0 4px; font-size: 12px; font-weight: 800; color: var(--accent-ink); }
.duties ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: 14px; line-height: 1.5; }
.duties li { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.facts-line { margin: auto 0 10px; font-size: 13px; color: var(--sub); }
.detail-sec { margin-top: 16px; }
.detail-h { font-size: 15px; margin: 18px 0 0; color: var(--sub); }
.detail-sec h3 { font-size: 15px; margin: 0 0 6px; color: var(--accent-ink); }
.detail-sec ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.detail-sec p { margin: 0; }
.day { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; border-left: 2px solid var(--line); }
.day li { padding-left: 12px; }
.day .time { display: inline-block; min-width: 3.4em; font-weight: 800; color: var(--accent-ink); }
.letter-headline { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 13px; color: var(--accent-ink); font-weight: 700; }
.letter-headline b { display: block; margin-top: 4px; font-size: 19px; color: var(--ink); line-height: 1.4; }
.letter p.reason { padding-left: 1.4em; text-indent: -1.4em; font-weight: 700; }
.letter-picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.letter-picks .open { width: 100%; text-align: left; display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.letter-picks .t { font-weight: 800; }
.letter-picks .c { font-size: 13px; color: var(--sub); }
.letter-picks .more { font-size: 13px; color: var(--accent-ink); font-weight: 700; }
.features { margin: auto 0 12px; font-size: 14px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.detail-btn { min-height: 44px; border: 1px solid var(--ink); color: var(--ink); background: #fff; border-radius: 12px; font-weight: 700; cursor: pointer; }
.stamp {
  position: absolute; top: 18px; padding: 4px 12px; border: 3px solid; border-radius: 10px; background: #fff;
  font-weight: 800; font-size: 20px; opacity: 0; transform: rotate(-10deg); pointer-events: none;
}
.stamp.keep { right: 18px; color: var(--keep-ink); border-color: var(--keep); transform: rotate(10deg); }
.stamp.skip { left: 18px; color: var(--ink); border-color: var(--ink); }

.actions { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; margin-top: 16px; align-items: center; }
.act {
  min-height: 56px; border-radius: 16px; border: 2px solid; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 800; cursor: pointer; background: #fff;
}
.act.skip { color: var(--ink); border-color: var(--ink); }
.act.keep { color: var(--ink); background: var(--brand-grad); border-color: var(--brand); }
.act.undo { min-width: 56px; padding: 0 10px; border-color: var(--line); color: var(--sub); font-size: 13px; }
.act[disabled] { opacity: .35; cursor: not-allowed; }
.act:active:not([disabled]) { transform: scale(.97); }
.progress { text-align: center; font-size: 13px; color: var(--sub); margin: 10px 0 0; }
.kbd-hint { text-align: center; font-size: 12px; color: var(--sub); margin: 4px 0 0; }
@media (hover: none) { .kbd-hint { display: none; } }

/* 理想：10件キープまでの進み具合 */
.goal { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.goal-hearts { display: flex; gap: 2px; font-size: 16px; line-height: 1; }
.goal-hearts i { font-style: normal; color: var(--line); }
.goal-hearts i.on { color: var(--keep); }
.goal-text { font-size: 14px; color: var(--sub); white-space: nowrap; }
.goal-text b { color: var(--ink); font-size: 18px; }

.done { text-align: center; padding: 48px 8px; }
.done h2 { margin: 0 0 8px; font-size: 22px; }
.done p { color: var(--sub); margin: 0 0 20px; }
.done .btn + .btn { margin-top: 10px; }

/* ---------- ボタン・リスト ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--brand);
  background: var(--brand-grad); color: var(--ink); font-weight: 800; text-decoration: none; cursor: pointer;
}
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }

h1.page { font-size: 21px; margin: 4px 0 6px; }
.lead { color: var(--sub); margin: 0 0 16px; font-size: 15px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.item { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; background: #fff; }
.item button.open { all: unset; cursor: pointer; display: grid; gap: 4px; min-height: 44px; }
.item button.open:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.item .t { font-weight: 800; font-size: 17px; }
.item .c { font-size: 13px; color: var(--sub); }
.item .row { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 4px; }
.pill { display: inline-block; background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 800; }
.note { font-size: 13px; color: var(--sub); }
.box { border: 1px solid var(--line); background: var(--soft); border-radius: 14px; padding: 14px 16px; }
.box h2 { font-size: 16px; margin: 0 0 8px; }
.box p { margin: 0 0 8px; }
.box p:last-child { margin-bottom: 0; }
.warn { border-color: var(--gold); background: var(--accent-soft); }
.stack { display: grid; gap: 14px; }

/* ---------- 詳細シート ---------- */
.sheet { position: fixed; inset: 0; z-index: 20; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow: auto;
  background: #fff; border-radius: 20px 20px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  max-width: 560px; margin: 0 auto; animation: up .3s cubic-bezier(.2,.9,.3,1);
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-close { position: absolute; right: 10px; top: 8px; border: 0; background: var(--soft); width: 44px; height: 44px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.detail h2 { font-size: 23px; margin: 10px 44px 6px 0; line-height: 1.3; }
.detail dl { margin: 14px 0; display: grid; gap: 12px; }
.detail dt { font-size: 12px; color: var(--sub); font-weight: 700; }
.detail dd { margin: 2px 0 0; }
.detail dd.unset { color: var(--sub); }
.detail-actions { display: grid; gap: 10px; margin-top: 14px; }

/* ---------- フォーム ---------- */
.form { display: grid; gap: 18px; }
.form label.field-label, .form .field > legend { font-weight: 800; font-size: 15px; }
.form label.field-label { display: grid; gap: 6px; }
.form input[type=text], .form input[type=email], .form input:not([type]), .form select, .form textarea {
  font: inherit; font-size: 16px; padding: 12px; border: 1px solid #b9b4ab; border-radius: 10px; background: #fff; width: 100%; min-height: 48px;
}
.form textarea { min-height: 88px; resize: vertical; }
.form [aria-invalid="true"] { border-color: var(--skip); }
.field { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.field legend { padding: 0; margin-bottom: 8px; }
.help { font-size: 13px; color: var(--sub); margin: 0; font-weight: 400; }
.err { font-size: 14px; color: var(--skip); margin: 0; font-weight: 700; }
.err:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid #b9b4ab; border-radius: 999px; padding: 0 18px; background: #fff; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 800; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 30;
  max-width: calc(100% - 32px);
}
@media (min-width: 768px) { .toast { bottom: 24px; } }

/* ---------- F02a 価値観スワイプ ---------- */
.values-lead { text-align: center; color: var(--sub); font-size: 14px; margin: 0 0 8px; }
.deck.values { height: min(48dvh, 420px); }
.card.value { justify-content: center; align-items: center; text-align: center; padding: 32px 26px; }
.value-text { font-size: clamp(21px, 6.2vw, 27px); font-weight: 800; line-height: 1.5; margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
.meter-bar { height: 6px; background: var(--soft); border-radius: 3px; margin: 16px 0 0; overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: var(--brand-grad); transition: width .25s; }

/* ---------- F02b 特性フィードバック ---------- */
.type { display: grid; gap: 14px; padding-top: 8px; }
.type > .note { margin: 0; }
.type-name { font-size: clamp(24px, 7vw, 30px); line-height: 1.35; margin: -6px 0 0; }
.type-desc { margin: 0; font-size: 16px; }
.axes { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.axis { display: grid; gap: 4px; }
.axis-name { font-size: 12px; color: var(--sub); font-weight: 700; }
.axis-track { display: grid; grid-template-columns: 6.5em 1fr 6.5em; align-items: center; gap: 8px; font-size: 12px; }
.axis-track > span:last-child { text-align: right; }
.axis-line { position: relative; height: 4px; background: var(--line); border-radius: 2px; }
.axis-line i { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); transform: translate(-50%, -50%); }
.linkbtn { border: 0; background: none; color: var(--accent-ink); text-decoration: underline; cursor: pointer; padding: 10px; min-height: 44px; font-size: 14px; }

/* ---------- ✉ レター ---------- */
.letter { display: grid; gap: 14px; border: 1px solid var(--line); border-top: 6px solid var(--brand); border-radius: 14px; padding: 18px 18px 20px; background: #fffdf9; }
.letter h1.page { margin: 0; }
.letter h2 { font-size: 15px; color: var(--accent-ink); margin: 0 0 4px; }
.letter section p { margin: 0 0 6px; }
.letter-date { margin: 0; font-size: 12px; color: var(--sub); }

/* ---------- A8 理想の前の説明 ---------- */
.intro { display: grid; gap: 16px; padding-top: 12px; }
.intro h1 { font-size: clamp(22px, 6.4vw, 28px); line-height: 1.45; margin: 0; }
.intro p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .card, .sheet-panel, .meter-bar i { transition: none !important; animation: none !important; }
}
.letter p.stance { padding: 8px 10px; border-radius: 10px; border-left: 4px solid; }
.letter p.s-0 { background: var(--ok-soft); border-color: var(--ok); }
.letter p.s-1 { background: var(--accent-soft); border-color: var(--brand); }
.letter p.s-2 { background: var(--skip-soft); border-color: var(--skip); }
.selfpr { border: 1px dashed var(--accent); border-radius: 12px; padding: 12px 14px; background: #fff; margin-bottom: 10px; user-select: text; }
.selfpr p { margin: 0 0 6px; }
.selfpr p.fill { color: var(--accent-ink); font-weight: 700; background: var(--accent-soft); border-radius: 6px; padding: 4px 6px; }

/* ---------- 2026-11-06 追加：ホンネの一覧・診断結果・1日10枚・自己分析・カレンダー予約 ---------- */
.welcome-mark { margin: 6px 0 2px; }
.sub-h { font-size: 16px; margin: 20px 0 8px; }
.mini-h { font-size: 13px; font-weight: 800; color: var(--sub); margin: 12px 0 4px; }
.num { font-variant-numeric: tabular-nums; }

.diag-now { text-align: center; font-weight: 800; font-size: 14px; margin: 0 0 4px; }
.diag-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.diag-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; min-height: 44px; }
.diag-item.is-done { background: var(--soft); }
.diag-emoji { font-size: 28px; line-height: 1; }
.diag-body { display: grid; gap: 2px; }
.diag-title { font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.diag-lead { font-size: 13px; color: var(--sub); }
.diag-meta { font-size: 13px; color: var(--accent-ink); font-weight: 700; }
.diag-meta b { color: var(--ink); }
.diag-go { font-size: 22px; color: var(--sub); }
.new { font-size: 11px; font-weight: 800; color: var(--ink); background: var(--brand-grad); border-radius: 999px; padding: 1px 8px; }
.diag-more { font-size: 13px; color: var(--sub); margin: 0 0 16px; }

.rank { display: grid; gap: 8px; }
.rank-row { display: grid; grid-template-columns: minmax(7em, 40%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.rank-name { font-weight: 700; }
.rank-bar, .reso-bar { position: relative; display: block; height: 8px; border-radius: 4px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.rank-bar i, .reso-bar i { display: block; height: 100%; background: var(--brand-grad); }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.match-badge { display: inline-flex; align-items: center; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 800; }
.today { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
.today-dots { display: flex; gap: 4px; }
.today-dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); }
.today-dots i.on { background: var(--brand); border-color: var(--brand); }
.today-text { font-size: 14px; color: var(--sub); white-space: nowrap; }
.today-text b { color: var(--ink); font-size: 18px; }
.reso { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 12px; color: var(--sub); margin: 0 0 8px; }
.reso b { color: var(--ink); font-size: 14px; }
.reso.big { display: block; margin: 8px auto 16px; max-width: 320px; }
.reso.big .reso-bar { height: 12px; border-radius: 6px; }
.done-eyebrow { font-weight: 800; color: var(--accent-ink) !important; margin: 0 0 6px !important; }
.day-done h2 { font-size: 24px; }
.intro-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }

.self { display: grid; gap: 14px; border: 1px solid var(--line); border-top: 6px solid var(--brand); border-radius: 14px; padding: 18px; background: #fff; }
.self-head { display: grid; gap: 8px; }
.self-head h2 { margin: 0; font-size: 19px; }
.self-pct { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.self-pct .reso-bar { height: 12px; border-radius: 6px; }
.self-pct b { font-size: 22px; }
.self-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--sub); }
.self-steps li.ok { color: var(--ink); font-weight: 700; }
.self-steps span { margin-right: 4px; }
.self-summary { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-weight: 700; line-height: 1.7; }
.self-sec h3 { font-size: 15px; margin: 0 0 6px; color: var(--accent-ink); }
.self-sec ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.self-sec p { margin: 0 0 6px; }
.self-sec ul.self-diags { list-style: none; padding: 0; gap: 0; }
.self-diag { display: grid; grid-template-columns: 8.5em 1fr auto; gap: 8px; align-items: center; min-height: 44px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.self-diag .k { font-size: 13px; color: var(--sub); }
.self-diag .v { font-weight: 800; }
.self-diag.is-empty .v { color: var(--accent-ink); font-weight: 700; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-w { text-align: center; font-size: 12px; color: var(--sub); font-weight: 700; padding: 2px 0; }
.cal-w.we { color: var(--accent-ink); }
.cal-day { display: grid; justify-items: center; align-content: center; min-height: 56px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 2px 0; }
.cal-day .cal-m { font-size: 10px; color: var(--sub); min-height: 1.2em; line-height: 1.2; }
.cal-day .cal-d { font-size: 17px; font-weight: 800; line-height: 1.2; }
.cal-day .cal-n { font-size: 10px; color: var(--accent-ink); font-weight: 700; line-height: 1.2; }
.cal-day[disabled] { background: var(--soft); color: #8f8880; cursor: not-allowed; }
.cal-day[disabled] .cal-n { color: #8f8880; }
.cal-day[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cal-day[aria-pressed="true"] .cal-m, .cal-day[aria-pressed="true"] .cal-n { color: #fff; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.time-btn { min-height: 48px; border: 1px solid var(--ink); border-radius: 10px; background: #fff; font-weight: 800; cursor: pointer; display: grid; place-items: center; line-height: 1.2; }
.time-btn small { font-size: 11px; font-weight: 700; }
.time-btn[disabled] { border-color: var(--line); background: var(--soft); color: #8f8880; cursor: not-allowed; }
.time-btn[aria-pressed="true"] { background: var(--brand-grad); border-color: var(--brand); }
#consult { margin-top: 20px; }
.form[hidden] { display: none; }
.pick-slot { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-weight: 800; font-size: 17px; }
.booked { display: grid; gap: 10px; border: 2px solid var(--brand); border-radius: 14px; padding: 16px; background: #fff; }
.booked h2 { margin: 0; font-size: 22px; }
.booked p { margin: 0; }
.pill.ok { background: var(--ok-soft); color: var(--ok); justify-self: start; }
.booked-when { font-size: 20px; font-weight: 800; color: var(--ink) !important; }

/* ---------- リアル：1週間の予定表（2026-11-06 改訂） ---------- */
.real-lead { margin-bottom: 14px; }
.real-lead span { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.wk-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-bottom: 8px; }
.wk-title { margin: 0; text-align: center; font-size: 16px; }
.wk-arrow { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 22px; cursor: pointer; }
.wk-arrow[disabled] { opacity: .3; cursor: not-allowed; }
.week { display: grid; grid-template-columns: 3.2em repeat(var(--days), 1fr); gap: 3px; }
.wk-corner { }
.wk-day { display: grid; justify-items: center; font-size: 11px; color: var(--sub); line-height: 1.25; padding-bottom: 2px; }
.wk-day b { font-size: 15px; color: var(--ink); }
.wk-day.we, .wk-day.we b { color: var(--accent-ink); }
.wk-time { display: grid; align-items: center; font-size: 11px; color: var(--sub); font-variant-numeric: tabular-nums; }
.wk-cell { display: grid; place-items: center; min-height: 44px; border-radius: 8px; font-size: 17px; font-weight: 800; border: 1px solid transparent; }
.wk-cell.none { background: transparent; }
.wk-cell.ng { background: var(--soft); color: #8f8880; font-size: 14px; }
.wk-cell.ok { background: #fff; border-color: var(--brand); color: var(--accent-ink); cursor: pointer; padding: 0; font: inherit; font-weight: 800; font-size: 17px; }
.wk-cell.ok[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.wk-legend { display: flex; gap: 16px; font-size: 12px; color: var(--sub); margin: 8px 0 0; }
.purpose { margin: 0; }
