@charset "UTF-8";

/* =========================================================
   base
   ========================================================= */
:root {
  --c-red: #b20000;
  --c-gold: #ccaa65;
  --c-text: #222;
  --c-gray: #666;
  --c-line: #ccc;
  --ff-mincho: "Zen Old Mincho", serif;
  --ff-antique: "Zen Antique", "Zen Old Mincho", serif;
  --ff-gothic: "Zen Kaku Gothic Antique", sans-serif;
  --ff-en: "Aboreto", serif;
  /* 装飾要素用スケール（デザイン幅1440px基準） */
  --s: min(1px, calc(100vw / 1440));
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* ページ内リンクの着地位置に少し余白 */
#reserve {
  scroll-margin-top: 40px;
}

body {
  margin: 0;
  font-family: var(--ff-mincho);
  color: var(--c-text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.u-sp {
  display: none;
}

/* 見た目には出さず、読み上げ・文書構造用にだけ残す */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.u-tcy {
  text-combine-upright: all;
  -webkit-text-combine: horizontal;
}

/* =========================================================
   animation : fade in
   ========================================================= */
.js .js-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.8s ease, transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

.js .js-fade--left {
  transform: translateX(-60px);
}

.js .js-fade--right {
  transform: translateX(60px);
}

.js .js-fade.is-show {
  opacity: 1;
  transform: none;
}

/* あらすじ：1行ずつ表示（spanはJSで生成） */
.js .js-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
  transition: opacity 1.6s ease, transform 1.6s cubic-bezier(0.22, 1, 0.36, 1), filter 1.6s ease;
}

.js .js-line.is-show {
  opacity: 1;
  transform: none;
  filter: none;
}

/* =========================================================
   parallax（--py はJSでスクロールに合わせて更新）
   ========================================================= */
[data-parallax] {
  translate: 0 var(--py, 0px);
  will-change: translate;
}

/* =========================================================
   button
   ========================================================= */
.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(800px, 100%);
  height: 85px;
  padding: 16px 40px;
  border: 2px solid var(--c-gold);
  background: var(--c-red);
  overflow: hidden;
  --btn-color: var(--c-red);
}

.btn--dark {
  background: #222;
  --btn-color: #222;
}

/* ホバー：左端から円が広がり色を反転 */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  clip-path: inset(50% 0 50% 0);
  /* 上下50%ずつ切り抜いて高さ0にする */
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn__text {
  position: relative;
  font-family: var(--ff-antique);
  font-size: 32px;
  color: #fff;
  white-space: nowrap;
  transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .btn:hover::before {
    clip-path: inset(0);
    /* 上下とも0にして全体を表示する */
  }

  .btn:hover .btn__text {
    color: var(--btn-color);
  }
}

.btn__corner {
  position: absolute;
  height: 100%;
  width: auto;
  aspect-ratio: 1;
  max-width: none;
}

.btn__corner--tl {
  top: -10px;
  left: -10px;
}

.btn__corner--br {
  right: -10px;
  bottom: -10px;
  transform: rotate(180deg);
}

/* =========================================================
   hero
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 1050px;
  padding: 56px 80px 80px;
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url(../img/bg_washi.jpg) center / cover no-repeat;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0) 27.885%, #fff 46.635%);
}

.hero__bg-couple {
  position: absolute;
  top: -4.75%;
  left: 40.73%;
  width: 64.41%;
  max-width: none;
  opacity: 0.8;
}

.hero__stage {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: 1440px;
  transform: translateX(-50%);
}

/* 7冊の表紙（左上を起点に縮小） */
.hero__covers {
  scale: 0.85;
  transform-origin: 0 0;
}

.hero__cover {
  position: absolute;
  width: calc(var(--s) * 506);
  max-width: none;
}

.hero__cover--01 {
  left: calc(var(--s) * -120);
  top: calc(var(--s) * 41);
}

.hero__cover--02 {
  left: calc(var(--s) * -109.66);
  top: calc(var(--s) * 51.61);
}

.hero__cover--03 {
  left: calc(var(--s) * -99.33);
  top: calc(var(--s) * 62.21);
}

.hero__cover--04 {
  left: calc(var(--s) * -88.99);
  top: calc(var(--s) * 72.84);
}

.hero__cover--05 {
  left: calc(var(--s) * -78.65);
  top: calc(var(--s) * 83.44);
}

.hero__cover--06 {
  left: calc(var(--s) * -68.32);
  top: calc(var(--s) * 94.07);
}

.hero__cover--07 {
  left: calc(var(--s) * -57.98);
  top: calc(var(--s) * 104.67);
}

/* 右上の縦書きタイトル（画面に固定） */
.hero__side {
  position: fixed;
  z-index: 100;
  top: calc(var(--s) * 20);
  /* 下の予約ボタン（right 12px + 幅148px の半分）と中心を揃える */
  right: 86px;
  transform: translateX(50%);
  display: flex;
  align-items: flex-end;
  gap: calc(var(--s) * 2);
}

.hero__side-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: calc(var(--s) * 16);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.375em;
  color: var(--c-red);
}

/* タイトル画像の右上に置く */
.hero__side-text--limited {
  align-self: flex-start;
}

.hero__side-title {
  width: calc(var(--s) * 74.66);
}

/* クリックでメニューを開くボタン */
button.hero__side {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.hero__side:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 4px;
}

/* 左下のスタンプ（画面に固定。下端は予約ボタンと揃える） */
.hero__stamp {
  position: fixed;
  bottom: 9px;
  left: calc(var(--s) * 46);
  z-index: 100;
  width: calc(var(--s) * 54);
}

/* 中央 */
.hero__center {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(720px, 100%);
  text-align: center;
}

.hero__obi {
  position: absolute;
  top: -39px;
  left: 50%;
  z-index: -1;
  width: 108px;
  transform: translateX(-50%);
}

