/* =========================================================
   赤ちゃんの頭の形ガイド LP
   元サイト: https://baby-headshape.studio.site/ (Studio)
   ========================================================= */

:root {
  --navy: #1d3a74;
  --red: #ff6568;
  --blue: #67c5fc;
  --blue-deep: #42b7fc;
  --green: #31d473;
  --beige: #f7f6f5;
  --white: #fff;
  --column: 480px;
  --font: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul {
  margin: 0;
  padding: 0;
}

ol, ul {
  list-style: none;
}

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

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

button {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

strong {
  font-weight: 700;
}

/* ---------- PC 表示時の背景とカラム ---------- */
.page-bg {
  position: fixed;
  inset: 0;
  height: 100dvh;
  background: url(../assets/bg-pc.webp) center / cover no-repeat;
  z-index: 0;
}

.page-shadow {
  position: fixed;
  inset: 0 0 auto;
  height: 100dvh;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.page-shadow > div {
  width: var(--column);
  max-width: 100%;
  height: 100%;
  box-shadow: 0 0 24px 0 #1d3a7429;
}

.page {
  position: relative;
  z-index: 1;
  width: var(--column);
  max-width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
}

.page > section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- 共通パーツ ---------- */
.logo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  font-weight: 700;
  line-height: 1.5;
}

.logo__pre {
  font-size: 14px;
}

.logo__main,
.logo__sub {
  font-size: 20px;
}

.logo__main {
  color: var(--red);
  margin-right: -3px;
}

.logo__sub {
  color: var(--blue);
}

.logo__mark {
  width: 39px;
  margin-left: -4px;
}

.big-title,
.hero__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.tag {
  background: var(--white);
  padding: 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 326px;
  max-width: 100%;
  padding: 18px 36px;
  border-radius: 40px;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  transition: scale 300ms ease-in-out, filter 300ms ease-in-out;
}

.btn:hover {
  filter: brightness(105%);
  scale: 1.05;
}

.btn img {
  flex: none;
}

.btn--line {
  background: var(--green);
  box-shadow: 0 8px 16px 0 rgba(6, 199, 85, 0.32);
}

.btn--line img {
  width: 20px;
}

.btn--red {
  background: var(--red);
  box-shadow: 0 8px 16px 0 rgba(255, 101, 104, 0.28);
}

.btn--red img {
  width: 18px;
}

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cta-block__icon {
  width: 64px;
}

.cta-block__text {
  margin-top: 8px;
  font-size: 14px;
  text-align: center;
}

.cta-block__text strong {
  color: var(--green);
}

.cta-block .btn {
  margin-top: 16px;
}

.dots {
  width: 5px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: center;
  font-weight: 700;
  line-height: 1.5;
}

.section-heading__sub {
  font-size: 16px;
  margin-bottom: -8px;
}

.section-heading__main {
  font-size: 32px;
}

.section-heading img {
  width: 79px;
}

.slashed {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.slashed img {
  width: 12px;
  flex: none;
}

.slashed__left {
  rotate: 180deg;
}

.slashed strong {
  color: var(--red);
}

/* ---------- ファーストビュー ---------- */
.hero {
  background: var(--beige);
  padding-bottom: 32px;
}

.hero__bg {
  position: absolute;
  inset: 0 0 auto;
  height: 456px;
  background: url(../assets/hero-bg.webp) center bottom / cover no-repeat;
  z-index: 0;
}

.site-header {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 16px 10px;
  background: var(--white);
  border-radius: 0 0 40px 40px;
}

.hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 136px;
  width: 100%;
  margin-top: 24px;
  padding: 0 20px;
}

.hero__cta {
  position: relative;
  z-index: 1;
  width: 355px;
  max-width: calc(100% - 40px);
  margin-top: 16px;
}

.hero .dots {
  position: relative;
  z-index: 1;
  margin-top: 32px;
}

/* ---------- リード画像 ---------- */
.lead {
  background: var(--beige);
  padding: 0 20px 56px;
}

.lead__frame {
  width: 335px;
  max-width: 100%;
  border: 4px solid var(--navy);
  border-radius: 24px;
  overflow: hidden;
}

.lead__frame img {
  width: 335px;
  margin-top: -4px;
}

/* ---------- 特徴 ---------- */
.features {
  background: var(--white);
  padding: 56px 20px 0;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  margin-top: 40px;
}

.feature {
  position: relative;
  padding: 16px;
  background: var(--beige);
  border-radius: 24px;
}

.feature__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature__head img {
  flex: none;
  width: 100px;
  border-radius: 96px;
}

.feature__title {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.feature__title strong {
  color: var(--red);
}

.feature__text {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(29, 58, 116, 0.4);
  font-size: 14px;
}

.feature__num {
  position: absolute;
  top: -28px;
  right: 16px;
  color: var(--blue);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.feature--reverse .feature__num {
  right: auto;
  left: 16px;
}

.no-sales {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.no-sales__bubble {
  width: 100%;
  margin-top: 16px;
  padding: 16px 32px 24px;
  background: #ebf7fe;
  border-radius: 80px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.no-sales__illust {
  width: 96px;
  margin-top: -12px;
}

/* ---------- 月齢別 ---------- */
.age {
  background: var(--beige);
  padding-top: 56px;
}

.age__bg {
  position: absolute;
  inset: 0 0 auto;
  height: 388px;
  background: url(../assets/age-bg.webp) center bottom / cover no-repeat;
  z-index: 0;
}

.age__intro {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 128px;
  width: 100%;
  padding: 0 20px;
}

.age__lead {
  font-size: 16px;
}

.age__box {
  position: relative;
  width: 100%;
  margin-top: 80px;
}

.speech {
  position: absolute;
  top: -24px;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
}

.speech__inner {
  position: relative;
  padding: 8px 24px;
  background: var(--white);
  border-radius: 32px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.speech__inner strong {
  color: var(--red);
  font-size: 16px;
}

.speech__icon {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 39px;
}

.speech__tail {
  position: absolute;
  bottom: -12px;
  left: 141px;
  width: 16px;
}

.age__wave {
  width: 100%;
}

.age__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 20px 56px;
  background: linear-gradient(180deg, #dbf1fe 0%, #ebf7ff 18.1%, #fff 40%);
}

.age__question {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.age__q-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.months {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.month {
  --month-color: var(--blue-deep);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 0 0;
  background: var(--white);
  border: 1px solid var(--month-color);
  border-radius: 16px;
  box-shadow: 0 4px 8px 0 rgba(29, 58, 116, 0.24);
  overflow: hidden;
  cursor: pointer;
  transition: scale 300ms ease-in-out, filter 300ms ease-in-out;
}

.month:hover {
  filter: brightness(110%);
  scale: 1.05;
}

.month--red {
  --month-color: var(--red);
}

.month--navy {
  --month-color: var(--navy);
}

.month__label {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
}

.month__num {
  font-size: 22px;
  line-height: 1.4;
}

.month__unit {
  padding-top: 4px;
  font-size: 14px;
  line-height: 1.8;
}

.month__img {
  width: 80px;
  height: 80px;
  background: center / cover no-repeat;
}

.month__check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  padding-bottom: 2px;
  background: var(--month-color);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.month__check img {
  width: 13px;
  margin-top: 3px;
}

.age__note {
  font-size: 14px;
}

.age__panel .slashed {
  margin-top: 8px;
}

/* ---------- 医療機関 ---------- */
.clinics {
  gap: 32px;
  padding: 56px 20px;
  background: linear-gradient(180deg, var(--beige) 0%, #fff 100%);
  overflow: hidden;
}

.clinics > * {
  position: relative;
  z-index: 1;
}

.clinics__deco {
  position: absolute;
  top: 32px;
  right: 0;
  width: 130px;
}

.clinics__title {
  width: 100%;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.clinics__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--navy);
  border-radius: 24px;
}

.clinics__card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.clinics__card-head img {
  width: 24px;
}

.clinics__card-head strong {
  color: var(--red);
}

.clinics__timing-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.clinics__timing-text {
  margin-top: 24px;
  font-size: 14px;
}

.clinics__timing-text strong {
  color: var(--red);
}

.clinics .clinics__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, #ebf7ff 81.9%, #dbf1fe 100%);
}

/* ---------- 治療のステップ ---------- */
.steps {
  background: var(--beige);
  padding: 56px 20px;
}

.step-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 400px;
  max-width: calc(100% - 16px);
  margin: 32px 8px 0;
}

.step-list::before {
  content: "";
  position: absolute;
  top: 80px;
  bottom: 99px;
  left: 35px;
  width: 3px;
  background: url(../assets/step-line.svg) center top repeat-y;
}

.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step--last::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 100%;
  background: var(--beige);
}

.step__img {
  position: relative;
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 72px;
  background: center / contain no-repeat;
}

.step__num {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: -4px 0 0 -4px;
  padding-top: 5px;
  background: var(--navy);
  border-radius: 32px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.step__body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.step__title strong {
  color: var(--red);
}

.step__text {
  font-size: 14px;
}

/* ---------- クロージング ---------- */
.closing {
  align-items: flex-start !important;
  gap: 64px;
  padding: 56px 20px 80px;
  background: var(--white);
}

.closing__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px;
  background: url(../assets/closing-bg.webp) center / cover no-repeat;
}

.closing__deco {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 111px;
}

.closing__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 104px;
  width: 100%;
}

.closing__cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.logo--small .logo__pre,
.logo--small .logo__main,
.logo--small .logo__sub {
  line-height: 1.5;
}

.logo--small .logo__pre {
  font-size: 14px;
}

.closing__cta > img {
  width: 64px;
}

.closing__text {
  font-size: 14px;
  text-align: center;
}

.site-footer {
  height: 100px;
  background: var(--navy);
}

/* ---------- 画面下部固定 CTA ---------- */
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  animation: fixed-cta-in 300ms ease-in-out both;
}

.fixed-cta__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: var(--column);
  max-width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.fixed-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 40px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  transition: scale 300ms ease-in-out, filter 300ms ease-in-out;
}

.fixed-cta__btn:hover {
  filter: brightness(105%);
  scale: 1.02;
}

.fixed-cta__btn img {
  flex: none;
}

.fixed-cta__btn--line {
  background: var(--green);
  box-shadow: 0 8px 16px 0 rgba(6, 199, 85, 0.32);
}

.fixed-cta__btn--red {
  background: var(--red);
  box-shadow: 0 8px 16px 0 rgba(255, 101, 104, 0.28);
}

@keyframes fixed-cta-in {
  from {
    opacity: 0;
    translate: 0 20px;
  }
}

/* ---------- 月齢別モーダル ---------- */
.modal {
  --modal-color: var(--blue);
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 32px 20px 48px;
  border: 0;
  background: transparent;
  overflow-y: auto;
}

.modal::backdrop {
  background: #1d3a74cc;
}

.modal[open] {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  animation: modal-in 300ms ease-out;
}

.modal--red {
  --modal-color: var(--red);
}

.modal--navy {
  --modal-color: var(--navy);
}

.modal__wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 335px;
  max-width: 100%;
}

.modal__close {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: -16px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--navy);
  border-radius: 32px;
  cursor: pointer;
  transition: scale 300ms ease-in-out, filter 300ms ease-in-out;
}

.modal__close:hover {
  filter: brightness(105%);
  scale: 1.2;
}

.modal__card {
  width: 100%;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  color: var(--navy);
}

.modal__ttl {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  background: var(--modal-color);
  color: var(--white);
  font-weight: 700;
}

.modal__num {
  font-size: 32px;
  line-height: 1.5;
}

.modal__unit {
  padding-top: 10px;
  font-size: 18px;
  line-height: 1.5;
}

.modal__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
}

