﻿/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Shippori Mincho", "A P-OTF A1 Mincho StdN", "A-OTF A1 Mincho Std", "A1 Mincho", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "Yu Mincho", "游明朝", serif;
  background-color: #ffffff;
  color: #4a4a4a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.gothic {
  font-family: "Zen Kaku Gothic New", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", "游ゴシック", sans-serif;
  font-weight: 500;
}

.mincho {
  font-family: "A P-OTF A1 Mincho StdN", "A-OTF A1 Mincho Std", "A1 Mincho", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "Yu Mincho", "游明朝", serif;
}

/* ふわっとフェードイン */
.fade-soft {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.4s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.fade-soft.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* スクロール演出システム（fx-*） */
:root {
  --fx-duration: 1400ms;
  --fx-delay: 0ms;
  --fx-easing: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fx-offset: 24px;
  --fx-scale: 0.96;
}

/* パースタイム初期非表示（JS 実行前の FOUC 防止） */
[data-fx] {
  opacity: 0;
  will-change: opacity, transform;
}
[data-fx][data-fx="slide-up"]    { transform: translateY(24px); }
[data-fx][data-fx="slide-left"]  { transform: translateX(-24px); }
[data-fx][data-fx="slide-right"] { transform: translateX(24px); }
[data-fx][data-fx="scale"]       { transform: scale(0.96); }

/* specificity を [data-fx].fx-init まで上げて他 transition を巻き込まない */
[data-fx].fx-init,
.fx-init.fx-stagger-child {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: var(--fx-duration);
  transition-timing-function: var(--fx-easing);
  transition-delay: var(--fx-delay);
}
.fx-init.fx-stagger-child { will-change: opacity, transform; }

[data-fx].fx-init.fx-slide-up,
.fx-init.fx-stagger-child.fx-slide-up    { transform: translateY(var(--fx-offset)); }
[data-fx].fx-init.fx-slide-left,
.fx-init.fx-stagger-child.fx-slide-left  { transform: translateX(calc(-1 * var(--fx-offset))); }
[data-fx].fx-init.fx-slide-right,
.fx-init.fx-stagger-child.fx-slide-right { transform: translateX(var(--fx-offset)); }
[data-fx].fx-init.fx-scale,
.fx-init.fx-stagger-child.fx-scale       { transform: scale(var(--fx-scale)); }

[data-fx].fx-init.fx-in,
.fx-init.fx-stagger-child.fx-in {
  opacity: 1;
  transform: none;
}

.fx-skip {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .fade-soft,
  [data-fx],
  [data-fx].fx-init,
  .fx-init.fx-stagger-child {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

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

/* メインラッパー */
.lp {
  max-width: 860px;
  margin: 0 auto;
  background-color: #ffffff;
  overflow: hidden;
}

/* セクション共通 */
.lp section {
  width: 100%;
  font-size: 0;
  line-height: 0;
}

.lp section img {
  width: 100%;
  display: block;
  vertical-align: top;
}

.lp section .cta {
  font-size: 16px;
  line-height: 1.6;
}

/* ヒーロー */
/* =========================================================
   ヒーロー（2026-07-29 リデザイン）
   - first.png 背景を撤去。2カラム flex 構成
   - 左: iPhone モックアップ / 右: リード + ハイライト + point 画像 + CTA
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(28px, 4vw, 48px) 20px 48px;
  background-image: url('top-background.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}
/* 半透明のオーバーレイでコントラスト確保（背景が明るすぎる時のためのフォールバック） */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.25) 60%, rgba(255,255,255,0.45) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-wrap {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}
.hero-tagline {
  text-align: center;
  color: #A38771;
  font-family: 'Shippori Mincho', 'YuMincho', serif;
  font-size: clamp(0.7rem, 2.2vw, 1.5rem);
  letter-spacing: 0.05em;
  margin: 0 0 clamp(32px, 5vw, 64px);
  white-space: nowrap;
}
.hero-body {
  display: flex;
  gap: clamp(10px, 2.4vw, 28px);           /* テキストとスマホの間隔を少し広げる */
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
}
.hero-body__phone {
  flex: 0 0 40%;
  max-width: 320px;
  min-width: 0;
  margin-left: 0;                          /* スマホを左端に寄せる */
}
/* phone-mock の絶対配置を打ち消し（元 CSS は first.png ヒーロー上に配置するため absolute だった） */
.hero-body__phone .phone-mock {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
}
.hero-body__text {
  flex: 1 1 auto;
  min-width: 0;                            /* flex 子要素が親幅を超えないように */
}
.hero-lead {
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 500;
  color: #4c4745;
  font-size: clamp(0.88rem, 3.2vw, 2rem);
  line-height: 1.8;
  margin: 0 0 clamp(10px, 1.8vw, 18px);
  letter-spacing: 0.02em;
  word-break: keep-all;
  overflow-wrap: normal;
}
.hero-catch {
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 500;
  color: #4c4745;
  font-size: clamp(0.95rem, 4vw, 2.5rem);
  line-height: 1.55;
  margin: 0 0 clamp(14px, 2.6vw, 26px);
  letter-spacing: 0.02em;
  word-break: keep-all;
  overflow-wrap: normal;
}
.hero-catch__accent {
  color: #D99694;
  font-weight: 500;
}
.hero-features {
  display: flex;
  gap: clamp(10px, 1.6vw, 20px);
  margin: 0 0 18px;
  flex-wrap: nowrap;
  max-width: 420px;
}
.hero-feature {
  flex: 1 1 0;
  min-width: 0;
  background: #fdfaf3;
  border-radius: 14px;
  padding: clamp(14px, 2vw, 22px) clamp(8px, 1.4vw, 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1vw, 12px);
  box-shadow: 0 3px 10px rgba(150, 110, 90, 0.08);
  text-align: center;
}
.lp .hero .hero-feature__icon {
  width: clamp(25px, 3.3vw, 43px);
  height: auto;
  display: block;
}
.hero-feature__text {
  margin: 0;
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 500;
  color: #b5a48f;
  font-size: clamp(0.6rem, 1.4vw, 0.9rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  word-break: keep-all;
}

.hero-body__text .hero-cta {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  max-width: 380px;
  display: block;
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hero-body__text .hero-cta:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.hero-body__text .hero-cta:active {
  transform: translateY(0);
}
.hero-body__text .hero-cta img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(193, 142, 138, 0.25));
}

.lp .hero .phone-mock .phone-badge {
  position: absolute;
  top: -3%;
  left: -5%;
  width: clamp(52px, 28%, 100px);
  height: auto;
  display: block;
  z-index: 5;
  pointer-events: none;
}

/* モバイル：PC と同じ 2 カラムを維持し、余白と要素サイズだけ縮小 */
@media (max-width: 640px) {
  .hero {
    padding: 16px 12px 24px;
  }
  .hero-tagline {
    margin: 0 0 14px;
  }
}

/* =========================================================
   ソーシャルギフト説明カード（hero 直下の独立セクション）
   ========================================================= */
.social-card-section {
  background-color: #ffffff;
  padding: 56px 20px 32px;                 /* カード上に余白を追加 → 他セクションと区切る */
}
.social-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  padding: 20px 20px 24px;
  box-shadow: 0 2px 10px rgba(70, 50, 30, 0.16);
}
.social-card__title {
  margin: 0 0 24px;
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 500;
  text-align: center;
  color: #D99694;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  letter-spacing: 0.05em;
}
.social-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 8px;
}
.social-card__col {
  position: relative;
  padding: 0 8px;
  text-align: center;
}
.social-card__col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 8%;
  bottom: 15%;
  width: 2px;
  background: #d1cac16b;
}
.social-card__icon {
  display: block;
  height: clamp(56px, 8vw, 88px);          /* 3 つのアイコンを同じ高さに揃える */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 6px;
}
.social-card__text {
  margin: 0;
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 500;
  color: #4c4745e8;
  font-size: clamp(0.7rem, 1.35vw, 0.9375rem);
  line-height: 1.5;
  word-break: keep-all;                    /* 日本語の途中で改行しない（<br> のみで改行） */
  overflow-wrap: normal;
}

