:root {
  --bg-page: #f6f8fb;
  --bg-warm: #edf1f7;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f0f4f9;
  --bg-hover: #e8eef6;
  --text-primary: #1a2332;
  --text-secondary: #4a5568;
  --text-muted: #94a3b8;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-dim: rgba(37, 99, 235, 0.08);
  --accent-dim2: rgba(37, 99, 235, 0.04);
  --accent-border: rgba(37, 99, 235, 0.2);
  --accent-dark: #1d4ed8;
  --lavender: #6366f1;
  --lavender-dim: rgba(99, 102, 241, 0.10);
  --coral: #f59e0b;
  --coral-dim: rgba(245, 158, 11, 0.10);
  --mint: #10b981;
  --mint-dim: rgba(16, 185, 129, 0.10);
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --star-filled: #f59e0b;
  --star-empty: #d1d5db;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-display: 'Playfair Display', serif;
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 880px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --header-bg: rgba(246, 248, 251, 0.92);
  --mobile-nav-bg: rgba(246, 248, 251, 0.97);
  --shindan-btn-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  --shindan-btn-shadow-hover: 0 6px 24px rgba(37, 99, 235, 0.4);
  --floating-btn-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  --floating-btn-shadow-hover: 0 6px 28px rgba(37, 99, 235, 0.55);
}

/* ============================================
   base.css — 比較サイト量産テンプレート共通CSS
   カラー変数は各カテゴリの style.css で :root に定義する
   ============================================ */

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 2;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--lavender); }
table { border-collapse: collapse; width: 100%; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

/* ============================================
   Layout
   ============================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg, rgba(253, 248, 245, 0.92));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.site-logo span { color: var(--accent); }
.header-nav { display: flex; gap: 20px; font-size: 13px; }
.header-nav a { color: var(--text-secondary); font-weight: 500; }
.header-nav a:hover { color: var(--accent); }

/* Hamburger button (mobile) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  right: 0;
  background: var(--mobile-nav-bg, rgba(253,248,245,0.97));
  backdrop-filter: blur(12px);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 0 var(--radius-lg);
  padding: 20px 28px;
  z-index: 99;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--accent); }

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}
.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 5px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border, rgba(212, 105, 138, 0.2));
  border-radius: 20px;
}
.hero h1 {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.hero-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero-meta time { color: var(--text-secondary); }
.hero-intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 2;
}

/* ============================================
   Section common
   ============================================ */
section { padding: 60px 0; }
section + section { border-top: 1px solid var(--border); }
.section-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--lavender);
  margin-bottom: 6px;
}
h2 {
  font-size: 25px;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--text-primary);
}
h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.section-lead {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 2;
}

/* ============================================
   Purpose Match (結論ファースト)
   ============================================ */
.purpose-table {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.purpose-table table { margin: 0; }
.purpose-table th,
.purpose-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--border-light);
}
.purpose-table th {
  background: var(--bg-warm);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.purpose-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-primary);
}
.purpose-table tr:last-child td { border-bottom: none; }
.purpose-table .item-name { color: var(--accent); font-weight: 700; text-decoration: none; }
.purpose-table .item-name:hover { text-decoration: underline; }

/* ============================================
   Insight Box
   ============================================ */
.insight-box {
  background: linear-gradient(135deg, var(--accent-dim), var(--lavender-dim));
  border-left: 4px solid var(--accent);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.insight-box p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
}
.insight-box strong { color: var(--text-primary); font-weight: 600; }

/* ============================================
   Comparison Table
   ============================================ */
.comparison-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -24px;
  padding: 0 24px;
}
.comparison-table {
  min-width: 720px;
  font-size: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.comparison-table thead th {
  background: var(--bg-warm);
  padding: 14px 16px;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.comparison-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--bg-hover); }
.comparison-table .item-cell {
  font-weight: 600;
  white-space: nowrap;
}
.comparison-table .item-cell a { color: var(--text-primary); text-decoration: none; }
.comparison-table .item-cell a:hover { color: var(--accent); text-decoration: underline; }
.comparison-table .price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.comparison-table .stars { color: var(--star-filled); letter-spacing: 2px; font-size: 14px; }
.comparison-table .badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.badge-primary { background: var(--accent-dim); color: var(--accent); }
.badge-secondary { background: var(--lavender-dim); color: var(--lavender); }
.badge-tertiary { background: var(--mint-dim); color: var(--mint); }

/* ============================================
   Item Cards (スクール/企業カード)
   ============================================ */
