:root {
  --fv-max-width: 480px;

  --color-edobrown: #7C5848;
  --color-warmpink: #FFAEAE;
  --color-white: #FFFFFF;
  --color-slategray: #333333;
  --color-cream: #FFFBF7;
  --color-happy-yellow: #E8A800;

  --fv-bg: rgb(255 174 174 / 50%);
  --section-bg: rgb(255 174 174 / 20%);
}

*,
::before,
::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--fv-bg);
}

/* スクロールバーは見た目上は非表示にしつつ、スクロール自体は維持する */
html,
body,
.section-frame {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.section-frame::-webkit-scrollbar {
  display: none;
}

/* ボタンクリックまでは次セクションへスクロールさせない */
html.is-scroll-locked,
body.is-scroll-locked {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--color-slategray);
}

/* FV: 背景は常に固定表示 */
.fv {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  height: calc(var(--vh, 1vh) * 100);
  background-color: var(--fv-bg);
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* 固定背景の左側の余白(ガター)の、上下左右ど真ん中に配置するロゴ。
   ガター幅は (画面幅 - フレーム幅) / 2 なので、その中心は画面端から (画面幅 - フレーム幅) / 4。
   position: fixed にすることで、2ndセクション以降スクロールしても常に同じ位置に表示され続ける */
.fv__logo {
  position: fixed;
  left: calc((100% - var(--frame-w, 480px)) / 4);
  top: 50%;
  transform: translate(-50%, -50%);
  width: 256px;
  height: auto;
  z-index: 20;
}

/* 固定背景の右側ガターの、上下左右ど真ん中に配置するQRコード。ロゴと左右対称に配置する */
.fv__qr {
  position: fixed;
  right: calc((100% - var(--frame-w, 480px)) / 4);
  top: 50%;
  transform: translate(50%, -50%);
  width: 137px;
  height: auto;
  border: 5px solid var(--color-white);
  z-index: 20;
  display: block;
  animation: shop-logo-pulse 4s ease-in-out infinite;
  transition: opacity 0.2s ease;
}

.fv__qr img {
  display: block;
  width: 100%;
  height: auto;
}

.fv__qr:hover,
.fv__qr:focus-visible {
  opacity: 0.78;
}

.fv__qr:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 4px;
}

/* スマホでは左右のガターがないため、固定ロゴとQRコードを表示しない */
@media (max-width: 768px) {
  .fv__logo,
  .fv__qr {
    display: none;
  }
}

@keyframes shop-logo-pulse {
  0%, 100% {
    transform: translate(50%, -50%) scale(1);
  }
  50% {
    transform: translate(50%, -50%) scale(1.15);
  }
}

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

/* 各セクション共通のフレーム: 横幅を基準に9:16の比率で高さを算出し、
   常にその高さいっぱいまで表示する。中央エリア自体はスクロールさせない */
.section-frame {
  width: min(100%, calc(var(--vh, 1vh) * 100 * 9 / 16));
  width: min(100%, calc(100dvh * 9 / 16));
  width: var(--frame-w, min(100%, calc(100dvh * 9 / 16)));
  max-width: var(--fv-max-width);
  height: 100dvh;
  height: calc(var(--vh, 1vh) * 100);
  height: var(--frame-h, 100dvh);
  margin: 0 auto;
  overflow: hidden;
  overscroll-behavior: none;
  background-color: var(--color-white);
  background-image: linear-gradient(var(--section-bg), var(--section-bg));
}

.fv__frame {
  display: flex;
  flex-direction: column;
}

.fv__image {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fv__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#section-2 .fv__image {
  overflow: hidden;
}

#section-2 .fv__image img {
  object-fit: cover;
  object-position: center 42%;
}

.fv__question {
  flex: 0 0 auto;
}

.fv__question-text {
  margin: 0;
  padding: 8px 8px 0;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  color: var(--color-slategray);
}

/* ボタンの直上に置かれるテキストだけを太字にする(他の場所での再利用には影響させない) */
.fv__question-text:has(+ .fv__buttons),
.next-section__body:has(+ .next-section__arrow),
.next-section__subtitle:has(+ .next-section__arrow) {
  font-weight: bold;
}