/* =========================================================
   こんなシーンでご利用いただけます（scenes）
   ========================================================= */
.scenes {
  background-color: #fbf6ee7a;
  padding: 56px clamp(16px, 3vw, 40px) 48px;
}
.scenes__title {
  text-align: center;
  font-family: 'Shippori Mincho', 'YuMincho', serif;
  font-weight: 500;
  color: #4c4745;
  font-size: clamp(1.15rem, 3vw, 1.9rem);
  letter-spacing: 0.04em;
  margin: 0 0 40px;
}

.scene-row {
  position: relative;
  max-width: 960px;
  margin: 0 auto 32px;
}
.scene-row__media {
  width: 100%;
}
.scene-row__media img {
  width: 100%;
  height: auto;
  display: block;
}
.scene-row__body {
  position: absolute;
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  width: 48%;
  padding-left: 5%;
  z-index: 2;
}
.scene-row--flip .scene-row__body {
  right: auto;
  left: 2%;
  padding-right: 4%;
}
.scene-row__heading {
  margin: 0 0 14px;
  font-family: 'Shippori Mincho', 'YuMincho', serif;
  font-weight: 500;
  color: #d99694;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  line-height: 1.55;
  letter-spacing: 0.03em;
  word-break: keep-all;
}
.scene-row__desc {
  margin: 0;
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 500;
  color: #4c4745;
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  line-height: 1.9;
  letter-spacing: 0.02em;
  word-break: keep-all;
}

.scene-grid {
  max-width: 960px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 28px) clamp(20px, 3vw, 36px);
}
.scene-cell {
  position: relative;
}
.scene-cell__media {
  width: 100%;
}
.scene-cell__media img {
  width: 100%;
  height: auto;
  display: block;
}
.scene-cell__text {
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  width: 46%;
  padding-left: 5%;
  margin: 0;
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 500;
  color: #4c4745;
  font-size: clamp(0.75rem, 1.4vw, 0.98rem);
  line-height: 1.7;
  letter-spacing: 0.03em;
  word-break: keep-all;
  z-index: 2;
}

@media (max-width: 640px) {
  .scenes { padding: 40px 16px 32px; }
  .scenes__title { margin-bottom: 28px; }
  .scene-row { margin-bottom: 20px; }
  .scene-row__body { padding-left: 0; }
  .scene-row--flip .scene-row__body { padding-right: 0; }
  .scene-row__heading {
    font-size: clamp(0.7rem, 3vw, 0.95rem);
    margin-bottom: 6px;
  }
  .scene-row__desc { font-size: clamp(0.58rem, 2.2vw, 0.75rem); line-height: 1.6; }
  .scene-cell__text {
    font-size: clamp(0.55rem, 2vw, 0.72rem);
    line-height: 1.5;
    padding-left: 4%;
  }
}

/* iPhone モックアップ全体のコンテナ（1.jpg 上に絶対配置） */
.phone-mock {
  position: absolute;
  top: 39%;
  left: 5%;
  width: 35%;
  aspect-ratio: 891 / 1834;  /* スマホ6.png のアスペクト比 */
  z-index: 2;
}

/* スクロール領域（画面の中身 = image.jpg） */
.phone-mock .phone-screen {
  position: absolute;
  /* iPhone 枠の内側にぴったり収まるよう調整 */
  top: 1.8%;
  left: 4%;
  right: 4%;
  bottom: 1.8%;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 11% / 5%;          /* iPhone 画面の角丸 */
  background: #fff;
  cursor: grab;                      /* PC マウスで掴めることを示す */
  -webkit-overflow-scrolling: touch;/* iOS スムーズスクロール */
  scrollbar-width: none;             /* Firefox スクロールバー非表示 */
  touch-action: pan-y;               /* タッチで縦スクロール許可 */
  overscroll-behavior: contain;      /* 内側の端に達したらページに戻す（モバイル閉塞防止）*/
  user-select: none;
}
.phone-mock .phone-screen.is-dragging {
  cursor: grabbing;
}
.phone-mock .phone-screen::-webkit-scrollbar {
  display: none;                     /* Chrome/Safari スクロールバー非表示 */
}

