/* ============================================================
 * ENGINE Design Lab — components.css
 * デザインシステムの実体（②）。§10 早見表・箱の教義（§2）の部品。
 * 正本 = ../../docs/design.md。まなみさんが磨くのは主にこのファイル。
 *
 * 由来: prototype/app_v2.py の CSS ブロック（L45-556）から、視覚的な値は
 * 一切変えずに移植した。ただし Streamlit 固有のセレクタ
 * （div[data-testid=...] / .stButton / [kind="primary"] / st-key-* など）は、
 * plain HTML では意味を持たないため、design.md が既に使っている名前
 * （.gsec / .gnote / .lockcard / .samplecard / .meter など）を主語にした
 * 素の class セレクタへ書き換えている。書き換えた対応は各ブロックにコメントで残した。
 * ============================================================ */

/* ============ §2 箱の教義：① モノ（選ぶ対象） ============ */
/* 白い箱＋影。浮くのはここだけ。ガイド画面の見本カード（元 .samplecard） */
.samplecard {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--sh-md);
  padding: 26px 22px;
  margin: 0 2px 10px;
  text-align: center;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.75;
  color: var(--head);
}
.exlabel {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted-fg);
  margin: 16px 2px 7px;
  letter-spacing: .02em;
}
/* ガイド画面のミニ選択肢見本（元 .samplebtns .sb） */
.samplebtns { display: flex; gap: 10px; margin: 0 2px 18px; }
.samplebtns .sb {
  flex: 1; text-align: center; background: var(--surface); color: var(--fg);
  border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 13px 8px;
  min-height: 50px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-size: 13.5px; font-weight: 500; box-shadow: var(--sh-sm);
}

/* ============ §2 箱の教義：② 説明・案内（枠なし・地色なし） ============ */
.gsec { margin: 0 2px 22px; }
.gsec .lk-eb {
  display: block; font-family: var(--serif); font-size: 10.5px; letter-spacing: .16em;
  color: var(--brand); font-weight: 700; margin-bottom: 6px;
}
.gsec .lk-t { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.6; color: var(--head); }
.gsec .lk-t .kw { color: var(--brand); }
.gsec .lk-d { font-size: 13.5px; line-height: 1.9; color: var(--fg); margin-top: 9px; }
.gsec .lk-d b { color: var(--brand-deep); }

/* ============ §2 箱の教義：③ 注意・約束（左罫＋淡地・囲わない） ============ */
.gnote {
  margin: 0 2px 22px; padding: 13px 15px 14px; background: var(--brand-subtle);
  border-left: 3px solid var(--brand); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 13px; line-height: 1.85; color: var(--fg);
}
.gnote b { color: var(--brand-deep); }
/* こだわり設問の気づき足場（signhead も同系統・左罫4px） */
.signhead {
  background: var(--brand-subtle); border-left: 4px solid var(--brand); border-radius: var(--r-md);
  padding: 12px 14px; margin: 4px 0 10px; font-size: 13.5px; line-height: 1.7; color: var(--fg);
}
.signhead b { color: var(--brand-deep); }