.hero__logo img {
  width: 153px;
}

.hero__author {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.hero__title {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.1em;
  color: var(--c-red);
}

.hero__title-num {
  font-size: 34px;
}

.hero__title-line--box {
  font-size: 33px;
}

.hero__box {
  width: 700px;
  max-width: none;
  margin-top: -95px;
}

.hero__btn {
  margin-top: 0;
}

.hero__limited {
  margin-top: 22px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--c-red);
}

.hero__limited+.hero__date {
  margin-top: 2px;
}

.hero__date {
  margin-top: 22px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.4;
}

.hero__price {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

/* 右下の追従予約ボタン */
.float-reserve {
  position: fixed;
  right: 12px;
  bottom: 9px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 240px;
  border: 2px solid var(--c-red);
  color: var(--c-red);
  transition: opacity 0.8s ease, visibility 0.8s ease, background-color 0.4s ease, color 0.4s ease;
}

.float-reserve:hover {
  background: var(--c-red);
  color: #fff;
}

.float-reserve__text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 32px;
  font-weight: 700;
  line-height: 42px;
  letter-spacing: 0.45em;
}

/* 固定要素（縦書きタイトル・スタンプ・予約ボタン）：ヒーロー中は隠し、あらすじに入ったらふわっと表示 */
.js .hero__side,
.js .hero__stamp,
.js .float-reserve {
  opacity: 0;
  visibility: hidden;
}

