:root {
  --navy: #061a35;
  --navy2: #0d2b52;
  --ink: #102038;
  --muted: #627086;
  --gold: #c9a45c;
  --gold2: #e9cf8d;
  --cream: #fbf7ee;
  --lav: #f2effb;
  --white: #fff;
  --line: rgba(16, 32, 56, .12);
  --shadow: 0 22px 60px rgba(7, 23, 49, .15);
  --shadow-soft: 0 14px 36px rgba(7, 23, 49, .10);
  --radius: 28px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Yu Gothic", YuGothic, "Noto Sans JP", system-ui, sans-serif;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(180deg, #f8f4ec 0%, #fff 28%, #f6f1eb 100%);
  letter-spacing: .04em;
  line-height: 1.85
}

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

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

.section-inner {
  width: min(1280px, calc(100% - 72px));
  margin-inline: auto
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #03162e 0%, #071f3e 52%, #0d2e55 100%);
  color: #fff;
  box-shadow: 0 12px 38px rgba(0, 0, 0, .18)
}

.utility-bar {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
  color: rgba(255, 255, 255, .82)
}

.utility-inner {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.utility-inner p {
  margin: 0
}

.utility-links {
  display: flex;
  gap: 24px;
  white-space: nowrap
}

.utility-links a::before {
  content: "↓";
  color: var(--gold);
  margin-right: .45em
}

.utility-links a+a::before {
  content: "✉"
}

.header-inner {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 30px
}

.brand {
  flex: 0 0 auto
}

.brand img {
  width: 245px
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-left: auto
}

.global-nav a {
  padding: 10px 18px;
  border-left: 1px solid rgba(255, 255, 255, .12);
  font-size: 15px;
  white-space: nowrap;
  color: rgba(255, 255, 255, .9)
}

.global-nav a:hover {
  color: var(--gold2)
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 162px;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ead08e 0%, #b88a3f 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 26px rgba(0, 0, 0, .2)
}

.header-cta::after {
  content: "›";
  font-size: 28px;
  margin-left: 16px;
  line-height: 1
}

.mobile-menu,
.mobile-scroll-nav {
  display: none
}

.mobile-menu {
  font-weight: 800;
  font-size: 13px;
  cursor: pointer
}

@media (max-width: 1120px) {
  .site-header.nav-open .global-nav {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 18px 18px;
    background: linear-gradient(180deg, #03162e, #071f3e);
    border-top: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .42);
    gap: 0;
    z-index: 55
  }
  .site-header.nav-open .global-nav a {
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 14px 4px;
    font-size: 15px;
    text-align: left
  }
  .site-header.nav-open .global-nav a:last-child {
    border-bottom: 0
  }
  .mobile-menu[aria-expanded="true"] {
    background: rgba(233, 207, 141, .22) !important;
    border-color: rgba(233, 207, 141, .55) !important;
    color: var(--gold2)
  }
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 112px 0 98px;
  background: radial-gradient(circle at 88% 18%, rgba(233, 207, 141, .25) 0 12%, transparent 28%), linear-gradient(110deg, #fff 0%, #f6f1e8 38%, #e9edf3 67%, #0b2342 100%)
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .62) 46%, rgba(255, 255, 255, .1) 76%, rgba(6, 26, 53, .16));
  pointer-events: none
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(520px, 1.15fr);
  align-items: center;
  gap: 56px
}

.hero-copy {
  padding: 42px 0
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold)
}

.hero-copy h1,
.section-heading h2,
.merit-inner h2,
.service-copy h2,
.final-inner h2 {
  font-family: var(--serif);
  line-height: 1.22;
  letter-spacing: .07em;
  margin: 0;
  color: #09203d
}

.hero-copy h1 {
  font-size: clamp(48px, 4.6vw, 74px)
}

.hero-copy h1 span {
  color: #173e36;
  text-shadow: 0 10px 32px rgba(201, 164, 92, .2)
}

.lead {
  font-size: 20px;
  line-height: 2;
  margin: 24px 0 0;
  color: #26354b
}

