/* =========================
   TOKENS / RESET
========================= */
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
img { max-width:100%; height:auto; display:block; }
button, input, select, textarea { font:inherit; }

:root{
  --bg:#fffaf7;
  --paper:#ffffff;
  --text:#2a2a2a;
  --muted:#6b6b6b;
  --border:#e9e1dc;

  --eq-main:#c7364c;     /* エクオール（赤） */
  --eq-accent:#f7d5db;
  --ge-main:#e77d22;     /* ゲニステイン（オレンジ） */
  --ge-accent:#fde2c9;

  --radius:16px;
  --shadow:0 6px 20px rgba(0,0,0,.08);
  --shadow-soft:0 3px 12px rgba(0,0,0,.06);
  --maxw:960px;
}

/* =========================
   BASE / LAYOUT
========================= */
body{
  font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,system-ui,-apple-system,sans-serif;
  font-weight:400;
  font-size:16px;
  line-height:1.85;
  letter-spacing:.02em;
  color:var(--text);
  background:var(--bg);
}
.wrap{ max-width:var(--maxw); margin:0 auto; padding:14px min(5vw,24px); }
h1,h2,h3{ line-height:1.4; margin:0 0 .4em; }
p{ margin:0 0 1em; }

/* =========================
   HEADER / NAV
========================= */
.site-header{
  background:#fff; border-bottom:1px solid var(--border);
  position:sticky; top:0; z-index:50;
}
.header-wrap{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding-block:10px;
}
.brand img{ height:40px; width:auto; }
.navcheck{ position:absolute; left:-9999px; } /* アクセシブル非表示 */