.js .hero__side,
.js .hero__stamp {
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.is-past-hero .hero__side,
.is-past-hero .hero__stamp,
.is-past-hero .float-reserve {
  opacity: 1;
  visibility: visible;
}

/* 予約先一覧・フッター表示中は予約ボタンを隠す */
.is-past-hero .float-reserve.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 予約先一覧表示中は縦書きタイトル・スタンプを隠す */
.is-past-hero.is-in-reserve .hero__side,
.is-past-hero.is-in-reserve .hero__stamp {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* hero 表示アニメーション */
.js .hero__covers,
.js .hero__center>* {
  opacity: 0;
  transition: opacity 2s ease, transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .hero__covers {
  transform: translateX(-40px);
  transition-delay: 0.2s;
}

.js .hero__center> :not(.hero__obi) {
  transform: translateY(24px);
}

.is-loaded .hero__covers,
.is-loaded .hero__center> :not(.hero__obi) {
  opacity: 1;
  transform: none;
}

.is-loaded .hero__obi {
  opacity: 1;
}

.js .hero__obi,
.js .hero__logo {
  transition-delay: 0.4s;
}

.js .hero__author {
  transition-delay: 0.6s;
}

.js .hero__title {
  transition-delay: 0.8s;
}

.js .hero__box {
  transition-delay: 1s;
}

.js .hero__btn {
  transition-delay: 1.2s;
}

.js .hero__limited,
.js .hero__date {
  transition-delay: 1.3s;
}

.js .hero__price {
  transition-delay: 1.4s;
}

/* =========================================================
   features（あらすじ）
   ========================================================= */
.features {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding: 330px 80px;
  background: #222;
  color: #fff;
  overflow: hidden;
}

/* パララックスで動く分、上下にはみ出させておく */
.features__bg {
  position: absolute;
  inset: -20% 0;
  background: url(../img/story_bg.png) center / cover no-repeat;
  opacity: 0.25;
}

.features__story {
  position: relative;
  font-size: 20px;
  font-weight: 500;
  line-height: 47px;
  letter-spacing: 3px;
  text-align: center;
}

.features__story p+p {
  margin-top: 47px;
}

.features__note {
  position: relative;
  padding: 20px 80px;
  border: 1px solid #fff;
  font-family: var(--ff-gothic);
  font-size: 16px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: 0.1em;
  text-align: center;
}

/* ホタル */
.features__hotaru {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hotaru {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--s) * var(--w));
  animation: hotaru-float-a var(--float, 9s) ease-in-out var(--delay, 0s) infinite;
}

.hotaru img {
  width: 100%;
  filter: drop-shadow(0 0 6px rgba(255, 238, 120, 0.8));
  animation: hotaru-glow var(--glow, 4s) ease-in-out var(--delay, 0s) infinite;
}

/* セクションが画面に入ったら順にふわっと灯る */
.js .hotaru {
  opacity: 0;
  transition: opacity 2.4s ease;
}

.js .features.is-show .hotaru {
  opacity: 1;
}

.js .hotaru:nth-child(2) {
  transition-delay: 0.6s;
}

.js .hotaru:nth-child(3) {
  transition-delay: 0.2s;
}

.js .hotaru:nth-child(4) {
  transition-delay: 1.2s;
}

.js .hotaru:nth-child(5) {
  transition-delay: 0.4s;
}

.js .hotaru:nth-child(6) {
  transition-delay: 1s;
}

.js .hotaru:nth-child(7) {
  transition-delay: 1.6s;
}

.js .hotaru:nth-child(8) {
  transition-delay: 0.8s;
}

.js .hotaru:nth-child(9) {
  transition-delay: 1.4s;
}

.js .hotaru:nth-child(10) {
  transition-delay: 1.8s;
}

.hotaru--01 {
  --x: 94.44%;
  --y: 57.74%;
  --w: 41.4;
  --float: 10s;
  --glow: 4.2s;
  --delay: -1s;
}

.hotaru--02 {
  --x: 14.72%;
  --y: 8.14%;
  --w: 21.4;
  --float: 8s;
  --glow: 3.4s;
  --delay: -3s;
  animation-name: hotaru-float-b;
}

.hotaru--03 {
  --x: 94.44%;
  --y: 4.54%;
  --w: 44.9;
  --float: 12s;
  --glow: 5s;
  --delay: -5s;
  animation-name: hotaru-float-c;
}

.hotaru--04 {
  --x: 91.94%;
  --y: 81.14%;
  --w: 49.5;
  --float: 11s;
  --glow: 4.6s;
  --delay: -2s;
  animation-name: hotaru-float-b;
}

.hotaru--05 {
  --x: 5.56%;
  --y: 22.17%;
  --w: 41.4;
  --float: 9s;
  --glow: 3.8s;
  --delay: -6s;
  animation-name: hotaru-float-c;
}

.hotaru--06 {
  --x: 11.6%;
  --y: 32.83%;
  --w: 44.9;
  --float: 13s;
  --glow: 5.4s;
  --delay: -4s;
}

.hotaru--07 {
  --x: 11.6%;
  --y: 90.21%;
  --w: 49.5;
  --float: 10s;
  --glow: 4.4s;
  --delay: -7s;
  animation-name: hotaru-float-c;
}

.hotaru--08 {
  --x: 4.17%;
  --y: 67.24%;
  --w: 23.4;
  --float: 8s;
  --glow: 3.2s;
  --delay: -2.5s;
  animation-name: hotaru-float-b;
}

.hotaru--09 {
  --x: 87.93%;
  --y: 33.6%;
  --w: 24.9;
  --float: 9s;
  --glow: 3.6s;
  --delay: -4.5s;
}

.hotaru--10 {
  --x: 88.82%;
  --y: 74.01%;
  --w: 29.5;
  --float: 11s;
  --glow: 4.8s;
  --delay: -1.5s;
  animation-name: hotaru-float-b;
}

@keyframes hotaru-float-a {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(14px, -18px);
  }

  50% {
    transform: translate(-6px, -32px);
  }

  75% {
    transform: translate(-16px, -12px);
  }
}

@keyframes hotaru-float-b {

  0%,
  100% {
    transform: translate(0, 0);
  }

  30% {
    transform: translate(-18px, -10px);
  }

  60% {
    transform: translate(-8px, -28px);
  }

  80% {
    transform: translate(10px, -14px);
  }
}

@keyframes hotaru-float-c {

  0%,
  100% {
    transform: translate(0, 0);
  }

  20% {
    transform: translate(10px, 12px);
  }

  50% {
    transform: translate(22px, -10px);
  }

  75% {
    transform: translate(4px, -22px);
  }
}

@keyframes hotaru-glow {

  0%,
  100% {
    opacity: 1;
    scale: 1;
    filter: drop-shadow(0 0 10px rgba(255, 238, 120, 0.95));
  }

  45% {
    opacity: 0.25;
    scale: 0.85;
    filter: drop-shadow(0 0 2px rgba(255, 238, 120, 0.4));
  }

  60% {
    opacity: 0.35;
    scale: 0.88;
  }
}

/* =========================================================
   bonus
   ========================================================= */
.bonus {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  padding: 140px 0;
  background: url(../img/bg_washi.jpg) left top / 819.2px 573.4px repeat;
  overflow: hidden;
}

.bonus__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bonus__hana {
  position: absolute;
  overflow: hidden;
  opacity: 0.15;
}

.bonus__hana img {
  position: absolute;
  max-width: none;
}

.bonus__hana--a {
  left: 7.71%;
  top: -14.71%;
  width: 97.78%;
  aspect-ratio: 1408 / 1896;
}

.bonus__hana--a img {
  left: 29.16%;
  top: 21.4%;
  width: 90.22%;
}

.bonus__hana--b {
  left: 41.53%;
  top: 53.33%;
  width: 70.21%;
  aspect-ratio: 1011 / 1361;
}

/* 枠の左にはみ出して欠けていたため、左端を枠内に（右側は画面外なので見え方は変わらない） */
.bonus__hana--b img {
  left: 0;
  top: 0;
  width: 116.34%;
}

/* Figmaでは画像の左端が画面外（-70px）で切れていたため、左端が画面内に収まる位置へ */
.bonus__hana--c {
  left: -2.6%;
  top: 16.39%;
  width: 79.1%;
  aspect-ratio: 1139 / 1522;
}

.bonus__hana--c img {
  left: 3.33%;
  top: 7.42%;
  width: 69.84%;
}

/* 金箔 */
.leaf {
  position: absolute;
  width: calc(var(--s) * 15.68);
  max-width: none;
}

.leaf--01 {
  left: 90.97%;
  top: 94.36%;
}

.leaf--02 {
  left: 5.83%;
  top: 75.86%;
  transform: rotate(141.13deg);
}

.leaf--03 {
  left: 94.16%;
  top: 47.17%;
  transform: rotate(-96.09deg);
}

.leaf--04 {
  left: 6.45%;
  top: 38.02%;
  transform: rotate(-173.05deg);
}

.leaf--05 {
  left: 88.33%;
  top: 26.68%;
  transform: rotate(-173.05deg);
}

.leaf--06 {
  left: 56.38%;
  top: 7.69%;
  transform: rotate(-107.89deg);
}

.leaf--07 {
  left: 89.27%;
  top: 2.13%;
  transform: rotate(-3.79deg);
}

.leaf--08 {
  left: 40.73%;
  top: 54.49%;
  transform: rotate(67.78deg);
}

/* 特典アイテム */
.bonus-item {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: min(1080px, calc(100% - 80px));
}

.bonus-item--reverse {
  flex-direction: row-reverse;
}

.bonus-item__visual {
  position: relative;
  flex: none;
  width: 48.06%;
}

/* 赤い和紙の影 */
.bonus-item__visual::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 30px;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(178, 0, 0, 0.4), rgba(178, 0, 0, 0.4)),
    url(../img/bonus_shadow.jpg) center / cover no-repeat;
}

.bonus-item__frame {
  position: relative;
  aspect-ratio: 519 / 697;
  border: 1px solid #222;
  overflow: hidden;
}

.bonus-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bonus-item__frame--soon {
  background: #fff4db;
}