.fv__buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 6px 8px;
}

.fv__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid var(--color-edobrown);
  background-color: var(--color-edobrown);
  color: var(--color-white);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.26s ease;
}

.fv__btn:hover:not(.is-active) {
  border-color: var(--color-happy-yellow);
  background-color: var(--color-happy-yellow);
  color: var(--color-slategray);
}

.fv__btn.is-active {
  border-color: var(--color-warmpink);
  background-color: var(--color-warmpink);
  color: var(--color-white);
}

/* ルーレット演出: JS側で1つずつ順番にこのクラスを付け外しして拡大→縮小を繰り返す */
.fv__btn.is-rouletting {
  transform: scale(1.1);
}

.fv__note {
  margin: 0;
  padding: 4px 8px 4px;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  color: var(--color-slategray);
}

/* 前のセクション分の実ページの高さを確保するスペーサー */
.fv-spacer,
.next-section-spacer {
  height: 100dvh;
  height: calc(var(--vh, 1vh) * 100);
}

/* 次セクション以降が固定FVの上にスクロールで重なる。背景色はFVと同じピンクにする
   (FVの--fv-bgは半透明のため、下のFVが透けないよう不透明なWarmPinkを使用) */
.next-section {
  position: relative;
  z-index: 2;
  height: 100dvh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: var(--color-warmpink);
}

.next-section__back {
  flex: 0 0 auto;
  padding: 16px 8px 8px;
  text-align: center;
}

.next-section__back-btn {
  display: inline-flex;
  padding: 12px 24px;
  font-size: 10.5px;
  font-weight: normal;
}

.next-section__title {
  flex: 0 0 auto;
  margin: 0;
  padding: 2px 8px 0;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  color: var(--color-slategray);
}

.next-section__title-kicker {
  font-size: 0.72em;
  font-weight: normal;
  color: var(--color-edobrown);
}

.next-section__title-single-line {
  white-space: nowrap;
}

.next-section__eyebrow {
  flex: 0 0 auto;
  margin: 0;
  padding: 2px 8px 0;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  color: var(--color-edobrown);
}

#section-6 .next-section__eyebrow {
  margin-top: clamp(24px, 5dvh, 44px);
}

#section-9 .next-section__title {
  margin-top: clamp(20px, 3.5dvh, 32px);
}

.feature-list-visual {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.feature-list-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 戻るボタンのない画像セクションは中央フレームと同じ横幅で表示し、
   元画像の比率を維持したまま余った高さを下部の余白にする */
#section-6 .feature-list-visual,
#section-7 .feature-list-visual {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1058 / 1486;
  margin-top: auto;
}

#section-8 .fv__image {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1085 / 1450;
  margin-top: auto;
}

#section-6 .next-section__arrow,
#section-7 .next-section__arrow,
#section-8 .next-section__arrow,
#section-9 .next-section__arrow {
  margin-top: auto;
}

/* CBD特徴画像は閲覧専用。クリック・タップによる拡大やドラッグを無効化する */
#section-7 .feature-list-visual,
#section-7 .feature-list-visual img {
  cursor: default;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.cbd-feature-lead {
  position: absolute;
  top: -44px;
  left: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 4px 10px;
  font-size: clamp(13px, 3.8vw, 16px);
  font-weight: bold;
  line-height: 1.4;
  color: var(--color-slategray);
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(-50% + 40px));
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cbd-feature-lead__check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-edobrown);
  color: var(--color-white);
  font-size: 14px;
  line-height: 1;
}

.testimonial-card.feature-card.cbd-feature-card {
  overflow: visible;
}

.cbd-feature-card img {
  border-radius: inherit;
}

.cbd-feature-card.is-active .cbd-feature-lead {
  opacity: 1;
  transform: translateX(-50%);
}

.feature-carousel {
  --feature-card-offset: 206px;
  flex: 1 1 auto;
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(-18px, -1.5dvh, -8px);
}

.feature-carousel__track {
  position: absolute;
  top: calc(50% - clamp(22px, 3dvh, 30px));
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(-50%);
}