.hero-actions,
.final-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .05em;
  box-shadow: var(--shadow-soft)
}

.btn-primary {
  background: linear-gradient(135deg, #ead08e, #b99047);
  color: #fff
}

.btn-secondary {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(201, 164, 92, .45);
  color: #0b2342
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px
}

.hero-points article {
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(201, 164, 92, .22);
  box-shadow: 0 8px 22px rgba(7, 23, 49, .06)
}

.hero-points span {
  font-family: var(--serif);
  color: var(--gold);
  font-weight: 900
}

.hero-points strong {
  display: block;
  margin-top: 5px;
  font-size: 15px
}

.hero-points p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted)
}

.hero-visual {
  margin: 0;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 86px rgba(7, 23, 49, .28);
  transform: translateY(4px);
  background: #fff
}

.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain
}

.module-section {
  padding: 110px 0;
  background: linear-gradient(180deg, #fff 0%, #fbf6ee 100%)
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 52px
}

.section-heading.center {
  text-align: center
}

.section-heading h2 {
  font-size: clamp(34px, 3vw, 50px)
}

.section-heading p {
  font-size: 18px;
  color: var(--muted);
  margin: 20px 0 0
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px
}

.overview-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 16px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #fffaf3);
  border: 1px solid rgba(201, 164, 92, .32);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease
}

.overview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 58px rgba(7, 23, 49, .18)
}

.overview-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(16, 32, 56, .08)
}

.overview-card small {
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
  text-align: center
}

.overview-card strong {
  font-family: var(--serif);
  font-size: 26px;
  text-align: center;
  line-height: 1.25
}

.overview-card span {
  font-size: 14px;
  text-align: center;
  color: #516078;
  border-top: 1px solid rgba(201, 164, 92, .26);
  padding-top: 10px
}

.merit-band {
  padding: 94px 0;
  background: linear-gradient(110deg, #061a35, #0d2b52 58%, #143c66);
  color: #fff;
  position: relative;
  overflow: hidden
}

.merit-band::before {
  content: "";
  position: absolute;
  inset: -40% 55% -30% -10%;
  background: radial-gradient(circle, rgba(233, 207, 141, .25), transparent 65%)
}

.merit-inner {
  position: relative;
  display: grid;
  grid-template-columns: .95fr 1.25fr;
  gap: 44px;
  align-items: center
}

.merit-inner h2 {
  font-size: clamp(32px, 2.8vw, 46px);
  color: #fff
}

.merit-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px
}

.merit-flow article {
  padding: 24px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px)
}

.merit-flow b {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--gold2);
  line-height: 1.35
}

.merit-flow span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.7
}

.service-section {
  position: relative;
  overflow: hidden;
  padding: 114px 0;
  background: #fff
}

.service-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 8% 18%, var(--theme-glow), transparent 26%), radial-gradient(circle at 92% 8%, rgba(201, 164, 92, .18), transparent 24%)
}

.service-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(540px, 1.08fr);
  gap: 70px;
  align-items: center
}

.service-layout.reverse {
  grid-template-columns: minmax(540px, 1.08fr) minmax(0, .92fr)
}

.service-layout.reverse .service-copy {
  order: 2
}

.service-layout.reverse .service-media {
  order: 1
}

