:root {
  --navy: #1E2F4F;
  --navy-2: #2A3D60;
  --gold: #B89A5E;
  --caramel: #B5652B;
  --paper: #FAF8F5;
  --ink: #1E2F4F;
  --mute: #5A6372;
  --pale: #C9D2E0;
  --caramel-ink: #9C4F1D;   /* 白地の小さな文字用（5.58:1） */
  --gold-ink: #7D6538;      /* 明るい地の小さな文字用（5.23:1） */
  --btn-1: #A65B26; --btn-2: #9E5422; --btn-3: #7E4119; /* 白文字ボタン（5.07〜7.90:1） */
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; line-break: strict; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.demo-bar {
  margin: 0; padding: 6px 16px;
  background: #121D33; color: var(--pale);
  font-size: 13px; text-align: center; letter-spacing: .04em;
}

.lp { max-width: 948px; margin: 0 auto; background: var(--paper); box-shadow: 0 0 60px rgba(0,0,0,.35); }
.part { margin: 0; }
.frame { position: relative; line-height: 0; }
.frame img { display: block; width: 100%; height: auto; }
.hit {
  position: absolute; display: block; border-radius: 999px;
  color: transparent; font-size: 1px; overflow: hidden;
  outline-offset: 3px;
}
.hit:focus-visible { outline: 2px solid var(--gold); }

/* 商品欄の補い（HTMLのテキスト層） */
.info { padding: 32px 7% 40px; background: var(--paper); }
.info-title {
  margin: 0 0 16px; font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif; font-weight: 400;
  font-size: 24px; letter-spacing: .06em; color: var(--ink);
}
.spec { margin: 0; border-top: 1px solid var(--gold); }
.spec > div { display: grid; grid-template-columns: 7.5em 1fr; border-bottom: 1px solid var(--gold); }
.spec dt { padding: 12px 12px; background: #EEF1F6; font-size: 15px; }
.spec dd { margin: 0; padding: 12px 12px; font-size: 15px; background: #fff; overflow-wrap: anywhere; }
.spec .em { font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif; font-size: 19px; color: var(--caramel-ink); letter-spacing: .02em; white-space: nowrap; }
.nw { white-space: nowrap; }
.note { margin: 14px 0 22px; font-size: 14px; color: var(--mute); line-height: 1.7; }
.buy {
  min-height: 52px; padding: 10px 16px; border-radius: 999px;
  font-size: 17px; text-align: center; width: 100%; cursor: pointer;
}

.foot { padding: 28px 16px 96px; text-align: center; color: var(--pale); font-size: 13px; }
.foot p { margin: 0; }

/* 追従ボタン（FVのあと・商品欄では隠す） */
.sticky {
  position: fixed; left: 50%; bottom: 14px; z-index: 10;
  transform: translate(-50%, 140%);
  width: min(90vw, 420px); min-height: 52px;
  border-radius: 999px; font-size: 16px;
  /* 1. 隠れている間は見えない・フォーカスも入らない */
  visibility: hidden;
  transition: transform .35s ease, visibility 0s linear .35s;
}
.sticky.show { transform: translate(-50%, 0); visibility: visible; transition: transform .35s ease; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky { transition: none; }
}
@media (min-width: 900px) {
  body { background: radial-gradient(ellipse at top, #24385E, var(--navy) 60%); }
}

/* ===== PCだけの背景演出（1100px以上） ===== */
.pc-stage, .pc-card { display: none; }
@media (min-width: 1100px) {
  /* LPの幅は画面の高さに合わせる：最初の画面でFVのお菓子まで見える幅（948pxを上限） */
  :root { --lpw: clamp(600px, 76vh, 948px); --half: calc(var(--lpw) / 2); --gut: calc(50vw - var(--half)); }
  body { background: #142340; }
  .lp { max-width: var(--lpw); position: relative; z-index: 1;
    box-shadow: 0 0 0 1px rgba(184,154,94,.55), 0 0 0 9px #142340, 0 0 0 10px rgba(184,154,94,.25), 0 30px 80px rgba(0,0,0,.55); }
  .demo-bar { position: relative; z-index: 2; }
  .foot { position: relative; z-index: 1; }

  .pc-stage { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
  /* ランプの灯りのような温かい光 */
  .pc-glow {
    position: absolute; inset: 0;
    background:
      radial-gradient(60vw 50vw at 12% 8%, rgba(214,158,92,.22), transparent 60%),
      radial-gradient(50vw 45vw at 92% 95%, rgba(184,154,94,.14), transparent 62%),
      radial-gradient(120vw 80vw at 50% 50%, #1E2F4F 0%, #142340 55%, #0E1830 100%);
  }
  /* ふたの縁の連珠と星を思わせる、ごく淡い金の地模様 */
  .pc-pattern {
    position: absolute; inset: 0; opacity: .5;
    background-image:
      radial-gradient(circle at 50% 50%, rgba(201,165,90,.55) 0 1.2px, transparent 1.6px),
      radial-gradient(circle at 0 0, rgba(201,165,90,.28) 0 .9px, transparent 1.3px);
    background-size: 44px 44px, 44px 44px;
    background-position: 0 0, 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse at center, transparent 0 30%, #000 68%);
            mask-image: radial-gradient(ellipse at center, transparent 0 30%, #000 68%);
  }
  /* ふたの雪の結晶メダリオンを、左右に大きく */
  .pc-medallion { position: absolute; color: #C9A55A; opacity: .32; }
  .pc-medallion--l { width: 62vh; height: 62vh; left: calc(50% - var(--half) - 62vh * .62); top: 8vh; animation: spin 240s linear infinite; }
  .pc-medallion--r { width: 46vh; height: 46vh; right: calc(50% - var(--half) - 46vh * .66); bottom: -6vh; opacity: .22; animation: spin 300s linear infinite reverse; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* 左の縦書きの商品名（左の余白の中央） */
  .pc-tate {
    display: none;
    position: absolute; top: 50%; left: calc(var(--gut) / 2); transform: translate(-50%, -50%);
    margin: 0; writing-mode: vertical-rl;
    font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif; font-weight: 400; font-size: 24px; letter-spacing: .45em;
    color: rgba(250,248,245,.85);
  }
  .pc-tate span { display: inline-block; margin-top: 3.2em; color: #D9BE86; font-size: 30px; }
  .roomy-tate .pc-tate { display: block; }

  /* 右の注文カード（右の余白の中央。余白が足りないときは画面下の追従ボタン） */
  .pc-card {
    position: fixed; z-index: 3;
    top: 50%; left: calc(50% + var(--half) + var(--gut) / 2); transform: translate(-50%, -50%);
    width: 260px; padding: 28px 24px 22px;
    background: linear-gradient(160deg, rgba(30,47,79,.92), rgba(20,35,64,.92));
    border: 1px solid rgba(184,154,94,.7); outline: 1px solid rgba(184,154,94,.25); outline-offset: 6px;
    color: #FAF8F5; text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
  }
  .roomy-card .pc-card { display: block; }
  .roomy-card .sticky { display: none; }
  .pc-card p { margin: 0; }
  .pc-card__label { font-size: 13px; letter-spacing: .3em; color: #D9BE86; }
  .pc-card__name { margin-top: 4px !important; font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif; font-size: 26px; letter-spacing: .12em; }
  .pc-card__list {
    list-style: none; margin: 16px 0 14px; padding: 12px 0; font-size: 13px; line-height: 1.9; color: #C9D2E0;
    border-top: 1px solid rgba(184,154,94,.45); border-bottom: 1px solid rgba(184,154,94,.45);
  }
  .pc-card__price { font-size: 13px; color: #C9D2E0; }
  .pc-card__price span { font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif; font-size: 30px; color: #FAF8F5; letter-spacing: .04em; margin-right: 2px; }
  .pc-card__sub { margin-top: 2px !important; font-size: 13px; color: #C9D2E0; }
  .pc-card__btn { min-height: 48px; margin-top: 16px; border-radius: 999px; font-size: 16px; }
  .pc-card__btn:focus-visible { outline: 2px solid #D9BE86; outline-offset: 3px; }
  .pc-card__demo { margin-top: 10px !important; font-size: 13px; color: #9AA6BA; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-medallion { animation: none !important; }
}

/* ===== 「注文する」ボタン：贈り物を開けるような華やかさ ===== */
.joy {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: .55em;
  background: linear-gradient(135deg, var(--btn-1) 0%, var(--btn-2) 48%, var(--btn-3) 100%);
  color: #fff; text-decoration: none;
  border: 1px solid rgba(236,204,146,.9);
  box-shadow:
    0 0 0 3px rgba(201,165,90,.22),
    0 10px 24px rgba(181,101,43,.42),
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -2px 0 rgba(0,0,0,.12);
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif; font-weight: 500;
  letter-spacing: .22em;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, filter .25s ease;
}
.joy > span { position: relative; z-index: 1; padding-left: .22em; text-shadow: 0 1px 1px rgba(0,0,0,.2); }
/* リボンのような金の細い線（上下） */
.joy::before {
  content: ""; position: absolute; inset: 3px; border-radius: inherit; z-index: 0; pointer-events: none;
  border: 1px solid rgba(255,232,190,.45);
}
/* 光がすっと流れる */
.joy::after, .hit::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 38%; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,246,224,.75), transparent);
  transform: skewX(-20deg);
  animation: sheen 3.6s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
.joy:hover, .joy:focus-visible {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.06) saturate(1.05);
  box-shadow:
    0 0 0 4px rgba(201,165,90,.35),
    0 14px 30px rgba(181,101,43,.5),
    0 0 26px rgba(236,204,146,.45),
    inset 0 1px 0 rgba(255,255,255,.45);
}
.joy:active { transform: translateY(0) scale(.98); }
.sticky.joy { position: fixed; transform: translate(-50%, 140%); }
.sticky.joy:not(.show) { pointer-events: none; }
.sticky.joy { transition: transform .35s ease, box-shadow .25s ease, filter .25s ease, visibility 0s linear .35s; }
.sticky.joy.show { transition: transform .35s ease, box-shadow .25s ease, filter .25s ease; }
.sticky.joy.show { transform: translate(-50%, 0); }
.sticky.joy.show:hover { transform: translate(-50%, -2px) scale(1.02); }

/* ギフトのアイコン：ときどき、ふたが少し持ち上がるように揺れる */
.ico-gift {
  position: relative; z-index: 1; width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: #FFF3DC; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transform-origin: 50% 80%; animation: giftWiggle 3.6s ease-in-out infinite;
}
@keyframes giftWiggle {
  0%, 60%, 100% { transform: rotate(0) translateY(0); }
  66% { transform: rotate(-9deg) translateY(-1px); }
  72% { transform: rotate(7deg) translateY(-2px); }
  78% { transform: rotate(-4deg); }
  84% { transform: rotate(0); }
}

/* 画像の中のボタン：光の流れだけ重ねる（角丸の形に切り抜く） */
.hit { overflow: hidden; }
.hit::after { animation-delay: 1.2s; }

/* 押したときの、金の粒がふわっと広がる演出 */
.joy-burst { position: fixed; z-index: 50; width: 0; height: 0; pointer-events: none; }
.joy-burst i {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle, #FFF6E0 0 25%, #D9A949 55%, rgba(201,165,90,0) 72%);
  box-shadow: 0 0 6px rgba(201,150,60,.6);
  animation: burst .75s cubic-bezier(.15,.7,.3,1) forwards;
}
.joy-burst i:nth-child(3n) { width: 7px; height: 7px; left: -3px; top: -3px; background: #B5652B; box-shadow: none; }
.joy-burst i:nth-child(4n) { border-radius: 1px; transform: rotate(45deg); background: #C9A55A; }
@keyframes burst {
  0% { transform: translate(0,0) scale(.6); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .joy::after, .hit::after, .ico-gift { animation: none; display: none; }
  .ico-gift { display: block; }
  .joy, .joy:hover { transition: none; transform: none; }
  .sticky.joy.show, .sticky.joy.show:hover { transform: translate(-50%, 0); }
}

/* ===== 「注文する」を押すと出る、デモのお知らせ ===== */
.demo-modal {
  border: 0; padding: 0; background: transparent; max-width: none; max-height: none;
  width: min(88vw, 400px); color: var(--navy); overflow: visible;
}
.demo-modal::backdrop { background: rgba(14,22,40,.62); backdrop-filter: blur(3px); }
.demo-modal__box {
  position: relative; padding: 34px 26px 26px; text-align: center; border-radius: 6px;
  background: #FAF8F5; border: 1px solid var(--gold);
  box-shadow: 0 0 0 5px #FAF8F5, 0 0 0 6px rgba(184,154,94,.7), 0 24px 60px rgba(0,0,0,.35);
}
.demo-modal__ico { width: 34px; height: 34px; fill: none; stroke: var(--caramel); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.demo-modal__label { margin: 8px 0 0; font-size: 12px; letter-spacing: .4em; padding-left: .4em; color: var(--gold-ink); }
.demo-modal__title { margin: 6px 0 0; font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif; font-weight: 500; font-size: 21px; letter-spacing: .06em; line-height: 1.5; }
.demo-modal__text { margin: 14px 0 0; font-size: 14px; line-height: 1.9; color: #5A6372; }
.demo-modal__actions { display: grid; gap: 10px; margin-top: 22px; }
.demo-modal__close, .demo-modal__sub {
  display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px;
  font: inherit; font-size: 15px; letter-spacing: .14em; text-decoration: none; cursor: pointer;
}
.demo-modal__close { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.demo-modal__sub { background: transparent; color: var(--navy); border: 1px solid var(--gold); }
.demo-modal__close:focus-visible, .demo-modal__sub:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; }
.demo-modal[open] .demo-modal__box { animation: modalIn .35s cubic-bezier(.2,.8,.2,1); }
.demo-modal[open]::backdrop { animation: fadeIn .3s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
body.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .demo-modal[open] .demo-modal__box, .demo-modal[open]::backdrop { animation: none; }
}
.demo-modal .nb { display: inline-block; }

/* 8. 画面の外にあるボタンは、光の流れと揺れを止める */
.joy.offscreen::after, .hit.offscreen::after, .joy.offscreen .ico-gift { animation-play-state: paused; }
/* 13. 当たり判定の確認（URLに ?debug を付けたときだけ） */
.debug .hit { background: rgba(255, 0, 0, .3); }
