/* ============================================================
   セブ島留学ガイド / Cebu Study Guide
   Design language: Boarding pass × 旅のしおり × 空港案内板
   ============================================================ */

:root {
  --ink: #10344a;
  --navy: #0c2c44;
  --navy-deep: #071e30;
  --ocean: #0798ad;
  --ocean-deep: #036d7e;
  --turquoise: #23c3ce;
  --sky: #e8f8fb;
  --sky-deep: #cdeef5;
  --coral: #ff6a47;
  --sunset: #ff8a3d;
  --sun: #ffc94d;
  --leaf: #2fb47c;
  --sand: #fff3da;
  --paper: #fffdf9;
  --mist: #f4fbfc;
  --white: #ffffff;
  --muted: #46687e;
  --line: rgba(16, 52, 74, 0.14);
  --line-soft: rgba(16, 52, 74, 0.08);
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 24px 60px rgba(7, 30, 48, 0.16);
  --shadow-soft: 0 10px 28px rgba(7, 30, 48, 0.09);
  --font-head: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-en: "Outfit", "Avenir Next", -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(90rem 42rem at 110% -8%, rgba(35, 195, 206, 0.14), transparent 60%),
    radial-gradient(70rem 36rem at -18% 22%, rgba(255, 201, 77, 0.16), transparent 58%),
    linear-gradient(180deg, #f2fafc 0%, #fdfcf7 48%, #f3fafb 100%);
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: var(--white);
  background: var(--ocean);
}

/* ------------------------------------------------------------
   Common atoms
   ------------------------------------------------------------ */

.section-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--ocean-deep);
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--coral), var(--sun));
}

.eyebrow.invert {
  color: var(--sun);
}

.eyebrow-sub {
  padding-left: 10px;
  border-left: 1px solid rgba(7, 152, 173, 0.35);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
}

.section {
  position: relative;
  padding: 96px 0;
}

.section-word {
  position: absolute;
  z-index: 0;
  top: 18px;
  right: 0;
  overflow: hidden;
  max-width: 100%;
  color: transparent;
  font-family: var(--font-en);
  font-size: clamp(4.5rem, 13vw, 11.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  white-space: nowrap;
  -webkit-text-stroke: 1.5px rgba(12, 44, 68, 0.1);
  pointer-events: none;
  user-select: none;
}

.vertical-label {
  position: absolute;
  z-index: 0;
  top: 88px;
  right: max(18px, calc((100vw - 1320px) / 2));
  color: rgba(12, 44, 68, 0.22);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.42em;
  writing-mode: vertical-rl;
  pointer-events: none;
}

.vertical-label.invert {
  color: rgba(255, 255, 255, 0.3);
}

.section-head {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-bottom: 40px;
}

.section-head.horizontal {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.section-head.compact {
  max-width: 860px;
  margin-top: 56px;
  margin-bottom: 22px;
}

.section-head h2,
.summary-grid h2,
.diagnosis-copy h2,
.final-cta h2,
.story-copy h2,
.decision-copy h2 {
  margin: 0 0 14px;
  color: var(--navy-deep);
  font-size: clamp(1.9rem, 3.9vw, 3.1rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-head p,
.summary-grid p,
.diagnosis-copy p,
.final-cta p,
.story-copy p,
.decision-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.section-head.compact h3,
.section-head.compact .compact-title {
  margin: 0 0 10px;
  color: var(--navy-deep);
  font-size: clamp(1.4rem, 2.6vw, 2.05rem);
  font-weight: 900;
  line-height: 1.24;
}

/* タイトル1行化（第31R）：JSが幅に合わせて縮小 */
.fit-line {
  white-space: nowrap;
}

/* Buttons ---------------------------------------------------- */

.header-cta,
.button,
.text-button,
.chip,
.filter {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.25;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button.lg {
  min-height: 56px;
  padding: 14px 28px;
  font-size: 1.02rem;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--coral), var(--sunset));
  box-shadow: 0 14px 30px rgba(255, 106, 71, 0.32);
}

.button.primary::after {
  content: "→";
  font-family: var(--font-en);
  font-weight: 800;
}

.button.primary:hover {
  box-shadow: 0 18px 36px rgba(255, 106, 71, 0.4);
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 12px 26px rgba(7, 30, 48, 0.24);
}

.button.secondary:hover {
  transform: translateY(-2px);
}

.button.quiet,
.button.ghost {
  border: 1px solid rgba(16, 52, 74, 0.22);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.85);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.text-button {
  padding: 7px 12px;
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--sand);
  font-size: 0.86rem;
  font-weight: 700;
}

.chip,
.filter {
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid rgba(7, 152, 173, 0.24);
  border-radius: 999px;
  color: var(--ocean-deep);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.chip.is-active,
.filter.is-active {
  border-color: var(--ocean);
  color: var(--white);
  background: var(--ocean);
  box-shadow: 0 8px 18px rgba(7, 152, 173, 0.3);
}

.chip:hover:not(.is-active),
.filter:hover:not(.is-active) {
  background: var(--sky);
}

.tag {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 700;
}

.t-coral { background: var(--coral); }
.t-navy { background: var(--navy); }
.t-ocean { background: var(--ocean); }
.t-sun { color: var(--navy); background: var(--sun); }
.t-leaf { background: var(--leaf); }

.route-chip {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 6px 13px;
  border: 1px solid rgba(7, 152, 173, 0.26);
  border-radius: 999px;
  color: var(--ocean-deep);
  background: var(--white);
  font-size: 0.83rem;
  font-weight: 700;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.route-chip::after {
  content: "→";
  font-family: var(--font-en);
  font-weight: 800;
}

.route-chip:hover,
.route-chip:focus-visible {
  border-color: var(--ocean);
  background: var(--sky);
  outline: none;
  transform: translateX(2px);
}

.inline-link {
  color: var(--ocean-deep);
  font-weight: 700;
  border-bottom: 2px solid rgba(7, 152, 173, 0.35);
}

.mini-label {
  margin: 0 0 2px;
  color: var(--coral);
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.site-header {
  position: fixed;
  z-index: 60;
  top: 14px;
  left: 50%;
  width: min(1220px, calc(100% - 28px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 40px rgba(7, 30, 48, 0.14);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--ocean), var(--turquoise) 40%, var(--sun) 62%, var(--coral) 82%, var(--ocean));
  box-shadow: 0 8px 20px rgba(7, 152, 173, 0.32);
}

.brand-mark svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--white);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.brand-mark svg circle {
  fill: rgba(255, 255, 255, 0.14);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  color: var(--navy-deep);
  font-size: 1.02rem;
  font-weight: 900;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 140ms ease, color 140ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--sky);
  outline: none;
}

.site-nav a[aria-current="page"] {
  color: var(--white);
  background: var(--navy);
}

.header-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--coral), var(--sunset));
  box-shadow: 0 10px 24px rgba(255, 106, 71, 0.34);
  font-size: 0.9rem;
  font-weight: 700;
}

.mobile-action-bar {
  display: none;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 40px;
  isolation: isolate;
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 34rem at 84% 0%, rgba(35, 195, 206, 0.2), transparent 62%),
    radial-gradient(46rem 30rem at 0% 8%, rgba(255, 201, 77, 0.2), transparent 55%),
    linear-gradient(180deg, #e9f8fb 0%, #fbfbf4 66%, rgba(251, 251, 244, 0) 100%);
}

.hero-sun {
  position: absolute;
  top: -110px;
  left: -90px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 77, 0.5), rgba(255, 201, 77, 0) 68%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(12, 44, 68, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 44, 68, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70rem 40rem at 70% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70rem 40rem at 70% 20%, #000 0%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 24px;
  align-items: center;
}

.hero-copy-col {
  position: relative;
  z-index: 2;
  padding: 12px 0 8px;
}

.hero h1 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(2.6rem, 4.7vw, 4.35rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
  white-space: nowrap;
}

.h1-line {
  display: block;
}

.h1-line.accent {
  background: linear-gradient(120deg, var(--ocean-deep) 20%, var(--ocean) 55%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.h1-line.sub {
  margin-top: 8px;
  font-size: 0.46em;
  line-height: 1.32;
  letter-spacing: 0.01em;
  white-space: normal;
}

.hero-copy {
  max-width: 560px;
  margin: 18px 0 0;
  color: #33586b;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 620px;
  margin-top: 18px;
}

.hero-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid rgba(7, 152, 173, 0.22);
  border-radius: 999px;
  color: #2a5468;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-finder {
  width: min(560px, 100%);
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.finder-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.hero-finder strong {
  color: var(--navy-deep);
  font-size: 0.98rem;
  font-weight: 900;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.quick-chips .chip {
  min-height: 34px;
  padding: 5px 12px;
  font-size: 0.82rem;
}

.quick-result {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Hero visual ------------------------------------------------ */

.hero-visual {
  position: relative;
  z-index: 1;
  height: clamp(430px, 44vw, 560px);
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  top: 4%;
  right: -4%;
  width: 108%;
  aspect-ratio: 1;
  border: 1.5px dashed rgba(7, 152, 173, 0.3);
  border-radius: 50%;
  animation: orbit-spin 90s linear infinite;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.hero-compass-frame {
  position: absolute;
  top: 50%;
  right: 6%;
  width: min(30vw, 430px);
  aspect-ratio: 1;
  transform: translateY(-50%);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.compass-ring {
  position: absolute;
  inset: -26px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(rgba(12, 44, 68, 0.34) 0deg 0.7deg, transparent 0.7deg 30deg);
  mask: radial-gradient(circle, transparent 62%, #000 63%, #000 70%, transparent 71%);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 70%, transparent 71%);
}

.compass-north {
  position: absolute;
  top: -44px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-mapline {
  position: absolute;
  top: 26%;
  right: 30%;
  width: 62%;
  height: 120px;
  border-top: 2.5px dashed rgba(255, 106, 71, 0.85);
  border-radius: 50% / 100% 100% 0 0;
  transform: rotate(-9deg);
}

.hero-plane {
  position: absolute;
  top: 17%;
  right: 27%;
  width: 0;
  height: 0;
  border-left: 16px solid var(--coral);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  transform: rotate(14deg);
  filter: drop-shadow(0 4px 8px rgba(255, 106, 71, 0.5));
}

.hero-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 6px rgba(255, 106, 71, 0.18), 0 12px 22px rgba(7, 30, 48, 0.24);
}

.pin-one { top: 20%; right: 10%; }

.pin-two {
  top: 62%;
  right: 84%;
  background: var(--turquoise);
  box-shadow: 0 0 0 6px rgba(35, 195, 206, 0.2), 0 12px 22px rgba(7, 30, 48, 0.24);
}

.hero-card-stack {
  position: absolute;
  bottom: 6%;
  right: 0;
  display: grid;
  gap: 10px;
  width: min(250px, 22vw);
}

.hero-mini-card {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(7, 30, 48, 0.18);
  backdrop-filter: blur(12px);
}

.hero-mini-card.check {
  margin-right: 30px;
  border-color: rgba(255, 106, 71, 0.35);
  background: rgba(255, 247, 240, 0.94);
}

.hero-mini-card strong {
  display: block;
  color: var(--navy-deep);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.32;
}

.hero-mini-card em {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
  font-family: var(--font-en);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}

.hero-mini-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

/* Boarding-pass fact strip ----------------------------------- */

.hero-ticket-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 30px auto 0;
}

.boarding-pass {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(30rem 12rem at 100% 0%, rgba(35, 195, 206, 0.08), transparent 60%),
    var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.boarding-pass::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    #e2543a 0 12px,
    #fdfdfb 12px 24px,
    #2d6da8 24px 36px,
    #fdfdfb 36px 48px
  );
}

.bp-main {
  min-width: 0;
  padding: 22px 24px 18px;
}

.bp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bp-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ocean-deep);
}

.bp-brand i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--ocean), var(--turquoise) 40%, var(--sun) 62%, var(--coral) 82%, var(--ocean));
}

.bp-class {
  color: rgba(16, 52, 74, 0.45);
}

.bp-route {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 12px 0 14px;
}