/* スクロール領域内の長い画像 */
.lp .hero-wrap .phone-mock .phone-content {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;              /* ドラッグ時に画像が選択されないように */
  -webkit-user-drag: none;
}

/* iPhone 枠（前面） */
.lp .hero-wrap .phone-mock .phone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;             /* 枠はクリック/タッチを通過させる */
  z-index: 2;
  user-select: none;
}

/* 暗いオーバーレイ（初期状態のみ表示） */
.phone-mock .phone-overlay {
  position: absolute;
  top: 1.8%;
  left: 4%;
  right: 4%;
  bottom: 1.8%;
  border-radius: 11% / 5%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 3;
  pointer-events: none;             /* クリック/タッチは下のスクロール領域へ通過 */
  transition: opacity 0.4s ease;
  opacity: 1;
}

/* スワイプ案内：指アイコンが下から上へ動くアニメーション */
.phone-mock .swipe-hint {
  position: absolute;
  left: 50%;
  bottom: 46%;                       /* 上長指示の位置 */
  z-index: 4;
  pointer-events: none;
  color: #fff;
  font-size: 3rem;                   /* 少し控えめに（元 4rem → 3rem） */
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  transform: translateX(-50%);
  animation: swipeUpHint 2.8s ease-in-out infinite;
  animation-fill-mode: backwards;    /* 開始前は 0% キーフレーム（中央 + opacity:0）を維持 */
  animation-play-state: paused;      /* デフォルト停止 → fonts-ready 後に再生 */
  transition: opacity 0.4s ease;
  opacity: 1;
}
/* フォントロード完了後にアニメーション再生開始 */
html.fonts-ready .phone-mock .swipe-hint {
  animation-play-state: running;
}
.phone-mock .swipe-hint .material-symbols-outlined {
  font-size: inherit;                /* 親の font-size を継承 */
  font-variation-settings: 'opsz' 48, 'wght' 500;
  /* テキスト「swipe_up」がフラッシュ表示されないよう、min-width/height で アイコン領域を固定 + visibility をフォントロード後に切替 */
  min-width: 1em;
  min-height: 1em;
  display: inline-block;
  line-height: 1;
}

/* ===== フォント読込中は swipe-hint を非表示にする ===== */
/* JS でフォントロード完了後 .fonts-ready クラスを <html> に付与 */
html:not(.fonts-ready) .phone-mock .swipe-hint {
  visibility: hidden;
}

@keyframes swipeUpHint {
  0%   { transform: translate(-50%, 60%); opacity: 0; }
  20%  { opacity: 1; }
  70%  { transform: translate(-50%, -50%); opacity: 1; }
  100% { transform: translate(-50%, -110%); opacity: 0; }
}

/* === 操作（hover / touch / scroll / drag）後の状態 === */
/* JS で .is-interacted クラスを付与し、オーバーレイとヒントを同時にフェードアウト */
.phone-mock.is-interacted .phone-overlay,
.phone-mock.is-interacted .swipe-hint {
  opacity: 0;
  pointer-events: none;
}
/* ※ animation: none で keyframes 内の opacity:1 を無効化し、 CSS の opacity:0 が確実に反映されるようにする */
.phone-mock.is-interacted .swipe-hint {
  animation: none;
}

/* ユーザがアニメーション削減設定の場合、アニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  .phone-mock .swipe-hint {
    animation: none;
    opacity: 0.85;
  }
}

/* リンク画像 */
.img-link {
  display: block;
  transition: opacity 0.25s ease;
}
.img-link:hover {
  opacity: 0.85;
}

/* 画像下部の余白をクリップするラッパー */
.img-clip {
  width: 100%;
  overflow: hidden;
  display: block;
  font-size: 0;
  line-height: 0;
}
.img-clip img {
  width: 100%;
  display: block;
}

/* 6.jpg: 1200x1665 → 下部262pxの余白を削る (1200x1403) */
.clip-6 {
  aspect-ratio: 1200 / 1403;
}

/* 8.jpg: 1200x2223（2026-06-08 更新：「複数の商品を選んで…」セクションを追加） */
.clip-8 {
  aspect-ratio: 1200 / 2223;
  position: relative;
}


/* 13.jpg: 1200x1079 → 下部346pxの余白を削る (1200x733) */
.clip-13 {
  aspect-ratio: 1200 / 733;
}

/* CTAボタン */
.cta {
  text-align: center;
  padding: 16px 5% 24px;
  background-color: #ffffff;
  margin: 0;
}

.cta-final {
  padding: 16px 5% 40px;
}

.btn-banner {
  display: inline-block;
  width: 90%;
  max-width: 520px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.btn-banner:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.btn-banner:active {
  transform: translateY(0);
}

.btn-banner img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(193, 142, 138, 0.25));
}

/* セクション間の区切り背景の調整 */
.courses-top,
.message,
.voice,
.emotion {
  background-color: #ffffff;
}


/* 感情訴求（3.jpg の上に文字をオーバーレイ） */
/* 上下のセクションの padding/margin に影響されず、この位置を独立に保つ */
.emotion {
  margin: 0;
  padding: 0;
  contain: layout;
  isolation: isolate;
}
.emotion-wrap {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}
.emotion .emotion-img {
  display: block;
  width: 100%;
  height: auto;
}
.emotion-text {
  position: absolute;
  top: 8%;
  left: 5%;
  width: 90%;
  z-index: 2;
  color: #4C4745;
  text-align: center;
}
.emotion-text__title {
  margin: 6% 0 8% 0;
  font-family: 'Shippori Mincho', 'YuMincho', serif;
  font-weight: normal;
  font-size: clamp(1.148rem, 3.5vw, 2.64rem);
  line-height: 1.6;
  letter-spacing: 0.05em;
}
.emotion-text__body {
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 500;
  font-size: clamp(0.783rem, 1.9vw, 1.518rem);
  line-height: 2;
  letter-spacing: 0.03em;
}
.emotion-text__body p {
  margin: 0 0 1.7em 0;
}
.emotion-text__body p:last-child {
  margin-bottom: 0;
}

/* social-card が hero-wrap をはみ出して courses-top を覆うため、狭い画面ではセクション自体にも間隔を持たせる */
@media (max-width: 600px) {
  .courses-top {
    padding-top: 2.5rem;
  }
}

