/* Utility: responsive visibility */
.is-sp {
  display: none !important;
}
.is-pc {
  display: block !important;
}

@media (max-width: 767px) {
  .is-sp {
    display: block !important;
  }
  .is-pc {
    display: none !important;
  }
}

a {
  transition: all 0.25s ease;
}

body {
  font-family: "fot-tsukuardgothic-std", sans-serif;
  font-weight: 400;
}

.container {
  /* 背景ストライプ（ピンク4px + 白8px = 12px周期） */
  background: repeating-linear-gradient(
    120deg,
    rgba(255, 219, 218, 0.25) 0 4px,
    #ffffff 4px 12px
  );
}

.inner {
  max-width: 1000px;
  padding: 0 15px;
  box-sizing: content-box;
  margin: 0 auto;

  @media screen and (max-width: 768px) {
    /* padding: 0 16px; */
  }
}

.imgTitle {
  @media screen and (max-width: 767px) {
    width: auto;
  }
}

/* ==================== header ==================== */
.header__main {
  padding: 25px 0 0;
}

.header__logo {
  width: 238px;

  @media screen and (max-width: 768px) {
    width: 190px;
    margin: 0 auto;
  }
}

/* ==================== footer ==================== */
.footer__copy {
  padding-top: 30px;
}

/* ==================== FV ==================== */
.fv {
  position: relative;

  @media screen and (max-width: 1000px) {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr;
  }
}
.fv__content {
  padding: 170px 0 140px;

  @media screen and (max-width: 1000px) {
    padding: 40px 0 20px;
  }
}

.fv__title {
  margin-bottom: 20px;

  @media screen and (max-width: 1000px) {
    /* text-align: center;
    font-size: 38.89px;
    line-height: 110%; */
    width: 80%;
    margin: 0 auto;
    margin-bottom: 25px;
  }

  /* b {
    color: #ef908e;
    font-size: 81.81px;

    @media screen and (max-width: 1000px) {
      font-size: 57.366px;
    }
  }

  span {
    @media screen and (max-width: 1000px) {
      font-size: 30px;
    }
  } */
}

.fv__texts {
  display: grid;
  gap: 20px;

  @media screen and (max-width: 1000px) {
    width: fit-content;
    margin: 0 auto;
  }
}

.fv__text {
  color: #525252;
  font-family: "Noto Sans JP";
  font-size: 18px;
  line-height: 200%;

  @media screen and (max-width: 768px) {
    font-size: 14px;
    line-height: 180%;
  }
}

.fv__text--yellow {
  position: relative;
  z-index: 0;
  &::after {
    content: "";
    width: 100%;
    height: 4px;
    position: absolute;
    bottom: 2px;
    left: 0;
    background: #ffdd00;
    z-index: -1;
  }
}

.fv__text--pink {
  color: #e06b69;
  position: relative;

  &::after {
    content: "";
    background: center / contain no-repeat url("../img/diagnosis_b_pink.svg");
    width: 120%;
    aspect-ratio: 148.76 / 6.18;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);

    @media screen and (max-width: 768px) {
      width: 110%;
    }
  }
}

.fv__img {
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  @media screen and (max-width: 1000px) {
    width: 100vw;
    margin: 0 calc(-50vw + 50%) -15px;
    z-index: 10;
    position: relative;
    top: auto;
    transform: none;
    right: auto;
  }

  img {
    @media screen and (max-width: 1000px) {
      width: 100%;
    }
  }
}

/* ==================== Question ==================== */
.question {
  padding-top: 35px;
  padding-bottom: 55px;
  max-width: 850px;
  margin: 0 auto;
}

.qHeader {
  .remaining {
    position: relative;
    width: 240px;
    margin: 0 auto;
    background: #ef908e;
    border-radius: 19px;
    margin-bottom: 18px;
    padding: 0 14px;
    text-align: center;

    span {
      position: relative;
      color: #fff;
      font-size: 20px;
    }
  }

  .remaining::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid #ef908e;
  }

  .progress {
    max-width: 640px;
    margin: 0 auto 40px;
    flex: 1 1 auto;
    height: 12px;
    background: #fde7ea;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    z-index: 10;

    @media screen and (max-width: 768px) {
      margin-bottom: -12px;
    }
  }

  .progress__bar {
    height: 100%;
    background: #ef908e;
    border-radius: inherit;
    transition: width 0.25s ease;
  }
}

