body {
  max-width: 750px;
  margin: 0 auto;
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans',
    'Yu Gothic Medium', '游ゴシック Medium', YuGothic, '游ゴシック体', Meiryo, 'メイリオ',
    'Noto Sans JP', 'MS PGothic', 'ＭＳ Ｐゴシック', Arial, sans-serif;
  color: #333;
  letter-spacing: 0.01em;
}

.wapper {
  background: #e2ffe9;
}

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

video {
  display: block;
  width: 100%;
  object-fit: cover;
}

ul,
ol {
  padding: 0;
  margin: 0;
}

li {
  display: block;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  transition: all 0.3s;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

.flex-middle {
  align-items: center;
}

.container {
  width: 100%;
  padding: 0 40px;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.text-center {
  text-align: center;
}

.fv {
  padding-bottom: 112px;

  .information {
    padding-left: 12px;
    margin: 48px 0;

    p {
      margin-bottom: 18px;
      font-size: 40px;
      font-weight: 700;
      line-height: 1;

      span {
        display: inline-block;
        padding: 12px 16px;
        margin-right: 16px;
        font-size: 40px;
        font-weight: 500;
        color: #fff;
        background: #348e73;
        border-radius: 200px;
      }
    }
  }

  .intro {
    .title {
      padding: 0 20px;
    }

    .think {
      padding: 0 42px;
    }
  }
}

.section-title {
  max-width: 600px;
  padding-bottom: 12px;
  margin: 0 auto;
  border-bottom: 4px solid #333;

  img {
    width: auto;
    height: 64px;
    margin: 0 auto;
  }
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 48px;

  .question {
    display: flex;
    gap: 38px;

    .avata {
      width: 160px;
    }

    .description {
      position: relative;
      max-width: calc(100% - 198px);
      padding: 26px 20px 26px 24px;
      font-size: 32px;
      font-weight: 700;
      line-height: 1.4;
      color: #fff;
      background: #348e73;
      border-radius: 16px;

      &::before {
        position: absolute;
        top: 80px;
        left: -32px;
        width: 32px;
        height: 60px;
        content: '';
        background: url('../img/icon-question.svg') no-repeat center center/100% auto;
      }

      small {
        display: block;
        font-size: 20px;
      }
    }
  }

  .answer {
    display: flex;
    gap: 38px;
    justify-content: space-between;

    .avata {
      width: 160px;
    }

    .description {
      position: relative;
      width: calc(100% - 198px);
      padding: 24px 16px 24px 24px;
      font-size: 32px;
      font-weight: 700;
      line-height: 1.43;
      color: #333;
      background: #fff;
      border-radius: 16px;

      &::before {
        position: absolute;
        top: 80px;
        right: -32px;
        width: 32px;
        height: 60px;
        content: '';
        background: url('../img/icon-reply.svg') no-repeat center center/100% auto;
      }

      p {
        span {
          color: #df0004;
        }

        a {
          color: #df0004;
          text-decoration: underline;
        }
      }
    }
  }
}

.trigger {
  .chat {
    margin: 64px 0 118px;
  }

  .free {
    padding: 48px 0 112px;

    p {
      margin-bottom: 18px;
      font-size: 32px;
      font-weight: 500;
    }

    h2 {
      margin-bottom: 42px;
      font-size: 40px;
      line-height: 1.4;

      &:last-child {
        margin: 0;
      }

      span {
        color: #df0004;
        text-decoration: underline;
      }
    }

    .text2 {
      margin-bottom: 52px;
    }
  }

  .question-custom {
    .description {
      width: calc(100% - 198px);
    }

    .description::before {
      top: 34px;
    }
  }
}

.title-border {
  --theme-color: #df0004;

  display: inline-block;
  font-size: 32px;
  line-height: 1.2;
  color: var(--theme-color);
  border-bottom: 4px solid #333;
}

.benefits {
  .container {
    padding: 0 80px;
  }

  .box {
    padding: 26px 0 116px;
  }

  .list {
    margin-top: 32px;

    a {
      display: block;
      padding: 28px 38px;
      margin-bottom: 16px;
      font-size: 26px;
      font-weight: 900;
      line-height: 1.45;
      color: #333;
      background: #fff;
      border: 2px solid #333;
      border-radius: 16px;
      box-shadow: 4px 4px 0 0 #003a37;

      &:last-child {
        margin-bottom: 0;
      }

      strong {
        font-size: 36px;
        font-weight: 700;
      }

      &.phone-information {
        padding: 12px 38px 22px;

        strong {
          font-size: 48px;
        }
      }
    }

    p {
      font-size: 24px;
      font-weight: 400;
    }
  }
}

.video {
  padding-top: 68px;

  .video-title {
    position: absolute;
    top: 0;
    right: 8px;
    left: 8px;
    width: calc(100% - 24px);
  }
}

.reasons {
  padding-bottom: 112px;

  .chat {
    margin: 64px 0 62px;
  }

  .illustration {
    padding: 0 14px;
  }
}

.start {
  .chat {
    margin: 62px 0 164px;
  }

  .question-custom {
    margin: 10px 0;

    .description::before {
      top: 36px;
    }
  }

  .section-title img {
    height: 104px;
  }
}

.exercise {
  .question-custom {
    .description::before {
      bottom: 40%;
    }
  }

  .chat {
    padding: 64px 0 116px;
  }

  .section-title img {
    width: calc(100% + 40px);
    max-width: calc(100% + 40px);
    height: 56px;
    margin: 0 -18px;
  }

  .exercise-inner {
    position: relative;
    padding: 112px 16px 118px;
    background: #fff;

    &::before {
      position: absolute;
      top: 0;
      right: 0;
      left: 0;
      width: 160px;
      height: 42px;
      margin: 0 auto;
      content: '';
      background: url('../img/exercise/down.svg') no-repeat center center/100% auto;
    }

    .description {
      padding: 50px 0;

      p {
        margin-bottom: 16px;
        font-size: 32px;
        font-weight: 500;
        line-height: 1.45;
      }

      h3 {
        display: inline-block;
        padding: 0 10px;
        font-size: 40px;
        color: #fff;
        background: #21ad83;
      }
    }

    .clock {
      padding: 0 44px;
      margin: 0 auto 108px;
    }

    .change {
      padding: 0 46px;
    }
  }
}

.question-multi {
  .question {
    margin-bottom: 6px;
  }
}

.color-yellow {
  color: #e7ff01;
}

.experience {
  .question-custom {
    .description::before {
      top: 38px;
    }
  }

  .section-title {
    margin-bottom: 64px;
  }

  .video {
    padding: 0;
    margin: 48px 0;

    .video-title {
      inset: auto 20px 2px;
      width: calc(100% - 44px);
    }

    video {
      height: 448px;
    }
  }

  .top {
    padding: 112px 0 122px;
  }

  .campaign {
    padding: 52px 20px 10px;
    background: url('../img/experience/sec-campaign.webp') no-repeat center center/cover;

    .campaign-title {
      width: 100%;
      padding: 0 36px;
      margin-bottom: 24px;
    }
  }

  .day {
    padding-top: 118px;

    .day-title {
      width: calc(100% + 28px);
      max-width: inherit;
      height: 220px;
      margin: 0 -14px 20px;
    }

    .day-description {
      margin-bottom: 118px;

      p {
        font-size: 32px;
        font-weight: 500;
        line-height: 1.3;

        small {
          display: block;
          font-size: 20px;
        }
      }
    }

    .note {
      margin: 112px 0;

      p {
        margin-bottom: 20px;
        font-size: 32px;
        font-weight: 500;
        line-height: 1.4;
      }

      h3 {
        display: inline-block;
        font-size: 40px;
        line-height: 1.2;
        color: #df0004;
        border-bottom: 4px solid;
      }
    }

    .benefits {
      margin-top: 124px;
    }

    .store {
      padding-bottom: 112px;
      margin-top: 0;

      h2 {
        margin-bottom: 48px;
        font-size: 40px;
      }

      .list {
        margin: 0;

        a {
          padding: 18px 38px;
          font-size: 40px;
        }
      }
    }
  }
}

#footer {
  padding: 64px 0;
  background: #fff;

  .ft-logo {
    display: inline-block;
    width: auto;
    height: 166px;
    margin-bottom: 38px;
    border-radius: 16px;
    box-shadow: 0 8px 16px 0 #00000040;
  }

  .ft-menu {
    margin-bottom: 32px;

    ul {
      display: flex;
      flex-wrap: wrap;
      gap: 80px;
      justify-content: center;

      li {
        font-size: 24px;
        font-weight: 500;
        text-decoration: underline;

        a {
          color: #333;
        }
      }
    }
  }

  .copyright {
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
  }
}

.pt-5 {
  padding-top: 10px;
}

@media (width <= 750px) {
  .container {
    padding: 0 5.33vw;
  }

  .fv {
    padding-bottom: 14.93vw;

    .information {
      padding-left: 1.6vw;
      margin: 6.4vw 0;

      p {
        margin-bottom: 2.4vw;
        font-size: 5.33vw;

        span {
          padding: 1.6vw 2.13vw;
          margin-right: 2.13vw;
          font-size: 5.33vw;
          border-radius: 26.67vw;
        }
      }
    }

    .intro {
      .title {
        padding: 0 2.67vw;
      }

      .think {
        padding: 0 5.6vw;
      }
    }
  }

  .section-title {
    max-width: 80vw;
    padding-bottom: 1.6vw;
    border-bottom: 0.53vw solid #333;

    img {
      width: auto;
      height: 8.53vw;
    }
  }

  .chat {
    gap: 6.4vw;

    .question {
      gap: 5.07vw;

      .avata {
        width: 21.33vw;
      }

      .description {
        max-width: calc(100% - 26.4vw);
        padding: 3.47vw 2.67vw 3.47vw 3.2vw;
        font-size: 4.27vw;
        border-radius: 2.13vw;

        &::before {
          top: 10.67vw;
          left: -4.27vw;
          width: 4.27vw;
          height: 8vw;
        }

        small {
          font-size: 2.67vw;
        }
      }
    }

    .answer {
      gap: 5.07vw;

      .avata {
        width: 21.33vw;
      }

      .description {
        width: calc(100% - 26.4vw);
        padding: 3.2vw 2.13vw 3.2vw 3.2vw;
        font-size: 4.27vw;
        border-radius: 2.13vw;

        &::before {
          top: 10.67vw;
          right: -4.27vw;
          width: 4.27vw;
          height: 8vw;
        }
      }
    }
  }

  .trigger {
    .chat {
      margin: 8.53vw 0 15.73vw;
    }

    .free {
      padding: 6.4vw 0 14.93vw;

      p {
        margin-bottom: 2.4vw;
        font-size: 4.27vw;
      }

      h2 {
        margin-bottom: 5.6vw;
        font-size: 5.33vw;
      }

      .text2 {
        margin-bottom: 6.93vw;
      }
    }

    .question-custom {
      .description {
        width: calc(100% - 26.4vw);
      }

      .description::before {
        top: 4.53vw;
      }
    }
  }

  .title-border {
    font-size: 4.27vw;
    border-bottom: 0.53vw solid #333;
  }

  .benefits {
    .container {
      padding: 0 10.67vw;
    }

    .box {
      padding: 3.47vw 0 15.47vw;
    }

    .list {
      margin-top: 4.27vw;

      a {
        padding: 3.73vw 5.07vw;
        margin-bottom: 2.13vw;
        font-size: 3.47vw;
        border: 0.27vw solid #333;
        border-radius: 2.13vw;
        box-shadow: 0.53vw 0.53vw 0 0 #003a37;

        strong {
          font-size: 4.8vw;
        }

        &.phone-information {
          padding: 1.6vw 5.07vw 2.93vw;

          strong {
            font-size: 6.4vw;
          }
        }
      }

      p {
        font-size: 3.2vw;
      }
    }
  }

  .video {
    padding-top: 9.07vw;

    .video-title {
      right: 1.07vw;
      left: 1.07vw;
      width: calc(100% - 3.2vw);
    }
  }

  .reasons {
    padding-bottom: 14.93vw;

    .chat {
      margin: 8.53vw 0 8.27vw;
    }

    .illustration {
      padding: 0 1.87vw;
    }
  }

  .start {
    .chat {
      margin: 8.27vw 0 21.87vw;
    }

    .question-custom {
      margin: 1.33vw 0;

      .description::before {
        top: 4.8vw;
      }
    }

    .section-title img {
      height: 13.87vw;
    }
  }

  .exercise {
    .question-custom {
      .description::before {
        bottom: 40%;
      }
    }

    .chat {
      padding: 8.53vw 0 15.47vw;
    }

    .section-title img {
      width: calc(100% + 5.33vw);
      max-width: calc(100% + 5.33vw);
      height: 7.47vw;
      margin: 0 -2.4vw;
    }

    .exercise-inner {
      padding: 14.93vw 2.13vw 15.73vw;

      &::before {
        width: 21.33vw;
        height: 5.6vw;
      }

      .description {
        padding: 6.67vw 0;

        p {
          margin-bottom: 2.13vw;
          font-size: 4.27vw;
        }

        h3 {
          padding: 0 1.33vw;
          font-size: 5.33vw;
        }
      }

      .clock {
        padding: 0 5.87vw;
        margin-bottom: 14.4vw;
      }

      .change {
        padding: 0 6.13vw;
      }
    }
  }

  .question-multi {
    .question {
      margin-bottom: 0.8vw;
    }
  }

  .experience {
    .question-custom {
      .description::before {
        top: 5.07vw;
      }
    }

    .section-title {
      margin-bottom: 8.53vw;
    }

    .video {
      margin: 6.4vw 0;

      .video-title {
        right: 2.67vw;
        bottom: 0.27vw;
        left: 2.67vw;
        width: calc(100% - 5.87vw);
      }

      video {
        height: 59.73vw;
      }
    }

    .top {
      padding: 14.93vw 0 16.27vw;
    }

    .campaign {
      padding: 6.93vw 2.67vw 2vw;

      .campaign-title {
        padding: 0 4.8vw;
        margin-bottom: 3.2vw;
      }
    }

    .day {
      padding-top: 15.73vw;

      .day-title {
        width: calc(100% + 3.73vw);
        height: 29.33vw;
        margin: 0 -1.87vw 2.67vw;
      }

      .day-description {
        margin-bottom: 15.73vw;

        p {
          font-size: 4.27vw;

          small {
            font-size: 2.67vw;
          }
        }
      }

      .note {
        margin: 14.93vw 0;

        p {
          margin-bottom: 2.67vw;
          font-size: 4.27vw;
        }

        h3 {
          font-size: 5.33vw;
          border-bottom: 0.53vw solid;
        }
      }

      .benefits {
        margin-top: 16.53vw;
      }

      .store {
        padding-bottom: 14.93vw;

        h2 {
          margin-bottom: 6.4vw;
          font-size: 5.33vw;
        }

        .list {
          a {
            padding: 2.4vw 5.07vw;
            font-size: 5.33vw;
          }
        }
      }
    }
  }

  #footer {
    padding: 8.53vw 0;

    .ft-logo {
      height: 22.13vw;
      margin-bottom: 5.07vw;
      border-radius: 2.13vw;
      box-shadow: 0 1.07vw 2.13vw 0 #00000040;
    }

    .ft-menu {
      margin-bottom: 4.27vw;

      ul {
        gap: 10.67vw;

        li {
          font-size: 3.2vw;
        }
      }
    }

    .copyright {
      font-size: 2.67vw;
    }
  }

  .pt-5 {
    padding-top: 1.33vw;
  }
}