/* 6.jpg はクリーム背景 */
.greeting {
  background-color: #f6f5f1;
}

/* Web 挨拶状セクション（タイトル + スマホモック + テンプレート4枚） */
.greeting-inner {
  padding: 6% 5% 4%;
}
.greeting-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 1.5vw, 1.2rem);
  margin: 0 0 2% 0;
  font-family: 'Shippori Mincho', 'YuMincho', serif;
  font-weight: normal;
  color: #4C4745;
  font-size: clamp(1.1rem, 2.8vw, 1.8rem);
  letter-spacing: 0.05em;
  text-align: center;
}
.greeting .greeting-title__paw {
  flex-shrink: 0;
  width: clamp(1.2rem, 2.5vw, 2rem);
  height: auto;
  opacity: 0.7;
}
.greeting-title__accent {
  color: #d99694;
}
.greeting-lead {
  margin: 0 0 5% 0;
  text-align: center;
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 500;
  color: #4C4745;
  font-size: clamp(0.75rem, 1.5vw, 1.16rem);
  line-height: 2;
  letter-spacing: 0.03em;
}
.greeting-content {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 4%;
  align-items: center;
}

/* タイトル下の点線装飾 */
.greeting-title__dots {
  width: 55%;
  max-width: 380px;
  height: 6px;
  margin: 1% auto 5%;
  background-image: radial-gradient(circle, #A38771 1px, transparent 1.5px);
  background-size: 10px 6px;
  background-repeat: repeat-x;
  background-position: center;
}

/* greeting セクション内の phone-mock は hero と違って通常フローで配置 */
.greeting .greeting__phone-mock {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  aspect-ratio: 891 / 1834;
}

.greeting-templates {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 6%, 2rem);
}
.greeting-templates__title {
  display: inline-block;
  margin: 0;
  padding: 1.2em 5em;
  background: #d99694;
  color: #ffffff;
  border-radius: 999px;
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 500;
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  letter-spacing: normal;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 500px) {
  .greeting-templates__title { padding: 0.8em 1.5em; font-size: 0.75rem; }
}
.greeting-templates__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
  position: relative;
}

/* クリック案内アイコン（sample2 の中央に表示、初回タップで消える） */
.greeting-templates__thumb .tap-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  animation: tapHint 1.6s ease-in-out infinite;
  animation-fill-mode: backwards;
  animation-play-state: paused;
  transition: opacity 0.4s ease;
  opacity: 1;
}
html.fonts-ready .greeting-templates__thumb .tap-hint {
  animation-play-state: running;
}
@keyframes tapHint {
  0%   { transform: translate(-50%, -50%) scale(1);    opacity: 0.4; }
  35%  { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  70%  { transform: translate(-50%, -50%) scale(0.95); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.4; }
}
.greeting-templates__grid.is-tapped .tap-hint {
  opacity: 0;
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .greeting-templates__thumb .tap-hint { animation: none; opacity: 0.85; }
}
.greeting .greeting-templates__grid img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.greeting .greeting-templates__thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  transition: transform 0.2s ease, outline-color 0.2s ease;
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.greeting .greeting-templates__thumb:hover { transform: translateY(-2px); }
.greeting .greeting-templates__thumb.is-active { outline-color: #d99694; }

/* 未タップ時は sample1（is-active）以外を暗くしてクリック誘導 */
.greeting-templates__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.9s ease;
}
.greeting-templates__thumb.is-active::after,
.greeting-templates__grid.is-tapped .greeting-templates__thumb::after {
  opacity: 0;
}
.courses-bottom {
  background-color: #ffffff;
}

/* コース見出し（2.jpg の代替） */
.courses-heading {
  text-align: center;
  padding: clamp(3.5rem, 8%, 5rem) 4% clamp(0rem, 2%, 1rem);
}
.courses-heading__lead {
  margin: 0 0 2% 0;
  font-family: 'Shippori Mincho', 'YuMincho', serif;
  color: #4C4745;
  font-size: clamp(1.12rem, 4.4vw, 2.4rem);
  letter-spacing: 0.05em;
}
.courses-heading__title {
  margin: 0;
  font-family: 'Shippori Mincho', 'YuMincho', serif;
  font-weight: normal;
  color: #4C4745;
  font-size: clamp(1.4rem, 5.5vw, 3rem);
  letter-spacing: 0.05em;
  line-height: 1.3;
}

/* 商品マルキー（右→左、無限ループ） */
.product-marquee {
  overflow: hidden;
  width: 100%;
  background-color: #ffffff;
  padding: 16px 0;
}
.product-marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}
.product-marquee .product-marquee__img {
  display: block;
  flex-shrink: 0;
  height: 254px;
  width: auto;
  aspect-ratio: 6 / 1.5;
  object-fit: fill;
  max-width: none;
  pointer-events: none;
  user-select: none;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}
.product-marquee:hover .product-marquee__track {
  animation-play-state: paused;
}
@media (max-width: 600px) {
  .product-marquee .product-marquee__img { height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-marquee__track { animation: none; }
}

/* CTAの背景は直前画像の色に合わせる */
.courses-top .cta {
  background-color: #ffffff;
}
.greeting .cta {
  background-color: #f6f5f1;
}
.message .cta {
  background-color: #f6f5f1;
}

/* 2026-06-12 LINH 指示：bn1.png ボタンを 8.jpg の上にオーバーレイ 位置は LINH 自身で top/left を調整して合わせてください */
.message {
  position: relative;
}
.message .cta-overlay {
  position: absolute;
  left: 50%;
  top: 53%;            /* ← 位置調整はここ（％ で 8.jpg 内の高さ位置を指定） */
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 0 5%;
  background: transparent;
  z-index: 2;
}
.voice {
  background-color: #f6f5f1;
}
.voice .cta {
  background-color: #f6f5f1;
}

/* 利用者の声（テキスト吹き出し2件） */
.voice-inner {
  padding: 8% 6% 6%;
  font-size: 16px;
  line-height: 1.6;
}
.voice-title {
  margin: 0 0 7% 0;
  text-align: center;
  font-family: 'Shippori Mincho', 'YuMincho', serif;
  font-weight: normal;
  color: #4C4745;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  letter-spacing: 0.08em;
}
.voice-cards {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4%, 3rem);
}
.voice-card {
  display: grid;
  grid-template-columns: 15% 1fr;
  gap: clamp(3rem, 6%, 4.5rem);
  align-items: center;
}
.voice-card__avatar {
  aspect-ratio: 1 / 1;
  background: #fbeeed;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.voice .voice-card__avatar img {
  width: 100%;
  height: auto;
  display: block;
}
.voice-card__bubble {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 4% 5% 4% 7.5%;
  filter: drop-shadow(0 2px 10px rgba(70, 50, 30, 0.15));
}
.voice-card__bubble::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -18px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 20px solid #ffffff;
}
.voice-card__bubble p {
  margin: 0;
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 500;
  color: #4C4745;
  font-size: clamp(1.02rem, 1.92vw, 1.38rem);
  line-height: 1.9;
  letter-spacing: 0.03em;
}
.voice-accent {
  color: #d99694;
  font-weight: 500;
}

