/* =========================================================
   診断サイト スタイルシート
   方向性: 明るく親しみやすい現代UI（コーラルピンク × 穏やかな紫）
   ========================================================= */

:root {
  --bg:           #FAFAF7;          /* 紙のようなオフホワイト */
  --paper:        #FFFFFF;          /* カード地 */
  --ink:          #1F2937;          /* 主テキスト */
  --ink-sub:      #6B7280;          /* 副テキスト */
  --accent:       #FF6B7A;          /* コーラルピンク（主） */
  --accent-hover: #F25668;
  --accent-soft:  rgba(255, 107, 122, 0.10);
  --accent2:      #8B7AB8;          /* 穏やかな紫（副） */
  --accent2-deep: #6E5BA0;
  --accent2-soft: rgba(139, 122, 184, 0.12);
  --line:         #E5E7EB;          /* 区切り線 */
  --shadow-card:       0 2px 8px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.06);
  --shadow-btn:        0 2px 6px rgba(255, 107, 122, 0.25);
  --shadow-btn-hover:  0 4px 12px rgba(255, 107, 122, 0.32);
  --radius-card: 16px;
  --radius-btn:  8px;
  --radius-pill: 999px;
  --font-display: 'Zen Maru Gothic', 'Zen Kaku Gothic New', sans-serif;
  --font-body:    'Zen Kaku Gothic New', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
}

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.logo-mark {
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .85rem;
  letter-spacing: .04em;
  font-weight: 700;
}
.header-note {
  font-size: .78rem;
  color: var(--ink-sub);
  font-weight: 500;
}

/* ---------- ヒーロー ---------- */
.hero {
  text-align: center;
  padding: 56px 16px 36px;
}
.hero-kicker {
  display: inline-block;
  background: var(--accent2-soft);
  color: var(--accent2-deep);
  font-size: .78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  letter-spacing: .02em;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: .01em;
}
.hero h1 .hl { color: var(--accent); }
.hero p {
  margin-top: 14px;
  color: var(--ink-sub);
  font-size: 1rem;
}

/* ---------- 診断カード一覧 ---------- */
.section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 8px 0 20px;
  display: flex; align-items: baseline; gap: 10px;
  color: var(--ink);
}
.section-label .count {
  font-family: var(--font-body);
  font-size: .82rem;
  color: var(--ink-sub);
  font-weight: 500;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 72px;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 24px 20px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: #DDE0E5;
}
.card-emoji {
  font-size: 52px;
  line-height: 1;
  text-align: center;
  margin-bottom: 18px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.05));
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.55;
  margin-bottom: 8px;
  color: var(--ink);
}
.card-tagline {
  font-size: .88rem;
  color: var(--ink-sub);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 18px;
}
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  font-size: .78rem;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.card-meta-info {
  color: var(--ink-sub);
  font-weight: 500;
}

/* バッジ（カテゴリ） */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4;
}
.badge-teiban {
  background: var(--accent2-soft);
  color: var(--accent2-deep);
}
.badge-trend {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 28px 0;
  font-size: .8rem;
  color: var(--ink-sub);
}

/* ---------- 診断ページ ---------- */
.shindan-main { padding: 40px 0 72px; }

.shindan-head { text-align: center; margin-bottom: 28px; }
.shindan-emoji {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.05));
}
.shindan-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--ink);
}
.shindan-tagline {
  color: var(--ink-sub);
  font-size: .95rem;
  margin-bottom: 14px;
}
.shindan-meta {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .8rem;
  color: var(--ink-sub);
}

/* パネル共通（イントロ・質問を載せる枠） */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.panel-intro p { margin-bottom: 24px; color: var(--ink); }

/* ボタン */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-btn);
  line-height: 1.3;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
  color: #fff;
}
.btn:active { transform: translateY(0); box-shadow: var(--shadow-btn); }
/* 旧 .btn-blue を主アクセント色に統一（互換用） */
.btn-blue { background: var(--accent); box-shadow: var(--shadow-btn); }
.btn-blue:hover { background: var(--accent-hover); }

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  font-weight: 700;
}
.btn-ghost:hover {
  background: var(--bg);
  border-color: #CFD3DA;
  color: var(--ink);
  box-shadow: none;
}

.btn-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.center { text-align: center; }
.hidden { display: none !important; }

/* プログレスバー */
.progress {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.progress-label {
  font-size: .82rem;
  color: var(--ink-sub);
  font-weight: 700;
  min-width: 52px;
  letter-spacing: .02em;
}
.progress-track {
  flex-grow: 1; height: 8px;
  background: var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width .35s ease;
}

/* 質問 */
.question-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 22px;
  color: var(--ink);
}
.choices { display: flex; flex-direction: column; gap: 12px; }
.choice {
  text-align: left;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
  line-height: 1.6;
}
.choice:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.choice:active { transform: translateY(0); }

/* 質問の切り替えアニメ */
.fade-step { animation: fadeStep .3s ease; }
@keyframes fadeStep {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 結果 */
.result-type {
  text-align: center;
  background: linear-gradient(135deg, #FFF1F3 0%, #F3F0F9 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 36px 24px;
  margin-bottom: 24px;
}
.result-label {
  font-size: .78rem;
  color: var(--ink-sub);
  letter-spacing: .18em;
  font-weight: 700;
}
.result-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  line-height: 1.4;
  margin: 12px 0 8px;
  color: var(--ink);
}
.result-summary {
  color: var(--ink-sub);
  font-weight: 500;
  font-size: .98rem;
}

.result-block { margin-bottom: 26px; }
.result-block h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  line-height: 1.5;
}
.result-block p {
  color: var(--ink);
  font-size: .98rem;
}
.result-aruaru { list-style: none; padding: 0; }
.result-aruaru li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px 12px 40px;
  margin-bottom: 8px;
  font-size: .95rem;
  position: relative;
  color: var(--ink);
}
.result-aruaru li::before {
  content: "✓";
  position: absolute;
  left: 16px; top: 12px;
  color: var(--accent);
  font-weight: 700;
}

.result-axes {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.axis-meter {
  flex: 1; min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.axis-name {
  font-weight: 700;
  font-size: .85rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.axis-bar {
  height: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
}
.axis-bar span {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width .5s ease;
}
.axis-ends {
  display: flex; justify-content: space-between;
  font-size: .72rem;
  color: var(--ink-sub);
  margin-top: 6px;
}

.disclaimer {
  font-size: .78rem;
  color: var(--ink-sub);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 28px;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 560px) {
  .panel { padding: 22px 18px; }
  .hero { padding: 40px 16px 28px; }
  .site-header .wrap { padding-top: 12px; padding-bottom: 12px; }
  .header-note { display: none; }
  .result-type { padding: 28px 18px; }
}
