@charset "UTF-8";

/* ==========================================================================
   若松の赭（WAKAMATSU no SOHO）LP
   仕様書：output2/soho_LP_spec_v2.md

   - サイズは 1440px 幅を基準に rem で指定（1rem = 16px @1440×900）。PC は画面の幅と高さの両方で 1rem を縮める
   - SP（767px 以下）は 390px 幅を基準。ブレイクポイントはこの 1 つだけ（それ以外は画面幅に比例する値で調整する）
   - クラス名は BEM。章はページの上から順に並べている
   - 演出なし（JS 無効・動きを減らす設定）は、ここに書いた既定の見た目で静止表示する。演出の初期状態は main.js が付ける
   ========================================================================== */

/* --------------------------------------------------------------------------
   変数とルート
   -------------------------------------------------------------------------- */
:root {
  /* 色 */
  --color-text: #ffffff;
  --color-bg: #111111;
  --color-line: rgba(255, 255, 255, 0.5);
  --color-hover-bg: #ffffff;
  --color-hover-text: #000000;
  --color-ink: #1a1a1a; /* 墨：明るい地の文字 */
  --color-ink-line: rgba(26, 26, 26, 0.4);
  --color-light-bg: #ede6da; /* 生成り：明るい地。墨とのコントラスト比 約 14:1 */
  /* 書体：和文・数字は Zen Old Mincho。Italiana は英字だけの要素に --font-en で指定する */
  --font-ja: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-en: "Italiana", "Zen Old Mincho", serif;
  --font-nav: "Cormorant Garamond", "Italiana", serif; /* ナビ・ONLINE SHOP：線が太く小さくても読める（500） */
  --font-base: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  /* 配置 */
  --content-width: 62.5rem; /* 1000px */
  --gutter: 5%;
  --edge: max(5vw, 8vw - 2rem); /* PC の左右の余白：画面幅に比例して広げる（1440px で約 83px、2000px で約 128px） */
  --header-h: 7rem;
  --section-space: 10rem;
  /* 動き */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur-hover: 500ms;
  /* 写真の上の文字 */
  --shadow-on-photo: 0 0 8px rgba(0, 0, 0, 0.6);
  /* 地の色の膜の不透明度 --tint-a は main.js が入れる（§2.1.5。既定は body::after の 0.35） */
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* 横のはみ出しはページの一番外側で切る（iPhone の Safari は body の指定だけでは横スクロールを止めない） */
  overflow-x: clip;
}

@media (min-width: 768px) {
  html {
    /* 幅 1440px・高さ 900px で 16px。768〜約830px は PC レイアウト（62.5rem）が 90vw に収まるまで縮める */
    font-size: clamp(min(12px, 1.44vw), min(1.111vw, 1.778vh), 16px);
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 6rem;
    --section-space: 5rem;
    --gutter: 10%;
  }
}

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

body {
  margin: 0;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: var(--font-base);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* 背景（iOS Safari では background-attachment: fixed が効かないため、固定した擬似要素に持たせる） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--color-bg) url("../images/bg.webp") center / cover no-repeat;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
  padding: 0;
  font-weight: 400;
}

ul {
  list-style: none;
}

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

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

iframe {
  border: 0;
}

button,
input {
  font: inherit;
  color: inherit;
}

address {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

html.is-locked body {
  overflow: hidden;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 慣性スクロール（Lenis）。lenis.css の「iframe の pointer-events: none」は地図・動画の操作を妨げるため入れない */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* 地の色の膜（仕様書 §2.1.5）：夜の色。不透明度は main.js が --tint-a で入れる（開幕〜PROCESS は 0、STORY から 0.35） */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #12182a;
  opacity: var(--tint-a, 0.35);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   操作（hover は @media (hover: hover) の中だけ。focus-visible は 2px の outline）
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
iframe:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
}

.text-link {
  transition: opacity var(--dur-hover);
}

@media (hover: hover) {
  .text-link:hover {
    opacity: 0.6;
  }
}

.text-link:active {
  opacity: 0.4;
}

/* 枠線ボタン：左から白い塗りが満ち、文字が白 → 黒になる */
.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0 1em;
  border: 1px solid var(--color-text);
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0.3em;
  text-align: center;
  cursor: pointer;
  transition: color var(--dur-hover) var(--ease);
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--color-hover-bg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-hover) var(--ease);
}

.button__icon {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

@media (hover: hover) {
  .button:hover {
    color: var(--color-hover-text);
  }

  .button:hover::before {
    transform: scaleX(1);
  }
}

.button:focus-visible,
.button:active {
  color: var(--color-hover-text);
}

.button:focus-visible::before {
  transform: scaleX(1);
}

.button:active::before {
  transform: scaleX(1);
  opacity: 0.8;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button:disabled,
.button:disabled:hover {
  color: var(--color-text);
}

.button:disabled::before {
  transform: scaleX(0);
}

@media (max-width: 767px) {
  .button {
    font-size: 0.875rem;
  }
}

/* --------------------------------------------------------------------------
   複数の部品で共通の指定
   -------------------------------------------------------------------------- */
/* 下線が左から伸びるテキストリンク（ロゴ・メニュー項目・MAIL） */
.header__logo,
.global-nav__link,
.footer__mail-link {
  position: relative;
  display: inline-block;
}

.header__logo::after,
.global-nav__link::after,
.footer__mail-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-hover) var(--ease);
}

@media (hover: hover) {
  .header__logo:hover,
  .global-nav__link:hover,
  .footer__mail-link:hover {
    opacity: 1;
  }

  .header__logo:hover::after,
  .global-nav__link:hover::after,
  .footer__mail-link:hover::after {
    transform: scaleX(1);
  }
}

.header__logo:focus-visible::after,
.global-nav__link:focus-visible::after,
.footer__mail-link:focus-visible::after {
  transform: scaleX(1);
}

/* 和文の改行は HTML の <wbr>（文節の切れ目）でだけ行い、1〜2 文字だけの最終行も避ける。
   1 つの文節が行幅を超えるときだけ、文字の途中で折り返す */
