/*
 * はなまるうどん TKMT高松本店 LP
 * - 命名は `lp-` プレフィックス、Figmaレイヤー名をベースにしたBEM風
 * - モバイルファースト。821px以上をPCレイアウトとして上書きする
 * - FVスライドショー・パララックス・横スクロールpin・ローディングイントロ実装済み
 */

/* -------------------------------------------------
   Reset
   共通 style.css は Tailwind v4（カスケードレイヤー使用）のため、
   要素セレクタのリセットは必ず @layer base に入れること。
   レイヤー外に書くと @layer utilities 内のユーティリティクラス
   （共通ヘッダー・メニューの mx-auto / px-2 / space-y 等）より
   常に強くなってしまい、レイアウトを壊す（メニューのセンター揃えが
   崩れる不具合が実際に発生した）。base レイヤー内なら Tailwind の
   preflight と同格で、ユーティリティが正しく勝つ。
------------------------------------------------- */
@layer base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  section[id] {
    scroll-margin-top: 64px;
  }

  html,
  body,
  h1, h2, h3, h4, p, ul, ol, li, figure, figcaption {
    margin: 0;
    padding: 0;
  }

  ul, ol {
    list-style: none;
  }

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

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

  button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
  }
}

/* アンカーのスムーススクロールは共通JS（js/setSmoothScroll.js）が
   クリックをフックして行うため、CSSのscroll-behaviorは設定しない
   （併用するとJSのスクロール制御と競合してガタつくため） */

/* -------------------------------------------------
   Tokens
------------------------------------------------- */
:root {
  /* Color（用途別。Figmaの規定色を無理に統一せずそのまま使用） */
  --lp-color-primary: #eb5c01;      /* 本文・見出し・メインCTA用オレンジ */
  --lp-color-header: #e54301;       /* header/footer専用オレンジ（既存サイトと同一値） */
  --lp-color-logo-accent: #ea5b02;  /* ロゴSVG内の規定オレンジ */
  --lp-color-text: #3a3636;         /* 本文テキスト */
  --lp-color-logo-black: #231815;   /* ロゴディテール黒 */
  --lp-color-cream: #fff2d5;        /* クリーム背景 */
  --lp-color-mint: #bee6dc;         /* ミント背景 */
  --lp-color-white: #ffffff;
  --lp-color-hero-overlay: rgb(32 18 9 / 38%);

  /* Font */
  --lp-font-serif: YakuHanMP, "Noto Serif JP", serif;
  --lp-font-sans: YakuHanJP, "Zen Kaku Gothic New", sans-serif;
  --lp-font-deco: "Bakbak One", sans-serif;
  --lp-font-tkmt: "tkmt", sans-serif;

  /* Container（SP基準。821px以上はPC値に上書き） */
  --lp-container-width: 311px;        /* section inner */
  /* header innerは既存サイト（header.php）の max-w-[1000px] をそのまま踏襲。
     既存サイトはブレークポイントに関わらず常にこの1000pxのみで、
     SP側で別の上限値を設けていない（狭い画面では単にpadding分を引いた
     幅がそのまま使われ、1000pxが効くのは十分広い画面のときだけ）。
     SP用に335px等の別値を設定すると、821px未満の広めの画面（タブレット等）で
     既存サイトより不自然に狭くなるため、必ず単一の値のままにすること。 */
  --lp-container-header-width: 1000px; /* header inner */

  /* Spacing */
  --lp-section-gap-sp: 0px;
}

@font-face {
  font-family: "tkmt";
  src: url("../fonts/tkmt-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@media (min-width: 821px) {
  :root {
    --lp-container-width: 1280px;
  }
}

/* -------------------------------------------------
   Base
------------------------------------------------- */
body.lp-page {
  overflow-x: hidden;
  font-family: var(--lp-font-sans);
  color: var(--lp-color-text);
  background: var(--lp-color-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.lp-container {
  /* SP側は上限を設けず「画面幅-64px（左右32pxずつ）」のまま伸びるようにする。
     821px未満のリファレンス値（311px = 375px時の値）をmax-widthとして
     固定してしまうと、375pxより広い「SP扱い」の画面幅（タブレット等）で
     不自然に頭打ちになるため、SP側にはmax-widthを設定しない。
     PC側でのみ実際の上限（1280px + 64px）を設ける。 */
  width: 100%;
  margin-inline: auto;
  padding-inline: 32px;
  box-sizing: border-box;
}

@media (min-width: 821px) {
  .lp-container {
    max-width: calc(var(--lp-container-width) + 64px);
  }
}

/* 画像未確定エリア用プレースホルダー */
.lp-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #e5e3df,
    #e5e3df 10px,
    #d8d5cf 10px,
    #d8d5cf 20px
  );
  color: #8a8a8a;
  font-size: 12px;
  text-align: center;
  overflow: hidden;
}

/* -------------------------------------------------
   Header / Hamburger menu / footer
   WordPress化に伴い共通の header.php / footer.php を使用するため、
   LP専用のヘッダー・メニュー・フッターのスタイルは削除した
   （スタイルは共通の style.css が担う）。
------------------------------------------------- */

/* PC幅では改行しないテキスト用（既存サイトのmd:hidden／lg:hidden相当） */
.lp-br-md {
  display: inline;
}

@media (min-width: 821px) {
  .lp-br-md {
    display: none;
  }
}

.lp-br-lg {
  display: inline;
}

@media (min-width: 1024px) {
  .lp-br-lg {
    display: none;
  }
}

/* SP/PCで改行位置・整列が異なるテキストの出し分け用 */
.lp-only-sp {
  display: block;
}

.lp-only-pc {
  display: none;
}

@media (min-width: 821px) {
  .lp-only-sp {
    display: none;
  }

  .lp-only-pc {
    display: block;
  }
}

/* -------------------------------------------------
   section-hero（ファーストビュー）
------------------------------------------------- */
.lp-section-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--lp-color-primary);
  padding-top: 51px;
  box-sizing: border-box;
  /* ヘッダー分を差し引いた高さと画面幅の両方から、マスク・ロゴ・店名
     （常に同じ比率で連動する3要素）の縮尺を1本のscaleとして算出する。
     Figma実測（SP）: hero内容全体335px、マスク幅343px（375px幅時）。
     PC側と違い「1」で頭打ちにしない（375pxより広いSP扱いの画面幅、
     いわゆるタブレットサイズでも「画面幅-32px」のままマスクが広がり続ける
     必要があるため。821px以降はPC側のscale定義に切り替わり、そこで
     初めて1087.5pxを上限に頭打ちになる）。
     ※スケールは「倍率×1px」の長さとして持つ（分母を無単位にする）。
     calc()内の長さ÷長さ（px割り）はFirefox未対応で、変数の使用箇所ごと
     無効になりwidth等が効かなくなる（マスクが全画面に広がる実害があった）。
     使用側は calc(343 * var(--lp-hero-scale)) のように無単位係数を掛ける。 */
  --lp-hero-scale: min(
    calc((100svh - 51px) / 335),
    calc((100vw - 32px) / 343)
  );
  /* min-height:100svhは使わない。高さは padding-top + inner の自然な高さに任せる。
     scaleが高さ制約で決まる通常時は inner が (100svh-header) ちょうどになり
     結果的に100svh埋まる。scaleが幅制約で決まる（画面が縦長で幅が狭い）場合は
     inner がそれより低くなり、heroもその分だけ低くなるので、直後の
     lp-section-leadがオレンジの空白を挟まず表示される。 */
  min-height: auto;
}

