/* app.css — ツール本体のUI。名刺(.mc-*)の見た目はトークンでインライン指定される */

:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --ink: #1d2330;
  --muted: #6b7280;
  --line: #e6e8ec;
  --brand: #2f5aa8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ヘッダー */
.site-head {
  padding: 22px 28px;
  background: #0f1422;
  color: #fff;
}
.site-head .brand { font-size: 13px; letter-spacing: .14em; color: #9aa4bf; text-transform: uppercase; }
.site-head h1 { margin: 6px 0 4px; font-size: 22px; font-weight: 700; letter-spacing: .01em; }
.site-head p { margin: 0; color: #c3c9da; font-size: 13px; }

/* レイアウト */
.layout { display: grid; grid-template-columns: 420px 1fr; gap: 20px; padding: 20px 28px 60px; align-items: start; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } }

/* 入力パネル */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); position: sticky; top: 16px;
}
@media (max-width: 1000px) { .panel { position: static; } }
.panel h2 { font-size: 15px; margin: 0 0 2px; }
.panel .sub { font-size: 12px; color: var(--muted); margin: 0 0 14px; }

fieldset { border: none; border-top: 1px solid var(--line); margin: 14px 0 0; padding: 14px 0 0; }
fieldset legend { font-size: 12px; font-weight: 700; color: var(--brand); padding: 0; letter-spacing: .04em; }
.row { margin-top: 10px; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label.lbl { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.q-no { color: var(--brand); font-weight: 700; margin-right: 5px; }
.fld, textarea.fld, select.fld {
  width: 100%; font: inherit; font-size: 13px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 9px; background: #fcfcfd; color: var(--ink);
}
textarea.fld { resize: vertical; min-height: 44px; }
.fld:focus { outline: 2px solid rgba(47, 90, 168, .25); border-color: var(--brand); }

/* チップ（世界観・これは違う） */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 6px 11px; font-size: 12px; border: 1px solid var(--line);
  border-radius: 999px; background: #fcfcfd; cursor: pointer; user-select: none;
}
.chip input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip input:focus-visible + span { outline: 2px solid rgba(47, 90, 168, .4); }

.actions { display: flex; gap: 10px; margin-top: 18px; }
button { font: inherit; cursor: pointer; border-radius: 10px; padding: 11px 16px; font-size: 14px; font-weight: 600; border: 1px solid var(--line); background: #fff; }
button.primary { background: var(--brand); color: #fff; border-color: var(--brand); flex: 1; }
button.primary:hover { filter: brightness(1.05); }
button.ghost:hover { background: #f6f7f9; }

/* 結果 */
#results { min-height: 40px; }
.res-head h2 { margin: 2px 0 4px; font-size: 20px; }
.muted { color: var(--muted); font-size: 12px; }
.reco-note { color: var(--brand); font-weight: 600; margin-left: 6px; }

.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 16px; box-shadow: var(--shadow); }
.plan-reco { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 90, 168, .12), var(--shadow); }
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.plan-label { font-size: 16px; font-weight: 700; }
.plan-aim { font-size: 12px; color: var(--muted); margin-top: 2px; }
.plan-swatch { display: flex; gap: 5px; }
.plan-swatch span { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }

.cards { display: flex; flex-wrap: wrap; gap: 18px; margin: 16px 0; }
.card-col { }
.card-tag { font-size: 11px; color: var(--muted); margin-bottom: 5px; letter-spacing: .1em; }

/* 名刺本体 */
.mc-face {
  position: relative; overflow: hidden; box-shadow: 0 2px 10px rgba(16,24,40,.12), 0 0 0 1px rgba(16,24,40,.06);
}
.mc-stack { display: flex; flex-direction: column; height: 100%; gap: 6px; }
.mc-align-left { align-items: flex-start; text-align: left; }
.mc-align-center { align-items: center; text-align: center; }
.mc-name { line-height: 1.15; }
.mc-name-en { font-size: 10px; letter-spacing: .08em; margin-top: 2px; }
.mc-title { font-size: 11px; margin-top: 2px; }
.mc-rule { height: 1px; width: 100%; margin: 4px 0; }
.mc-tagline { font-size: 11px; font-weight: 600; margin-top: auto; }
.mc-hero { font-size: 19px; font-weight: 800; line-height: 1.25; padding-left: 9px; margin-bottom: 4px; }
.mc-do { font-size: 10.5px; }
.mc-contacts { font-size: 10px; line-height: 1.55; margin-top: auto; }
.mc-url { font-size: 11px; font-weight: 600; }
.mc-strength-ttl { font-size: 10px; font-weight: 700; letter-spacing: .08em; margin-bottom: 3px; }
.mc-strength { margin: 0; padding-left: 15px; font-size: 10.5px; line-height: 1.5; }
.mc-sns { font-size: 10px; display: flex; flex-direction: column; gap: 1px; margin-top: 4px; }
.mc-qr { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; margin-top: auto; }
.mc-qr-cap { font-size: 8.5px; }
.mc-cta { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 7px; font-size: 11px; font-weight: 700; }

/* 情報設計の流れ */
.flow { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; background: #fafbfc; }
.flow-row { display: grid; grid-template-columns: 90px 1fr; gap: 8px; font-size: 12px; padding: 3px 0; align-items: baseline; }
.flow-row b { color: var(--brand); font-size: 11px; letter-spacing: .06em; }

details.why, details.review { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
details summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink); }
details.why ol { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
details.why li { margin: 5px 0; }
details.review ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
details.review li { font-size: 12.5px; background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }

.empty { color: var(--muted); font-size: 13px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; background: var(--panel); }