/* ============ §2 箱の教義：④ 到達の瞬間（琥珀グラデ・①②と明確に差をつける） ============ */
.lockcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 20px 20px 22px; margin-bottom: 12px; box-shadow: var(--sh-sm);
}
.lockcard.moment {
  background: linear-gradient(160deg, #fdf6e3 0%, var(--brand-subtle) 100%);
  border: 1.5px solid #eeddb6; box-shadow: 0 6px 20px rgba(184,134,11,.14);
}
.lockcard .lk-eb { font-family: var(--serif); font-size: 10.5px; letter-spacing: .16em; color: var(--brand); font-weight: 700; }
.lockcard .lk-t { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.65; color: var(--head); margin-top: 8px; }
.lockcard .lk-t .kw { color: var(--brand); }
.lockcard .lk-d { font-size: 13.5px; line-height: 1.9; color: var(--fg); margin-top: 10px; }
.lockcard .lk-d b { color: var(--brand-deep); }

/* ============ 見出し・ルール・進捗（全画面共通） ============ */
.mhead { text-align: center; margin: 4px 0 14px; }
.mhead h1 { color: var(--head); font-family: var(--serif); font-size: 21px; font-weight: 600;
  margin: 0 0 6px; line-height: 1.5; letter-spacing: .01em; }
.mhead .kw { color: var(--brand); }
.mhead p { color: var(--muted-fg); font-size: 12.5px; margin: 0; line-height: 1.7; }

.rule { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0 0 6px; }
.rule::before, .rule::after { content: ""; height: 1px; width: 34px; background: var(--brand); opacity: .5; }
.rule span { color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .08em; font-family: var(--serif); }

.seclabel {
  font-family: var(--serif); font-weight: 700; color: var(--brand-deep); font-size: 15px;
  margin: 14px 0 6px; padding-left: 10px; border-left: 3px solid var(--brand);
}

/* 全体進捗帯（5セルのシェブロン。現在=琥珀地×白文字／完了=淡琥珀） */
.navband { display: flex; gap: 2px; margin: -2px 0 16px; overflow: hidden; }
.navband .nv {
  flex: 1; text-align: center; font-size: 9.5px; font-weight: 700; white-space: nowrap;
  padding: 7px 1px 7px 8px; background: #ece7e4; color: #a89f9a;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%, 6px 50%);
}
.navband .nv:first-child { padding-left: 5px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%); }
.navband .nv.on { background: var(--brand); color: #fff; }
.navband .nv.done { background: #f2e6c9; color: #8a5f12; }

/* バッジ・ピル（design.md §10） */
.chip { font-size: 10.5px; padding: 3px 9px; border-radius: 999px; background: #f1ece9; color: var(--muted-fg); }
.chip.on { background: var(--grad-brand); color: #fff; font-weight: 700; }
.chip.done { background: var(--brand-subtle); color: var(--brand-subtle-fg); }
.gold-badge {
  display: inline-block; background: var(--gold-subtle); color: var(--gold); font-size: 11.5px;
  font-weight: 700; padding: 4px 13px; border-radius: 999px; letter-spacing: .04em; font-family: var(--serif);
}

/* ============ ボタン（元: div[data-testid="stVerticalBlock"] .stButton>button 他） ============ */
/* .btn = タップ選択肢（最小50px）。.btn.primary = CTA（最小52px・design.md §9） */
.btn {
  display: block; width: 100%; text-align: left; background: var(--surface); color: var(--fg);
  border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 13px 15px;
  min-height: 50px; font-size: 14.5px; font-weight: 500; font-family: var(--font);
  box-shadow: var(--sh-sm); cursor: pointer; appearance: none;
  /* transition の値は styles/motion.css 側で定義（③アニメーションの正） */
}
.btn:hover { border-color: var(--brand); background: var(--brand-subtle); }
.btn:active { transform: scale(.99); box-shadow: 0 0 0 5px rgba(193,150,45,.22); }
.btn.on { border-color: var(--brand); background: var(--brand-subtle); color: var(--brand-deep); font-weight: 700; }
.btn.primary, .btn.primary * {
  color: #fff !important; -webkit-text-fill-color: #fff;
  background: var(--grad-brand); border: 0; text-align: center; font-weight: 700;
  min-height: 52px; font-size: 15px; letter-spacing: .02em; box-shadow: var(--sh-md);
}
.btn.primary:hover { filter: brightness(1.05); }
.btn.primary:disabled { opacity: .45; cursor: not-allowed; filter: none; }

/* スワイプの左右ボタン行（元 .st-key-swrow）。56px以上・nowrap */
.swipe-row { display: flex; gap: 10px; }
.swipe-row .btn { min-height: 56px; text-align: center; font-weight: 800; font-size: 14px; white-space: normal; }
/* 🔴 対称な二択は、どちらの側も強調しない（design.md §6.2）。
   rerun直後にフォーカスが先頭ボタンへ乗り、片側だけ琥珀に色づくと「推奨」に見える＝選択バイアス。
   :focus の着色だけ打ち消し、:hover（能動的に迷っている時の手応え）は残す。 */
.swipe-row .btn:focus, .swipe-row .btn:focus-visible {
  border-color: var(--border); background: var(--surface); color: var(--fg); box-shadow: var(--sh-sm);
}
.swipe-row .btn:hover { border-color: var(--brand); background: var(--brand-subtle); }

/* 職種の2列グリッド（元: st.columns(2)。02-job-select.html 専用） */
.job-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.job-grid .btn { min-height: 50px; }

/* 年数チップ（元 [class*="st-key-yrrow"]。9段を横1行に詰める） */
.yr-label { font-size: 13px; font-weight: 700; color: var(--brand-deep); margin: 10px 0 4px; }
.yr-row { display: flex; gap: 3px; flex-wrap: nowrap; }
.yr-row .btn {
  flex: 1 1 0; min-width: 0; min-height: 44px; padding: 4px 1px; font-size: 10px; font-weight: 700;
  text-align: center; white-space: normal; line-height: 1.25; border-radius: 8px;
}

/* 2択の設問ヘッダ（verb-swipe / duel 共通） */
.duelq { text-align: center; font-family: var(--serif); font-size: 18px; font-weight: 700;
  color: var(--head); line-height: 1.6; margin: 6px 0 8px; }
.duelq .kw { color: var(--brand); }
.duelnote { text-align: center; font-size: 11.5px; color: var(--muted-fg); margin-top: 6px; }

/* カードの消化プログレス（スワイプ） */
.swprog { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.swprog .track { flex: 1; height: 6px; border-radius: 99px; background: #f0e9e7; overflow: hidden; }
.swprog .fill { height: 100%; border-radius: 99px; background: var(--grad-brand); }
.swprog .cnt { font-family: var(--serif); font-weight: 800; font-size: 12px; color: var(--muted-fg); white-space: nowrap; }

/* ============ カード（汎用） ============ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--sh-sm); }
.subcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 13px 15px; margin-top: 10px; box-shadow: var(--sh-sm); }
.subcard b { color: var(--brand-deep); }

/* ============ 確信度メーター（.meter）／可能性カード（.pcard） ============ */
.meter { background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 15px; margin: 0 0 14px; box-shadow: var(--sh-sm); }
.meter .lab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.meter .lab .t { font-size: 12px; font-weight: 700; color: var(--head); }
.meter .lab .v { font-size: 24px; font-weight: 900; color: var(--brand); line-height: 1; font-family: var(--serif); }
.meter .track { height: 9px; border-radius: 99px; background: #f0e9e7; overflow: hidden; }
.meter .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg,#e0b84a,#b8860b); }
.meter .cap { font-size: 11px; color: var(--muted-fg); margin-top: 8px; }

.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 18px 18px 15px; box-shadow: var(--sh-sm); margin-bottom: 12px; }
.pcard .pt { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--head); line-height: 1.5; }
.pcard .pt .kw { color: var(--brand); }
.pcard .ps { font-size: 12px; color: var(--muted-fg); margin: 6px 0 12px; line-height: 1.7; }
.pcard .plab { display: flex; justify-content: space-between; align-items: baseline; }
.pcard .pl { font-size: 12.5px; font-weight: 700; color: var(--head); }
.pcard .pv { font-size: 31px; font-weight: 900; color: var(--brand); line-height: 1; font-family: var(--serif); }
.pcard .pv .pu { font-size: 15px; font-weight: 800; }
.pcard .track { height: 9px; border-radius: 99px; background: #f0e9e7; overflow: hidden; margin-top: 6px; }
.pcard .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg,#e0b84a,#b8860b); }
.pcard .pcap { font-size: 11px; color: var(--muted-fg); margin-top: 8px; }

/* 結果系ミニ進捗（①→②→③→④・点線コネクタ） */
.rmini2 { display: flex; margin: 4px 0 16px; }
.rmini2 .st { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.rmini2 .st::before { content: ""; position: absolute; top: 14px; right: 50%; width: 100%; border-top: 2px dotted #e3d5b8; }
.rmini2 .st:first-child::before { display: none; }
.rmini2 .num { position: relative; z-index: 1; width: 29px; height: 29px; border-radius: 50%;
  background: var(--surface); border: 2px solid #e3d5b8; color: var(--muted-fg); font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center; }
.rmini2 .st.done .num { border-color: var(--brand); color: var(--brand); }
.rmini2 .st.on .num { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 3px 10px rgba(184,134,11,.4); }
.rmini2 .lb { font-size: 10px; font-weight: 700; color: var(--muted-fg); margin-top: 5px; line-height: 1.35; text-align: center; }
.rmini2 .st.on .lb { color: var(--brand); }

/* ============ 出会いヘッドライン（引用スタイル） ============ */
.disc-hero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 20px 20px 22px; margin-bottom: 14px; box-shadow: var(--sh-md); text-align: center; position: relative; overflow: hidden; }
.disc-hero .eb { font-family: var(--serif); font-size: 10.5px; letter-spacing: .16em; color: var(--brand); font-weight: 700; }
.disc-hero .ln { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.7; color: var(--head); margin-top: 10px; letter-spacing: .01em; }
.disc-hero .ln .em { color: var(--brand-deep); }
.disc-hero.quote { padding: 24px 26px 26px; }
.disc-hero.quote::before { content: "\201C"; position: absolute; left: 10px; top: 4px;
  font-family: Georgia,"Times New Roman",serif; font-size: 54px; color: #e8d5a8; line-height: 1; }
.disc-hero.quote::after { content: "\201D"; position: absolute; right: 10px; bottom: -10px;
  font-family: Georgia,"Times New Roman",serif; font-size: 54px; color: #e8d5a8; line-height: 1; }

/* ============ A/B/C カード（自己欲求／武器／役に立てる形） ============ */
.acard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 15px 16px 12px; margin-top: 12px; box-shadow: var(--sh-sm); }
.ahead { display: flex; gap: 12px; align-items: center; padding-bottom: 10px; }
.aic { width: 54px; height: 54px; border-radius: 50%; flex: 0 0 auto; background: var(--surface);
  border: 2px solid var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(184,134,11,.18); }
.aic img { width: 48px; height: 48px; object-fit: contain; }
.at { font-family: var(--serif); font-weight: 800; font-size: 16px; color: var(--head); }
.as { font-size: 11.5px; color: var(--brand); font-weight: 700; margin-top: 2px; line-height: 1.5; }
.arow { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0 10px; border-top: 1px solid var(--border); }
.achip { flex: 0 0 94px; background: var(--brand-subtle); border-radius: 10px; padding: 9px 4px;
  text-align: center; font-size: 11px; font-weight: 700; color: var(--brand-deep); }
.atxt { font-size: 13px; line-height: 1.75; color: var(--fg); font-weight: 500; padding-top: 2px; }
.bgrid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.bitem { display: flex; gap: 7px; align-items: flex-start; padding: 10px 6px 10px 0; font-size: 12.5px;
  font-weight: 600; line-height: 1.55; color: var(--fg); }
.bitem:nth-child(odd) { border-right: 1px dashed var(--border); }
.bitem:nth-child(even) { padding-left: 10px; }
.bitem:nth-child(n+3) { border-top: 1px dashed var(--border); }
.bck { width: 17px; height: 17px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 10px;
  font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: 2px; }
.crow { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--border); padding: 11px 0 2px; }
.ctxt { flex: 1; font-size: 13px; line-height: 1.8; color: var(--fg); font-weight: 500; }
.cimg { width: 80px; height: auto; flex: 0 0 auto; }
.ctacap { text-align: center; font-size: 11px; color: var(--muted-fg); margin-top: 4px; }
.cardic { width: 30px; height: 30px; object-fit: contain; vertical-align: middle; margin-right: 9px; flex: 0 0 auto; }

/* ============ 結果カード（深いワインレッド） ============ */
.result { background: var(--grad-wine); border-radius: var(--r-xl); padding: 20px; box-shadow: var(--glow); }
.result, .result * { color: #fff; }
.result .rlab { font-family: var(--serif); font-size: 13px; font-weight: 700; letter-spacing: .06em; opacity: .9;
  display: flex; align-items: center; flex-wrap: wrap; }
.result .rl-t { font-weight: 800; }
.result .rl-s { flex-basis: 100%; font-family: var(--font); font-weight: 500; font-size: 11px; opacity: .85;
  margin-top: 3px; letter-spacing: 0; color: rgba(255,255,255,.82); }
.result .item { background: rgba(255,255,255,.14); border-radius: var(--r-md); padding: 12px 15px; margin-top: 8px; font-size: 14px; line-height: 1.7; }
.result .item .il { display: block; font-size: 10.5px; letter-spacing: .06em; font-weight: 700; opacity: .72; margin-bottom: 5px; }
.result .item .ic { display: block; font-size: 15.5px; line-height: 1.85; font-weight: 500; }

/* 結果ヘッダー帯（見えてきた可能性） */
.resband { background: var(--brand-subtle); border: 1px solid #efdcae; border-radius: var(--r-lg); padding: 13px 15px; margin-bottom: 12px; }
.resband .rb-t { font-family: var(--serif); font-weight: 700; color: var(--brand-deep); font-size: 15px; line-height: 1.5; display: flex; align-items: center; }
.resband .rb-t .cardic { width: 22px; height: 22px; margin-right: 6px; }
.resband .rb-s { font-size: 12px; color: var(--brand-subtle-fg); line-height: 1.65; margin-top: 5px; }

/* 適職レコメンド */
.reco { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand);
  border-radius: var(--r-md); padding: 12px 14px; margin-top: 9px; box-shadow: var(--sh-sm); }
.reco .job { font-family: var(--serif); font-weight: 700; color: var(--brand-deep); font-size: 15px; margin-bottom: 3px; }
.reco .why { font-size: 12.5px; color: var(--fg); line-height: 1.65; }

/* メールゲート（適職診断のマスク＋無料アンロック） */
.masked { position: relative; }
.masked .blur { filter: blur(7px); opacity: .5; pointer-events: none; user-select: none; }
.gate { background: var(--surface); border: 1.5px solid var(--brand); border-radius: var(--r-lg);
  padding: 17px 16px; box-shadow: var(--sh-md); text-align: center; margin-top: 10px; }
.gate .lk { font-size: 24px; }
.gate .gt { font-family: var(--serif); font-weight: 700; color: var(--brand-deep); font-size: 15.5px; margin: 5px 0 3px; line-height: 1.5; }
.gate .gs { font-size: 12px; color: var(--muted-fg); margin-bottom: 12px; line-height: 1.6; }

/* パーパス自己理解コース導線 */
.course { background: var(--grad-wine); border-radius: var(--r-xl); padding: 20px; box-shadow: var(--glow); margin-top: 8px; }
.course, .course * { color: #fff; }
.course .ceb { font-family: var(--serif); font-size: 11px; letter-spacing: .14em; opacity: .85; font-weight: 700; }
.course .ct { font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.55; margin: 7px 0 9px; }
.course .cd { font-size: 13px; line-height: 1.75; opacity: .95; }
.course ul { margin: 11px 0 0; padding-left: 19px; }
.course li { font-size: 13px; line-height: 1.8; }

/* ============ チャット（元 .stChatMessage） ============ */
.chat-msg { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); padding: 12px 14px; margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.chat-msg .avatar { flex: 0 0 auto; font-size: 18px; line-height: 1; }
.chat-msg p { font-size: 14.5px; line-height: 1.75; margin: 0; }
.chat-msg strong { font-weight: 700; color: var(--brand-deep); }
.typing { display: inline-flex; gap: 5px; padding: 8px 2px 4px; }
.typing .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); opacity: .35; }
.typing .dot:nth-child(2) { animation-delay: .2s; }
.typing .dot:nth-child(3) { animation-delay: .4s; }

/* ============ 解析中エフェクト ============ */
.ana { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px 20px; box-shadow: var(--sh-md); }
.ana .spin { width: 50px; height: 50px; margin: 2px auto 16px; border-radius: 50%;
  border: 4px solid var(--brand-subtle); border-top-color: var(--brand); }
.ana .atitle { text-align: center; font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--brand-deep); margin-bottom: 16px; }
.ana .astep { display: flex; align-items: center; gap: 10px; padding: 9px 4px; font-size: 13.5px; color: var(--muted-fg);
  border-top: 1px solid var(--border); transition: color .3s; }
.ana .astep:first-of-type { border-top: 0; }
.ana .astep.done { color: var(--head); }
.ana .astep.cur { color: var(--brand-deep); font-weight: 700; }
.ana .astep .mk { width: 20px; text-align: center; font-size: 14px; }
/* 全画面オーバーレイ（重い処理の間・スクロール位置に関係なく必ず見える） */
.ana-overlay { position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: flex; align-items: center; justify-content: center; padding: 24px; }
.ana-overlay .ana { width: 100%; max-width: 392px; box-shadow: none; border: 0; }

/* ============ 入力欄 ============ */
input[type="text"], input[type="email"], textarea {
  width: 100%; background: var(--surface); color: var(--fg); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 14px; font-family: var(--font); font-size: 14px; box-sizing: border-box;
}
input::placeholder, textarea::placeholder { color: var(--muted-fg); opacity: .85; }
input:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(184,134,11,.18);
}
small, .caption { color: var(--muted-fg); font-size: 11px; }

/* ============ 画像 ============ */
.img-full { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-md); display: block; margin: 2px 0 10px; }

/* POP担保バー（無料・手軽・納得・接続を明示） */
.poprow { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 2px 0 14px; }
.poprow .pop { font-size: 11px; font-weight: 700; color: var(--brand-deep); background: var(--brand-subtle);
  border: 1px solid #eeddb6; border-radius: 999px; padding: 5px 11px; }

/* ============ home（LP・ナーチャ） ============ */
.lp-cap { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.65; color: var(--head);
  text-align: center; margin: 16px 0 8px; }
.lp-cap .kw { color: var(--brand); }
.lp-sub { font-size: 13px; color: var(--muted-fg); text-align: center; line-height: 1.85; margin-bottom: 14px; }
.lp-ben { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 14px 16px; margin-bottom: 9px; box-shadow: var(--sh-sm); display: flex; gap: 12px; align-items: flex-start; }
.lp-ben .n { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--grad-brand); color: #fff;
  font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); }
.lp-ben .t { font-family: var(--serif); font-weight: 700; font-size: 14.5px; color: var(--head); line-height: 1.5; }
.lp-ben .d { font-size: 12px; color: var(--muted-fg); line-height: 1.7; margin-top: 3px; }
.lp-quote { background: var(--brand-subtle); border-left: 4px solid var(--brand); border-radius: var(--r-md);
  padding: 14px 16px; margin: 12px 0; font-size: 13.5px; line-height: 1.85; color: var(--fg); }
.lp-quote b { color: var(--brand-deep); }
.lp-meta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 10px 0 4px; }
.lp-meta span { font-size: 11.5px; font-weight: 700; color: var(--brand-deep); background: var(--brand-subtle);
  border: 1px solid #eeddb6; border-radius: 999px; padding: 5px 12px; }

/* ============ レイアウト用ユーティリティ ============ */
/* plain HTML には Streamlit のブロック間デフォルト余白が無いため、
   画面側でインライン style を書かせない代わりに用意した最小限のスペーサー。
   design.md §3.1 の「要素間の既定 gap: 10px」に対応。 */
.gap-sm { height: 10px; }
.gap-md { height: 14px; }
/* 元 st.columns([1,2]) 相当。1:2比率の2カラムボタン行（interim の「やり直す/深掘り」等） */
.btn-row-12 { display: flex; gap: 10px; }
.btn-row-12 > :first-child { flex: 1; }
.btn-row-12 > :last-child { flex: 2; }
.center { text-align: center; }
/* 元 st.divider()。既定のブラウザ罫線ではブランドの地色から浮くため揃える */
.divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

/* 🔴 アーキタイプカード（.archetype-card）は 2026-07-23 西川判断で対象外。
   design.md §8.3 に仕様はあるが、実装は一旦保留（design-lab/README.md 参照）。 */