.text-block__body,
.age-gate__lead,
.age-gate__note,
.age-notice {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

/* 英字だけの要素 */
.age-gate__logo,
.footer__mail-label,
.footer__mail-link {
  font-family: var(--font-en);
}

/* --------------------------------------------------------------------------
   文字
   -------------------------------------------------------------------------- */
/* 本文 */
.text-block__body {
  font-size: max(1.0625rem, 15px);
  line-height: 2;
  letter-spacing: 0.1em;
}

.text-block__rule {
  display: block;
  height: 1px;
  margin-top: 0.75rem;
  background-color: var(--color-line);
}

/* 英字の小見出し＋横線（STORY ───） */
.sub-heading {
  display: flex;
  align-items: flex-end;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.sub-heading__en {
  font-family: var(--font-en);
  font-size: 1.3125rem;
  line-height: 1.4;
  letter-spacing: 0.5em;
}

.sub-heading--en-only .sub-heading__en {
  font-size: 1.75rem;
}

.sub-heading__line {
  flex: 1 1 auto;
  min-width: 2rem;
  height: 1px;
  margin-bottom: 0.45rem;
  background-color: var(--color-line);
}

/* 縦書きの大見出し */
.v-heading {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 2.125rem;
  line-height: 1.5;
  letter-spacing: 0.3em;
  white-space: nowrap;
  text-shadow: var(--shadow-on-photo);
}

.v-heading__line {
  display: block;
}

@media (max-width: 767px) {
  .text-block__body {
    font-size: 0.875rem;
  }

  .sub-heading--en-only .sub-heading__en {
    font-size: 1.25rem;
  }

  .sub-heading__en {
    font-size: 1rem;
  }

  .sub-heading__line {
    margin-bottom: 0.3rem;
  }

  .v-heading {
    font-size: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   レイアウト
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: var(--section-space) var(--gutter);
  overflow: clip;
  isolation: isolate;
}

.l-wrap {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
}

@media (max-width: 767px) {
  /* ブレークポイント直下の広い幅でも、SP の比率のまま中央に置く */
  .l-wrap {
    max-width: 30rem;
  }
}

/* --------------------------------------------------------------------------
   写真の効果（粒子）
   -------------------------------------------------------------------------- */
/* 写真に静止した粒子を重ねる（彩る。の 2 枚） */
.photo-fx {
  display: block;
  overflow: hidden;
}

.photo-fx__img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("../images/grain.png") repeat;
  mix-blend-mode: overlay;
  opacity: 0.08;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   年齢確認ゲート・JS 無効時の注意帯
   -------------------------------------------------------------------------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem var(--gutter);
  overflow-y: auto;
  background: var(--color-bg) url("../images/bg.webp") center / cover no-repeat;
  transition: opacity 800ms ease;
}

.age-verified #age-gate,
.no-js #age-gate,
.age-gate.is-closed {
  display: none;
}

.age-gate.is-leaving {
  opacity: 0;
}

/* ゲート本体はフォーカスを受けるだけ（枠線は出さない） */
.age-gate:focus {
  outline: none;
}

.age-gate__symbol {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16.875rem;
  translate: -50% -50%;
  opacity: 0.25;
  pointer-events: none;
  user-select: none;
}

.age-gate__inner {
  position: relative;
  margin: auto;
  text-align: center;
}

.age-gate__logo {
  font-family: var(--font-en);
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: 0.2em;
}

.age-gate__lead {
  margin-top: 1.875rem;
  font-size: max(0.9375rem, 12px);
  line-height: 2;
}

/* はい／いいえ：同じ大きさの枠線ボタンを 2 つ横に並べる */
.age-gate__choices {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.875rem;
}

.age-gate__button {
  width: 9rem;
  height: 2.75rem;
  font-size: max(0.9375rem, 13px);
  letter-spacing: 0.2em;
}

.age-gate__error {
  min-height: 1.8em;
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.age-gate__note {
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

@media (max-width: 767px) {
  .age-gate__symbol {
    width: 11.25rem;
  }

  .age-gate__logo {
    font-size: 1.3125rem;
  }

  .age-gate__lead {
    margin-top: 1.125rem;
    font-size: 13px;
  }

  .age-gate__choices {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  /* タップ領域 44px 以上 */
  .age-gate__button {
    width: 8rem;
    height: 2.75rem;
    font-size: 13px;
  }
}
/* JS 無効時の注意帯 */
.age-notice {
  display: none;
}

.no-js .age-notice {
  display: block;
  margin-top: var(--header-h);
  padding: 8px var(--gutter);
  font-size: 0.75rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
  text-align: center;
}

/* --------------------------------------------------------------------------
   ヘッダー
   - PC：ロゴ・ページ内リンク・ONLINE SHOP。SP：ロゴ・ハンバーガー
   - 背景は敷かない。写真の上でも読めるよう、文字に薄い影だけ付ける
   - 明るい地（PAIRING）の上だけ文字を墨色にし、生成りのぼかしを敷く（main.js が .is-header-light を付け外し）
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header-h);
  padding: 0 var(--gutter);
}

/* JS 無効：色を切り替えられないため、ヘッダーはページ先頭だけに置く */
.no-js .header {
  position: absolute;
}

.header::before {
  display: none;
}

/* メニュー展開中もロゴを前面に表示 */
.header__logo {
  z-index: 950;
  font-family: var(--font-en);
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
  transition: color var(--dur-hover);
}

.header__logo,
.header__nav-link,
.header__shop {
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
}

.header__nav,
.header__shop {
  display: none;
}

.hamburger {
  position: relative;
  z-index: 950;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-right: -7px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: opacity var(--dur-hover);
}

@media (hover: hover) {
  .hamburger:hover {
    opacity: 0.6;
  }
}

.hamburger:active {
  opacity: 0.4;
}

.hamburger__line {
  position: absolute;
  left: 7px;
  width: 30px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform var(--dur-hover), opacity var(--dur-hover), background-color var(--dur-hover);
}

.hamburger__line--top {
  top: 11px;
}

.hamburger__line--middle {
  top: 21px;
}

.hamburger__line--bottom {
  top: 31px;
}

.is-menu-open .hamburger__line--top {
  transform: translateY(10px) rotate(45deg);
}

.is-menu-open .hamburger__line--middle {
  opacity: 0;
}

.is-menu-open .hamburger__line--bottom {
  transform: translateY(-10px) rotate(-45deg);
}

/* JS 無効：ハンバーガーを隠す（SP はフッターの直前にリンクを並べる） */
.no-js .hamburger {
  display: none;
}

@media (min-width: 768px) {
  .header {
    padding-inline: var(--edge);
  }

  /* PC はハンバーガーと全画面メニューを使わない */
  .header__hamburger,
  .global-nav {
    display: none !important;
  }

  .header__nav {
    position: relative;
    z-index: 950;
    display: block;
    margin-left: auto;
  }

  .header__nav-list {
    display: flex;
    gap: clamp(1.5rem, 2.5vw, 2.75rem);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .header__nav-link {
    font-family: var(--font-nav);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.16em;
    white-space: nowrap;
  }

  .header__shop {
    position: relative;
    z-index: 950;
    display: inline-flex;
    align-items: center;
    height: 2.75rem;
    margin-left: clamp(2rem, 3.5vw, 3.5rem);
    padding: 0 1.25rem;
    border: 1px solid currentColor;
    font-family: var(--font-nav);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.16em;
    white-space: nowrap;
    transition: background-color var(--dur-hover), color var(--dur-hover), border-color var(--dur-hover);
  }

  @media (hover: hover) {
    .header__shop:hover {
      background-color: var(--color-text);
      color: var(--color-hover-text);
    }
  }

  .is-menu-open .header__shop {
    visibility: hidden;
  }
}

@media (max-width: 767px) {
  .header__logo {
    font-size: 0.875rem;
  }
}

/* 明るい地（PAIRING）の上 */
html.is-header-light:not(.is-menu-open) .header {
  color: var(--color-ink);
}

html.is-header-light:not(.is-menu-open) .hamburger__line {
  background-color: var(--color-ink);
}

html.is-header-light .header__logo,
html.is-header-light .header__nav-link,
html.is-header-light .header__shop {
  text-shadow: none;
}

/* ヘッダーの文字が本文と重ならないよう、生成りを上から薄くぼかして敷く */
html.is-header-light:not(.is-menu-open) .header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  display: block;
  height: calc(100% + 1.5rem);
  background: linear-gradient(to bottom, rgba(237, 230, 218, 0.96) 0%, rgba(237, 230, 218, 0.9) 60%, rgba(237, 230, 218, 0) 100%);
  pointer-events: none;
}

@media (hover: hover) {
  html.is-header-light:not(.is-menu-open) .header__shop:hover {
    background-color: var(--color-ink);
    color: var(--color-light-bg);
  }
}

html.is-header-light:not(.is-menu-open) a:focus-visible,
html.is-header-light:not(.is-menu-open) .hamburger:focus-visible {
  outline-color: var(--color-ink);
}

@media (prefers-reduced-motion: reduce) {
  .header__logo,
  .hamburger__line,
  .header__shop {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   メニュー（SP の全画面メニュー。JS 無効時は静的なリンク）
   -------------------------------------------------------------------------- */
.global-nav__link {
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0.1em;
}

.button--menu {
  width: 20rem;
  height: 2.5rem;
  letter-spacing: 0.1em;
}

.global-nav__preview {
  display: none;
}

.js .global-nav {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 4rem;
  padding: var(--header-h) var(--gutter) 3rem;
  overflow-y: auto;
  background: var(--color-bg) url("../images/bg.webp") center / cover no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}

.js.is-menu-open .global-nav {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease), visibility 0s;
}

/* #0B0B0B 60% を soft-light で重ねる */
.js .global-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #0b0b0b;
  opacity: 0.6;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.js .global-nav__list {
  display: flex;
  flex-direction: column;
  grid-column: 1;
  grid-row: 1;
  align-items: flex-start;
  gap: 1.25rem;
}

.js .global-nav__link {
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.js .global-nav__button {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  margin-top: 3rem;
}

/* 項目にホバー／フォーカスしたときの代表写真（PC のみ） */
.js .global-nav__preview {
  position: relative;
  display: block;
  grid-column: 2;
  grid-row: 1 / span 2;
  height: min(70vh, 40rem);
  pointer-events: none;
}

.nav-preview {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-hover) var(--ease), visibility 0s linear var(--dur-hover);
}

.nav-preview.is-shown {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur-hover) var(--ease), visibility 0s;
}

.nav-preview__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: url("#tone");
}

.nav-preview__symbol,
.nav-preview__bottle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  max-width: none;
}

.nav-preview__symbol {
  height: 90%;
  translate: -50% -50%;
}

.nav-preview__bottle {
  height: 100%;
  transform: translate(-50%, -50%) rotate(20deg);
}

@media (max-width: 767px) {
  .button--menu {
    width: 17.5rem;
  }

  .js .global-nav {
    grid-template-columns: 1fr;
    padding-top: calc(var(--header-h) + 1rem);
  }

  .js .global-nav__link {
    font-size: 2.5rem;
  }

  .js .global-nav__preview {
    display: none;
  }
}

.no-js .global-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.no-js .global-nav__list {
  display: flex;
  gap: 2rem;
}

.fallback-nav {
  display: none;
}

@media (max-width: 767px) {
  .no-js .global-nav {
    display: none;
  }

  .no-js .fallback-nav {
    display: block;
    padding: 2.5rem var(--gutter);
  }

  .fallback-nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .fallback-nav__link {
    font-family: var(--font-nav);
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
  }
}

/* --------------------------------------------------------------------------
   開幕 → MV → ABOUT（仕様書 §2.2）
   - 既定（演出なし・JS 無効）：MV と ABOUT を縦に並べて静止表示する
   - .intro.is-active（演出あり）：1 つの固定区間の中で、窓 → MV → ABOUT と進む（main.js）。MV と ABOUT は重ねて置く
   -------------------------------------------------------------------------- */
.intro {
  position: relative;
}

/* 写真（MV と ABOUT で共有）。既定は MV の 1 画面ぶん、下端 12% を背景へ溶かす */
.intro__bg {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 88%, rgba(0, 0, 0, 0.957) 89.5%, rgba(0, 0, 0, 0.8438) 91%, rgba(0, 0, 0, 0.6836) 92.5%, rgba(0, 0, 0, 0.5) 94%, rgba(0, 0, 0, 0.3164) 95.5%, rgba(0, 0, 0, 0.1562) 97%, rgba(0, 0, 0, 0.043) 98.5%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 88%, rgba(0, 0, 0, 0.957) 89.5%, rgba(0, 0, 0, 0.8438) 91%, rgba(0, 0, 0, 0.6836) 92.5%, rgba(0, 0, 0, 0.5) 94%, rgba(0, 0, 0, 0.3164) 95.5%, rgba(0, 0, 0, 0.1562) 97%, rgba(0, 0, 0, 0.043) 98.5%, rgba(0, 0, 0, 0) 100%);
}

/* 窓の中で写真を 1.12 倍 → 1.0 倍に戻す枠（main.js） */
.intro__pan {
  position: absolute;
  inset: 0;
}

/* 写真（暗く）＋同じ位置に切り抜きのボトル（明るいまま）を重ね、まとめて -1.8° 回す
   - 切り抜きの位置は元画像（5712×3213）上の実測：x 2517・y 1119・幅 465・高さ 1732
   - 回転の中心はボトルの中心（写真の 48.14% 61.78%）。回転で四隅が欠けないよう 1.025 倍
   - ボトルを画面の中央に置く（ボトルの中心は枠の幅の 48.14% ＝ 高さ × 0.8558） */
.mv-photo__frame {
  position: absolute;
  aspect-ratio: 5712 / 3213;
  transform-origin: 48.14% 61.78%;
  rotate: -1.8deg;
  scale: 1.025;
}

.mv-photo__img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  filter: brightness(0.58) saturate(0.8);
}

/* 切り抜きのボトル：暗くした写真から浮かせる（縁の影は付けない） */
.mv-photo__cut {
  position: absolute;
  top: 34.827%;
  left: 44.065%;
  width: 8.141%;
  height: auto;
  max-width: none;
  filter: brightness(1.06) contrast(1.1) saturate(1.05);
}

/* ABOUT で写真を一様に暗くする膜（演出ありのとき、main.js が不透明度を上げる） */
.intro__shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.intro__shade--about {
  background: rgba(0, 0, 0, 0.42);
}

/* MV */
.mv {
  height: 100vh;
  min-height: 720px;
  padding: 0;
}

/* 題字（筆文字の画像 4 枚） */
.mv-photo__head {
  position: absolute;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.5);
}