@media (min-width: 821px) {
  .lp-section-hero {
    /* Figma実測（PC）: hero内容全体896.02px、マスク幅977.414px（1440px幅時）。
       ※マスクのみ後から拡大（977.414→1087.5）。オレンジ領域・ロゴ・店名の
       サイズ感は変えず、マスク上下の余白を詰めて内容全体896.02を維持する。
       幅制約の分母は拡大後のマスク実幅に合わせる */
    --lp-hero-scale: min(
      1px,
      calc((100svh - 64px) / 896.02),
      calc((100vw - 32px) / 1087.5)
    );
    padding-top: 64px;
  }
}

.lp-section-hero__inner {
  position: relative;
  /* コンテンツ本体（マスク・ロゴ・店名一式）の高さを明示することで、
     白背景レイヤーが常にコンテンツ側に追従する
     （幅制約でscaleが頭打ちの時、余白はこのinnerの下に生まれる）。 */
  height: calc(335 * var(--lp-hero-scale));
}

@media (min-width: 821px) {
  .lp-section-hero__inner {
    height: calc(896.02 * var(--lp-hero-scale));
  }
}

.lp-section-hero__bg-white {
  position: absolute;
  inset: auto 0 0 0;
  height: calc(80 * var(--lp-hero-scale));
  background: var(--lp-color-white);
  z-index: 0;
}

@media (min-width: 821px) {
  .lp-section-hero__bg-white {
    height: calc(192.004 * var(--lp-hero-scale));
  }
}

.lp-section-hero__bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.5s ease;
  /* 2026-07-13変更: スライド画像はFigmaのoverlay配置から「マスク窓に見える範囲」を
     事前クロップして書き出す運用に変更（4枚ともoverlayの配置・クロップがバラバラなため、
     旧方式の共通%値では再現できない）。画像=マスク窓そのものなので100% 100%で全面に貼る。
     ※background-size:coverはCSS maskとの組み合わせでSafari/Chromeに描画バグがあるため使わない */
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.lp-section-hero__bg-slide.is-active {
  opacity: 1;
}

/* Ken Burns風のゆっくりしたズーム。表示中（4s）＋フェードアウト中（2.5s）の計6.5sかけて
   ゆっくり拡大する。ズームはis-active（表示制御）とは別のis-zoomクラスに紐付け、
   表示開始からフェードアウト完了までJSが付けっぱなしにする。
   is-active⇄is-leavingのようにセレクタを切り替える方式だと、クラス切替の瞬間に
   アニメーションが再スタートして一瞬元のサイズに戻る環境（Safari実機等）があるため、
   「1つのクラスが付いている間ずっと同じアニメーション」という構造にして回避する。
   拡大してはみ出す分は親の.lp-section-hero__maskのマスクで隠れる。 */
.lp-section-hero__bg-slide.is-zoom {
  animation: lp-hero-zoom 6.5s linear forwards;
}

@keyframes lp-hero-zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.16);
  }
}