.qBody {
  background: #fff;
  border-radius: 20px;
  padding: 30px 40px 45px;
  border: 3px solid #ffecec;
  animation: qFadeIn 0.3s ease-out both;

  @media screen and (max-width: 768px) {
    padding: 30px 18px 45px;
  }

  .qIndex {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    border: 4px solid #df7573;
    color: #df7573;
    border-radius: 50%;
    font-family: "BC_Alphapipe_RB_Bold";
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;

    @media screen and (max-width: 768px) {
      margin-bottom: 30px;
    }
  }

  .qTitle {
    color: #4d3229;
    text-align: center;
    font-size: 20px;
    line-height: 170%;
    margin-bottom: 8px;

    @media screen and (max-width: 768px) {
      margin-bottom: 6px;
      font-family: "FOT-TsukuARdGothicStd-B";
    }
  }

  .qNote {
    /* qTitle と同じスタイルで色のみ変更（任意/複数選択などの注記色） */
    color: #df7573;
    text-align: center;
    font-size: 20px;
    line-height: 170%;
    margin-bottom: 35px;

    @media screen and (max-width: 768px) {
      margin-bottom: 30px;
    }
  }
}

/* テキストエリア用の補足説明（例文） */
.qDesc {
  color: #9a847d;
  text-align: center;
  font-size: 18px;
  line-height: 150%;
  margin-bottom: 8px;

  @media screen and (max-width: 768px) {
    margin-bottom: 6px;
  }
}

/* Inputs + Buttons */
.actions {
  margin-top: 40px;
}

.prevBtn,
.nextBtn {
  border: none;
  border-radius: 33px;
  padding: 0 20px;
  margin: 0 auto;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  display: block;
  width: 100%;
  color: #fff;
}

.prevBtn::before,
.nextBtn::after {
  position: absolute;
  width: 24px;
  height: 24px;
}

.prevBtn {
  background: #f0a7b2;
  max-width: 384px;

  &::before {
    content: "";
    left: 18px;
    background: center / contain no-repeat
      url("../img/diagnosis_arrow_prev.svg");
    pointer-events: none;
  }
}

.nextBtn {
  background: #3ec1e5; /* 既存の通常色に戻す */
  max-width: 320px;

  &::after {
    content: "";
    right: 18px;
    background: center / contain no-repeat
      url("../img/diagnosis_arrow_next.svg");
    pointer-events: none;
  }
}

/* 最終設問の「診断結果を見る」だけ緑 */
.nextBtn--final {
  background: #14cd5f;
}

/* select/option */
.select,
.option {
  color: #4d3229;
  border: 2px solid #ffe5c0;
  background-color: #fff8ee;
  border-radius: 10px;
  padding: 0 20px;
  font-size: 15px;

  @media screen and (max-width: 768px) {
    font-family: "FOT-TsukuARdGothicStd-B";
  }
}

/* select */
.select {
  width: 100%;
  height: 76px;
  max-width: 437px;
  display: block;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
  appearance: none;

  /* 矢印アイコン */
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 10px 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'><path d='M1 3 L5 7 L9 3' stroke='%23525252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");

  @media screen and (max-width: 768px) {
    text-align: left;
  }
}

.select::-ms-expand {
  display: none;
}

/* option */
.options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.options.options--radio {
  grid-template-columns: 1fr 1fr;
  gap: 20px 25px;

  .option {
    height: 56px;
    box-shadow: 0 0 10px 0 rgba(134, 99, 50, 0.1);
  }
}

