:root {
  --page-max: 768px;
  --navy: #0b1d6b;
  --lavender: #d7cff8;
  --lavender-active: #9387ea;
  --soft-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #efefef;
  color: #111;
  font-family: "UD Digi Kyokasho", "UDデジタル教科書体N-R", "Yu Mincho", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

}

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

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

button {
  font: inherit;
}

.page-shell {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
}


.site-header {
  position: relative;
  z-index: 10;
}

.header-link {
  display: block;
}

.header-link img {
  width: 100%;
  height: auto;
}

/* =========================
   Hero
========================= */
.hero {
  background: #04103b;
}

.hero__visual {
  position: relative;
  aspect-ratio: 768 / 1000;
  background: url("../img/main_bg.jpg") center top / cover no-repeat;
}

.hero__main-text,
.hero__sub-text,
.hero__objects,
.hero__title-wrap,
.hero__cta {
  position: absolute;
  z-index: 2;
}

.hero__main-text {
  top: 8.1%;
  left: 4.2%;
  width: 47.2%;
}

.hero__sub-text {
  top: 27.4%;
  left: 4.3%;
  width: 47%;
}

.hero__objects {
  top: 42.5%;
  left: 4.2%;
  width: 47.1%;
}

.hero__objects img {
  width: 100%;
  height: auto;
}

.hero-float {
  animation: floatY 4.2s ease-in-out infinite;
}

.hero__title-wrap {
  position: absolute;
  left: 1.6%;
  width: 96.8%;
  bottom: 25.6%;
  isolation: isolate;
}

.hero__title-wrap img {
  width: 100%;
  height: auto;
}

.hero__title {
  position: relative;
  z-index: 3;
}

.hero__title-blur {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  transform: scale(1.06);
  filter: blur(8px) brightness(1.2);
  mix-blend-mode: normal;
  animation: titleBlurPulse 3s ease-in-out infinite;
}

.hero__cta {
  left: 2.3%;
  width: 95.2%;
  bottom: 2.3%;
}

.cta-link {
  display: block;
}

.section-cta {
  width: 95.963542%;
  margin: 0 auto;
}

.section-cta img,
.cta-link img {
  width: 100%;
  height: auto;
}

.pulse-cta {
  transform-origin: center;
  animation: ctaPulse 2.1s ease-in-out infinite;
}

/* =========================
   Common section
========================= */
.content-inner {
  width: 100%;
  padding: 24px 22px 30px;
}

.content-inner--narrow {
  padding-top: 14px;
  padding-bottom: 18px;
}

.section-soft {
  background: url("../img/prof_bg.jpg") center top / cover no-repeat;
}

.section-soft-blue {
  background: url("../img/worrie_q_bg.jpg") center top / cover no-repeat;
}

.section-title {
  width: 84.505208%;
  margin: 0 auto;
}

.section-title2 {
  width: 84.505208%;
  margin: 5% auto 8%;
}

/* =========================
   Profile
========================= */
.prof-section {
  text-align: center;
}

.prof-section .content-inner {
  padding-top: 22px;
  padding-bottom: 26px;
}

.prof-name {
  margin: 12px 0 10px;
  color: #cc2c8c;
  font-size: clamp(17px, 3.8vw, 28px);
  line-height: 1.55;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-family: "UD Digi Kyokasho", "UDデジタル教科書体N-R", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.prof-photo {
  width: 46.6%;
  margin: 0 auto 16px;
  border-radius: 50%;
}

.prof-copy {
  width: 80%;
  margin: 0 auto 14px;
  color: #5f3838;
  font-family: "UD Digi Kyokasho", "UDデジタル教科書体N-R", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.72;
  letter-spacing: 0.03em;
  text-align: left;
}

.hello-bar {
  width: 78%;
  margin: 0 auto 14px;
}

.video-box {
  width: 71.8%;
  margin: 0 auto 12px;
  background: #061d72;
}

.intro-video {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #08206e;
}

.arrow-down {
  width: 37.8%;
  margin: 4px auto 16px;
}

.arrow-bounce {
  animation: arrowBob 2.1s ease-in-out infinite;
}

.prof-section .section-cta {
  width: 94.8%;
}

/* =========================
   Steps
========================= */
.steps-section {
  background: #fff;
}

.steps-stage {
  position: relative;
  aspect-ratio: 768 / 1105;
  background: url("../img/step_bg.jpg") center top / 100% 100% no-repeat;
}

.steps-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 9% 5.2% 8.6%;
}

.steps-text-01 {
  width: 66.9%;
  margin-bottom: 5.1%;
}

.steps-text-02 {
  width: 87.4%;
  margin-bottom: 6.6%;
}

.step-card {
  width: 87.2%;
}

.step-card + .step-card {
  margin-top: 2.2%;
}

.steps-text-03 {
  width: 69.6%;
  margin-top: 4.4%;
}

/* =========================
   White text section
========================= */
.white-copy-section {
  background: #fff;
  text-align: center;
}

.white-copy-section .content-inner {
  padding-top: 12px;
  padding-bottom: 18px;
}

.white-copy-section .copy-image {
  margin-left: auto;
  margin-right: auto;
}

.white-copy-section .copy-image:first-of-type {
  width: 57.682292%;
}

.copy-image--bottom {
  width: 68.489583%;
  margin-top: 5%;
  margin-bottom: 14px;
}

.white-copy-section .section-cta {
  width: 94.8%;
}

/* =========================
   Worry
========================= */
.worry-section {
  text-align: center;
}

.worry-section .content-inner {
  padding-top: 20px;
  padding-bottom: 28px;
}

.worry-list {
  margin-top: 12px;
}

.worry-item {
  position: relative;
}

.worry-item img {
  width: 84.8%;
  height: auto;
}