.bonus-item__corner {
  position: absolute;
  width: 25.63%;
  max-width: none;
}

.bonus-item__corner--tl {
  top: -2.87%;
  left: -3.85%;
}

.bonus-item__corner--br {
  right: -3.92%;
  bottom: -2.93%;
  transform: rotate(180deg);
}

.bonus-item__soon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-en);
  font-size: 64px;
  line-height: 1.3;
  color: var(--c-gold);
  text-align: center;
}

.bonus-item__soon-hana {
  position: absolute;
  top: 3.08%;
  left: 11.8%;
  width: 100.12%;
  max-width: none;
  opacity: 0.2;
  transform: rotate(15.6deg);
}

.bonus-item__body {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.bonus-item__text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 32px;
  font-weight: 500;
  line-height: 48px;
  letter-spacing: 0.2em;
  color: #000;
}

/* 縦中横：親の字間（0.2em）が数字の間に入ると中心がズレるので0に。字間ぶんは後ろの余白で確保 */
.bonus-item__text .u-tcy {
  font-size: 0.9em;
  letter-spacing: 0px;
  vertical-align: text-top;
  margin-bottom: 0.35em;
}

/* 括弧のツメ組：始め括弧は前、終わり括弧は後ろの半角アキを詰める */
.u-kakko-s {
  margin-inline-start: -0.5em;
}

.u-kakko-e {
  margin-inline-end: -0.5em;
}

/* 画像の後に文言を表示 */
.bonus-item__body.js-fade {
  --delay: 0.4s;
}

.bonus__btn-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  width: min(800px, calc(100% - 40px));
  padding-top: 100px;
}

/* =========================================================
   secrets（BOX内容）
   ========================================================= */
.secrets {
  display: flex;
}

.secrets__item {
  position: relative;
  display: block;
  flex: 1;
  aspect-ratio: 480 / 741;
  border: 1px solid var(--c-line);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

/* 隣り合う罫線が二重（太く）ならないよう、2つ目以降は左線なし */
.secrets__item+.secrets__item {
  border-left: none;
}

/* クリックでモーダル：ホバーで半透明のグレーをかけ、画像を少し寄せる */
.secrets__img {
  transition: scale 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .secrets__item::after {
    content: "";
    position: absolute;
    inset: 0;
    /* タイトル文字より上に重ねる */
    z-index: 3;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
  }

  .secrets__item:hover::after {
    opacity: 1;
  }

  .secrets__item:hover .secrets__img {
    scale: 1.05;
  }

  .secrets__item:hover .secrets__title {
    color: var(--c-red);
  }
}

.secrets__title {
  position: absolute;
  z-index: 2;
  top: 9.5%;
  left: 50%;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: min(40px, calc(100vw * 40 / 1440));
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.5em;
  text-shadow: 0 0 10px #fff;
  transform: translateX(-50%);
  transition: color 0.6s ease;
}

.secrets__img {
  position: absolute;
  max-width: none;
}

/* 縦いっぱいに表示（左右ははみ出して切れてよい） */
.secrets__img--box {
  top: 0;
  left: 50%;
  width: auto;
  height: 100%;
  opacity: 0.3;
  /* transform だと scale より先に効き、拡大の基準がずれて左に寄るため translate で中央寄せ */
  translate: -50% 0;
}

.secrets__img--letter {
  top: 23.95%;
  left: 4.37%;
  width: 95.62%;
}

/* =========================================================
   details
   ========================================================= */
.details {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding: 80px 80px calc(80px + var(--s) * 170);
  background: url(../img/details_bg.jpg) center / cover no-repeat;
  overflow: hidden;
}

.details__bg {
  position: absolute;
  inset: 0;
  /* 金箔（z-index: 2）が本文より上に出ないよう、背景内で重なりを閉じる */
  z-index: 0;
  pointer-events: none;
}

.details__bg-illust {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0.2;
}

.details__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, #fff 15.302%, rgba(255, 255, 255, 0) 41.878%);
}

.details__bg .leaf {
  z-index: 2;
  width: calc(var(--s) * 9.76);
}

.leaf--d01 {
  left: 91.17%;
  top: 94.92%;
}

.leaf--d02 {
  left: 5.83%;
  top: 77%;
  transform: rotate(141.13deg);
}

.leaf--d03 {
  left: 94.68%;
  top: 49.09%;
  transform: rotate(-96.09deg);
}

.leaf--d04 {
  left: 6.68%;
  top: 40.14%;
  transform: rotate(-173.05deg);
}

.leaf--d05 {
  left: 88.57%;
  top: 29.08%;
  transform: rotate(-173.05deg);
}

.leaf--d06 {
  left: 56.67%;
  top: 10.56%;
  transform: rotate(-107.89deg);
}

.leaf--d07 {
  left: 89.5%;
  top: 5.35%;
  transform: rotate(-3.79deg);
}

.leaf--d08 {
  left: 11.17%;
  top: 10.41%;
  transform: rotate(67.78deg);
}

.details__shop,
.details__product,
.details>.btn {
  position: relative;
  z-index: 1;
}

.details__shop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.details__limited {
  margin-bottom: -18px;
  line-height: 1.2;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-red);
  text-align: center;
}

.details__date {
  font-size: 38px;
  font-weight: 700;
  color: var(--c-red);
  text-align: center;
}

.details__line {
  flex: none;
  width: 1030px;
  max-width: calc(100vw - 40px);
  height: 1px;
}

.details__shop-title {
  margin-block: -6px;
  font-family: var(--ff-antique);
  font-size: 26px;
  font-weight: 400;
  color: var(--c-gray);
}

.details__shop-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  width: min(1000px, 100%);
  margin-top: 9px;
}

.details__shop-list li {
  grid-column: span 2;
}