.item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.item-card:hover { box-shadow: var(--shadow); border-color: var(--accent-border, rgba(212,105,138,0.3)); }
.item-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.item-card h3 { margin-bottom: 4px; font-size: 19px; }
.item-card h3 a { color: inherit; text-decoration: none; }
.item-card h3 a:hover { color: var(--accent); }
.item-card .stars { color: var(--star-filled); font-size: 16px; letter-spacing: 2px; }
.item-card .star-empty { color: var(--star-empty); }
.item-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
  background: var(--bg-warm);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.tag-highlight {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent-border, rgba(212,105,138,0.2));
  font-weight: 600;
}
.item-card-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 18px;
}
.item-card-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.price-item {
  background: var(--bg-warm);
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.price-label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.price-value { font-size: 19px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.price-value small { font-size: 12px; font-weight: 400; color: var(--text-secondary); }
.item-card-review {
  background: var(--bg-warm);
  border-left: 3px solid var(--coral);
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.item-card-review p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
  font-style: italic;
}
.item-card-review cite {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-style: normal;
  margin-top: 6px;
}
.item-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.item-card-location {
  font-size: 13px;
  color: var(--text-muted);
}
.item-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.item-card-link:hover { color: var(--lavender); }

/* ============================================
   Survey Data / Bar Chart
   ============================================ */
.survey-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.survey-item h3 { font-size: 17px; margin-bottom: 18px; }
.bar-chart { margin-bottom: 8px; }
.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
}
.bar-label {
  width: 240px;
  flex-shrink: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}
.bar-track {
  flex: 1;
  height: 24px;
  background: var(--bg-warm);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--coral));
  border-radius: 12px;
  transition: width 0.6s ease;
}
.bar-value {
  width: 44px;
  text-align: right;
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-left: 36px;
  position: relative;
  color: var(--text-primary);
}
.faq-q::before {
  content: 'Q';
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}
.faq-a {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 2;
  padding-left: 36px;
}
.faq-a strong { color: var(--text-primary); font-weight: 600; }

/* ============================================
   Related Articles
   ============================================ */
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.related-card {
  display: block;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.related-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.related-card-label { font-size: 12px; color: var(--lavender); font-weight: 600; margin-bottom: 4px; }
.related-card-title { font-size: 15px; font-weight: 600; color: var(--text-primary); line-height: 1.6; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-warm);
}
.site-footer a { color: var(--text-secondary); }
.footer-links { margin-bottom: 12px; display: flex; justify-content: center; gap: 24px; }

/* ============================================
   Section Images
   ============================================ */