.bp-city em {
  display: block;
  color: var(--navy-deep);
  font-family: var(--font-en);
  font-size: 1.9rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.bp-city.to em {
  color: var(--ocean-deep);
}

.bp-city small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.bp-path {
  position: relative;
  height: 0;
  border-top: 2.5px dashed rgba(7, 152, 173, 0.45);
}

.bp-path::before,
.bp-path::after {
  content: "";
  position: absolute;
  top: -5.5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ocean);
}

.bp-path::before { left: -2px; }

.bp-path::after {
  right: -2px;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 106, 71, 0.2);
}

.bp-plane {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 18px solid var(--coral);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 8px rgba(255, 106, 71, 0.45));
  animation: plane-drift 5s ease-in-out infinite;
}

@keyframes plane-drift {
  0%, 100% { transform: translateX(-64%); }
  50% { transform: translateX(-36%); }
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding-top: 14px;
  border-top: 2px dashed rgba(16, 52, 74, 0.16);
}

.hero-facts > div {
  padding: 2px 18px 0;
}

.hero-facts > div + div {
  border-left: 1px solid var(--line-soft);
}

.hero-facts dt em {
  display: block;
  margin-bottom: 2px;
  color: rgba(7, 109, 126, 0.62);
  font-family: var(--font-en);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-facts dt {
  color: var(--navy-deep);
  font-family: var(--font-en);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.05;
}

.hero-facts dt small {
  margin-left: 2px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ocean-deep);
}

.hero-facts dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.bp-stub {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 20px 16px;
  border-left: 2px dashed rgba(16, 52, 74, 0.24);
  background: linear-gradient(180deg, #fff8ec, #fdf3e0);
}

.bp-stub::before,
.bp-stub::after {
  content: "";
  position: absolute;
  left: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef8f9;
  box-shadow: inset 0 2px 5px rgba(7, 30, 48, 0.1);
}

.bp-stub::before { top: -11px; }
.bp-stub::after { bottom: -11px; }

.bp-stamp {
  display: grid;
  width: 92px;
  height: 92px;
  place-content: center;
  gap: 1px;
  border: 2.5px dashed rgba(226, 84, 58, 0.75);
  border-radius: 50%;
  color: #cf4a32;
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
  transform: rotate(-9deg);
}

.bp-stamp em {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1;
}

.bp-gate {
  color: var(--navy-deep);
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.26em;
}

.bp-barcode {
  width: 100%;
  height: 30px;
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg,
      rgba(16, 52, 74, 0.78) 0 2px, transparent 2px 5px,
      rgba(16, 52, 74, 0.78) 5px 6px, transparent 6px 11px,
      rgba(16, 52, 74, 0.78) 11px 14px, transparent 14px 17px);
  opacity: 0.55;
}

/* ------------------------------------------------------------
   Finder menu = departures board
   ------------------------------------------------------------ */

.finder-menu {
  position: relative;
  padding: 56px 0 30px;
}

.board-shell {
  padding: clamp(22px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(50rem 22rem at 100% 0%, rgba(35, 195, 206, 0.16), transparent 55%),
    linear-gradient(160deg, #0d3049, #071e30);
  box-shadow: var(--shadow);
}

.board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.board-head h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
}

.board-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.board-clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 201, 77, 0.4);
  border-radius: 999px;
  color: var(--sun);
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.board-clock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  animation: blink 2.2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.menu-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.menu-card:hover,
.menu-card:focus-visible {
  border-color: rgba(35, 195, 206, 0.55);
  background: rgba(35, 195, 206, 0.12);
  outline: none;
  transform: translateX(4px);
}

.menu-card.is-check {
  border-color: rgba(255, 106, 71, 0.5);
  background: rgba(255, 106, 71, 0.12);
}

.menu-card .gate {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 201, 77, 0.45);
  border-radius: var(--radius);
  color: var(--sun);
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 800;
}

.menu-card.is-check .gate {
  border-color: rgba(255, 106, 71, 0.6);
  color: #ffab92;
}

.menu-main {
  min-width: 0;
}

.menu-card strong {
  display: block;
  color: var(--white);
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.3;
}

.menu-card small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
}

.menu-en {
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.menu-arrow {
  color: var(--turquoise);
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 800;
}

.menu-card.is-check .menu-arrow {
  color: var(--coral);
}

/* ------------------------------------------------------------
   Decision band (purpose spotlight on home)
   ------------------------------------------------------------ */

.decision-band {
  position: relative;
  overflow: hidden;
  padding: 84px 0;
}

.decision-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
}

.decision-copy h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  line-height: 1.1;
}

.decision-copy p {
  margin-top: 16px;
}

.decision-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.decision-cards article {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.decision-cards article:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.decision-cards article:nth-child(even) {
  transform: translateY(14px);
}

.decision-cards article:nth-child(even):hover {
  transform: translateY(11px);
}

.decision-cards strong {
  display: block;
  margin-top: 13px;
  color: var(--navy-deep);
  font-weight: 900;
  line-height: 1.45;
}

.decision-cards p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ------------------------------------------------------------
   Summary band (Why Cebu)
   ------------------------------------------------------------ */

.summary-band {
  position: relative;
  padding: 84px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(232, 248, 251, 0.55)),
    url("assets/cebu-ai-map.png") center / cover no-repeat;
  border-block: 1px solid rgba(255, 255, 255, 0.9);
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 48px;
  align-items: center;
}

.summary-side p {
  font-size: 1.02rem;
  line-height: 1.9;
}

.summary-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.summary-points span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border: 1px solid rgba(47, 180, 124, 0.35);
  border-radius: 999px;
  color: #17765a;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.84rem;
  font-weight: 700;
}

.summary-points span::before {
  content: "✓";
  color: var(--leaf);
  font-weight: 900;
}

/* ------------------------------------------------------------
   Promise (旅のしおり)
   ------------------------------------------------------------ */

.promise {
  overflow: hidden;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.promise-grid article {
  position: relative;
  min-height: 230px;
  padding: 26px 22px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.promise-grid article:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.promise-grid article::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 22px;
  width: 74px;
  height: 22px;
  border-radius: 3px;
  background: rgba(255, 106, 71, 0.5);
  transform: rotate(-3deg);
}

.promise-grid article:nth-child(2)::before {
  background: rgba(7, 152, 173, 0.45);
  transform: rotate(2deg);
}

.promise-grid article:nth-child(3)::before {
  background: rgba(255, 201, 77, 0.62);
  transform: rotate(-2deg);
}

.promise-grid .num {
  position: absolute;
  right: 14px;
  top: 4px;
  color: transparent;
  font-family: var(--font-en);
  font-size: 4.4rem;
  font-weight: 900;
  -webkit-text-stroke: 1.5px rgba(7, 152, 173, 0.3);
}

.promise-grid h3 {
  margin: 22px 0 10px;
  color: var(--navy-deep);
  font-size: 1.3rem;
  font-weight: 900;
}

.promise-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ------------------------------------------------------------
   Photo story (polaroid gallery)
   ------------------------------------------------------------ */

.photo-story {
  position: relative;
  overflow: hidden;
  padding: 108px 0;
  color: var(--white);
  background:
    radial-gradient(60rem 30rem at 0% 100%, rgba(35, 195, 206, 0.25), transparent 55%),
    linear-gradient(150deg, #065562, #043945 55%, #0a2c44);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 44px;
  align-items: center;
}

.story-copy h2 {
  color: var(--white);
}

.story-copy p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.story-gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.polaroid {
  margin: 0;
  padding: 10px 10px 14px;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 26px 60px rgba(2, 16, 26, 0.42);
  transition: transform 200ms ease;
}

.polaroid img {
  width: 100%;
  aspect-ratio: 3 / 3.6;
  object-fit: cover;
  border-radius: 3px;
}

.polaroid figcaption {
  margin-top: 10px;
  color: #7c8a94;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-align: center;
}

.polaroid.p1 { transform: rotate(-3.5deg) translateY(10px); }
.polaroid.p2 { transform: rotate(2deg) translateY(-12px); }
.polaroid.p3 { transform: rotate(-1.2deg) translateY(18px); }

.polaroid.p1:hover { transform: rotate(-3.5deg) translateY(4px); }
.polaroid.p2:hover { transform: rotate(2deg) translateY(-18px); }
.polaroid.p3:hover { transform: rotate(-1.2deg) translateY(12px); }

/* ------------------------------------------------------------
   Journal / articles
   ------------------------------------------------------------ */

.article-category-hub {
  margin: 28px 0 30px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.article-category-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 22px 0;
}

.article-category-overview > div {
  min-width: 0;
}

.article-category-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--coral);
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.article-category-overview strong {
  display: block;
  color: var(--navy-deep);
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  font-weight: 750;
  line-height: 1.35;
}

.article-category-overview p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-all-link {
  display: grid;
  grid-template-columns: auto 34px;
  gap: 12px;
  min-width: 152px;
  min-height: 52px;
  align-items: center;
  padding: 8px 9px 8px 15px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  font-size: 0.84rem;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.article-all-link strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  color: var(--ocean-deep);
  background: var(--sky);
  font-family: var(--font-en);
  font-size: 0.88rem;
  font-weight: 800;
}

.article-all-link:hover,
.article-all-link:focus-visible,
.article-all-link.is-active {
  border-color: var(--ocean);
  color: var(--white);
  background: var(--navy);
  outline: none;
}

.article-all-link:hover strong,
.article-all-link:focus-visible strong,
.article-all-link.is-active strong {
  color: var(--navy);
  background: var(--sun);
}

.article-category-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
}

.article-category-group {
  --category-tone: var(--ocean);
  position: relative;
  min-width: 0;
  padding: 19px 16px 21px;
  border-left: 1px solid var(--line-soft);
}

.article-category-group:first-child {
  border-left: 0;
}

.article-category-group::before {
  position: absolute;
  top: -1px;
  left: 16px;
  width: 54px;
  height: 3px;
  background: var(--category-tone);
  content: "";
}

.article-category-group.acg-lesson {
  --category-tone: #e65843;
}

.article-category-group.acg-target {
  --category-tone: #008e99;
}

.article-category-group.acg-life {
  --category-tone: #1d6fa3;
}

.article-category-group.acg-ops {
  --category-tone: #7a63a6;
}

.article-category-group > header {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 13px;
}

.article-category-group > header > span {
  color: transparent;
  font-family: var(--font-en);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  -webkit-text-stroke: 1px var(--category-tone);
}

.article-category-group h3 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.35;
}

.article-category-group header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.article-category-list {
  display: grid;
}

.article-category-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 24px;
  gap: 8px;
  min-height: 42px;
  align-items: center;
  padding: 5px 3px;
  border-top: 1px solid rgba(10, 48, 67, 0.08);
  color: var(--navy);
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.article-category-link:first-child {
  border-top: 0;
}

.article-category-link:hover,
.article-category-link:focus-visible,
.article-category-link.is-active {
  color: var(--category-tone);
  background: color-mix(in srgb, var(--category-tone) 7%, transparent);
  outline: none;
  transform: translateX(3px);
}

.article-category-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  color: var(--category-tone);
  background: color-mix(in srgb, var(--category-tone) 10%, white);
}

.article-category-icon svg {
  width: 15px;
  height: 15px;
}