/* 最終行が2個のときは中央寄せ */
.details__shop-list li:nth-child(3n+1):nth-last-child(2) {
  grid-column: 2 / span 2;
}

.details__shop-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 20px;
  border: 1px solid #000;
  background: #fff;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* ホバー：ぼかしなしの赤い影を右下にずらして表示 */
@media (hover: hover) {
  .details__shop-link:hover {
    box-shadow: 5px 5px 0 var(--c-red);
    transform: translate(-2px, -2px);
  }
}

.details__shop-link img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.details__product {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(880px, 100%);
}

.details__product-title {
  margin-top: 10px;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
}

.details__product-limited {
  color: var(--c-red);
}

.details__product .details__line {
  margin-top: 13px;
}

.details__product-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px;
}

.details__product-img {
  flex: none;
  width: 440px;
  height: auto;
}

.details__product-visual {
  display: flex;
  align-items: center;
  gap: 4px;
}

.details__product-spines {
  display: flex;
  gap: 2px;
}

.details__product-spines img {
  width: auto;
  height: 242px;
}

.details__spec {
  width: 506px;
  max-width: 100%;
  font-family: var(--ff-gothic);
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: 0.05em;
  opacity: 0.95;
}

.details__spec-row {
  display: flex;
}

.details__spec-row dt {
  color: var(--c-gray);
}

.details__spec-row dt::after {
  content: "|";
  margin: 0 0.9em;
}

.details__spec-label {
  color: var(--c-gray);
}

.details__spec-contents li {
  position: relative;
  /* 記号を表示する余白 */
  padding-left: 1em;
}

/* 小さめのグレーの三角。1行目の高さの中央に合わせる */
.details__spec-contents li::before {
  content: "";
  position: absolute;
  top: calc(0.5lh - 0.25em);
  left: 0.1em;
  width: 0.4em;
  height: 0.5em;
  background: var(--c-gray);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}


/* =========================================================
   footer
   ========================================================= */
.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 245px;
  padding: 94px 80px 64px;
  border-top: 1px solid var(--c-line);
  background: var(--c-red);
  color: #fff;
  font-family: var(--ff-gothic);
  font-size: 10px;
  text-align: center;
  overflow: hidden;
  /* トップへ戻るイラストより手前に重ねる */
  z-index: 1;
}

/* 上端を基準に固定（フッターの高さが変わっても上に隙間が出ないように） */
.footer__pine {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--s) * 581);
  aspect-ratio: 581 / 245;
  opacity: 0.4;
  /* 枠では切らない（はみ出しはフッター側の overflow: hidden で切る） */
  pointer-events: none;
}

/* Figmaの画像トランスフォーム（約-32.8°回転）を再現。縦横比は維持 */
.footer__pine img {
  position: absolute;
  top: -21.27%;
  left: -29.7%;
  width: 74.42%;
  height: auto;
  max-width: none;
  transform-origin: 0 0;
  transform: rotate(-32.84deg);
}