.section-image {
  margin: 36px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.section-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* ============================================
   Detail Screenshot
   ============================================ */
.detail-screenshot {
  display: block;
  margin: 20px 0 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.detail-screenshot:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border, rgba(212, 105, 138, 0.3));
}
.detail-screenshot img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.detail-screenshot-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 20px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  letter-spacing: 0.02em;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 28px; }
.form-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-required {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-hint {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a196aa' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.8; }
.form-input-short { max-width: 240px; }
.form-submit {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 14px 48px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.form-submit:hover { background: var(--accent-light); }
.form-submit:active { transform: scale(0.98); }
.form-submit:disabled { background: var(--text-muted); cursor: not-allowed; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ============================================
   Shindan (Diagnostic Quiz)
   ============================================ */
.shindan-screen { min-height: 320px; }
.shindan-intro { text-align: center; padding: 40px 20px; }
.shindan-intro p { color: var(--text-secondary); line-height: 2; margin-bottom: 12px; }
.shindan-intro p:first-child { font-size: 19px; font-weight: 500; color: var(--text-primary); }
.shindan-start-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--lavender));
  border: none;
  border-radius: 50px;
  padding: 18px 56px;
  cursor: pointer;
  margin-top: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shindan-btn-shadow, 0 4px 16px rgba(212,105,138,0.3));
}
.shindan-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shindan-btn-shadow-hover, 0 6px 24px rgba(212,105,138,0.4));
}
.shindan-start-btn:active { transform: scale(0.97); }
.shindan-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.shindan-progress-bar {
  flex: 1; height: 6px;
  background: var(--border-light);
  border-radius: 3px; overflow: hidden;
}
.shindan-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--lavender));
  border-radius: 3px;
  transition: width 0.4s ease;
}
.shindan-progress-text {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; min-width: 40px; text-align: right; margin: 0;
}
.shindan-question-area {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.shindan-question-area.fade-out { opacity: 0; transform: translateY(12px); }
.shindan-question-text {
  font-size: 20px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 24px; line-height: 1.6;
}
.shindan-question-num {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  color: var(--lavender); display: block; margin-bottom: 8px;
}
.shindan-options { display: flex; flex-direction: column; gap: 12px; }
.shindan-option {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
}
@media (hover: hover) {
  .shindan-option:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
    transform: translateX(4px);
  }
}
.shindan-option.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(0.98);
}
.shindan-option-label {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--lavender);
  background: var(--lavender-dim, rgba(155,124,200,0.08));
  border-radius: 50%; flex-shrink: 0;
}
.shindan-option.selected .shindan-option-label { color: #fff; background: var(--accent); }
.shindan-option-text { font-size: 16px; font-weight: 500; color: var(--text-primary); line-height: 1.5; }

/* Result */
.shindan-result-header {
  text-align: center; margin-bottom: 36px; padding: 32px 20px;
  background: linear-gradient(135deg, var(--accent-dim2, rgba(212,105,138,0.06)), var(--lavender-dim, rgba(155,124,200,0.06)));
  border-radius: var(--radius-lg);
}
.shindan-result-label { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.shindan-result-type { font-size: 26px; font-weight: 900; color: var(--text-primary); margin-bottom: 12px; line-height: 1.4; }
.shindan-result-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.8; max-width: 520px; margin: 0 auto; }
.shindan-ranking-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; text-align: center; }
.shindan-rank-card {
  display: flex; gap: 18px; padding: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  transition: box-shadow 0.2s;
}
.shindan-rank-card:hover { box-shadow: var(--shadow); }
.shindan-rank-card:first-child {
  border-color: var(--accent); border-width: 2px;
  background: var(--accent-dim2, rgba(212,105,138,0.03));
}
.shindan-rank-num {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  color: var(--accent); line-height: 1; flex-shrink: 0; width: 36px;
  text-align: center; padding-top: 2px;
}
.shindan-rank-card:nth-child(n+4) .shindan-rank-num { color: var(--text-muted); }
.shindan-rank-body { flex: 1; min-width: 0; }
.shindan-rank-name { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.shindan-rank-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.shindan-rank-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.shindan-rank-tags span {
  font-size: 12px; font-weight: 500; color: var(--accent);
  background: var(--accent-dim); padding: 3px 10px; border-radius: 20px;
}
.shindan-rank-match { display: flex; align-items: center; gap: 10px; }
.shindan-match-bar { flex: 1; height: 6px; background: var(--border-light); border-radius: 3px; overflow: hidden; max-width: 160px; }
.shindan-match-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--coral)); border-radius: 3px; }
.shindan-match-pct { font-size: 14px; font-weight: 700; color: var(--accent); min-width: 40px; }
.shindan-rank-link { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; margin-top: 4px; }
.shindan-rank-link:hover { text-decoration: underline; }
.shindan-actions { text-align: center; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border-light); }
.shindan-retry-btn {
  display: inline-block; font-family: var(--font-body); font-size: 15px; font-weight: 600;
  color: var(--accent); background: transparent;
  border: 2px solid var(--accent); border-radius: 50px;
  padding: 12px 36px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.shindan-retry-btn:hover { background: var(--accent); color: #fff; }

/* Static result page */
.result-item-card { padding: 24px; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); margin-bottom: 20px; }
.result-item-card h3 { margin-bottom: 8px; }
.result-item-meta { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.result-item-desc { color: var(--text-secondary); line-height: 1.9; margin-bottom: 12px; }
.result-item-link { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.result-item-link:hover { text-decoration: underline; }

/* ============================================
   CTA Box
   ============================================ */
.cta-box {
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, var(--accent), var(--lavender));
  border-radius: var(--radius-lg);
  color: #fff;
}
.cta-box h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 12px;
}
.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.8;
}
.cta-button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  background: #fff;
  border: none;
  border-radius: 50px;
  padding: 16px 44px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  color: var(--accent);
}

/* ============================================
   Floating Diagnosis Button
   ============================================ */