.article-category-name {
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

.article-category-count {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 750;
}

.article-category-link.is-active .article-category-count {
  color: var(--white);
  border-radius: 5px;
  background: var(--category-tone);
}

.article-list-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.article-list-header div {
  display: grid;
  gap: 3px;
}

.article-list-header span,
.article-list-header small {
  color: var(--ocean-deep);
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.article-list-header strong {
  color: var(--navy-deep);
  font-size: 1.18rem;
  font-weight: 750;
}

.article-empty-state {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.article-empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  color: var(--ocean-deep);
  background: var(--sky);
}

.article-empty-icon svg {
  width: 26px;
  height: 26px;
}

.article-empty-state strong {
  color: var(--navy-deep);
  font-size: 1.08rem;
  font-weight: 750;
}

.article-empty-state p {
  max-width: 680px;
  margin: 7px 0 14px;
  color: var(--muted);
}

.article-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.article-preview-grid,
.article-grid {
  display: grid;
  gap: 14px;
}

.article-preview-grid {
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
  position: relative;
  display: grid;
  min-height: 240px;
  align-content: start;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.article-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.article-card::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: var(--ocean);
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 800;
}

.article-card span {
  display: inline-flex;
  width: fit-content;
  min-height: 27px;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ocean);
  font-size: 0.75rem;
  font-weight: 700;
}

.article-card h3 {
  margin: 16px 0 10px;
  color: var(--navy-deep);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.42;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.68;
}

.article-card small {
  display: block;
  margin-top: 16px;
  color: var(--ocean-deep);
  font-family: var(--font-en);
  font-weight: 700;
}

.article-card.feature {
  color: var(--white);
  border-color: transparent;
  background:
    linear-gradient(150deg, rgba(7, 30, 48, 0.9), rgba(3, 109, 126, 0.62)),
    url("assets/cebu-people-hero.png") center / cover no-repeat;
}

.article-card.feature span {
  color: var(--navy);
  background: var(--sun);
}

.article-card.feature h3 {
  max-width: 560px;
  color: var(--white);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.24;
}

.article-card.feature p {
  color: rgba(255, 255, 255, 0.82);
}

.article-card.feature small {
  color: var(--sun);
}

.article-card.feature::after {
  color: var(--sun);
}

.journal-cta {
  margin-top: 20px;
}

/* Journal magazine layout (home) ------------------------------ */

.study-journal {
  padding-top: 64px;
}

.journal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 16px;
  align-items: stretch;
}

.journal-grid .article-card.feature {
  min-height: 380px;
  align-content: end;
}

.journal-grid .article-card.feature h3 {
  margin-top: 12px;
}

.journal-grid .article-card.feature small {
  order: -1;
  margin: 0 0 auto;
  padding-bottom: 18px;
  letter-spacing: 0.22em;
}

.journal-rows {
  display: grid;
  grid-auto-rows: 1fr auto;
  gap: 10px;
}

.journal-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.journal-row:hover,
.journal-row:focus-visible {
  border-color: rgba(7, 152, 173, 0.4);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateX(4px);
}

.jr-num {
  color: transparent;
  font-family: var(--font-en);
  font-size: 1.9rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 1.3px rgba(7, 152, 173, 0.45);
}

.jr-main {
  min-width: 0;
}

.jr-tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.t-coral-soft { color: #b8492e; background: #ffe9e2; }
.t-navy-soft { color: var(--navy); background: #e3edf5; }
.t-ocean-soft { color: var(--ocean-deep); background: var(--sky); }

.journal-row strong {
  display: block;
  margin-top: 6px;
  color: var(--navy-deep);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.4;
}

.journal-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.jr-arrow {
  color: var(--ocean);
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 800;
  transition: transform 160ms ease;
}

.journal-row:hover .jr-arrow {
  transform: translateX(4px);
}

.journal-more {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  border: 1px solid rgba(16, 52, 74, 0.22);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.94rem;
  font-weight: 700;
  transition: background 150ms ease, border-color 150ms ease;
}

.journal-more span {
  font-family: var(--font-en);
  font-weight: 800;
}

.journal-more:hover,
.journal-more:focus-visible {
  border-color: var(--ocean);
  background: var(--sky);
  outline: none;
}

/* Article detail --------------------------------------------- */

.article-hero {
  padding: clamp(28px, 5vw, 46px);
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    linear-gradient(140deg, rgba(7, 30, 48, 0.94), rgba(7, 152, 173, 0.66)),
    url("assets/cebu-moments-collage.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.article-meta a,
.article-meta span {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.article-meta a:first-child,
.article-meta span:first-child {
  color: var(--navy);
  background: var(--sun);
}

.article-hero h2 {
  max-width: 860px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  font-weight: 900;
  line-height: 1.14;
}

.article-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
  margin-top: 26px;
}

.article-body {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.article-body section + section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px dashed var(--line);
}

.article-body h3 {
  margin: 0 0 14px;
  color: var(--navy-deep);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 900;
  line-height: 1.34;
}

.article-body p {
  margin: 0;
  color: #38596a;
  font-size: 1rem;
  line-height: 1.95;
}

.article-body p + p {
  margin-top: 14px;
}

.article-aside {
  padding: 20px;
  border: 1px solid rgba(7, 152, 173, 0.2);
  border-radius: var(--radius-lg);
  background: var(--mist);
  box-shadow: var(--shadow-soft);
}

.article-aside h3 {
  margin: 0 0 12px;
  color: var(--navy-deep);
  font-size: 1.02rem;
  font-weight: 900;
}

.article-aside ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.article-aside li {
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
}

.article-next {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.article-next strong {
  color: var(--navy-deep);
}

.article-next a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ocean);
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 150ms ease;
}

.article-next a:hover {
  background: var(--ocean-deep);
}

/* ------------------------------------------------------------
   Diagnosis (boarding-check ticket)
   ------------------------------------------------------------ */

.soft {
  background:
    radial-gradient(46rem 26rem at 100% 0%, rgba(255, 201, 77, 0.14), transparent 55%),
    linear-gradient(180deg, #e8f7fa, #f6fcfd);
}

.diagnosis-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: 44px;
  align-items: stretch;
}

.diagnosis-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.diagnosis-copy h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
}

.type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.type-list li {
  padding: 7px 13px;
  border: 1px solid rgba(7, 152, 173, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #2a5468;
  font-size: 0.85rem;
  font-weight: 700;
}

.diagnosis-tool {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 24px 18px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.diagnosis-tool::before,
.diagnosis-tool::after {
  content: "";
  position: absolute;
  top: 54px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e8f7fa;
  box-shadow: inset 0 2px 5px rgba(7, 30, 48, 0.08);
}

.diagnosis-tool::before { left: -11px; }
.diagnosis-tool::after { right: -11px; }

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -24px 18px;
  padding: 13px 24px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 2px dashed rgba(16, 52, 74, 0.16);
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(120deg, var(--ocean-deep), var(--ocean));
  font-family: var(--font-en);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.tool-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-weight: 700;
}

#diagnosis-progress {
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--ocean-deep);
}

.tool-actions {
  display: flex;
  gap: 8px;
}

.progress-track {
  height: 10px;
  margin: 14px 0 22px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4f1f3;
}

.progress-track span {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ocean), var(--turquoise) 55%, var(--coral));
  transition: width 260ms ease;
}

.diagnosis-tool h3 {
  min-height: 72px;
  margin: 0 0 16px;
  color: var(--navy-deep);
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1.4;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.option-grid button {
  position: relative;
  min-height: 72px;
  padding: 14px 16px 14px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--paper);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.option-grid button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(7, 152, 173, 0.5);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background 140ms ease, box-shadow 140ms ease;
}

.option-grid button:hover,
.option-grid button:focus-visible {
  border-color: var(--ocean);
  background: var(--sky);
  outline: none;
  transform: translateY(-1px);
}

.option-grid button:hover::before {
  background: var(--ocean);
  box-shadow: inset 0 0 0 3px var(--sky);
}

.ticket-barcode {
  margin-top: auto;
  padding-top: 20px;
  background-clip: content-box;
  height: 50px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg,
      rgba(16, 52, 74, 0.7) 0 2px, transparent 2px 5px,
      rgba(16, 52, 74, 0.7) 5px 6px, transparent 6px 11px,
      rgba(16, 52, 74, 0.7) 11px 14px, transparent 14px 17px);
  opacity: 0.4;
}

/* Diagnosis result ticket ------------------------------------ */

.diagnosis-result {
  position: relative;
  margin-top: 4px;
  padding: 20px 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 106, 71, 0.28);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff4e6, #fffdf8 46%);
}

.diagnosis-result::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--ocean), var(--turquoise), var(--coral));
}

.result-eyebrow {
  margin: 4px 0 4px;
  color: var(--coral);
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.diagnosis-result h4 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 1.5rem;
  font-weight: 900;
}

.diagnosis-result p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.diagnosis-result .result-lead {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px dashed rgba(16, 52, 74, 0.2);
  color: var(--navy-deep);
}

.diagnosis-result .result-note {
  font-size: 0.82rem;
}

.result-schools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.result-school {
  display: block;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.result-school:hover,
.result-school:focus-visible {
  border-color: var(--ocean);
  box-shadow: var(--shadow-soft);
  outline: none;
  transform: translateY(-2px);
}

.result-school strong {
  display: block;
  color: var(--navy-deep);
  font-weight: 900;
  line-height: 1.35;
}

.result-school small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.result-school span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  color: var(--ocean-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.result-school span::after {
  content: "→";
  font-family: var(--font-en);
}

.diagnosis-result .hero-actions {
  margin-top: 18px;
}

/* 8 types ----------------------------------------------------- */

.diagnosis-types {
  margin-top: 20px;
}

/* 8タイプカードを診断右カラムへ統合（第14R） */
.type-grid-head {
  margin-top: auto;
  padding-top: 26px;
}

.type-grid-head .mini-label {
  margin: 0 0 6px;
}

.type-grid-title {
  margin: 0 0 12px;
  color: var(--navy-deep);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.type-card-grid.in-copy {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.type-card-grid.in-copy article {
  min-height: 0;
  padding: 12px 14px;
}

.type-card-grid.in-copy .dot {
  top: 15px;
  right: 13px;
  width: 10px;
  height: 10px;
}

.type-card-grid.in-copy strong {
  padding-right: 18px;
  font-size: 0.92rem;
}

.type-card-grid.in-copy span {
  margin-top: 5px;
  font-size: 0.8rem;
  line-height: 1.55;
}

.type-grid-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.type-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.type-card-grid article {
  position: relative;
  min-height: 128px;
  padding: 16px 16px 16px 18px;
  border: 1px solid rgba(7, 152, 173, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.type-card-grid .dot {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.d1 { background: var(--ocean); }
.dot.d2 { background: var(--coral); }
.dot.d3 { background: var(--navy); }
.dot.d4 { background: var(--sunset); }
.dot.d5 { background: var(--turquoise); }
.dot.d6 { background: var(--sun); }
.dot.d7 { background: var(--leaf); }
.dot.d8 { background: #9a77d1; }

.type-card-grid strong {
  display: block;
  color: var(--navy-deep);
  font-size: 1rem;
  font-weight: 900;
}

.type-card-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   Comparison / ranking
   ------------------------------------------------------------ */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
}

caption {
  padding: 15px 20px;
  color: var(--muted);
  text-align: left;
  font-size: 0.84rem;
  font-weight: 700;
}

th,
td {
  padding: 15px 18px;
  border-top: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--ocean-deep);
  background: var(--mist);
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

tbody tr {
  transition: background 130ms ease;
}

tbody tr:hover {
  background: var(--mist);
}

td {
  color: var(--ink);
  font-size: 0.94rem;
}

td:nth-child(2) {
  font-weight: 700;
  color: var(--navy-deep);
}

td i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(7, 152, 173, 0.35);
  color: var(--ocean-deep);
  font-family: var(--font-en);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 800;
}

tbody tr:nth-child(-n+3) td i {
  border-color: transparent;
  color: var(--white);
  background: linear-gradient(135deg, var(--coral), var(--sunset));
}

td strong {
  display: block;
  color: var(--navy-deep);
  font-family: var(--font-en);
  font-size: 1.16rem;
  font-weight: 800;
  white-space: nowrap;
}

td strong small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

td .bar {
  display: block;
  width: 104px;
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: #e4f1f3;
  overflow: hidden;
}

td .bar i {
  display: block;
  width: 0;
  height: 100%;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ocean), var(--turquoise));
}

.comparison-card-list {
  display: none;
}

.comparison-note,
.school-page-note {
  display: flex;
  gap: 14px;
  flex-direction: column;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(47, 180, 124, 0.3);
  border-left: 5px solid var(--leaf);
  border-radius: var(--radius);
  background: #f2fbf7;
}

.comparison-note strong,
.school-page-note strong {
  color: #135c44;
  font-size: 1.02rem;
  font-weight: 900;
}

.comparison-note p,
.school-page-note p {
  margin: -6px 0 0;
  color: #33665a;
  font-size: 0.92rem;
}

.comparison-block {
  margin-top: 44px;
}

.link-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.link-columns > div {
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.link-columns h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--navy-deep);
  font-size: 1.04rem;
  font-weight: 900;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.basic { background: var(--ocean); }
.legend-dot.purpose { background: var(--coral); }
.legend-dot.g1 { background: var(--ocean); }
.legend-dot.g2 { background: var(--coral); }
.legend-dot.g3 { background: var(--leaf); }
.legend-dot.g4 { background: var(--sun); }

.link-columns.four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.score-link {
  margin-top: 16px;
}

.checkpoint-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.checkpoint-grid article {
  padding: 14px 15px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.checkpoint-grid strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--navy-deep);
  font-size: 0.92rem;
  font-weight: 900;
}

.checkpoint-grid strong::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--leaf);
}

.checkpoint-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.pill-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-link-grid a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgba(7, 152, 173, 0.2);
  border-radius: 999px;
  color: var(--ocean-deep);
  background: var(--mist);
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 140ms ease, border-color 140ms ease;
}