/* 筆文字の配置は input2/画像/hudeji.png（若松の赭 筆文字.pdf）から実測：4 文字の外枠 204×700px を高さ 18.5625rem に縮めた値 */
.mv-logo {
  position: relative;
  display: block;
  width: 5.41rem;
  height: 18.5625rem;
}

.mv-logo__char {
  position: absolute;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.35));
}

.mv-logo__char--waka {
  top: 0; left: 0.689rem; width: 4.535rem; height: 4.694rem;
}

.mv-logo__char--matsu {
  top: 5.144rem; left: 1.008rem; width: 4.216rem; height: 4.11rem;
}

.mv-logo__char--no {
  top: 10.766rem; left: 1.909rem; width: 2.334rem; height: 2.068rem;
}

.mv-logo__char--soho {
  top: 13.604rem; left: 0; width: 5.436rem; height: 4.985rem;
}

/* 商品説明とキャプション */
.mv-photo__foot {
  position: absolute;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.mv-photo__desc {
  font-size: max(1.0625rem, 15px);
  letter-spacing: 0.15em;
}

/* 商品の詳細・オンラインショップへの文字リンク（ボタンにせず、MV の静けさを崩さない） */
.mv-photo__links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
}

.mv-photo__link {
  padding-block: 0.5rem; /* タップ領域を広げる */
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.mv-photo__link::after {
  content: " →";
}

.mv-photo__caption {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
  font-family: var(--font-en);
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.4em;
}

/* ABOUT（既定：MV の下に、同じ写真を暗く敷いて置く） */
.intro-about {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 3rem) var(--gutter) 5rem;
}

.intro-about__inner {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
}