@media (max-width: 500px) {
  .voice-card { grid-template-columns: 20% 1fr; gap: 3%; }
  .voice-title { font-size: clamp(1rem, 4.2vw, 1.4rem); margin-bottom: 6%; }
  .voice-card__bubble { padding: 3.5% 4.5%; border-radius: 12px; }
  .voice-card__bubble p { font-size: 0.72rem; line-height: 1.7; }
  .voice-card__bubble::before { border-top-width: 8px; border-bottom-width: 8px; border-right-width: 10px; left: -9px; }
}

/* よくあるご質問 */
.faq-block {
  padding: 0 6% 6%;
  font-size: 16px;
  line-height: 1.6;
}
.faq-divider {
  border: none;
  border-top: 1px solid #b8ada0;
  margin: 0;
}
.faq-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 1.5vw, 1.2rem);
  margin: 8% 0 1% 0;
  font-family: 'Shippori Mincho', 'YuMincho', serif;
  font-weight: normal;
  color: #4C4745;
  font-size: clamp(1.3rem, 3vw, 2rem);
  letter-spacing: 0.08em;
  text-align: center;
}
.voice .faq-title__paw {
  flex-shrink: 0;
  width: clamp(1.4rem, 3vw, 2.4rem);
  height: auto;
  opacity: 0.7;
}
.faq-title__dots {
  width: 40%;
  max-width: 260px;
  height: 6px;
  margin: 0 auto 6%;
  background-image: radial-gradient(circle, #A38771 1px, transparent 1.5px);
  background-size: 12px 6px;
  background-repeat: repeat-x;
  background-position: center;
}
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0 0 6% 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4%, 2.5rem);
}
.faq-item {
  color: #4C4745;
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  line-height: 1.9;
  letter-spacing: 0.03em;
}
.faq-item__q,
.faq-item__a {
  margin: 0;
  padding-left: 2em;
  text-indent: -2em;
}
.faq-item__q {
  color: #b8ada0;
  margin-bottom: 0.4em;
}
.faq-item__a {
  color: #4C4745;
}
.faq-item__label {
  display: inline-block;
  width: 2em;
  text-indent: 0;
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 400;
}
.faq-item__q .faq-item__label { color: #b8ada0; }
.faq-item__a .faq-item__label { color: #4C4745; }
.faq-item__note {
  margin: 0.8em 0 0 4em;
  color: #7a716a;
  font-size: 0.9em;
  line-height: 1.7;
  text-indent: -1em;
  padding-left: 1em;
}

@media (max-width: 500px) {
  .faq-title { font-size: 1.1rem; letter-spacing: 0.05em; }
  .faq-title__dots { width: 55%; max-width: 200px; background-size: 8px 6px; margin-bottom: 8%; }
  .faq-list { gap: 4%; }
  .faq-item { font-size: 0.72rem; line-height: 1.7; }
  .faq-item__q { margin-bottom: 0.3em; }
  .faq-item__q, .faq-item__a { padding-left: 1.6em; text-indent: -1.6em; }
  .faq-item__label { width: 1.6em; }
  .faq-item__note { margin: 0.6em 0 0 1.6em; font-size: 0.85em; }
}

/* 最終メッセージ + ロゴ + フィナーレ画像 */
.closing-block {
  padding: 4% 6% 6%;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}
.closing-message {
  margin: 0 0 3% 0;
  font-family: 'Shippori Mincho', 'YuMincho', serif;
  color: #A38771;
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  line-height: 2;
  letter-spacing: 0.05em;
}
.closing-logo {
  margin: 6% auto 2%;
  max-width: 74%;
}
.voice .closing-logo img {
  width: 100%;
  height: auto;
  display: block;
}
.closing-final {
  margin: 0 auto;
  max-width: 72%;
}
.voice .closing-final img {
  width: 100%;
  height: auto;
  display: block;
}
.courses-bottom .cta {
  background-color: #ffffff;
}

.recipients,
.merit,
.support {
  background-color: #ffffff;
  padding: 0;
  font-size: 0;
}

/* 安心サポート（4項目リスト） */
.support-inner {
  padding: 8% 6% 6%;
  font-size: 16px;
  line-height: 1.6;
}
.support-title {
  margin: 0 0 6% 0;
  text-align: center;
  font-family: 'Shippori Mincho', 'YuMincho', serif;
  font-weight: normal;
  color: #4C4745;
}
.support-title__lead {
  display: block;
  font-size: clamp(1.2rem, 2.88vw, 1.92rem);
  letter-spacing: 0.05em;
  margin-bottom: 1%;
}
.support-title__main {
  display: block;
  font-size: clamp(1.56rem, 3.84vw, 2.64rem);
  color: #d99694;
  letter-spacing: 0.1em;
}
.support-title__main-dark {
  color: #4C4745;
}
.support-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3%, 2rem);
}
.support-item {
  display: grid;
  grid-template-columns: 33.6% 1fr;
  gap: clamp(2rem, 6%, 4rem);
  align-items: center;
  padding: 5% 5%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(70, 50, 30, 0.15);
}
.support .support-item__icon img {
  width: 100%;
  height: auto;
  display: block;
}
.support-item__body {
  min-width: 0;
}
.support-item__title {
  margin: 0 0 4% 0;
  padding-bottom: 4%;
  font-family: 'Shippori Mincho', 'YuMincho', serif;
  font-weight: normal;
  color: #d99694;
  font-size: clamp(1.4rem, 3.08vw, 2.1rem);
  letter-spacing: 0.05em;
  line-height: 1.5;
  border-bottom: 1px dashed #d9c5c3;
}
.support-item__desc {
  margin: 0;
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 500;
  color: #4C4745;
  font-size: clamp(1.02rem, 1.92vw, 1.32rem);
  line-height: 1.9;
  letter-spacing: 0.03em;
}

