/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  --bg-page: #fdf8f5;
  --bg-warm: #faf2ee;
  --bg-surface: #ffffff;
  --bg-surface-alt: #fef6f2;
  --bg-hover: #fff0eb;
  --text-primary: #2d2a35;
  --text-secondary: #635b6e;
  --text-muted: #a196aa;
  --accent: #d4698a;
  --accent-light: #e889a5;
  --accent-dim: rgba(212, 105, 138, 0.08);
  --accent-dim2: rgba(212, 105, 138, 0.05);
  --lavender: #9b7cc8;
  --lavender-dim: rgba(155, 124, 200, 0.10);
  --coral: #e8956a;
  --coral-dim: rgba(232, 149, 106, 0.10);
  --mint: #5cb89a;
  --mint-dim: rgba(92, 184, 154, 0.10);
  --border: #ede4e0;
  --border-light: #f3ebe8;
  --star-filled: #e8956a;
  --star-empty: #e0d5d8;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(80,50,60,0.06);
  --shadow: 0 4px 20px rgba(80,50,60,0.08);
  --shadow-lg: 0 8px 30px rgba(80,50,60,0.10);
  --max-width: 880px;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-display: 'Playfair Display', serif;
}

/* ============================================
   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: 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: 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 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 .school-name { color: var(--accent); font-weight: 700; text-decoration: none; }
.purpose-table .school-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 .school-cell {
  font-weight: 600;
  white-space: nowrap;
}
.comparison-table .school-cell a { color: var(--text-primary); text-decoration: none; }
.comparison-table .school-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-jna { background: var(--accent-dim); color: var(--accent); }
.badge-vocational { background: var(--lavender-dim); color: var(--lavender); }
.badge-practice { background: var(--mint-dim); color: var(--mint); }

/* ============================================
   School Cards
   ============================================ */
.school-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;
}
.school-card:hover { box-shadow: var(--shadow); border-color: rgba(212,105,138,0.3); }
.school-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.school-card h3 { margin-bottom: 4px; font-size: 19px; }
.school-card h3 a { color: inherit; text-decoration: none; }
.school-card h3 a:hover { color: var(--accent); }
.school-card .stars { color: var(--star-filled); font-size: 16px; letter-spacing: 2px; }
.school-card .star-empty { color: var(--star-empty); }
.school-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: rgba(212,105,138,0.2);
  font-weight: 600;
}
.school-card-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 18px;
}
.school-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); }
.school-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;
}
.school-card-review p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
  font-style: italic;
}
.school-card-review cite {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-style: normal;
  margin-top: 6px;
}
.school-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.school-card-location {
  font-size: 13px;
  color: var(--text-muted);
}
.school-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.school-card-link:hover { color: var(--lavender); }

/* ============================================
   Survey Data
   ============================================ */
.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;
}

/* ============================================
   School Screenshot
   ============================================ */
.school-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;
}
.school-screenshot:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 105, 138, 0.3);
}
.school-screenshot img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.school-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: 0 4px 16px rgba(212,105,138,0.3);
}
.shindan-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 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: 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, rgba(212,105,138,0.06), 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: 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-school-card {
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.result-school-card h3 {
  margin-bottom: 8px;
}
.result-school-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.result-school-desc {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 12px;
}
.result-school-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.result-school-link:hover {
  text-decoration: underline;
}

/* ============================================
   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; }
  .school-card { padding: 22px; }
  .school-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; }
  .school-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のスマホ基本対応 */
  .comparison-table {
    min-width: 500px;
    font-size: 13px;
  }
  .comparison-table thead th {
    padding: 10px 10px;
    font-size: 11px;
  }
  .comparison-table tbody td {
    padding: 10px 10px;
  }
  .comparison-table .school-cell {
    white-space: normal;
  }
  .comparison-wrap {
    position: relative;
  }
  .comparison-wrap::after {
    content: '← スクロールできます →';
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    padding: 6px 0 0;
  }
  /* カード化したテーブル・情報テーブルではスクロールヒント非表示 */
  #comparison .comparison-wrap::after,
  .school-card-body .comparison-wrap::after,
  .course-table-wrap::after { display: none; }
  .bar-label { width: 100%; }
  .school-card h3 { font-size: 17px; }
  .price-value { font-size: 17px; }
  .section-image img { height: 180px; }
  .school-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; }

  /* --- テーブルのスマホ最適化 --- */

  /* 情報テーブル（school-card内の2列テーブル）*/
  .school-card-body .comparison-table {
    min-width: 0;
    width: 100%;
  }
  .school-card-body .comparison-table .school-cell {
    white-space: normal;
    width: 35%;
    font-size: 13px;
  }
  .school-card-body .comparison-table td {
    padding: 12px 14px;
    word-break: break-word;
  }
  .school-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.school-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.school-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.school-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.school-cell:before { display: none; }
  #comparison .comparison-table tbody td.school-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; }
}

/* ============================================
   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: 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: 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); }
}

/* ============================================
   GEO最適化: 編集部注目・結論ブロック
   ============================================ */
.editor-pick {
  background: linear-gradient(135deg, var(--accent-dim) 0%, var(--bg-surface) 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 32px;
}
.editor-pick h3 {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}
.editor-pick p { font-size: 15px; line-height: 2.0; color: var(--text-secondary); margin-bottom: 12px; }
.editor-pick a {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.summary-box {
  background: var(--bg-surface);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0 32px;
  box-shadow: var(--shadow-sm);
}
.summary-box h2 { font-size: 18px; font-weight: 700; margin-bottom: 14px; color: var(--text-primary); }
.summary-box p { font-size: 15px; line-height: 2.0; color: var(--text-secondary); margin-bottom: 10px; }
.summary-box ul { margin: 12px 0; padding-left: 20px; }
.summary-box li { font-size: 15px; line-height: 2.0; color: var(--text-secondary); margin-bottom: 6px; }
.conclusion-first {
  background: var(--accent-dim);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 2.0;
  color: var(--text-primary);
}
.final-recommendation {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 40px;
  margin-bottom: 24px;
}
.final-recommendation h2 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.final-recommendation p { font-size: 15px; line-height: 2.0; color: var(--text-secondary); }
.andart-link {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 20px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s;
}
@media (hover: hover) {
  .andart-link:hover { background: var(--accent); color: #fff; }
}
