:root {
  --navy: #08265c;
  --navy-soft: #12336d;
  --mint: #78cec4;
  --mint-soft: #eaf8f5;
  --blue-soft: #edf8ff;
  --beige-soft: #fff8e7;
  --yellow-soft: #ffe6a8;
  --orange: #ed970f;
  --green: #45994d;
  --sky: #277bc6;
  --purple: #8054c9;
  --card: #ffffff;
  --shadow: 0 14px 32px rgba(20, 58, 98, 0.10);
  --shadow-soft: 0 8px 20px rgba(20, 58, 98, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --page-max: 430px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #ffffff;
}

body {
  margin: 0;
  min-height: 100%;
  font-family:
    "Hiragino Maru Gothic ProN",
    "Yu Gothic",
    "Noto Sans JP",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--navy);
  background: #ffffff;
}

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

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

button {
  font: inherit;
}

/* 430px基準。iPhone 16 Pro Maxで中央に綺麗に出る */
.page-shell {
  position: relative;
  width: min(100%, var(--page-max));
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(120, 206, 196, 0.055), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 62%, #fffdf8 100%);
}

/* Header */
.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 18px 28px 0;
}

.logo {
  width: 38px;
  height: 38px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hamburger {
  width: 42px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  gap: 6px;
  align-content: center;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: var(--navy);
}

/* Hero */
.hero {
  position: relative;
  min-height: 620px;
  padding: 4px 20px 0;
  background:
    /* Warm peach sunset glow on the right (behind mom) */
    radial-gradient(ellipse 340px 280px at 75% 55%, rgba(255, 226, 168, 0.55), transparent 65%),
    /* Soft mint behind hero center */
    radial-gradient(ellipse 280px 220px at 18% 60%, rgba(180, 230, 215, 0.40), transparent 70%),
    /* Sky blue accent top-right */
    radial-gradient(ellipse 240px 200px at 78% 22%, rgba(219, 244, 250, 0.55), transparent 65%),
    /* Bottom-left mint pool */
    radial-gradient(ellipse 200px 160px at 10% 88%, rgba(206, 238, 226, 0.45), transparent 70%);
}

/* Soft watercolor backdrop images */
.hero-bg {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.hero-bg-cloud-left {
  width: 200px;
  left: -50px;
  top: 230px;
  opacity: 0.65;
}

.hero-bg-cloud-right {
  width: 200px;
  right: -50px;
  top: 250px;
  opacity: 0.65;
}

.hero-bg-mountain {
  width: calc(100% + 40px);
  left: -20px;
  bottom: -10px;
  opacity: 0.55;
}

.hero-copy {
  position: relative;
  z-index: 5;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.18;
  font-size: clamp(38px, 9.2vw, 50px);
}

/* 完成画像と同じく、タイトルは必ず2行に固定 */
.hero-copy h1 .title-line {
  display: block;
  white-space: nowrap;
}

.hero-copy h1 .title-line-1 {
  font-size: 0.92em;
}

.hero-copy h1 .title-line-2 {
  font-size: 1em;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 18px;
  width: 150px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1.5px;
  border-top: 2px dashed rgba(120, 206, 196, 0.75);
}

.divider span {
  width: 10px;
  height: 10px;
  margin: 0 10px;
  border-radius: 50%;
  background: var(--mint);
}

.hero-copy p {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.85;
  letter-spacing: 0.08em;
}

.hero-visual {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 0;
  width: 255px;
  transform: translateX(-50%);
}

.hero-mom {
  width: 100%;
  filter: drop-shadow(0 18px 25px rgba(134, 112, 84, 0.08));
}

.decor {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.decor-abc-a {
  width: 38px;
  left: 28px;
  top: 280px;
  opacity: 0.55;
}

.decor-abc-b {
  width: 28px;
  left: 60px;
  top: 268px;
  opacity: 0.62;
}

.decor-abc-c {
  width: 28px;
  left: 84px;
  top: 304px;
  opacity: 0.55;
}

.decor-globe {
  width: 78px;
  right: 58px;
  top: 330px;
  opacity: 0.78;
}

.decor-kids-left {
  width: 124px;
  left: 26px;
  top: 410px;
  opacity: 0.85;
}

.hero-clouds::before,
.hero-clouds::after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0;
  width: 210px;
  height: 145px;
  background: radial-gradient(ellipse at 30% 60%, rgba(206, 238, 226, 0.9), transparent 62%),
              radial-gradient(ellipse at 70% 70%, rgba(219, 244, 250, 0.85), transparent 66%);
  filter: blur(0.2px);
  opacity: 0.8;
}

.hero-clouds::before {
  left: -70px;
}

.hero-clouds::after {
  right: -70px;
}


/* Age Section (spec-compliant: illust + content wrappers) */
.age-section {
  position: relative;
  z-index: 10;
  margin-top: -8px;
  padding: 28px 22px 32px;
  background: #fff;
  border-radius: 42px 42px 0 0;
  box-shadow: 0 -10px 30px rgba(13, 43, 99, 0.04);
}

.age-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #092b6f;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.title-leaf {
  width: 24px;
  height: auto;
  flex-shrink: 0;
  display: inline-block;
}

.title-leaf-right {
  transform: scaleX(-1);
}

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

.age-card {
  position: relative;
  min-height: 128px;
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  border: 5px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 12px 28px rgba(14, 45, 90, 0.08),
    inset 0 0 0 1px rgba(14, 45, 90, 0.03);
}

.age-card-preschool {
  background: linear-gradient(135deg, #fff9ec 0%, #fff3d6 100%);
}

.age-card-elementary {
  background: linear-gradient(135deg, #f5fbf3 0%, #edf8ec 100%);
}

.age-card-middle {
  background: linear-gradient(135deg, #f3fbff 0%, #e9f6ff 100%);
}

.age-card-high {
  background: linear-gradient(135deg, #fbf7ff 0%, #f3ecff 100%);
}

.age-card-illust {
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 55%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  z-index: 1;
  pointer-events: none;
}

.age-card-illust img {
  display: block;
  width: 100%;
  max-height: 118px;
  object-fit: contain;
  object-position: left bottom;
}

.age-card-content {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px 0 4px;
  z-index: 2;
  white-space: nowrap;
}

.age-card-label {
  font-size: clamp(20px, 4.7vw, 26px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.age-card-arrow {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
  line-height: 1;
}

/* age-card-high (16-18) has wider source image */
.age-card-high .age-card-illust img {
  max-height: 110px;
}

.age-orange { color: #f39a16; }
.age-green  { color: #38924a; }
.age-blue   { color: #1f8ee7; }
.age-purple { color: #8c5bdc; }

/* Topic section title - keep using same style as before */
.topic-section h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  font-weight: 800;
  white-space: nowrap;
}

.leaf {
  width: 24px;
  height: auto;
  flex-shrink: 0;
  display: inline-block;
}

.leaf-right {
  transform: scaleX(-1);
}

/* Topics */
.topic-section {
  padding: 18px 16px 22px;
  background: linear-gradient(180deg, #fff8e6 0%, #fffdf6 100%);
}

.topic-section h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

.star {
  color: #ffd765;
  margin-right: 6px;
}

.spark {
  color: #ffd765;
  margin-left: 6px;
}

.topic-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.topic-card {
  min-height: 150px;
  padding: 9px 5px 11px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  text-align: center;
  border: 1px solid rgba(12, 43, 84, 0.04);
}

.topic-card .thumb {
  width: 100%;
  height: 58px;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
}

.topic-card .thumb img {
  max-width: 78px;
  max-height: 58px;
  object-fit: contain;
}

.topic-card h3 {
  min-height: 42px;
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 10.5px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.topic-card p {
  display: inline-block;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: #4aa89d;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

/* =========================================
   Sub-page common styles (page-age, etc.)
   ========================================= */
.page-age {
  background: #ffffff;
}

.page-age .page-shell {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
}

/* Page hero (sub-page header area) */
.page-hero {
  padding: 24px 24px 16px;
  text-align: center;
}

.page-hero-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid currentColor;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.page-hero h1 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Page hero gradient backgrounds per age */
.page-age-preschool .page-hero {
  background: linear-gradient(135deg, #fff9ec 0%, #fff3d6 100%);
}
.page-age-elementary .page-hero {
  background: linear-gradient(135deg, #f5fbf3 0%, #edf8ec 100%);
}
.page-age-middle .page-hero {
  background: linear-gradient(135deg, #f3fbff 0%, #e9f6ff 100%);
}
.page-age-high .page-hero {
  background: linear-gradient(135deg, #fbf7ff 0%, #f3ecff 100%);
}

/* Intro paragraph */
.page-intro {
  padding: 20px 24px 8px;
}

.page-intro p {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.03em;
}

/* Sub section title */
.sub-section-title {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: left;
}

/* Condition cards */
.condition-section {
  padding: 24px 24px 16px;
}

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

.condition-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(12, 43, 84, 0.08);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(14, 45, 90, 0.04);
  cursor: pointer;
}

.condition-card.is-active {
  background: var(--mint-soft);
  border-color: var(--mint, #7fd1c4);
  color: #2f7a72;
}

/* School section (placeholder) */
.school-section {
  padding: 24px 24px 8px;
}

.placeholder-note {
  margin: 0;
  padding: 24px 18px;
  background: #f7faff;
  border-radius: 18px;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.placeholder-note a {
  color: #1f8ee7;
  text-decoration: underline;
}

/* Related articles list */
.related-articles {
  padding: 24px 24px 8px;
}

.article-mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-mini {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(12, 43, 84, 0.06);
  box-shadow: 0 4px 12px rgba(14, 45, 90, 0.04);
  text-decoration: none;
  color: inherit;
}

.article-mini img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.article-mini h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--navy);
  line-height: 1.4;
}

.article-mini p {
  display: inline-block;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: #4aa89d;
  font-size: 10px;
  font-weight: 800;
}

/* CTA section */
.cta-section {
  padding: 28px 24px;
  text-align: center;
}

.cta-section p {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.7;
}

.cta-button {
  display: inline-block;
  padding: 14px 36px;
  background: var(--mint);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(120, 206, 196, 0.35);
}

.cta-button:hover {
  background: #5ec1b5;
}

/* Ad slot (placeholder) */
.ad-slot {
  width: calc(100% - 48px);
  margin: 20px 24px;
  min-height: 250px;
  border-radius: 18px;
  background: #f7fbfa;
  border: 1px solid rgba(120, 206, 196, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa;
  font-size: 12px;
}

.ad-slot-small { min-height: 120px; }
.ad-slot-rectangle { min-height: 250px; }
.ad-slot-inarticle { min-height: 280px; }
.ad-slot-multiplex { min-height: 320px; }

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 28px 24px 32px;
  background: #f7faff;
  border-top: 1px solid rgba(12, 43, 84, 0.05);
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-bottom: 14px;
}

.footer-nav a {
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.footer-social {
  margin-bottom: 12px;
}

.footer-social a {
  color: var(--mint);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.footer-copy {
  margin: 0;
  color: var(--text-muted, #6b7280);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(12, 43, 84, 0.08);
}

.footer-brand-name {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-brand-year {
  color: var(--text-muted, #6b7280);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* Small devices */
@media (max-width: 390px) {
  .hero {
    min-height: 590px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 10.2vw, 48px);
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-visual {
    width: 238px;
  }

  .age-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .age-grid {
    gap: 12px;
  }

  .age-card {
    min-height: 116px;
    border-radius: 24px;
  }

  .age-card-illust img {
    max-height: 104px;
  }

  .age-card-high .age-card-illust img {
    max-height: 96px;
  }

  .topic-scroll {
    overflow-x: auto;
    grid-template-columns: repeat(4, 112px);
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .topic-scroll::-webkit-scrollbar {
    display: none;
  }
}

/* =========================================
   PC / Wide screens (>= 1024px)
   Phase 1: 2-column Hero, 1x4 age cards,
            horizontal article cards.
            No header nav (Phase 2).
   ========================================= */
@media (min-width: 1024px) {
  :root {
    --page-max: 1200px;
  }

  /* Header */
  .site-header {
    height: 88px;
    padding: 24px 56px 0;
  }

  .logo {
    width: 56px;
    height: 56px;
  }

  .hamburger {
    width: 52px;
    height: 44px;
  }

  .hamburger span {
    height: 4px;
  }

  /* Hero - 2 column layout */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    min-height: 620px;
    padding: 60px 80px 80px;
    align-items: center;
  }

  .hero-copy {
    grid-column: 1;
    text-align: center;
    z-index: 5;
    align-self: start;
    padding-top: 30px;
  }

  .hero-copy h1 {
    font-size: 68px;
    letter-spacing: 0.03em;
    line-height: 1.2;
  }

  .hero-copy p {
    font-size: 22px;
    line-height: 1.7;
  }

  .divider {
    width: 200px;
    margin: 28px auto 28px;
  }

  /* Mom image - right column */
  .hero-visual {
    position: relative;
    grid-column: 2;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 460px;
    justify-self: center;
  }

  /* Decor repositioning for PC */
  .decor-abc-a { top: 130px; left: 100px; width: 56px; opacity: 0.55; }
  .decor-abc-b { top: 110px; left: 168px; width: 44px; opacity: 0.62; }
  .decor-abc-c { top: 150px; left: 235px; width: 44px; opacity: 0.55; }
  .decor-globe { top: 130px; right: 80px; width: 130px; }
  .decor-kids-left {
    left: 60px;
    top: auto;
    bottom: 30px;
    width: 180px;
    opacity: 0.95;
  }

  /* Hero backdrop */
  .hero-bg-cloud-left { width: 340px; top: 80px; left: -60px; opacity: 0.6; }
  .hero-bg-cloud-right { width: 340px; top: 40px; right: -60px; opacity: 0.6; }
  .hero-bg-mountain {
    width: calc(100% + 80px);
    left: -40px;
    bottom: -20px;
    opacity: 0.5;
  }

  /* Age section */
  .age-section {
    margin-top: 0;
    padding: 56px 56px 56px;
    border-radius: 48px 48px 0 0;
  }

  .age-section-title {
    font-size: 26px;
    margin-bottom: 32px;
  }

  .title-leaf {
    width: 32px;
  }

  .topic-section h2 {
    font-size: 22px;
    margin-bottom: 32px;
  }

  .leaf { width: 32px; }

  /* Age cards: 1x4 row */
  .age-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .age-card {
    min-height: 200px;
    border-radius: 32px;
  }

  .age-card-illust {
    left: 6px;
    width: 55%;
  }

  .age-card-illust img {
    max-height: 170px;
  }

  .age-card-high .age-card-illust img {
    max-height: 160px;
  }

  .age-card-content {
    width: 42%;
    right: 0;
    padding: 0 16px 0 4px;
  }

  .age-card-label {
    font-size: 26px;
  }

  .age-card-arrow {
    font-size: 30px;
  }

  /* Topic section */
  .topic-section {
    padding: 56px 56px 72px;
  }

  /* Topic cards: horizontal layout (image left, text right) */
  .topic-scroll {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .topic-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    align-items: center;
    text-align: left;
    padding: 20px 24px;
    min-height: 130px;
  }

  .topic-card .thumb {
    width: 90px;
    height: 90px;
    margin-bottom: 0;
  }

  .topic-card .thumb img {
    max-width: 90px;
    max-height: 90px;
  }

  .topic-card h3 {
    font-size: 17px;
    line-height: 1.4;
    text-align: left;
    min-height: auto;
    margin: 0 0 8px;
    letter-spacing: 0;
    font-weight: 800;
  }

  .topic-card p {
    margin: 0;
    font-size: 11px;
    padding: 5px 12px;
  }
}

/* =========================================
   New Top (2026-05-23) — 6セクション構成
   onsen.com ライクなシンプル・余白広め路線
   ========================================= */

:root {
  --section-gap: 56px;
  --card-radius-lg: 24px;
  --card-shadow-soft: 0 18px 50px rgba(20, 58, 98, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.7);
}

/* Section共通: 見出し */
.section-head {
  padding: 0 24px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head .section-lead {
  margin: 0;
  color: #5b6b85;
  font-size: 13px;
  line-height: 1.7;
}

/* =========================================
   Section 2: シミュレーター
   ========================================= */
.simulator-section {
  position: relative;
  padding: var(--section-gap) 16px 0;
}

.simulator-card {
  position: relative;
  padding: 28px 22px 26px;
  background: var(--glass-bg);
  border: 1px solid rgba(12, 43, 84, 0.06);
  border-radius: var(--card-radius-lg);
  box-shadow: var(--card-shadow-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
}

.simulator-title {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.simulator-lead {
  margin: 0 0 22px;
  color: #4a5b78;
  font-size: 13.5px;
  line-height: 1.8;
}

.hero-cta-group {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-cta {
  box-shadow: 0 12px 28px rgba(120, 206, 196, 0.5);
}

.hero-cta-sub {
  font-size: 13px;
  font-weight: 700;
  color: #5b6a86;
  text-decoration: none;
  border-bottom: 1px dashed #b7c2d6;
  padding-bottom: 2px;
}

.hero-cta-sub:hover {
  color: var(--mint, #5ec1b5);
}

.simulator-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  background: var(--mint);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(120, 206, 196, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.simulator-cta:hover {
  background: #5ec1b5;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(120, 206, 196, 0.5);
}

.simulator-cta span {
  font-size: 18px;
  font-weight: 700;
}

.simulator-note {
  margin: 18px 0 0;
  color: #7e8aa0;
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* =========================================
   Section 3: カルーセル記事（既存 topic-section 上書き）
   ========================================= */
.topic-section {
  padding: var(--section-gap) 0 0;
  background: transparent;
}

.topic-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 0 24px;
  margin-bottom: 16px;
}

.topic-section-head h2 {
  flex: 1 1 100%;
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.topic-more {
  align-self: flex-end;
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.topic-more:hover {
  text-decoration: underline;
}

.topic-section .topic-scroll {
  display: flex;
  gap: 14px;
  padding: 4px 24px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.topic-section .topic-scroll::-webkit-scrollbar {
  display: none;
}

.topic-section .topic-card {
  flex: 0 0 78%;
  display: block;
  min-height: auto;
  scroll-snap-align: start;
  padding: 0;
  background: #fff;
  border-radius: var(--card-radius-lg);
  box-shadow: var(--card-shadow-soft);
  border: 1px solid rgba(12, 43, 84, 0.05);
  text-align: left;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.topic-section .topic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px rgba(20, 58, 98, 0.08);
}

.topic-section .topic-card .thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0;
  background: #f4f1ec;
  display: block;
}

.topic-section .topic-card .thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.topic-card-tag {
  display: inline-block;
  margin: 14px 16px 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.topic-card-tag.tag-mint {
  background: var(--mint-soft);
  color: #4aa89d;
}

.topic-card-tag.tag-green {
  background: #e8f5ea;
  color: var(--green);
}

.topic-card-tag.tag-orange {
  background: #fdf0d8;
  color: var(--orange);
}

.topic-card-tag.tag-purple {
  background: #ede7f9;
  color: var(--purple);
}

.topic-section .topic-card h3 {
  margin: 0 16px 8px;
  min-height: auto;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.5;
  text-align: left;
}

.topic-section .topic-card p {
  margin: 0 16px 18px;
  padding: 0;
  background: transparent;
  color: #5b6b85;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.7;
  white-space: normal;
  letter-spacing: 0;
  border-radius: 0;
}

/* =========================================
   Ad slot 微調整（新トップ用）
   ========================================= */
.ad-slot {
  margin: 32px 24px;
  position: relative;
}

.ad-label {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 10px;
  color: #9aa;
  letter-spacing: 0.06em;
}

/* =========================================
   Section 4: Note連載
   ========================================= */
.note-series-section {
  padding: var(--section-gap) 16px 0;
}

.note-series-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(12, 43, 84, 0.05);
  border-radius: var(--card-radius-lg);
  box-shadow: var(--card-shadow-soft);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 400px;
  scrollbar-width: thin;
}

.note-series-list::-webkit-scrollbar {
  width: 6px;
}

.note-series-list::-webkit-scrollbar-track {
  background: transparent;
}

.note-series-list::-webkit-scrollbar-thumb {
  background: rgba(12, 43, 84, 0.15);
  border-radius: 999px;
}

.note-series-item + .note-series-item {
  border-top: 1px solid rgba(12, 43, 84, 0.06);
}

.note-series-item a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 18px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.note-series-item a:hover {
  background: #f9fafd;
}

.note-series-num {
  color: var(--purple);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.note-series-title {
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}

/* 連載予定（リンクなし）の行 — a と同じグリッドを再現 */
.note-series-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 18px;
}

.note-series-item.is-upcoming .note-series-num,
.note-series-item.is-upcoming .note-series-title {
  color: #9aa6bd;
}

.note-series-subhead {
  margin: 18px 4px 8px;
  color: #6b7a92;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.note-series-status {
  padding: 3px 10px;
  background: var(--blue-soft);
  color: var(--sky);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  white-space: nowrap;
}

.note-series-status.is-live {
  background: var(--mint-soft);
  color: #2f7a72;
}

.note-series-foot {
  margin: 16px 4px 0;
  color: #6b7a92;
  font-size: 12px;
  text-align: center;
}

.note-series-foot a {
  color: var(--mint);
  font-weight: 700;
  text-decoration: none;
}

.note-series-foot a:hover {
  text-decoration: underline;
}

/* =========================================
   Section 5: タグクラウド検索
   ========================================= */
.tag-search-section {
  padding: var(--section-gap) 0 0;
}

.tag-cloud-group {
  padding: 0 24px;
  margin-bottom: 22px;
}

.tag-cloud-label {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.age-tag,
.area-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid rgba(12, 43, 84, 0.1);
  border-radius: 999px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.age-tag {
  border-left-width: 3px;
}

.age-tag-orange { border-left-color: var(--orange); }
.age-tag-green  { border-left-color: var(--green); }
.age-tag-blue   { border-left-color: var(--sky); }
.age-tag-purple { border-left-color: var(--purple); }

.age-tag-orange:hover { background: #fff7e8; border-color: var(--orange); color: var(--orange); }
.age-tag-green:hover  { background: #e8f5ea; border-color: var(--green);  color: var(--green); }
.age-tag-blue:hover   { background: var(--blue-soft); border-color: var(--sky);    color: var(--sky); }
.age-tag-purple:hover { background: #ede7f9; border-color: var(--purple); color: var(--purple); }

.area-tag:hover {
  border-color: var(--mint);
  background: var(--mint-soft);
  color: #2f7a72;
}

.tag-state {
  font-size: 10px;
  color: #9aa;
  font-weight: 700;
}

.tag-search-note {
  margin: 24px 24px 0;
  color: #8893a8;
  font-size: 11px;
  line-height: 1.7;
}

/* =========================================
   PCレスポンシブ（≥1024px）— Phase 1 軽対応
   ========================================= */
@media (min-width: 1024px) {
  :root {
    --section-gap: 80px;
  }

  .simulator-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 56px 36px;
  }

  .simulator-title {
    font-size: 24px;
  }

  .simulator-lead {
    font-size: 15px;
  }

  .topic-section .topic-scroll {
    overflow-x: visible;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 4px 24px 18px;
  }

  .topic-section .topic-card {
    flex: 0 0 auto;
  }

  .note-series-item a,
  .note-series-row {
    grid-template-columns: 56px 1fr auto;
    padding: 20px 28px;
  }

  .note-series-title {
    font-size: 15px;
  }
}

/* =========================================
   Legal / Article / Search / Simulator
   (2026-05-24 追加 — 9本ドラフトHTML化対応)
   ========================================= */

/* Body backgrounds */
.page-legal,
.page-article-detail,
.page-search-results,
.page-simulator {
  background: #ffffff;
}

.page-legal .page-shell,
.page-article-detail .page-shell,
.page-search-results .page-shell,
.page-simulator .page-shell {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
}

/* =========================================
   Legal pages (about / privacy / disclaimer
   / contact / sitemap)
   ========================================= */
.legal-hero {
  background: linear-gradient(135deg, #fffdf6 0%, #fff8e6 100%);
}

.legal-tag {
  color: var(--mint);
}

.search-tag {
  color: var(--sky);
}

.legal-content {
  padding: 8px 24px 32px;
}

.legal-block {
  margin: 28px 0 0;
}

.legal-block:first-of-type {
  margin-top: 12px;
}

.legal-block h2 {
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--mint);
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.legal-block h3 {
  margin: 18px 0 8px;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.legal-block p {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 13.5px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.legal-block p a,
.legal-block li a {
  color: var(--sky);
  text-decoration: underline;
  word-break: break-all;
}

.legal-lead {
  padding: 14px 16px;
  background: #f7faff;
  border-radius: 14px;
  font-weight: 600;
}

.legal-emphasis {
  margin: 10px 0;
  padding: 12px 14px;
  background: #fff8e7;
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  color: var(--navy);
}

.legal-list {
  margin: 0 0 10px;
  padding-left: 22px;
  color: var(--navy);
  font-size: 13.5px;
  line-height: 1.95;
  letter-spacing: 0.02em;
}

.legal-list li {
  margin-bottom: 6px;
}

.legal-updated {
  margin: 36px 0 0;
  padding: 14px 16px;
  background: #f9fafd;
  border-radius: 12px;
  color: #6b7a92;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

/* Contact page */
.contact-method {
  margin: 14px 0 22px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid rgba(12, 43, 84, 0.07);
  border-radius: 16px;
  box-shadow: var(--card-shadow-soft);
}

.contact-method h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 800;
}

.contact-cta-wrap {
  margin: 14px 0 6px !important;
  text-align: center;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--mint);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(120, 206, 196, 0.4);
}

.contact-cta:hover {
  background: #5ec1b5;
}

.contact-note {
  margin: 4px 0 0 !important;
  color: #7e8aa0 !important;
  font-size: 11.5px !important;
  text-align: center;
}

/* Sitemap page */
.sitemap-list {
  margin: 0 0 14px;
  padding-left: 22px;
  list-style: none;
}

.sitemap-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.6;
}

.sitemap-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--mint);
  font-size: 16px;
  font-weight: 800;
}

.sitemap-list a {
  color: var(--sky);
  text-decoration: none;
}

.sitemap-list a:hover {
  text-decoration: underline;
}

/* =========================================
   Article detail pages
   ========================================= */
.article {
  padding: 0;
}

.article-hero {
  padding: 20px 24px 14px;
  text-align: left;
}

.article-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.article-tag.tag-mint   { background: var(--mint-soft); color: #4aa89d; }
.article-tag.tag-green  { background: #e8f5ea;         color: var(--green); }
.article-tag.tag-orange { background: #fdf0d8;         color: var(--orange); }
.article-tag.tag-purple { background: #ede7f9;         color: var(--purple); }

.article-hero h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.article-meta {
  margin: 0;
  color: #6b7a92;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.article-meta-sep {
  margin: 0 6px;
  color: #c0c8d6;
}

.article-eyecatch {
  margin: 18px 0 0;
  border-radius: 18px;
  background: #f4f1ec;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-eyecatch img {
  max-width: 70%;
  max-height: 80%;
  object-fit: contain;
}

.article-intro {
  padding: 22px 24px 4px;
}

.article-intro p {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.article-intro p:last-child {
  margin-bottom: 0;
}

.article-body {
  padding: 8px 24px 0;
}

.article-body h2 {
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 5px solid var(--mint);
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.article-body h3 {
  margin: 22px 0 10px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.article-body p {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: 0.02em;
}

.article-body p a,
.article-body li a {
  color: var(--sky);
  text-decoration: underline;
  word-break: break-all;
}

.article-body strong {
  font-weight: 800;
  color: var(--navy);
}

.article-body ul,
.article-body ol {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: 0.02em;
}

.article-body li {
  margin-bottom: 6px;
}

.article-body ul.checklist {
  list-style: none;
  padding-left: 0;
}

.article-body ul.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.article-body ul.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--mint);
  border-radius: 4px;
  background: #fff;
}

/* Article table */
.table-wrap {
  margin: 0 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(12, 43, 84, 0.08);
  background: #fff;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  color: var(--navy);
}

.article-table thead {
  background: #f7faff;
}

.article-table th,
.article-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(12, 43, 84, 0.06);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.article-table th {
  font-weight: 800;
  color: var(--navy);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.article-table tbody tr:last-child td {
  border-bottom: 0;
}

.article-table tbody tr:nth-child(even) {
  background: #fcfdff;
}

/* Testimonial blockquote */
.testimonial {
  margin: 0 0 18px;
  padding: 16px 18px;
  background: var(--mint-soft);
  border-left: 4px solid var(--mint);
  border-radius: 12px;
}

.testimonial p {
  margin: 0 0 6px !important;
  color: var(--navy);
  font-size: 13.5px !important;
  line-height: 1.85 !important;
}

.testimonial p:last-child {
  margin-bottom: 0 !important;
}

.testimonial-title {
  color: #2f7a72 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
}

/* Related articles section in detail pages */
.related-articles-section {
  margin-top: 32px;
  padding: 24px 24px 8px;
}

/* Note callout */
.note-callout {
  margin: 24px 24px 0;
  padding: 22px 22px;
  background: linear-gradient(135deg, #fff 0%, #f7f3ff 100%);
  border: 1px solid rgba(128, 84, 201, 0.15);
  border-radius: 18px;
  box-shadow: var(--card-shadow-soft);
  text-align: center;
}

.note-callout h3 {
  margin: 0 0 6px;
  color: var(--purple);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.note-callout p {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.7;
}

.note-callout-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--purple);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(128, 84, 201, 0.3);
}

/* 記事内の求人検索CTA（教育移住の仕事ページ） */
.article-cta-wrap {
  margin: 14px 0 4px;
}

.article-job-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--sky, #3aa7e0);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(20, 58, 98, 0.18);
}

.article-job-cta:hover {
  transform: translateY(-1px);
}

.note-callout-cta:hover {
  background: #6e44b9;
}

/* Freshness section */
.article-freshness {
  margin: 24px 24px 0;
  padding: 16px 18px;
  background: #f9fafd;
  border-radius: 14px;
}

.article-freshness h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.article-freshness ul {
  margin: 0;
  padding-left: 20px;
  color: #6b7a92;
  font-size: 12px;
  line-height: 1.8;
}

.article-freshness ul a {
  color: var(--sky);
  text-decoration: underline;
}

/* =========================================
   Search results page
   ========================================= */
.search-hero {
  background: linear-gradient(135deg, #f3fbff 0%, #e9f6ff 100%);
}

.search-filter {
  padding: 14px 24px 0;
}

.search-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(12, 43, 84, 0.07);
  border-radius: 14px;
  box-shadow: var(--card-shadow-soft);
}

.search-filter-label {
  color: #6b7a92;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.search-chip {
  display: inline-block;
  padding: 4px 12px;
  background: var(--mint-soft);
  color: #2f7a72;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
}

.search-clear {
  margin-left: auto;
  color: var(--sky);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
}

.search-filter-row + .search-filter-row {
  margin-top: 10px;
}

.search-pref-select {
  flex: 1;
  min-width: 180px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid rgba(12, 43, 84, 0.14);
  border-radius: 10px;
  color: #2f3b54;
  font-size: 13px;
  font-weight: 700;
}

.search-quick {
  padding: 24px 24px 8px;
}

.search-quick-label {
  margin: 16px 0 8px;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.search-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-quick-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid rgba(12, 43, 84, 0.1);
  border-radius: 999px;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.search-quick-tag.age-tag-orange { border-left: 3px solid var(--orange); }
.search-quick-tag.age-tag-green  { border-left: 3px solid var(--green); }
.search-quick-tag.age-tag-blue   { border-left: 3px solid var(--sky); }
.search-quick-tag.age-tag-purple { border-left: 3px solid var(--purple); }

.search-quick-tag:hover {
  border-color: var(--mint);
  background: var(--mint-soft);
  color: #2f7a72;
}

.school-list-section {
  padding: 28px 24px 8px;
}

.search-count {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: #2f7a72;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0;
}

.school-card-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.school-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(12, 43, 84, 0.07);
  border-radius: 18px;
  box-shadow: var(--card-shadow-soft);
}

.school-card-thumb {
  position: relative;
  border-radius: 14px;
  background: var(--mint-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
}

.school-card-thumb-mint   { background: var(--mint-soft); }
.school-card-thumb-orange { background: #fdf0d8; }
.school-card-thumb-blue   { background: var(--blue-soft); }
.school-card-thumb-purple { background: #ede7f9; }
.school-card-thumb-green  { background: #e8f5ea; }

.school-card-thumb-icon {
  font-size: 36px;
}

.school-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.school-card-body h3 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.school-card-meta {
  margin: 0;
  color: #6b7a92;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.school-card-sep {
  margin: 0 6px;
  color: #c0c8d6;
}

.school-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.school-card-tag {
  display: inline-block;
  padding: 3px 9px;
  background: #f4f7fb;
  color: #5b6b85;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}

.school-card-note {
  margin: 4px 0 0;
  color: #8893a8;
  font-size: 10.5px;
  line-height: 1.6;
}

.school-card-note a {
  color: var(--sky);
  text-decoration: underline;
}

.school-card-tuition {
  margin: 6px 0 0;
  color: #5b6b85;
  font-size: 12px;
}

.school-card-tuition strong {
  color: #2f3b54;
  font-size: 14px;
  font-weight: 800;
}

.school-card-cta {
  margin-top: 10px;
  font-size: 12.5px;
}

.school-list-disclaimer {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: #f9fafd;
  border-radius: 12px;
  color: #6b7a92;
  font-size: 11.5px;
  line-height: 1.7;
}

/* =========================================
   Simulator page
   ========================================= */
.page-simulator .page-shell {
  background: linear-gradient(180deg, #f7fbfa 0%, #fffdf8 100%);
}

.sim-intro {
  padding: 22px 24px 8px;
  text-align: center;
}

.sim-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sim-intro h1 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.sim-lead {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 13.5px;
  line-height: 1.85;
  font-weight: 600;
}

.sim-note {
  margin: 8px 0 0;
  color: #7e8aa0;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.sim-stage {
  padding: 16px 20px 8px;
}

.sim-progress {
  margin: 4px 4px 18px;
}

.sim-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(12, 43, 84, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.sim-progress-fill {
  width: 25%;
  height: 100%;
  background: var(--mint);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.sim-progress-text {
  margin: 6px 0 0;
  text-align: right;
  color: #6b7a92;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sim-step {
  display: none;
}

.sim-step.is-active {
  display: block;
  animation: simFadeIn 0.3s ease;
}

@keyframes simFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sim-step-label {
  margin: 0 0 6px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sim-question {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.sim-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sim-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  padding: 14px;
  background: #fff;
  border: 1.5px solid rgba(12, 43, 84, 0.1);
  border-radius: 18px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.sim-option:hover {
  border-color: var(--mint);
  background: var(--mint-soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(120, 206, 196, 0.2);
}

.sim-option:active {
  transform: translateY(0);
}

.sim-option-row {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  min-height: 56px;
  padding: 14px 18px;
}

.sim-option-emoji {
  font-size: 32px;
  line-height: 1;
}

.sim-option-text {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.sim-option-text small {
  display: block;
  margin-top: 4px;
  color: #6b7a92;
  font-size: 11px;
  font-weight: 600;
}

.sim-back {
  display: inline-block;
  margin: 24px 0 0;
  padding: 8px 16px;
  background: transparent;
  border: 0;
  color: #6b7a92;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.sim-back:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* Result step */
.sim-result-step .sim-step-label {
  color: var(--orange);
}

.sim-result-card {
  margin: 0 0 24px;
  padding: 22px 22px;
  background: linear-gradient(135deg, #fff 0%, #f7fbfa 100%);
  border: 1px solid rgba(120, 206, 196, 0.3);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(120, 206, 196, 0.15);
}

.sim-result-title {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.sim-result-body {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 13.5px;
  line-height: 1.95;
  letter-spacing: 0.02em;
}

.sim-result-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(12, 43, 84, 0.08);
}

.sim-result-meta > div {
  background: #fff;
  border: 1px solid rgba(12, 43, 84, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
}

.sim-result-meta dt {
  color: #8893a8;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.sim-result-meta dd {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.sim-next {
  margin: 0 0 24px;
}

.sim-next-title {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sim-next-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-next-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(12, 43, 84, 0.08);
  border-radius: 16px;
  box-shadow: var(--card-shadow-soft);
  color: var(--navy);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sim-next-link:hover {
  transform: translateY(-1px);
  border-color: var(--mint);
}

.sim-next-link-tag {
  display: inline-block;
  padding: 3px 9px;
  background: var(--mint-soft);
  color: #2f7a72;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  white-space: nowrap;
}

.sim-next-link-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.sim-next-link-arrow {
  color: var(--mint);
  font-size: 16px;
  font-weight: 800;
}

.sim-next-articles {
  margin-top: 12px;
}

.sim-reset {
  margin: 24px 0 8px;
  text-align: center;
}

.sim-reset-btn {
  padding: 10px 22px;
  background: transparent;
  border: 1.5px solid rgba(12, 43, 84, 0.15);
  border-radius: 999px;
  color: #6b7a92;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.sim-reset-btn:hover {
  background: #f9fafd;
  border-color: var(--navy);
  color: var(--navy);
}

.sim-result-disclaimer {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: #f9fafd;
  border-radius: 12px;
  color: #8893a8;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

/* =========================================
   PC tweaks for article / search / simulator
   ========================================= */
@media (min-width: 1024px) {
  .legal-content,
  .article {
    max-width: 760px;
    margin: 0 auto;
  }

  /* ヒーローの背景帯は全幅のまま、中の文言だけ760pxに収めて中央寄せ（間延び防止）。
     .page-hero p の左右margin:0 に勝つよう詳細度を上げる（タグspanはtext-align:centerで中央） */
  .page-hero.legal-hero h1,
  .page-hero.legal-hero p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .article-hero h1 {
    font-size: 32px;
  }

  .article-body h2 {
    font-size: 22px;
  }

  .article-body h3 {
    font-size: 18px;
  }

  .article-body p,
  .article-body ul,
  .article-body ol {
    font-size: 15px;
  }

  .sim-options {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .sim-stage {
    max-width: 720px;
    margin: 0 auto;
  }

  .school-card {
    grid-template-columns: 120px 1fr;
  }

  .school-card-thumb {
    min-height: 120px;
  }

  .school-card-thumb-icon {
    font-size: 48px;
  }
}

/* =========================================
   Simulator result schools list
   (2026-05-24 second pass: 3-question simulator)
   ========================================= */
.sim-result-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
}

.sim-result-summary span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: #2f7a72;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sim-result-empty {
  margin: 12px 0;
  padding: 16px 18px;
  background: #fff8e7;
  border-radius: 14px;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.7;
}

.sim-result-empty a {
  color: var(--sky);
  text-decoration: underline;
  font-weight: 700;
}

.sim-school-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sim-school-card {
  padding: 18px 18px 14px;
  background: #fff;
  border: 1px solid rgba(12, 43, 84, 0.08);
  border-radius: 18px;
  box-shadow: var(--card-shadow-soft);
}

.sim-school-head h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.sim-school-area {
  margin: 0;
  color: #6b7a92;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.sim-school-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 12px 0 10px;
  padding: 10px 12px;
  background: #f9fafd;
  border-radius: 12px;
}

.sim-school-meta > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11.5px;
}

.sim-school-meta dt {
  color: #8893a8;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sim-school-meta dd {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.sim-school-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 8px;
}

.sim-school-tag {
  display: inline-block;
  padding: 3px 9px;
  background: var(--mint-soft);
  color: #2f7a72;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
}

.sim-school-note {
  margin: 0 0 14px;
  color: #5b6b85;
  font-size: 12.5px;
  line-height: 1.7;
}

.sim-school-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--mint);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(120, 206, 196, 0.35);
  transition: background 0.2s ease, transform 0.15s ease;
}

.sim-school-cta:hover {
  background: #5ec1b5;
  transform: translateY(-1px);
}

/* =========================================
   Cost Simulator page
   ========================================= */
.page-cost-simulator .page-shell {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
}

.cost-hero {
  padding: 18px 24px 12px;
  text-align: left;
}

.cost-back {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--sky);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.cost-back:hover {
  text-decoration: underline;
}

.cost-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fdf0d8;
  color: var(--orange);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cost-hero h1 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.cost-school-area {
  margin: 0;
  color: #6b7a92;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.cost-school-summary {
  margin: 0 24px 8px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(12, 43, 84, 0.08);
  border-radius: 16px;
  box-shadow: var(--card-shadow-soft);
}

.cost-school-summary dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  margin: 0 0 10px;
}

.cost-school-summary > dl > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
}

.cost-school-summary dt {
  color: #8893a8;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cost-school-summary dd {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.cost-school-note {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(12, 43, 84, 0.06);
  color: #5b6b85;
  font-size: 12px;
  line-height: 1.7;
}

.cost-school-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 9px 18px;
  background: var(--mint-soft);
  color: #2f7a72;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.cost-school-link:hover {
  background: var(--mint, #7fd1c4);
  color: #fff;
}

.cost-school-link[hidden] {
  display: none;
}

/* 学費以外にかかる費用（学校サマリ内・月の試算には含めない参考情報） */
.cost-school-fees {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(12, 43, 84, 0.08);
}
.cost-school-fees-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}
.cost-school-fees-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cost-school-fees-list[hidden] { display: none; }
.cost-school-fees-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}
.cost-school-fees-list li span { color: #4a5a72; }
.cost-school-fees-list li strong { color: var(--navy); font-weight: 800; white-space: nowrap; }
.cost-school-fees-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: #7a869a;
}

/* 移住支援金カード（対象地域のときだけ表示・コンパクト版） */
.cost-grant {
  margin: 14px 0 0;
  padding: 13px 14px 12px;
  background: linear-gradient(160deg, #f0faf1 0%, #eafff0 100%);
  border: 1.5px solid #b9e3c0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.cost-grant[hidden] { display: none; }
.cost-grant-head {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 800;
  color: #1f6b2c;
}
.cost-grant-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 3px 9px;
  background: var(--green, #45994d);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  vertical-align: 1px;
}
.cost-grant-amounts {
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #cfe9d4;
  border-radius: 12px;
  overflow: hidden;
}
.cost-grant-amounts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
}
.cost-grant-amounts dt { font-size: 12px; color: #355c3b; font-weight: 700; }
.cost-grant-amounts dd { margin: 0; }
.cost-grant-amounts dd strong { font-size: 16px; font-weight: 900; color: #1f6b2c; }
.cost-grant-cond {
  margin: 9px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: #5a6b5d;
}
.cost-grant-cond a { color: #1f6b2c; font-weight: 700; }

/* Cost block (sections 1, 2, 3) */
.cost-block,
.cost-total-block {
  margin: 22px 24px 0;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid rgba(12, 43, 84, 0.07);
  border-radius: 18px;
  box-shadow: var(--card-shadow-soft);
}

.cost-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.cost-block-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--mint);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.cost-block-lead {
  margin: 0 0 16px;
  color: #5b6b85;
  font-size: 12.5px;
  line-height: 1.7;
}

/* Layout selector */
.cost-layout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}

.cost-layout-btn,
.cost-car-budget-btn,
.cost-car-need {
  padding: 12px 8px;
  background: #fff;
  border: 1.5px solid rgba(12, 43, 84, 0.12);
  border-radius: 14px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cost-layout-btn:hover,
.cost-car-budget-btn:hover,
.cost-car-need:hover {
  border-color: var(--mint);
  background: var(--mint-soft);
  color: #2f7a72;
}

.cost-layout-btn.is-active,
.cost-car-budget-btn.is-active,
.cost-car-need.is-active {
  background: var(--mint);
  border-color: var(--mint);
  color: #fff;
}

/* Rent result */
.cost-rent-result {
  margin-top: 14px;
  padding: 14px 14px 12px;
  background: var(--mint-soft);
  border-radius: 14px;
}

.cost-rent-amount-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.cost-rent-label {
  color: #2f7a72;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cost-rent-amount {
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Affiliate CTA */
.cost-affiliate-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(20, 58, 98, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cost-affiliate-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(20, 58, 98, 0.22);
}

/* CTAボタンが連続する場合（金利別2リンクなど）の間隔 */
.cost-affiliate-cta + .cost-affiliate-cta {
  margin-top: 14px;
}

.cost-affiliate-suumo {
  background: linear-gradient(135deg, #00a44a 0%, #008c3f 100%);
}

.cost-affiliate-carsensor {
  background: linear-gradient(135deg, #e84e0f 0%, #c43e08 100%);
}

.cost-affiliate-job {
  background: linear-gradient(135deg, var(--sky) 0%, var(--navy) 100%);
}

/* 試算の最下部：移住支援金はnote（有料）への入口だけ（金額は無料サイトに出さない） */
.cost-grant-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 24px 0;
  padding: 11px 12px;
  background: linear-gradient(160deg, #f0faf1 0%, #eafff0 100%);
  border: 1.5px solid #b9e3c0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}
.cost-grant-cta:hover { transform: translateY(-1px); }
.cost-grant-cta-badge {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--green, #45994d);
  color: #fff;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}
.cost-grant-cta-body { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.cost-grant-cta-body strong { font-size: 13px; font-weight: 800; color: #1f6b2c; line-height: 1.4; }
.cost-grant-cta-body small { font-size: 11.5px; color: #5a6b5d; line-height: 1.5; }
.cost-grant-cta-arrow { flex-shrink: 0; color: var(--green, #45994d); font-weight: 800; font-size: 15px; }

/* 試算の最下部：引っ越し先での仕事（記事＋求人導線・コンパクト版） */
.cost-next {
  margin: 12px 24px 0;
  padding: 12px 13px 11px;
  background: var(--beige-soft);
  border: 1.5px solid var(--yellow-soft);
  border-radius: var(--radius-md);
}
.cost-next-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
}
.cost-next-title {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 900;
  color: var(--navy);
}
.cost-next-article {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  padding: 10px;
  background: #fff;
  border-radius: 13px;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}
.cost-next-article:hover { transform: translateY(-1px); }
.cost-next-article-tag {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 3px 9px;
  background: var(--orange);
  color: #fff;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 800;
}
.cost-next-article-body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cost-next-article-body strong { font-size: 12.5px; font-weight: 800; color: var(--navy); line-height: 1.4; }
.cost-next-article-body small { font-size: 11px; color: #6b7a92; line-height: 1.45; }
.cost-next-arrow { flex-shrink: 0; color: var(--orange); font-weight: 800; font-size: 15px; }
.cost-next .cost-affiliate-cta { margin-top: 10px; padding: 10px 18px; font-size: 12.5px; }
.cost-next .cost-affiliate-note { margin-top: 6px; }

.cost-affiliate-note {
  margin: 8px 0 0;
  color: #6b7a92;
  font-size: 10.5px;
  line-height: 1.6;
}

/* Car section */
.cost-car-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}

.cost-car-detail-lead {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cost-car-own {
  margin-top: 14px;
}

.cost-car-own-label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cost-car-own-select {
  width: 100%;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid rgba(12, 43, 84, 0.14);
  border-radius: 10px;
  color: #2f3b54;
  font-size: 14px;
  font-weight: 700;
}

.cost-car-budget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}

.cost-car-result {
  margin-top: 14px;
  padding: 14px 14px 12px;
  background: #fff8e7;
  border-radius: 14px;
}

.cost-car-breakdown {
  margin: 0 0 12px;
  padding: 0;
}

.cost-car-breakdown > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(12, 43, 84, 0.08);
  font-size: 12.5px;
}

.cost-car-breakdown > div:last-child {
  border-bottom: 0;
}

.cost-car-breakdown dt {
  color: #6b7a92;
  font-weight: 700;
}

.cost-car-breakdown dd {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.cost-car-breakdown-sum {
  padding-top: 10px !important;
  margin-top: 4px;
  border-top: 1.5px solid rgba(12, 43, 84, 0.12) !important;
  border-bottom: 0 !important;
}

.cost-car-breakdown-sum dt {
  color: var(--navy) !important;
  font-weight: 800 !important;
}

.cost-car-breakdown-sum dd {
  color: var(--orange) !important;
  font-size: 18px !important;
}

/* Total block */
.cost-total-block {
  margin-top: 26px;
  padding-bottom: 22px;
  background: linear-gradient(135deg, #fff 0%, #f3fbff 100%);
  border-color: rgba(31, 142, 231, 0.2);
}

.cost-total-table {
  margin: 4px 0 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(12, 43, 84, 0.06);
  border-radius: 12px;
}

.cost-total-table > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(12, 43, 84, 0.08);
  font-size: 13px;
}

.cost-total-table > div:nth-last-child(2) {
  border-bottom: 0;
}

.cost-total-table dt {
  color: #6b7a92;
  font-weight: 700;
}

.cost-total-table dd {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.cost-total-sum {
  padding-top: 12px !important;
  margin-top: 4px;
  border-top: 1.5px solid var(--sky) !important;
  border-bottom: 0 !important;
}

.cost-total-sum dt {
  color: var(--navy) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.cost-total-sum dd {
  color: var(--sky) !important;
  font-size: 22px !important;
  letter-spacing: -0.01em;
}

.cost-yearly {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 16px;
}

.cost-yearly > div {
  padding: 12px 12px;
  background: #fff;
  border: 1px solid rgba(12, 43, 84, 0.06);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cost-yearly-label {
  color: #8893a8;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cost-yearly strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
}

.cost-income {
  padding: 16px 16px;
  background: #fff;
  border: 1.5px solid rgba(237, 151, 15, 0.3);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(237, 151, 15, 0.08);
}

.cost-income-title {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cost-income-note {
  margin: 0 0 12px;
  color: #6b7a92;
  font-size: 11.5px;
  line-height: 1.6;
}

.cost-income-note strong {
  color: var(--orange);
}

.cost-income-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cost-income-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 10px;
  background: #fff8e7;
  border-radius: 10px;
}

.cost-income-label {
  color: #8893a8;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cost-income-row strong {
  color: var(--orange);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cost-income-scenarios {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cost-income-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: #fff8e7;
  border-radius: 10px;
}

.cost-income-ratio {
  display: flex;
  flex-direction: column;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.cost-income-ratio small {
  margin-top: 2px;
  color: #8893a8;
  font-size: 10px;
  font-weight: 700;
}

.cost-income-line strong {
  color: var(--orange);
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cost-income-sub {
  margin: 10px 0 0;
  color: #8893a8;
  font-size: 10.5px;
  line-height: 1.6;
}

.cost-disclaimer {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: #f9fafd;
  border-radius: 12px;
  color: #8893a8;
  font-size: 11px;
  line-height: 1.7;
}

.cost-restart {
  margin: 16px 0 0;
  text-align: center;
}

.cost-restart-btn {
  display: inline-block;
  padding: 10px 22px;
  background: transparent;
  border: 1.5px solid rgba(12, 43, 84, 0.15);
  border-radius: 999px;
  color: #6b7a92 !important;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none !important;
}

.cost-restart-btn:hover {
  background: #f9fafd;
  border-color: var(--navy);
  color: var(--navy) !important;
}

/* PC adjustments for cost-simulator */
@media (min-width: 1024px) {
  .cost-hero,
  .cost-school-summary,
  .cost-block,
  .cost-grant-cta,
  .cost-next,
  .cost-total-block {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .cost-layout-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .cost-car-budget-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* 家賃目安テーブル（暮らし試算・間取り別の自前データ） */
.cost-rent-table-wrap {
  margin: 16px 0 10px;
}

.cost-rent-table-cap {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 800;
}

.cost-rent-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(8, 38, 92, 0.06);
}

.cost-rent-table th,
.cost-rent-table td {
  padding: 11px 16px;
  font-size: 14.5px;
  border-bottom: 1px solid var(--mint-soft);
}

.cost-rent-table th {
  text-align: left;
  width: 45%;
  color: var(--navy);
  font-weight: 600;
}

.cost-rent-table td {
  text-align: right;
  color: var(--navy);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.cost-rent-table tr:last-child th,
.cost-rent-table tr:last-child td {
  border-bottom: none;
}

/* シミュレーター結果：件数表示＋「もっと見る」 */
.sim-result-count {
  margin: 6px 0 14px;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 700;
  opacity: 0.85;
}

.sim-more-btn {
  display: block;
  width: 100%;
  margin: 8px 0 4px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--mint);
  border-radius: 14px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sim-more-btn:hover,
.sim-more-btn:active {
  background: var(--mint-soft);
}

/* シミュレーター結果：都道府県しぼり込み */
.sim-pref-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 16px;
}

.sim-pref-filter label {
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 800;
}

.sim-pref-filter select {
  flex: 1;
  min-width: 180px;
  padding: 11px 14px;
  border: 1.5px solid var(--mint);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2308265c' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}

/* 暮らし試算：家賃入力（編集可・SUUMOで実額を上書き） */
.cost-rent-input-label {
  display: block;
  margin: 14px 0 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.cost-rent-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cost-rent-input-wrap input {
  flex: 1;
  max-width: 200px;
  padding: 12px 14px;
  border: 1.5px solid var(--mint);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cost-rent-input-unit {
  color: var(--navy);
  font-weight: 700;
}