@media (max-width: 500px) {
  .support-item { grid-template-columns: 32% 1fr; gap: 4%; }
  .support-item__title { font-size: 1.05rem; letter-spacing: 0.02em; line-height: 1.4; }
  .support-item__desc { font-size: 0.85rem; line-height: 1.7; }
}

/* こんな方へ贈られています（4項目） */
.recipients-inner {
  padding: 8% 6% 6%;
  font-size: 16px;
  line-height: 1.6;
}
.recipients-title {
  margin: 0 0 6% 0;
  text-align: center;
  font-family: 'Shippori Mincho', 'YuMincho', serif;
  font-weight: normal;
  color: #4C4745;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  letter-spacing: 0.05em;
}
.recipients-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3%, 2rem);
}
.recipients-item {
  display: grid;
  grid-template-columns: 25% 1fr;
  gap: clamp(1.5rem, 4.5%, 3rem);
  align-items: center;
  padding: 4% 5%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(70, 50, 30, 0.15);
}
.recipients-item__icon {
  aspect-ratio: 1 / 1;
  background: #fbeeed;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.recipients .recipients-item__icon img {
  width: 100%;
  height: auto;
  display: block;
}
.recipients-item__body {
  min-width: 0;
}
.recipients-item__title {
  margin: 0 0 3% 0;
  font-family: 'Shippori Mincho', 'YuMincho', serif;
  font-weight: normal;
  color: #4C4745;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  letter-spacing: 0.03em;
  line-height: 1.6;
}
.recipients-item__title-accent {
  color: #d99694;
}
.recipients-item__desc {
  margin: 0;
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 500;
  color: #4C4745;
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  line-height: 1.9;
  letter-spacing: 0.03em;
}

@media (max-width: 500px) {
  .recipients-item { grid-template-columns: 22% 1fr; gap: 2%; padding: 3% 3%; }
  .recipients-item__title { font-size: 0.78rem; letter-spacing: 0; line-height: 1.5; margin-bottom: 2%; }
  .recipients-item__desc { font-size: 0.62rem; line-height: 1.7; letter-spacing: 0; }
}

