/* 星カフェSPICA トップページ（新LP）専用。index.html だけが読み込む（style.css とは併用しない）。
   クラス名は lp- 接頭辞。デザインは D2 ベースの LP 全体試作から移植。
   固定ヘッダーとメニューは全ページ共通の site-header.css（sh- 接頭辞）に移した。index.html では site-header.css の後に読み込む。 */
/* ================= トークン ================= */
:root {
  --bg: #000;
  --bg-2: #0b0b0f;
  --ink: #f4f1ea;
  --ink-sub: rgba(244, 241, 234, .78);
  --ink-mute: rgba(244, 241, 234, .62);
  --gold: #f2c14e;
  --gold-ink: #1a1408;
  --line: rgba(244, 241, 234, .18);
  --hdr: 52px;
  --sh-h: var(--hdr);   /* 共通ヘッダー（site-header.css）の高さ。.lp-xshort では 48px になる */
  --gutter: 20px;
  --vh: 100vh;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --gothic: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}
@supports (height: 100svh) { :root { --vh: 100svh; } }
/* 画面の高さによる切り替え（.lp-short = 700px以下、.lp-xshort = 580px以下）は、index.html の head 内のスクリプトが
   読み込み時の高さで <html> に付ける。FVの高さ --fvh も同じスクリプトが固定する。
   Instagram などのアプリ内ブラウザでは操作バーの出入りで表示領域の高さが変わり、100svh や max-height の
   メディアクエリもそれに合わせて変わるため、スクロール中にFVのレイアウトが切り替わらないよう高さ基準を固定している。
   :where() で詳細度を上げず、従来のメディアクエリと同じ優先順位（後に書いたPC用の指定が勝つ）を保つ
   （--hdr だけは :root の値を上書きするため :root と同じ詳細度にする）。 */
:root.lp-xshort { --hdr: 48px; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-padding-top: calc(var(--hdr) + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--gothic); font-size: 15px; line-height: 1.8;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
/* 段落の最終行が極端に短くならないように（対応ブラウザのみ。非対応でも表示は崩れない） */
p, dd, li { text-wrap: pretty; }
a { color: inherit; }
ul, ol { list-style: none; }

/* 共通の部品 */
.lp-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .26em; color: var(--gold);
}
.lp-label b { font-weight: 400; font-family: var(--mincho); font-size: 13px; letter-spacing: .08em; }
.lp-label::after { content: ""; width: 32px; height: 1px; background: rgba(242,193,78,.5); }
.lp-h2 {
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(25px, 7vw, 34px); line-height: 1.55; letter-spacing: .08em;
}
.lp-h2 span { display: block; }
.lp-text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 14px; letter-spacing: .08em; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.lp-text-link::after { content: "›"; color: var(--gold); font-size: 16px; }
.lp-note { font-size: 12.5px; line-height: 1.7; color: var(--ink-mute); }

/* 予約ボタン（トレタへの通常のリンク） */
.lp-cta {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; border-radius: 12px;
  background: var(--gold); color: var(--gold-ink); text-decoration: none;
  font-size: 17px; font-weight: 700; letter-spacing: .06em;
}