/* 見出しと本文は中央揃え（詩のように読ませる） */
.intro-about__text {
  width: 35rem;
  max-width: 100%;
  text-align: center;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.intro-about__lead {
  font-family: var(--font-en);
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0.5em;
}

.intro-about__title {
  margin-top: 1.25rem;
  font-size: 2.75rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.intro-about__body {
  margin-top: 2.25rem;
  font-size: max(1.125rem, 15px);
  line-height: 2.6;
  letter-spacing: 0.12em;
  word-break: normal;
  overflow-wrap: anywhere;
}

.intro-about__para + .intro-about__para {
  margin-top: 1.6em;
}

@media (min-width: 768px) {
  /* 下端を溶かす（MV の 1 画面の下端で、後ろの地へつなぐ） */
  .mv {
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
    mask-image: linear-gradient(to bottom, #000 80%, transparent);
  }

  /* 写真の大きさ：画面の高さの 110%（下限は回転で欠ける四隅から決まる）。ボトルの底を画面の 90% に置く */
  .mv-photo__frame {
    --mv-h: max(110vh, 60vw, 800px);
    top: calc(0.9 * max(100vh, 720px) - 0.88 * var(--mv-h));
    left: calc(50vw - 0.8558 * var(--mv-h));
    height: var(--mv-h);
  }

  /* MV の配置：ボトル（画面の中央）を軸に左右対称に置く
     - 題字：ボトルの右、左端は中央から +11vw。上端はボトルの口の高さ（30vh）
     - 商品説明：ボトルの左、右端は中央から −11vw（右揃え）。下端はボトルの底の高さ（画面の下から 11vh） */
  .mv-photo__head {
    top: 30vh;
    left: 61vw;
    gap: 2.25rem;
  }

  .mv-photo__foot {
    right: 61vw;
    bottom: 11vh;
    text-align: right;
  }

  .mv-photo__caption,
  .mv-photo__links {
    justify-content: flex-end;
  }

  .mv-photo__caption {
    align-items: flex-end;
  }

  /* 既定の ABOUT：写真を 140vw で右寄せに敷き、ボトルを左側に置く */
  .intro-about {
    background:
      linear-gradient(to left, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.3) 70%),
      url("../images/mv_sunset.webp") 100% 50% / max(140vw, 177.78vh) auto no-repeat;
  }

  /* 文章は右端から余白を取り、ボトル側へ寄せる */
  .intro-about__inner {
    padding-right: clamp(3rem, 6vw, 7rem);
  }
}

@media (max-width: 767px) {
  .intro__bg {
    height: 100svh;
    min-height: 600px;
  }

  .mv-photo__frame {
    top: 50%;
    left: 50%;
    height: 100%;
    translate: -48.14% -50%;
  }

  .mv {
    height: 100svh;
    min-height: 600px;
  }

  .mv-photo__head {
    top: calc(var(--header-h) + 1.5rem);
    right: var(--gutter);
    gap: 1.25rem;
  }

  /* PC の配置を 0.7488 倍（高さ 13.9rem） */
  .mv-logo {
    width: 4.051rem;
    height: 13.9rem;
  }

  .mv-logo__char--waka {
    top: 0; left: 0.516rem; width: 3.396rem; height: 3.515rem;
  }

  .mv-logo__char--matsu {
    top: 3.852rem; left: 0.755rem; width: 3.157rem; height: 3.078rem;
  }

  .mv-logo__char--no {
    top: 8.061rem; left: 1.43rem; width: 1.748rem; height: 1.548rem;
  }

  .mv-logo__char--soho {
    top: 10.186rem; left: 0; width: 4.07rem; height: 3.733rem;
  }

  .mv-photo__foot {
    left: var(--gutter);
    bottom: 3rem;
  }

  .mv-photo__caption {
    margin-top: 1rem;
  }

  .intro-about {
    min-height: 100svh;
    background:
      linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
      url("../images/mv_sunset.webp") 47% 50% / cover no-repeat;
  }

  .intro-about__title {
    font-size: 1.625rem;
    letter-spacing: 0.15em;
  }

  .intro-about__body {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    line-height: 2.4;
  }
}

/* 演出あり：1 画面に固定し、MV と ABOUT を重ねる */
.intro.is-active {
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
}

/* 写真は固定区間の全体に敷き、下端 22% を背景へ溶かす（PROCESS との境目に切れ目を見せない） */
.intro.is-active .intro__bg {
  height: 100%;
  min-height: 0;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 78%, rgba(0, 0, 0, 0.957) 80.75%, rgba(0, 0, 0, 0.8438) 83.5%, rgba(0, 0, 0, 0.6836) 86.25%, rgba(0, 0, 0, 0.5) 89%, rgba(0, 0, 0, 0.3164) 91.75%, rgba(0, 0, 0, 0.1562) 94.5%, rgba(0, 0, 0, 0.043) 97.25%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 78%, rgba(0, 0, 0, 0.957) 80.75%, rgba(0, 0, 0, 0.8438) 83.5%, rgba(0, 0, 0, 0.6836) 86.25%, rgba(0, 0, 0, 0.5) 89%, rgba(0, 0, 0, 0.3164) 91.75%, rgba(0, 0, 0, 0.1562) 94.5%, rgba(0, 0, 0, 0.043) 97.25%, rgba(0, 0, 0, 0) 100%);
}

.intro.is-active > .section {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.intro.is-active .intro-about {
  background: none;
  pointer-events: none;
}

/* ABOUT の文字の列は画面の中央（写真は暗くしてあるので、ボトルの上に重ねて読ませる） */
.intro.is-active .intro-about__text {
  position: absolute;
  top: calc(26vh - 20px);
  bottom: 0;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  width: 36rem;
}

/* 本文の窓：見出しの下から画面の下端まで。先の文章が下に長く見えないよう、下 6 割は溶かして隠す（はっきり読めるのは上の 4 割） */
.intro.is-active .intro-about__scroll {
  flex: 1;
  min-height: 0;
  margin-top: 2rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 3rem, #000 40%, transparent 66%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 3rem, #000 40%, transparent 66%);
}

.intro.is-active .intro-about__body {
  margin-top: 0;
  padding-top: 3rem;
}

@media (max-width: 767px) {
  /* 写真は Safari のバーが隠れたときの高さ（lvh）まで敷き、下にすき間を見せない。下端を溶かすのは 88% から（PC は 78%） */
  .intro.is-active {
    height: 100vh;
    height: 100lvh;
    min-height: 600px;
  }

  .intro.is-active .intro__bg {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 88%, rgba(0, 0, 0, 0.8438) 91%, rgba(0, 0, 0, 0.5) 94%, rgba(0, 0, 0, 0.1562) 97%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 88%, rgba(0, 0, 0, 0.8438) 91%, rgba(0, 0, 0, 0.5) 94%, rgba(0, 0, 0, 0.1562) 97%, rgba(0, 0, 0, 0) 100%);
  }

  /* 下の文字（若松産トマト100%の醸造酒）は MV の枠（.mv、高さ 100svh＝バーが出ているときの画面）の下端から 3rem。
     枠がすでに svh なので、バーの分を足さない（足すと Safari でバーの高さぶん二重に上がる） */

  .intro.is-active .intro-about__text {
    top: calc(20vh - 20px);
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    translate: none;
  }
}

/* 開幕（演出ありのときだけ表示）：「地元愛のお酒。」→「題字＋縦線」 */
.opening {
  display: none;
}

.intro.is-active .opening {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  pointer-events: none;
}

/* 黒地の中央に縦書きの一行 */
.opening__copy {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.35em;
  writing-mode: vertical-rl;
  white-space: nowrap;
}

/* 中央に題字、その下に細い縦線（線の下端は窓の中まで伸びる） */
.opening__title {
  position: absolute;
  top: 34vh;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  translate: -50% 0;
}

.opening__line {
  display: block;
  width: 1px;
  height: 18vh;
  margin-top: 6vh;
  background-color: rgba(237, 230, 218, 0.7);
  transform-origin: top;
}

@media (max-width: 767px) {
  .opening__title {
    top: 26vh;
  }

  .opening__line {
    height: 22vh;
  }
}

/* 演出の準備ができるまでは描画しない（main.js が .is-pre を外す。読み込めなかった場合は 6 秒で head のスクリプトが外す） */
.is-pre .intro__bg,
.is-pre .mv-photo__foot,
.is-pre .opening {
  opacity: 0;
}

/* --------------------------------------------------------------------------
   区切りの見出し（仕様書 §2.1.7・§2.7）
   - 見出しだけの 1 画面。上に章の英字（左右に短い線）、見出しの下に縦の細い線
   - 締め（.pdivide--photo）だけ、夜の若戸大橋とボトルの写真を全画面に敷く
   -------------------------------------------------------------------------- */
/* 上に章の英字を小さく（左右に短い線）、見出しの下に縦の細い線（画面に入ると上から描かれる） */
.pdivide {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.pdivide__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 3rem;
  font-family: var(--font-en);
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.5em;
  opacity: 0.85;
}

/* 字間の分だけ右へずれて見えるのを戻す */
.pdivide__label::after {
  margin-left: -0.5em;
}

.pdivide__label::before,
.pdivide__label::after {
  content: "";
  width: 2rem;
  height: 1px;
  background-color: currentColor;
  opacity: 0.6;
}

.pdivide__line {
  display: block;
  width: 1px;
  height: 12vh;
  margin-top: 3rem;
  background-color: currentColor;
  opacity: 0.5;
  transform-origin: top;
}

.pdivide__title {
  font-size: 3rem;
  text-shadow: none;
}

/* 締めの区切り（写真あり）：夜の若戸大橋とボトルを全画面に。見出しは右半分の中央（夜空の空いたところ）
   - 写真は暗くし（0.62）、上下 22% を前後の暗い地へ溶かす（PAIRING の明るい地のあと、境目を見せない）
   - 写真は 2880×1457（原寸 4032×2268 から下のコンクリートを詰めた）。ボトルと塔は横 55〜68% のあたり */
.pdivide__photo {
  display: none;
}

.pdivide--photo .pdivide__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  margin: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
}

.pdivide__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  /* 写真を右端に寄せて、塔とボトルを見出しの左へ逃がす（1440×900 でボトルは横 53〜60%、見出しは 75%） */
  object-position: 100% 60%;
  filter: brightness(0.62) saturate(0.95);
}

.pdivide--photo {
  isolation: isolate;
  padding-left: 50vw;
}

.pdivide--photo .pdivide__title {
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
}

@media (max-width: 767px) {
  .pdivide {
    min-height: 100svh;
  }

  /* SP：塔を左端、ボトルを横 46% あたりに置き、見出しはその右（中心 72.5vw）に */
  .pdivide--photo {
    padding-left: 45vw;
  }

  .pdivide--photo .pdivide__img {
    object-position: 71% 50%;
  }

  /* 右半分に収まるよう、英字の左右の線を短く・字間を詰める（折り返さない） */
  .pdivide--photo .pdivide__label {
    gap: 0.625rem;
    letter-spacing: 0.35em;
    white-space: nowrap;
  }

  .pdivide--photo .pdivide__label::before,
  .pdivide--photo .pdivide__label::after {
    width: 1.25rem;
  }

  .pdivide--photo .pdivide__label::after {
    margin-left: -0.35em;
  }

  .pdivide__title {
    font-size: 2.25rem;
  }
}