@media (max-width: 768px) {
  .options.options--radio {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.options--radio .option {
  justify-content: center;
}

.options--radio .option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.option input[type="radio"],
.option input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* ===== Checkbox custom style ===== */
.options.options--checkbox {
  grid-template-columns: 1fr 1fr;
  gap: 30px; /* PC gap */
  width: fit-content;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .options.options--checkbox {
    grid-template-columns: 1fr; /* SP: 1列 */
    gap: 20px; /* SP gap */
    max-width: none;
  }
}

.options--checkbox .option {
  position: relative;
  /* カード状の枠と背景を削除 */
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  /* チェックボックスサイズ（変更しやすいよう変数化） */
  --cb-size: 20px;
}
.options--checkbox .option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
/* テキスト包み */
.options--checkbox .option .cb {
  display: inline-flex;
  align-items: center;
}
/* 四角いボックス */
.options--checkbox .option .cb .box {
  width: var(--cb-size);
  height: var(--cb-size);
  margin-right: 10px;
  border-radius: 3px;
  border: 1px solid #ffe5c0;
  background: #fff8ee;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  position: relative;
}
/* チェック（%で配置） */
.options--checkbox .option input[type="checkbox"]:checked + .cb .box::after {
  content: "";
  position: absolute;
  left: 35%;
  top: 20%;
  width: 30%;
  height: 55%;
  border-right: 2px solid #df7573;
  border-bottom: 2px solid #df7573;
  transform: rotate(45deg);
}

.textarea {
  width: 100%;
  min-height: 160px;
  border-radius: 10px;
  border: 2px solid #fde7ea;
  background: #fff8f6;
  padding: 12px 14px;
  font-size: 15px;
  box-sizing: border-box;
}

@keyframes qFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== Result (診断結果) ==================== */
.result {
  padding: 25px 0 55px;
}

.result__intro {
  display: grid;
  grid-template-columns: 598fr 388fr;
  gap: 14px;
  align-items: center;
  padding-top: 10px;
  @media screen and (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 37px;
    padding-bottom: 12px;
    text-align: center;
  }
}
.result__introText {
  color: #4d3229;
  font-family: "Noto Sans JP";
  font-size: 20px;
  line-height: 2.2;
}
.result__introImg {
  width: 100%;
  height: auto;
  justify-self: end;
}

@media (max-width: 768px) {
  .result__intro {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 12px 22px;
  }
  .result__introText {
    font-size: 16px;
    line-height: 2;
  }
}

.result__sections {
  display: grid;
  gap: 50px;

  @media screen and (max-width: 768px) {
    gap: 40px;
    width: 100vw;
    margin: 0 calc(-50vw + 50%);
  }
}

.result__section {
  background: #fff;
  border: 3px solid #ffecec;
  border-radius: 24px;
  padding: 50px;

  @media screen and (max-width: 768px) {
    padding: 50px 16px;
  }
}

@media screen and (max-width: 768px) {
  .result__section:nth-of-type(2n + 1) {
    border-left: none;
    margin-right: 16px;
    border-radius: 0 100px 60px 0;
  }
  .result__section:nth-of-type(2n) {
    border-right: none;
    margin-left: 16px;
    border-radius: 100px 0 0 60px;
  }
}

.result__headEn {
  font-family: "BC_Alphapipe_RB_Bold";
  color: #fabcbb;
  font-size: 24px;
  font-weight: 700;
  line-height: 100%;
  margin-bottom: 3px;
  text-align: center;
}

.result__titleJa {
  color: #4d3229;
  text-align: center;
  font-size: 32px;
  line-height: 170%;
  margin-bottom: 20px;
  text-align: center;

  @media screen and (max-width: 768px) {
    font-size: 24px;
  }
}

.result__titleJa--features {
  img {
    width: 380px;

    @media screen and (max-width: 768px) {
      width: 290px;
    }
  }
}
.result__titleJa--risk {
  img {
    width: 475px;

    @media screen and (max-width: 768px) {
      width: 360px;
    }
  }
}
.result__titleJa--force {
  img {
    width: 340px;

    @media screen and (max-width: 768px) {
      width: 260px;
    }
  }
}
.result__titleJa--improvement {
  img {
    width: 450px;

    @media screen and (max-width: 768px) {
      width: 330px;
    }
  }
}

.result__icon {
  width: 144px;
  height: 144px;
  display: block;
  margin: 0 auto 30px;
}

.result__body {
  color: #525252;
  font-family: "Noto Sans JP";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%;

  @media screen and (max-width: 768px) {
    line-height: 170%;
  }
}

/* 続きを読む（グラデーションで隠す） */
.result__content {
  position: relative;
  overflow: hidden;
  max-height: 320px; /* JSで上書き */
  transition: max-height 0.5s ease;
}
.result__content::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 90%);
  transition: opacity 0.4s ease, z-index 0.4s ease;
}
.result__content.is-open::after {
  opacity: 0;
  z-index: -1;
}
.result__more {
}
.result__moreBtn {
  border-radius: 24px;
  border: 1px solid #ffe5c0;
  background: #fff8ee;

  color: #583f37;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 14px;
  font-weight: 500;
  line-height: 170%;

  display: block;
  max-width: 255px;
  width: 100%;
  height: 36px;
  margin: 0 auto;

  cursor: pointer;
  position: relative;
}
.result__moreBtn::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.25s ease;
  background: center / contain no-repeat
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M3 6l5 5 5-5' stroke='%23583F37' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.result__moreBtn.is-open {
  color: #ef908e;
  font-size: 20px;
  background: none;
  border: none;
  margin-top: 35px;
  width: 130px;
}
.result__moreBtn.is-open::after {
  transform: translateY(-50%) rotate(180deg);
}