.theme-purple {
  --theme: #5d4b8e;
  --theme-dark: #2a1e58;
  --theme-soft: #f2effb;
  --theme-glow: rgba(93, 75, 142, .18);
  background: linear-gradient(180deg, #fff 0%, #f7f4ff 100%)
}

.theme-green {
  --theme: #6b7f5a;
  --theme-dark: #354229;
  --theme-soft: #f3f7ec;
  --theme-glow: rgba(107, 127, 90, .18);
  background: linear-gradient(180deg, #fff 0%, #f5f8ef 100%)
}

.theme-blue {
  --theme: #3d5277;
  --theme-dark: #1f3152;
  --theme-soft: #eff4ff;
  --theme-glow: rgba(61, 82, 119, .17);
  background: linear-gradient(180deg, #fff 0%, #f1f5ff 100%)
}

.theme-wine {
  --theme: #7a3a4c;
  --theme-dark: #4c2230;
  --theme-soft: #fff0f6;
  --theme-glow: rgba(122, 58, 76, .16);
  background: linear-gradient(180deg, #fff 0%, #fff2f7 100%)
}

.theme-navy {
  --theme: #2e3a6e;
  --theme-dark: #111b44;
  --theme-soft: #f0f2ff;
  --theme-glow: rgba(46, 58, 110, .16);
  background: linear-gradient(180deg, #fff 0%, #f0f3ff 100%)
}

.service-number {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--theme-dark);
  color: #fff;
  font-family: var(--serif);
  letter-spacing: .12em
}

.service-copy .eyebrow {
  color: var(--theme)
}

.service-copy h2 {
  font-size: clamp(38px, 3.6vw, 58px);
  color: var(--theme-dark)
}

.service-copy .lead {
  font-size: 19px;
  color: #29384d
}

.text-card {
  margin-top: 26px;
  padding: 24px 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(16, 32, 56, .10);
  box-shadow: 0 12px 32px rgba(7, 23, 49, .06)
}

.text-card p {
  margin: 0
}

.check-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 13px
}

.check-list li {
  position: relative;
  padding: 15px 18px 15px 48px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(16, 32, 56, .09);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(7, 23, 49, .05)
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 17px;
  top: 13px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--theme);
  color: #fff;
  font-size: 14px
}

.service-media {
  position: relative
}

.main-visual {
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 72px rgba(7, 23, 49, .20);
  border: 1px solid rgba(255, 255, 255, .72)
}

.main-visual img {
  width: 100%;
  height: auto;
  object-fit: contain
}

.service02 .main-visual img {
  object-position: center
}

.mini-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px
}

.mini-media-grid.three {
  grid-template-columns: 1.2fr 1.1fr .75fr
}

.mini-media-grid figure,
.plan-image {
  margin: 0;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(16, 32, 56, .09);
  box-shadow: 0 10px 24px rgba(7, 23, 49, .08)
}

.mini-media-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px
}

.mini-media-grid.three img {
  height: 130px
}

.mini-media-grid figcaption {
  margin-top: 8px;
  text-align: center;
  font-weight: 800;
  color: var(--theme-dark);
  font-size: 13px
}

.plan-image {
  margin-top: 16px
}

.plan-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px
}

.service-detail-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 54px
}

.service-detail-grid.wide {
  grid-template-columns: repeat(4, 1fr)
}

.service-detail-grid article {
  padding: 26px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(16, 32, 56, .10);
  box-shadow: var(--shadow-soft)
}

.service-detail-grid span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--theme);
  color: #fff;
  font-family: var(--serif);
  font-weight: 900
}

.service-detail-grid strong {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--theme-dark);
  line-height: 1.45
}

.service-detail-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7
}

.final-cta {
  padding: 120px 0 140px;
  background: radial-gradient(circle at 80% 20%, rgba(233, 207, 141, .22), transparent 28%), linear-gradient(135deg, #05182f 0%, #0b2a50 55%, #071b36 100%);
  color: #fff;
  text-align: center
}

.final-inner {
  max-width: 960px
}

.final-inner h2 {
  font-size: clamp(38px, 3.4vw, 56px);
  color: #fff
}

.final-inner p:not(.section-kicker) {
  font-size: 18px;
  color: rgba(255, 255, 255, .78);
  margin: 22px auto 0;
  max-width: 760px
}

.final-actions {
  justify-content: center
}

.floating-cta {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60
}

.floating-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ead08e, #b99047);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 42px rgba(5, 24, 47, .28)
}

