:root {
  --bg: #f5e7de;
  --paper: #fff8ef;
  --ink: #1f2937;
  --moji: #545f6e;
  --muted: #64748b;
  --pink: #f998d1;
  --pink-dark: #ea80bd;
  --teal: #19bfb1;
  --line: rgba(31, 41, 55, 0.12);
  --shadow: 0 22px 60px rgba(90, 52, 24, 0.14);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
}

.distribute {
  display: none;
  /* 未満 */
  &.under760 {
    @media (width < 760px) {
      display: block;
    }
  }
  &.over760 {
    @media (760px <= width) {
      display: block;
    }
  }
  /* 未満 */
  &.under860 {
    @media (width < 860px) {
      display: block;
    }
  }
  &.over860 {
    @media (860px <= width) {
      display: block;
    }
  }
}


body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Zen Kaku Gothic Antique", "Noto Sans JP", sans-serif;
  background:
    /* radial-gradient(circle at 12% 18%, rgba(249, 115, 22, 0.16), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(14, 165, 233, 0.12), transparent 24%),
    linear-gradient(180deg, #fff8ef 0%, var(--bg) 58%, #f8efe6 100%); */
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--cc) 25%, transparent), transparent 28%),
    radial-gradient(circle at 86% 12%, rgb(233 214 14 / 11%), transparent 24%),
    linear-gradient(180deg, #fff8ef 0%, var(--bg) 58%, #fef6fe 100%);
}

button,
a {
  font: inherit;
}
a {
  color: var(--cc);
  &:hover {
    text-decoration: none;
  }
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 8px;
}

.brand img {
  display: block;
}

.diagnosis-page,
.result-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 0;

}

.intro,
.quiz-panel,
.result-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  /* background: color-mix(in srgb, var(--cc) 90%); */
  box-shadow: var(--shadow);
}



.intro {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: 24px;
  align-items: center;
  padding: clamp(34px, 7vw, 76px);
  padding-bottom: 120px;
}

.intro::before,
.result-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -38% -10%;
  height: 58%;
  background: #ffffff;
  border-radius: 50% 50% 0 0;
  opacity: 0.72;
}

.intro-copy,
.result-copy,
.result-visual,
.intro-characters {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--cc);
  background: #fff;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.13);
  font-size: 0.7rem;
  letter-spacing: 0;
  @media (760px <= width) {
    padding: 8px 16px;
  }
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.intro h1 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 7vw, 5rem);
  line-height: 1.4;
  letter-spacing: 0;
  text-shadow: 2px 2px 0 #fcf9dd;
  color: var(--cc);
  transform: translateX(-4px);
  @media (640px <= width) {
    max-width: 8em;
    line-height: 1.2;
    transform: translateX(-10px);
  }
}

.intro-copy p:not(.eyebrow) {
  max-width: 33em;
  margin-bottom: 32px;
  color: var(--moji);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.9;
}

.primary-button,
.share-button,
.retry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  border: 4px solid var(--cc);
  border-radius: 999px;
  color: #fff;
  background: var(--cc);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  @media (760px <= width) {
    min-height: 54px;
    padding: 0 26px;
  }
}

.primary-button:hover,
.share-button:hover,
.retry-link:hover {
  transform: translateY(-2px);
  background: var(--pink-dark);
  border-color: var(--pink);
}
.btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 3%;
}
.intro-characters {
  min-height: 410px;
}

.intro-characters img {
  position: absolute;
  width: clamp(150px, 22vw, 250px);
  filter: drop-shadow(0 24px 32px rgba(90, 52, 24, 0.18));
  animation: float 4.6s ease-in-out infinite;
}

.intro-characters img:nth-child(1) { /* オレンジ */
  right: 0%;
  top: 0%;
}

.intro-characters img:nth-child(2) { /* 赤 */
  left: -10%;
  top: 8%;
  animation-delay: -1.2s;
  z-index: 2;
}

.intro-characters img:nth-child(3) { /* 水色*/
  right: 15%;
  bottom: 0;
  animation-delay: -2.1s;
  z-index: 4;
}

.intro-characters img:nth-child(4) { /* 緑*/
  left: 0%;
  bottom: 0;
  animation-delay: -2.5s;
  z-index: 3;
}
.intro-characters img:nth-child(5) { /* 青  */
  right: 20%;
  top: 10%;
  animation-delay: -2.8s;
  z-index: 1;
}
.intro-characters img:nth-child(6) { /* 紫 */
  right: -10%;
  bottom: 5%;
  animation-delay: -3.1s;
}
.quiz-panel {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 46px);
}

.progress-wrap {
  margin-bottom: 30px;
}

.progress-text {
  margin-bottom: 10px;
  color: var(--orange-dark);
  font-weight: 900;
  text-align: right;
}

.progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2d5c1;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2eeba6, #14b8a6);
  transition: width 0.25s ease;
}

.quiz-panel h2 {
  margin-bottom: 28px;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.45;
}

.answer-list {
  display: grid;
  gap: 14px;
}

.answer-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 16px 18px;
  border: 2px solid rgba(249, 115, 22, 0.22);
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(90, 52, 24, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.answer-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}

.answer-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: 0 18px 34px rgba(90, 52, 24, 0.13);
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  gap: 12px;
  align-items: center;
  padding: clamp(20px, 6vw, 66px);
  padding-bottom: 30px;
  @media (760px <= width) {
    padding: clamp(28px, 6vw, 66px);
    padding-bottom: 120px;
  }
}