.lp-section-hero__mask {
  position: relative;
  z-index: 1;
  margin-inline: auto;
  margin-top: calc(40 * var(--lp-hero-scale));
  width: calc(343 * var(--lp-hero-scale));
  aspect-ratio: 343 / 171;
  -webkit-mask-image: url("../images/fv/hero-mask-sp.svg");
  mask-image: url("../images/fv/hero-mask-sp.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

@media (min-width: 821px) {
  .lp-section-hero__mask {
    /* マスク拡大: 幅977.414→1087.5（高さ484.44→539）。マスク上の余白と
       マスク下〜ロゴ間の余白が同じ36になるサイズまで広げ、総高さは維持する
       （36 + 539 + 36 = 611 = 従来の 92.468 + 484.44 + 34.092） */
    width: calc(1087.5 * var(--lp-hero-scale));
    aspect-ratio: 977.41 / 484.44;
    margin-top: calc(36 * var(--lp-hero-scale));
    -webkit-mask-image: url("../images/fv/hero-mask-pc.svg");
    mask-image: url("../images/fv/hero-mask-pc.svg");
  }
}

.lp-section-hero__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: calc(11.963 * var(--lp-hero-scale));
}

@media (min-width: 821px) {
  .lp-section-hero__bottom {
    /* マスク拡大に伴い34.092から調整。マスク上の余白（36）と同値に揃える */
    margin-top: calc(36 * var(--lp-hero-scale));
  }
}

.lp-section-hero__logo {
  width: calc(255.359 * var(--lp-hero-scale));
  margin-bottom: calc(7.019 * var(--lp-hero-scale));
}

@media (min-width: 821px) {
  .lp-section-hero__logo {
    width: calc(727.675 * var(--lp-hero-scale));
    margin-bottom: calc(20 * var(--lp-hero-scale));
  }
}

.lp-section-hero__store-name {
  width: calc(216.198 * var(--lp-hero-scale));
  margin-bottom: calc(19.995 * var(--lp-hero-scale));
}

@media (min-width: 821px) {
  .lp-section-hero__store-name {
    width: calc(616.078 * var(--lp-hero-scale));
    margin-bottom: calc(19.894 * var(--lp-hero-scale));
  }
}

/* -------------------------------------------------
   section-lead
------------------------------------------------- */
.lp-section-lead {
  position: relative;
  padding-block: 40px 80px;
  text-align: center;
}

@media (min-width: 821px) {
  .lp-section-lead {
    padding-block: 80px 120px;
  }
}

.lp-section-lead__heading {
  font-family: var(--lp-font-serif);
  font-weight: 700;
  color: var(--lp-color-primary);
  font-size: 24px;
  line-height: 1.437;
  letter-spacing: 0;
}

@media (min-width: 821px) {
  .lp-section-lead__heading {
    font-size: 44px;
    line-height: 1.5;
  }
}

.lp-section-lead__body {
  margin-top: 40px;
  font-weight: 700;
  font-size: 16px;
  line-height: 2;
  /* タブレット（600〜820px）はセンター揃え。左寄せはスマホ（〜599px）のみ */
  text-align: center;
}

@media (max-width: 599px) {
  .lp-section-lead__body {
    text-align: left;
  }
}

@media (min-width: 821px) {
  .lp-section-lead__body {
    font-size: 24px;
    text-align: center;
  }
}

/* サイズ・位置はFigma実測（SP: 72x72 right6 bottom10 / PC: 152x152 right20 bottom20）。
   overflow:hidden + border-radius:50%は必須：正方形の回転ボックスは変形境界が
   最大√2倍に広がり、右端配置のためビューポートを周期的にはみ出して
   iOS Safariでページ全体の横オーバーフロー（右側の白帯）を起こすため、
   リンク自身で回転境界をクリップして外に一切影響させない。
   リング（円形）は内接円に収まるので見た目は何も切れない。 */
.lp-section-lead__scroll-link {
  position: absolute;
  right: 6px;
  bottom: 10px;
  width: 72px;
  height: 72px;
  z-index: 2;
  overflow: hidden;
  border-radius: 50%;
}

.lp-section-lead__scroll-link.lp-only-pc {
  width: 152px;
  height: 152px;
  right: 20px;
  bottom: 20px;
}

.lp-section-lead__scroll-link-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 常時ゆっくり回転する円形テキスト（Figmaのプロトタイプ設定に準拠） */
.lp-section-lead__scroll-link-rotor {
  position: absolute;
  inset: 0;
  animation: lp-scroll-link-rotate 16s linear infinite;
}

/* エクスポートSVGの実寸はFigmaのボックスより小さい（インク境界でトリムされる）ため、
   Figmaどおりの比率で中央配置する。SP: 65/72、PC: 141/152。 */
.lp-section-lead__scroll-link-rotor img {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  width: 90.28%;
  height: auto;
}

.lp-only-pc .lp-section-lead__scroll-link-rotor img {
  width: 92.77%;
}

@keyframes lp-scroll-link-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* -------------------------------------------------
   section-menu
------------------------------------------------- */
.lp-section-menu {
  background: var(--lp-color-cream);
}

.lp-section-menu-intro {
  padding-block: 80px 40px;
  text-align: center;
}

@media (min-width: 821px) {
  .lp-section-menu-intro {
    padding-block: 120px 40px;
  }
}

/* アウトライン化されていた見出し（Figma上は画像化済みだが実データはテキスト+写真の組み合わせ）を
   実テキスト（Noto Serif JP）+ 写真で再現 */
.lp-section-menu-intro__heading {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  /* 1行に収めるため、.lp-containerの32px insetを左右8pxずつだけ狭める */
  width: calc(100% + 16px);
  margin-inline: -8px;
  font-family: var(--lp-font-serif);
  font-weight: 700;
  font-size: 24px;
  white-space: nowrap;
  color: var(--lp-color-text);
}

.lp-section-menu-intro__heading img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

@media (min-width: 821px) {
  .lp-section-menu-intro__heading {
    flex-wrap: wrap;
    width: auto;
    margin-inline: 0;
    white-space: normal;
    gap: 8px 16px;
    font-size: 56px;
  }

  .lp-section-menu-intro__heading img {
    height: 90px;
  }
}

/* サブ見出し（毎日/来たくなる場所）はfigma上SPで2行・PCで1行と行数が異なるため
   ベースのnowrap設定を打ち消し、行ごとにグループ化して制御する */
.lp-section-menu-intro__heading--sub {
  margin-top: 8px;
  flex-wrap: wrap;
  width: auto;
  margin-inline: 0;
  white-space: normal;
  font-size: 24px;
}

.lp-section-menu-intro__heading--sub .lp-section-menu-intro__heading-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

@media (min-width: 821px) {
  .lp-section-menu-intro__heading--sub {
    font-size: 56px;
    gap: 8px 16px;
  }

  .lp-section-menu-intro__heading--sub .lp-section-menu-intro__heading-row {
    display: contents;
  }
}

.lp-section-menu-intro__logo {
  height: 32px !important;
}

@media (min-width: 821px) {
  .lp-section-menu-intro__logo {
    height: 70px !important;
  }
}

.lp-section-menu-intro__text {
  margin-top: 32px;
  font-weight: 700;
  font-size: 16px;
  /* タブレット（600〜820px）はセンター揃え。左寄せはスマホ（〜599px）のみ */
  text-align: center;
}

@media (max-width: 599px) {
  .lp-section-menu-intro__text {
    text-align: left;
  }
}

@media (min-width: 821px) {
  .lp-section-menu-intro__text {
    margin-top: 48px;
    font-size: 24px;
    text-align: center;
  }
}

/* --- horizontal-scroll-area（定食） ---
   NOTES.md 5.4: 縦スクロール量をpinしてX方向の横スクロールに変換し、
   定食5枚を見終わったらpin解除して通常の縦スクロールに戻す。
   .lp-horizontal-scroll の高さ（100svh + 実際の横移動量）はJS（setHorizontalScroll）が
   トラック幅を実測して動的に設定する。中の .lp-horizontal-scroll__sticky が
   position:sticky で画面に固定され、その間 .lp-horizontal-scroll__track を
   transform:translateXで動かす。 */
.lp-horizontal-scroll {
  position: relative;
  background: var(--lp-color-cream);
}

/* 高さは100lvh基準（section-placeのsticky背景と同じ理由。
   svh基準だとiOS Safariのアドレスバー収納時に画面下に空白が出る）。 */
.lp-horizontal-scroll__sticky {
  position: sticky;
  top: 51px;
  height: calc(100vh - 51px);
  height: calc(100lvh - 51px);
  overflow: hidden;
  display: flex;
  align-items: center;
}

@media (min-width: 821px) {
  .lp-horizontal-scroll__sticky {
    top: 64px;
    height: calc(100vh - 64px);
    height: calc(100lvh - 64px);
  }
}

/* width:max-contentを明示しないとSafariがflexアイテムとしてのトラック幅を
   誤計算し（実測: 本来2227pxのところ1000px）、横移動距離が不足する。
   SPのmargin-topは上部の吹き出し「出来立てをご提供」と料理写真が
   被り気味にならないよう、カード列を少し下げるためのもの。 */
.lp-horizontal-scroll__track {
  display: flex;
  gap: 120px;
  width: max-content;
  margin-top: 44px;
  padding-inline: 16px;
  will-change: transform;
}

@media (min-width: 821px) {
  .lp-horizontal-scroll__track {
    margin-top: 0;
    gap: 180px; /* PCはカード間隔をSP（120px）の1.5倍に */
    padding-inline: 80px;
  }
}

/* SPは固定343pxだと大きい端末（430px幅等）で左右の余白が空きすぎるため、
   画面幅に追従させる（343pxは390px幅換算で88vw相当。91vwへやや拡大） */
.lp-menu-card {
  /* スマホ（〜440px）は91vwが効くため従来どおり。
     400px固定上限だとタブレット帯（440〜820px）でカードが小さく余白が目立つため、
     上限を620pxに引き上げて画像を大きく見せる（2026-07-13。文字サイズは変えない） */
  flex: 0 0 min(620px, 91vw);
  scroll-snap-align: start;
}

@media (min-width: 821px) {
  /* 770pxから一回り縮小: 左上固定の「出来立てをご提供」の吹き出しと
     カード上部（選べますバッジ）の被りを軽減するため */
  .lp-menu-card {
    flex-basis: min(720px, 76vw);
    min-width: 0;
  }
}

/* 中央フォーカス演出: 画面中央に最も近いカードにJSがis-focusを、
   それ以外にis-dimを付ける。フォーカス側は一回り拡大、非フォーカス側は縮小のみ
   （減光はしない）で、サイズの変化だけで「いま主役の1皿」に視線を集める。
   横スクロール区間はカード自体の入場演出を持たず、常に等倍で表示された状態から
   このフォーカス伸縮だけで動く（画面に入った瞬間のふわっと出現と、その後の
   フォーカス拡大が二段階の動きに見えて不自然だったため、入場演出を廃止した） */
.lp-menu-card__image-area {
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  /* Safari対策: 子のdrop-shadow付き画像ごとレイヤー化しGPU合成で拡縮する。
     指定なしだとSafariはscaleの毎フレームでフィルタを再ラスタライズし、
     フォーカス拡大がカクつく */
  will-change: transform;
}

.lp-menu-card.is-focus .lp-menu-card__image-area {
  transform: scale(1.06);
}

.lp-menu-card.is-dim .lp-menu-card__image-area {
  transform: scale(0.86);
}

/* overflow:hiddenにしない。object-fit:containの画像はボックスの縁にぴったり
   接するため、hiddenのままだとdrop-shadowのぼかしがその場で切れてしまい
   影が途中で途切れた平面的な見た目になる（実機で確認済み）。
   画像自体はcontainで箱からはみ出さないため、hiddenを外しても画像の見た目は変わらない */
.lp-menu-card__image-area {
  position: relative;
  aspect-ratio: 343 / 220;
  background: transparent;
}

.lp-menu-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 切り抜き画像の輪郭に沿って落ちる影（box-shadowだと矩形の影になる）。
     クリーム背景に馴染むよう暖色寄りの影色にする。
     SPは単一のdrop-shadowだと影の縁が単色べったりで人工的に見えたため、
     輪郭に密着した薄いコンタクトシャドウ＋遠くまでやわらかくにじむ
     アンビエントシャドウの2層に分け、自然なグラデーションの落ち方にする */
  filter:
    drop-shadow(0 3px 5px rgb(110 55 10 / 10%))
    drop-shadow(0 14px 22px rgb(110 55 10 / 14%));
}