/* ================= 固定ヘッダー・メニュー ================= */
/* 本体は site-header.css。ここにはトップページだけの指定を置く */
.lp-brand { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 44px; margin-right: auto; text-decoration: none; }
.lp-brand img { height: 34px; width: auto; flex: none; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.lp-brand-name { font-size: 16px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.lp-cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
:where(.lp-xshort) .lp-brand img, :where(.lp-xshort) .sh-brand img { height: 30px; }
:where(.lp-xshort) .lp-brand-name, :where(.lp-xshort) .sh-brand-name { font-size: 15px; }
@media (max-width: 359px) { .lp-brand-name { display: none; } }

/* ================= 01 ファーストビュー（D2） ================= */
.lp-fv {
  position: relative; isolation: isolate;
  height: var(--fvh, var(--vh)); min-height: 520px;
  padding-top: calc(var(--hdr) + env(safe-area-inset-top, 0px));
  display: flex; flex-direction: column; align-items: center; text-align: center;
  overflow: hidden;
}
.lp-fv-photo {
  position: absolute; top: 0; left: 0; right: 0; height: 82%; z-index: -2;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.lp-fv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.lp-fv-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.55) 0, rgba(0,0,0,0) 96px),
    radial-gradient(115% 22% at 50% 17%, rgba(0,0,0,.66) 0, rgba(0,0,0,.34) 55%, rgba(0,0,0,0) 100%),
    linear-gradient(to top, #000 0, #000 18%, rgba(0,0,0,.75) 26%, rgba(0,0,0,0) 36%);
}
.lp-fv-copy { margin-top: clamp(20px, calc(var(--fvh, 100vh) * .04), 40px); padding: 0 var(--gutter); }
.lp-fv h1 {
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(25px, 7.4vw, 29px); line-height: 1.65; letter-spacing: .12em; margin-right: -.12em;
  text-shadow: 0 0 16px rgba(0,0,0,.85), 0 1px 3px rgba(0,0,0,.9);
}
.lp-fv h1 span { display: block; }
/* 「星を見て」「帰りませんか」は語の途中で折り返さない（入りきらない幅では「星を見て／帰りませんか」の3行になる） */
.lp-fv h1 .lp-nw { display: inline-block; }
.lp-fv-gap { flex: 1; }
/* 下の余白は固定値。env(safe-area-inset-bottom) を足すと、Instagram のアプリ内ブラウザで下部バーが消えた瞬間に
   値が変わり（0 → 約34px）、業態説明と予約ボタンが動くため使わない */
.lp-fv-panel { width: 100%; padding: 0 var(--gutter) 14px; }
.lp-fv-kind {
  font-size: clamp(19px, 5.4vw, 21px); font-weight: 700; line-height: 1.45; letter-spacing: .05em;
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
}
.lp-fv-kind span { display: block; }
.lp-fv-meta { margin-top: 8px; font-size: 13px; letter-spacing: .1em; color: var(--ink-sub); }
.lp-fv-meta .lp-sep { margin: 0 .7em; color: rgba(242,193,78,.7); }
.lp-fv .lp-cta { margin-top: 16px; box-shadow: 0 6px 24px rgba(242,193,78,.2); }
.lp-fv-next {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; margin-top: 2px;
  font-size: 12px; letter-spacing: .18em; color: var(--ink-sub); text-decoration: none;
}
.lp-fv-next::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
/* 低い画面（読み込み時の高さ700px以下／580px以下）。従来の @media (max-height) と同じ内容 */
:where(.lp-short) .lp-fv-copy { margin-top: 12px; }
:where(.lp-short) .lp-fv h1 { font-size: clamp(23px, 6.5vw, 25px); line-height: 1.55; }
:where(.lp-short) .lp-fv .lp-cta { margin-top: 12px; min-height: 52px; }
:where(.lp-short) .lp-fv-next { display: none; }
:where(.lp-xshort) .lp-fv-copy { margin-top: 8px; }
:where(.lp-xshort) .lp-fv h1 { font-size: 22px; letter-spacing: .1em; margin-right: -.1em; line-height: 1.55; }
:where(.lp-xshort) .lp-fv-kind { font-size: 18px; }
:where(.lp-xshort) .lp-fv-meta { margin-top: 6px; font-size: 12px; }
:where(.lp-xshort) .lp-fv-panel { padding-bottom: 12px; }

/* ================= 02 星空体験：余白の大きい見出し → 全幅写真 → 大きな数字 ================= */
.lp-show { padding: 72px 0 80px; text-align: center; }
.lp-show .lp-label { justify-content: center; }
.lp-show .lp-label::before { content: ""; width: 32px; height: 1px; background: rgba(242,193,78,.5); }
.lp-show .lp-h2 { margin-top: 22px; padding: 0 var(--gutter); }
.lp-show-lead { margin: 18px auto 0; padding: 0 var(--gutter); max-width: 30em; font-size: 15px; color: var(--ink-sub); }
/* 説明文：スマホは自然に折り返し、語の途中（エンターテインメント・詳しくなくても）や語尾（楽しめます。）だけでは切らない。PCでは意味のまとまりで3行にする */
.lp-show-lead .lp-nw { display: inline-block; }
.lp-show-photo { margin-top: 40px; }
.lp-show-photo img { width: 100%; aspect-ratio: 2661 / 3510; object-fit: cover; }
.lp-show-times { margin-top: 36px; padding: 0 var(--gutter); }
.lp-show-times .lp-when { font-size: 12px; letter-spacing: .24em; color: var(--ink-sub); }
.lp-show-times .lp-nums {
  margin-top: 6px; display: flex; justify-content: center; align-items: baseline; gap: 18px;
  font-family: var(--mincho); font-size: clamp(40px, 12vw, 56px); line-height: 1.2; letter-spacing: .04em; font-weight: 500;
}
.lp-show-times .lp-nums i { font-style: normal; font-size: .45em; color: var(--gold); }
.lp-show-note { margin-top: 14px; font-size: 14px; color: var(--ink-sub); }
/* 長い語（エンターテインメント）の途中で折り返さない */
.lp-h2 .lp-nw { display: inline-block; }

/* ================= 03 カフェバー：左揃え・同じ大きさの写真2枚 ================= */
.lp-cafe { padding: 56px 0 72px; background: linear-gradient(to bottom, #000 0, var(--bg-2) 30%, var(--bg-2) 70%, #000 100%); }
.lp-cafe-head { padding: 0 var(--gutter); }
.lp-cafe .lp-h2 { margin-top: 18px; }
.lp-cafe-pair {
  margin-top: 32px; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start;
}
.lp-cafe-pair img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.lp-cafe-pair figcaption { margin-top: 8px; font-size: 12px; letter-spacing: .16em; color: var(--ink-sub); }
.lp-cafe-pair figcaption b { color: var(--ink); font-weight: 700; letter-spacing: .08em; }
.lp-cafe-text { margin-top: 26px; padding: 0 var(--gutter); max-width: 34em; font-size: 15px; color: var(--ink-sub); }
.lp-cafe-text p + p { margin-top: 10px; }
/* 文節のまとまりで折り返す（「カクテ／ルを。」のような語の途中の改行を防ぐ） */
.lp-cafe-text .lp-ph { display: inline-block; }
.lp-cafe-text .lp-text-link { margin-top: 10px; }

/* ================= 04 屋上の天体観望：横長写真 → 文章 → 天候の案内 ================= */
.lp-roof { padding: 72px 0 72px; }
.lp-roof-head { padding: 0 var(--gutter); }
.lp-roof .lp-h2 { margin-top: 18px; }
.lp-roof-photo { margin-top: 30px; }
.lp-roof-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lp-roof-body { margin-top: 26px; padding: 0 var(--gutter); }
.lp-roof-body p { font-size: 15px; color: var(--ink-sub); }
/* 04説明文：文節ごとに区切り、語の途中（しま／す。・天／体）では折り返さない。どの画面幅でも文節の切れ目で自然に改行し、
   文末は「何度来ても楽しめます。」をひとまとまりにして、語尾だけが1行に残らないようにする */
.lp-roof-lead .lp-nw { display: inline-block; }
.lp-roof-h3 { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mincho); font-size: 19px; font-weight: 600; line-height: 1.5; letter-spacing: .08em; color: var(--ink); }
.lp-roof-h3 + p { margin-top: 8px; }
/* 観測記録へのリンク：予約ボタンより控えめな文字リンク */
.lp-roof-link { margin-top: 14px; font-size: 13.5px; color: var(--ink-sub); border-bottom: none; }

/* ================= 05 ご利用案内・予約：文字中心・罫線のみ ================= */
.lp-guide { padding: 72px var(--gutter) 64px; background: var(--bg-2); border-top: 1px solid rgba(255,255,255,.06); }
.lp-guide .lp-h2 { margin-top: 18px; }
.lp-guide-h3 { margin-top: 28px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--gold); }
.lp-guide-hours { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.lp-guide-hours b { font-size: 20px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.lp-guide-hours span { font-size: 14px; color: var(--ink-sub); }
.lp-guide-text { margin-top: 14px; font-size: 14px; line-height: 1.75; color: var(--ink-sub); }
.lp-guide-text p + p { margin-top: 8px; }
.lp-guide-access { margin-top: 8px; }
.lp-guide-list { margin-top: 8px; border-top: 1px solid var(--line); }
.lp-guide-list li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.lp-sessions { margin-top: 10px; display: grid; gap: 10px; }
.lp-session {
  display: grid; grid-template-columns: 3.2em 1fr; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
}
.lp-session .lp-tag { font-size: 12px; letter-spacing: .14em; color: var(--gold); }
.lp-session .lp-row { display: grid; grid-template-columns: 4.6em 1fr; align-items: baseline; gap: 2px 10px; }
.lp-session .lp-row span { font-size: 13px; color: var(--ink-sub); }
.lp-session .lp-row b { font-size: 17px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.lp-guide .lp-cta { margin-top: 26px; }
.lp-guide-links { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.lp-guide-links a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 14px; text-decoration: none; }
.lp-guide-links a::after { content: "›"; color: var(--ink-mute); }

/* ================= お知らせ・イベント（予約の後ろ） ================= */
.lp-news { padding: 56px var(--gutter) 48px; }
.lp-news h2 { font-size: 13px; letter-spacing: .2em; color: var(--ink-sub); font-weight: 700; }
.lp-news-list { margin-top: 10px; border-top: 1px solid var(--line); }
.lp-news-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.7; }
.lp-news-list a { display: block; min-height: 48px; text-decoration: none; }
.lp-news-list .lp-kicker { display: block; font-size: 12px; letter-spacing: .1em; color: var(--ink-mute); }
.lp-event { margin-top: 36px; border: 1px solid rgba(242,193,78,.35); border-radius: 14px; overflow: hidden; }
.lp-event-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px 0; }
.lp-event-tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; padding: 3px 8px; border-radius: 4px; background: rgba(242,193,78,.16); color: var(--gold); }
.lp-event-sep { font-size: 12px; color: var(--ink-sub); }
.lp-event img { margin-top: 12px; width: 100%; aspect-ratio: 1920 / 800; object-fit: cover; }
.lp-event-body { padding: 12px 14px 14px; }
.lp-event-body h3 { font-size: 16px; line-height: 1.5; }
.lp-event-body dl { margin-top: 8px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 13px; color: var(--ink-sub); }
.lp-event-body dt { color: var(--ink-mute); }
.lp-event-body .lp-text-link { margin-top: 6px; }

/* ================= フッター ================= */
.lp-ftr { padding: 40px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 32px); border-top: 1px solid rgba(255,255,255,.08); text-align: center; }
.lp-ftr .lp-brand { justify-content: center; margin: 0; }
.lp-ftr address { margin-top: 12px; font-style: normal; font-size: 12.5px; line-height: 1.7; color: var(--ink-sub); }
.lp-ftr .lp-sns { margin-top: 14px; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 4px; }
.lp-ftr .lp-sns a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px; font-size: 13px; text-decoration: none; color: var(--ink-sub); }
.lp-ftr .lp-small { margin-top: 6px; font-size: 12px; color: var(--ink-mute); }
.lp-ftr .lp-small a { display: inline-flex; align-items: center; min-height: 44px; }

