/* CHIENOWA LP v2 共通の土台（2026-10-01）
   4ページ（hbm / advisory / media / youtube）で共有する色・書体・ボタン・見出し・紙の質感。
   ページ固有の構図は lp2-<id>.css に書く。このファイルはオーケストレーターが管理する。 */

body[data-lp2] {
  --lp2-paper: #f4f3ec;
  --lp2-paper-deep: #ebe9dd;
  --lp2-ink: #0f2e2a;
  --lp2-text: #1f3a36;
  --lp2-muted: #5b6d68;
  --lp2-lime: #c9d300;
  --lp2-lime-soft: #eef1b8;
  --lp2-teal: #2a8c8c;
  --lp2-teal-deep: #1d6466;
  --lp2-teal-soft: #d8ebe8;
  --lp2-orange: #e8622a;
  --lp2-orange-deep: #c94d1a;
  --lp2-line: #d5d8cb;
  --lp2-radius: 14px;
  --lp2-max: 1200px;
  --lp2-font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  --lp2-num: "Noto Sans JP", "Arial Black", sans-serif;
  background: var(--lp2-paper);
  color: var(--lp2-text);
  font-family: var(--lp2-font);
  font-size: 17px;
  line-height: 1.8;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

/* 装飾レイヤーが画面外へ出ても横スクロールを出さない（clip は sticky ヘッダーを壊さない） */
html:has(body[data-lp2]), body[data-lp2] { overflow-x: clip; }

/* 紙の擦れ（ごく薄いノイズ）。全区間で共用 */
body[data-lp2]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06  0 0 0 0 0.18  0 0 0 0 0.16  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body[data-lp2] main, body[data-lp2] .site-footer { position: relative; z-index: 1; }
/* 固定ヘッダーは本文の装飾レイヤーより必ず上（ロゴ・ナビ・CTAが隠れないように） */
body[data-lp2] .site-header { z-index: 40; }
body[data-lp2] .preview-note { position: relative; z-index: 41; }

/* 共通 shell（ヘッダー・フッター）を LP の紙色に合わせる */
body[data-lp2] .site-header { background: rgba(244, 243, 236, .94); border-bottom: 1px solid var(--lp2-line); backdrop-filter: blur(6px); position: sticky; top: 0; }
body[data-lp2] .brand-wordmark { height: 30px; width: auto; }
body[data-lp2] .nav a { color: var(--lp2-ink); font-weight: 700; }
/* ヘッダーの予約ボタンは4ページ共通でオレンジ（CTA＝オレンジの原則） */
body[data-lp2] .nav .lp2-nav-cta { background: var(--lp2-orange); color: #fff; border-radius: 999px; padding: 10px 22px; font-weight: 800; box-shadow: 0 3px 0 var(--lp2-orange-deep); }
body[data-lp2] .nav .lp2-nav-cta:hover { background: var(--lp2-orange-deep); color: #fff; text-decoration: none; }
body[data-lp2] .nav a[aria-current="page"] { color: var(--lp2-teal-deep); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--lp2-lime); text-underline-offset: 8px; }
@media (max-width: 767px) { body[data-lp2] .nav .lp2-nav-cta { display: none; } }
body[data-lp2] .site-footer { background: var(--lp2-ink); color: #e9efe9; }
body[data-lp2] .site-footer a { color: #fff; }

/* レイアウト */
.lp2-wrap { width: min(var(--lp2-max), calc(100% - 48px)); margin-inline: auto; }
.lp2-section { position: relative; padding: clamp(56px, 7vw, 104px) 0; overflow: hidden; }
.lp2-layer { position: absolute; pointer-events: none; user-select: none; }
.lp2-layer img, img.lp2-layer { display: block; width: 100%; height: auto; }

/* 見出し */
.lp2-label { display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--lp2-teal); padding: 6px 16px; border-radius: 999px; }
.lp2-label--lime { color: var(--lp2-ink); background: var(--lp2-lime); border-radius: 4px; }
.lp2-h1 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.28; font-weight: 900; color: var(--lp2-ink); letter-spacing: -.01em; margin: 18px 0; word-break: auto-phrase; }
.lp2-h2 { font-size: clamp(26px, 3.1vw, 42px); line-height: 1.35; font-weight: 900; color: var(--lp2-ink); margin: 0 0 28px; word-break: auto-phrase; }
.lp2-h3 { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; font-weight: 800; color: var(--lp2-ink); margin: 0 0 10px; }
.lp2-lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.9; color: var(--lp2-text); max-width: 38em; }
.lp2-note { font-size: 13px; color: var(--lp2-muted); line-height: 1.7; }
.lp2-marker { background: linear-gradient(transparent 62%, var(--lp2-lime) 62%, var(--lp2-lime) 92%, transparent 92%); padding: 0 .08em; }
.lp2-num { font-family: var(--lp2-num); font-weight: 900; color: var(--lp2-orange); letter-spacing: -.02em; line-height: 1; }

/* 帯（黄緑の強調帯・墨の帯） */
.lp2-band { background: var(--lp2-lime); color: var(--lp2-ink); font-weight: 900; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.4; text-align: center; padding: 26px 24px; border-radius: 6px; }
.lp2-band--ink { background: var(--lp2-ink); color: #fff; }

/* ボタン */
.lp2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 0 36px; border-radius: 999px; font-weight: 900; font-size: 18px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.lp2-btn::after { content: "›"; font-size: 1.3em; line-height: 1; }
.lp2-btn--cta { background: var(--lp2-orange); color: #fff; box-shadow: 0 6px 0 var(--lp2-orange-deep); }
.lp2-btn--cta:hover { background: var(--lp2-orange-deep); transform: translateY(2px); box-shadow: 0 4px 0 var(--lp2-orange-deep); color: #fff; }
.lp2-btn--ink { background: var(--lp2-ink); color: #fff; }
.lp2-btn--ghost { background: #fff; color: var(--lp2-ink); border: 2px solid var(--lp2-ink); }
.lp2-btn:focus-visible { outline: 3px solid var(--lp2-teal); outline-offset: 4px; }

/* カード・枠 */
.lp2-card { background: #fff; border: 1.5px solid var(--lp2-line); border-radius: var(--lp2-radius); padding: 24px; }
.lp2-card--teal { background: var(--lp2-teal-soft); border-color: #b9d8d3; }

/* FAQ（details） */
.lp2-faq details { background: #fff; border: 1.5px solid var(--lp2-teal); border-radius: 10px; margin: 0 0 12px; }
.lp2-faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 800; color: var(--lp2-ink); position: relative; }
.lp2-faq summary::-webkit-details-marker { display: none; }
.lp2-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--lp2-teal); color: #fff; display: grid; place-items: center; font-weight: 900; }
.lp2-faq details[open] summary::after { content: "−"; }
.lp2-faq details > div, .lp2-faq details > p { padding: 0 22px 20px; color: var(--lp2-text); }

/* イベント経由の特典帯（lp2-base.js が ?from=hbm のときだけ本文の先頭に入れる。固定しないので本文・固定CTAに重ならない） */
.lp2-offer { position: relative; z-index: 2; background: var(--lp2-lime); color: var(--lp2-ink); border-bottom: 3px solid var(--lp2-ink); }
.lp2-offer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 14px 0; }
.lp2-offer-text { min-width: 0; }
.lp2-offer-title { margin: 0; font-weight: 900; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.5; word-break: auto-phrase; }
.lp2-offer-detail { margin: 2px 0 0; font-size: clamp(14px, 1.2vw, 16px); line-height: 1.6; word-break: auto-phrase; }
.lp2-offer-detail strong { color: var(--lp2-orange-deep); font-weight: 900; font-size: 1.15em; }
.lp2-offer-cta { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--lp2-orange); color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: 0 3px 0 var(--lp2-orange-deep); }
.lp2-offer-cta:hover { background: var(--lp2-orange-deep); color: #fff; }
.lp2-offer-cta:focus-visible { outline: 3px solid var(--lp2-teal); outline-offset: 3px; }
@media (max-width: 767px) { .lp2-offer-cta { display: none; } }

/* スマホの固定CTA */
.lp2-fixed-cta { display: none; }
@media (max-width: 767px) {
  body[data-lp2] { font-size: 16px; padding-bottom: 84px; }
  .lp2-wrap { width: calc(100% - 32px); }
  .lp2-h1 { font-size: clamp(28px, 8vw, 36px); }
  .lp2-btn { min-height: 56px; font-size: 17px; padding: 0 24px; }
  .lp2-fixed-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(15, 46, 42, .96); }
  .lp2-fixed-cta .lp2-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .lp2-btn { transition: none; } }
