/* Shared LP framework for the three Kouki proposal pages. */
:root {
  --frame-max: 1160px;
  --space-section: clamp(68px, 7vw, 104px);
  --space-section-tight: clamp(48px, 5vw, 72px);
  --surface: #ffffff;
  --surface-blue: #eef6ff;
  --surface-gray: #f6f8fb;
  --ink-strong: #061f3f;
  --ink-soft: #5b6675;
  --ring: 0 0 0 3px rgba(0, 104, 183, .16);
}

body {
  background: var(--surface);
  overflow-x: hidden;
}

.container {
  width: min(var(--frame-max), calc(100% - 48px));
}

.top-alert {
  min-height: 34px;
  display: grid;
  place-items: center;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.site-header {
  box-shadow: 0 10px 26px rgba(6, 40, 71, .06);
}

.header-inner {
  min-height: 74px;
}

.nav {
  gap: 18px;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.btn,
.phone-link {
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn:hover,
.phone-link:hover {
  filter: brightness(1.02);
}

.hero {
  background: linear-gradient(180deg, #f5faff 0%, #e9f4ff 100%);
}

.hero::before {
  inset: 0 50% 0 0;
  background:
    linear-gradient(135deg, rgba(6, 40, 71, .98) 0%, rgba(8, 68, 130, .98) 100%);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.hero-inner {
  grid-template-columns: minmax(420px, .92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 5vw, 64px);
  min-height: clamp(620px, 68vh, 740px);
  padding: 48px 0;
}

.hero-copy {
  padding: 16px 0;
}

.hero-badge {
  margin-bottom: 20px;
  border: 1px solid rgba(6, 40, 71, .14);
  box-shadow: 0 8px 18px rgba(6, 40, 71, .12);
}

.hero-title {
  max-width: 660px;
  font-size: clamp(42px, 4.7vw, 64px);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero-lead {
  max-width: 600px;
  margin: 22px 0 24px;
  overflow-wrap: anywhere;
}

.hero-tags {
  gap: 9px;
}

.hero-tags span {
  min-height: 40px;
  box-shadow: 0 8px 20px rgba(6, 40, 71, .16);
}

.hero-actions .btn,
.hero-actions .phone-link {
  min-width: 190px;
}

.hero-visual {
  min-height: 530px;
}

.hero-photo {
  min-height: 530px;
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 22px 54px rgba(6, 40, 71, .22);
}

.hero-card {
  left: -42px;
  bottom: 38px;
  width: min(460px, calc(100% - 24px));
  padding: 20px;
}

.hero-card strong {
  font-size: 22px;
}

.hero-card-grid span {
  min-height: 52px;
}

.hero-proof {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(6, 40, 71, .06);
}

.proof-grid {
  border-left: 0;
}

.proof-item {
  display: grid;
  align-content: center;
  min-height: 116px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.proof-item:first-child {
  border-left: 1px solid var(--line);
}

.cta-band {
  background: linear-gradient(90deg, #123f91 0%, #0f55aa 100%);
}

.cta-band-inner {
  grid-template-columns: minmax(0, 1fr) auto;
}

.section {
  padding: var(--space-section) 0;
}

.section-tight {
  padding: var(--space-section-tight) 0;
}

.section-blue {
  background: linear-gradient(180deg, #f4f9ff 0%, #e9f4ff 100%);
}

.section-gray {
  background: var(--surface-gray);
}

.usp-focus {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .98)),
    linear-gradient(135deg, #eaf4ff 0%, #fff7ca 100%);
}

.usp-lead {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: end;
  margin-bottom: 34px;
}

.usp-lead h2 {
  margin-bottom: 0;
}

.usp-photo-grid {
  display: grid;
  grid-template-columns: 1.25fr .88fr .88fr;
  gap: 18px;
  align-items: stretch;
}

.usp-photo-card {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(6, 40, 71, .12);
}

.usp-photo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.usp-photo-card-large img {
  height: 100%;
  min-height: 420px;
}

.usp-photo-card div {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 28px rgba(6, 40, 71, .16);
}

.usp-photo-card strong {
  display: block;
  color: var(--ink-strong);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.usp-photo-card p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.usp-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.usp-mini {
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(6, 40, 71, .08);
}

.usp-mini span {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  min-height: 24px;
  margin-bottom: 10px;
  background: var(--yellow);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.usp-mini strong {
  display: block;
  color: var(--ink-strong);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.usp-mini p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.section-head {
  max-width: 820px;
  margin-bottom: 42px;
}

.symptom-detail-head {
  margin-top: 48px;
}

.section-head h2 {
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.lead {
  color: var(--ink-soft);
}

.campaign {
  grid-template-columns: 150px minmax(0, 1fr) auto;
  border-width: 3px;
}

.plans,
.reasons,
.symptoms,
.awards,
.flow {
  gap: 20px;
}

.cases {
  gap: 18px;
}

.plan-card,
.reason-card,
.symptom-card,
.case-card,
details,
.area-map,
.contact-form {
  border-radius: 8px;
}

.plan-card {
  border: 1px solid var(--line);
  border-top: 6px solid var(--blue);
}

.plan-card header {
  background: linear-gradient(90deg, #153f96 0%, #0068b7 100%);
}

.reason-card,
.symptom-card,
.case-card,
details {
  box-shadow: 0 10px 30px rgba(6, 40, 71, .08);
}

.reason-card img,
.symptom-card img,
.case-card img,
.showroom-photos img,
.form-side img {
  background: #edf4fb;
}

.form-side img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.reason-card h3,
.case-card h3,
.flow-step h3,
summary {
  color: var(--ink-strong);
}

.symptom-card h3 {
  line-height: 1.35;
}

.showroom-grid,
.area-grid,
.form-layout {
  gap: clamp(24px, 4vw, 40px);
}

.showroom-photos img {
  box-shadow: 0 12px 26px rgba(6, 40, 71, .08);
}

.area-list span {
  min-height: 46px;
}

.flow-step {
  min-height: 218px;
  box-shadow: 0 10px 28px rgba(6, 40, 71, .08);
}

.contact-form {
  border: 1px solid var(--line);
  border-top: 6px solid var(--blue);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.radio-grid label {
  background: #fff;
}

.radio-grid label:has(input:checked) {
  border-color: var(--blue);
  background: #eef5ff;
}

.sticky-cta {
  backdrop-filter: blur(10px);
}

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  }

  .hero-title {
    font-size: clamp(38px, 4.8vw, 56px);
  }
}

@media (max-width: 980px) {
  .container {
    width: min(100% - 28px, 720px);
  }

  .hero {
    background: var(--navy);
  }

  .hero::before {
    background: linear-gradient(180deg, #062847 0%, #0a4b85 100%);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding: 34px 0 36px;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(36px, 10vw, 44px);
    line-height: 1.12;
  }

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

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

  .hero-tags span {
    justify-content: center;
    min-height: 36px;
    padding: 7px 8px;
    text-align: center;
  }

  .hero-actions .btn,
  .hero-actions .phone-link {
    min-width: 0;
  }

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

  .hero-visual {
    min-height: 0;
  }

  .hero-photo {
    aspect-ratio: 16 / 11;
    border-radius: 8px;
    min-height: 0;
    object-position: 62% center;
  }

  .hero-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin: -26px 14px 0;
    padding: 16px;
  }

  .proof-grid {
    gap: 0;
  }

  .proof-item {
    border-bottom: 1px solid var(--line);
  }

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

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

  .cta-buttons,
  .cta-buttons .btn,
  .cta-buttons .phone-link {
    width: 100%;
  }

  h2,
  .usp-lead h2 {
    overflow-wrap: anywhere;
  }

  .usp-lead,
  .usp-photo-grid,
  .usp-mini-grid {
    grid-template-columns: 1fr;
  }

  .usp-photo-card img,
  .usp-photo-card-large img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .usp-photo-card div {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: -30px 14px 14px;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .symptom-detail-head {
    margin-top: 34px;
  }

  .plans,
  .reasons,
  .symptoms,
  .awards,
  .cases,
  .flow {
    gap: 16px;
  }

  .flow-step {
    min-height: 0;
  }

  .form-side {
    position: static;
  }
}

@media (max-width: 520px) {
  .container,
  .site-header .header-inner,
  .sticky-cta .container {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .top-alert {
    display: block;
    padding: 6px 14px;
    font-size: 11px;
    line-height: 1.35;
    word-break: break-all;
  }

  .header-inner {
    min-height: 66px;
    gap: 10px;
    justify-content: flex-start;
  }

  .header-actions {
    display: none;
  }

  .hero-copy {
    max-width: 100%;
    padding: 6px 0 0;
  }

  .hero-title {
    max-width: 100%;
    letter-spacing: 0;
    font-size: clamp(32px, 9vw, 38px);
    overflow-wrap: anywhere;
  }

  .hero-lead {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  h2,
  .cta-band strong,
  .lead,
  .usp-photo-card strong,
  .usp-mini strong,
  .usp-mini p {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .cta-band-inner > *,
  .usp-lead > *,
  .usp-mini,
  .proof-item {
    min-width: 0;
  }

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

  .hero-tags span {
    width: 100%;
  }

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

  .proof-item {
    grid-column: 1 / -1;
    min-height: 104px;
  }

  .cta-band strong {
    font-size: 21px;
  }

  .campaign h2 {
    font-size: 23px;
  }

  .contact-form {
    padding: 18px;
  }

  .sticky-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .sticky-inner .btn,
  .sticky-inner .phone-link {
    min-width: 0;
    padding: 10px 8px;
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }

  .sticky-inner .phone-link small {
    display: none;
  }
}