.footer__logo {
  position: absolute;
  top: 33px;
  left: 50%;
  width: 42px;
  transform: translateX(-50%);
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.footer__guideline:hover,
.footer__company:hover {
  opacity: 0.7;
}

.footer__copy {
  line-height: 1.4;
}

.footer__company {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 29px;
  margin-top: 2px;
  border: 1px solid #fff;
  font-size: 13.2px;
  transition: opacity 0.4s ease;
}

/* トップへ戻る：フッターの直前に高さ0で置き、下端をフッターの裏に潜らせる
   （ホバーで上に動いても、切れた下端はフッターに隠れたまま） */
.totop {
  position: relative;
  z-index: 0;
  height: 0;
}

.totop__link {
  position: absolute;
  right: calc(var(--s) * 58);
  bottom: calc(var(--s) * -40);
  display: block;
  width: calc(var(--s) * 296);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .totop__link:hover {
    transform: translateY(-14px);
  }
}

/* =========================================================
   SP（〜768px）
   ========================================================= */
@media (max-width: 768px) {
  :root {
    --s: calc(100vw / 600);
  }

  .u-sp {
    display: inline;
  }

  /* button */
  .btn {
    height: 60px;
    padding: 10px 20px;
  }

  .btn__text {
    font-size: 20px;
  }

  .btn__corner--tl {
    top: -7px;
    left: -7px;
  }

  .btn__corner--br {
    right: -7px;
    bottom: -7px;
  }

  /* hero */
  .hero {
    min-height: 0;
    padding: 40px 20px 88px;
  }

  .hero__bg::after {
    background: linear-gradient(to left, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0.9) 55%);
  }

  .hero__bg-couple {
    top: -80px;
    left: 0%;
    width: 150%;
  }

  /* 大きく置いて左側を見切れさせる */
  .hero__covers {
    scale: 0.7;
  }

  .hero__cover {
    width: 85vw;
  }

  .hero__cover--01 {
    left: -55vw;
    top: 6.2vw;
  }

  .hero__cover--02 {
    left: -53.26vw;
    top: 7.98vw;
  }

  .hero__cover--03 {
    left: -51.53vw;
    top: 9.77vw;
  }

  .hero__cover--04 {
    left: -49.79vw;
    top: 11.55vw;
  }

  .hero__cover--05 {
    left: -48.05vw;
    top: 13.33vw;
  }

  .hero__cover--06 {
    left: -46.32vw;
    top: 15.12vw;
  }

  .hero__cover--07 {
    left: -44.58vw;
    top: 16.9vw;
  }

  .hero__side {
    top: 4vw;
    /* 予約ボタン（right 8px + 幅64px の半分）と中心を揃える */
    right: 40px;
  }

  .hero__side-text {
    font-size: 10px;
  }

  .hero__side-title {
    width: 9vw;
  }

  .hero__stamp {
    bottom: 8px;
    left: 8px;
    width: 26px;
  }

  .hero__obi {
    top: -22px;
    width: 78px;
  }

  .hero__logo img {
    width: 110px;
  }

  .hero__author {
    margin-top: 6px;
    font-size: 11px;
  }

  .hero__title {
    margin-top: 6px;
    font-size: 22px;
  }

  .hero__title-num {
    font-size: 24px;
  }

  .hero__title-line--box {
    font-size: 24px;
  }

  .hero__box {
    width: calc(100% + 40px);
    margin-top: 24px;
  }

  .hero__btn {
    margin-top: 8px;
  }

  .hero__limited {
    margin-top: 16px;
    font-size: 20px;
  }

  .hero__date {
    margin-top: 16px;
    font-size: 16px;
  }

  .hero__limited+.hero__date {
    margin-top: 0;
  }

  .hero__price {
    margin-top: 2px;
    font-size: 10px;
  }

  .float-reserve {
    right: 8px;
    bottom: 8px;
    width: 64px;
    height: 112px;
    border-width: 1px;
  }

  .float-reserve__text {
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0.3em;
  }

  /* features */
  .features {
    gap: 40px;
    padding: 110px 20px;
  }

  .features__story {
    font-size: 14px;
    line-height: 2.2;
    letter-spacing: 0.1em;
  }

  .features__story p+p {
    margin-top: 2.2em;
  }

  .features__note {
    padding: 14px 12px;
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.05em;
  }

  @keyframes hotaru-float-a {

    0%,
    100% {
      transform: translate(0, 0);
    }

    25% {
      transform: translate(8px, -10px);
    }

    50% {
      transform: translate(-4px, -18px);
    }

    75% {
      transform: translate(-9px, -7px);
    }
  }

  @keyframes hotaru-float-b {

    0%,
    100% {
      transform: translate(0, 0);
    }

    30% {
      transform: translate(-10px, -6px);
    }

    60% {
      transform: translate(-5px, -16px);
    }

    80% {
      transform: translate(6px, -8px);
    }
  }

  @keyframes hotaru-float-c {

    0%,
    100% {
      transform: translate(0, 0);
    }

    20% {
      transform: translate(6px, 7px);
    }

    50% {
      transform: translate(12px, -6px);
    }

    75% {
      transform: translate(2px, -12px);
    }
  }

  /* bonus */
  .bonus {
    gap: 48px;
    padding: 64px 0;
    background-size: 410px auto;
  }

  .bonus-item,
  .bonus-item--reverse {
    flex-direction: column-reverse;
    align-items: center;
    width: calc(100% - 40px);
  }

  .bonus-item__visual {
    width: 70%;
    margin-right: 15px;
  }

  .bonus-item__visual::before {
    top: 15px;
    left: 15px;
  }

  .bonus-item__body {
    margin-bottom: 24px;
  }

  .bonus-item__text {
    font-size: 20px;
    line-height: 32px;
  }

  .bonus-item__soon {
    font-size: 9vw;
  }

  .bonus__btn-wrap {
    padding-top: 20px;
  }

  /* SP：背景の花は各テキストの後ろに1つずつ敷く（上から a → c → b） */
  .bonus__hana {
    display: none;
  }

  /* 画面外へずらした花で横スクロールが出ないように */
  .bonus {
    overflow-x: clip;
  }

  .bonus-item__body {
    position: relative;
    isolation: isolate;
  }

  .bonus-item__body::before {
    content: "";
    position: absolute;
    top: -40px;
    bottom: -40px;
    left: 50%;
    z-index: -1;
    width: 100vw;
    background: center / contain no-repeat;
    opacity: 0.15;
    transform: translateX(-50%);
    /* パララックス（--py-before はJSで更新） */
    translate: 0 var(--py-before, 0px);
    will-change: translate;
    pointer-events: none;
  }

  /* 花は絵が途切れている側を画面端に揃え、画面外から出てくるように（a・b：右端、c：左端） */
  /* a：少し大きく、右へずらして左に20度傾ける */
  .bonus-item:nth-child(2) .bonus-item__body::before {
    top: -50px;
    bottom: -110px;
    background-image: url(../img/hana_02_a.png);
    background-position: right center;
    transform: translateX(calc(-50% + 20vw)) rotate(-20deg);
  }

  .bonus-item:nth-child(3) .bonus-item__body::before {
    background-image: url(../img/hana_02_c.png);
    background-position: left center;
  }

  .bonus-item:nth-child(4) .bonus-item__body::before {
    background-image: url(../img/hana_02_b.png);
    background-position: right center;
  }

  /* 花がイラスト・COMING SOONの枠より手前に出ないよう、枠側を上に */
  .bonus-item__visual {
    z-index: 1;
  }

  /* 縦積みでは文言が上になるので遅延なし */
  .bonus-item__body.js-fade {
    --delay: 0s;
  }

  .js .js-fade--left {
    transform: translateX(-30px);
  }

  .js .js-fade--right {
    transform: translateX(30px);
  }

  /* secrets：縦積み */
  .secrets {
    flex-direction: column;
  }

  .secrets__item {
    flex: none;
    width: 100%;
    /* 縦を短めに。狭い端末でも縦書きタイトル（最長6文字）が収まる高さは確保 */
    aspect-ratio: 1 / 0.58;
    min-height: 210px;
  }

  /* 縦積みでは左線を戻し、上線をなくす */
  .secrets__item+.secrets__item {
    border-top: none;
    border-left: 1px solid var(--c-line);
  }

  /* テキストは上下中央 */
  .secrets__title {
    top: 50%;
    transform: translate(-50%, -50%);
    /* 末尾の字間ぶんを上にも足して見た目の中央に */
    padding-top: 0.3em;
    /* top: 50% で使える高さが減り2列に折り返すのを防ぐ */
    white-space: nowrap;
    font-size: 24px;
    letter-spacing: 0.3em;
  }

  .secrets__img--letter {
    top: auto;
    right: 0;
    bottom: 0;
    left: auto;
    width: 75%;
  }

  /* details */
  .details {
    gap: 48px;
    padding: 64px 20px 130px;
  }

  /* 縦長のSPでは幅100%だと小さすぎるので、高さ基準で大きく敷く（縦横比は維持） */
  .details__bg-illust {
    left: 50%;
    width: auto;
    max-width: none;
    height: 55%;
    opacity: 0.3;
    transform: translateX(-50%);
  }

  .details__bg::after {
    background: linear-gradient(to bottom, #fff 8%, rgba(255, 255, 255, 0) 30%);
  }

  .details__limited {
    margin-bottom: -13px;
    font-size: 12px;
  }

  .details__date {
    font-size: 17px;
  }

  .details__shop {
    gap: 12px;
  }

  .details__shop-title {
    margin-block: 0;
    font-size: 20px;
  }

  .details__shop-list {
    gap: 8px;
    margin-top: 4px;
  }

  .details__shop-link {
    height: 44px;
    padding: 0 6px;
  }

  .details__shop-link img {
    width: 100%;
    height: auto;
    max-height: 34px;
  }

  .details__product-title {
    font-size: 20px;
  }

  .details__product .details__line {
    margin-top: 10px;
  }

  .details__product-body {
    gap: 8px;
    padding: 24px 0 0;
  }

  .details__product-img {
    width: 100%;
  }

  .details__product-visual {
    justify-content: center;
    width: 100%;
  }

  .details__product-spines {
    flex: 1;
    min-width: 0;
  }

  .details__product-spines img {
    width: calc((100% - 12px) / 7);
    height: auto;
  }

  .details__spec {
    font-size: 14px;
    line-height: 24px;
  }

  /* footer */
  .footer {
    padding: 88px 20px 64px;
  }

  /* 上端を基準に下へ伸ばす（はみ出した下側は切る） */
  .footer__pine {
    bottom: 0;
    width: 75vw;
    aspect-ratio: auto;
  }

  /* 回転後の絵の上端がフッター上端に来る位置 */
  .footer__pine img {
    top: 4vw;
  }

  .totop__link {
    right: 12px;
    bottom: -24px;
    width: 160px;
  }
}

/* =========================================================
   modal（BOX内容の詳細）
   ========================================================= */
.modal {
  /* デザイン幅1727px基準のスケール */
  --m: min(1px, calc(100vw / 1727), calc(100vh / 1112));
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  /* 帯の上下は後ろのページが見えるよう透過 */
  background: transparent;
  color: var(--c-text);
  opacity: 0;
  transition: opacity 0.5s ease;
  /* 帯（100vw）がスクロールバー幅ぶんはみ出してスクロールバーが出るのを防ぐ */
  overflow: hidden;
}

.modal:not([open]) {
  display: none;
}

.modal::backdrop {
  background: transparent;
}

.modal.is-open {
  opacity: 1;
}

.modal__band {
  position: relative;
  width: calc(var(--m) * 1727);
  height: calc(var(--m) * 741);
}

/* 和紙の帯は画面幅いっぱい */
.modal__band::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    url(../img/bonus_shadow.jpg) center / cover no-repeat;
  transform: translateX(-50%);
}