.pill-link-grid a:hover,
.pill-link-grid a:focus-visible {
  border-color: var(--ocean);
  background: var(--sky);
  outline: none;
}

.purpose-spotlight {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.purpose-spotlight article {
  padding: 17px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.purpose-spotlight article:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.purpose-spotlight strong {
  display: block;
  margin-top: 13px;
  color: var(--navy-deep);
  font-weight: 900;
  line-height: 1.45;
}

.purpose-spotlight p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.mini-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 106, 71, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(24rem 10rem at 100% 0%, rgba(255, 201, 77, 0.18), transparent 60%),
    #fff8f2;
}

.mini-cta strong {
  color: var(--navy-deep);
  font-size: 1.06rem;
  font-weight: 900;
}

.mini-cta p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ------------------------------------------------------------
   Schools
   ------------------------------------------------------------ */

.editorial {
  background:
    radial-gradient(48rem 26rem at 0% 0%, rgba(255, 201, 77, 0.14), transparent 55%),
    linear-gradient(180deg, #fdf7ea, #fbfdfd);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.school-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.school-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.school-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px 18px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--ocean-deep), var(--ocean));
}

.card-band::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.school-card.t-parent_child .card-band { background: linear-gradient(120deg, #e2542f, var(--coral)); }
.school-card.t-resort .card-band { background: linear-gradient(120deg, #0a8fa0, var(--turquoise)); }
.school-card.t-sparta .card-band { background: linear-gradient(120deg, #b34a12, var(--sunset)); }
.school-card.t-exam .card-band { background: linear-gradient(120deg, #0c4d70, #1279a8); }
.school-card.t-business_short .card-band { background: linear-gradient(120deg, var(--navy-deep), #1c4666); }
.school-card.t-facility .card-band { background: linear-gradient(120deg, #158a5c, var(--leaf)); }
.school-card.t-general_balance .card-band { background: linear-gradient(120deg, var(--ocean-deep), var(--ocean)); }
.school-card.t-cost_performance .card-band { background: linear-gradient(120deg, #c8871a, var(--sun)); }

.school-card .rank {
  position: relative;
  z-index: 1;
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.92;
}

.score-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(7, 30, 48, 0.35);
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.score-badge small {
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.8;
}

.school-card h3 {
  margin: 16px 18px 0;
  color: var(--navy-deep);
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.34;
}

.school-area {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 18px 0;
  color: var(--ocean-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.school-area::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50% 50% 50% 0;
  background: var(--coral);
  transform: rotate(-45deg);
}

.school-card > p {
  margin: 10px 18px 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.school-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 18px 0;
}

.school-tags span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  color: #2a5468;
  background: var(--sky);
  font-size: 0.73rem;
  font-weight: 700;
}

.school-card dl {
  display: grid;
  gap: 9px;
  margin: 14px 18px 0;
}

.school-card dl div {
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}

.school-card dt {
  color: var(--coral);
  font-size: 0.73rem;
  font-weight: 800;
}

.school-card dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.6;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 18px 18px;
  padding: 10px 14px;
  border: 1px solid rgba(7, 152, 173, 0.24);
  border-radius: var(--radius);
  color: var(--ocean-deep);
  background: var(--mist);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 150ms ease, border-color 150ms ease;
}

.card-link::after {
  content: "→";
  font-family: var(--font-en);
  font-weight: 800;
}

.card-link:hover,
.card-link:focus-visible {
  border-color: var(--ocean);
  background: var(--sky);
  outline: none;
}

/* ------------------------------------------------------------
   Purpose grid (12 categories)
   ------------------------------------------------------------ */

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.purpose-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.purpose-grid article:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.purpose-grid .num {
  color: transparent;
  font-family: var(--font-en);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 1.2px rgba(7, 152, 173, 0.45);
}

.purpose-grid h3 {
  margin: 10px 0 8px;
  color: var(--navy-deep);
  font-size: 1.1rem;
  font-weight: 900;
}

.purpose-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.62;
}

.purpose-grid a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--ocean-deep);
  font-size: 0.85rem;
  font-weight: 700;
}

.purpose-grid a::after {
  content: "→";
  font-family: var(--font-en);
  font-weight: 800;
  transition: transform 150ms ease;
}

.purpose-grid a:hover::after {
  transform: translateX(3px);
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   詳細ページ拡張（学校詳細・項目別ページ 構成案7-4/7-5）
   ------------------------------------------------------------ */

.detail-block {
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--navy-deep);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.detail-block-title::before {
  content: "";
  flex: none;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ocean), var(--coral));
}

.detail-block-title:has(.t-ico)::before {
  display: none;
}

/* タイトルアイコン（第29R） */
.t-ico {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--sky);
  color: var(--ocean-deep);
}

.t-ico svg {
  width: 15px;
  height: 15px;
}

.t-ico.tone-good {
  background: rgba(47, 158, 68, 0.12);
  color: #2b8a3e;
}

.t-ico.tone-warn {
  background: rgba(255, 106, 71, 0.14);
  color: #d9480f;
}

.t-ico.tone-warm {
  background: rgba(255, 201, 77, 0.26);
  color: #a87b0c;
}

.detail-panel > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-panel > h3 .t-ico {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.detail-panel > h3 .t-ico svg {
  width: 13px;
  height: 13px;
}

.school-card dt .t-ico {
  width: 17px;
  height: 17px;
  margin-right: 5px;
  border-radius: 5px;
  vertical-align: -4px;
}

.school-card dt .t-ico svg {
  width: 10px;
  height: 10px;
}

.detail-panel h3:has(.t-ico)::before {
  display: none;
}

/* 学校詳細フォトギャラリー（第29R→第39Rで横スライド化） */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.photo-strip.photo-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 59, 90, 0.35) rgba(11, 59, 90, 0.08);
}

.photo-strip.photo-carousel::-webkit-scrollbar {
  height: 6px;
}

.photo-strip.photo-carousel::-webkit-scrollbar-track {
  background: rgba(11, 59, 90, 0.08);
  border-radius: 999px;
}

.photo-strip.photo-carousel::-webkit-scrollbar-thumb {
  background: rgba(11, 59, 90, 0.35);
  border-radius: 999px;
}

.photo-strip.photo-carousel figure {
  flex: 0 0 216px;
  scroll-snap-align: start;
}

.photo-strip.photo-carousel img {
  aspect-ratio: 4 / 3;
}

.photo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.photo-head .detail-block-title {
  margin: 0;
}

.photo-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.photo-count {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(11, 59, 90, 0.08);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.photo-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0 0 3px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.photo-nav:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .photo-strip.photo-carousel figure {
    flex-basis: 176px;
  }
}

.photo-strip figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #e8f4f7;
  box-shadow: var(--shadow-soft);
}

.photo-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 300ms ease;
}

.photo-strip figure:hover img {
  transform: scale(1.03);
}

.photo-strip figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px 12px 9px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(7, 30, 48, 0.72));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.photo-credit {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.sx-board .item-photo-strip {
  margin: 16px 0 4px;
}

/* 24項目フォトマップ（第37R） */
.pm-lead {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.pm-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.pm-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.pm-tile:hover img {
  transform: scale(1.07);
}

.pm-tile.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 30, 48, 0.02) 34%, rgba(7, 30, 48, 0.82));
}

.pm-body {
  position: absolute;
  right: 7px;
  bottom: 6px;
  left: 7px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
}

.pm-body .legend-dot {
  flex: none;
}

.pm-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pm-score {
  margin-left: auto;
  flex: none;
  font-family: var(--font-en);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 800;
}

.pm-score small {
  font-size: 0.62em;
  opacity: 0.75;
}

.pm-flat .pm-body {
  color: var(--navy-deep);
}

.pm-icon {
  position: absolute;
  inset: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(16, 52, 74, 0.38);
}

.pm-icon svg {
  width: 26px;
  height: 26px;
}

.pm-flat.pm-lesson { background: rgba(7, 152, 173, 0.09); }
.pm-flat.pm-target { background: rgba(255, 106, 71, 0.09); }
.pm-flat.pm-life { background: rgba(47, 158, 68, 0.09); }
.pm-flat.pm-ops { background: rgba(255, 201, 77, 0.16); }

/* 料金テーブル（第36R） */
.price-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -4px 0 14px;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid rgba(7, 152, 173, 0.24);
  border-radius: 999px;
  color: var(--ocean-deep);
  background: rgba(232, 248, 251, 0.7);
  font-size: 0.76rem;
  font-weight: 800;
}

.price-tag.main {
  border-color: rgba(7, 30, 48, 0.2);
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-deep), #0d4c66);
}

.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  font-size: 0.86rem;
}

.price-table thead th {
  padding: 11px 12px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, #0d4a63 100%);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: right;
  white-space: nowrap;
}

.price-table thead th.p-room-h {
  text-align: left;
}

.price-table thead th.p-hot {
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean) 100%);
}

.p-pop {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--navy-deep);
  font-size: 0.62rem;
  font-weight: 900;
  vertical-align: 1px;
}

.price-table tbody td {
  padding: 10px 12px;
  border-top: 1px solid var(--line-soft);
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--navy-deep);
}

.price-table tbody td.p-room {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  white-space: normal;
  min-width: 150px;
}

.price-table tbody tr:nth-child(even) td {
  background: rgba(232, 248, 251, 0.32);
}

.price-table tbody td.p-hot {
  background: rgba(7, 152, 173, 0.09);
  font-weight: 800;
  color: var(--ocean-deep);
}

.price-table tbody tr:nth-child(even) td.p-hot {
  background: rgba(7, 152, 173, 0.13);
}

.price-table tbody tr:hover td {
  background: rgba(255, 201, 77, 0.13);
}

.p-cur {
  margin-right: 1px;
  color: var(--muted);
  font-size: 0.74em;
  font-weight: 700;
}

.p-na {
  color: rgba(70, 104, 126, 0.55);
}

.detail-block .cat-bars {
  max-width: 560px;
}

.detail-block .route-chip {
  margin-top: 16px;
}

.detail-block .faq-list {
  max-width: none;
}