/* --------------------------------------------------------------------------
   PROCESS（仕様書 §2.4）：全画面の写真を 3 つ重ねる
   - 各工程は画面の上端に貼り付き（sticky）、次の工程が下からせり上がって覆う。JS は使わない
   - 3 工程とも同じ並び：英字 左上・見出し 右上・本文 左下。上端はヘッダーの下 2rem（ONLINE SHOP と重ならないように）
   - 左右の余白はヘッダーと同じ --edge（大きな画面ほど広く）
   - PC の「黄昏る。」→ STORY：main.js が STORY の写真と中身を .pband__story へ移し、後ろに留め区間 .pband__hold（220vh）を足す
   -------------------------------------------------------------------------- */
.pband {
  position: relative;
  z-index: 2;
}

/* 「黄昏る。」を 1 画面ぶん止め、その上へ STORY がせり上がって重なる（PC の演出ありは .is-bridged で外す）。
   sticky が効くのは中身の範囲だけなので、余白ではなく空の要素で 1 画面ぶん延ばす */
.pband::after {
  content: "";
  display: block;
  height: 100vh;
}

.pband.is-bridged::after {
  display: none;
}

.pband__item {
  --band-top: calc(var(--header-h) + 2rem);
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background-color: #0b0b0b;
}

.pband__photo {
  position: absolute;
  inset: 0;
  margin: 0;
}

.pband__photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.pband__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.9);
}

.pband__item--grow .pband__img {
  object-position: 50% 45%;
}

/* 夕景は暗くしすぎると太陽が緑がかるため、暗さを弱める */
.pband__item--dusk .pband__img {
  object-position: 50% 62%;
  filter: brightness(0.86) saturate(0.95);
}

/* 本文の下だけを暗くする（写真の明るいところでも読めるように） */
.pband__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0) 70%);
}

.pband__en,
.pband__title,
.pband__body {
  position: absolute;
  z-index: 1;
  margin: 0;
}

.pband__en {
  top: var(--band-top);
  left: var(--edge);
  font-family: var(--font-en);
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0.6em;
  writing-mode: vertical-rl;
  opacity: 0.85;
}

.pband__title {
  top: var(--band-top);
  right: var(--edge);
  font-size: 4.25rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.2em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.45);
}

/* 縦書きの「。」は字の枠の上半分にだけ描かれるため、下半分の空きを詰める */
.pband__dot {
  margin-inline-end: -0.5em;
  letter-spacing: 0;
}

.pband__body {
  left: var(--edge);
  bottom: 5rem;
  width: min(37.5rem, 44vw);
  font-size: max(1rem, 14px);
  line-height: 2.5;
  letter-spacing: 0.1em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

/* 黄昏る。の購入 */
.pband__spec {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
}

.pband__lead {
  line-height: 2.3;
}

.pband__price {
  margin-top: 1rem;
  font-size: 1.75rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.pband__tax {
  margin-left: 0.4em;
  font-size: 0.75rem;
}

.pband__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 3.25rem;
  margin-top: 1rem;
  border: 1px solid rgba(237, 230, 218, 0.8);
  font-size: 0.9375rem;
  letter-spacing: 0.3em;
  text-shadow: none;
  transition: background-color var(--dur-hover), color var(--dur-hover);
}

.pband__button-icon {
  width: 0.875rem;
  height: 0.875rem;
  fill: currentColor;
}

@media (hover: hover) {
  .pband__button:hover {
    background-color: var(--color-light-bg);
    color: var(--color-ink);
  }
}

.pband__note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

/* 「黄昏る。」→ STORY（PC）
   - 商品説明のまとまり（.pband__prod）を消し、STORY の重ね絵（.pband__story）を上に溶かして出す
   - 帯の後ろの留め区間 220vh のあいだ、帯は画面に止まったまま */
.pband__prod {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.pband__prod .pband__button {
  pointer-events: auto;
}

.pband__story {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4rem) var(--gutter) calc(6rem + var(--story-fade));
  isolation: isolate;
}

/* PC：重ね絵は画面の下へ --story-fade ぶん延ばし、生成りへ溶ける帯はその延ばした所（画面の外）に置く。
   STORY が画面に止まっている間は何も重ならず、留め区間が終わって画面が上へ流れるときに、写真から生成りへ続く。
   横は切ったまま（写真が現れるときの 1.06 倍の拡大が左右にはみ出し、iPhone の Safari で横スクロールになるため） */
.pband.is-bridged .pband__item--dusk {
  overflow-x: clip;
  overflow-y: visible;
}

.pband__story {
  bottom: calc(-1 * var(--story-fade));
}

.pband__story .dusk__inner {
  width: 100%;
}

.pband__hold {
  height: 220vh;
}

@media (min-width: 768px) {
  .pband__item--dusk .pband__body {
    width: min(34rem, 44vw);
  }
}

/* 工程の間の「留める区間」：前の工程を止めたまま本文を読む時間（次の工程はそのあとにせり上がる） */
.pband__rest {
  height: 60vh;
}

/* SP：英字と見出しを横書きで左上に、本文はその下に。すべて左詰めで、上から順に積む（重ならない）
   - 写真は「Safari のバーが隠れたときの高さ」（lvh）で敷き、下にすき間を見せない
   - 文字は「バーが出ているときの高さ」（svh）の中に収める（下端は購入バーの上 5rem） */
@media (max-width: 767px) {
  .pband::after {
    height: 100svh;
  }

  .pband__rest {
    height: 80svh;
  }

  .pband__item,
  .pband__prod {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--band-top) var(--gutter) calc(100lvh - 100svh + 5rem);
  }

  .pband__item {
    height: 100vh;
    height: 100lvh;
    min-height: 0;
  }

  /* 上（見出し）と下（本文）の両方を暗くする */
  .pband__photo::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.75) 100%);
  }

  .pband__en,
  .pband__title,
  .pband__body {
    position: relative;
    inset: auto;
  }

  .pband__en {
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    writing-mode: horizontal-tb;
  }

  .pband__title {
    font-size: 2.25rem;
    line-height: 1.3;
    letter-spacing: 0.15em;
    writing-mode: horizontal-tb;
  }

  /* 本文は画面の下に寄せる。画面が低いときは見出しのすぐ下に続く（間は最低 1.5rem） */
  .pband__body {
    width: 100%;
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: 0.875rem;
    line-height: 2.1;
  }

  .pband__item--dusk .pband__lead {
    line-height: 2;
  }

  /* 被写体が切れない位置：育てる。は SP 用の縦長画像（中央）、黄昏る。はボトルを右寄りに丸ごと見せる */
  .pband__item--grow .pband__img {
    object-position: 50% 50%;
  }

  .pband__item--dusk .pband__img {
    object-position: 78% 50%;
  }
}

/* --------------------------------------------------------------------------
   STORY＋MOVIE（仕様書 §2.5）：夕景を全面に敷く
   - 夕日と光の道を本文の右に出す（PC は写真を左端に寄せる）
   - SP・演出なし：「黄昏る。」の上へ下からせり上がって重なる（PROCESS の工程と同じ）。PC の演出ありは「黄昏る。」の中で溶けて切り替わる
   - 下端は PAIRING の生成りへ直接溶かす（間に暗い地を見せない）。本文の背後だけ暗いグラデーション
   -------------------------------------------------------------------------- */
.dusk {
  z-index: 3;
  margin-top: -100vh;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 4rem) var(--gutter) calc(6rem + var(--story-fade));
}

/* 中身を移したあとの STORY の章は、ページ内リンクの行き先（留め区間の終わり）としてだけ残す */
#story.is-bridged {
  min-height: 0;
  height: 0;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
}

.dusk__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* SP はスクロールに合わせてゆっくり寄せる（main.js。110% → 100%） */
.dusk__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 0% 50%;
  transform-origin: 30% 40%;
}

.dusk__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.5) 25%, rgba(0, 0, 0, 0.22) 45%, rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}