.result__debug {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 16px;
  margin: 18px 0;
}
.result__debug h4 {
  margin: 0 0 8px;
  color: #333;
}
.result__debug pre {
  white-space: pre-wrap;
  font-size: 12px;
  color: #666;
}

.result__redo {
  text-align: center;
  margin-top: 24px;
}

.result__redoBtn {
  border: none;
  border-radius: 33px;
  height: 56px;
  padding: 0 24px;
  background: #3ec1e5;
  color: #fff;
  cursor: pointer;
}

/* ==================== Loading ==================== */
.loadingArea {
  min-height: 80vh;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 180%;
  text-align: center;
  @media screen and (max-width: 768px) {
    font-size: 20px;
    font-family: "FOT-TsukuARdGothicStd-B";
  }
}
.loading__title {
  color: #e06b69;
  margin: 60px 0 0;
}
.loading__desc {
  color: #4d3229;
}

/* Loader (pink) */
.loader {
  margin: 36px auto;
  font-size: 14px;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  position: relative;
  text-indent: -9999em;
  -webkit-animation: load5 1.1s infinite ease;
  animation: load5 1.1s infinite ease;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
@-webkit-keyframes load5 {
  0%,
  100% {
    box-shadow: 0em -2.6em 0em 0em #ef908e,
      1.8em -1.8em 0 0em rgba(239, 144, 142, 0.2),
      2.5em 0em 0 0em rgba(239, 144, 142, 0.2),
      1.75em 1.75em 0 0em rgba(239, 144, 142, 0.2),
      0em 2.5em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em 1.8em 0 0em rgba(239, 144, 142, 0.2),
      -2.6em 0em 0 0em rgba(239, 144, 142, 0.5),
      -1.8em -1.8em 0 0em rgba(239, 144, 142, 0.7);
  }
  12.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(239, 144, 142, 0.7),
      1.8em -1.8em 0 0em #ef908e, 2.5em 0em 0 0em rgba(239, 144, 142, 0.2),
      1.75em 1.75em 0 0em rgba(239, 144, 142, 0.2),
      0em 2.5em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em 1.8em 0 0em rgba(239, 144, 142, 0.2),
      -2.6em 0em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em -1.8em 0 0em rgba(239, 144, 142, 0.5);
  }
  25% {
    box-shadow: 0em -2.6em 0em 0em rgba(239, 144, 142, 0.5),
      1.8em -1.8em 0 0em rgba(239, 144, 142, 0.7), 2.5em 0em 0 0em #ef908e,
      1.75em 1.75em 0 0em rgba(239, 144, 142, 0.2),
      0em 2.5em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em 1.8em 0 0em rgba(239, 144, 142, 0.2),
      -2.6em 0em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em -1.8em 0 0em rgba(239, 144, 142, 0.2);
  }
  37.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(239, 144, 142, 0.2),
      1.8em -1.8em 0 0em rgba(239, 144, 142, 0.5),
      2.5em 0em 0 0em rgba(239, 144, 142, 0.7), 1.75em 1.75em 0 0em #ef908e,
      0em 2.5em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em 1.8em 0 0em rgba(239, 144, 142, 0.2),
      -2.6em 0em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em -1.8em 0 0em rgba(239, 144, 142, 0.2);
  }
  50% {
    box-shadow: 0em -2.6em 0em 0em rgba(239, 144, 142, 0.2),
      1.8em -1.8em 0 0em rgba(239, 144, 142, 0.2),
      2.5em 0em 0 0em rgba(239, 144, 142, 0.5),
      1.75em 1.75em 0 0em rgba(239, 144, 142, 0.7), 0em 2.5em 0 0em #ef908e,
      -1.8em 1.8em 0 0em rgba(239, 144, 142, 0.2),
      -2.6em 0em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em -1.8em 0 0em rgba(239, 144, 142, 0.2);
  }
  62.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(239, 144, 142, 0.2),
      1.8em -1.8em 0 0em rgba(239, 144, 142, 0.2),
      2.5em 0em 0 0em rgba(239, 144, 142, 0.2),
      1.75em 1.75em 0 0em rgba(239, 144, 142, 0.5),
      0em 2.5em 0 0em rgba(239, 144, 142, 0.7), -1.8em 1.8em 0 0em #ef908e,
      -2.6em 0em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em -1.8em 0 0em rgba(239, 144, 142, 0.2);
  }
  75% {
    box-shadow: 0em -2.6em 0em 0em rgba(239, 144, 142, 0.2),
      1.8em -1.8em 0 0em rgba(239, 144, 142, 0.2),
      2.5em 0em 0 0em rgba(239, 144, 142, 0.2),
      1.75em 1.75em 0 0em rgba(239, 144, 142, 0.2),
      0em 2.5em 0 0em rgba(239, 144, 142, 0.5),
      -1.8em 1.8em 0 0em rgba(239, 144, 142, 0.7),
      -2.6em 0em 0 0em rgba(239, 144, 142, 0.2), -1.8em -1.8em 0 0em #ef908e;
  }
  87.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(239, 144, 142, 0.2),
      1.8em -1.8em 0 0em rgba(239, 144, 142, 0.2),
      2.5em 0em 0 0em rgba(239, 144, 142, 0.2),
      1.75em 1.75em 0 0em rgba(239, 144, 142, 0.2),
      0em 2.5em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em 1.8em 0 0em rgba(239, 144, 142, 0.5),
      -2.6em 0em 0 0em rgba(239, 144, 142, 0.7), -1.8em -1.8em 0 0em #ef908e;
  }
}
@keyframes load5 {
  0%,
  100% {
    box-shadow: 0em -2.6em 0em 0em #ef908e,
      1.8em -1.8em 0 0em rgba(239, 144, 142, 0.2),
      2.5em 0em 0 0em rgba(239, 144, 142, 0.2),
      1.75em 1.75em 0 0em rgba(239, 144, 142, 0.2),
      0em 2.5em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em 1.8em 0 0em rgba(239, 144, 142, 0.2),
      -2.6em 0em 0 0em rgba(239, 144, 142, 0.5),
      -1.8em -1.8em 0 0em rgba(239, 144, 142, 0.7);
  }
  12.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(239, 144, 142, 0.7),
      1.8em -1.8em 0 0em #ef908e, 2.5em 0em 0 0em rgba(239, 144, 142, 0.2),
      1.75em 1.75em 0 0em rgba(239, 144, 142, 0.2),
      0em 2.5em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em 1.8em 0 0em rgba(239, 144, 142, 0.2),
      -2.6em 0em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em -1.8em 0 0em rgba(239, 144, 142, 0.5);
  }
  25% {
    box-shadow: 0em -2.6em 0em 0em rgba(239, 144, 142, 0.5),
      1.8em -1.8em 0 0em rgba(239, 144, 142, 0.7), 2.5em 0em 0 0em #ef908e,
      1.75em 1.75em 0 0em rgba(239, 144, 142, 0.2),
      0em 2.5em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em 1.8em 0 0em rgba(239, 144, 142, 0.2),
      -2.6em 0em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em -1.8em 0 0em rgba(239, 144, 142, 0.2);
  }
  37.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(239, 144, 142, 0.2),
      1.8em -1.8em 0 0em rgba(239, 144, 142, 0.5),
      2.5em 0em 0 0em rgba(239, 144, 142, 0.7), 1.75em 1.75em 0 0em #ef908e,
      0em 2.5em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em 1.8em 0 0em rgba(239, 144, 142, 0.2),
      -2.6em 0em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em -1.8em 0 0em rgba(239, 144, 142, 0.2);
  }
  50% {
    box-shadow: 0em -2.6em 0em 0em rgba(239, 144, 142, 0.2),
      1.8em -1.8em 0 0em rgba(239, 144, 142, 0.2),
      2.5em 0em 0 0em rgba(239, 144, 142, 0.5),
      1.75em 1.75em 0 0em rgba(239, 144, 142, 0.7), 0em 2.5em 0 0em #ef908e,
      -1.8em 1.8em 0 0em rgba(239, 144, 142, 0.2),
      -2.6em 0em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em -1.8em 0 0em rgba(239, 144, 142, 0.2);
  }
  62.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(239, 144, 142, 0.2),
      1.8em -1.8em 0 0em rgba(239, 144, 142, 0.2),
      2.5em 0em 0 0em rgba(239, 144, 142, 0.2),
      1.75em 1.75em 0 0em rgba(239, 144, 142, 0.5),
      0em 2.5em 0 0em rgba(239, 144, 142, 0.7), -1.8em 1.8em 0 0em #ef908e,
      -2.6em 0em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em -1.8em 0 0em rgba(239, 144, 142, 0.2);
  }
  75% {
    box-shadow: 0em -2.6em 0em 0em rgba(239, 144, 142, 0.2),
      1.8em -1.8em 0 0em rgba(239, 144, 142, 0.2),
      2.5em 0em 0 0em rgba(239, 144, 142, 0.2),
      1.75em 1.75em 0 0em rgba(239, 144, 142, 0.2),
      0em 2.5em 0 0em rgba(239, 144, 142, 0.5),
      -1.8em 1.8em 0 0em rgba(239, 144, 142, 0.7),
      -2.6em 0em 0 0em rgba(239, 144, 142, 0.2), -1.8em -1.8em 0 0em #ef908e;
  }
  87.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(239, 144, 142, 0.2),
      1.8em -1.8em 0 0em rgba(239, 144, 142, 0.2),
      2.5em 0em 0 0em rgba(239, 144, 142, 0.2),
      1.75em 1.75em 0 0em rgba(239, 144, 142, 0.2),
      0em 2.5em 0 0em rgba(239, 144, 142, 0.2),
      -1.8em 1.8em 0 0em rgba(239, 144, 142, 0.5),
      -2.6em 0em 0 0em rgba(239, 144, 142, 0.7), -1.8em -1.8em 0 0em #ef908e;
  }
}
/* ==================== Counselor ==================== */
.counselor {
  margin-top: 80px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  box-sizing: border-box;
  padding-bottom: 60px;

  @media screen and (max-width: 768px) {
    margin-top: 70px;
  }
}
.counselor__inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: content-box;
  padding: 0 16px;
}
.counselor__headEn {
  color: #ffd2d1;
  text-align: center;
  font-family: "BC_Alphapipe_RB_Bold";
  font-size: 24px;
  font-weight: 700;
  line-height: 100%;
  margin-bottom: 5px;
}
.counselor__title {
  color: #ef908e;
  text-align: center;
  font-size: 40px;
  line-height: 170%;
  /* letter-spacing: -2px; */
  margin-bottom: 16px;

  @media screen and (max-width: 768px) {
    font-size: 30px;
    /* letter-spacing: -1.5px; */
    margin-bottom: 24px;
  }

  img {
    width: 480px;

    @media screen and (max-width: 768px) {
      width: 360px;
    }
  }
}
.counselor__lead {
  color: #525252;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 16px;
  line-height: 200%;
  margin-bottom: 65px;

  @media screen and (max-width: 768px) {
    line-height: 180%;
    margin-bottom: 60px;
  }
}
.counselor__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  @media (max-width: 1000px) {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
    gap: 55px;
  }

  .counselor__card {
    border-radius: 18px 30px 30px 30px;
    border: 3px solid #ffecec;
    background: #fff;
    padding: 40px 20px;
    position: relative;
    font-family: "FOT-TsukuARdGothicStd-B";
  }
  .counselor__label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 100%;
    padding: 12px 0;
    color: #fff;
    text-align: center;
    font-size: 20px;
    line-height: 130%;

    border-radius: 24.5px;
    background: #ef908e;
  }
  .counselor__profile {
    display: flex;
    gap: 16px;
    align-items: center;
  }
  .counselor__photo {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    img {
      border: 1px solid #ffecec;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .counselor__name {
    color: #ef908e;
    font-size: 20px;
    line-height: 170%;
    letter-spacing: -1px;
    margin-bottom: 6px;
  }
  .counselor__nameKana {
    color: #4d3229;
    font-size: 14px;
    line-height: 170%;
    margin-left: 4px;
    display: inline-block;
  }
  .counselor__badges {
    display: flex;
    gap: 6px;
  }
  .counselor__badge {
    border-radius: 5px;
    border: 1px solid #ef908e;
    background: #fff;

    color: #ef908e;
    font-family: "Noto Sans JP";
    font-size: 14px;
    font-weight: 500;
    line-height: 170%;
    padding: 0 16px;
  }
  .counselor__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px;
    margin-top: 10px;
  }
  .counselor__tag {
    display: flex;
    align-items: center;
    gap: 3px;
    img {
      width: 12px;
      /* height: 12px;
      object-fit: cover; */
    }
    span {
      color: #a08a83;
      font-size: 12px;
      font-style: normal;
      line-height: 170%; /* 20.4px */
    }
  }
  .counselor__catch {
    color: #4d3229;
    text-align: center;
    font-size: 18px;
    line-height: 170%;
    letter-spacing: -0.9px;
    margin: 20px 0;
  }
  .counselor__more {
  }
  .counselor__moreBtn {
    color: #583f37;
    text-align: center;
    font-family: "Noto Sans JP";
    font-size: 14px;
    font-weight: 500;
    line-height: 170%;

    width: 100%;
    height: 36px;
    padding: 0 14px;
    cursor: pointer;
    position: relative;

    border-radius: 24px;
    border: 1px solid #ffe5c0;
    background: #fff8ee;
  }
  .counselor__moreBtn::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.25s ease;
    background: center / contain no-repeat
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M3 6l5 5 5-5' stroke='%23583F37' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  }
  .counselor__moreBtn.is-open::after {
    transform: translateY(-50%) rotate(180deg);
  }

  /* 下部の閉じるボタン（content内の最下部に配置） */
  .counselor__close {
    text-align: center;
    margin: 16px 0 0;
  }
  .counselor__closeBtn {
    color: #ef908e;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    line-height: 170%;
    width: 130px;
    height: 36px;
    margin: 20px auto 0;
    padding: 0 14px;
    cursor: pointer;
    position: relative;
    border: none;
    background: none;
  }
  .counselor__closeBtn::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%) rotate(180deg);
    transition: transform 0.25s ease;
    background: center / contain no-repeat
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M3 6l5 5 5-5' stroke='%23583F37' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  }

  /*  */
  .counselor__content {
    position: relative;
    overflow: hidden;
    max-height: 220px;
    transition: max-height 0.5s ease;
  }
  .counselor__content::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff8f6 90%);
  }
  .counselor__content.is-open::after {
    opacity: 0;
    z-index: -1;
  }
  .counselor__body {
    h4 {
      color: #4d3229;
      font-size: 18px;
      line-height: 170%;
      letter-spacing: -0.9px;
      margin: 30px 0 10px;
      position: relative;
      padding-left: 14px;
    }

    h4::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      border-radius: 1px;
      background: #3abdd9;
      /* transform: translateY(-50%); */
    }

    p {
      color: #525252;
      font-family: "Noto Sans JP";
      font-size: 14px;
      font-weight: 400;
      line-height: 170%;
    }
  }
}