.animation-scroll {
  &.fade-in-right {
    opacity: 0;
    transition: all 0.8s ease-in-out 0s;
    transform: translateX(20px);

    &.active {
      opacity: 1;
      transform: translateX(0);
    }
  }

  &.fade-in-left {
    opacity: 0;
    transition: all 0.8s ease-in-out 0s;
    transform: translateX(-20px);

    &.active {
      opacity: 1;
      transform: translateX(0);
    }
  }

  &.fade-in-up {
    opacity: 0;
    transition: all 0.8s ease-in-out 0s;
    transform: translateY(20px);

    &.active {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.zoom-in {
  opacity: 0;
  animation: none;

  &.active {
    animation: zoomIcon 0.7s ease-in-out forwards;
  }
}

@keyframes zoomIcon {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animated-delay3 {
  transition-delay: 0.4s !important;
  animation-delay: 0.4s !important;
}

.animated-delay5 {
  transition-delay: 0.8s !important;
  animation-delay: 0.8s !important;
}

.experience-note-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-top: 20px;

  .experience-note {
    font-size: 16px;
    font-weight: 500;
    color: #df0004;
  }
}

/* オーバーレイのスタイル */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000; /* 他のコンテンツより前面に */
  display: flex;
  align-items: center; /* 中央に配置に変更 */
  justify-content: center;
  width: 100%;
  height: 100%;
  visibility: hidden; /* 初期状態は非表示 */
  background-color: rgb(0 0 0 / 50%); /* 半透明の黒 */
  opacity: 0; /* 初期状態は透明 */
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease; /* フェードイン・アウト用 */
}

/* ポップアップ本体のスタイル */
.popup-modal {
  position: relative; /* 子要素のabsolute基準 */

  /* 中央配置と初期位置調整 */
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px; /* 最大幅 */
  max-width: 85%;
  padding: 20px;
  text-align: center;
  background-color: rgb(0 97 92 / 100%);
  border-radius: 12px;
  box-shadow:
    2px 2px 0 0 rgb(0 47 45 / 100%),
    inset -4px -4px 4px 0 rgb(0 0 0 / 25%),
    inset 4px 4px 4px 0 rgb(255 255 255 / 40%);
  opacity: 0; /* 初期状態は透明 */
  transition:
    transform 0.5s ease,
    opacity 0.5s ease; /* スライドアップとフェードイン用 */

  transform: translate(-50%, 100%); /* 初期状態：中央寄せ（水平）+ 自身の高さ分下に移動 */
}

.popup-note {
  margin-top: 10px;
  color: white;
  line-height: 1.5;
    font-size: 12px;
}

.popup-button-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;

  a {
    display: inline-block;
    width: 100%;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 900;
    color: rgb(0 0 0 / 100%);
    text-decoration: none;
    background-color: white; /* ボタンの背景色 */
    border-radius: 8px;
    box-shadow: 2px 2px 0 0 rgb(0 47 45 / 100%);
    transition:
      background-color 0.3s ease,
      box-shadow 0.3s ease;

    &:hover {
      background-color: rgb(255 255 255 / 80%); /* ホバー時の背景色 */
      box-shadow: 4px 4px 0 0 rgb(0 47 45 / 100%); /* ホバー時の影 */
    }

    strong {
      font-size: 0.9em;
      font-weight: 700;
    }
  }
}

/* 表示状態のオーバーレイ */
.popup-overlay.is-active {
  visibility: visible;
  opacity: 1;
}

/* 表示状態のポップアップ本体 */
.popup-overlay.is-active .popup-modal {
  opacity: 1; /* 不透明に */
  transform: translate(-50%, -50%); /* 中央に移動 */
}

/* 閉じるボタンのスタイル */
.popup-close {
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: 1; /* 閉じるボタンが他のコンテンツの下に隠れないように */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  aspect-ratio: 1;
  font-size: 24px;
  line-height: 1;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  border: 2px solid white;
  border-radius: 50%;

  &:hover {
    color: rgb(172 169 169);
    border-color: rgb(172 169 169);
  }
}

.popup-note-container {
  margin: 10px 0;
  text-align: left;
}
