:root {
  color-scheme: light;
  --pink: #d96f91;
  --pink-dark: #ae4067;
  --pink-light: #f7e2ea;
  --green: #54b949;
  --green-dark: #359d36;
  --blue: #00a9df;
  --orange: #e34713;
  --black: #151515;
  --gray: #d7d7d7;
  --text: #3b3034;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #ededed;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
strong,
.topbar,
.line-button,
.cta-panel__label {
  font-weight: 900;
  letter-spacing: 0.025em;
}

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

a {
  color: inherit;
}

.lp {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding-top: 46px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 26px rgb(0 0 0 / 9%);
}

.topbar {
  display: flex;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 50%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: min(100%, 430px);
  min-height: 46px;
  padding: 6px 9px;
  background: var(--white);
  border-bottom: 2px solid var(--black);
  box-shadow: 0 3px 12px rgb(0 0 0 / 13%);
  transform: translateX(-50%);
}

.topbar p {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  margin: 0;
  color: var(--black);
  font-size: clamp(12px, 3.6vw, 15px);
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.topbar p svg {
  flex: 0 0 auto;
  width: 23px;
  height: 14px;
}

.topbar p path {
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.topbar a {
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 4px;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.hero {
  position: relative;
  padding: 14px 12px 0;
  overflow: hidden;
  background: linear-gradient(160deg, #e184a3 0%, var(--pink) 100%);
  color: var(--white);
  text-align: center;
}

.hero__ribbon {
  display: inline-block;
  margin: 0;
  padding: 6px 13px;
  border: 2px solid var(--white);
  background: rgb(255 255 255 / 10%);
  font-size: 17px;
  font-weight: 900;
}

.hero h1 {
  margin: 8px 0 0;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.32;
  text-shadow: 0 2px 0 rgb(168 30 93 / 28%);
}

.hero img {
  width: 100%;
  margin: 4px auto -2px;
}

.hero__voices {
  display: flex;
  position: absolute;
  right: 13px;
  bottom: 52px;
  left: 13px;
  align-items: end;
  justify-content: space-between;
  margin: 0;
  pointer-events: none;
}

.hero__voices span {
  max-width: 125px;
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
  text-shadow: 0 1px 2px rgb(0 0 0 / 32%);
}

.title-band {
  padding: 9px 12px 10px;
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.title-band p,
.title-band strong {
  display: block;
  margin: 0;
  line-height: 1.25;
}

.title-band p {
  font-size: 13px;
}

.title-band strong {
  font-size: 23px;
}

.methods {
  padding: 27px 14px 23px;
  text-align: center;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.method-list article {
  min-width: 0;
}

.method-list img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.methods__voices {
  display: grid;
  gap: 7px;
  margin-top: 22px;
}

.methods__voices p {
  position: relative;
  margin: 0;
  padding: 7px 12px;
  border: 2px solid var(--pink);
  border-radius: 999px;
  background: var(--pink-light);
  color: var(--pink-dark);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.methods__voices p:first-child {
  margin-right: 34px;
}

.methods__voices p:last-child {
  margin-left: 34px;
}

.methods h2 {
  margin: 19px 0 7px;
  color: var(--black);
  font-size: 27px;
  font-weight: 900;
  line-height: 1.35;
}

.methods > p {
  margin: 0;
  color: #555;
  font-size: 15px;
  font-weight: 800;
}

.cta-panel {
  padding: 20px 15px 24px;
  background: var(--green);
  color: var(--white);
  text-align: center;
}

.cta-panel__label {
  display: inline-block;
  margin: 0;
  padding: 4px 14px;
  border: 2px dashed var(--pink);
  background: var(--white);
  color: var(--pink-dark);
  font-size: 23px;
  font-weight: 900;
}

.cta-panel__sub {
  margin: 10px 0 11px;
  font-size: 16px;
  font-weight: 900;
}

.line-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 98%;
  min-height: 64px;
  margin-right: auto;
  margin-left: auto;
  padding: 11px 21px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 4px 0 rgb(34 121 39 / 45%);
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
  transform-origin: center;
  animation: cta-pulse 1.4s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%,
  100% {
    transform: scale(0.97);
  }

  50% {
    transform: scale(1.03);
  }
}

.line-button__icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
}

.line-button__icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.line-button__icon path {
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.age-limit {
  display: block;
  margin-top: 13px;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
}

.steps {
  padding: 28px 15px 26px;
}

.steps h2,
.recommended h2,
.diagnosis h2 {
  margin: 0;
  color: var(--white);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
}

.steps h2 {
  margin: 0 26px 22px;
  padding: 10px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #df7c9e 0%, #d9668f 100%);
}

.steps h2::after {
  content: none;
}

.steps ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 8px 15px 8px 9px;
  border: 2px solid var(--pink);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 10px rgb(174 64 103 / 9%);
}

.steps__number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
}

.steps li strong {
  color: var(--black);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
}

.reveal-item {
  opacity: 0;
  transition:
    opacity 0.55s ease var(--reveal-delay, 0ms),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-fade {
  transform: translateY(22px);
}

.reveal-slide-left {
  transform: translateX(-48px);
}

.reveal-slide-right {
  transform: translateX(48px);
}

.reveal-slide-left,
.reveal-slide-right {
  transition-duration: 0.85s;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translate(0);
}

.personal {
  padding-top: 24px;
  text-align: center;
}

.personal > h2 {
  margin: 0 15px 15px;
  color: var(--black);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.4;
}

.personal__visual {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  height: 255px;
  padding: 0 10px 0 18px;
  overflow: hidden;
  background: linear-gradient(155deg, #df7f9f 0%, var(--pink) 100%);
  color: var(--white);
}

.personal__visual > div {
  align-self: center;
  text-align: left;
}

.personal__visual p {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.personal__visual strong {
  font-size: 27px;
  letter-spacing: 0;
  line-height: 1.45;
  white-space: nowrap;
}

.personal__visual img {
  align-self: start;
  width: 100%;
  height: 285px;
  object-fit: contain;
  object-position: top center;
  transform: translateY(13px);
}

.personal__message {
  margin: 14px 15px 5px;
  color: var(--pink-dark);
  font-size: 18px;
  font-weight: 900;
}

.cta-panel--second {
  margin-top: 0;
}

.recommended h2 {
  position: relative;
  padding: 10px;
  background: var(--pink);
}

.recommended h2::after {
  position: absolute;
  bottom: -18px;
  left: 50%;
  border-top: 19px solid var(--pink);
  border-right: 28px solid transparent;
  border-left: 28px solid transparent;
  content: "";
  transform: translateX(-50%);
}

.recommended__content {
  display: grid;
  gap: 24px;
  padding: 32px 16px 27px;
  background: var(--gray);
}

.recommended__item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 132px;
}

.recommended__item--right {
  grid-template-columns: minmax(0, 1fr) 132px;
}

.recommended__item--right .recommended__portrait {
  grid-row: 1;
  grid-column: 2;
}

.recommended__item--right p {
  grid-row: 1;
  grid-column: 1;
}

.recommended__portrait {
  display: block;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: contain;
}

.recommended__portrait--first,
.recommended__portrait--second {
  background-image: url("./assets/illustrations/recommend-scenes-v2.webp");
  background-repeat: no-repeat;
  background-size: 196px 294px;
}

.recommended__portrait--first {
  background-position: center -3px;
}

.recommended__portrait--second {
  background-position: center -150px;
}

.recommended__item p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 13px 12px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 3px 8px rgb(0 0 0 / 6%);
  color: #4a4546;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.55;
}

.recommended__item--left p::before,
.recommended__item--right p::after {
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  content: "";
  transform: translateY(-50%);
}

.recommended__item--left p::before {
  left: -10px;
  border-right: 11px solid var(--white);
}

.recommended__item--right p::after {
  right: -10px;
  border-left: 11px solid var(--white);
}

.diagnosis-intro {
  padding: 28px 16px;
  color: var(--pink-dark);
  text-align: center;
}

.diagnosis-intro p,
.diagnosis-intro strong {
  display: block;
  margin: 0;
}

.diagnosis-intro p {
  font-size: 17px;
  font-weight: 800;
}

.diagnosis-intro strong {
  font-size: 26px;
  font-weight: 900;
}

.diagnosis {
  padding: 18px 11px 26px;
  background: linear-gradient(180deg, #df7c9e 0%, #d9668f 100%);
}

.diagnosis h2 {
  display: inline-block;
  position: relative;
  left: 50%;
  margin-bottom: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgb(255 255 255 / 16%);
  border: 2px solid var(--white);
  transform: translateX(-50%);
  white-space: nowrap;
}

.diagnosis {
  scroll-margin-top: 46px;
}

.diagnosis form {
  display: grid;
  gap: 18px;
}

.diagnosis fieldset {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 0;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 5px 0 rgb(139 39 77 / 18%);
}

.diagnosis legend {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 0 14px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff0f5;
  color: var(--black);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.diagnosis legend span {
  display: inline-grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-size: 18px;
}

.choice-grid {
  display: grid;
  gap: 9px;
}

.choice-grid--two {
  grid-template-columns: repeat(2, 1fr);
  padding: 0 14px;
}

.choice-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.choice-grid--four {
  grid-template-columns: repeat(3, 1fr);
}

.choice-grid label {
  display: block;
  cursor: pointer;
}

.choice-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-grid label span {
  display: grid;
  min-height: 50px;
  padding: 9px 5px;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #e8e8e8;
  box-shadow: 0 2px 0 rgb(0 0 0 / 8%);
  color: #333;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.choice-grid input:checked + span {
  border-color: #c84f7b;
  background: var(--pink);
  color: var(--white);
}

.choice-grid input:focus-visible + span {
  outline: 3px solid rgb(39 168 215 / 45%);
  outline-offset: 2px;
}

.result-cta {
  padding: 18px 16px 24px;
  text-align: center;
}

.result-cta > p {
  margin: 0 0 10px;
  color: #76a8ff;
  font-size: 13px;
  font-weight: 800;
}

.result-cta .line-button {
  background: var(--green);
  color: var(--white);
}

.result-cta .line-button__icon {
  background: var(--white);
  color: var(--green);
}

.result-cta .age-limit {
  margin-top: 17px;
  color: #555;
}

.result-cta > .form-error {
  margin: 18px 0 0;
  color: #cf6673;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.footer {
  padding: 17px 12px;
  background: #292929;
  color: var(--white);
  text-align: center;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 12px;
}

.footer a,
.footer p {
  font-size: 8px;
}

.footer p {
  margin: 10px 0 0;
}

@media (max-width: 350px) {
  .topbar a {
    padding-right: 7px;
    padding-left: 7px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .diagnosis h2 {
    max-width: calc(100% - 4px);
    font-size: 22px;
  }

  .hero__voices span {
    font-size: 13px;
  }

  .methods__voices p {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 15px;
  }

  .methods__voices p:first-child {
    margin-right: 22px;
  }

  .methods__voices p:last-child {
    margin-left: 22px;
  }

  .personal__visual {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .personal__visual p {
    font-size: 16px;
  }

  .personal__visual strong {
    font-size: 24px;
  }

  .recommended__content {
    gap: 20px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .recommended__item {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 10px;
    min-height: 118px;
  }

  .recommended__item--right {
    grid-template-columns: minmax(0, 1fr) 118px;
  }

  .recommended__portrait {
    width: 118px;
    height: 118px;
  }

  .recommended__portrait--first,
  .recommended__portrait--second {
    background-size: 172px 258px;
  }

  .recommended__portrait--first {
    background-position: center -3px;
  }

  .recommended__portrait--second {
    background-position: center -131px;
  }

  .recommended__item p {
    padding: 11px 10px;
    font-size: 13px;
  }

  .choice-grid--four {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 700px) {
  body {
    padding: 0 0 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .line-button {
    animation: none;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