@media (max-width:1120px) {
  .section-inner {
    width: min(100% - 48px, 1040px)
  }

  .global-nav {
    display: none
  }

  .mobile-menu {
    display: inline-flex;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-radius: 999px;
    padding: 10px 14px
  }

  .hero-inner,
  .service-layout,
  .service-layout.reverse {
    grid-template-columns: 1fr;
    gap: 38px
  }

  .service-layout.reverse .service-copy,
  .service-layout.reverse .service-media {
    order: initial
  }

  .overview-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .merit-inner {
    grid-template-columns: 1fr
  }

  .main-visual img {
    height: auto
  }

  .hero-visual img {
    height: auto
  }

  .service-detail-grid.wide {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:768px) {
  body {
    background: #faf7f1
  }

  .section-inner {
    width: min(100% - 32px, 640px)
  }

  .utility-bar {
    display: none
  }

  .site-header {
    background: linear-gradient(90deg, #04162e, #0a2549)
  }

  .header-inner {
    height: 70px
  }

  .brand img {
    width: 210px
  }

  .header-cta {
    display: none
  }

  .mobile-scroll-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 16px 14px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    scrollbar-width: none
  }

  .mobile-scroll-nav::-webkit-scrollbar {
    display: none
  }

  .mobile-scroll-nav a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 12px;
    color: #fff
  }

  .hero-section {
    padding: 40px 0 54px;
    background: linear-gradient(180deg, #fff, #f7f1e8)
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch
  }

  .hero-copy {
    display: contents
  }

  .hero-copy h1 {
    /* 改行（<br>）以外では折り返さず、画面幅に応じて自動縮小 */
    white-space: nowrap;
    font-size: clamp(24px, 7vw, 40px)
  }

  .lead {
    font-size: 16px;
    line-height: 1.85;
    margin-top: 18px
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px
  }

  .btn {
    width: 100%;
    min-height: 52px
  }

  /* スマホ表示順: トップ画像 → コピー → 資料ダウンロードボタン → 3つのポイント */
  .hero-visual {
    order: -1;
    margin-bottom: 20px;
    border-radius: 22px
  }

  .hero-points {
    order: 2;
    grid-template-columns: 1fr;
    margin-top: 24px
  }

  .module-section {
    padding: 64px 0
  }

  .section-heading {
    margin-bottom: 28px
  }

  .section-heading h2 {
    font-size: 29px
  }

  .section-heading p {
    font-size: 15px
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 15px
  }

  .overview-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    text-align: left
  }

  .overview-card img {
    grid-row: 1/4;
    aspect-ratio: 16/9
  }

  .overview-card small,
  .overview-card strong,
  .overview-card span {
    text-align: left
  }

  .overview-card strong {
    font-size: 23px
  }

  .merit-band {
    padding: 60px 0
  }

  .merit-inner h2 {
    font-size: 28px
  }

  .merit-flow {
    grid-template-columns: 1fr
  }

  .service-section {
    padding: 68px 0
  }

  .service-copy h2 {
    font-size: 32px
  }

  .service-copy .lead {
    font-size: 15.5px
  }

  .text-card {
    padding: 20px 18px
  }

  .main-visual {
    border-radius: 22px
  }

  .mini-media-grid,
  .mini-media-grid.three {
    grid-template-columns: 1fr
  }

  .mini-media-grid img,
  .mini-media-grid.three img {
    height: auto
  }

  .plan-image img {
    height: auto
  }

  .service-detail-grid,
  .service-detail-grid.wide {
    grid-template-columns: 1fr;
    margin-top: 30px
  }

  .service-detail-grid article {
    padding: 22px 20px
  }

  .final-cta {
    padding: 76px 0 116px
  }

  .final-inner h2 {
    font-size: 31px
  }

  .floating-cta {
    left: 16px;
    right: 16px;
    bottom: 14px
  }

  .floating-cta a {
    width: 100%;
    height: 56px
  }

  .check-list li {
    font-size: 14px
  }

  .service-number {
    font-size: 13px
  }
}

@media (min-width:1440px) {
  .section-inner {
    width: min(1500px, calc(100% - 96px))
  }

  .hero-section {
    padding: 128px 0 112px
  }

  .hero-visual img {
    height: auto
  }

}