/* ==================== CTA ==================== */
.cta {
  background: #fffff2;
  padding-bottom: 40px;
  width: 100vw;
  margin: 0 calc(-50vw + 50%);
}
.cta__header {
  position: relative;
  margin-bottom: 30px;

  @media screen and (max-width: 768px) {
    margin-bottom: 20px;
  }
}
.cta__headerBg {
  height: 222px;
  width: 100%;
  object-fit: cover;
  object-position: bottom;

  @media screen and (max-width: 768px) {
    display: block;
    height: 100%;
  }
}
.cta__headerImg {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  height: 236px;
  max-width: 293px;
  display: block;
  @media screen and (max-width: 768px) {
    display: none;
  }
}
.cta__body {
  display: grid;
  grid-template-columns: 428fr 460fr;
  gap: 35px;
  max-width: 924px;
  margin: 0 auto;

  @media screen and (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 16px;
  }
}
.cta__text {
  @media screen and (max-width: 768px) {
    padding: 0 14px;
  }
}
.cta__btn img {
  border-radius: 34.167px;
  border: 5.757px solid #fff;
  background: #14cd5f;
  box-shadow: 0 5.467px 13.667px 0 rgba(0, 0, 0, 0.1);
}

/* CTA reasons */
.ctaReasons {
  padding-top: 70px;
  padding-bottom: 80px;

  @media screen and (max-width: 768px) {
    padding-top: 50px;
    padding-bottom: 70px;
  }
}
.ctaReasons__title {
  color: #4d3229;
  text-align: center;
  font-size: 40px;
  line-height: 150%;
  margin-bottom: 40px;

  @media screen and (max-width: 768px) {
    font-size: 32px;
    margin-bottom: 30px;
  }

  img {
    width: 390px;

    @media screen and (max-width: 768px) {
      width: 240px;
    }
  }
}
@media (max-width: 768px) {
  .ctaReasons__title {
    font-size: 24px;
  }
}
.ctaReasons__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 28px;
  margin: 0 0 22px;
}
@media (max-width: 768px) {
  .ctaReasons__list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.ctaReasons__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: start;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid #fde7ea;
}
.ctaReasons__num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff0f1;
  color: #ef908e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.ctaReasons__headline {
  color: #ef908e;
  margin: 0 0 4px;
}
.ctaReasons__desc {
  color: #525252;
  margin: 0;
}
.ctaReasons__note {
  text-align: center;
  color: #4d3229;
  font-size: 20px;
  margin: 16px 0 6px;
}
.ctaReasons__off {
  text-align: center;
  color: #4d3229;
  font-size: 22px;
  margin-bottom: 14px;
}
.ctaReasons__off span {
  color: #ef908e;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ctaReasons__btn {
  text-align: center;
}

/* ==================== Leave Confirm Dialog ==================== */
.leaveConfirmDialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.leaveConfirmDialog__content {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.leaveConfirmDialog__content h3 {
  color: #4d3229;
  font-size: 24px;
  margin: 0 0 20px;
  font-weight: bold;
}
.leaveConfirmDialog__content p {
  color: #525252;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 30px;
}
.leaveConfirmDialog__buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}
.leaveConfirmDialog__btn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}
.leaveConfirmDialog__btn--cancel {
  background: #f0f0f0;
  color: #666;
}
.leaveConfirmDialog__btn--cancel:hover {
  background: #e0e0e0;
}
.leaveConfirmDialog__btn--confirm {
  background: #ef908e;
  color: #fff;
}
.leaveConfirmDialog__btn--confirm:hover {
  background: #df7573;
}

@media (max-width: 768px) {
  .leaveConfirmDialog__content {
    padding: 30px 20px;
    margin: 20px;
  }
  .leaveConfirmDialog__content h3 {
    font-size: 20px;
  }
  .leaveConfirmDialog__content p {
    font-size: 14px;
  }
  .leaveConfirmDialog__buttons {
    flex-direction: column;
  }
  .leaveConfirmDialog__btn {
    width: 100%;
  }
}