.modal__title {
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.modal__head img {
  width: 80px;
  margin-top: 8px;
}

.modal__desc {
  width: 100%;
  margin-top: 4px;
  font-size: 14px;
}

.modal__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 24px 24px;
  background: var(--beige);
}

.modal__group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.pill {
  padding: 0 8px;
  background: var(--blue);
  border-radius: 20px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.pill--red {
  background: var(--red);
}

.modal__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.modal__list li {
  display: flex;
  align-items: flex-start;
  font-size: 12px;
}

.modal__list li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  background: url(../assets/icon-dot.svg) center / contain no-repeat;
}

.modal__line {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px dashed rgba(29, 58, 116, 0.4);
}

.modal__point {
  font-size: 12px;
  font-weight: 700;
}

@keyframes modal-in {
  from {
    opacity: 0;
  }
}

/* ---------- レスポンシブ（元サイトのブレイクポイント） ---------- */
@media screen and (max-width: 480px) {
  .month {
    padding-top: 2px;
  }
}

@media screen and (max-width: 360px) {
  .big-title,
  .hero__title {
    font-size: 23px;
  }

  .hero__copy {
    gap: 168px;
  }

  .tag {
    font-size: 13px;
  }

  .month__num {
    font-size: 20px;
  }

  .month__unit {
    font-size: 12px;
  }

  .clinics__card-head {
    font-size: 13px;
  }

  .btn--red {
    padding: 18px 24px;
    font-size: 16px;
  }
}