/* ================= PC（900px以上）：同じ構造を2カラムに広げる ================= */
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  body { font-size: 16px; }

  /* FV：右に縦長の写真、左に文字。縦長写真を横長に無理に切らない */
  .lp-fv { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto 1fr; text-align: left; align-items: center; }
  .lp-fv-photo { left: 50%; height: 100%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%); mask-image: linear-gradient(to right, transparent 0, #000 16%); }
  .lp-fv-shade { background: radial-gradient(60% 50% at 75% 50%, rgba(0,0,0,0) 40%, rgba(0,0,0,.25) 100%); }
  /* 右の余白を16pxにして、1440px以上でも「星を見て帰りませんか」が1行に入るようにする（文字の位置・大きさは変えない） */
  .lp-fv-copy { grid-column: 1; grid-row: 2; margin: 0; padding: 0 16px 0 max(56px, calc(50vw - 520px)); }
  .lp-fv h1 { font-size: clamp(34px, 3.2vw, 44px); margin-right: 0; text-shadow: none; }
  .lp-fv-gap { display: none; }
  .lp-fv-panel { grid-column: 1; grid-row: 3; align-self: start; padding: 28px 40px 0 max(56px, calc(50vw - 520px)); max-width: calc(50vw); }
  .lp-fv-kind { font-size: 22px; }
  .lp-fv-kind span { display: inline; }
  .lp-fv .lp-cta { max-width: 360px; }
  .lp-fv-next { justify-content: flex-start; }

  .lp-show { padding: 120px 0; }
  .lp-show-lead .lp-ln { display: block; }
  .lp-show-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; max-width: 1120px; margin: 56px auto 0; padding: 0 var(--gutter); text-align: left; }
  .lp-show-photo { margin: 0; }
  .lp-show-times { padding: 0; margin: 0; }
  .lp-show-times .lp-nums { justify-content: flex-start; }

  .lp-cafe { padding: 112px 0; }
  .lp-cafe-head, .lp-cafe-text { max-width: 1120px; margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
  .lp-cafe-text { font-size: 16px; }
  .lp-cafe-pair { max-width: 960px; margin: 40px auto 0; padding: 0 var(--gutter); gap: 24px; }

  .lp-roof { padding: 112px 0; }
  .lp-roof-head, .lp-roof-body { max-width: 1120px; margin-left: auto; margin-right: auto; }
  .lp-roof-photo { max-width: 1120px; margin: 36px auto 0; padding: 0 var(--gutter); }
  .lp-roof-body p { max-width: 40em; }

  .lp-guide { padding: 112px var(--gutter); }
  .lp-guide-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
  .lp-news, .lp-ftr-inner { max-width: 1120px; margin: 0 auto; }
  .lp-news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .lp-event { margin-top: 0; }
}