.result-copy h1 {
  margin-bottom: 14px;
  color: var(--moji);
  font-size: clamp(1rem, 3.2vw, 2rem);
  line-height: 1.55;
}

.result-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.4;
  letter-spacing: 0;
  text-shadow: 3px 3px 0 #fcf9dd;
  color: var(--cc);
  @media (760px <= width) {
    line-height: 1.2;
  }
}

.result-lead {
  max-width: 36em;
  margin-bottom: 26px;
  color: var(--moji);
  line-height: 1.9;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: relative;
  font-size: 13px;

  @media (760px <= width) {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 5%;
    font-size: 14px;
    gap: 12px;
  }
}

.share-button {
  background: #111827;
  border-color: #374151;
}

.share-button:hover {
  background: #000;
  border-color: #111827;
}


.result-visual {
  display: grid;
  place-items: center;
  margin: 0;
  @media (width < 760px) {
    position: absolute;
    right: 0;
    width: 59%;
    z-index: 0;
    top: 90px;
  }
}

.result-visual img {
  width: min(360px, 78vw);
  filter: drop-shadow(0 26px 34px rgba(90, 52, 24, 0.18));
  animation: float 4.8s ease-in-out infinite;
}

.sub-results {
  width: min(760px, 100%);
  margin: 28px auto 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 38px rgba(90, 52, 24, 0.08);
}

.sub-results h3 {
  margin-bottom: 16px;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

#sub-result-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#sub-result-list li {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--paper);
}

.result-detail__section {
  padding: clamp(28px, 6vw, 66px);
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 248, 239, 0.9);
  max-width: 880px;
  margin-inline: auto;
  margin-top: 40px;
  @media (760px <= width) {
    padding-bottom: 120px;
  }
  &:has(.peek) {
    @media (760px <= width) {
      padding-right: 180px;
    }
  }
  &::before{
    content: "";
    position: absolute;
    height: 58%;
    opacity: 0.72;
    inset: auto -10% -38%;
    background: rgb(255, 255, 255);
    border-radius: 50% 50% 0px 0px;
  }
  & h2 {
    font-size: clamp(1.2rem, 3.2vw, 2rem);
    color: var(--cc);
  }
  &:has(.logo) {
    padding-bottom: 160px;
    @media (760px <= width) {
      padding-bottom: 200px;
    }
  }
  & .result-detail__text {
    position: relative;
    z-index: 10;
  }
  & p {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    &.logo {
      width: 60%;
      max-width: 360px;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: 0;
    }
    &.peek {
      position: absolute;
      right: 0;
      top: 20%;
      width: 15%;
      z-index: 0;
      & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
  }
  & .result-detail__button-wrap {
    margin-top: 4em;
    text-align: center;
    & a {
      position: relative;
      font-size: 21px;
      &::before {
        content: "";
        position: absolute;
        left: 2%;
        top: -36px;
        width: 80px;
        aspect-ratio: 1254 / 510;
        background: var(--peekup) no-repeat center bottom / contain;
      }
      &.c06::before {
        top: -34px;
      }
    }
  }
  & .result-detail__cta-label {
    font-size: 12px;
    @media (760px <= width) {
      font-size: 14px;
    }
  }
}
.result-detail__note {
  padding: clamp(28px, 6vw, 66px);
  border-radius: 28px;
  max-width: 880px;
  margin-inline: auto;
  margin-top: 40px;
  font-size: 0.8rem;
  & h2 {
    font-size: 1rem;
  }
}


.is-hidden {
  display: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 16px;
  }

  .diagnosis-page,
  .result-page {
    width: min(100% - 22px, 1080px);
    padding-top: 22px;
  }

  .intro,
  .result-hero {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .intro {
    min-height: auto;
    gap: 0px;
    padding: 30px 22px 120px;
    max-width: 375px;
    margin-inline: auto;
  }

  .intro-characters {
    min-height: 245px;
    position: relative;
  }

  .intro-characters img {
    width: 160px;
  }

  .intro-characters img:nth-child(1) { /* オレンジ */
    right: 2%;
    top: 0%;
  }

  .intro-characters img:nth-child(2) { /* 赤 */
    left: -17%;
    top: 2%;
    width: 200px;
  }

  .intro-characters img:nth-child(3) { /* 水色*/
    right: auto;
    left: 35%;
    bottom: 1%;
    width: 170px;
  }

  .intro-characters img:nth-child(4) { /* 緑*/
    left: 5%;
    bottom: 0;
  }
  .intro-characters img:nth-child(5) { /* 青  */
    right: auto;
    left: 16%;
    top: 8%;
  }
  .intro-characters img:nth-child(6) { /* 紫 */
    right: -5%;
    bottom: 5%;
  }




  .quiz-panel {
    border-radius: 22px;
  }

  .answer-card {
    grid-template-columns: 36px 1fr;
    min-height: 68px;
    padding: 14px;
    border-radius: 16px;
  }

  .answer-card span {
    width: 36px;
    height: 36px;
  }

  .result-actions {
  }
}

footer {
  margin-top: 36px;
  padding-bottom: 36px;
  text-align: center;
  & p {
    max-width: 240px;
    margin: 0 auto;
    & img {
      margin-bottom: 0.25em;
    }
    & span {
      color: #53260e;
    }
  }
}