/* 下端を PAIRING の生成りへ溶かす（smoothstep の曲線。PC 24vh／SP 14vh）
   STORY の章（SP・演出なし）と、「黄昏る。」の中の重ね絵（PC）の両方に敷く。帯は本文の下の余白に置き、本文には重ねない */
.dusk,
.pband__story {
  --story-fade: 24vh;
}

.dusk::after,
.pband__story::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--story-fade);
  background: linear-gradient(to bottom, rgba(237, 230, 218, 0) 0%, rgba(237, 230, 218, 0.0197) 8.33%, rgba(237, 230, 218, 0.0741) 16.67%, rgba(237, 230, 218, 0.1562) 25%, rgba(237, 230, 218, 0.2593) 33.33%, rgba(237, 230, 218, 0.3762) 41.67%, rgba(237, 230, 218, 0.5) 50%, rgba(237, 230, 218, 0.6238) 58.33%, rgba(237, 230, 218, 0.7407) 66.67%, rgba(237, 230, 218, 0.8438) 75%, rgba(237, 230, 218, 0.9259) 83.33%, rgba(237, 230, 218, 0.9803) 91.67%, rgba(237, 230, 218, 1) 100%);
  pointer-events: none;
}
/* 右に縦書きの見出し、左に本文と動画の再生ボタン */
.dusk__inner {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: flex-start;
}

.dusk__title {
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.dusk__text {
  width: 26rem;
  max-width: 100%;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.dusk__movie {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* 動画の再生ボタン（押すと動画モーダル） */
.movie__play {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  padding: 0;
  border: 1px solid var(--color-text);
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
}

.movie__play-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  translate: 2px 0; /* 三角形の見た目の中心合わせ */
}

@media (hover: hover) {
  .movie__play:hover {
    background-color: var(--color-hover-bg);
    color: var(--color-hover-text);
  }
}

.movie__play:focus-visible {
  background-color: var(--color-hover-bg);
  color: var(--color-hover-text);
}

.movie__play:active {
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--color-hover-text);
}

.dusk__movie-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dusk__movie-en {
  font-family: var(--font-en);
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0.5em;
}

.dusk__movie-ja {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
}

/* JS 無効：再生ボタンの代わりに YouTube へのリンク */
.no-js .movie__play,
.no-js .dusk__movie-label {
  display: none;
}

.dusk__movie-link {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

/* SP：上に見出し（右寄せ）、下に本文と再生ボタン */
@media (max-width: 767px) {
  .dusk {
    margin-top: -100svh;
    align-items: stretch;
    min-height: 100svh;
    padding: calc(var(--header-h) + 2rem) var(--gutter) calc(4rem + var(--story-fade));
  }

  .dusk {
    --story-fade: 14vh;
  }

  .dusk__img {
    object-position: 47% 50%;
  }

  .dusk__bg::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.15) 65%, rgba(0, 0, 0, 0) 80%);
  }

  .dusk__inner {
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
  }

  .dusk__title {
    align-self: flex-end;
  }

  .dusk__text {
    width: 100%;
  }

  .movie__play {
    width: 4rem;
    height: 4rem;
  }
}

/* --------------------------------------------------------------------------
   PAIRING（明るい地。仕様書 §2.6）：見出しの 1 画面 → 彩る。→ 感じる。→ 繋ぐ。
   - u = min(1vw, 18px)（1440px で 14.4px）
   -------------------------------------------------------------------------- */
/* 地：上端は最初から生成り（STORY の写真の下端が生成りへ溶けて続く）。下端 --light-fade-vh（PC 24／SP 14。main.js も同じ値を読む）は暗い地へ溶かす。
   直線のグラデーションは地色との境で変化の速さが急に変わり横線に見えるため、
   両端がなだらかな smoothstep（3t² − 2t³）の曲線を 13 段の色の区切りで近似する */
.pairing {
  --light-fade-vh: 24;
  padding-block: calc(4rem + var(--light-fade-vh) * 1vh);
  color: var(--color-ink);
  background: linear-gradient(
    to bottom,
    var(--color-light-bg) 0,
    rgba(237, 230, 218, 1) calc(100% - (var(--light-fade-vh) * 1vh) * 1),
    rgba(237, 230, 218, 0.9803) calc(100% - (var(--light-fade-vh) * 1vh) * 0.9167),
    rgba(237, 230, 218, 0.9259) calc(100% - (var(--light-fade-vh) * 1vh) * 0.8333),
    rgba(237, 230, 218, 0.8438) calc(100% - (var(--light-fade-vh) * 1vh) * 0.75),
    rgba(237, 230, 218, 0.7407) calc(100% - (var(--light-fade-vh) * 1vh) * 0.6667),
    rgba(237, 230, 218, 0.6238) calc(100% - (var(--light-fade-vh) * 1vh) * 0.5833),
    rgba(237, 230, 218, 0.5) calc(100% - (var(--light-fade-vh) * 1vh) * 0.5),
    rgba(237, 230, 218, 0.3762) calc(100% - (var(--light-fade-vh) * 1vh) * 0.4167),
    rgba(237, 230, 218, 0.2593) calc(100% - (var(--light-fade-vh) * 1vh) * 0.3333),
    rgba(237, 230, 218, 0.1562) calc(100% - (var(--light-fade-vh) * 1vh) * 0.25),
    rgba(237, 230, 218, 0.0741) calc(100% - (var(--light-fade-vh) * 1vh) * 0.1667),
    rgba(237, 230, 218, 0.0197) calc(100% - (var(--light-fade-vh) * 1vh) * 0.0833),
    rgba(237, 230, 218, 0) calc(100% - (var(--light-fade-vh) * 1vh) * 0)
  );
}

.pairing .v-heading {
  text-shadow: none;
}

.ptab {
  --ptab-label-bg: #1d2437;
  overflow: clip;
}

/* 見出し「若松の赭を添えて。」：1 画面の主役として大きく */
.ptab__title {
  font-size: 3.75rem;
  text-shadow: none;
}

@media (max-width: 767px) {
  .pairing {
    --light-fade-vh: 14;
    padding-block: calc(3rem + var(--light-fade-vh) * 1vh);
  }

  .ptab__title {
    font-size: 2.5rem;
  }
}

/* 札：暗めの紺の地に生成りの縦書き、右に英字の縦書き（上端揃え） */
.ptab__label {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  font-weight: 400;
}

/* 字間は字と字の間だけに付け、最後の字の後ろには付けない。
   文字を四角の中央に置く：この書体の縦書きは字の中心が右へ約 0.05em・上へ約 0.04em ずれるため、余白で打ち消す */
.ptab__label-ja {
  padding: calc(1.25rem + 0.04em) calc(1rem + 0.05em) calc(1.25rem - 0.04em) calc(1rem - 0.05em);
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: 0.15em;
  white-space: nowrap;
  color: var(--color-light-bg);
  background-color: var(--ptab-label-bg);
  writing-mode: vertical-rl;
}

/* 縦書きの「。」は字の枠の上半分にだけ描かれるため、下半分の空きを詰める */
.ptab__label-dot {
  margin-block-end: 0;
  margin-inline-end: -0.5em;
  letter-spacing: 0;
}

.ptab__label-en {
  font-family: var(--font-en);
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0.6em;
  writing-mode: vertical-rl;
}

@media (max-width: 767px) {
  .ptab__label-ja {
    padding: calc(1rem + 0.04em) calc(0.75rem + 0.05em) calc(1rem - 0.04em) calc(0.75rem - 0.05em);
    font-size: 2rem;
  }
}

/* 彩る。：乾杯とグラスを傾ける手元の 2 枚＋札＋本文
   PC：乾杯 左 0・上 0・幅 64u（16:9）／彩る。 左 82u・上 3u／グラス 左 70u・上 24u・幅 22u／本文 左 10u・上 36u + 4rem・幅 42.5rem */
.ptab__stage {
  --u: min(1vw, 18px);
  position: relative;
  max-width: calc(18px * 100);
  /* 余白 5% は画面幅に対する値。% だと本文の幅（90%）基準になり端が 0.5vw 足りないため vw で戻す */
  margin-inline: -5vw;
}

.ptab__toast,
.ptab__glass,
.ptab__text {
  position: absolute;
  margin: 0;
}