@media (min-width: 821px) {
  .lp-menu-card__image-area {
    aspect-ratio: 770 / 494;
  }

  .lp-menu-card__image {
    filter: drop-shadow(0 10px 14px rgb(110 55 10 / 16%));
  }
}

/* 湯気の演出。既存サイト（oidemai-sanuki.jp トップのスライドメニュー）と同じ
   湯気アセット（steam-01〜03.webp: ふわっとした雲状の半透明画像）を流用し、
   本家のanimejs実装（グループが斜めにドリフトしつつ中の3枚が順にクロスフェード）を
   CSSキーフレームの無限ループとして再現する。
   位置はどの定食写真でも汁物の椀がお盆の左上にあるため、その真上に固定 */
.lp-steam {
  position: absolute;
  top: -4%;
  left: 2%;
  width: 42%;
  aspect-ratio: 900 / 691;
  pointer-events: none;
}

.lp-steam img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  will-change: transform, opacity;
  animation: lp-steam-drift 4.8s ease-out infinite;
}

.lp-steam img:nth-child(2) {
  animation-delay: 1.6s;
}

.lp-steam img:nth-child(3) {
  animation-delay: 3.2s;
}

/* メインの料理（お盆の中央〜右）の上に置く2グループ目。
   既存サイトの右下起点グループ（steam-04〜06）を流用し、
   汁物側と同時に山が来ないよう位相を半周期ずらす */
.lp-steam--main {
  top: 12%;
  left: auto;
  right: 2%;
  width: 46%;
  aspect-ratio: 900 / 512;
}

.lp-steam--main img:nth-child(1) {
  animation-delay: 0.8s;
}

.lp-steam--main img:nth-child(2) {
  animation-delay: 2.4s;
}

.lp-steam--main img:nth-child(3) {
  animation-delay: 4s;
}

/* 各画像は周期の前半55%で「右下から左上へ漂いながらフェードイン→アウト」し、
   残りは非表示で待機。3枚が1.6sずつずれることで常に1〜2枚が漂っている状態になる */
@keyframes lp-steam-drift {
  0% {
    transform: translate(5%, 10%) scale(0.96);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  40% {
    opacity: 0.85;
  }

  58%,
  100% {
    transform: translate(-6%, -16%) scale(1.08);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-steam {
    display: none;
  }
}

.lp-menu-card__badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 85.53px;
  height: 85.53px;
}

@media (min-width: 821px) {
  .lp-menu-card__badge {
    width: 160px;
    height: 160px;
  }
}

.lp-menu-card__salad-tag {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 66.07px;
  height: 66.07px;
}

@media (min-width: 821px) {
  .lp-menu-card__salad-tag {
    width: 110px;
    height: 110px;
  }
}

.lp-menu-card__info {
  padding-block: 16px;
}

.lp-menu-card__name {
  font-family: var(--lp-font-serif);
  font-weight: 700;
  font-size: 28px;
  color: var(--lp-color-text);
  text-align: center;
}

@media (min-width: 821px) {
  .lp-menu-card__name {
    font-size: 46px;
  }
}

.lp-menu-card__options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  font-family: var(--lp-font-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--lp-color-text);
}

@media (min-width: 821px) {
  .lp-menu-card__options {
    flex-direction: row;
    justify-content: center;
    gap: 66px;
    font-size: 32px;
  }
}

.lp-menu-card__option {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.lp-menu-card__option-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 22px;
  padding-inline: 5px;
  border: 1px solid var(--lp-color-text);
  border-radius: 2px;
  white-space: nowrap;
}

@media (min-width: 821px) {
  .lp-menu-card__option-label {
    height: 42px;
    padding-inline: 5px;
    font-size: 30px;
    line-height: 1;
  }
}

.lp-menu-card__option-price {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  line-height: 1;
  color: var(--lp-color-text);
  font-weight: 700;
  /* ごはんもの単品カードのSP価格（20px）と揃える */
  font-size: 20px;
}

@media (min-width: 821px) {
  .lp-menu-card__option-price {
    font-size: 40px;
  }
}

.lp-menu-card__option-price-unit {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
}

.lp-menu-card__option-price-unit-yen {
  font-size: 12px;
}

.lp-menu-card__option-price-unit-tax {
  font-size: 10px;
}

@media (min-width: 821px) {
  .lp-menu-card__option-price-unit {
    flex-direction: column-reverse;
    align-items: center;
    line-height: 1;
  }

  .lp-menu-card__option-price-unit-yen {
    font-size: 22px;
  }

  .lp-menu-card__option-price-unit-tax {
    margin-left: 0;
    font-size: 10px;
    white-space: nowrap;
  }
}

/* 横スクロールのpinに入った直後（進捗0）は隠しておき、実際にスクロールが
   始まった瞬間（JSがis-revealedを付与）にふわっとポップインさせる。
   scale/translateはtransformとは独立したプロパティなので、
   .lp-speech-bubble__imgの漂い（transform:translate）と併用しても競合しない */
.lp-speech-bubble {
  position: absolute;
  top: 44px;
  left: 16px;
  z-index: 0;
  /* SPは余白が空きすぎに見えるため168pxから拡大（カード拡大とセットで調整） */
  width: 192px;
  aspect-ratio: 206.09 / 113.56;
  opacity: 0;
  scale: 0.85;
  translate: 0 10px;
  transition:
    opacity 0.5s ease,
    scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    translate 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lp-speech-bubble.is-revealed {
  opacity: 1;
  scale: 1;
  translate: 0 0;
}

/* 常時アニメーションは湯気と同じ4.8s周期・同じ斜め方向（右下→左上）に
   漂わせるだけに抑える（回転なし）。画面内で動くもの（湯気・吹き出し）の空気を揃え、
   単独でふわふわ揺れるテンプレ感を避けるため。外側の.lp-speech-bubbleは
   is-revealed（scale/translate）を使うため、漂いは内側のimgに分けて競合を避ける */
.lp-speech-bubble__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top left;
  animation: lp-bubble-drift 4.8s ease-in-out infinite;
}

/* 振れ幅は片道約(9px,12px)。当初は2〜3pxだったが「動いているか分からない」との
   指摘で拡大。吹き出しはSPで幅168px（PCは255px）のため、同じpx値でも
   SPのほうが相対的に大きく動いて見える */