.fit-grid {
  margin-top: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-panel.fit-yes {
  border-top: 3px solid var(--ocean);
}

.detail-panel.fit-no {
  border-top: 3px solid var(--coral);
}

.life-grid {
  margin-top: 0;
}

.fit-chips a em {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(7, 152, 173, 0.12);
  color: var(--ocean-deep);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.fit-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.fit-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.compare-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compare-links a,
.compare-links span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgba(7, 152, 173, 0.2);
  border-radius: 999px;
  color: var(--ocean-deep);
  background: var(--mist);
  font-size: 0.84rem;
  font-weight: 700;
}

.compare-links a:hover,
.compare-links a:focus-visible {
  border-color: var(--ocean);
  background: var(--sky);
  outline: none;
}

.official-note-block p {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.85;
}

.official-pending {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px dashed rgba(7, 152, 173, 0.35);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.cta-actions {
  margin-top: 16px;
}

.mini-cta-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 10px;
}

.item-table .cell-type {
  color: var(--ink);
  font-size: 0.82rem;
}

.decision-more {
  grid-column: 1 / -1;
  margin-top: 26px;
}

.decision-more .mini-label {
  margin: 0 0 10px;
}

.filter-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.school-area-row {
  margin: 0;
  justify-content: flex-end;
}

.school-area-row .sort-label {
  color: #c2512f;
}

.school-area-row .chip {
  border-color: rgba(255, 106, 71, 0.38);
  color: #b8431f;
  background: rgba(255, 246, 242, 0.92);
}

.school-area-row .chip:hover:not(.is-active) {
  background: rgba(255, 106, 71, 0.14);
}

.school-area-row .chip.is-active {
  border-color: var(--coral);
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 8px 18px rgba(255, 106, 71, 0.32);
}

/* ------------------------------------------------------------
   学校詳細 詳細データ（第18R）
   ------------------------------------------------------------ */

.school-lead p {
  margin: 0;
  color: var(--ink);
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.95;
}

.score-acc-wrap {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.score-acc {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  padding: 0 16px;
}

.score-acc[open] {
  border-color: rgba(7, 152, 173, 0.3);
}

.score-acc summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  cursor: pointer;
  list-style: none;
  color: var(--navy-deep);
  font-size: 0.95rem;
  font-weight: 800;
}

.score-acc summary::-webkit-details-marker {
  display: none;
}

.score-acc summary em {
  margin-left: auto;
  font-style: normal;
  font-weight: 900;
  color: var(--ocean-deep);
}

.score-acc summary::after {
  content: "+";
  margin-left: 10px;
  color: var(--ocean);
  font-weight: 900;
}

.score-acc[open] summary::after {
  content: "−";
}

.score-items {
  display: grid;
  gap: 12px;
  padding: 4px 0 16px;
}

.score-item-head {
  display: grid;
  grid-template-columns: minmax(120px, 168px) minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.score-item-head strong {
  text-align: right;
  color: var(--ocean-deep);
}

.score-item-head strong small {
  color: var(--muted);
  font-weight: 700;
}

.score-item p {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.65;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.info-table th,
.info-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.info-table th {
  width: 176px;
  color: var(--ocean-deep);
  background: rgba(232, 248, 251, 0.5);
  font-weight: 800;
  white-space: nowrap;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.reason-grid article {
  padding: 13px 15px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
}

.reason-grid strong {
  display: block;
  color: var(--navy-deep);
  font-size: 0.88rem;
  font-weight: 800;
}

.reason-grid p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.fit-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit-list li strong {
  display: block;
  color: var(--navy-deep);
  font-size: 0.88rem;
}

.fit-list li small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.fit-list li small b {
  color: #b8431f;
  font-weight: 800;
}

.caution-lead {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.8;
}

.caution-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.caution-list li {
  padding: 11px 14px;
  border: 1px solid rgba(255, 106, 71, 0.2);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius);
  background: rgba(255, 246, 242, 0.6);
}

.caution-list strong {
  display: block;
  color: var(--navy-deep);
  font-size: 0.85rem;
}

.caution-list small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.kv-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kv-list li {
  display: grid;
  grid-template-columns: minmax(88px, 118px) minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 0.8rem;
  line-height: 1.6;
}

.kv-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.kv-list span {
  color: var(--ocean-deep);
  font-weight: 800;
}

.kv-list em {
  font-style: normal;
  color: var(--ink);
}

.table-acc {
  margin-top: 16px;
}

.table-acc summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid rgba(7, 152, 173, 0.3);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  color: var(--ocean-deep);
  background: var(--mist);
  font-size: 0.84rem;
  font-weight: 700;
}

.table-acc summary::-webkit-details-marker {
  display: none;
}

.table-acc summary::after {
  content: "＋";
  font-weight: 900;
}

.table-acc[open] summary::after {
  content: "−";
}

.table-acc .table-wrap {
  margin-top: 14px;
}

.item-table .cell-strong {
  font-weight: 800;
  color: var(--navy-deep);
  white-space: nowrap;
}

.school-faq {
  max-height: none;
}

/* ------------------------------------------------------------
   項目別ランキングページ（第19R）
   ------------------------------------------------------------ */

.item-tags {
  margin-top: 16px;
}

.lead-paragraphs p,
.rank-prose p,
.rank-excerpt p,
.guide-body p {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.9;
}

.guide-body p {
  font-size: 0.88rem;
}

.lead-paragraphs p:last-child,
.rank-prose p:last-child,
.rank-excerpt p:last-child,
.guide-body p:last-child {
  margin-bottom: 0;
}

.lead-paragraphs p.li,
.rank-prose p.li,
.guide-body p.li {
  position: relative;
  margin: 0 0 4px;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.lead-paragraphs p.li::before,
.rank-prose p.li::before,
.guide-body p.li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ocean);
}

.subitem-chips span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgba(7, 152, 173, 0.2);
  border-radius: 999px;
  color: var(--ocean-deep);
  background: var(--mist);
  font-size: 0.82rem;
  font-weight: 700;
}

.rank-entry-list {
  display: grid;
  gap: 14px;
}

.rank-entry {
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.rank-entry.top-rank.t1 { border-top: 4px solid var(--coral); }
.rank-entry.top-rank.t2 { border-top: 4px solid var(--ocean); }
.rank-entry.top-rank.t3 { border-top: 4px solid var(--sun); }

.rank-entry-head {
  display: grid;
  grid-template-columns: 44px 92px minmax(0, 1fr) 196px;
  align-items: center;
  gap: 14px;
}

.rank-entry-no {
  position: static;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 800;
}

.rank-entry-thumb {
  width: 92px;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
}

.rank-entry.top-rank.t1 .rank-entry-no {
  background: linear-gradient(145deg, #fae395 12%, #e7ab39 88%);
  color: #6d4a0d;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), 0 3px 8px rgba(231, 171, 57, 0.45);
}

.rank-entry.top-rank.t2 .rank-entry-no {
  background: linear-gradient(145deg, #f3f6f9 12%, #b6c3cd 88%);
  color: #475966;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65), 0 3px 8px rgba(150, 168, 181, 0.4);
}

.rank-entry.top-rank.t3 .rank-entry-no {
  background: linear-gradient(145deg, #f0c69e 12%, #c47c43 88%);
  color: #63350f;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5), 0 3px 8px rgba(196, 124, 67, 0.4);
}

.rank-entry-title h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.rank-entry-title h4 a {
  color: var(--navy-deep);
}

.rank-entry-title h4 a:hover {
  color: var(--ocean-deep);
}

.rank-entry-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.rank-entry-score {
  display: grid;
  gap: 6px;
  justify-items: end;
  padding: 10px 14px 13px;
  border: 1px solid rgba(7, 152, 173, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(232, 248, 251, 0.9), rgba(232, 248, 251, 0.35));
}

.rank-entry-score::before {
  content: "SCORE";
  color: var(--ocean);
  font-family: var(--font-en);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.rank-entry-score strong {
  color: var(--ocean-deep);
  font-family: var(--font-en);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
}

.rank-entry-score strong small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.rank-entry-score .cat-track {
  width: 100%;
  height: 8px;
}

.rank-tldr {
  margin: 13px 0 0;
  padding: 10px 14px;
  border-left: 4px solid var(--ocean);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(232, 248, 251, 0.6);
  color: var(--navy-deep);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.7;
}

.rank-excerpt {
  margin-top: 12px;
}

.rank-more {
  margin-top: 10px;
}

.rank-more summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
  color: var(--ocean-deep);
  font-size: 0.84rem;
  font-weight: 800;
}

.rank-more summary::-webkit-details-marker { display: none; }

.rank-more summary::after {
  content: "＋";
  font-weight: 900;
}

.rank-more[open] summary::after { content: "−"; }

.rank-more > div {
  margin-top: 10px;
}

.rank-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.rank-col {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
}

.rank-col.fit-yes-col { border-top: 3px solid var(--ocean); }
.rank-col.fit-no-col { border-top: 3px solid var(--coral); }

.rank-col h5 {
  margin: 0 0 8px;
  color: var(--navy-deep);
  font-size: 0.85rem;
  font-weight: 900;
}

.rank-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.rank-col li {
  position: relative;
  padding-left: 14px;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.6;
}

.rank-col li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.theme-card {
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
}

.theme-card strong {
  display: block;
  color: var(--navy-deep);
  font-size: 0.88rem;
  font-weight: 900;
}

.theme-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.theme-card ol {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
  color: var(--ocean-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.matrix-table th,
.matrix-table td {
  font-size: 0.74rem;
  white-space: nowrap;
}

/* スコアエクスプローラー（第23R） */
.score-explorer {
  margin: 0 0 34px;
  padding: 20px 22px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.sx-controls .mini-label {
  margin: 0 0 12px;
}

.sx-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sx-group-col h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sx-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sx-chip {
  min-height: 32px;
  padding: 4px 12px;
  font-size: 0.8rem;
}

.sx-chip.sxg-lesson.is-active { background: var(--ocean); border-color: var(--ocean); }
.sx-chip.sxg-target.is-active { background: var(--coral); border-color: var(--coral); }
.sx-chip.sxg-life.is-active { background: var(--leaf, #2fb47c); border-color: var(--leaf, #2fb47c); }
.sx-chip.sxg-ops.is-active { background: var(--sun); border-color: var(--sun); color: var(--navy-deep); }

.sx-board {
  margin-top: 18px;
}

.sx-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(232, 248, 251, 0.55);
}

.sx-head h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: var(--navy-deep);
  font-size: 1.15rem;
  font-weight: 900;
}

.sx-group {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.sx-head p {
  margin: 6px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.sx-head .route-chip {
  margin-top: 4px;
  flex: none;
}

.sx-loading {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.sx-axis-note {
  margin: 12px 4px 0;
}

.sx-board .rank-entry-list {
  margin-top: 16px;
}

.sx-rows {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.sx-row {
  display: grid;
  grid-template-columns: 34px minmax(150px, 260px) minmax(0, 1fr) 74px 86px;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 5px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
}

.sx-row.is-top {
  border-color: rgba(231, 171, 57, 0.5);
  background: rgba(255, 250, 238, 0.9);
}

.sx-rank {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ocean-deep);
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 900;
}

.sx-rank.m-gold {
  background: linear-gradient(145deg, #fae395 12%, #e7ab39 88%);
  color: #6d4a0d;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.sx-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--navy-deep);
  font-size: 0.88rem;
  font-weight: 800;
}

.sx-name:hover {
  color: var(--ocean-deep);
}

.sx-score {
  text-align: right;
  color: var(--ocean-deep);
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 900;
}

.sx-score small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.sx-total {
  text-align: right;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
}

/* 学校比較ページのスコアヒーロー（第21R） */
.score-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  padding: 16px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
}

.score-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.score-hero-stats div {
  display: grid;
  gap: 1px;
}

.score-hero-stats strong {
  color: var(--ocean-deep);
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.1;
}

.score-hero-stats span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.score-hero .button {
  min-height: 42px;
}

/* 目的別ボードのランキング表示（第20R） */
.purpose-card .p-head {
  position: relative;
}

.p-rank-flag {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(7, 30, 48, 0.85);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.p-top3 {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.p-top3 li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
}

.p-top3 li.m1 {
  border-color: rgba(255, 106, 71, 0.35);
  background: rgba(255, 246, 242, 0.9);
}

.p-top3 li i {
  position: relative;
  z-index: 0;
  display: inline-flex;
  flex: none;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 900;
}

.p-top3 li i::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 8px;
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 62%, 0 100%);
  z-index: -1;
}

.p-top3 li.m1 i {
  background: linear-gradient(145deg, #fae395 12%, #e7ab39 88%);
  color: #6d4a0d;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), 0 2px 6px rgba(231, 171, 57, 0.45);
}

.p-top3 li.m1 i::before { background: var(--coral); }

.p-top3 li.m2 i {
  background: linear-gradient(145deg, #f3f6f9 12%, #b6c3cd 88%);
  color: #475966;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65), 0 2px 6px rgba(150, 168, 181, 0.4);
}

.p-top3 li.m2 i::before { background: var(--ocean); }

.p-top3 li.m3 i {
  background: linear-gradient(145deg, #f0c69e 12%, #c47c43 88%);
  color: #63350f;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5), 0 2px 6px rgba(196, 124, 67, 0.4);
}

.p-top3 li.m3 i::before { background: var(--sun); }

.p-top3 li.m1 {
  min-height: 46px;
}

.p-top3 li.m1 i {
  width: 30px;
  height: 30px;
  font-size: 0.92rem;
}

.p-top3 li.m1 a {
  font-size: 0.88rem;
}

.p-top3 li.m1 em {
  font-size: 1.02rem;
}

.p-top3 .p-thumb {
  width: 52px;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  flex: none;
}

.p-top3 li a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--navy-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.p-top3 li a:hover {
  color: var(--ocean-deep);
}

.p-top3 li em {
  margin-left: auto;
  flex: none;
  color: var(--ocean-deep);
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 900;
}

.p-top3 li em small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.faq-lead {
  max-width: 900px;
  margin: -6px 0 28px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.85;
}

.faq-groups {
  display: grid;
  gap: 34px;
}

.faq-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--navy-deep);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.faq-group-title::before {
  content: "";
  flex: none;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ocean), var(--coral));
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.faq-list details {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  padding: 0 20px;
  transition: border-color 150ms ease;
}

.faq-list details[open] {
  border-color: rgba(7, 152, 173, 0.4);
}

.faq-list summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  color: var(--navy-deep);
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before {
  content: "Q";
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ocean);
  font-family: var(--font-en);
  font-size: 0.86rem;
  font-weight: 800;
}

.faq-list details[open] summary::before {
  background: var(--coral);
}

.faq-list summary::after {
  content: "+";
  margin-left: auto;
  color: var(--ocean);
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 800;
  transition: transform 180ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list p {
  margin: 0;
  padding: 2px 0 18px 44px;
  color: var(--ink);
}

.faq-list details[open] p {
  animation: faq-open 240ms ease;
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------
   Detail pages (JS-rendered)
   ------------------------------------------------------------ */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

.breadcrumb a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 3px 12px;
  border: 1px solid rgba(7, 152, 173, 0.22);
  border-radius: 999px;
  color: var(--ocean-deep);
  background: var(--white);
  font-weight: 700;
}

.breadcrumb span::before {
  content: "/";
  margin-right: 8px;
  color: rgba(16, 52, 74, 0.3);
}

.detail-hero {
  max-width: 840px;
  margin-bottom: 26px;
}

.detail-hero h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(1.9rem, 4.3vw, 3.2rem);
  font-weight: 900;
  line-height: 1.16;
}

.detail-hero p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.stat-strip div {
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.stat-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.stat-strip strong {
  display: block;
  margin-top: 5px;
  color: var(--navy-deep);
  font-weight: 900;
  line-height: 1.35;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-panel {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-panel.wide {
  grid-column: span 2;
}

.detail-panel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--navy-deep);
  font-size: 1.08rem;
  font-weight: 900;
}

.detail-panel h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--sun));
}

.detail-panel p,
.detail-panel li {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.7;
}

.detail-panel p,
.detail-panel ul {
  margin: 0;
}

.detail-panel ul {
  padding-left: 1.1em;
}

.rank-list {
  display: grid;
  gap: 8px;
}

.rank-list .rank-row {
  display: grid;
  grid-template-columns: 34px 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--mist);
}

.rank-list .rank-row > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ocean);
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 800;
}

.rank-list .rank-row:first-child > span {
  background: linear-gradient(135deg, var(--coral), var(--sunset));
}

.rank-list .rank-thumb {
  width: 96px;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
}

.rank-list .rank-body strong a {
  color: inherit;
}

.rank-list .rank-body strong a:hover {
  color: var(--ocean-deep);
}

.rank-list strong {
  color: var(--navy-deep);
  font-weight: 700;
  line-height: 1.35;
}

.rank-list .rank-body {
  min-width: 0;
}

.rank-list .rank-score {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  color: var(--ocean-deep);
  background: var(--sky);
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  vertical-align: 2px;
}

.rank-list .rank-body small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.detail-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.table-wrap.always {
  display: block;
}

.table-wrap.compact th,
.table-wrap.compact td {
  padding: 10px 12px;
  font-size: 0.84rem;
}

.result-table th {
  white-space: normal;
}

.result-table tbody th {
  color: var(--ocean-deep);
  background: var(--mist);
  font-family: var(--font-head);
  font-size: 0.8rem;
}

.result-table td {
  text-align: center;
}

.result-table thead th {
  font-family: var(--font-head);
  letter-spacing: 0;
}

.rs-rank {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ocean);
  font-family: var(--font-en);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}

.result-school .rs-caution {
  color: #8a6a3f;
}

.inquiry-box {
  margin-top: 16px;
  padding: 0 14px;
  border: 1px dashed rgba(16, 52, 74, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.inquiry-box summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--ocean-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.inquiry-note {
  margin: 0 0 10px;
  font-size: 0.8rem;
}

.inquiry-box textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  font-size: 0.84rem;
  line-height: 1.7;
  resize: vertical;
}

.inquiry-box .button {
  margin: 10px 0 14px;
}

/* ------------------------------------------------------------
   Final CTA
   ------------------------------------------------------------ */

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 108px 0;
  color: var(--white);
  background:
    radial-gradient(52rem 30rem at 88% 118%, rgba(255, 138, 61, 0.42), transparent 58%),
    radial-gradient(40rem 22rem at 0% 0%, rgba(35, 195, 206, 0.3), transparent 55%),
    linear-gradient(140deg, #075d6b, #0a2c44 72%);
}

.final-sun {
  position: absolute;
  right: 10%;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 77, 0.85), rgba(255, 138, 61, 0.25) 70%);
  filter: blur(2px);
}

.final-flight {
  position: absolute;
  top: 54px;
  left: -4%;
  width: 70%;
  height: 130px;
  border-top: 2.5px dashed rgba(255, 255, 255, 0.35);
  border-radius: 50% / 100% 100% 0 0;
  transform: rotate(-4deg);
}

.final-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.final-cta h2 {
  color: var(--white);
}

.final-cta p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.8);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.site-footer {
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy-deep);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 26px;
}