.testimonial-card.feature-card {
  width: min(100%, calc((var(--frame-h, 100dvh) - 190px) * 0.9075), 363px);
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: width 0.6s ease, transform 0.6s ease, opacity 0.6s ease;
}

.testimonial-card.feature-card.is-active {
  transform: translate(-50%, -50%) scale(0.9);
}

.testimonial-card.feature-card.is-active.is-expanded {
  width: min(calc(100% - 32px), calc((var(--frame-h, 100dvh) - 184px) * 0.75));
  transform: translate(-50%, -50%) scale(1);
}

.testimonial-card.feature-card:focus-visible {
  outline: 3px solid var(--color-edobrown);
  outline-offset: 3px;
}

.feature-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.testimonial-card.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background-color: rgb(255 255 255 / 58%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.testimonial-card.feature-card.is-active::after {
  opacity: 0;
}

.testimonial-card.feature-card.is-prev {
  transform: translate(calc(-50% - var(--feature-card-offset)), -50%) scale(0.78);
}

.testimonial-card.feature-card.is-next {
  transform: translate(calc(-50% + var(--feature-card-offset)), -50%) scale(0.78);
}

.feature-carousel__hint {
  flex: 0 0 auto;
  position: relative;
  z-index: 4;
  margin: clamp(-60px, -7dvh, -36px) 0 0;
  padding: 4px 12px 0;
  transform: translateY(-12px);
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.4;
  text-align: center;
  color: var(--color-edobrown);
}

#section-6 .next-section__arrow {
  margin-top: auto;
}

#section-8 .next-section__arrow {
  margin-top: auto;
}

#section-6 .next-section__arrow img {
  width: 36px;
  filter: drop-shadow(0 3px 4px rgb(124 88 72 / 30%));
  transform-origin: center;
  animation: arrow-callout 1.2s ease-in-out infinite;
}

@keyframes arrow-callout {
  0%, 100% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  #section-6 .next-section__arrow img {
    animation: none;
  }
}

@media (max-width: 360px) {
  .feature-carousel {
    --feature-card-offset: 182px;
  }

  .testimonial-card.feature-card.is-active {
    transform: translate(-50%, -50%) scale(0.82);
  }

  .testimonial-card.feature-card.is-active.is-expanded {
    transform: translate(-50%, -50%) scale(1);
  }

}

/* iPhone SEなど高さの短い画面では、操作要素の余白も詰めて
   画像・テキスト・ボタンを実viewport内に収める */
@media (max-height: 667px) {
  .next-section__back {
    padding: 8px 8px 4px;
  }

  .next-section__back-btn {
    padding: 8px 20px;
  }

  .fv__question-text {
    padding-top: 4px;
    font-size: 13px;
  }

  .fv__buttons {
    gap: 4px;
    padding-block: 4px;
  }

  .fv__btn {
    padding-block: 11px;
    font-size: 13px;
  }

  .fv__note {
    padding-block: 2px;
    font-size: 10px;
  }

  .section-frame .next-section__arrow {
    width: 52px;
    height: 52px;
    margin-bottom: 8px;
  }
}

.fv__question-text--single-line {
  white-space: nowrap;
}

.next-section__body {
  flex: 0 0 auto;
  margin: 0;
  padding: 12px 16px 0;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  color: var(--color-slategray);
}

.next-section__care-list {
  margin: 8px 20px 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  color: var(--color-slategray);
}

.next-section__care-list li {
  position: relative;
  padding: 3px 0 3px 14px;
}

.next-section__care-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-edobrown);
}

.next-section__care-list strong {
  color: var(--color-edobrown);
}

