/* v3.4 Friendly Editorial Comparison UI — Zero Emojis · Zero Red · Dynamic Purpose Cards · Luminous Border Button */
@property --glow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes borderGlowSpin {
  0% { --glow-angle: 0deg; }
  100% { --glow-angle: 360deg; }
}

@keyframes starFloat {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.72; }
  50% { transform: scale(1.18) rotate(18deg); opacity: 1; }
}

:root {
  --bg: #f5f9fc;
  --surface: #ffffff;
  --surface-soft: #f0f6fb;
  --ink: #0f2942;
  --ink-soft: #334155;
  --ink-mute: #64748b;
  --line: #dbe6f0;
  --line-strong: #c2d4e4;
  --primary: #0284c7;
  --primary-deep: #0369a1;
  --primary-soft: #e0f2fe;
  --brand-mark-bg: linear-gradient(135deg, #0369a1, #0f766e);

  --teal: #0f766e;
  --teal-soft: #f0fdfa;
  --teal-line: #99f6e4;
  --amber: #b45309;
  --amber-border: #d97706;
  --amber-soft: #fffbeb;
  --amber-ink: #78350f;
  --cta: #ea580c;
  --cta-hover: #c2410c;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 11px;
  --shadow-card: 0 5px 22px rgba(15, 31, 61, 0.05);
  --shadow-hover: 0 14px 34px rgba(15, 31, 61, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* PR Strip */
.pr-strip { background: #ffffff; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-mute); padding: 7px 0; }
.pr-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pr-badge { display: inline-block; border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 7px; font-weight: 800; font-size: 11px; color: var(--ink-soft); margin-right: 7px; background: #f8fafc; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 19px; letter-spacing: -0.02em; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-mark-bg); color: #ffffff; display: grid; place-items: center; font-size: 15px; font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 800; padding: 7px 14px; border-radius: 999px; transition: 0.15s; }
.nav-links a:hover, .nav-links a.active { background: var(--primary-soft); color: var(--primary-deep); }

/* Hero */
.hero { padding: 52px 0 48px; background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); text-align: center; }
.hero-inner { max-width: 860px; margin: 0 auto 36px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(27px, 3.8vw, 42px);
  line-height: 1.36;
  letter-spacing: -0.025em;
  font-weight: 900;
  color: var(--ink);
}
.hero-hl { background: linear-gradient(transparent 66%, #fef08a 66%); padding: 0 6px; }
.hero-cheer { margin: 0 auto; font-size: 17.5px; font-weight: 700; color: var(--primary-deep); }

/* 3 Purpose Jump Cards — Distinct Colored Tints + Dynamic Sparkle & Hover Lift! */
.purpose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.purpose-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-xl);
  padding: 28px 22px 22px;
  border: 2px solid transparent;
  box-shadow: 0 8px 26px rgba(15, 31, 61, 0.06);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.24s ease;
}
.purpose-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
  transform: translateX(-110%);
  transition: transform 0.65s ease;
  pointer-events: none;
}
.purpose-card:hover::after { transform: translateX(110%); }
.purpose-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(15, 31, 61, 0.13); }

.purpose-card.p-tone-1 {
  background: linear-gradient(155deg, #eef6ff 0%, #ffffff 58%, #e4f0ff 100%);
  border-color: #93c5fd;
}
.purpose-card.p-tone-1:hover { border-color: #2563eb; }
.purpose-card.p-tone-2 {
  background: linear-gradient(155deg, #ecfdf5 0%, #ffffff 58%, #dcfce7 100%);
  border-color: #6ee7b7;
}
.purpose-card.p-tone-2:hover { border-color: #0f766e; }
.purpose-card.p-tone-3 {
  background: linear-gradient(155deg, #fff8eb 0%, #ffffff 58%, #fef0d3 100%);
  border-color: #fcd34d;
}
.purpose-card.p-tone-3:hover { border-color: #d97706; }

/* Subtle animated geometric 4-point star accent (clean SVG, NOT emoji!) */
.p-sparkle {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 22px;
  height: 22px;
  animation: starFloat 3.4s ease-in-out infinite;
  pointer-events: none;
}
.purpose-card.p-tone-2 .p-sparkle { animation-delay: 0.7s; }
.purpose-card.p-tone-3 .p-sparkle { animation-delay: 1.4s; }
.purpose-card:hover .p-sparkle { transform: scale(1.3) rotate(45deg); animation: none; transition: transform 0.3s ease; }

.purpose-num { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.purpose-index { font-size: 13.5px; font-weight: 900; color: #ffffff; padding: 4px 12px; border-radius: 999px; }
.p-tone-1 .purpose-index { background: #1d4ed8; }
.p-tone-2 .purpose-index { background: #0f766e; }
.p-tone-3 .purpose-index { background: #b45309; }
.purpose-kw { font-size: 13.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); color: var(--ink); border: 1px solid rgba(15, 31, 61, 0.1); }

.purpose-card h2 { margin: 0 0 8px; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.purpose-card p { margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--ink-soft); flex: 1; }
.purpose-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.p-tone-1 .purpose-jump { background: #1d4ed8; }
.p-tone-2 .purpose-jump { background: #0f766e; }
.p-tone-3 .purpose-jump { background: #d97706; }
.purpose-card:hover .purpose-jump { transform: scale(1.04); filter: brightness(1.06); }

/* Category Sections — Bigger, Punchier Titles & Localized Labels */
.cat-section { padding: 56px 0 32px; scroll-margin-top: 72px; }
.sec-head { text-align: center; margin-bottom: 26px; }
.sec-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 900;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.sec-head h2 { margin: 0 0 8px; font-size: clamp(26px, 3.2vw, 34px); font-weight: 900; letter-spacing: -0.025em; }
.sec-sub { margin: 0 auto 10px; max-width: 720px; color: var(--ink-soft); font-size: 15px; font-weight: 600; }
.order-pill {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid var(--teal-line);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.sec-page-link { display: inline-block; margin-left: 8px; text-decoration: none; font-size: 12.5px; font-weight: 800; color: var(--primary-deep); background: #ffffff; border: 1px solid #bfdbfe; padding: 4px 14px; border-radius: 999px; }
.sec-page-link:hover { background: var(--primary-soft); }

/* 3-Column Card Board — Crisp Short 3 Lines + Luminous Shimmering Modal Button! */
.card-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 32px; }
.school-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.school-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #93c5fd; }
.banner-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 164px;
  padding: 15px 18px 18px;
  color: #ffffff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: filter 0.15s ease;
}
.banner-slot:hover { filter: brightness(1.06); }
.banner-slot-a8 { min-height: 164px; display: grid; place-items: center; background: #f8fafc; padding: 10px; border-bottom: 1px solid var(--line); }
.banner-top-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.banner-step {
  font-size: 12px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
}
.banner-go { font-size: 11.5px; font-weight: 800; background: #ffffff; color: var(--ink); padding: 4px 11px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14); }
.banner-center { margin: 8px 0 2px; }
.banner-logo-main { font-size: clamp(19px, 1.85vw, 23px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.24; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); }
.banner-logo-stat { display: inline-block; margin-top: 7px; font-size: 13px; font-weight: 800; background: rgba(255, 255, 255, 0.22); padding: 3px 13px; border-radius: 999px; }

.tile-body { padding: 16px 18px 12px; flex: 1; display: flex; flex-direction: column; cursor: pointer; }
.core-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.core-item { background: var(--surface-soft); border: 1px solid #e6edf5; border-radius: var(--radius-md); padding: 10px 12px; text-align: center; }
.core-k {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 900;
  color: var(--primary-deep);
  background: #ffffff;
  border: 1px solid #dbeafe;
  padding: 2px 11px;
  border-radius: 999px;
  margin-bottom: 5px;
}
.core-v { display: block; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.48; }

/* Subtle Rotating Luminous Border Button for `요금 · 특징 한눈에 보기`! */
.tile-foot { padding: 6px 18px 18px; }
.glow-btn-wrap {
  position: relative;
  border-radius: 13px;
  padding: 2px;
  background: conic-gradient(
    from var(--glow-angle),
    #cbd5e1 0deg,
    #cbd5e1 200deg,
    #38bdf8 255deg,
    #fbbf24 305deg,
    #38bdf8 340deg,
    #cbd5e1 360deg
  );
  animation: borderGlowSpin 4.6s linear infinite;
  box-shadow: 0 3px 14px rgba(2, 132, 199, 0.12);
  transition: transform 0.18s ease, box-shadow 0.22s ease;
}
.glow-btn-wrap:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.24);
}
.modal-open-btn {
  width: 100%;
  border: none;
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  padding: 11px 14px;
  border-radius: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}
.glow-btn-wrap:hover .modal-open-btn {
  background: #f0f9ff;
  color: var(--primary-deep);
}
.modal-hint { font-size: 12px; font-weight: 900; color: var(--amber-ink); background: #fef3c7; border: 1px solid #fcd34d; padding: 2px 9px; border-radius: 999px; }

/* Matching Guide (Layout A + L-Axis + Unlimited 1-6 Chips + Colored Score Bars) */
.lab-box { background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 28px 26px 28px; box-shadow: var(--shadow-card); }
.lab-top { text-align: center; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.lab-eyebrow { display: inline-block; font-size: 13.5px; font-weight: 900; color: var(--teal); background: var(--teal-soft); border: 1px solid var(--teal-line); padding: 4px 14px; border-radius: 999px; margin-bottom: 10px; }
.lab-title { margin: 0; font-size: 23px; font-weight: 900; color: var(--ink); }
.lab-sub { margin: 6px auto 0; font-size: 14px; color: var(--ink-mute); }

.chip-guide { text-align: center; font-size: 13.5px; font-weight: 800; color: var(--ink-soft); margin-bottom: 10px; }
.chip-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.prio-chip { border: 1.5px solid var(--line-strong); background: #ffffff; color: var(--ink-soft); font-family: inherit; font-size: 13.5px; font-weight: 800; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: 0.15s; }
.prio-chip:hover { border-color: var(--primary); color: var(--primary-deep); }
.prio-chip.active { background: var(--primary-deep); border-color: var(--primary-deep); color: #ffffff; box-shadow: 0 4px 12px rgba(29, 78, 216, 0.22); }

.split-a { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 20px; align-items: stretch; margin-bottom: 24px; }
.map-col { display: flex; flex-direction: column; }
.graph-stage { position: relative; width: 100%; height: 416px; border: 1px solid var(--line-strong); border-radius: 14px; background: radial-gradient(circle at 90% 10%, rgba(15, 118, 110, 0.10) 0%, rgba(2, 132, 199, 0.04) 40%, #ffffff 78%); overflow: hidden; flex: 1; }
.plot-field { position: absolute; top: 44px; right: 22px; bottom: 44px; left: 34px; border-left: 2px solid #475569; border-bottom: 2px solid #475569; background-image: linear-gradient(to right, rgba(203, 213, 225, 0.42) 1px, transparent 1px), linear-gradient(to top, rgba(203, 213, 225, 0.42) 1px, transparent 1px); background-size: 33.33% 33.33%; }
.plot-field::before { content: ""; position: absolute; top: -7px; left: -6px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid #475569; }
.plot-field::after { content: ""; position: absolute; right: -7px; bottom: -6px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid #475569; }
.peak-badge { position: absolute; top: 10px; right: 16px; font-size: 12px; font-weight: 800; color: var(--teal); background: rgba(255, 255, 255, 0.95); padding: 3px 11px; border-radius: 999px; border: 1px solid var(--teal-line); pointer-events: none; }
.ax-y-label { position: absolute; top: 10px; left: 18px; font-size: 12.5px; font-weight: 900; color: var(--ink); background: #ffffff; border: 1px solid var(--line); padding: 3px 11px; border-radius: 999px; pointer-events: none; }
.ax-x-label { position: absolute; bottom: 10px; right: 18px; font-size: 12.5px; font-weight: 900; color: var(--ink); background: #ffffff; border: 1px solid var(--line); padding: 3px 11px; border-radius: 999px; pointer-events: none; }

.graph-node { position: absolute; transform: translate(-50%, 50%); text-decoration: none; color: #ffffff; padding: 7px 12px; border-radius: 10px; font-weight: 900; font-size: 12.5px; box-shadow: 0 5px 14px rgba(15, 31, 61, 0.2); border: 2px solid #ffffff; transition: transform 0.22s ease, left 0.32s ease, bottom 0.32s ease; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; z-index: 5; }
.graph-node:hover { transform: translate(-50%, 44%) scale(1.07); z-index: 20; }
.graph-node.is-top { border-color: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35), 0 8px 20px rgba(15, 31, 61, 0.26); z-index: 12; }
.graph-node.is-dim { opacity: 0.62; }
.node-rank { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #f59e0b; color: #ffffff; font-size: 11px; font-weight: 900; }
.graph-hint { margin-top: 8px; font-size: 12.5px; color: var(--ink-mute); text-align: center; }

.rank-stack { display: flex; flex-direction: column; gap: 10px; justify-content: space-between; height: 100%; }
.rank-row-card { background: #ffffff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 15px; display: flex; flex-direction: column; gap: 7px; text-align: center; }
.rank-row-card.rank-1 { border-color: var(--amber-border); background: linear-gradient(180deg, #fffbeb 0%, #ffffff 45%); }
.rank-row-card.rank-2 { border-color: #93c5fd; background: linear-gradient(180deg, #eff6ff 0%, #ffffff 45%); }
.rank-row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rank-pill { font-size: 12.5px; font-weight: 900; padding: 3px 11px; border-radius: 999px; background: #e2e8f0; color: var(--ink); }
.rank-1 .rank-pill { background: var(--amber); color: #ffffff; }
.rank-2 .rank-pill { background: var(--primary-deep); color: #ffffff; }
.rank-row-name { font-size: 15.5px; font-weight: 900; color: var(--ink); }
.match-pct { font-size: 16.5px; font-weight: 900; color: var(--primary-deep); }
.rank-row-why { font-size: 12.8px; color: var(--ink-soft); line-height: 1.45; }
.rank-row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-cta-sm { text-align: center; text-decoration: none; background: var(--cta); color: #ffffff; font-weight: 800; font-size: 12.5px; padding: 8px 10px; border-radius: 8px; }
.btn-cta-sm:hover { background: var(--cta-hover); }
.btn-pop-sm { border: 1.5px solid var(--line-strong); background: #ffffff; color: var(--ink); font-family: inherit; font-weight: 800; font-size: 12.5px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.btn-pop-sm:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-deep); }
.close-match-box { background: var(--teal-soft); border: 1px solid var(--teal-line); border-radius: 10px; padding: 10px 14px; font-size: 12.5px; font-weight: 700; color: #115e59; text-align: center; line-height: 1.5; }

.ev-title { font-size: 15px; font-weight: 900; color: var(--ink); text-align: center; margin: 0 0 10px; }
.ev-wrap { overflow-x: auto; }
.ev-table { width: 100%; border-collapse: collapse; font-size: 12.8px; background: #ffffff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.ev-table th { background: var(--surface-soft); color: var(--ink); font-weight: 800; text-align: center; padding: 11px 10px; border-bottom: 1px solid var(--line); }
.ev-table td { padding: 12px 10px; border-bottom: 1px solid #f1f5f9; text-align: center; vertical-align: middle; }
.ev-table tr:last-child td { border-bottom: none; }
.ev-score-row { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ev-bar-bg { display: inline-block; width: 78px; height: 9px; background: #e2e8f0; border-radius: 999px; overflow: hidden; vertical-align: middle; }
.ev-bar-fg { display: block; height: 100%; border-radius: 999px; }
.ev-bar-fg.tier-high { background: linear-gradient(90deg, var(--primary), var(--teal)); }
.ev-bar-fg.tier-mid { background: linear-gradient(90deg, #38bdf8, var(--primary)); }
.ev-bar-fg.tier-base { background: #94a3b8; }
.ev-num { font-size: 13.5px; font-weight: 900; }
.ev-num.tier-high { color: #0f766e; }
.ev-num.tier-mid { color: var(--primary-deep); }
.ev-num.tier-base { color: #475569; }
.ev-reason { font-size: 11.5px; color: var(--ink-mute); margin-top: 4px; }
.ev-link { color: var(--cta); font-weight: 800; text-decoration: none; white-space: nowrap; }
.ev-link:hover { text-decoration: underline; }

/* Large Centered Editorial Modal — Bigger, Simpler Localized Labels & Concise Copy */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 42, 0.64); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 18px; }
.modal-backdrop.open { display: flex; }
.modal-dialog { width: 100%; max-width: 860px; max-height: 92vh; background: #ffffff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 76px rgba(15, 23, 42, 0.36); animation: popIn 0.16s ease-out; }
@keyframes popIn { from { opacity: 0; transform: scale(0.97) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header { position: relative; padding: 30px 32px 26px; color: #ffffff; text-align: center; }
.modal-close { position: absolute; top: 16px; right: 16px; border: 1px solid rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.18); color: #ffffff; width: 38px; height: 38px; border-radius: 50%; font-size: 21px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: rgba(255, 255, 255, 0.32); }
.modal-eyebrow { display: inline-block; font-size: 13.5px; font-weight: 900; background: rgba(255, 255, 255, 0.22); padding: 4px 15px; border-radius: 999px; margin-bottom: 10px; }
.modal-brand-title { margin: 0 0 12px; font-size: clamp(27px, 3.3vw, 34px); font-weight: 900; line-height: 1.2; }
.modal-stat-big { display: inline-block; background: rgba(255, 255, 255, 0.96); color: var(--ink); font-size: clamp(19px, 2.5vw, 24px); font-weight: 900; padding: 8px 24px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16); margin-bottom: 14px; }
.modal-slogan-big { margin: 0 auto; max-width: 660px; font-size: clamp(16.5px, 2vw, 19px); font-weight: 800; line-height: 1.5; color: rgba(255, 255, 255, 0.96); }
.modal-body { padding: 24px 28px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; text-align: center; }

.m-sec-head { margin: 0 0 14px; font-size: 20px; font-weight: 900; color: var(--ink); text-align: center; letter-spacing: -0.02em; }
.m-sec-subtag { display: inline-block; font-size: 13px; font-weight: 900; color: var(--primary-deep); background: var(--primary-soft); padding: 3px 13px; border-radius: 999px; margin-bottom: 8px; }

.perk-box { background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%); border: 2px solid var(--amber-border); border-radius: 14px; padding: 18px 20px; text-align: center; }
.perk-title { display: inline-block; background: var(--amber); color: #ffffff; font-size: 13.5px; font-weight: 900; padding: 5px 16px; border-radius: 999px; margin-bottom: 12px; }
.perk-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.perk-list li { background: rgba(255, 255, 255, 0.92); border: 1px solid #fcd34d; border-radius: 10px; padding: 10px 14px; font-size: 15px; font-weight: 900; color: var(--amber-ink); }

.plan-card { background: #ffffff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.plan-table th { background: var(--ink); color: #ffffff; font-weight: 800; padding: 11px 12px; text-align: center; font-size: 13.5px; }
.plan-table td { padding: 12px 12px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.plan-table tr:last-child td { border-bottom: none; }
.plan-table tr:nth-child(even) td { background: #f8fafc; }
.plan-price-strong { font-size: 17.5px; font-weight: 900; color: var(--primary-deep); }
.plan-note { margin: 10px 0 0; font-size: 12.5px; font-weight: 700; color: var(--ink-mute); }

.format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.format-tile { background: var(--surface-soft); border: 1px solid #dbeafe; border-radius: 14px; padding: 18px 18px; text-align: center; }
.format-lbl { display: inline-block; font-size: 13.5px; font-weight: 900; color: var(--primary-deep); background: #ffffff; border: 1px solid #bfdbfe; padding: 4px 14px; border-radius: 999px; margin-bottom: 10px; }
.format-val { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.6; }

.score-board { background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px; }
.score-big-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.score-big-item { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; }
.score-big-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.score-big-name { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.score-big-num { font-size: 22px; font-weight: 900; color: var(--primary-deep); line-height: 1; }
.score-big-num small { font-size: 12px; font-weight: 700; color: var(--ink-mute); }
.score-big-track { height: 12px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.score-big-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--teal)); }

.strengths-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.strengths-list li { background: var(--teal-soft); border: 1px solid var(--teal-line); border-radius: 12px; padding: 15px 18px; text-align: center; }
.pt-tag { display: inline-block; font-size: 13px; font-weight: 900; background: var(--teal); color: #ffffff; padding: 3px 12px; border-radius: 999px; margin-bottom: 7px; }
.pt-txt { display: block; font-size: 15.5px; font-weight: 800; color: #134e4a; line-height: 1.55; }

.comment-box { background: #f8fafc; border: 1px solid var(--line-strong); border-radius: 14px; padding: 18px 22px; text-align: center; }
.comment-label { display: inline-block; font-size: 14px; font-weight: 900; color: var(--ink); background: #ffffff; border: 1px solid var(--line); padding: 4px 16px; border-radius: 999px; margin-bottom: 10px; }
.comment-text { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-soft); line-height: 1.72; }

.modal-footer { padding: 16px 26px; border-top: 1px solid var(--line); background: #f8fafc; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.modal-cta { display: inline-flex; align-items: center; justify-content: center; background: var(--cta); color: #ffffff; text-decoration: none; font-size: 16px; font-weight: 900; padding: 14px 32px; border-radius: 12px; box-shadow: 0 8px 20px rgba(234, 88, 12, 0.28); }
.modal-cta:hover { background: var(--cta-hover); }
.modal-back { border: 1.5px solid var(--line-strong); background: #ffffff; color: var(--ink-soft); font-family: inherit; font-weight: 800; font-size: 13.5px; padding: 13px 20px; border-radius: 12px; cursor: pointer; }

.guides-sec { padding: 44px 0 56px; border-top: 1px solid var(--line); margin-top: 28px; text-align: center; }
.guides-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 18px; }
.guide-mini { text-decoration: none; color: inherit; background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; transition: 0.15s; }
.guide-mini:hover { border-color: var(--primary); background: var(--primary-soft); }
.guide-mini span { font-size: 12px; font-weight: 800; color: var(--primary-deep); background: var(--primary-soft); padding: 2px 10px; border-radius: 999px; }
.guide-mini strong { font-size: 13px; line-height: 1.48; }

.article-wrap { max-width: 820px; margin: 36px auto 56px; padding: 0 20px; }
.article-card { background: #ffffff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 36px; box-shadow: var(--shadow-card); }
.article-card h1 { margin: 8px 0 18px; font-size: 25px; line-height: 1.4; font-weight: 900; text-align: center; }
.article-card h2 { margin: 26px 0 10px; font-size: 18px; font-weight: 900; padding-left: 12px; border-left: 4px solid var(--primary); }
.article-card p, .article-card li { font-size: 15px; color: var(--ink-soft); }
.callout-box { background: var(--primary-soft); border: 1px solid #bfdbfe; border-radius: 12px; padding: 15px 18px; margin: 16px 0; font-size: 14.5px; color: var(--ink); text-align: center; }
.bubble-row { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 16px 0; }
.avatar-badge { display: inline-block; font-size: 12px; font-weight: 900; color: var(--ink); background: #ffffff; border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; margin-bottom: 6px; }
.mini-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.mini-table th, .mini-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: center; }
.mini-table th { background: var(--surface-soft); font-weight: 800; }
.back-home { display: inline-block; margin-top: 22px; text-decoration: none; font-weight: 800; font-size: 14px; color: var(--primary-deep); }

.site-footer { background: var(--ink); color: #94a3b8; padding: 36px 0 42px; font-size: 13px; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { color: #e2e8f0; text-decoration: none; font-weight: 700; }
.footer-links a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .purpose-grid, .card-board, .split-a, .format-grid, .score-big-grid { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .graph-stage { height: 340px; }
  .modal-header { padding: 24px 20px 22px; }
  .modal-body { padding: 20px 18px 24px; }
}

/* SUUMO-Style Real 47-Prefecture Japan Offline Map (50:50 Split — Offline Schools Only!) */
.offline-map-card {
  background: #f8fbfe;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 20px 20px;
  text-align: center;
}
.online-only-banner {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
}
.online-only-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 900;
  background: #0284c7;
  color: #ffffff;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.online-only-txt {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f2942;
}
.suumo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}
.suumo-map-box {
  background: #eaf4fb;
  border: 1px solid #cfe3f0;
  border-radius: 12px;
  padding: 10px 10px 8px;
  position: relative;
}
.suumo-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 310px;
}
.suumo-svg .prefecture {
  fill: #ffffff;
  stroke: #cbd5e1;
  stroke-width: 1.4;
  transition: fill 0.15s ease;
}
.suumo-svg .prefecture.is-offline {
  fill: #22c55e;
  stroke: #047857;
  stroke-width: 1.8;
}
.suumo-svg .boundary-line {
  stroke: #94a3b8;
  stroke-width: 2;
  stroke-dasharray: 6 5;
  fill: none;
}
.suumo-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: #334155;
}
.suumo-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  vertical-align: -1px;
  margin-right: 5px;
}
.suumo-info-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}
.suumo-headline {
  font-size: 15px;
  font-weight: 900;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 11px 14px;
  line-height: 1.45;
}
.suumo-detail-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 13px;
}
.suumo-detail-k {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #047857;
  background: #ecfdf5;
  padding: 1px 9px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.suumo-detail-v {
  display: block;
  font-size: 13.2px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.5;
}
.suumo-online-note {
  font-size: 12px;
  font-weight: 800;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 7px 12px;
}
@media (max-width: 960px) {
  .suumo-split { grid-template-columns: 1fr; }
}