.modal__flower {
  position: absolute;
  top: calc(var(--m) * 26);
  left: calc(var(--m) * 1344);
  width: calc(var(--m) * 434);
  height: calc(var(--m) * 715);
  opacity: 0.2;
  overflow: hidden;
}

.modal__flower img {
  position: absolute;
  top: 2.16%;
  left: 46.74%;
  width: 87.69%;
  /* 縦横比を保つ（枠からはみ出た分は切り取り） */
  height: auto;
  max-width: none;
}

.modal__leaf {
  width: calc(var(--m) * 9.76);
}

.modal__leaf--01 {
  left: calc(var(--m) * 84);
  top: calc(var(--m) * 670);
  transform: rotate(141.13deg);
}

.modal__leaf--02 {
  left: calc(var(--m) * 1583);
  top: calc(var(--m) * 344);
  transform: rotate(-96.09deg);
}

/* タイトル（6文字の時）に重ならないよう、デザイン位置より下へ */
.modal__leaf--03 {
  left: calc(var(--m) * 208);
  top: calc(var(--m) * 640);
  transform: rotate(-173.05deg);
}

.modal__leaf--04 {
  left: calc(var(--m) * 1652);
  top: calc(var(--m) * 72);
  transform: rotate(-173.05deg);
}

.modal__leaf--05 {
  left: calc(var(--m) * 1335);
  top: calc(var(--m) * 691);
}

.modal__leaf--06 {
  left: calc(var(--m) * 58);
  top: calc(var(--m) * 112);
  transform: rotate(67.78deg);
}

.modal__leaf--07 {
  left: calc(var(--m) * 758);
  top: calc(var(--m) * 12);
  transform: rotate(-107.89deg);
}

.modal__leaf--08 {
  left: calc(var(--m) * 1687);
  top: calc(var(--m) * 563);
  transform: rotate(-3.79deg);
}

/* スライド：同じ位置に重ねてフェード切り替え */
.modal__slides {
  position: absolute;
  inset: 0;
  display: grid;
}

.modal__slide {
  position: relative;
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.modal__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.modal__title {
  position: absolute;
  top: calc(var(--m) * 39);
  /* デザイン上の文字列中央（x=180）に合わせる */
  left: calc(var(--m) * 180);
  z-index: 1;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: calc(var(--m) * 60);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.45em;
  color: var(--c-gray);
}

.modal__panel {
  position: absolute;
  top: calc(var(--m) * 43);
  left: calc(var(--m) * 254);
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--m) * 1270);
  height: calc(var(--m) * 552);
  background: #fff;
}