.next-section__arrow {
  flex: 0 0 auto;
  width: clamp(56px, 16vw, 64px);
  height: clamp(56px, 16vw, 64px);
  margin: 0 auto 16px;
  padding: 0;
  border: 1px solid rgb(124 88 72 / 20%);
  border-radius: 50%;
  background: linear-gradient(145deg, #FFFDFB, #EEE3DB);
  box-shadow:
    5px 5px 10px rgb(124 88 72 / 20%),
    -5px -5px 10px rgb(255 255 255 / 88%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.next-section__arrow:active {
  transform: translateY(2px);
  box-shadow:
    inset 4px 4px 8px rgb(124 88 72 / 18%),
    inset -4px -4px 8px rgb(255 255 255 / 82%);
}

.next-section__arrow:focus-visible {
  outline: 3px solid rgb(124 88 72 / 35%);
  outline-offset: 3px;
}

.next-section__arrow img {
  display: block;
  width: 34px;
  height: auto;
  animation: arrow-bounce 1.4s ease-in-out infinite;
}

@keyframes arrow-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .next-section__arrow img {
    animation: none;
  }
}

.next-section__placeholder {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F0EAE3;
  border-top: 1px dashed var(--color-edobrown);
  border-bottom: 1px dashed var(--color-edobrown);
  color: var(--color-edobrown);
  font-size: 13px;
}

.next-section__placeholder--square {
  aspect-ratio: 1 / 1;
}

.next-section__list {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 24px 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  color: var(--color-slategray);
}

.next-section__list li::before {
  content: "✕ ";
  color: var(--color-edobrown);
}

.next-section__care-list strong {
  font-weight: normal;
}

.next-section__subtitle {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px 8px 0;
  font-size: 15px;
  text-align: center;
  color: var(--color-edobrown);
}

.coupon-content {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: clamp(8px, 2dvh, 18px) clamp(12px, 4vw, 24px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.coupon-content__visual {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.coupon-content__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.coupon-content__code {
  width: min(100%, 340px);
  margin-top: clamp(14px, 2.5dvh, 22px);
  padding: clamp(15px, 2.5dvh, 21px) 14px;
  border-radius: 18px;
  background-color: #F6EEE8;
  box-shadow:
    inset 7px 7px 14px rgb(124 88 72 / 20%),
    inset -7px -7px 14px rgb(255 255 255 / 90%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(18px, 6vw, 26px);
  font-weight: bold;
  letter-spacing: 0.1em;
  color: var(--color-edobrown);
  user-select: all;
}

.coupon-content__copy {
  margin-top: 10px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: clamp(11px, 3.4vw, 14px);
  font-weight: bold;
  color: var(--color-edobrown);
  cursor: pointer;
}

.coupon-content__copy-icon {
  position: relative;
  width: 16px;
  height: 16px;
}

.coupon-content__copy-icon::before,
.coupon-content__copy-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.coupon-content__copy-icon::before {
  top: 1px;
  left: 1px;
}

.coupon-content__copy-icon::after {
  right: 1px;
  bottom: 1px;
  background-color: var(--color-cream);
}

.coupon-content__status {
  min-height: 1.4em;
  margin: 0;
  font-size: 11px;
  color: var(--color-edobrown);
}

.coupon-content__actions {
  width: 100%;
  margin-top: clamp(8px, 1.5dvh, 14px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
}

.coupon-content__action-option .coupon-content__action {
  width: 100%;
}

.coupon-content__action-note {
  margin: 6px 0 0;
  color: var(--color-edobrown);
  font-size: clamp(11px, 3.2vw, 14px);
  font-weight: bold;
  line-height: 1.4;
}

.coupon-content__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 8px;
  border: 1px solid var(--color-edobrown);
  border-radius: 999px;
  background: var(--color-edobrown);
  font-size: clamp(11px, 3.2vw, 14px);
  font-weight: bold;
  line-height: 1.35;
  color: var(--color-white);
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.coupon-content__action:active {
  transform: translateY(2px);
}

.coupon-content__action:hover {
  opacity: 0.82;
}

.coupon-content__action.is-rouletting {
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: scale(1.1);
}

.coupon-content__copy:focus-visible,
.coupon-content__action:focus-visible {
  outline: 3px solid rgb(124 88 72 / 35%);
  outline-offset: 3px;
}

/* 第11セクション到着時のクラッカー演出 */
.celebration-burst {
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
}

/* 紙吹雪の発射と同時に、左右へ開いた2本のクラッカーが光って反動する */
.celebration-burst::before,
.celebration-burst::after {
  content: "";
  position: absolute;
  top: 51%;
  z-index: 2;
  width: 30px;
  height: 62px;
  /* 広い開口部を上、細い持ち手側を下にする */
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background:
    repeating-linear-gradient(
      135deg,
      #f06f86 0 8px,
      #e5bc3f 8px 16px,
      #62bf91 16px 24px,
      #57b4dc 24px 32px,
      #a477d4 32px 40px,
      #e46eae 40px 48px
    );
  border-radius: 4px;
  opacity: 0;
  filter:
    saturate(1.05)
    drop-shadow(0 5px 5px rgb(124 88 72 / 28%));
  transform-origin: 50% 100%;
}

.celebration-burst::before {
  left: calc(50% - 26px);
  transform: translate(-50%, -50%) rotate(-28deg) scale(0.35);
}

.celebration-burst::after {
  left: calc(50% + 26px);
  transform: translate(-50%, -50%) rotate(28deg) scale(0.35);
}

.celebration-burst.is-firing::before {
  animation: cracker-pop-left 1.15s ease-out both;
}

.celebration-burst.is-firing::after {
  animation: cracker-pop-right 1.15s ease-out both;
}

@keyframes cracker-pop-left {
  0% {
    opacity: 0;
    transform: translate(-50%, -34%) rotate(-18deg) scale(0.35);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-28deg) scale(1);
  }
  27% {
    opacity: 1;
    filter: drop-shadow(-10px -18px 11px rgb(255 209 102 / 92%));
    transform: translate(-44%, -43%) rotate(-36deg) scale(1.12, 0.9);
  }
  48% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-27deg) scale(0.96, 1.04);
  }
  78% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -38%) rotate(-24deg) scale(0.72);
  }
}

@keyframes cracker-pop-right {
  0% {
    opacity: 0;
    transform: translate(-50%, -34%) rotate(18deg) scale(0.35);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(28deg) scale(1);
  }
  27% {
    opacity: 1;
    filter: drop-shadow(10px -18px 11px rgb(255 209 102 / 92%));
    transform: translate(-56%, -43%) rotate(36deg) scale(1.12, 0.9);
  }
  48% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(27deg) scale(0.96, 1.04);
  }
  78% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -38%) rotate(24deg) scale(0.72);
  }
}

