/* ============================================================
   婚活コンパス ─ スタイル
   テーマ:  agency = 深緑 × 金 / matching = 濃紫 × 桃
   ============================================================ */
:root {
  --ink: #23201f;
  --paper: #FBF6EC;
  --paper-2: #F3ECDD;
  --line: #ddd2bd;
  --muted: #6f6a63;
  --gold: #C9A85C;
  --gold-deep: #A8863B;
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --wrap: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.9;
  font-size: 16px;
}
a { color: inherit; }
img { max-width: 100%; }

/* ---------- PR表記（ステマ規制・全ページ常時） ---------- */
.pr-bar {
  background: var(--ink);
  color: var(--paper);
  font-size: 11.5px;
  letter-spacing: .04em;
  text-align: center;
  padding: 7px 12px;
}

/* ---------- ヘッダ / フッタ ---------- */
header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  text-decoration: none; line-height: 1.2;
}
.brand small {
  display: block; font-family: var(--sans); font-weight: 400;
  font-size: 9.5px; letter-spacing: .22em; color: var(--muted);
}
header nav { display: flex; gap: 16px; font-size: 13px; }
header nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
header nav a:hover { color: var(--ink); }

footer {
  border-top: 1px solid var(--line);
  margin-top: 64px; padding: 28px 18px 40px; text-align: center;
  font-size: 13px; color: var(--muted);
}
footer div { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
footer a { color: var(--muted); }
.copy { font-size: 11px; opacity: .8; }

/* ---------- 汎用レイアウト ---------- */
main { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.45; }
article h1 { font-size: clamp(24px, 5.2vw, 34px); margin: 34px 0 10px; }
article h2 { font-size: clamp(19px, 4vw, 24px); margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
article h3 { font-size: clamp(16px, 3.4vw, 19px); margin: 26px 0 8px; }
article p, article li { font-size: 15.5px; }
.meta { font-size: 12.5px; color: var(--muted); margin: 0 0 26px; }
.note {
  background: var(--paper-2); border-left: 3px solid var(--gold);
  padding: 14px 16px; font-size: 13.5px; margin: 26px 0; line-height: 1.85;
}

/* ---------- トップ ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 52px 18px 40px; text-align: center; }
.kicker { letter-spacing: .3em; font-size: 11.5px; color: var(--gold-deep); margin: 0 0 14px; }
.hero h1 { font-size: clamp(26px, 6vw, 40px); margin: 0 0 18px; }
.hero p { color: var(--muted); font-size: 15px; margin: 0 0 28px; }

.btn-gold, .btn-primary {
  display: inline-block; border: none; cursor: pointer;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  color: #fff; font-family: var(--sans); font-weight: 700;
  font-size: 16px; letter-spacing: .04em;
  padding: 16px 38px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 22px rgba(168,134,59,.32);
  transition: transform .15s ease, filter .15s ease;
}
.btn-gold:hover, .btn-primary:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn-gold:focus-visible, .btn-primary:focus-visible,
.q-option:focus-visible, .q-back:focus-visible, .q-share:focus-visible, .q-switch:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}

.section-title { font-size: 20px; margin: 48px 0 18px; }
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  display: block; text-decoration: none;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 20px 22px; background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.07); }
.card .tag {
  display: inline-block; font-size: 11px; letter-spacing: .08em;
  color: var(--gold-deep); border: 1px solid var(--gold); border-radius: 999px;
  padding: 2px 10px; margin-bottom: 10px;
}
.card h3 { font-size: 17px; margin: 0 0 8px; }
.card p { font-size: 13.5px; color: var(--muted); margin: 0; }

.shindan-banner {
  margin: 48px 0 0; padding: 32px 22px; text-align: center;
  background: var(--paper-2); border-radius: 16px; border: 1px solid var(--line);
}
.shindan-banner h2 { font-size: 21px; margin: 0 0 8px; }
.shindan-banner p { font-size: 14px; color: var(--muted); margin: 0 0 20px; }

/* ---------- 比較表 ---------- */
.cmp-wrap { overflow-x: auto; margin: 22px 0; -webkit-overflow-scrolling: touch; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 13.5px; background: #fff; }
table.cmp th, table.cmp td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.cmp thead th { background: var(--paper-2); font-family: var(--serif); white-space: nowrap; }
table.cmp tbody th { font-weight: 700; white-space: nowrap; }
.cmp-note { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ============================================================
   診断
   ============================================================ */
.quiz {
  min-height: 78vh; padding: 40px 18px 72px;
  display: flex; justify-content: center;
  transition: background .5s ease;
}
.quiz.theme-agency   { background: linear-gradient(180deg, #1C2B26, #2E463D); }
.quiz.theme-matching { background: linear-gradient(180deg, #2E1B2E, #472B44); }
.q-stage { width: 100%; max-width: 560px; color: var(--paper); }
.q-center { text-align: center; }
.quiz [data-focus] { outline: none; }

.q-eyebrow { letter-spacing: .32em; font-size: 11.5px; margin: 0 0 14px; }
.theme-agency   .q-eyebrow { color: var(--gold); }
.theme-matching .q-eyebrow { color: #F5A0B6; }
.q-eyebrow.q-alert { color: #F0C267; letter-spacing: .18em; }

.q-title { font-family: var(--serif); font-size: clamp(23px, 5.2vw, 32px); margin: 0 0 14px; }
.q-sub { font-size: 14.5px; opacity: .88; margin: 0 0 10px; line-height: 1.85; }
.q-note { font-size: 11.5px; opacity: .7; margin: 0 0 30px; }
.q-privacy { font-size: 11.5px; opacity: .62; margin: 18px 0 0; }
.q-body { font-size: 14.5px; line-height: 1.9; opacity: .92; margin: 0 0 22px; }
.q-muted { opacity: .72; font-size: 13.5px; }

.q-progress { display: flex; justify-content: space-between; font-size: 12px; opacity: .8; margin-bottom: 8px; }
.q-bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; margin-bottom: 28px; }
.q-bar > div { height: 100%; border-radius: 999px; transition: width .4s ease; }
.theme-agency   .q-bar > div { background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.theme-matching .q-bar > div { background: linear-gradient(90deg, #F27E9B, #F0566A); }

.q-question { font-family: var(--serif); font-size: clamp(19px, 4.4vw, 25px); margin: 0 0 22px; }
.q-options { display: flex; flex-direction: column; gap: 11px; }
.q-option {
  width: 100%; text-align: left; padding: 17px 20px;
  border-radius: 14px; border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07); color: inherit;
  font-family: var(--sans); font-size: 15.5px; font-weight: 600;
  cursor: pointer; transition: transform .15s ease, border-color .15s ease;
}
.theme-agency   .q-option:hover { border-color: var(--gold); transform: translateY(-2px); }
.theme-matching .q-option:hover { border-color: #F27E9B; transform: translateY(-2px); }
.q-option-rich { display: flex; flex-direction: column; gap: 7px; }
.q-option-rich strong { font-size: 16px; }
.q-option-rich span { font-size: 13px; font-weight: 400; opacity: .82; line-height: 1.8; }

.q-back, .q-share, .q-switch {
  background: none; border: none; color: inherit; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; opacity: .78; text-decoration: underline;
  padding: 10px 4px;
}
.q-back { display: block; margin: 20px auto 0; }
.q-switch { display: block; margin: 22px auto 0; font-size: 13px; }
.q-actions { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 30px; }
.q-share { text-decoration: none; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 11px 26px; opacity: .9; }

/* ---------- 注意喚起ブロック ---------- */
.q-callout {
  border-radius: 14px; padding: 18px 20px; margin: 0 0 22px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.22);
  font-size: 13.5px; line-height: 1.9;
}
.q-callout p { margin: 0; }
.q-callout-h { font-weight: 700; margin-bottom: 6px !important; }
.theme-agency   .q-callout-h { color: var(--gold); }
.theme-matching .q-callout-h { color: #F5A0B6; }
.q-callout-warn { background: rgba(240,194,103,.12); border-color: rgba(240,194,103,.45); margin-top: 6px; }

/* ---------- 結果カード（半券モチーフ） ---------- */
.q-result-lead { font-family: var(--serif); font-size: clamp(20px, 4.4vw, 25px); margin: 0 0 8px; }
.q-card {
  background: var(--paper); color: var(--ink);
  border-radius: 16px; overflow: hidden; margin-bottom: 18px;
}
.q-card-top { box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.q-card-head { padding: 22px 22px 16px; display: flex; gap: 14px; align-items: flex-start; }
.q-rank {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif);
  font-size: 15px; font-weight: 700; color: #fff; margin-top: 3px;
}
.theme-agency   .q-rank { background: var(--gold-deep); }
.theme-matching .q-rank { background: #E0516B; }
.q-card-head h3 { font-size: 21px; margin: 0 0 3px; }
.q-eg { font-size: 12px; color: var(--muted); margin: 0 0 5px; }
.q-catch { font-size: 14px; font-weight: 600; color: #5c6157; margin: 0; }

.q-perf { border-top: 2px dashed rgba(35,32,31,.22); position: relative; }
.q-perf span { position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; }
.q-perf span:first-child { left: -11px; } .q-perf span:last-child { right: -11px; }
.theme-agency   .q-perf span { background: #253830; }
.theme-matching .q-perf span { background: #3b243a; }

.q-card-body { padding: 18px 22px 24px; }
.q-h { font-family: var(--serif); font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.q-card-body ul { list-style: none; margin: 0 0 16px; padding: 0; }
.q-card-body li { display: flex; gap: 9px; font-size: 14px; line-height: 1.8; margin-bottom: 5px; }
.q-pros li::before { content: "○"; font-weight: 700; color: var(--gold-deep); }
.q-cons li::before { content: "△"; font-weight: 700; color: #b0714f; }
.q-fit { font-size: 13.5px; background: var(--paper-2); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; line-height: 1.85; }
.q-fee { font-size: 13px; color: var(--muted); margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.q-checked { font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.q-cta { display: block; text-align: center; font-size: 15px; padding: 15px 20px; }
.q-ad { font-size: 11px; color: var(--muted); text-align: center; margin: 10px 0 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- 提携前：社名のみ表示 ---------- */
.q-names {
  font-size: 13.5px; background: var(--paper-2); border-radius: 10px;
  padding: 12px 14px; margin: 0 0 10px; line-height: 1.8;
}
.q-names span {
  display: block; font-size: 11px; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 3px;
}

/* ---------- 記事内：自分の体験を書く枠 ---------- */
.own {
  border: 2px dashed var(--gold); border-radius: 12px;
  background: rgba(201,168,92,.09); padding: 16px 18px; margin: 26px 0;
}
.own-h {
  font-family: var(--serif); font-weight: 700; font-size: 14px;
  color: var(--gold-deep); margin: 0 0 8px !important;
}
.own p { font-size: 13.5px !important; color: var(--muted); margin: 0; line-height: 1.85; }

/* ============================================================
   お問い合わせフォーム
   ============================================================ */
.cform { margin: 30px 0 0; }
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: 14.5px; margin-bottom: 7px;
}
.req {
  font-family: var(--sans); font-size: 10.5px; font-weight: 700;
  background: var(--gold-deep); color: #fff; border-radius: 3px;
  padding: 1px 7px; margin-left: 7px; vertical-align: 2px; letter-spacing: .06em;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; /* 16px未満はiOSで自動ズームする */
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; line-height: 1.7;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,92,.22);
}
.cform-note { font-size: 12.5px; color: var(--muted); line-height: 1.85; margin: 0 0 20px; }
.cform-submit { display: block; width: 100%; text-align: center; border: none; cursor: pointer; }

/* ハニーポット：人間には見えない。ボットだけが入力してしまう罠 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 送信完了 ---------- */
.done { text-align: center; padding: 56px 0 40px; }
.done-mark { width: 76px; height: 76px; margin-bottom: 22px; }
.done h1 { font-size: clamp(23px, 5vw, 30px); margin: 0 0 16px; }
.done p { font-size: 15px; line-height: 1.95; margin: 0 0 10px; }
.done-sub { font-size: 13px !important; color: var(--muted); margin-bottom: 30px !important; }
