:root {
  --red: #CD0000;
  --red-light: #FEF2F2;
  --cream: #FDF6EE;
  --cream-dark: #F5EBDD;
  --warm-white: #FFFBF7;
  --green: #3A8A3A;
  --green-bg: #EDF5ED;
  --teal: #1773A5;
  --teal-bg: #E8F2F8;
  --burnt: #C75B24;
  --burnt-bg: #FDF0E6;
  --gold: #9F8530;
  --gold-bg: #F8F1DA;
  --text: #242424;
  --text-sub: #555;
  --text-muted: #888;
  --border: #E5E0D8;
  --border-light: #EEEBE5;
  --white: #fff;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 2px 10px rgba(0,0,0,.08);
  --shadow-card: 0 1px 6px rgba(0,0,0,.07);
  --font-main: "Murecho", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(160deg, #FFF0F2 0%, #FDEEF3 20%, #FDE8F0 40%, #F9E0E8 60%, #FCE8EE 80%, #FFF0F2 100%);
  background-attachment: fixed;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 14px;
}
.page-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--warm-white);
  min-height: 100dvh;
}
@media (min-width: 481px) {
  .page-wrap {
    box-shadow: 0 0 30px rgba(0,0,0,.08);
  }
  /* ---- 桜の花びらアニメーション ---- */
  .sakura-wrap {
    position: fixed;
    top: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: sakuraFall var(--dur) var(--delay) linear infinite;
  }
  @keyframes sakuraFall {
    0%   { transform: translateY(-20px); opacity: 0; }
    6%   { opacity: var(--o, .5); }
    88%  { opacity: var(--o, .5); }
    100% { transform: translateY(105vh); opacity: 0; }
  }
  .sakura-petal {
    animation: sakuraSway var(--sway, 3s) ease-in-out infinite;
  }
  @keyframes sakuraSway {
    0%, 100% { transform: translateX(0); }
    33%  { transform: translateX(35px); }
    66%  { transform: translateX(-18px); }
  }
  .sakura-petal::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 80% 0 55% 50% / 55% 0 80% 50%;
    background: radial-gradient(ellipse at 30% 40%, #FBCDD5 0%, #F5A8B8 60%, #EE90A5 100%);
    animation: sakuraSpin var(--spin, 6s) linear infinite;
  }
  @keyframes sakuraSpin {
    from { transform: rotateZ(0deg) rotateY(0deg); }
    to   { transform: rotateZ(360deg) rotateY(180deg); }
  }
  .page-wrap {
    position: relative; z-index: 1;
  }
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; border: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }

/* ============================================================
   SECTION FADE (セクション単位のみ)
   ============================================================ */
.sec-rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.sec-rv.is-v { opacity: 1; transform: translateY(0); }

/* ============================================================
   HEADER
   ============================================================ */
.hd {
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--border-light);
}
.hd-inner {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 16px;
}
.hd-inner img { height: 20px; width: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--warm-white);
  text-align: center;
}
.hero > img {
  width: 100%; height: auto; display: block;
}

.hero-title {
  font-family: var(--font-main);
  font-weight: 900; line-height: 1.5;
  margin-bottom: 6px;
  font-size: 22px;
  color: var(--text);
}
.hero-title span {
  font-size: 52px;
  color: var(--red);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.hero-title .sale-chars {
  display: inline-flex; align-items: baseline;
}
.hero-title .sale-chars span {
  display: inline-block;
  font-size: 60px;
  color: var(--red);
}
.hero-title .sale-chars .tilt-l { transform: rotate(-6deg); }
.hero-title .sale-chars .tilt-r { transform: rotate(5deg); }
.hero-title .sale-chars .tilt-l2 { transform: rotate(-4deg); }
.hero-title .sale-chars .tilt-r2 { transform: rotate(7deg); }
@media (min-width: 420px) { .hero-title span { font-size: 62px; } .hero-title .sale-chars span { font-size: 70px; } }

.hero-catch {
  font-family: var(--font-main);
  font-weight: 700; font-size: 15px;
  color: var(--text);
  line-height: 1.65; margin-bottom: 6px;
}
@media (min-width: 420px) { .hero-catch { font-size: 17px; } }


/* ---- お得訴求 ---- */
.deal {
  max-width: 380px; margin: 0 auto 22px;
  text-align: center;
}
.deal-row {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 2px;
}
.deal-num {
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--red);
}
.deal-num .n {
  font-size: 36px;
  display: inline-block;
  transform: rotate(-5deg);
}
.deal-num .u {
  font-size: 17px;
  display: inline-block;
  transform: rotate(4deg);
}
.deal-row.lg .deal-num .n {
  font-size: 48px;
  transform: rotate(5deg);
}
.deal-row.lg .deal-num .u {
  font-size: 20px;
  transform: rotate(-3deg);
}
@media (min-width: 420px) {
  .deal-row { font-size: 16px; }
  .deal-num .n { font-size: 40px; }
  .deal-row.lg .deal-num .n { font-size: 54px; }
}