.worry-item--right img {
  margin-left: 0;
  margin-right: auto;
}

.worry-item--left img {
  margin-left: auto;
  margin-right: 0;
}

.worry-item + .worry-item {
  margin-top: 11px;
}

.worry-item::before,
.worry-item::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(9px, 1.8vw, 14px);
  height: clamp(9px, 1.8vw, 14px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-50%);
  pointer-events: none;
}

.worry-item--right::after {
  right: 5.8%;
  box-shadow:
    clamp(16px, 3vw, 24px) 0 0 rgba(255, 255, 255, 0.84),
    clamp(32px, 6vw, 48px) 0 0 rgba(255, 255, 255, 0.74);
}

.worry-item--left::before {
  left: 5.8%;
  box-shadow:
    clamp(16px, 3vw, 24px) 0 0 rgba(255, 255, 255, 0.84),
    clamp(32px, 6vw, 48px) 0 0 rgba(255, 255, 255, 0.74);
}

.worry-item--right::before,
.worry-item--left::after {
  display: none;
}

.form-title {
  margin-top: 10%;
  margin-bottom: 8%;
}

/* =========================
   Form
========================= */
.diagnosis-form {
  display: grid;
  gap: 14px;
  font-family: "UD Digi Kyokasho", "UDデジタル教科書体N-R", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.question-card {
  width: 92.2%;
  margin: 0 auto;
  padding: 18px 14px 16px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  box-shadow: var(--soft-shadow);
}

.question-title {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(22px, 4.6vw, 34px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.choice-grid--age .choice-btn--wide {
  grid-column: 1 / -1;
  width: 52%;
  justify-self: center;
}

.choice-grid--contact {
  max-width: 78%;
  margin: 0 auto;
}

.choice-btn {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  background: var(--lavender);
  color: #fff;
  font-size: clamp(14px, 2.85vw, 20px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.choice-btn:active {
  transform: scale(0.98);
}

.choice-btn.is-selected,
.choice-btn[aria-pressed="true"] {
  background: var(--lavender-active);
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.12),
    0 6px 16px rgba(93, 79, 202, 0.18);
}

.choice-btn:focus-visible,
.cta-link:focus-visible {
  outline: 3px solid rgba(0, 132, 255, 0.35);
  outline-offset: 3px;
}

.worry-bottom-copy {
  margin-top: 12px;
  text-align: center;
}

.worry-bottom-copy .copy-image {
  width: 68.489583%;
  margin: 5% auto 12px;
}

.worry-bottom-copy .section-cta {
  width: 94.8%;
}

/* =========================
   Reveal
========================= */
.js-reveal {
  opacity: 0;
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(.2,.7,.15,1),
    filter 0.85s ease;
  will-change: transform, opacity;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.reveal-up {
  transform: translate3d(0, 36px, 0);
}

.reveal-down {
  transform: translate3d(0, -36px, 0);
}

.reveal-left {
  transform: translate3d(-42px, 0, 0);
}

.reveal-right {
  transform: translate3d(42px, 0, 0);
}

.reveal-flip-x {
  transform: perspective(900px) rotateY(85deg) scale(0.92);
}

.reveal-flip-y {
  transform: perspective(900px) rotateX(-85deg) scale(0.94);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

.delay-3 {
  transition-delay: 0.36s;
}

/* =========================
   Animation
========================= */
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.028); }
  55% { transform: scale(0.992); }
}

@keyframes arrowBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes titleBlurPulse {
  0%, 100% {
    opacity: 0.06;
    transform: scale(1.04);
    filter: blur(7px) brightness(1.08);
  }
  45% {
    opacity: 0.62;
    transform: scale(1.085);
    filter: blur(11px) brightness(1.38);
  }
  60% {
    opacity: 0.48;
    transform: scale(1.075);
    filter: blur(10px) brightness(1.28);
  }
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .content-inner {
    padding: 3.645833vw 2.864583vw 4.427083vw;
  }

  .content-inner--narrow {
    padding-top: 2.34375vw;
    padding-bottom: 3.125vw;
  }

  .prof-copy {
    width: 80%;
    font-size: clamp(10px, 2.9vw, 14px);
    line-height: 1.68;
  }

  .question-title {
    font-size: clamp(20px, 4.8vw, 30px);
  }

  .choice-btn {
    font-size: clamp(13px, 2.9vw, 18px);
  }
}

@media (max-width: 480px) {
  .content-inner {
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .hero__title-wrap {
    bottom: 25.2%;
  }

  .prof-name {
    font-size: 16px;
    line-height: 1.5;
    font-family: "UD Digi Kyokasho", "UDデジタル教科書体N-R", "Yu Mincho", "Hiragino Mincho ProN", serif;
  }

  .prof-copy {
    width: 80%;
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
  }

  .video-box {
    width: 73.5%;
  }

  .steps-text-02 {
    width: 88.5%;
  }

  .step-card {
    width: 88.6%;
  }

  .steps-text-03 {
    width: 71%;
  }

  .white-copy-section .copy-image:first-of-type {
    width: 61.5%;
  }

  .copy-image--bottom {
    width: 74%;
  }

  .worry-item img {
    width: 86.2%;
  }

  .question-card {
    width: 93.5%;
    padding: 16px 12px 14px;
  }

  .question-title {
    font-size: 18px;
  }

  .choice-grid {
    gap: 8px;
  }

  .choice-btn {
    min-height: 40px;
    font-size: 13px;
  }

  .choice-grid--age .choice-btn--wide {
    width: 56%;
  }

  .choice-grid--contact {
    max-width: 82%;
  }

  .worry-bottom-copy .copy-image {
    width: 74%;
  }
}

@media (min-width: 769px) {
  body {
    padding-bottom: 40px;
  }

  .page-shell {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}