h1,
h2,
h3,
p,
li,
a,
span,
strong,
small,
figcaption {
  word-break: keep-all;
  overflow-wrap: break-word
}

@media (max-width: 768px) {
  h1, h2, h3, p, li, a, span, strong, small, figcaption {
    word-break: normal;
    overflow-wrap: anywhere
  }
  .hero-copy h1 span,
  .hero-copy h1 br {
    white-space: normal
  }
  main, section, article, .section-inner {
    max-width: 100%;
    overflow-wrap: anywhere
  }
}

.hero-copy h1 span {
  white-space: nowrap
}

.service-copy h2 {
  max-width: 12.5em
}

.check-list li::before {
  top: 50%;
  transform: translateY(-50%)
}

.site-footer {
  padding: 26px 24px calc(26px + env(safe-area-inset-bottom));
  background: #03162e;
  color: rgba(255, 255, 255, .72);
  text-align: center;
  font-size: 13px
}

.site-footer p {
  margin: 0
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 14px
}

.site-footer .footer-links a {
  color: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(233, 207, 141, .28);
  padding-bottom: 2px
}

.site-footer .footer-links a:hover {
  color: var(--gold2)
}

.hero-inner {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
  gap: 48px
}

.hero-copy h1 {
  font-size: clamp(42px, 4vw, 64px)
}

.hero-visual img {
  height: auto
}

.merit-inner {
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, .95fr);
  gap: 54px
}

.merit-inner h2 {
  font-size: clamp(34px, 3.1vw, 54px);
  line-height: 1.32
}

.merit-flow {
  grid-template-columns: repeat(2, 1fr)
}

.merit-flow article {
  min-height: 118px
}

.merit-flow b {
  font-size: 24px
}

.section-heading.center.light {
  max-width: 1180px
}

.final-inner {
  max-width: 1180px
}

.final-inner h2 {
  font-size: clamp(34px, 3vw, 50px)
}

@media (max-width:1120px) {

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

  .hero-visual img {
    height: auto
  }
}

@media (max-width:768px) {
  .hero-copy h1 {
    white-space: nowrap;
    font-size: clamp(24px, 7vw, 40px)
  }

  .merit-flow {
    grid-template-columns: 1fr
  }

  .final-inner h2 {
    font-size: 29px
  }
}

/* ===== Responsive repair: overflow and mobile layout ===== */
/* Width guards for nested grid/flex layouts */
html,
body {
  width: 100%;
}

body {
  overflow-x: hidden;
}

main,
section,
article,
div,
nav,
figure,
figcaption,
ul,
ol,
li,
header,
footer {
  min-width: 0;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

@media (max-width: 1120px) {
  .utility-inner {
    height: auto;
    min-height: 38px;
    padding-block: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
    line-height: 1.5;
  }

  .utility-inner p {
    flex: 1 1 100%;
  }

  .utility-links {
    flex-wrap: wrap;
    white-space: normal;
    gap: 8px 18px;
  }
}

@media (max-width: 768px) {
  .mobile-scroll-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: flex-start;
    row-gap: 8px;
  }

  .mobile-scroll-nav a {
    white-space: nowrap;
  }

  .hero-copy h1,
  .hero-copy h1 span {
    white-space: normal !important;
  }

  .hero-copy h1 br {
    display: block;
  }

  .floating-cta a {
    min-width: 0;
  }
}

/* ===== Final publish overflow guard ===== */
html,
body {
  max-width: 100%;
}

body {
  overflow-x: hidden;
}

.btn,
.header-cta,
.plan-cta,
.floating-cta a {
  min-width: 0;
  max-width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  h1,
  h2,
  h3,
  h4,
  p,
  li,
  dt,
  dd,
  a,
  span,
  strong,
  small,
  summary,
  figcaption {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .section-inner {
    max-width: 100%;
  }

  .utility-inner p,
  .lead,
  .section-heading p {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .section-inner {
    width: min(100% - 28px, 640px);
  }

  .brand img {
    max-width: min(210px, 60vw);
    height: auto;
  }
}