.menu-toggle{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius:10px; border:1px solid var(--border);
  background:#fff; cursor:pointer; box-shadow:var(--shadow-soft); user-select:none;
}
.menu-toggle .bar{ display:block; width:20px; height:2px; background:#333; position:relative; }
.menu-toggle .bar + .bar{ margin-top:4px; }
.menu-toggle .menu-text{ font-size:14px; color:#333; }

.site-nav{
  position:absolute; left:0; right:0; top:64px;
  background:#fff; border-bottom:1px solid var(--border);
  box-shadow:0 8px 20px rgba(0,0,0,.06);
  transform:translateY(-8px); opacity:0; visibility:hidden;
  transition:opacity .2s, transform .2s, visibility .2s;
}
.site-nav ul{ list-style:none; padding:8px 16px 16px; margin:0; display:grid; gap:6px; }
.site-nav a{ display:block; padding:12px 10px; border-radius:10px; text-decoration:none; color:#333; font-weight:600; }
.site-nav a:hover{ background:#f9f6f4; }

.navcheck:checked ~ .site-nav{ transform:none; opacity:1; visibility:visible; }
.navcheck:checked + .menu-toggle{ border-color:#d6c9c2; background:#fff8f5; }

@media (min-width:960px){
  .header-wrap{ gap:20px; padding-block:12px; }
  .menu-toggle{ display:none; }
  .site-nav{ position:static; opacity:1; visibility:visible; transform:none; border:0; box-shadow:none; background:transparent; }
  .site-nav ul{ display:flex; gap:clamp(12px,2.4vw,28px); padding:0; align-items:center; }
  .site-nav a{ padding:10px 6px; border-radius:8px; }
  .site-nav a:hover{ background:transparent; opacity:.75; }
}
@media (min-width:600px) and (max-width:959.98px){
  .site-nav{ top:70px; }
  .menu-toggle .menu-text{ font-size:15px; }
}

/* =========================
   HERO
========================= */
.hero{
  background:linear-gradient(180deg,#fff,#fff4ee);
  border-bottom:1px solid var(--border);
}
.hero h1{ font-size:clamp(20px,4.4vw,30px); margin-bottom:.3em; }
.lead{ color:#574f49; font-size:clamp(14px,3.6vw,16px); }

.hero-img {
  margin-top: 16px;
  border-radius: 12px;   /* 角丸にしたくないなら削除 */
  box-shadow: var(--shadow-soft);
  max-width: 100%;
  height: auto;
}
/* =========================
   CARD / PROGRESS
========================= */
.card{
  background:var(--paper);
  border:1px solid var(--border);
  padding:clamp(14px,4vw,24px);
  margin: 3rem auto;
}
.progress{
  height:10px; background:#f3ece7; border-radius:999px; overflow:hidden; margin-bottom:16px;
}
.progress > span{
  display:block; height:100%; width:0%;
  background:linear-gradient(90deg,var(--ge-main),var(--eq-main));
  transition:width .35s ease;
}

/* =========================
   QUIZ QUESTION
========================= */
.q-title{ font-size:clamp(18px,3.4vw,22px); margin-bottom:8px; }
.q-help{ color:var(--muted); margin-bottom:12px; }

.options{ display:grid; gap:12px; grid-template-columns:1fr; }
@media(min-width:760px){ .options{ grid-template-columns:1fr 1fr; } }

.opt{
  position:relative; border:1.5px solid var(--border);
  border-radius:14px; padding:14px 14px 14px 48px; background:#fff;
  transition:background .12s, border-color .12s, box-shadow .12s;
  min-height:56px; cursor:pointer; box-shadow:var(--shadow-soft);
}
.opt input{
  position:absolute; left:14px; top:50%; transform:translateY(-50%);
  width:22px; height:22px; accent-color:var(--eq-main);
}
.opt .tag{
  display:inline-block; font-size:12px; padding:2px 8px; border-radius:999px;
  margin-left:8px; color:#7a3a00; background:#fff7ea; border:1px dashed #f3b673;
}
.opt[data-flavor="eq"] .tag{ color:#7a0020; background:#fff0f3; border-color:#f3a7b2; }
.opt.selected{ background:linear-gradient(0deg,#fff,#fff8f5); border-color:#dacac2; }
.opt.selected[data-flavor="eq"]{ background:linear-gradient(0deg,#fff,#fff5f7); }

/* =========================
   ACTIONS
========================= */
.actions{
  display:flex; gap:12px; justify-content:space-between; align-items:center;
  margin-top:16px; flex-wrap:wrap;
}
.btn{
  padding:12px 18px; border-radius:999px; border:none; cursor:pointer; font-weight:700;
  background:#222; color:#fff; box-shadow:var(--shadow-soft);
}
.btn:disabled{ opacity:.45; cursor:not-allowed; }
.btn.secondary{ background:#f6f1ed; color:#333; border:1px solid var(--border); }
.btn.ghost{ background:transparent; border:1px solid var(--border); color:#333; }
.btn.primary{ background:#222; }

/* =========================
   RESULT PAGE
========================= */
.hidden{ display:none !important; }
.result{ display:grid; gap:16px; margin:8px auto 32px; }

/* ヒーロー（結果） */
.result-hero{
  display:grid; gap:12px;
  border-radius:calc(var(--radius) + 2px);
  padding:clamp(14px,3.5vw,20px);
  background:var(--ge-accent);
  color:#4a1f1f;
  border:1px solid var(--border);
}
.result[data-type="eq"] .result-hero{ background:var(--eq-accent); color:#5a1b27; }
.result-title{ font-size:clamp(20px,4.2vw,26px); margin:8px 0 6px; }

/* 画像とバッジ：被り対策（高さ確保＆小画面でバッジを静置） */
.result-hero .result-image{
  position:relative; max-width:360px; aspect-ratio:4/3; overflow:hidden;
}
.result-hero .result-image img{
  width:100%; height:100%; object-fit:contain; background:#fff;
}
.result-hero .badge-big{
  position:absolute; right:8px; bottom:8px;
  background:#fff; color:#333; border:1px solid var(--border);
  padding:6px 10px; border-radius:999px; font-weight:700; box-shadow:var(--shadow-soft);
}
@media (max-width:480px){
  .result-hero .badge-big{ position:static; display:inline-block; margin-top:8px; }
}

/* セクション見出し */
.section-heading{
  display:block; margin:4px 0 12px; font-size:clamp(18px,3.3vw,22px); line-height:1.4;
}
.section-heading .eyebrow{
  display:inline-block; font-size:.78em; letter-spacing:.08em;
  padding:2px 8px; margin-right:8px; border-radius:999px;
  border:1px solid var(--border); background:#faf7f4; color:#6b6b6b;
}

/* カラム：理由 → スタッフ */
.columns{
  display:grid; gap:16px; margin-top:8px;
  grid-template-areas:"reasons" "staff";
}
.panel{ border:1px solid var(--border); border-radius:var(--radius); padding:16px; background:#fff; }
.panel--reasons{ grid-area:reasons; }
.panel--staff{ grid-area:staff; }

@media(min-width:760px){
  .columns{
    grid-template-columns:1.2fr .8fr;
    grid-template-areas:"reasons staff";
  }
}

/* PCでスタッフパネルを2カラムに整列（見出しは全幅） */
.panel--staff{
  display: grid;
  gap: 16px;
}



/* スタッフカードの体裁（縦レイアウトで安定） */
.staff-box{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #faf7f4;
  text-align: center;
}

/* アバターをPCでは少し大きく */
.avatar{ width: 72px; height: 72px; border-radius: 50%; overflow: hidden; }
@media (min-width: 960px){
  .avatar{ width: 96px; height: 96px; }
}

/* 本文側のはみ出し/折返し対策 */
.panel--staff .staff-note{
  min-width: 0;             /* gridのテキストはこれがないと溢れることがある */
  word-break: break-word;
  hyphens: auto;
  line-height: 1.9;
}

/* 見出しと本文の視認性を少しUP（任意） */
.panel--staff .section-heading{ margin-bottom: 4px; }
.panel--staff .staff-meta .staff-name{ font-weight: 700; }
.panel--staff .staff-meta .staff-role{ color: var(--muted); font-size: .95rem; }



/* 理由/スコア */
.reason-list{ padding-left:0; list-style:none; margin:0 0 10px; }
.reason-list li{ position:relative; padding-left:24px; margin:6px 0; }
.reason-list li::before{
  content:"✔"; position:absolute; left:0; top:0; line-height:1.2; font-weight:700; opacity:.7;
}
.score-summary{
  margin-top:12px; padding:10px 12px; border:1px dashed var(--border);
  border-radius:12px; background:#fffdfb;
}
.score-title{ font-weight:700; margin-bottom:6px; }
.score-list{ list-style:none; padding-left:0; margin:0; display:grid; gap:4px; }
.score-list .label.eq{ color:var(--eq-main); }
.score-list .label.ge{ color:var(--ge-main); }
.priority{ margin-top:6px; color:#5b524c; }

/* スタッフ（丸アイコン） */
.staff-box{ display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.avatar{
  width:120px; height:120px; border-radius:50%; overflow:hidden;
  flex:0 0 auto;
}
.avatar img{ width:100%; height:100%; object-fit:cover; }
.staff-meta .staff-name{ font-weight:700; line-height:1.2; }
.staff-meta .staff-role{ color:var(--muted); font-size:.95rem; line-height:1.2; }

/* CTA / 小要素 */
.badges{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.badge{ font-size:11px; padding:4px 8px; border-radius:999px; border:1px solid var(--border); background:#fff; }
.cta{ display:flex; gap:12px; flex-wrap:wrap; margin-top:12px; }
.cta .eq{ background:var(--eq-main); }
.cta .ge{ background:var(--ge-main); }
.small{ font-size:.9rem; color:var(--muted); }
.panel .subhead{ margin-top:14px; }
.panel .tips{ margin-top:12px; }

/* =========================
   FOOTER
========================= */
.site-footer{ background:#fff; border-top:1px solid var(--border); margin-top:24px; }
.footer-inner{ text-align:center; }
.footer-brand img{ margin:0 auto 10px; }
.concept{ color:#574f49; }
.copy{ color:#8b8783; display:block; margin-top:8px; }

/* =========================
   TOAST
========================= */
.toast{
  position:fixed; left:50%; transform:translateX(-50%);
  bottom:16px; background:#222; color:#fff;
  padding:10px 14px; border-radius:999px; font-size:.9rem;
  box-shadow:var(--shadow); opacity:0; pointer-events:none; transition:opacity .25s;
}
.toast.show{ opacity:1; }
