/* ---------- Notes Section ---------- */
.notes-section {
  background: #F6F6F6;
  padding: 32px 0;
}

.notes-section .container {
  max-width: var(--container-width-l);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.notes-section .note-text {
  font-size: clamp(13px, calc(11.41px + 0.47vw), 15px);
  line-height: 1.7;
}

.area__notes-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(17px, calc(13.03px + 1.17vw), 22px);
  color: var(--color-text);
  text-align: center;
  margin-bottom: 6px;
}

@media (min-width: 769px) {
  .area__notes-title {
    font-size: clamp(18px, calc(16.66px + 0.17vw), 20px);
  }

  .notes-section .note-text {
    font-size: clamp(12px, calc(10.66px + 0.17vw), 14px);
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-main);
  padding: 24px 0;
  text-align: center;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 24px;
  row-gap: 8px;
}

.footer__nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.footer__nav a:hover {
  opacity: 0.7;
}

.footer__copyright {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text);
  margin-top: 8px;
}

/* ---------- Fixed Button ---------- */
.btn-fixed-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: 0;
  background-color: transparent;
  z-index: 100;
}

/* SP（max-width: 768px）: 帯状2ボタン半々（390で高さ70/文字18px） */
@media (max-width: 768px) {
  .btn-fixed-cta {
    flex: 1;
    width: 50%;
    height: clamp(60px, calc(-8px + 20vw), 100px);
    font-size: clamp(16px, calc(2.4px + 4vw), 24px);
    max-width: none;
    border-radius: 0;
    line-height: 1.3;
    text-align: center;
    box-shadow: none;
    padding: 0;
  }

  /* SP: グラデーション側は通常時borderなし（透明borderのシーム対策）。ベースの白borderも打ち消す */
  .btn-fixed-cta.drawer__cta-btn--primary {
    border: none;
  }

  /* ホバー時のグラデ枠線は ::after で描画（常時borderを持たせない） */
  .btn-fixed-cta.drawer__cta-btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(92.46deg, #02C19B 55.98%, var(--color-btn-yellow) 114.54%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .btn-fixed-cta.drawer__cta-btn--primary:hover::after {
    opacity: 1;
  }

  /* SP: 白側はグラデーションborder（緑→クリーム）+ SPメニュー白ボタンと同じグラデーションスライド */
  .btn-fixed-cta.drawer__cta-btn--line {
    background: linear-gradient(92.46deg, var(--color-white) 0%, var(--color-white) 50%, #FFFFB6 53%, #02C19B 72%);
    background-size: 250% 100%;
    background-position: 0% 0%;
    background-repeat: no-repeat;
    border: 2px solid;
    border-image-source: linear-gradient(92.46deg, #02C19B 55.98%, #FFFFB6 114.54%);
    border-image-slice: 1;
    color: #02C19B;
    transition: background-position 0.5s ease, color 0.3s ease;
  }

  /* SP: 白ボタンのホバー（グラデーションスライドでwhite→green、テキスト→白、枠は白に） */
  .btn-fixed-cta.drawer__cta-btn--line:hover {
    background-position: 100% 0%;
    color: var(--color-white);
    border-image-source: none;
    border-color: var(--color-white);
  }

  /* SP: 矢印非表示（帯状の中央寄せテキストに集中） */
  .btn-fixed-cta .drawer__cta-arrow {
    display: none;
  }
}

.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 16px;
  width: clamp(40px, 20.58px + 5.61vw, 55px);
  height: clamp(40px, 20.58px + 5.61vw, 55px);
  background: rgba(243, 102, 144, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

/* TOPページのみ固定CTAがあるので、その分上に */
.home .back-to-top {
  bottom: 100px;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top svg {
  width: 60%;
  height: auto;
}

@media (min-width: 769px) {
  .back-to-top {
    width: clamp(55px, 42.31px + 1.39vw, 70px);
    height: clamp(55px, 42.31px + 1.39vw, 70px);
    bottom: 40px;
    right: 32px;
  }

  /* PC: 丸2ボタン中央配置 */
  .btn-fixed-wrap {
    background: none;
    padding: 0;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100vw - 32px);
    gap: clamp(16px, calc(-0.04px + 2.09vw), 40px);
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .btn-fixed-wrap.is-visible {
    opacity: 1;
    visibility: visible;
  }

  /* PC固定2ボタン：1920で500×100×font28px、769でも読みやすい最小値（丸ボタンに戻す） */
  .btn-fixed-cta {
    width: clamp(280px, calc(133.04px + 19.11vw), 500px);
    max-width: none; /* drawer__cta-btn の max-width: 330px を解除 */
    height: clamp(65px, calc(41.62px + 3.04vw), 100px);
    font-size: clamp(18px, calc(11.32px + 0.87vw), 28px);
    border-radius: 100px;
    line-height: 1;
    box-shadow: 3px 3px 0px 0px rgba(60, 60, 60, 0.25);
    flex: none;
  }

  /* PC --primary: 通常は3px白border、ホバー時のみグラデーション枠線（::after で実装） */
  .btn-fixed-cta.drawer__cta-btn--primary {
    position: relative;
    border: 3px solid var(--color-white);
    border-image: none;
    overflow: visible;
    /* 予約する は文言が短いため文字を大きめにして間延びを防ぐ */
    font-size: clamp(22px, calc(13.31px + 1.13vw), 35px);
    transition: background-position 0.5s ease, color 0.3s ease, border-color 0.3s ease;
  }

  .btn-fixed-cta.drawer__cta-btn--primary::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    padding: 3px;
    background: linear-gradient(92.46deg, #02C19B 55.98%, #FFFFB6 114.54%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .btn-fixed-cta.drawer__cta-btn--primary:hover {
    border-color: transparent;
    border-image: none; /* SP base hover の border-image を打ち消し */
  }

  .btn-fixed-cta.drawer__cta-btn--primary:hover::after {
    opacity: 1;
  }

  /* PC --line: drawer標準の複雑グラデbackground/border戻し（3pxボーダー、SPのborder-image解除） */
  .btn-fixed-cta.drawer__cta-btn--line {
    background:
      linear-gradient(92.46deg, var(--color-white) 0%, var(--color-white) 50%, #FFFFB6 53%, #02C19B 72%) padding-box,
      linear-gradient(92.46deg, #02C19B 55.98%, #FFFFB6 114.54%) border-box;
    background-size: 250% 100%, 100% 100%;
    background-position: 0% 0%, 0% 0%;
    background-repeat: no-repeat, no-repeat;
    border: 3px solid transparent;
    border-image: none;
  }

  /* PC --line ホバー：白border + 背景スライド（PC normal の background-position 0% を打ち消し） */
  .btn-fixed-cta.drawer__cta-btn--line:hover {
    background-position: 100% 0%, 0% 0%;
    border-color: var(--color-white);
  }

  /* PC: 矢印戻し + 右端に固定して2ボタンで左右位置を揃える（文字は中央寄せのまま） */
  .btn-fixed-cta .drawer__cta-arrow {
    display: inline-block;
    position: absolute;
    top: 50%;
    right: clamp(16px, calc(7.98px + 1.04vw), 28px);
    margin-left: 0;
    transform: translateY(calc(-50% + 2px));
  }
}