.ptab__toast {
  top: 0;
  left: 0;
  z-index: 1;
  width: calc(var(--u) * 64);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ptab__glass {
  top: calc(var(--u) * 24);
  left: calc(var(--u) * 70);
  z-index: 2;
  width: calc(var(--u) * 22);
  aspect-ratio: 800 / 1026;
  overflow: hidden;
}

.ptab__toast .photo-fx__img,
.ptab__glass .photo-fx__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.ptab__label--bright {
  top: calc(var(--u) * 3);
  left: calc(var(--u) * 82);
}

.ptab__text {
  z-index: 2;
}

.ptab__text--bright {
  top: calc(var(--u) * 36 + 4rem);
  left: calc(var(--u) * 10);
  width: 42.5rem;
}

@media (min-width: 768px) {
  .ptab__stage {
    height: calc(var(--u) * 62);
  }
}

@media (min-width: 1800px) {
  .ptab__stage {
    margin-inline: auto;
  }
}

/* SP：上から順に。乾杯は画面の端まで、グラスは札の右に少し重ねる */
@media (max-width: 767px) {
  .ptab__stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem 1rem;
    margin-inline: 0;
  }

  .ptab__toast,
  .ptab__glass,
  .ptab__label--bright,
  .ptab__text {
    position: relative;
    inset: auto;
    width: auto;
  }

  /* 乾杯：縦を高くして左右を切り、写真の中身を左へ寄せる（右下に重なるグラスの写真に、乾杯のグラスが隠れないように） */
  .ptab__toast {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-inline: -10vw;
    aspect-ratio: 4 / 3;
  }

  .ptab__toast .photo-fx__img {
    object-position: 85% 50%;
  }

  .ptab__label--bright {
    grid-column: 1;
    grid-row: 2;
  }

  .ptab__glass {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    margin-top: -3rem;
    margin-right: -4vw;
  }

  .ptab__text--bright {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

/* 感じる。：線だけの円を 2 つ重ねる（AROMA と TASTE） */
.pfeel {
  --u: min(1vw, 18px);
  margin-top: 12rem;
}

.pfeel__label {
  position: relative;
  width: max-content;
  margin: 0 auto;
}

/* 「感じる。」の英字（AROMA & TASTE）は文字数が多いため、札の高さに収まるよう小さく・字間を詰める */
.pfeel__label .ptab__label-en {
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
}

/* 札を含めて 1 画面に収める（PC）：円の幅は「画面の幅 81.6u」と「画面の高さから札と余白を引いた高さ × 1.889（幅：高さ）」の小さい方
   1440×900 で直径 約 440px。札・余白の目安 21rem（札 約 15rem ＋ 上下の余白 6rem） */
.pfeel__venn {
  position: relative;
  width: min(calc(var(--u) * 81.6), calc((100vh - var(--header-h) - 21rem) * 1.889));
  margin: 3rem auto 0;
}

.pfeel__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.pfeel__svg--v {
  display: none;
}

/* 線の太さは SVG の座標で指定する（vector-effect: non-scaling-stroke は、描く動きの破線の長さが画面の拡大率とずれて
   一周の途中で線が切れて見えるため使わない）。PC は約 1.44 倍で表示されるので 0.7 ≒ 1px */
.pfeel__circle {
  fill: none;
  stroke: rgba(26, 26, 26, 0.5);
  stroke-width: 0.7;
}

/* 文字の幅は円の大きさに合わせる（円 1 つの直径の 58% ＝ 全体の 30.6%）。円の中心に置く
   （出現のフェードが transform を使うため、translate では寄せず、左端の位置と上下いっぱいの縦中央揃えで置く） */
.pfeel__text {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 30.6%;
  text-align: center;
}

.pfeel__text--aroma {
  left: calc(26.47% - 15.3%);
}

.pfeel__text--taste {
  left: calc(73.53% - 15.3%);
}

.pfeel__en {
  margin: 0 -0.5em 2rem 0; /* 右：字間の分だけ右に寄って見えるのを戻す */
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.5em;
}

.pfeel__body {
  font-size: max(0.9375rem, 14px);
  line-height: 2.3;
  letter-spacing: 0.1em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .pfeel {
    margin-top: 7rem;
  }

  .pfeel__label .ptab__label-en {
    font-size: 0.5625rem;
    letter-spacing: 0.2em;
  }

  /* SP は 1 画面に収めると文字が窮屈になるため、画面の幅に合わせる（スクロールして見る）。円は縦に重ねる */
  .pfeel__venn {
    width: 80vw;
    margin-top: 4rem;
  }

  .pfeel__svg--h {
    display: none;
  }

  .pfeel__svg--v {
    display: block;
  }

  /* SP は約 0.72 倍で表示されるので 1.4 ≒ 1px */
  .pfeel__circle {
    stroke-width: 1.4;
  }

  /* 文字は円の幅の 70%、上の円・下の円それぞれの高さ（全体の 52.9%）の中で縦中央 */
  .pfeel__text {
    bottom: auto;
    width: 70%;
    height: 52.9%;
  }

  .pfeel__text--aroma {
    top: 0;
    left: 15%;
  }

  .pfeel__text--taste {
    top: 47.1%;
    left: 15%;
  }

  .pfeel__en {
    margin-bottom: 1.25rem;
    font-size: 1rem;
  }

  .pfeel__body {
    font-size: 0.8125rem;
    line-height: 2.2;
  }
}

/* 繋ぐ。：お品書きのように料理を並べる。札は中央、その下にリード、料理の列
   - PC：幅 1280px（1440px のとき）の中に 2 列。皿は高さ 24rem の枠の下端に揃え、大きさの差は残す（肉 24rem／卵 22rem／トマト 22rem／チーズ＆生ハムの板 15rem）
     右の列は 8rem 下げてリズムを付ける。区切り線は段ごとに 2 列をまたいで 1 本（±0.8° 交互）
   - SP：1 列。皿は画面の中央。線は品ごとに ±1.2° 交互
   - 線は画面に入ると、main.js が皿の側から描く */
.pmenu {
  --u: min(1vw, 18px);
  margin-top: 10rem;
}

.pmenu__label {
  position: relative;
  justify-content: center;
  width: max-content;
  margin: 0 auto;
}

.pmenu__lead {
  max-width: 30rem;
  margin: 3rem auto 0;
  font-size: max(1rem, 14px);
  line-height: 2.3;
  letter-spacing: 0.1em;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.pmenu__list {
  margin: 8rem 0 0;
  padding: 0;
  list-style: none;
}

.pmenu__item {
  position: relative;
}

.pmenu__line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  height: 1px;
  background-color: var(--color-ink-line);
  rotate: 0.8deg;
  transform-origin: left center;
}

.pmenu__item--right .pmenu__line {
  rotate: -0.8deg;
  transform-origin: right center;
}

.pmenu__line--end {
  position: relative;
  rotate: -0.8deg;
}

.pmenu__dish {
  margin: 0;
}

.pmenu__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.pmenu__text {
  width: min(30rem, 100%);
}

.pmenu__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.5rem;
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.15em;
}

.pmenu__en {
  font-family: var(--font-en);
  font-size: 0.875rem;
  letter-spacing: 0.5em;
  opacity: 0.8;
}

.pmenu__body {
  font-size: max(1rem, 14px);
  line-height: 2.3;
  letter-spacing: 0.1em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .pmenu__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 8rem;
    width: min(1280px, 88.9vw);
    margin-inline: auto;
  }

  /* 皿と文章は各列の中央に置く（左に寄せると右側が空き、全体が左へずれて見えるため） */
  .pmenu__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 5rem 4rem;
  }

  .pmenu__item:nth-child(even) {
    margin-top: 8rem;
  }

  /* 線は左の列の品にだけ付け、2 列ぶん（＋列の間）の長さにする */
  .pmenu__item .pmenu__line {
    right: auto;
    width: calc(200% + 8rem);
  }

  .pmenu__item:nth-child(even) .pmenu__line {
    display: none;
  }

  .pmenu__item:nth-child(3) .pmenu__line {
    rotate: -0.8deg;
    transform-origin: left center;
  }

  .pmenu__line--end {
    width: min(1280px, 88.9vw);
    margin: 4rem auto 0;
  }

  .pmenu__dish {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 24rem;
  }

  .pmenu__img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .pmenu__dish--meat .pmenu__img {
    height: 24rem;
  }

  .pmenu__dish--egg .pmenu__img {
    height: 22rem;
  }

  .pmenu__dish--tomato .pmenu__img {
    height: 22rem;
  }

  /* 板は横長なので、高さを抑えて幅で見せる */
  .pmenu__dish--board .pmenu__img {
    height: 15rem;
  }

  .pmenu__text {
    width: 100%;
    max-width: 26rem;
    margin-top: 2.5rem;
  }
}