/* 左右にピンクのガターが出る画面では、外周から中央上部へ向けて発射する */
@media (min-width: 769px) {
  .celebration-burst::before,
  .celebration-burst::after {
    top: 62%;
    width: 42px;
    height: 86px;
  }

  .celebration-burst::before {
    left: 5.5vw;
    transform: translate(-50%, -50%) rotate(38deg) scale(0.35);
  }

  .celebration-burst::after {
    left: 94.5vw;
    transform: translate(-50%, -50%) rotate(-38deg) scale(0.35);
  }

  .celebration-burst.is-firing::before {
    animation-name: cracker-pop-left-inward;
  }

  .celebration-burst.is-firing::after {
    animation-name: cracker-pop-right-inward;
  }

  .celebration-burst__particle {
    top: 64%;
  }
}

@keyframes cracker-pop-left-inward {
  0% {
    opacity: 0;
    transform: translate(-50%, -34%) rotate(28deg) scale(0.35);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(38deg) scale(1);
  }
  27% {
    opacity: 1;
    filter: drop-shadow(15px -18px 13px rgb(255 209 102 / 92%));
    transform: translate(-56%, -43%) rotate(46deg) scale(1.12, 0.9);
  }
  48% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(37deg) scale(0.96, 1.04);
  }
  78% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -38%) rotate(34deg) scale(0.72);
  }
}

@keyframes cracker-pop-right-inward {
  0% {
    opacity: 0;
    transform: translate(-50%, -34%) rotate(-28deg) scale(0.35);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-38deg) scale(1);
  }
  27% {
    opacity: 1;
    filter: drop-shadow(-15px -18px 13px rgb(255 209 102 / 92%));
    transform: translate(-44%, -43%) rotate(-46deg) scale(1.12, 0.9);
  }
  48% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-37deg) scale(0.96, 1.04);
  }
  78% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -38%) rotate(-34deg) scale(0.72);
  }
}