/* ---- カレンダー画像 ---- */
.cal-wrap {
  max-width: 420px; margin: 0 auto;
}
.cal-wrap img {
  width: 100%; height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.btn-hero {
  display: inline-block;
  padding: 12px 32px;
  font-size: 15px; font-weight: 700;
  color: var(--white);
  background: var(--red);
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(205,0,0,.2);
  transition: transform .2s ease, opacity .2s ease;
}
.btn-hero:active { transform: scale(.97); }
@media (hover: hover) {
  .btn-hero:hover { opacity: .85; transform: translateY(-2px); }
}

/* ============================================================
   PHASE NAV
   ============================================================ */
.pnav {
  position: sticky; top: 0; z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}
.pnav-inner {
  display: flex;
  padding: 0;
}
.pnav-tab {
  flex: 1; min-width: 0;
  padding: 10px 8px;
  text-align: center;
  font-size: 10px; font-weight: 500;
  color: var(--text-sub);
  background: none;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border-light);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}
.pnav-tab:last-child { border-right: none; }
.pnav-tab .tp { display: block; font-size: 9px; font-weight: 500; letter-spacing: .03em; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pnav-tab .tl { display: block; font-size: 12px; font-weight: 700; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 420px) {
  .pnav-tab .tp { font-size: 10px; }
  .pnav-tab .tl { font-size: 13px; }
}
/* アクティブ */
.pnav-tab[data-p="1"].is-active { color: #BA5FBF; border-bottom-color: #BA5FBF; }
.pnav-tab[data-p="2"].is-active { color: #00BFB7; border-bottom-color: #00BFB7; }
.pnav-tab[data-p="3"].is-active { color: #F69601; border-bottom-color: #F69601; }
.pnav-tab.is-active .tp { opacity: 1; }

/* ============================================================
   PHASE SECTIONS
   ============================================================ */
.phase {
  scroll-margin-top: 96px;
  padding: 28px 16px 32px;
}
.phase + .phase { border-top: 1px solid var(--border-light); }
.phase[data-p="1"] { background: #FFEFF2; }
.phase[data-p="2"] { background: var(--white); }
.phase[data-p="3"] { background: #FFEFF2; }

.ph-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px; flex-wrap: wrap;
}
.ph-chip {
  font-size: 10px; font-weight: 900; letter-spacing: .08em;
  color: var(--white); padding: 3px 10px; border-radius: 4px;
}
[data-p="1"] .ph-chip { background: #BA5FBF; }
[data-p="2"] .ph-chip { background: #00BFB7; }
[data-p="3"] .ph-chip { background: #F69601; }
.ph-dates {
  font-size: 13px; color: var(--text); font-weight: 700;
}
.ph-live {
  display: none;
  font-size: 11px; font-weight: 900;
  color: var(--white); background: var(--red);
  padding: 3px 10px; border-radius: 4px;
  letter-spacing: .08em;
}
.phase.is-live .ph-live { display: inline-block; }

.ph-name {
  font-family: var(--font-main);
  font-size: 24px; font-weight: 900;
  color: var(--text); line-height: 1.3;
  margin-bottom: 4px;
}
@media (min-width: 420px) { .ph-name { font-size: 28px; } }

.ph-desc {
  font-size: 13px; color: var(--text-sub);
  line-height: 1.65; margin-bottom: 20px;
}

/* ---- プラン一覧 ---- */
.plans-head {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 10px;
}
.plans-title {
  font-family: var(--font-main);
  font-size: 14px; font-weight: 900; color: var(--text);
}
.plans-rates {
  font-size: 13px; color: var(--text-sub); font-weight: 700;
}
.plans-rates .r3 { color: var(--red); font-weight: 900; font-size: 15px; }
.plans-rates .r14 { color: var(--gold); font-weight: 900; font-size: 15px; }

/* ---- クーポン券 ---- */
.coupon-row {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px;
}
.coupon-card {
  --notch: 10px;
  --bg: var(--green-bg);
  --accent: #BA5FBF;
  position: relative;
  display: flex;
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 1px 5px rgba(0,0,0,.1);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.coupon-card:active { transform: scale(.98); box-shadow: 0 0 2px rgba(0,0,0,.1); }

/* 左端カラーバー */
.coupon-accent {
  width: 6px; flex-shrink: 0;
  border-radius: 8px 0 0 8px;
  background: var(--accent);
}

/* 割引情報エリア */
.coupon-left {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 12px 14px 14px;
}
.coupon-card.c14 .coupon-left { background: var(--gold-bg); }
.coupon-card.c3  .coupon-left { background: var(--white); }

.coupon-rate {
  font-family: var(--font-main);
  font-weight: 900; line-height: 1;
  white-space: nowrap;
  width: 95px; flex-shrink: 0; text-align: right;
}
.coupon-card.c14 .coupon-rate { font-size: 32px; color: var(--gold); }
.coupon-card.c3  .coupon-rate { font-size: 32px; color: var(--red); }
.coupon-rate small { font-size: 15px; font-weight: 900; }

.coupon-detail {
  display: flex; flex-direction: column; gap: 2px;
}
.coupon-type {
  font-size: 14px; font-weight: 900; line-height: 1.3;
}
.coupon-card.c14 .coupon-type { color: var(--gold); }
.coupon-card.c3  .coupon-type { color: var(--red); }
.coupon-label {
  font-size: 12px; font-weight: 600; color: var(--text-muted); line-height: 1.3;
}

/* パンチホール（上下） */
.coupon-card::before,
.coupon-card::after {
  content: "";
  position: absolute;
  right: 104px;
  width: calc(var(--notch) * 2);
  height: var(--notch);
  z-index: 2;
}
.coupon-card::before {
  top: calc(var(--notch) * -0.5);
  border-radius: 0 0 var(--notch) var(--notch);
  background: var(--bg);
}
.coupon-card::after {
  bottom: calc(var(--notch) * -0.5);
  border-radius: var(--notch) var(--notch) 0 0;
  background: var(--bg);
}

/* ミシン目 */
.coupon-perf {
  width: 0;
  border-left: 2px dashed #ddd;
  margin: 8px 0;
}

/* 右: 獲得ボタン */
.coupon-right {
  display: flex; align-items: center; justify-content: center;
  width: 114px; flex-shrink: 0;
  border-radius: 0 8px 8px 0;
}
.coupon-card.c14 .coupon-right { background: var(--gold-bg); }
.coupon-card.c3  .coupon-right { background: var(--white); }
.coupon-btn {
  font-size: 13px; font-weight: 900;
  padding: 8px 16px; border-radius: 20px;
  color: var(--white);
}
.coupon-card.c14 .coupon-btn { background: var(--gold); }
.coupon-card.c3  .coupon-btn { background: var(--red); }

/* ---- クーポン状態 ---- */
.coupon-card.is-loading .coupon-btn {
  background: #ccc !important;
  color: rgba(255,255,255,.7);
  pointer-events: none;
}
.coupon-card.is-owned {
  cursor: default; opacity: .7;
}
.coupon-card.is-owned:active {
  transform: none; box-shadow: 0 1px 5px rgba(0,0,0,.1);
}
.coupon-card.is-owned .coupon-btn {
  background: #999 !important;
  cursor: not-allowed; pointer-events: none;
}
.coupon-card.is-claiming .coupon-btn {
  background: #bbb !important;
  pointer-events: none; cursor: wait;
}

/* ---- ポイント還元パネル ---- */
.pt-panel {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.pt-panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}
.pt-panel-row + .pt-panel-row {
  border-top: 1px solid var(--border-light);
}
.pt-panel-row.pp-gold {
  background: rgba(159,133,48,.06);
}
.pt-panel-scope {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
}
.pt-panel-rate {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 12px;
  color: var(--text-sub);
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.pt-panel-rate strong {
  font-size: 36px;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1;
}
.pt-panel-rate small {
  font-size: 18px;
  font-weight: 900;
}
.pt-panel-rate.pp-14 strong {
  color: var(--gold);
}

.card-scroll {
  overflow: hidden;
  position: relative;
  padding: 10px 0 16px;
}
.card-row {
  display: flex;
  will-change: transform;
  transition: transform .45s cubic-bezier(.25,.46,.45,.94);
}

/* カード */
.fc {
  flex-shrink: 0;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .45s ease, opacity .45s ease, box-shadow .45s ease;
  transform: scale(.88);
  opacity: .5;
  cursor: pointer;
}
.fc.is-carousel-active {
  transform: scale(1);
  opacity: 1;
  box-shadow: var(--shadow-md);
}
.fc-img {
  position: relative; height: 170px; overflow: hidden;
}
.fc-img img { width: 100%; height: 100%; object-fit: cover; }
.fc-tag {
  position: absolute; top: 8px; left: 8px;
  padding: 4px 10px; border-radius: 4px;
  font-size: 13px; font-weight: 900;
}
.fc-tag.t14 {
  background: var(--gold); color: var(--white);
}
.fc-tag.t3 {
  background: rgba(255,255,255,.92); color: var(--red);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.fc-body { padding: 12px 14px 14px; }
.fc-name {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.4; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fc-area {
  font-size: 15px; font-weight: 700; color: var(--text);
  line-height: 1.4; margin-bottom: 4px;
}
.fc-pt { font-size: 13px; font-weight: 900; }
.fc-pt.p14 { color: var(--gold); }
.fc-pt.p3 { color: var(--red); }
.fc-pt del {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 12px;
  margin-right: 4px;
}
.fc-price-new { font-size: 15px; }

/* ローディング/エラー */
.cards-loading, .cards-error {
  text-align: center; padding: 24px 16px;
  font-size: 12px; color: var(--text-muted);
}
.cards-error { color: var(--red); }

/* CTA */
.ph-cta { margin-top: 22px; text-align: center; }
.btn-cta {
  display: inline-block;
  max-width: 320px; width: 100%;
  padding: 11px 24px;
  font-size: 16px; font-weight: 600;
  color: var(--white);
  border-radius: 9999px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: transform .2s ease, opacity .2s ease;
}
[data-p="1"] .btn-cta { background: #BA5FBF; }
[data-p="2"] .btn-cta { background: #00BFB7; }
[data-p="3"] .btn-cta { background: #F69601; }
.btn-cta:active { transform: scale(.97); }
@media (hover: hover) {
  .btn-cta:hover { opacity: .85; transform: translateY(-2px); }
}
.phase.is-past { opacity: .5; }
.phase.is-past .btn-cta {
  background: #bbb !important;
  box-shadow: none !important;
  pointer-events: none;
}

/* ============================================================
   DETAILS
   ============================================================ */
.det {
  background: #FAFAFA;
  border-top: 1px solid var(--border-light);
  padding: 32px 16px;
}
.det-head {
  font-family: var(--font-main);
  font-size: 17px; font-weight: 900;
  text-align: center; margin-bottom: 14px;
  color: var(--text);
}
.det-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
}
.det-toggle-icon {
  display: none;
}
.det-body {
  padding-top: 4px;
}
.dg { margin-bottom: 14px; }
.dg:last-child { margin-bottom: 0; }
.dt-label {
  font-size: 12px; font-weight: 900;
  color: var(--red); margin-bottom: 1px;
}
.dd-val { font-size: 13px; line-height: 1.75; }
.dd-val small {
  display: block; font-size: 11px;
  color: var(--text-muted); margin-top: 1px;
}
.dd-val ul { padding-left: 16px; list-style: disc; }
.dd-val li { margin-bottom: 2px; font-size: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.ft {
  padding: 20px 16px calc(20px + var(--safe-bottom));
  text-align: center;
  background: var(--text);
  color: rgba(255,255,255,.3);
  font-size: 10px;
}
.ft a { display: inline-block; margin-bottom: 4px; }
.ft img {
  height: 14px; width: auto;
  filter: brightness(10); opacity: .35; display: inline;
}