@keyframes lp-bubble-drift {
  0%,
  100% {
    transform: translate(3px, 4px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .lp-speech-bubble__img {
    animation: none;
  }

  .lp-speech-bubble {
    transition: none;
  }
}

@media (min-width: 821px) {
  /* 255×141から一回り縮小: カード上部（選べますバッジ）との被りを軽減するため */
  .lp-speech-bubble {
    top: 27px;
    left: 23px;
    width: 224px;
    height: 124px;
  }
}

/* --- section-rice-menu（ご飯もの・丼） --- */
.lp-section-rice-menu {
  padding-block: 80px;
  text-align: center;
  background: var(--lp-color-white);
}

@media (min-width: 821px) {
  .lp-section-rice-menu {
    padding-block: 120px;
  }
}

.lp-section-rice-menu__title {
  font-family: var(--lp-font-serif);
  font-weight: 700;
  font-size: 28px;
}

@media (min-width: 821px) {
  .lp-section-rice-menu__title {
    font-size: 58px;
  }
}

.lp-rice-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 12px;
  row-gap: 40px;
  margin-top: 40px;
}

@media (min-width: 821px) {
  .lp-rice-menu-grid {
    margin-top: 80px;
    row-gap: 64px;
  }
}

@media (min-width: 1024px) {
  .lp-rice-menu-grid {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 29px;
  }
}

.lp-rice-menu-card__image {
  aspect-ratio: 298 / 178;
  overflow: hidden;
}

.lp-rice-menu-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-rice-menu-card__name {
  margin-top: 15px;
  font-family: var(--lp-font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--lp-color-text);
}

@media (min-width: 821px) {
  .lp-rice-menu-card__name {
    margin-top: 30px;
    font-size: 28px;
  }
}

.lp-rice-menu-card__price {
  /* ラベルと価格ブロック（__price-value）は上下センター揃え。
     数値と単位のベースライン合わせは__price-value内で行う */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 5px;
  font-family: var(--lp-font-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  color: var(--lp-color-text);
}

@media (min-width: 821px) {
  .lp-rice-menu-card__price {
    margin-top: 10px;
    gap: 10px;
    font-size: 40px;
  }
}

/* 数値と単位（円/(税込)）はここでベースライン（下端）合わせ */
.lp-rice-menu-card__price-value {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  line-height: 1;
}

/* PCは「円」の下に「(税込)」を縦積み、SPは横並び（Figma実測値どおり） */
.lp-rice-menu-card__unit-wrap {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
}

@media (min-width: 821px) {
  .lp-rice-menu-card__unit-wrap {
    flex-direction: column-reverse;
    align-items: center;
    line-height: 1;
  }
}

.lp-rice-menu-card__unit {
  font-size: 14px;
}

@media (min-width: 821px) {
  .lp-rice-menu-card__unit {
    font-size: 22px;
  }
}

.lp-rice-menu-card__tax {
  font-size: 10px;
  white-space: nowrap;
}

/* 単品価格ラベル（Figma「単品メニュー変更」799:32実測: 枠線1px・角丸2px・
   padding5px・PC高さ38px/フォント24px。SPは価格16pxに合わせて縮小） */
.lp-rice-menu-card__price-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 22px;
  padding-inline: 5px;
  border: 1px solid var(--lp-color-text);
  border-radius: 2px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 821px) {
  .lp-rice-menu-card__price-label {
    height: 38px;
    font-size: 24px;
    /* 幾何学的なセンターは一致していても、数字（40px）は字面が下寄りに見えるため
       視覚的に揃うようラベルを少し下げる */
    transform: translateY(2px);
  }
}

/* うどんセット割引バッジ（Figma書き出しSVG。PC実測: 219px幅・価格の15px下・中央）。
   SPは「60円」が単品価格より大きく見えないよう文字比率を調整した
   SP専用SVG（set-discount-badge-sp.svg）にpictureで出し分け */
.lp-rice-menu-card__discount {
  display: block;
  width: 150px;
  margin: 8px auto 0;
}

@media (min-width: 821px) {
  .lp-rice-menu-card__discount {
    width: 219px;
    margin-top: 15px;
  }
}

.lp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--lp-color-primary);
  color: var(--lp-color-white);
  font-weight: 900;
  font-size: 16px;
}

.lp-button__icon {
  width: 18px;
  height: 18px;
}

@media (min-width: 821px) {
  .lp-button__icon {
    width: 25px;
    height: 25px;
  }
}

@media (min-width: 821px) {
  .lp-button {
    margin-top: 80px;
    font-size: 32px;
    padding: 20px 48px;
  }
}

/* -------------------------------------------------
   section-place（店内紹介・パララックス）
   背景をposition:stickyで画面高100%に固定し、
   その上をテキスト・ギャラリー写真がスクロールで通過していく（NOTES.md 5.6）。
------------------------------------------------- */
.lp-section-place {
  position: relative;
}

/* 高さは100lvh（アドレスバー収納時＝最大のビューポート高さ）基準。
   iOS Safariはスクロール中にアドレスバーが出入りしてビューポート高さが変わるため、
   svhや読み込み時のinnerHeight基準だとバー収納時に背景の下に余白が出る。
   lvh基準ならバー表示中は背景下端が画面外に少しはみ出すだけで、余白は構造的に出ない。
   1行目の100vhはlvh非対応ブラウザ向けフォールバック（iOSの100vhはlvh相当）。 */
.lp-section-place__bg-sticky {
  position: sticky;
  top: 51px;
  height: calc(100vh - 51px);
  height: calc(100lvh - 51px);
  overflow: hidden;
}

@media (min-width: 821px) {
  .lp-section-place__bg-sticky {
    top: 64px;
    height: calc(100vh - 64px);
    height: calc(100lvh - 64px);
  }
}

.lp-section-place__bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/space/interior-bg.webp");
  background-size: cover;
  background-position: center;
}

/* Figma 2026-07-13更新: PCのみ背景写真が別カット（58734f2b）。SPは従来画像のまま */
@media (min-width: 821px) {
  .lp-section-place__bg {
    background-image: url("../images/space/interior-bg-pc.webp");
  }
}

.lp-section-place__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lp-color-hero-overlay);
}

/* 直上のsticky背景と同じ高さぶん引き上げて重ね、
   スクロールでこのブロックが固定背景の上を通過するようにする */
.lp-section-place__overlay {
  position: relative;
  z-index: 1;
  margin-top: calc(-100vh + 51px);
  margin-top: calc(-100lvh + 51px);
  /* 2026-07-13再調整: SPはギャラリー側の下余白（コンテナ末尾160相当）で足りるため0 */
  padding-bottom: 0;
  color: var(--lp-color-white);
  text-align: center;
}

@media (min-width: 821px) {
  .lp-section-place__overlay {
    margin-top: calc(-100vh + 64px);
    margin-top: calc(-100lvh + 64px);
    padding-bottom: 160px;
  }
}

.lp-section-place__content {
  /* Figma 2026-07-13調整: 80→120（SP hero-content y=120.4） */
  padding-top: 120px;
}

@media (min-width: 821px) {
  .lp-section-place__content {
    /* Figma 2026-07-13調整: 113→160（PC hero-content y=160） */
    padding-top: 160px;
  }
}