.celebration-burst__particle {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 8px;
  height: 16px;
  border-radius: 2px;
  background: var(--burst-color);
  box-shadow: 0 0 5px color-mix(in srgb, var(--burst-color) 58%, transparent);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
}

.celebration-burst__particle:nth-child(3n) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.celebration-burst__particle:nth-child(4n) {
  width: 5px;
  height: 20px;
}

.celebration-burst__particle:nth-child(5n) {
  width: 13px;
  height: 13px;
  clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 35%);
  border-radius: 0;
}

.celebration-burst__particle:nth-child(7n) {
  width: 6px;
  height: 25px;
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .celebration-burst {
    display: none;
  }
}

/* 第12セクション: 購入方法の選択 */
.subscription-content {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 0 0 clamp(12px, 3dvh, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.subscription-content__visual {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.subscription-content__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.subscription-content__actions {
  width: 100%;
  margin-top: clamp(12px, 2.5dvh, 22px);
  padding-inline: clamp(12px, 4vw, 24px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2.5vw, 14px);
}

.subscription-content__option {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.subscription-content__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: clamp(88px, 14dvh, 108px);
  padding: 8px 10px;
  border: 1px solid rgb(124 88 72 / 28%);
  border-radius: 22px;
  box-shadow:
    7px 7px 14px rgb(124 88 72 / 22%),
    -6px -6px 12px rgb(255 255 255 / 76%);
  color: var(--color-white);
  text-decoration: none;
  font: inherit;
  font-size: clamp(12px, 3.25vw, 15px);
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subscription-content__button--subscription {
  background: var(--color-edobrown);
}

.subscription-content__button--single {
  background: #d2b48c;
}

.subscription-content__button strong {
  display: block;
  margin-top: 0;
  font-size: 1.416em;
  font-weight: 600;
}

.subscription-content__price {
  margin: 8px 2px 0;
  font-size: clamp(9px, 2.5vw, 11px);
  font-weight: bold;
  line-height: 1.55;
  color: var(--color-edobrown);
}

.subscription-content__button:active {
  transform: translateY(2px);
  box-shadow:
    inset 5px 5px 10px rgb(72 45 34 / 22%),
    inset -4px -4px 8px rgb(255 255 255 / 18%);
}

.subscription-content__button.is-rouletting {
  position: relative;
  z-index: 1;
  transform: scale(1.08);
}

.subscription-content__button:focus-visible {
  outline: 3px solid rgb(124 88 72 / 40%);
  outline-offset: 3px;
}

@media (max-height: 667px) {
  .subscription-content {
    padding: 0 0 10px;
  }

  .subscription-content__actions {
    margin-top: 10px;
  }

  .subscription-content__button {
    min-height: 76px;
    padding-block: 8px;
  }

  .subscription-content__price {
    margin-top: 5px;
    font-size: 9px;
    line-height: 1.4;
  }
}

/* 喜びの声: 常に3枚のみ表示し、中央のカードが最前面・等身大、左右のカードは
   一回り小さく背面に配置して遠近法のように見せるループカルーセル(JSでis-active/is-prev/is-nextを切り替え) */
.testimonials {
  --testimonial-card-offset: 206px;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 16px 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#section-9 .testimonials {
  flex: 0 0 auto;
  width: 100%;
  height: min(72dvh, 620px);
  margin-top: auto;
}

.testimonials__track {
  position: relative;
  width: 100%;
}

.testimonial-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  aspect-ratio: 3 / 4;
  margin: 0;
  padding: 20px 16px;
  border-radius: 16px;
  background-color: var(--color-white);
  box-shadow: 0 8px 16px rgb(124 88 72 / 20%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.6);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.testimonial-card.is-active {
  opacity: 1;
  z-index: 3;
  transform: translate(-50%, -50%) scale(1);
}

.testimonial-card.is-prev {
  opacity: 0.8;
  z-index: 2;
  transform: translate(calc(-50% - 90px), -50%) scale(0.8);
}

.testimonial-card.is-next {
  opacity: 0.8;
  z-index: 2;
  transform: translate(calc(-50% + 90px), -50%) scale(0.8);
}

.testimonials .testimonial-card {
  width: min(100%, calc((var(--frame-h, 100dvh) - 190px) * 0.9075), 363px);
  padding: clamp(10px, 3vw, 16px);
  overflow: hidden;
}

.testimonials .testimonial-card.is-active {
  transform: translate(-50%, -50%) scale(0.9);
}

.testimonials .testimonial-card.is-prev {
  transform: translate(calc(-50% - var(--testimonial-card-offset)), -50%) scale(0.78);
}

.testimonials .testimonial-card.is-next {
  transform: translate(calc(-50% + var(--testimonial-card-offset)), -50%) scale(0.78);
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-card {
    transition: none;
  }
}

.testimonial-card__stars {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--color-happy-yellow);
}

.testimonial-card__image {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background-color: #F4ECE6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(124 88 72 / 55%);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.testimonial-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 360px) {
  .testimonials {
    --testimonial-card-offset: 182px;
  }
}

.testimonial-card__text {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-slategray);
}

.testimonial-card__name {
  margin: 8px 0 0;
  font-size: 10px;
  color: var(--color-edobrown);
}

/* 第12セクション下部のFooter */
.section-footer {
  flex: 0 0 auto;
  width: 100%;
  background-color: var(--color-white);
  background-image: linear-gradient(var(--section-bg), var(--section-bg));
}

.site-footer {
  width: 100%;
  padding: 14px 16px 18px;
  text-align: center;
  color: var(--color-edobrown);
}

.site-footer__legal {
  display: inline-block;
  margin-bottom: 10px;
  color: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.site-footer__legal:hover,
.site-footer__legal:focus-visible {
  opacity: 0.7;
}

.site-footer__copyright {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* 特定商取引法に基づく表記 */
.legal-page {
  min-height: 100dvh;
  padding: clamp(16px, 4vw, 40px);
  color: var(--color-slategray);
  background:
    radial-gradient(circle at 15% 5%, rgb(255 255 255 / 86%) 0 9%, transparent 32%),
    linear-gradient(145deg, #f8ece5 0%, #f3ded8 100%);
}

.legal-page__main {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: clamp(20px, 6vw, 52px);
  border: 1px solid rgb(124 88 72 / 12%);
  border-radius: clamp(18px, 4vw, 30px);
  background: rgb(255 251 247 / 96%);
  box-shadow:
    16px 16px 36px rgb(124 88 72 / 14%),
    -10px -10px 28px rgb(255 255 255 / 74%);
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgb(124 88 72 / 22%);
  border-radius: 999px;
  color: var(--color-edobrown);
  background: var(--color-white);
  box-shadow: 3px 3px 8px rgb(124 88 72 / 12%);
  font-size: 12px;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legal-page__back:hover,
.legal-page__back:focus-visible {
  transform: translateY(-1px);
  box-shadow: 5px 5px 12px rgb(124 88 72 / 16%);
}

.legal-page__back:focus-visible {
  outline: 3px solid rgb(124 88 72 / 28%);
  outline-offset: 3px;
}

.legal-page__header {
  margin: clamp(28px, 7vw, 54px) 0 clamp(20px, 5vw, 34px);
  text-align: center;
}

.legal-page__brand {
  margin: 0 0 8px;
  color: var(--color-edobrown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 0.34em;
}

.legal-page__header h1 {
  margin: 0;
  color: var(--color-edobrown);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.legal-page__notice {
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid rgb(210 180 140 / 55%);
  border-radius: 14px;
  color: #674c40;
  background: rgb(210 180 140 / 18%);
  font-size: 12px;
  line-height: 1.7;
}

.legal-page__notice strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.legal-page__notice p {
  margin: 0;
}

.commerce-list {
  margin: 0;
  border-top: 1px solid rgb(124 88 72 / 18%);
}

.commerce-list__row {
  display: grid;
  grid-template-columns: minmax(130px, 29%) minmax(0, 1fr);
  border-bottom: 1px solid rgb(124 88 72 / 18%);
}

.commerce-list dt,
.commerce-list dd {
  margin: 0;
  padding: 17px 16px;
  font-size: 13px;
  line-height: 1.75;
}

.commerce-list dt {
  color: var(--color-edobrown);
  background: rgb(210 180 140 / 13%);
  font-weight: 600;
}

.commerce-list dd {
  overflow-wrap: anywhere;
}

.commerce-list a {
  color: var(--color-edobrown);
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .legal-page {
    padding: 10px;
  }

  .legal-page__main {
    padding: 18px 14px 28px;
    border-radius: 18px;
  }

  .commerce-list__row {
    grid-template-columns: 1fr;
  }

  .commerce-list dt {
    padding: 13px 12px 7px;
    background: rgb(210 180 140 / 13%);
  }

  .commerce-list dd {
    padding: 8px 12px 14px;
  }
}

/* デスクトップ版のみ: 画面全体にピンクの花びらを舞い散らす演出。
   PC幅で左右にガター(余白)ができるタイミングに合わせて表示する */
.sakura {
  display: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 50;
}

@media (min-width: 769px) {
  .sakura {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sakura {
    display: none;
  }
}

.sakura__petal {
  position: absolute;
  top: -12vh;
  left: var(--x, 50%);
  width: var(--size, 56px);
  height: var(--size, 56px);
  opacity: var(--opacity, 0.85);
  filter: drop-shadow(0 4px 6px rgb(124 88 72 / 18%));
  animation: sakura-fall var(--duration, 16s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.sakura__petal svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: sakura-flutter var(--flutter-duration, 2.2s) ease-in-out infinite;
  animation-delay: var(--flutter-delay, 0s);
  transform-origin: 50% 50%;
}

/* 左右へ揺れながら落ちる: sin波でサンプリングした経由点をlinearでつなぐことで、
   ease-in-outのように経由点ごとに速度がゼロになって「止まって見える」ことがなく、
   かつ点同士が細かいので折り返しも角張らず風に靡くように滑らかになる */
@keyframes sakura-fall {
  0% {
    transform: translate3d(var(--drift-0, 0px), -12vh, 0) rotate(var(--rot-0, 0deg));
    opacity: 0;
  }
  6% {
    opacity: var(--opacity, 0.85);
  }
  10% {
    transform: translate3d(var(--drift-1, 4px), 0vh, 0) rotate(var(--rot-1, 30deg));
  }
  20% {
    transform: translate3d(var(--drift-2, 10px), 12vh, 0) rotate(var(--rot-2, 60deg));
  }
  30% {
    transform: translate3d(var(--drift-3, 4px), 24vh, 0) rotate(var(--rot-3, 90deg));
  }
  40% {
    transform: translate3d(var(--drift-4, -10px), 36vh, 0) rotate(var(--rot-4, 120deg));
  }
  50% {
    transform: translate3d(var(--drift-5, -22px), 48vh, 0) rotate(var(--rot-5, 150deg));
  }
  60% {
    transform: translate3d(var(--drift-6, -32px), 60vh, 0) rotate(var(--rot-6, 180deg));
  }
  70% {
    transform: translate3d(var(--drift-7, -40px), 72vh, 0) rotate(var(--rot-7, 210deg));
  }
  80% {
    transform: translate3d(var(--drift-8, -52px), 84vh, 0) rotate(var(--rot-8, 240deg));
  }
  90% {
    transform: translate3d(var(--drift-9, -64px), 96vh, 0) rotate(var(--rot-9, 270deg));
  }
  94% {
    opacity: var(--opacity, 0.85);
  }
  100% {
    transform: translate3d(var(--drift-10, -78px), 108vh, 0) rotate(var(--rot-10, 300deg));
    opacity: 0;
  }
}

/* 花びら自体が風でひらひらと裏表を見せる、舞のような揺れ */
@keyframes sakura-flutter {
  0%, 100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sakura__petal,
  .sakura__petal svg {
    animation: none;
  }
}