/* ソーシャルギフトのメリット（送り主 / 届け先の2カード） */
.merit-inner {
  padding: 8% 5% 6%;
  font-size: 16px;
  line-height: 1.6;
}
.merit-title {
  margin: 0 0 8% 0;
  text-align: center;
  font-family: 'Shippori Mincho', 'YuMincho', serif;
  font-weight: normal;
  color: #4C4745;
  font-size: clamp(1.38rem, 3.36vw, 2.28rem);
  letter-spacing: 0.05em;
  line-height: 1.7;
}
.merit-cards {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4%, 3rem);
  padding: 0 6%;
}
.merit-card {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: clamp(0.6rem, 2%, 1.2rem);
  align-items: center;
  width: 100%;
}
.merit-card--sender {
  align-self: flex-start;
}
.merit-card--recipient {
  align-self: flex-end;
  grid-template-columns: 1fr 28%;
}
.merit .merit-card__illust {
  width: 100%;
  height: auto;
  display: block;
}
/* filter: drop-shadow を bubble にかけると ::before の tail にも影が付く */
.merit-card__bubble {
  position: relative;
  background: #FBF5F4;
  border-radius: 20px;
  padding: 3.5% 6% 3.5% 12%;
  filter: drop-shadow(0 2px 10px rgba(70, 50, 30, 0.3));
}
.merit-card--sender .merit-card__bubble {
  margin-left: -4%;
}
.merit-card--recipient .merit-card__bubble {
  margin-right: -4%;
}
.merit-card--sender .merit-card__bubble::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -23px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-right: 24px solid #FBF5F4;
}
.merit-card--recipient .merit-card__bubble::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -23px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 24px solid #FBF5F4;
}
.merit-card__title {
  margin: 3% 0 4% 0;
  text-align: center;
  font-family: 'Shippori Mincho', 'YuMincho', serif;
  font-weight: normal;
  font-size: clamp(1.2rem, 2.64vw, 1.8rem);
  letter-spacing: 0.2em;
}
/* 送り主 / 届け先 で色を分ける */
.merit-card--sender .merit-card__title { color: #C98D8A; }
.merit-card--recipient .merit-card__title { color: #969888; }
.merit-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 500;
  color: #4C4745;
  font-size: clamp(0.96rem, 1.8vw, 1.26rem);
  line-height: 1.9;
}
.merit-card__list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.4em;
}
.merit-card__list li::before {
  content: '';
  position: absolute;
  left: 0.2em;
  top: 0.75em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.merit-card--sender .merit-card__list li::before { background: #C98D8A; }
.merit-card--recipient .merit-card__list li::before { background: #969888; }

@media (max-width: 500px) {
  .merit-card { grid-template-columns: 32% 1fr; gap: 1%; width: 100%; }
  .merit-card--recipient { grid-template-columns: 1fr 32%; gap: 1%; width: 100%; }
  .merit-title { font-size: clamp(0.9rem, 4vw, 1.2rem); line-height: 1.5; margin-bottom: 6%; }
  .merit-card__title { font-size: 1rem; margin: 2% 0 3%; letter-spacing: 0.15em; }
  .merit-card__list { font-size: 0.75rem; line-height: 1.7; }
  .merit-card__list li { padding-left: 1.2em; margin-bottom: 0.3em; }
  .merit-card__list li::before { top: 0.6em; width: 5px; height: 5px; }
  .merit-card__bubble { padding: 3% 4% 3% 6%; }
  /* モバイルでのスライド量を減らして描画コスト削減（giật giật 防止）*/
  .merit-card--sender[data-fx].fx-init,
  .merit-card--recipient[data-fx].fx-init { --fx-offset: 12px; }
  .merit-card .fx-stagger-child { --fx-offset: 4px; }
  .merit-cards { contain: paint; }
}

.recipients img,
.merit img,
.support img {
  display: block;
  margin: 0;
}

/* ご利用の流れ（スライダー） */
.flow {
  background-color: #ffffff;
  padding: 0 0 24px;
  font-size: 0;
}

.flow-title {
  margin: 0;
  display: block;
}

.slider {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding-top: 16px;
}
@media (min-width: 601px) {
  .slider { max-width: 72%; }
}

.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 4%;
}

.slide img {
  width: 100%;
  height: auto;
}

/* スライダーボタン */
.slider-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #c18e8a;
  font-size: 28px;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-bottom: 4px;
  z-index: 5;
}

.slider-btn:hover {
  background: #c18e8a;
  color: #fff;
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-btn.prev {
  left: 8px;
}

.slider-btn.next {
  right: 8px;
}

/* ドット */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d9cfc4;
  cursor: pointer;
  transition: background-color 0.25s, transform 0.25s;
  padding: 12px;                     /* タップ領域拡大：見た目 10px、実 34px */
  background-clip: content-box;
  box-sizing: content-box;
}
.slider-dots { gap: 0; }              /* padding でヒットエリア連結を防ぐため gap は 0 */

.dot.active {
  background-color: #c18e8a;
  transform: scale(1.25);
}

.dot:hover {
  background-color: #b87b76;
}

/* レスポンシブ */
@media (max-width: 480px) {
  .slider-btn {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .slider-btn.prev {
    left: 8px;
  }

  .slider-btn.next {
    right: 8px;
  }

  .cta {
    padding: 20px 4% 28px;
  }
}

@media (min-width: 768px) {
  .slide {
    padding: 0 8%;
  }
}

/* 15.jpg in .voice: overlay button on the empty area inside the image */
.voice .voice-wrap {
  position: relative;
}

.voice .cta-overlay {
  position: absolute;
  left: 50%;
  top: 68%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 0 5%;
  background: transparent;
}

.voice .cta-overlay.cta-final {
  padding-top: 0;
  padding-bottom: 0;
}

/* ===== moved from inline <style> ===== */
/* サイトヘッダー */
  .site-header {
    background: #fff;
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid #e8ddd0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 600;
  }
  .site-header__title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #4a4a4a;
    letter-spacing: 0.08em;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    line-height: 1;
  }
  .site-header__logo {
    height: 34px;
    width: auto;
    display: block;
    transform: translateY(1px);
  }
  @media (max-width: 600px) {
    .site-header { padding: 12px 16px; }
    .site-header__title { font-size: 15px; letter-spacing: 0.05em; gap: 12px; }
    .site-header__logo { height: 28px; }
  }

  /* 共通フッター */
  .site-footer {
    background: #b4a591;
    padding: 24px 20px;
    text-align: center;
  }
  .site-footer__links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
  }
  .site-footer__links a {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 14px;
    display: inline-block;
    transition: opacity 0.2s;
  }
  .site-footer__links a:hover { opacity: 0.75; }
  .site-footer__links .divider {
    color: #fff;
    opacity: 0.5;
  }

  /* フローティングボタン (PC only) */
  .sidebar-r {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 500;
  }
  .side-btns {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .side-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 120px;
    height: 120px;
    background: #c18e8a;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s, transform 0.15s;
  }
  .side-btn:hover { opacity: 0.85; transform: scale(1.05); }
  .side-btn__line { display: block; }
  @media (max-width: 980px) { .sidebar-r { display: none; } }

  /* SP用 sticky footer */
  .sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #c18e8a;
    padding: 12px;
    text-align: center;
    z-index: 500;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
  }
  .sticky-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: block;
  }
  /* マーチング矢印：3つの＞が順番に濃く光る（1.2s ループ） */
  .sticky-footer__arrows {
    display: inline-block;
    margin-left: 6px;
    letter-spacing: -2px;
  }
  .sticky-footer__arrows > span {
    display: inline-block;
    opacity: 0.35;
    animation: stickyFooterArrow 1.2s infinite;
  }
  .sticky-footer__arrows > span:nth-child(1) { animation-delay: 0s; }
  .sticky-footer__arrows > span:nth-child(2) { animation-delay: 0.4s; }
  .sticky-footer__arrows > span:nth-child(3) { animation-delay: 0.8s; }
  @keyframes stickyFooterArrow {
    0%, 66%, 100% { opacity: 0.35; }
    16%           { opacity: 1;    }
  }
  @media (prefers-reduced-motion: reduce) {
    .sticky-footer__arrows > span { animation: none; opacity: 1; }
  }
  @media (min-width: 981px) {
    .sticky-footer { display: none; }
  }

  @media (max-width: 600px) {
    .site-footer__links a { padding: 12px 10px; font-size: 13px; }
    body { padding-bottom: 60px; }
  }

  /* 受け取れる商品一覧 モーダル */
  .products-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 12px;
    overflow-y: auto;
  }
  .products-modal.is-open {
    display: flex;
  }
  .products-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
  }
  .products-modal__dialog {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 12px;
    max-width: 920px;
    width: 100%;
    margin: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
  }
  .products-modal__header {
    background: #4a4a4a;
    color: #fff;
    padding: 14px 48px 14px 18px;
    font-size: 16px;
    font-weight: 700;
    position: relative;
  }
  .products-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    border-radius: 50%;
    transition: background-color .2s;
  }
  .products-modal__close:hover {
    background: rgba(255, 255, 255, 0.15);
  }
  .products-modal__body {
    padding: 16px 18px 24px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .products-modal__loading,
  .products-modal__error {
    text-align: center;
    padding: 40px 16px;
    color: #666;
    font-size: 14px;
  }
  .products-modal__error {
    color: #c75300;
  }

  /* コースブロック：/pets/orderer/courses 画面と同じスタイルに統一 */
  .pm-course {
    margin-bottom: 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
  }
  .pm-course:last-child {
    margin-bottom: 0;
  }
  .pm-course__head {
    padding: 14px 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  /* 一言コメントバッジ（オレンジのピル型・コース選択画面と同一デザイン） */
  .pm-course__comment {
    display: inline-block;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    background: linear-gradient(90deg, #ff7a18, #ff5a2c);
    border-radius: 999px;
    box-shadow: 0 2px 4px rgba(255, 90, 44, 0.25);
    white-space: nowrap;
    letter-spacing: 0.02em;
  }
  .pm-course__title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0;
  }
  .pm-course__price {
    font-size: 14px;
    color: #b04600;
    font-weight: 700;
  }

  /* 掲載商品ラベル：/pets/orderer/courses と同じダークグレーの帯デザイン */
  .pm-course__examples-label {
    margin: 0 22px 12px;
    padding: 8px 16px;
    background: #4a4a4a;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.05em;
  }
  @media (max-width: 600px) {
    .pm-course__examples-label { margin: 0 4px 12px; }
  }

  /* pagination + 一覧を見る リンク を横並びに */
  .pm-course__footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px 22px;
  }
  .pm-course__list-link {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color .15s;
  }
  .pm-course__list-link:hover { color: #1d4ed8; text-decoration: underline; }
  @media (max-width: 600px) {
    .pm-course__footer { padding: 12px 12px 18px; }
    .pm-course__list-link { right: 12px; font-size: 12px; }
  }

  /* スライダーのページネーション（現在 / 総数）— courses ページと同じスタイル */
  .pm-slider-pagination {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #6c757d;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
  }
  .pm-slider-pagination.is-hidden { display: none; }
  .pm-slider-pagination__current {
    font-weight: 700;
    color: #212529;
    font-size: 16px;
  }
  .pm-slider-pagination__sep { color: #adb5bd; }
  @media (max-width: 480px) {
    .pm-slider-pagination { font-size: 13px; }
    .pm-slider-pagination__current { font-size: 15px; }
  }

  /* 商品スライダー（PC3商品 / モバイル2 ずつ表示） */
  .pm-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 12px;
  }
  .pm-slider {
    flex: 1;
    overflow-x: clip;
    overflow-y: visible;
    min-width: 0;
  }
  .pm-slider-track {
    display: flex;
    gap: 12px;
    width: 100%;
    padding-bottom: 2px;
    transition: transform 0.35s ease;
    will-change: transform;
    user-select: none;
    touch-action: pan-y;
  }
  /* 商品カード：courses ページの .product-card と同じデザイン */
  .pm-product {
    flex: 0 0 calc((100% - 24px) / 3);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
  }
  .pm-product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  .pm-product__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  .pm-product__img img {
    width: 100%;
    height: 100%;
    /* contain：縦長/横長の画像をクロップせずに表示。将来 600x600 統一後も問題なし */
    object-fit: contain;
    display: block;
    -webkit-user-drag: none;
  }
  .pm-product__name {
    padding: 6px 6px 4px;
    font-size: 12px;
    color: #444;
    line-height: 1.4;
    word-break: break-word;
    text-align: left;
    flex: 0 0 auto;
  }
  .pm-product { position: relative; }
  .pm-product__allergy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 6px 8px;
    padding: 2px 0;
    font-size: 11px;
    font-weight: 500;
    color: #8a7a5e;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    font-family: inherit;
    line-height: 1.2;
    text-decoration: none;
    transition: color .15s;
    align-self: flex-start;
  }
  .pm-product__allergy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #b08a5a;
    border-radius: 50%;
    line-height: 1;
  }
  .pm-product__allergy:hover,
  .pm-product__allergy:focus,
  .pm-product__allergy.is-open {
    color: #b54708;
    text-decoration: underline;
    text-underline-offset: 2px;
    outline: none;
  }
  .pm-product__allergy-tip {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    max-width: 260px;
    padding: 8px 12px;
    background: #1f2937;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
    border-radius: 6px;
    white-space: pre-wrap;
    word-break: break-word;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    z-index: 30;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
  }
  .pm-product__allergy-tip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 16px;
    border: 5px solid transparent;
    border-bottom-color: #1f2937;
  }
  .pm-product__allergy:hover .pm-product__allergy-tip,
  .pm-product__allergy:focus .pm-product__allergy-tip,
  .pm-product__allergy.is-open .pm-product__allergy-tip {
    opacity: 1;
    pointer-events: auto;
  }
  @media (max-width: 480px) {
    .pm-product__allergy {
      font-size: 10.5px;
      margin: 0 4px 6px;
    }
    .pm-product__allergy-icon { width: 11px; height: 11px; font-size: 9px; }
    .pm-product__allergy-tip { font-size: 11px; min-width: 150px; max-width: 200px; }
  }

  /* モバイル：2商品ずつ表示（/pets/orderer/courses と統一） */
  @media (max-width: 768px) {
    .pm-product {
      flex: 0 0 calc((100% - 12px) / 2);
      min-width: 0;
    }
  }

  .pm-slider-arrow {
    flex: 0 0 24px;
    width: 24px;
    height: 32px;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
    box-shadow: none;
    transition: opacity .2s;
  }
  .pm-slider-arrow:hover::before {
    border-color: var(--c-primary, #e8821e);
  }
  .pm-slider-arrow.is-disabled {
    opacity: 0.3;
    pointer-events: none;
  }
  .pm-slider-arrow::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #555;
    border-right: 2px solid #555;
  }
  .pm-slider-arrow--prev::before {
    transform: rotate(-135deg);
    margin-left: 3px;
  }
  .pm-slider-arrow--next::before {
    transform: rotate(45deg);
    margin-right: 3px;
  }

  /* 小画面：商品名フォント＋矢印を縮める（カード枚数は 2 のまま維持） */
  @media (max-width: 720px) {
    .pm-product__name {
      font-size: 11px;
    }
  }
  @media (max-width: 480px) {
    .pm-course__comment {
      font-size: 11px;
      padding: 3px 12px;
    }
    .pm-slider-arrow {
      flex: 0 0 20px;
      width: 20px;
      height: 28px;
    }
  }