.lp-section-place__heading {
  font-family: var(--lp-font-serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.5;
}

@media (min-width: 821px) {
  .lp-section-place__heading {
    font-size: 58px;
  }
}

.lp-section-place__body {
  /* Figma 2026-07-13調整: 32→24（SP 見出し下端200.4→本文224.4） */
  margin-top: 24px;
  font-weight: 700;
  font-size: 16px;
  /* タブレット（600〜820px）はセンター揃え。左寄せはスマホ（〜599px）のみ */
  text-align: center;
}

@media (max-width: 599px) {
  .lp-section-place__body {
    text-align: left;
  }
}

@media (min-width: 821px) {
  .lp-section-place__body {
    /* Figma 2026-07-13調整: 48→40（PC 見出し下端326→本文366） */
    margin-top: 40px;
    font-size: 24px;
    text-align: center;
  }
}

/* 写真6枚のフリーコラージュ（Figma 2026-07-13全面改訂）。
   コンテナはセクション全幅＋aspect-ratioで高さを確保し、各写真を%座標で絶対配置する。
   %の分母は SP=375 / PC=1440（各designフレームの実測値。コメントに元pxを記載）。
   hero-contentとの間隔は SP80px / PC240px（Figma実測: SP 432.4-352.4 / PC 702-462）。 */
.lp-section-place__gallery {
  position: relative;
  margin-top: 80px;
  /* SP: 画像間の縦余白をFigma実測の1.5倍に広げた版（ユーザー指定）。
     段間 49.3/27.4/45.6/25.4/68.6 → 各×1.5、末尾余白160は維持。総高さ1178→1286 */
  aspect-ratio: 375 / 1286;
}

@media (min-width: 821px) {
  .lp-section-place__gallery {
    margin-top: 240px;
    /* lp-container と同じ上限（1280+64=1344px）で中央寄せ。
       %座標は1344px箱基準（Figma1440の左右48pxを除いた範囲）で換算 */
    max-width: calc(var(--lp-container-width) + 64px);
    margin-inline: auto;
    /* PC: 高さ3844（2026-07-13重なり解消版） */
    aspect-ratio: 1344 / 3844;
  }
}

.lp-section-place__gallery-img {
  position: absolute;
  object-fit: cover;
}

/* SP実測（x, w はFigmaどおり / y は段間1.5倍で再計算・375×1286基準） */
.lp-section-place__gallery-img--01 { left: 16.8%;  top: 0.65%;  width: 53.07%; aspect-ratio: 199 / 121; }    /* y=8.3 */
.lp-section-place__gallery-img--02 { left: 57.87%; top: 15.8%;  width: 38.67%; aspect-ratio: 145 / 119; }    /* y=203.3 */
.lp-section-place__gallery-img--03 { left: 3.2%;   top: 28.25%; width: 58.13%; aspect-ratio: 218 / 145; }    /* y=363.4 */
.lp-section-place__gallery-img--04 { left: 32%;    top: 44.85%; width: 60.27%; aspect-ratio: 226 / 111; }    /* y=576.8 */
.lp-section-place__gallery-img--05 { left: 10.67%; top: 56.44%; width: 37.47%; aspect-ratio: 140.5 / 110.4; } /* y=725.9 */
.lp-section-place__gallery-img--06 { left: 40.53%; top: 73.03%; width: 46.67%; aspect-ratio: 175 / 187; }    /* y=939.2 */

/* PC実測（1344箱・高さ3844基準。元座標=Figma1440基準x−48。2026-07-13レイアウト改訂） */
@media (min-width: 821px) {
  .lp-section-place__gallery-img--01 { left: 28.29%; top: 0%;     width: 55.3%;  aspect-ratio: 743.2 / 454.2; } /* 428.2,0 */
  .lp-section-place__gallery-img--02 { left: 9.99%;  top: 15.04%; width: 36.53%; aspect-ratio: 491 / 354; }     /* 182.2,578 491×354 */
  .lp-section-place__gallery-img--03 { left: 37.34%; top: 28.07%; width: 59.91%; aspect-ratio: 805.2 / 536.8; } /* 549.8,1079 */
  .lp-section-place__gallery-img--04 { left: 2.76%;  top: 48.31%; width: 69.12%; aspect-ratio: 929 / 502; }     /* 85.1,1857 929×502 */
  .lp-section-place__gallery-img--05 { left: 51.94%; top: 66.23%; width: 43.01%; aspect-ratio: 578.1 / 454.2; } /* 746.1,2546 */
  .lp-section-place__gallery-img--06 { left: 13.62%; top: 84.99%; width: 43.08%; aspect-ratio: 579 / 577; }     /* 231,3267 579×577 */
}

/* -------------------------------------------------
   section-chiiki（地域連携）
------------------------------------------------- */
.lp-section-chiiki {
  padding-block: 80px;
  text-align: center;
}

@media (min-width: 821px) {
  .lp-section-chiiki {
    padding-block: 120px;
  }
}

.lp-section-chiiki__heading {
  font-family: var(--lp-font-serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.437;
  letter-spacing: 0;
}

@media (min-width: 821px) {
  .lp-section-chiiki__heading {
    font-size: 58px;
    letter-spacing: 0.1em;
  }
}

.lp-illustrator-block,
.lp-monument-block {
  margin-top: 40px;
  padding: 16px;
  border-radius: 24px;
  background: var(--lp-color-cream);
  text-align: left;
}

@media (min-width: 821px) {
  .lp-illustrator-block,
  .lp-monument-block {
    margin-top: 80px;
    padding: 40px;
  }
}

.lp-illustrator-block__image,
.lp-monument-block__image {
  aspect-ratio: 279 / 125;
  overflow: hidden;
  /* Figma 2026-07-13入替: 画像がブロック末尾になったため、テキストとの間隔を画像側に付ける */
  margin-top: 16px;
}

@media (min-width: 821px) {
  .lp-illustrator-block__image,
  .lp-monument-block__image {
    margin-top: 30px;
  }
}

.lp-illustrator-block__image img,
.lp-monument-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Figma 2026-07-13入替: テキストがブロック先頭になったため上余白なし
   （テキストと画像の間隔は __image 側の margin-top で管理） */

.lp-monument-block__heading {
  font-family: var(--lp-font-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.437;
}

@media (min-width: 821px) {
  .lp-monument-block__heading {
    font-weight: 900;
    font-size: 32px;
    line-height: 1.375;
  }
}

.lp-monument-block__body {
  margin-top: 15px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.448;
}

@media (min-width: 821px) {
  .lp-monument-block__body {
    font-size: 18px;
  }
}

/* Figma 2026-07-13入替: キャプションがブロック先頭になったため上余白なし */
.lp-illustrator-block__caption {
  font-family: var(--lp-font-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.437;
}

@media (min-width: 821px) {
  .lp-illustrator-block__caption {
    font-weight: 900;
    font-size: 30px;
    line-height: 1.437;
  }
}

.lp-illustrator-block__description {
  margin-top: 15px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.448;
}

@media (min-width: 821px) {
  .lp-illustrator-block__description {
    font-size: 20px;
    line-height: 1.5;
  }
}

.lp-illustrator-block__profile {
  margin-top: 16px;
}

@media (min-width: 821px) {
  .lp-illustrator-block__profile {
    margin-top: 30px;
  }
}

.lp-illustrator-block__profile-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-illustrator-block__photo {
  flex-shrink: 0;
  width: 79px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
}

/* SPは「イラストレーター」が氏名の上に来る（Figma design-sp）。
   DOM順（name→role）は変えず、column-reverseで見た目だけ入れ替える。
   PCはcolumn（DOM順どおり name→role）に戻す */
.lp-illustrator-block__profile-info {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}

@media (min-width: 821px) {
  .lp-illustrator-block__profile-info {
    flex-direction: column;
  }
}

.lp-illustrator-block__name {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
}

@media (min-width: 821px) {
  .lp-illustrator-block__name {
    font-size: 24px;
    line-height: 2;
  }
}

.lp-illustrator-block__role {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.448;
}

.lp-illustrator-block__bio {
  margin-top: 20px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.448;
}

@media (min-width: 821px) {
  .lp-illustrator-block__bio {
    font-size: 16px;
  }
}

/* -------------------------------------------------
   section-about-tkmt
------------------------------------------------- */
.lp-section-about-tkmt {
  padding-block: 80px;
  background: var(--lp-color-mint);
  text-align: left;
}

@media (min-width: 821px) {
  .lp-section-about-tkmt {
    padding-block: 120px;
  }

  .lp-section-about-tkmt .lp-container {
    display: flex;
    align-items: center;
    gap: 80px;
  }
}

/* 311px（=375px時の値）を固定値にすると375pxより広い実機（390/393px等）で
   右側にだけ余白が余る。コンテナ幅いっぱいに追従させつつ、
   タブレット等の広めSP画面（〜820px）ではロゴが巨大化しないよう
   320pxで頭打ちにして中央寄せする（2026-07-13） */
.lp-section-about-tkmt__logo {
  width: 100%;
  max-width: 320px;
  margin: auto;
}

.lp-section-about-tkmt__content {
  margin-top: 40px;
}

@media (min-width: 821px) {
  .lp-section-about-tkmt__logo {
    width: 480px;
    /* SP用のmax-width:320pxを打ち消す（打ち消さないとwidth:480pxが320pxに頭打ちされる） */
    max-width: none;
    flex-shrink: 0;
    /* PCは横並びflexのためmargin:autoを打ち消す（余白を吸収してレイアウトが崩れるのを防ぐ） */
    margin: 0;
  }

  .lp-section-about-tkmt__content {
    flex: 1;
    min-width: 0;
    margin-top: 0;
  }
}

.lp-section-about-tkmt__heading {
  font-family: var(--lp-font-tkmt);
  /* tkmtフォントは400のみ。共通style.css（Tailwind preflight）はh2の
     font-weightをinheritにするため、疑似ボールド化しないよう明示する */
  font-weight: 400;
  letter-spacing: 0.025em;
  font-size: 64px;
  line-height: 1.2;
  color: var(--lp-color-primary);
}

@media (min-width: 821px) {
  .lp-section-about-tkmt__heading {
    font-size: 120px;
  }
}

.lp-section-about-tkmt__body {
  margin-top: 24px;
  font-weight: 700;
  font-size: 16px;
  color: var(--lp-color-primary);
}

@media (min-width: 821px) {
  .lp-section-about-tkmt__body {
    margin-top: 20px;
    font-size: 24px;
  }
}

.lp-section-about-tkmt__cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

@media (min-width: 821px) {
  .lp-section-about-tkmt__cta {
    margin-top: 20px;
  }
}

/* 2分割ボタン（左：アウトライン＋2行テキスト／右：塗りつぶし矢印タブ）。
   section-rice-menuの単色ピル型ボタン（.lp-button）とは別コンポーネント。 */
.lp-cta-button {
  display: inline-flex;
  align-items: stretch;
  width: 240px;
  height: 78px;
}

.lp-cta-button__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 0 0 185px;
  gap: 2px;
  border: 1px solid var(--lp-color-primary);
  padding-left: 13px;
}

.lp-cta-button__label-en {
  font-family: var(--lp-font-tkmt);
  letter-spacing: 0.025em;
  font-weight: 400;
  font-size: 41px;
  line-height: 1;
  color: var(--lp-color-primary);
}

.lp-cta-button__label-ja {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", var(--lp-font-sans);
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  color: var(--lp-color-primary);
}

.lp-cta-button__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 55px;
  background: var(--lp-color-primary);
}

.lp-cta-button__arrow svg {
  width: 14px;
  height: 14px;
}

/* -------------------------------------------------
   section-store-details
   テキストはすべてセンター揃え。装飾ロゴは左下に絶対配置し
   写真・地図の背面に回り込む（NOTES.md フィードバック反映）。
------------------------------------------------- */
.lp-section-store-details {
  position: relative;
  padding-block: 80px 120px;
  overflow: hidden;
}

@media (min-width: 821px) {
  .lp-section-store-details {
    padding-block: 120px;
  }
}

.lp-store-details__logo {
  position: absolute;
  left: -50px;
  bottom: -70px;
  z-index: 0;
  width: 300px;
  pointer-events: none;
}

@media (min-width: 821px) {
  .lp-store-details__logo {
    left: 0;
    bottom: -70px;
    width: 640px;
  }
}

.lp-store-details__logo img {
  width: 100%;
  height: auto;
}

.lp-store-details__content {
  position: relative;
  z-index: 1;
  /* 311px固定だと375pxより広いSP/タブレットで頭打ちになるため、
     lp-containerと同じ「画面幅-64px（左右32pxずつ）」で追従させる（2026-07-13） */
  max-width: calc(100% - 64px);
  margin-inline: auto;
  text-align: center;
}

@media (min-width: 821px) {
  .lp-store-details__content {
    max-width: 752px;
  }
}

.lp-section-store-details__title {
  font-family: var(--lp-font-serif);
  font-weight: 600;
  font-size: 28px;
}

@media (min-width: 821px) {
  .lp-section-store-details__title {
    font-size: 52px;
  }
}

.lp-store-details__exterior {
  margin-top: 43px;
  aspect-ratio: 311 / 181;
  overflow: hidden;
}

.lp-store-details__exterior img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 821px) {
  .lp-store-details__exterior {
    margin-top: 44px;
    aspect-ratio: 752 / 436;
  }
}

.lp-store-details__name {
  margin-top: 40px;
  font-weight: 700;
  font-size: 24px;
}

@media (min-width: 821px) {
  .lp-store-details__name {
    margin-top: 48px;
  }
}

.lp-store-details__address {
  margin-top: 20px;
  font-weight: 700;
  font-size: 16px;
}

@media (min-width: 821px) {
  .lp-store-details__address {
    margin-top: 21px;
  }
}

.lp-store-details__hours {
  margin-top: 8px;
  font-weight: 700;
  font-size: 16px;
}

.lp-store-details__map {
  /* SPでは画面幅いっぱい（Figma実測値どおり、コンテンツ余白から外に出す） */
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  margin-top: 40px;
  aspect-ratio: 375 / 250;
  overflow: hidden;
}

@media (min-width: 821px) {
  .lp-store-details__map {
    /* PCではコンテンツ幅に合わせる（フルブリードにしない） */
    width: 100%;
    margin-inline: 0;
    margin-top: 48px;
    aspect-ratio: 752 / 250;
  }
}

.lp-store-details__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* -------------------------------------------------
   PDFメニューモーダル（NOTES.md 5.5）
------------------------------------------------- */
.lp-pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(0 0 0 / 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lp-pdf-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lp-pdf-modal__body {
  position: absolute;
  inset: 56px 16px 16px;
  background: var(--lp-color-white);
  border-radius: 8px;
  overflow: hidden;
}

@media (min-width: 821px) {
  .lp-pdf-modal__body {
    inset: 80px 60px 40px;
    /* PDFページの最大幅（.lp-pdf-modal__page の900px）+ 左右padding（12px×2）で
       頭打ちにし、ワイド画面でPDFの左右に大きな余白が出ないようにする。
       left/right指定 + max-width + margin autoの組み合わせで中央寄せになる */
    max-width: 924px;
    margin-inline: auto;
  }
}

/* PDF.jsで描画したページ（canvas）を縦に並べてスクロールさせる */
.lp-pdf-modal__pages {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #efece6;
}

.lp-pdf-modal__pages.is-loading::before {
  content: "メニューを読み込んでいます…";
  margin-top: 40px;
  font-size: 14px;
  color: var(--lp-color-text);
}

.lp-pdf-modal__page {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  background: var(--lp-color-white);
  box-shadow: 0 2px 12px rgb(0 0 0 / 12%);
}

.lp-pdf-modal__close {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 61;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--lp-color-white);
}

@media (min-width: 821px) {
  .lp-pdf-modal__close {
    /* モーダル本体（inset上80px・max-width:924pxで中央寄せ）の右上角に
       半分重ねる（ボタン中心＝角）。モーダル右端の式
       max(60px, (100% - 924px) / 2) からボタン半径22pxぶん外へ出し、
       top はモーダル上端80pxから半径ぶん上げる */
    top: 58px;
    right: calc(max(60px, (100% - 924px) / 2) - 22px);
    width: 44px;
    height: 44px;
  }
}

.lp-pdf-modal__close span {
  position: absolute;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--lp-color-header);
}