.modal__img {
  width: auto;
  max-width: 80%;
  height: 74.5%;
  object-fit: contain;
}

/* 白枠の縦か横いっぱいに表示（縦横比は維持） */
.modal__img.modal__img--fill {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.modal__text {
  position: absolute;
  top: calc(var(--m) * 641);
  left: 0;
  right: 0;
  font-family: var(--ff-gothic);
  font-size: calc(var(--m) * 24);
  line-height: 1.5;
  color: var(--c-text);
  text-align: center;
}

/* 前へ／次へ（1枚のSVGを左右で切り出して表示） */
.modal__arrow {
  position: absolute;
  top: calc(var(--m) * 197);
  z-index: 1;
  width: calc(var(--m) * 93);
  height: calc(var(--m) * 343.4);
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.4s ease;
}

.modal__arrow img {
  position: absolute;
  top: 0;
  width: calc(var(--m) * 1713.4);
  height: calc(var(--m) * 343.4);
  max-width: none;
}

.modal__arrow--prev {
  left: calc(var(--m) * 10);
}

.modal__arrow--prev img {
  left: 0;
}

.modal__arrow--next {
  right: calc(var(--m) * 7);
}

.modal__arrow--next img {
  right: 0;
}

/* 閉じる（線のある範囲だけをボタンにする） */
.modal__close {
  position: absolute;
  top: calc(50% - var(--m) * 556 + var(--m) * 61);
  right: calc(50% - var(--m) * 863.5 + var(--m) * 54);
  width: calc(var(--m) * 324);
  height: calc(var(--m) * 87);
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.4s ease;
}

.modal__close img {
  position: absolute;
  top: calc(var(--m) * -75);
  left: 0;
  width: calc(var(--m) * 324);
  height: calc(var(--m) * 236.8);
  max-width: none;
}

@media (hover: hover) {

  .modal__arrow:hover,
  .modal__close:hover {
    opacity: 0.5;
  }
}

.modal:focus {
  outline: none;
}

.modal :focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 4px;
}

/* SP：縦に積んだレイアウト */
@media (max-width: 768px) {
  .modal {
    --m: calc(100vw / 1727);
  }

  .modal__band {
    width: 100%;
    height: auto;
    padding: 40px 0 32px;
  }

  .modal__flower {
    top: 0;
    left: auto;
    right: 0;
    width: 40%;
    height: 100%;
  }

  .modal__slides {
    width: 100%;
  }

  /* 白枠は全スライド同じサイズ。画像は枠内に収める */
  .modal__img {
    width: auto;
    max-width: 80%;
    height: auto;
    max-height: 80%;
  }

  .modal__slides {
    position: relative;
  }

  .modal__slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .modal__title,
  .modal__panel,
  .modal__text {
    position: relative;
    top: auto;
    left: auto;
  }

  .modal__title {
    transform: none;
    writing-mode: horizontal-tb;
    font-size: 20px;
    letter-spacing: 0.2em;
  }

  .modal__panel {
    width: calc(100% - 100px);
    /* モーダル画像の比率（1000×727）に合わせ、全スライド同じサイズに */
    height: calc((100vw - 100px) * 727 / 1000);
  }

  .modal__text {
    padding: 0 20px;
    font-size: 14px;
  }

  .modal__arrow {
    top: 50%;
    width: 24px;
    height: 90px;
    transform: translateY(-50%);
  }

  .modal__arrow img {
    width: 449px;
    height: 90px;
  }

  .modal__arrow--prev {
    left: 10px;
  }

  .modal__arrow--next {
    right: 10px;
  }

  .modal__close {
    top: 20px;
    right: 20px;
    width: 100px;
    height: 27px;
  }

  .modal__close img {
    top: -23px;
    width: 100px;
    height: 73px;
  }
}

/* =========================================================
   menu（.modal の全画面・フェード・閉じるボタンを共用）
   ========================================================= */
/* 半透明の和紙を全面に敷く */
.menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../img/bg_washi.jpg) left top / 819.2px 573.4px repeat;
  opacity: 0.92;
}

.menu__flower {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 90%;
  opacity: 0.2;
  pointer-events: none;
}

.menu__flower img {
  width: auto;
  height: 100%;
  max-width: none;
}

/* PC：右にタイトル一式、その左にメニュー／SP：上にタイトル一式、その下にメニュー */
.menu__inner {
  position: relative;
  /* 和紙（::before）・花より手前に重ねる */
  z-index: 1;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 120px;
  width: 100%;
  max-height: 100%;
  padding: 60px 20px;
  overflow-y: auto;
}

/* ヒーローと同じ hero__ 系の見た目を流用 */
.menu__head {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  text-align: center;
}

.menu__nav {
  position: relative;
  flex-shrink: 0;
}

/* 縦組み：項目は右から左へ並び、上端で揃える */
.menu__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  writing-mode: vertical-rl;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu__link {
  display: block;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.2em;
  color: var(--c-text);
  text-decoration: none;
  transition: color 0.4s ease;
}

@media (hover: hover) {
  .menu__link:hover {
    color: var(--c-red);
  }
}

@media (max-width: 768px) {
  .menu__flower {
    height: 55%;
  }

  /* 画面に収まらない端末ではスクロール。上下の auto マージンで中央寄せしつつ上端が切れないようにする */
  .menu__inner {
    flex-direction: column;
    justify-content: flex-start;
    gap: 40px;
    height: 100%;
    padding: 50px 20px;
  }

  .menu__head {
    margin-top: auto;
  }

  /* 縦組みのリストを左右中央に */
  .menu__nav {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: auto;
  }

  .menu__list {
    gap: 24px;
  }

  .menu__link {
    font-size: 20px;
  }
}

/* =========================================================
   動きを減らす設定（OSの「視差効果を減らす」等）のときはアニメーションを止める
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }

  [data-parallax] {
    translate: none;
  }
}