.site-footer strong {
  color: var(--white);
  font-weight: 900;
}

.site-footer p {
  max-width: 560px;
  margin: 5px 0 0;
  font-size: 0.82rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-content: flex-start;
}

.site-footer a {
  font-weight: 700;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--sun);
}

/* ------------------------------------------------------------
   Sub-page layout
   ------------------------------------------------------------ */

body.is-subpage main {
  min-height: 70svh;
}

body.is-subpage .route-section.is-active-route {
  padding-top: 140px;
}

/* ------------------------------------------------------------
   Responsive: <= 980px
   ------------------------------------------------------------ */

@media (max-width: 1240px) and (min-width: 981px) {
  .hero-compass-frame {
    width: min(26vw, 340px);
  }

  .compass-ring {
    inset: -20px;
  }

  .hero-card-stack {
    width: min(220px, 20vw);
  }

  .hero-mini-card {
    padding: 10px 12px;
  }

  .hero-mini-card strong {
    font-size: 0.84rem;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
  }

  .site-header .header-cta {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.86rem;
  }

  .site-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px;
    border-radius: 22px;
    background: rgba(232, 248, 251, 0.85);
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.75);
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .hero {
    padding-top: 150px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .boarding-pass {
    grid-template-columns: minmax(0, 1fr) 168px;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 0;
  }

  .hero-facts > div {
    padding: 2px 12px 0;
  }

  .hero-facts > div:nth-child(4) {
    border-left: 0;
  }

  .hero-facts dt {
    font-size: 1.6rem;
  }

  .hero-facts dd {
    font-size: 0.74rem;
  }

  .section-word {
    font-size: clamp(3.4rem, 12vw, 7rem);
  }

  .vertical-label {
    display: none;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-en {
    display: none;
  }

  .board-head {
    flex-direction: column;
  }

  .summary-grid,
  .section-head.horizontal,
  .story-layout,
  .diagnosis-layout,
  .decision-layout,
  .final-inner {
    grid-template-columns: 1fr;
  }

  .summary-grid > *,
  .section-head.horizontal > *,
  .story-layout > *,
  .diagnosis-layout > *,
  .decision-layout > *,
  .final-inner > * {
    min-width: 0;
  }

  .filter-row {
    justify-content: flex-start;
  }

  .decision-cards article:nth-child(even) {
    transform: none;
  }

  .decision-cards article:nth-child(even):hover {
    transform: translateY(-3px);
  }

  .school-grid,
  .purpose-grid,
  .promise-grid,
  .type-card-grid,
  .purpose-spotlight,
  .article-preview-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sx-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .journal-grid {
    grid-template-columns: 1fr;
  }

  .journal-grid .article-card.feature {
    min-height: 280px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .link-columns {
    grid-template-columns: 1fr;
  }

  .stat-strip,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-panel.wide {
    grid-column: span 2;
  }

  .detail-side {
    grid-column: span 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkpoint-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.is-subpage .route-section.is-active-route {
    padding-top: 158px;
  }
}

/* ------------------------------------------------------------
   Responsive: <= 720px
   ------------------------------------------------------------ */

@media (max-width: 720px) {
  body {
    padding-bottom: 76px;
  }

  .mobile-action-bar {
    position: fixed;
    z-index: 70;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 44px rgba(7, 30, 48, 0.22);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(96px);
    transition: opacity 200ms ease, transform 200ms ease;
  }

  body.has-scrolled .mobile-action-bar {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-action-bar a {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--white);
    background: var(--navy);
    font-size: 0.94rem;
    font-weight: 700;
  }

  .mobile-action-bar a:nth-child(2) {
    background: linear-gradient(135deg, var(--coral), var(--sunset));
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }

  .brand {
    justify-content: center;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-mark svg {
    width: 25px;
    height: 25px;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    grid-column: 1;
  }

  .site-nav a {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 0.79rem;
  }

  .section {
    padding: 68px 0;
  }

  .section-inner {
    width: calc(100% - 32px);
  }

  .hero {
    padding-top: 124px;
  }

  .hero-inner {
    width: calc(100% - 32px);
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9.6vw, 2.7rem);
    line-height: 1.1;
  }

  .hero-copy {
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.66;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .button.lg {
    min-height: 52px;
  }

  .hero-tags {
    flex-wrap: nowrap;
    max-width: 100%;
    margin-top: 13px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .hero-tags::-webkit-scrollbar {
    display: none;
  }

  .hero-tags span {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 3px 10px;
    font-size: 0.76rem;
  }

  .hero-finder {
    margin-top: 12px;
    padding: 12px;
  }

  .quick-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .quick-chips::-webkit-scrollbar {
    display: none;
  }

  .quick-chips .chip {
    flex: 0 0 auto;
  }

  .quick-result {
    font-size: 0.8rem;
  }

  .hero-ticket-wrap {
    margin-top: 20px;
  }

  .boarding-pass {
    grid-template-columns: 1fr;
  }

  .bp-main {
    padding: 18px 16px 14px;
  }

  .bp-city em {
    font-size: 1.5rem;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 0;
  }

  .hero-facts > div {
    padding: 2px 12px 0;
  }

  .hero-facts > div:nth-child(4) {
    border-left: 0;
  }

  .hero-facts dt {
    font-size: 1.4rem;
  }

  .hero-facts dd {
    font-size: 0.7rem;
  }

  .bp-stub {
    grid-auto-flow: column;
    grid-template-columns: auto auto 1fr;
    justify-items: start;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-left: 0;
    border-top: 2px dashed rgba(16, 52, 74, 0.24);
  }

  .bp-stub::before,
  .bp-stub::after {
    top: -11px;
    bottom: auto;
  }

  .bp-stub::before { left: -12px; }

  .bp-stub::after {
    left: auto;
    right: -12px;
  }

  .bp-stamp {
    width: 66px;
    height: 66px;
    font-size: 0.52rem;
  }

  .bp-stamp em {
    font-size: 0.7rem;
  }

  .bp-gate {
    font-size: 0.68rem;
  }

  .bp-barcode {
    height: 24px;
    align-self: center;
  }

  .finder-menu {
    padding: 72px 0 20px;
  }

  .board-shell {
    padding: 20px 16px;
  }

  .menu-card {
    min-height: 72px;
    gap: 12px;
    padding: 12px 14px;
  }

  .menu-card .gate {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .menu-card strong {
    font-size: 0.95rem;
  }

  .menu-card small {
    font-size: 0.75rem;
  }

  .decision-band,
  .summary-band {
    padding: 64px 0;
  }

  .photo-story {
    padding: 76px 0;
  }

  .story-gallery {
    display: flex;
    gap: 14px;
    margin: 0 -16px;
    padding: 20px 16px 26px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .story-gallery::-webkit-scrollbar {
    display: none;
  }

  .polaroid {
    flex: 0 0 66%;
  }

  .promise-grid,
  .school-grid,
  .purpose-grid,
  .option-grid,
  .result-schools,
  .type-card-grid,
  .purpose-spotlight,
  .decision-cards,
  .article-preview-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .promise-grid article {
    min-height: 0;
  }

  .study-journal {
    padding-top: 48px;
  }

  .journal-grid .article-card.feature {
    min-height: 240px;
  }

  .journal-row {
    gap: 12px;
    padding: 13px 14px;
  }

  .jr-num {
    font-size: 1.4rem;
  }

  .journal-row strong {
    font-size: 0.95rem;
  }

  .option-grid button {
    min-height: 58px;
  }

  .diagnosis-tool {
    padding: 0 16px 14px;
  }

  .ticket-head {
    margin: 0 -16px 16px;
    padding: 12px 16px;
  }

  .diagnosis-tool::before,
  .diagnosis-tool::after {
    top: 46px;
  }

  .diagnosis-tool h3 {
    min-height: 0;
    font-size: 1.2rem;
  }

  .mini-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .mini-cta .button {
    width: 100%;
  }

  .mini-cta-actions {
    width: 100%;
  }

  .life-grid,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .reason-grid,
  .caution-list,
  .rank-cols,
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .sx-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pm-body {
    font-size: 0.62rem;
  }

  .sx-row {
    grid-template-columns: 28px minmax(0, 1fr) 58px;
  }

  .sx-row .sx-track,
  .sx-row .sx-total {
    display: none;
  }

  .rank-entry-head {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .rank-entry-thumb {
    display: none;
  }

  .rank-entry-score {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .score-item-head {
    grid-template-columns: minmax(0, 1fr) 56px;
  }

  .score-item-head .cat-track {
    display: none;
  }

  .info-table th {
    width: 108px;
    white-space: normal;
  }

  .stat-strip,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel.wide {
    grid-column: span 1;
  }

  .detail-side {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .checkpoint-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-wrap.always {
    display: block;
    overflow-x: auto;
  }

  .table-wrap {
    display: none;
  }

  .comparison-card-list {
    display: grid;
    gap: 10px;
  }

  .comparison-card-list article {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 6px 12px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
  }

  .comparison-card-list span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    border: 1.5px solid rgba(7, 152, 173, 0.35);
    color: var(--ocean-deep);
    background: var(--white);
    font-family: var(--font-en);
    font-size: 0.84rem;
    font-weight: 800;
  }

  .comparison-card-list article:nth-child(-n+3) span {
    border-color: transparent;
    color: var(--white);
    background: linear-gradient(135deg, var(--coral), var(--sunset));
  }

  .comparison-card-list strong {
    color: var(--navy-deep);
    font-weight: 900;
    line-height: 1.35;
  }

  .comparison-card-list em {
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--ocean-deep);
    background: var(--sky);
    font-family: var(--font-en);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
  }

  .comparison-card-list p {
    grid-column: 2 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .faq-list summary {
    min-height: 58px;
    font-size: 0.94rem;
  }

  .faq-list p {
    padding-left: 0;
  }

  .final-cta {
    padding: 76px 0;
  }

  .final-inner .hero-actions {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }

  body.is-subpage .route-section.is-active-route {
    padding-top: 140px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.95rem;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-facts dt {
    font-size: 1.3rem;
  }
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ------------------------------------------------------------
   School photos & rich comparison cards (2026-07 redesign)
   ------------------------------------------------------------ */

.school-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sky);
}

.school-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-photo.is-placeholder {
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(130deg, var(--ocean-deep), var(--ocean));
}

.school-photo.is-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(18rem 9rem at 85% 12%, rgba(255, 255, 255, 0.22), transparent 60%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0 10px, transparent 10px 20px);
}

.school-photo.is-placeholder span {
  position: relative;
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.school-photo.is-placeholder small {
  position: relative;
  font-family: var(--font-en);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  opacity: 0.75;
}

.school-photo.is-placeholder.t-parent_child { background: linear-gradient(130deg, #e2542f, var(--coral)); }
.school-photo.is-placeholder.t-resort { background: linear-gradient(130deg, #0a8fa0, var(--turquoise)); }
.school-photo.is-placeholder.t-sparta { background: linear-gradient(130deg, #b34a12, var(--sunset)); }
.school-photo.is-placeholder.t-exam { background: linear-gradient(130deg, #0c4d70, #1279a8); }
.school-photo.is-placeholder.t-business_short { background: linear-gradient(130deg, var(--navy-deep), #1c4666); }
.school-photo.is-placeholder.t-facility { background: linear-gradient(130deg, #158a5c, var(--leaf)); }
.school-photo.is-placeholder.t-cost_continuation,
.school-photo.is-placeholder.t-cost_performance { background: linear-gradient(130deg, #c8871a, var(--sun)); color: var(--navy-deep); }

/* --- Ranking cards ( /comparison/ ) --- */

.ranking-cards {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr) 172px;
  gap: 20px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.rank-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.rank-card.is-top1 {
  border: 1px solid rgba(255, 138, 61, 0.4);
  background: linear-gradient(120deg, #fffdf9, #fff7ec 70%, #fff3e2);
}

.rank-photo-link {
  position: relative;
  display: block;
  border-radius: var(--radius);
}

.rank-photo {
  aspect-ratio: 3 / 2;
}

.rank-no {
  position: absolute;
  top: -8px;
  left: -8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px 12px 12px 4px;
  color: var(--white);
  background: var(--navy);
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(7, 30, 48, 0.28);
}

.rank-card.is-top1 .rank-no { background: linear-gradient(135deg, var(--coral), var(--sunset)); }
.rank-card.is-top2 .rank-no { background: linear-gradient(135deg, var(--ocean-deep), var(--ocean)); }
.rank-card.is-top3 .rank-no { background: linear-gradient(135deg, #0a8fa0, var(--turquoise)); }

.rank-main {
  min-width: 0;
  padding: 4px 0;
}

.rank-area {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rank-name {
  margin: 0 0 6px;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.3;
}

.rank-name a {
  color: var(--navy-deep);
}

.rank-name a:hover {
  color: var(--ocean-deep);
}

.rank-highlight {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.cat-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  max-width: 460px;
}

.cat-bar {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 24px;
  gap: 8px;
  align-items: center;
}

.cat-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.cat-track {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(16, 52, 74, 0.09);
  overflow: hidden;
}

.cat-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.cat-fill.g1 { background: var(--ocean); }
.cat-fill.g2 { background: var(--coral); }
.cat-fill.g3 { background: var(--leaf); }
.cat-fill.g4 { background: var(--sun); }

.cat-bar strong {
  color: var(--navy-deep);
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
}

.rank-side {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 10px 12px 20px;
  border-left: 1px dashed rgba(16, 52, 74, 0.18);
}

.rank-total {
  margin: 0;
  color: var(--navy-deep);
  font-family: var(--font-en);
  line-height: 1;
}

.rank-total strong {
  font-size: 2rem;
  font-weight: 900;
}

.rank-total small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.rank-meter {
  display: block;
  width: 100%;
  max-width: 128px;
  height: 7px;
  border-radius: 999px;
  background: rgba(16, 52, 74, 0.09);
  overflow: hidden;
}

.rank-meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ocean), var(--turquoise) 55%, var(--coral));
}

.rank-pct {
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.rank-side .route-chip {
  margin-top: 4px;
}

.photo-credit {
  margin-top: 8px !important;
  color: var(--muted);
  font-size: 0.76rem !important;
}

/* --- Score page podium --- */

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}

.podium-card {
  position: relative;
  display: block;
  padding: 10px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.podium-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.podium-card.p1 {
  border-color: rgba(255, 138, 61, 0.4);
  background: linear-gradient(150deg, #fffdf9, #fff5e6);
}

.podium-photo {
  aspect-ratio: 16 / 9;
}

.podium-rank {
  position: absolute;
  top: 2px;
  left: 2px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px 10px 10px 4px;
  color: var(--white);
  background: var(--navy);
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(7, 30, 48, 0.28);
}

.podium-card.p1 .podium-rank { background: linear-gradient(135deg, var(--coral), var(--sunset)); }
.podium-card.p2 .podium-rank { background: linear-gradient(135deg, var(--ocean-deep), var(--ocean)); }
.podium-card.p3 .podium-rank { background: linear-gradient(135deg, #0a8fa0, var(--turquoise)); }

.podium-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.podium-body strong {
  color: var(--navy-deep);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.podium-body em {
  color: var(--ocean-deep);
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.podium-body em small {
  color: var(--muted);
  font-size: 0.68rem;
}

.score-school {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.score-thumb {
  flex: 0 0 auto;
  width: 52px;
  aspect-ratio: 16 / 10;
  border-radius: 5px;
}

.score-thumb.is-placeholder span { font-size: 0.62rem; }
.score-thumb.is-placeholder small { display: none; }
.rank-thumb.is-placeholder span { font-size: 0.78rem; }
.rank-thumb.is-placeholder small { display: none; }

/* --- School cards ( /schools/ ) --- */

.school-card .card-photo {
  margin: 12px 0 2px;
  aspect-ratio: 16 / 8.5;
}

/* --- School detail hero --- */

.detail-hero.has-photo {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 26px;
  align-items: center;
}

.detail-photo {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* --- Diagnosis result school cards --- */

.result-school .rs-photo {
  margin: -14px -14px 10px;
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 16 / 7.2;
}

.rs-photo.is-placeholder span { font-size: 1rem; }

/* --- Responsive --- */

@media (max-width: 1240px) {
  .rank-card {
    grid-template-columns: 240px minmax(0, 1fr) 158px;
    gap: 16px;
  }
}

@media (max-width: 980px) {
  .rank-card {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 14px;
  }

  .rank-side {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: start;
    gap: 12px;
    padding: 10px 2px 0;
    border-left: 0;
    border-top: 1px dashed rgba(16, 52, 74, 0.18);
  }

  .rank-meter {
    max-width: none;
    width: 100%;
  }

  .rank-pct { display: none; }

  .rank-side .route-chip { margin-top: 0; }
}

@media (max-width: 720px) {
  .rank-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  .rank-photo-link {
    margin: 0;
  }

  .rank-photo {
    aspect-ratio: 16 / 8.5;
  }

  .rank-no {
    top: 8px;
    left: 8px;
    border-radius: 10px;
  }

  .cat-bars {
    grid-template-columns: 1fr;
    gap: 5px;
    max-width: none;
  }

  .podium {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-hero.has-photo {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .rank-list .rank-row {
    grid-template-columns: 28px 72px minmax(0, 1fr);
    gap: 9px;
  }

  .rank-list .rank-row > span {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
  }

  .rank-list .rank-thumb {
    width: 72px;
  }
}

.rank-side .route-chip { white-space: nowrap; }

/* --- Purpose board (icons + filter/sort) --- */

.purpose-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin: 0 0 18px;
}

.purpose-controls .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sort-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sort-label {
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.sort-row .chip {
  min-height: 32px;
  padding: 4px 12px;
  font-size: 0.8rem;
}

.purpose-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.purpose-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.purpose-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.p-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.p-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: var(--white);
  box-shadow: 0 8px 18px rgba(7, 30, 48, 0.18);
}

.p-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cat-target .p-icon { background: linear-gradient(135deg, #e2542f, var(--coral)); }
.cat-term .p-icon { background: linear-gradient(135deg, #c8871a, var(--sun)); color: var(--navy-deep); }
.cat-style .p-icon { background: linear-gradient(135deg, var(--ocean-deep), var(--ocean)); }
.cat-env .p-icon { background: linear-gradient(135deg, #0a8fa0, var(--turquoise)); }

.p-cat {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.cat-target .p-cat { color: #b8431f; background: rgba(255, 106, 71, 0.12); }
.cat-term .p-cat { color: #9a6a0e; background: rgba(255, 201, 77, 0.2); }
.cat-style .p-cat { color: var(--ocean-deep); background: rgba(7, 152, 173, 0.12); }
.cat-env .p-cat { color: #0a7c8a; background: rgba(35, 195, 206, 0.14); }

.p-title {
  margin: 0 0 4px;
  font-size: 1.12rem;
  font-weight: 900;
}

.p-title a {
  color: var(--navy-deep);
}

.p-title a:hover {
  color: var(--ocean-deep);
}

.p-tag {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.6;
}

.p-top {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--mist);
  transition: background 140ms ease;
}

.p-top:hover {
  background: var(--sky);
}

.p-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
}

.p-thumb.is-placeholder span { font-size: 0.72rem; }
.p-thumb.is-placeholder small { display: none; }

.p-top-body {
  display: block;
  min-width: 0;
}

.p-top-body small {
  display: block;
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.p-top-body strong {
  display: block;
  color: var(--navy-deep);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.p-top-body em {
  color: var(--ocean-deep);
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.p-top-body em i {
  color: var(--muted);
  font-size: 0.66rem;
  font-style: normal;
}

.p-link {
  margin-top: auto;
  color: var(--ocean-deep);
  font-size: 0.85rem;
  font-weight: 800;
}

.p-link::after {
  content: " →";
}

.p-link:hover {
  text-decoration: underline;
}

/* --- Purpose detail hero icon --- */

.detail-hero.with-icon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.detail-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-top: 4px;
  border-radius: 17px;
  color: var(--white);
  box-shadow: 0 10px 22px rgba(7, 30, 48, 0.2);
}

.detail-icon svg {
  width: 33px;
  height: 33px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-icon.cat-target { background: linear-gradient(135deg, #e2542f, var(--coral)); }
.detail-icon.cat-term { background: linear-gradient(135deg, #c8871a, var(--sun)); color: var(--navy-deep); }
.detail-icon.cat-style { background: linear-gradient(135deg, var(--ocean-deep), var(--ocean)); }
.detail-icon.cat-env { background: linear-gradient(135deg, #0a8fa0, var(--turquoise)); }

@media (max-width: 980px) {
  .purpose-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .purpose-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .purpose-controls {
    flex-direction: column;
    align-items: flex-start;
  }
}

.school-photo.no-img {
  background:
    radial-gradient(12rem 6rem at 80% 15%, rgba(35, 195, 206, 0.2), transparent 60%),
    linear-gradient(140deg, var(--sky), var(--sky-deep));
}

/* ナビ2段折り返し時（〜500px）の固定ヘッダー高さ補正（第15R） */
@media (max-width: 500px) {
  .hero {
    padding-top: 186px;
  }

  body.is-subpage .route-section.is-active-route {
    padding-top: 178px;
  }
}


/* 写真ライトボックス（第40R） */
.photo-strip figure {
  cursor: zoom-in;
}

body.lb-lock {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 74px;
  background: rgba(5, 22, 36, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lb-stage {
  margin: 0;
  max-width: min(1080px, 100%);
  text-align: center;
}

.lb-stage img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 14px;
  background: #0b2233;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.lb-stage figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  color: #eaf6fb;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lb-counter {
  flex: 0 0 auto;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.lb-close,
.lb-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.lb-close:hover,
.lb-nav:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.05);
}

.lb-close {
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0 0 3px;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0 0 4px;
}

.lb-nav:hover {
  transform: translateY(-50%) scale(1.06);
}

.lb-prev {
  left: 16px;
}

.lb-next {
  right: 16px;
}

@media (max-width: 640px) {
  .lightbox {
    padding: 20px 12px 26px;
  }

  .lb-stage img {
    max-height: 62vh;
  }

  .lb-nav {
    top: auto;
    bottom: 18px;
    transform: none;
    width: 44px;
    height: 44px;
  }

  .lb-nav:hover {
    transform: scale(1.05);
  }

  .lb-prev {
    left: calc(50% - 56px);
  }

  .lb-next {
    right: calc(50% - 56px);
  }

  .lb-stage figcaption {
    flex-direction: column;
    gap: 6px;
  }
}

/* フッター著作権表記（第41R） */
.footer-copyright {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ===== 第42R: 24項目ロジック・スコア表増強・料金比較 ===== */
.sx-points {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
}

.sx-points strong {
  flex: 0 0 auto;
  margin-right: 2px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sx-points span {
  padding: 3px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
}

.logic-note {
  margin: 14px 0 4px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.logic-note summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.logic-note summary::before {
  content: "▸";
  margin-right: 8px;
  color: var(--accent, #e8734a);
}

.logic-note[open] summary::before {
  content: "▾";
}

.logic-note-body {
  padding: 0 18px 16px;
}

.logic-note-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.meaning-table td.cell-strong {
  white-space: nowrap;
}

.total-score-table .score-pct {
  font-weight: 700;
  white-space: nowrap;
}

.total-score-table .score-comment {
  min-width: 220px;
  font-size: 0.82rem;
  color: var(--ink);
}

.score-group-acc {
  margin: 12px 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.score-group-acc summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.score-group-acc summary .acc-hint {
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}

.score-group-acc[open] summary .acc-hint {
  visibility: hidden;
}

.score-group-acc .group-desc {
  margin: 0 18px 10px;
  color: var(--ink);
  font-size: 0.9rem;
}

.score-group-acc .table-wrap {
  margin: 0 18px;
}

.group-score-table td.cell-max {
  background: rgba(46, 154, 120, 0.12);
  font-weight: 700;
}

.group-score-table td.cell-zero {
  color: var(--muted);
}

.group-score-table td.cell-sub strong {
  font-size: 1rem;
}

.group-view {
  padding: 12px 18px 16px;
}

.group-view h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--ink);
}

.group-view p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink);
}

.school-sum-list {
  display: grid;
  gap: 10px;
}

.school-sum-acc {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.school-sum-acc summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}

.school-sum-acc summary .sum-rank {
  flex: 0 0 auto;
  min-width: 44px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(11, 59, 90, 0.08);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.school-sum-acc summary em {
  margin-left: auto;
  font-style: normal;
  font-weight: 800;
  color: var(--ink);
}

.school-sum-acc .sum-body {
  padding: 0 16px 14px;
}

.school-sum-acc .sum-body p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink);
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.usage-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.usage-card .usage-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}

.usage-card p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink);
}

.price-compare {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-soft);
}

.price-compare h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 0.98rem;
  color: var(--ink);
}

.price-compare h4 small {
  font-weight: 600;
  font-size: 0.74rem;
  color: var(--muted);
}

.pc-table .pc-name small,
.price-list-table .price-school small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.pc-table tr.pc-self {
  background: rgba(232, 115, 74, 0.07);
}

.pc-table .pc-this {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
}

.price-compare .route-chip {
  margin-top: 10px;
}

.price-list-table .price-school a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.price-notes {
  margin: 0;
  padding-left: 18px;
}

.price-notes li {
  margin-bottom: 6px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink);
}

/* R43: top page expansion (conclusion / school list / score digest / quick faq) */
.top-conclusion .conclusion-grid { margin-top: 26px; }
.top-conclusion .fit-note { margin-top: 18px; }
.top-schools .table-wrap, .top-score details.logic-note { margin-top: 26px; }
.top-school-table td .route-chip { white-space: nowrap; }
.top-school-table td, .top-score-table td { vertical-align: middle; }
.top-faq .faq-list { margin-top: 26px; }
.top-summary-note { margin-top: 28px; }
.top-summary-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }

/* R44: top page visual refresh (goal cards / school carousel / score podium+bars / decision chips) */
.goal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.goal-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.goal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.goal-photo {
  position: relative;
  display: block;
  aspect-ratio: 5 / 2;
  background: linear-gradient(135deg, #e7f4f6, #f3fbf7);
}
.goal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.goal-photo .gc-ico {
  position: absolute;
  left: 10px;
  bottom: -13px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  box-shadow: 0 4px 10px rgba(7, 40, 60, 0.18);
  border: 2px solid var(--white);
}
.goal-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px 14px;
}
.goal-body strong { font-size: 0.98rem; font-weight: 900; color: var(--navy-deep); }
.goal-body em { font-style: normal; font-size: 0.84rem; font-weight: 800; color: #0b7285; }
.goal-body small { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }

.ts-head { margin-top: 26px; }
.photo-nav-group { display: flex; gap: 8px; }
.ts-strip { margin-top: 12px; }
.ts-card {
  flex: 0 0 236px;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.ts-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ts-photo { display: block; aspect-ratio: 4 / 3; background: #eef5f7; }
.ts-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ts-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(7, 30, 48, 0.82);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.86rem;
  box-shadow: 0 3px 8px rgba(7, 30, 48, 0.25);
}
.ts-rank.t1 { background: linear-gradient(145deg, #f6c445, #d99b1f); color: #6d4a0d; }
.ts-rank.t2 { background: linear-gradient(145deg, #dfe7ee, #aebfcc); color: #475966; }
.ts-rank.t3 { background: linear-gradient(145deg, #e5a06b, #b96e35); color: #63350f; }
.ts-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 13px 14px; }
.ts-body strong { font-size: 0.92rem; font-weight: 900; color: var(--navy-deep); line-height: 1.35; }
.ts-body em { font-style: normal; display: flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 700; color: #b8431f; }
.ts-pin { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); flex: none; }
.ts-body small { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

.school-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.school-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy-deep);
}
.school-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; display: block; }

.top-score-podium { margin-top: 26px; }
.score-bar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.sb-row {
  display: grid;
  grid-template-columns: 30px 34px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.sb-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sb-rank { font-style: normal; font-family: var(--font-en); font-weight: 800; font-size: 0.95rem; color: #46687e; text-align: center; }
.sb-photo img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; display: block; }
.sb-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sb-name { font-size: 0.88rem; font-weight: 800; color: var(--navy-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-bar { height: 7px; border-radius: 999px; background: #e3eef2; overflow: hidden; }
.sb-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ocean), var(--turquoise)); }
.sb-score { font-family: var(--font-en); font-weight: 800; font-size: 1.02rem; color: var(--navy-deep); text-align: right; }
.sb-score small { font-size: 0.68rem; color: #46687e; font-weight: 700; }

@media (max-width: 980px) {
  .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ts-card { flex-basis: 196px; }
  .sb-row { grid-template-columns: 24px 30px minmax(0, 1fr) 64px; padding: 8px 10px; }
  .sb-photo img { width: 30px; height: 30px; }
}
@media (max-width: 520px) {
  .goal-grid { grid-template-columns: 1fr; }
}

/* Article taxonomy: 24 comparison items --------------------- */

@media (max-width: 980px) {
  .article-category-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-category-group:nth-child(odd) {
    border-left: 0;
  }

  .article-category-group:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
  }
}

@media (max-width: 720px) {
  .article-category-hub {
    margin-top: 22px;
  }

  .article-category-overview {
    gap: 14px;
    padding: 18px 0;
  }

  .article-category-overview p {
    font-size: 0.82rem;
  }

  .article-all-link {
    min-width: 132px;
  }

  .article-category-groups {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .article-category-groups::-webkit-scrollbar {
    display: none;
  }

  .article-category-group {
    flex: 0 0 min(82vw, 318px);
    border-top: 0 !important;
    border-left: 1px solid var(--line-soft) !important;
    scroll-snap-align: start;
  }

  .article-category-group:first-child {
    border-left: 0 !important;
  }

  .article-list-header {
    align-items: center;
  }
}

@media (max-width: 520px) {
  .article-category-overview {
    grid-template-columns: 1fr;
  }

  .article-all-link {
    width: 100%;
  }

  .article-empty-state {
    grid-template-columns: 1fr;
  }
}