@media (min-width: 821px) {
  .lp-pdf-modal__close span {
    width: 22px;
    height: 4px;
  }
}

.lp-pdf-modal__close span:nth-child(1) {
  transform: rotate(45deg);
}

.lp-pdf-modal__close span:nth-child(2) {
  transform: rotate(-45deg);
}

/* -------------------------------------------------
   loading（ローディングイントロ / NOTES.md 5.9）
   Figmaのloading-01〜07プロトタイプフローを再現:
   ロゴ中央表示 → ロゴが上へ移動 → 店名ワードマークが下にフェードイン
   → 全て消えて白 → 白が消えてオレンジ背景（実ページ）が現れる
   → マスク＋ヘッダーがフェードイン → ヒーローのロゴ・店名がフェードイン。
   後半の段階表示は実ページ側の要素をhtml.lp-intro配下で透明にして順に戻す。
   数値はFigma実測（1440フレーム: ロゴ727.675px・店名660.095px・
   ロゴ上移動53px・店名センターは中央+127.14px）をロゴ幅比で相対化。
------------------------------------------------- */
/* イントロ中のスクロールロックは必ずbody側に付けること。
   html（ルート）にoverflow:hiddenを付けると、WebKitでは解除後も
   position:stickyが恒久的に効かなくなるバグがある（実測で確認済み。
   強制リフローでも復旧しない）。body側ならハンバーガーメニューの
   ロックと同様に安全で、解除後もstickyのpinが正常に動く。 */