.floating-shindan {
  position: fixed; bottom: 24px; right: 20px;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark, #c0607a));
  color: #fff; text-decoration: none;
  padding: 14px 22px; border-radius: 50px;
  font-size: 15px; font-weight: 700;
  box-shadow: var(--floating-btn-shadow, 0 4px 20px rgba(212,105,138,0.4));
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: float-pulse 2s ease-in-out infinite;
}
@media (hover: hover) {
  .floating-shindan:hover {
    transform: translateY(-2px);
    box-shadow: var(--floating-btn-shadow-hover, 0 6px 28px rgba(212,105,138,0.55));
  }
}
.floating-shindan-icon { font-size: 20px; }
.floating-shindan-text { letter-spacing: 0.04em; }
@keyframes float-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 24px; }
  h2 { font-size: 21px; }
  h3 { font-size: 18px; }
  section { padding: 44px 0; }
  .hero { padding: 40px 0 36px; }
  .header-nav { display: none; }
  .hamburger { display: block; }
  .item-card { padding: 22px; }
  .item-card-prices { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .bar-label { width: 160px; font-size: 12px; }
  /* purpose-table: カード化 */
  .purpose-table table, .purpose-table thead, .purpose-table tbody,
  .purpose-table tr, .purpose-table th, .purpose-table td { display: block; }
  .purpose-table thead { display: none; }
  .purpose-table tr { padding: 16px; border-bottom: 1px solid var(--border-light); }
  .purpose-table tr:last-child { border-bottom: none; }
  .purpose-table td { padding: 2px 0; border-bottom: none; white-space: normal; }
  .purpose-table td:first-child { font-size: 13px; color: var(--lavender); margin-bottom: 4px; }
  .purpose-table td:nth-child(2) { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
  .purpose-table td:last-child { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
  .faq-q { font-size: 16px; }
  .faq-a { font-size: 15px; }
  .section-image img { height: 220px; }
  .detail-screenshot img { height: 240px; }
  .form-submit { width: 100%; }
  .shindan-question-text { font-size: 18px; }
  .shindan-option { padding: 15px 18px; gap: 12px; }
  .shindan-result-type { font-size: 22px; }
  .shindan-rank-card { padding: 18px; gap: 14px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .hero h1 { font-size: 21px; }
  h2 { font-size: 19px; }
  .bar-row { flex-wrap: wrap; }

  .comparison-table { min-width: 500px; font-size: 13px; }
  .comparison-table thead th { padding: 10px; font-size: 11px; }
  .comparison-table tbody td { padding: 10px; }
  .comparison-table .item-cell { white-space: normal; }
  .comparison-wrap { position: relative; }
  .comparison-wrap::after {
    content: '\2190 \30B9\30AF\30ED\30FC\30EB\3067\304D\307E\3059 \2192';
    display: block; text-align: center; font-size: 11px;
    color: var(--text-muted); padding: 6px 0 0;
  }
  /* カード化テーブルではスクロールヒント非表示 */
  #comparison .comparison-wrap::after,
  .item-card-body .comparison-wrap::after,
  .course-table-wrap::after { display: none; }
  .bar-label { width: 100%; }
  .item-card h3 { font-size: 17px; }
  .price-value { font-size: 17px; }
  .section-image img { height: 180px; }
  .detail-screenshot img { height: 200px; }
  .shindan-option-label { width: 30px; height: 30px; font-size: 13px; }
  .shindan-option-text { font-size: 15px; }
  .shindan-rank-card { flex-direction: column; gap: 8px; }
  .shindan-rank-num { width: auto; }
  .shindan-start-btn { padding: 16px 40px; font-size: 16px; }

  /* 情報テーブル */
  .item-card-body .comparison-table { min-width: 0; width: 100%; }
  .item-card-body .comparison-table .item-cell { white-space: normal; width: 35%; font-size: 13px; }
  .item-card-body .comparison-table td { padding: 12px 14px; word-break: break-word; }
  .item-card-body .comparison-table td a { word-break: break-all; }

  /* コーステーブル → スマホカード化 */
  .course-table-wrap .comparison-table { min-width: 0; border: none; background: none; box-shadow: none; }
  .course-table-wrap .comparison-table thead { display: none; }
  .course-table-wrap .comparison-table tbody tr {
    display: block; background: var(--bg-surface);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
  }
  .course-table-wrap .comparison-table tbody td { display: block; padding: 4px 0; border-bottom: none; white-space: normal; }
  .course-table-wrap .comparison-table tbody td:before {
    content: attr(data-label); display: block; font-size: 11px; font-weight: 600;
    color: var(--text-muted); letter-spacing: 0.04em; margin-bottom: 2px;
  }
  .course-table-wrap .comparison-table tbody td.item-cell {
    font-size: 17px; font-weight: 700; color: var(--accent);
    white-space: normal; padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light); margin-bottom: 8px;
  }
  .course-table-wrap .comparison-table tbody td.item-cell:before { display: none; }

  /* メイン比較テーブル → スマホカード化 */
  #comparison .comparison-table { min-width: 0; border: none; background: none; box-shadow: none; }
  #comparison .comparison-table thead { display: none; }
  #comparison .comparison-table tbody tr {
    display: block; background: var(--bg-surface);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
  }
  #comparison .comparison-table tbody td { display: block; padding: 4px 0; border-bottom: none; white-space: normal; }
  #comparison .comparison-table tbody td:before {
    content: attr(data-label); display: block; font-size: 11px; font-weight: 600;
    color: var(--text-muted); letter-spacing: 0.04em; margin-bottom: 2px;
  }
  #comparison .comparison-table tbody td.item-cell {
    font-size: 17px; font-weight: 700; white-space: normal;
    padding-bottom: 8px; border-bottom: 1px solid var(--border-light); margin-bottom: 8px;
  }
  #comparison .comparison-table tbody td.item-cell:before { display: none; }
  #comparison .comparison-table tbody td.item-cell a { color: var(--accent); }
  #comparison .comparison-table tbody td.price { font-size: 16px; font-weight: 600; }
  #comparison .comparison-table tbody td.stars { font-size: 15px; }
}

/* ============================================
   Section Images
   ============================================ */
.section-image {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 32px;
  display: block;
  border-radius: var(--radius-lg);
  height: auto;
}