@media (max-width: 767px) {
  .pmenu {
    margin-top: 7rem;
  }

  .pmenu__list {
    margin-top: 5rem;
  }

  .pmenu__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    row-gap: 2rem;
    padding-block: 4rem;
  }

  .pmenu__dish {
    justify-self: center;
  }

  .pmenu__dish--meat {
    width: 72vw;
  }

  .pmenu__dish--egg {
    width: 66vw;
  }

  .pmenu__dish--tomato {
    width: 72vw;
  }

  .pmenu__dish--board {
    width: 84vw;
  }

  .pmenu__text {
    justify-self: start;
  }

  .pmenu__name {
    gap: 1rem;
    font-size: 1.625rem;
  }

  .pmenu__body {
    font-size: 0.875rem;
    line-height: 2.1;
  }

  .pmenu__line {
    rotate: 1.2deg;
  }

  .pmenu__item--right .pmenu__line,
  .pmenu__line--end {
    rotate: -1.2deg;
  }
}

/* --------------------------------------------------------------------------
   購入・DETAIL・SHOP（仕様書 §2.8）
   -------------------------------------------------------------------------- */
.pshop {
  position: relative;
  z-index: 2;
  padding: 6rem var(--edge) 10rem;
}

.pshop__buy {
  display: grid;
  grid-template-columns: auto minmax(0, 26rem);
  align-items: center;
  justify-content: center;
  column-gap: 6rem;
}

.pshop__visual {
  position: relative;
  width: 22rem;
  height: 30rem;
}

.pshop__symbol {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: auto;
  height: 82%;
  max-width: none;
  translate: -50% 0;
}

.pshop__bottle {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: auto;
  height: 100%;
  max-width: none;
  translate: -50% 0;
}

.pshop__name {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.25em;
}

.pshop__name rt {
  font-size: 0.32em;
  letter-spacing: 0.1em;
}

.pshop__en {
  margin-top: 0.75rem;
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  opacity: 0.8;
}

.pshop__spec-line {
  margin-top: 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
}

.pshop__price {
  margin-top: 1.25rem;
  font-size: 2rem;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.pshop__tax {
  margin-left: 0.4em;
  font-size: 0.75rem;
}

.pshop__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 24rem;
  height: 3.5rem;
  margin-top: 2rem;
  border: 1px solid rgba(237, 230, 218, 0.8);
  font-size: 0.9375rem;
  letter-spacing: 0.25em;
  transition: background-color var(--dur-hover), color var(--dur-hover);
}

.pshop__button-icon {
  width: 0.875rem;
  height: 0.875rem;
  fill: currentColor;
}

@media (hover: hover) {
  .pshop__button:hover {
    background-color: var(--color-light-bg);
    color: var(--color-ink);
  }
}

.pshop__detail,
.pshop__stores {
  width: min(1080px, 100%);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .pshop {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 6rem;
    row-gap: 10rem;
    max-width: calc(1080px + var(--edge) * 2);
    margin-inline: auto;
  }

  .pshop__buy {
    grid-column: 1 / -1;
  }

  .pshop__detail,
  .pshop__stores {
    width: 100%;
  }
}

.pshop__head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 2rem;
  font-family: var(--font-en);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.6em;
}

.pshop__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(237, 230, 218, 0.3);
}

.pshop__table {
  margin: 0;
}

.pshop__row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  padding-block: 0.9rem;
  border-bottom: 1px solid rgba(237, 230, 218, 0.18);
  font-size: 0.875rem;
  line-height: 1.8;
  letter-spacing: 0.1em;
}

.pshop__key {
  opacity: 0.7;
}

.pshop__val {
  margin: 0;
}

.pshop__notes {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  line-height: 2;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

.pshop__store-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pshop__store + .pshop__store {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(237, 230, 218, 0.18);
}

.pshop__store-name {
  font-size: 1.125rem;
  letter-spacing: 0.15em;
}

.pshop__store-address,
.pshop__store-tel {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1.9;
  letter-spacing: 0.1em;
}

.pshop__store-tel {
  margin-top: 0.25rem;
}

.pshop__store-links {
  display: flex;
  gap: 2rem;
  margin-top: 1.25rem;
}

.pshop__link {
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
}

.pshop__link::after {
  content: " →";
  opacity: 0.7;
}

@media (max-width: 767px) {
  .pshop {
    padding: 4rem var(--gutter) 7rem;
  }

  .pshop__buy {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 3rem;
    justify-items: center;
    text-align: center;
  }

  .pshop__visual {
    width: 16rem;
    height: 22rem;
  }

  .pshop__button {
    margin-inline: auto;
  }

  .pshop__detail,
  .pshop__stores {
    margin-top: 6rem;
  }
}

/* --------------------------------------------------------------------------
   フッター：ロゴ・メール・Instagram・著作権表示を中央に 1 列で
   -------------------------------------------------------------------------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: 6rem var(--edge) 3rem;
  border-top: 1px solid rgba(237, 230, 218, 0.15);
  text-align: center;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer__logo {
  width: 2.75rem;
  height: auto;
}

.footer__name {
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: 0.1em;
}

.footer__mail {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.footer__sns {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.75rem 0 0 -0.75rem;
}

.footer__sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.footer__sns-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.footer__copy {
  margin-top: 0.25rem;
  text-align: center;
}

.footer__copy-text {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

@media (max-width: 767px) {
  .footer__name {
    font-size: 0.75rem;
  }

  .footer__mail {
    font-size: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   SP の下部固定の購入バー（仕様書 §2.9）：右下に小さな「体験する ONLINE SHOP」の札を浮かせる
   - main.js が .is-shown を付け外し（MV の通過後に出し、「黄昏る。」のボタン・最終 CTA が見えている間は隠す）
   - 明るい地（PAIRING）の上では、暗い半透明だと灰色に浮くため、生成りの地に墨色の文字・線へ
   - JS 無効時は出さない
   -------------------------------------------------------------------------- */
.buy-bar {
  display: none;
}

@media (max-width: 767px) {
  .js .buy-bar {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 100;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), visibility 0s linear 0.5s;
  }

  .js .buy-bar.is-shown {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  }

  .buy-bar__button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    height: 2.5rem;
    padding: 0 1.125rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    font-family: var(--font-ja);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    white-space: nowrap;
    background-color: rgba(17, 17, 17, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background-color var(--dur-hover), color var(--dur-hover), border-color var(--dur-hover);
  }

  .buy-bar__button:active {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--color-hover-text);
  }

  .buy-bar__en {
    font-family: var(--font-nav);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.18em;
  }

  html.is-header-light .buy-bar__button {
    border-color: rgba(26, 26, 26, 0.6);
    color: var(--color-ink);
    background-color: rgba(237, 230, 218, 0.85);
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .js .buy-bar,
  .js .buy-bar.is-shown {
    transform: none;
    transition-duration: 0.2s;
  }
}

/* --------------------------------------------------------------------------
   動画モーダル
   -------------------------------------------------------------------------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal[hidden] {
  display: none;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
}

/* 画面の幅・高さの 90% に収まる 16:9 */
.video-modal__body {
  position: relative;
  width: min(90vw, 160vh);
  aspect-ratio: 16 / 9;
}

.video-modal__frame,
.video-modal__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: opacity var(--dur-hover) var(--ease);
}

.video-modal__close-line {
  position: absolute;
  top: 21px;
  left: 7px;
  width: 30px;
  height: 2px;
  background-color: var(--color-text);
  transform: rotate(45deg);
}

.video-modal__close-line + .video-modal__close-line {
  transform: rotate(-45deg);
}

@media (hover: hover) {
  .video-modal__close:hover {
    opacity: 0.6;
  }
}

.video-modal__close:active {
  opacity: 0.4;
}

@media (max-aspect-ratio: 16 / 10) and (max-width: 767px), (max-height: 520px) {
  .video-modal__close {
    top: auto;
    bottom: calc(100% + 8px);
  }
}

/* フォーカスを動画から閉じるボタンへ戻すための番兵（見えない） */
.video-modal__guard {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* --------------------------------------------------------------------------
   動きを減らす設定：装飾の動きを止め、最終状態で表示する
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