html.lp-intro body {
  overflow: hidden;
}

/* ロゴ・店名のサイズ: SPはローディング後のヒーロー実寸に合わせ、
   イントロ終了時にヒーローのロゴ・店名と同じ大きさで繋がるようにする
   （.lp-section-heroのSP用--lp-hero-scaleと同一のスケール式 × ヒーローと同じ基準値）。
   PCはFigmaのloadingフレーム実測（727.675px / 660.095px）。 */
.lp-loading {
  --lp-loading-scale: min(
    calc((100svh - 51px) / 335),
    calc((100vw - 32px) / 343)
  );
  --lp-loading-logo-w: calc(255.359 * var(--lp-loading-scale));
  --lp-loading-name-w: calc(216.198 * var(--lp-loading-scale));

  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: var(--lp-color-white);
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

@media (min-width: 821px) {
  .lp-loading {
    --lp-loading-logo-w: 727.675px;
    --lp-loading-name-w: 660.095px;
  }
}

html.lp-intro .lp-loading {
  display: block;
}

.lp-loading__logo,
.lp-loading__storename {
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0;
  /* transformは軽いオーバーシュート付き（ポップな登場・移動感） */
  transition:
    opacity 0.35s ease-out,
    transform 0.55s cubic-bezier(0.34, 1.5, 0.64, 1);
}

/* ロゴは少し縮んだ状態から「ぽんっ」とポップイン */
.lp-loading__logo {
  width: var(--lp-loading-logo-w);
  transform: translate(-50%, -50%) scale(0.85);
}

/* 店名の縦位置はloading-04実測（ロゴ下端+14px、センター= 画面中央+87px）をロゴ幅比で相対化。
   登場時は移動なし・その場でフェードイン */
.lp-loading__storename {
  width: var(--lp-loading-name-w);
  transform: translate(-50%, calc(-50% + var(--lp-loading-logo-w) * 0.1196));
}

.lp-loading.is-logo .lp-loading__logo {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.lp-loading.is-spread .lp-loading__logo {
  transform: translate(-50%, calc(-50% - var(--lp-loading-logo-w) * 0.0728)) scale(1);
}

.lp-loading.is-brand .lp-loading__storename {
  opacity: 1;
  transform: translate(-50%, calc(-50% + var(--lp-loading-logo-w) * 0.1196));
}

.lp-loading.is-blank .lp-loading__logo,
.lp-loading.is-blank .lp-loading__storename {
  opacity: 0;
}

/* loading-05→06: オレンジの帯が上下に広がる。
   最終形は画面全体ではなく「ローディング後のヒーローのオレンジ領域」
   （上端0〜白帯の上端まで）。下端位置はJSがイントロ開始時に実ページの
   .lp-section-hero__bg-whiteの位置を実測して--lp-loading-orange-bottomに入れる。
   開始位置は画面の中心ではなく「最終形のオレンジ領域の中心」にする
   （SPはオレンジ領域が画面上部のみのため、画面中心スタートだと
   下から上へ広がっているように見えてしまう）。 */
.lp-loading__orange {
  position: absolute;
  inset: 0;
  background: var(--lp-color-primary);
  clip-path: inset(
    calc(var(--lp-loading-orange-bottom, 100vh) / 2)
    0
    calc(100% - var(--lp-loading-orange-bottom, 100vh) / 2)
  );
  transition: clip-path 0.5s ease-out;
}

.lp-loading.is-orange .lp-loading__orange {
  clip-path: inset(0 0 calc(100% - var(--lp-loading-orange-bottom, 100vh)) 0);
}

.lp-loading.is-reveal {
  opacity: 0;
  pointer-events: none;
}

/* イントロ中は実ページ側のヒーロー構成要素を透明で待機させ、
   lp-intro-mask（マスク＋ヘッダー、フェードイン）→
   lp-intro-brand（ヒーロー下部のロゴ・店名＋以降のセクション、フェードアップ）の順に戻す。
   ヒーロー以外のセクションも透明にしておき（SPはヒーローが短く、
   イントロ中にsection-lead以降が見えてしまうため）、__bottomと同時に表示する。 */
/* ヘッダー（共通header.phpのbody直下のheader要素）は上からスライドイン、
   TKMTマスクは少し大きい状態から「ドンッ」と据わる */
html.lp-intro body > header {
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.4s ease-out, transform 0.45s ease-out;
}

html.lp-intro .lp-section-hero__mask {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.4s ease-out, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

html.lp-intro.lp-intro-mask body > header {
  opacity: 1;
  transform: none;
}

html.lp-intro.lp-intro-mask .lp-section-hero__mask {
  opacity: 1;
  transform: none;
}

html.lp-intro .lp-section-hero__bottom,
html.lp-intro main > section:not(.lp-section-hero),
html.lp-intro body > footer {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease-out, transform 0.5s ease-out;
}

/* ヒーロー下部（ロゴ・店名）は移動なし・その場でフェードイン。
   SPはイントロ中にsection-leadも見えているため同じく移動なしにする
   （PCのsection-leadは従来どおりフェードアップ） */
html.lp-intro .lp-section-hero__bottom,
html.lp-intro main > section.lp-section-lead {
  transform: none;
}

@media (min-width: 821px) {
  html.lp-intro main > section.lp-section-lead {
    transform: translateY(24px);
  }
}

html.lp-intro.lp-intro-brand .lp-section-hero__bottom,
html.lp-intro.lp-intro-brand main > section:not(.lp-section-hero),
html.lp-intro.lp-intro-brand body > footer {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------
   スクロール出現・遊び心アニメーション
------------------------------------------------- */
/* menu-intro内の食べ物アイコンのランダム揺れ（NOTES.md 5.3）。
   JSがランダムな間隔でis-wiggleを付け、animationendで外す */
.lp-section-menu-intro__heading img.is-wiggle {
  animation: lp-icon-wiggle 0.45s ease-in-out;
}

@keyframes lp-icon-wiggle {
  0% {
    transform: rotate(0deg) scale(1);
  }

  30% {
    transform: rotate(-7deg) scale(1.08);
  }

  60% {
    transform: rotate(5deg) scale(1.04);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

/* -------------------------------------------------
   横スクロール（定食）SPブラッシュアップ
   下部の進捗表示は線状のプログレスバー。ドット（横スワイプできそう）や
   矢印・数字（押せそう）と違い、線は純粋な状態表示として読まれるため
   誤操作を誘わない。スクロールに合わせて連続的に満ちる。
   PCは承認済みの見た目のためSP限定。
------------------------------------------------- */
.lp-horizontal-scroll__progress {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 148px;
  height: 3px;
  border-radius: 999px;
  background: rgb(235 92 1 / 18%);
  overflow: hidden;
}

.lp-horizontal-scroll__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--lp-color-primary);
  transform: scaleX(0);
  transform-origin: left center;
}

@media (min-width: 821px) {
  .lp-horizontal-scroll__progress {
    display: none;
  }
}
