/* ============================================================
 * VATES Landing Site - 共通スタイル
 * 
 * 設計言語: EB Garamond × #1C2A4D × ミニマル
 * 既存 index.html (Coming Soon) の延長線上
 * 
 * 使用ページ:
 *   /index.html              LP (Coming Soon の発展)
 *   /pricing.html            価格表
 *   /legal/terms.html        利用規約
 *   /legal/privacy.html      プライバシーポリシー
 *   /legal/tokushoho.html    特定商取引法に基づく表記
 * ============================================================ */

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/EBGaramond-Latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0100-017F, U+0180-024F, U+1E00-1EFF, U+0259, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* EB Garamond Cyrillic — kk/ky 用。Cyrillic のみ unicode-range で振り分け。
   同一 family 名なので :lang() 不要（ブラウザがコードポイントで自動委譲＝az Latin と同型）。
   Latin/数字/日本語は既存スタックが出す。 */
@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/fonts/EBGaramond-Cyrillic.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF;
}

/* EB Garamond Greek — el 用。Greek(モノトニコ+ポリトニコ拡張)を unicode-range で振り分け。
   Cyrillic と同型: 同一 family 名・:lang() 不要・ブラウザがコードポイントで自動委譲。
   Octavio Pardo 原典から subset(328グリフ/19KB)。OS/2 usWeightClass=400=単値宣言(恒久ゲート遵守)。 */
@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/fonts/EBGaramond-Greek.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}


/* Amiri — 古典 Naskh（Bulaq Press 復刻）。Arabic / Perso-Arabic のみに適用。
   ラテン・数字は EB Garamond が出す（unicode-range で振り分け）。ar/fa 共用。 */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/amiri-v30-arabic-regular.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+2E41;
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/amiri-v30-arabic-700.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+2E41;
}

/* GHEA Mariam — アルメニア政府公式 serif（Ghabuzyan）。Armenian のみに適用。
   ラテン・数字は EB Garamond が出す(unicode-range 振り分け)。Armenian は LTR。
   フル配信(subset せず=改変回避でライセンス安全)。見出しは weight 上げず size で階層(偽ボールド回避)。 */
@font-face {
  font-family: 'Quivira';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Quivira-GeArm.woff2') format('woff2');
  unicode-range: U+0530-058F, U+FB13-FB17, U+10A0-10FF, U+2D00-2D2F;
}

/* RTL(ar/fa): 本文は Amiri(Arabic) + EB Garamond(Latin) のサンドイッチ。
   VATES ロゴ・英語ラベルは unicode-range で EB Garamond が守る。 */
[dir="rtl"] body,
[dir="rtl"] .lp-tab,
[dir="rtl"] .lp-signin,
[dir="rtl"] .lp-signup,
[dir="rtl"] .lp-lang-trigger,
[dir="rtl"] .lp-lang-option,
[dir="rtl"] .lp-foot-tab,
[dir="rtl"] .lp-feature-title h3,
[dir="rtl"] .lp-drawer-item,
[dir="rtl"] .lp-drawer-child,
[dir="rtl"] .lp-lang-name,
[dir="rtl"] .lp-lang-notice {
  font-family: 'Amiri', 'EB Garamond', Georgia, serif;
}

/* Armenian(hy): 本文は EB Garamond(Latin) + GHEA Mariam(Armenian) のサンドイッチ。
   VATES ロゴ・英語ラベルは unicode-range で EB Garamond が守る。
   見出しは weight 400 固定＝size/letter-spacing で階層(偽ボールド回避、Amharic と同型)。 */
:lang(hy) body,
:lang(hy) .lp-tab,
:lang(hy) .lp-signin,
:lang(hy) .lp-signup,
:lang(hy) .lp-lang-trigger,
:lang(hy) .lp-lang-option,
:lang(hy) .lp-foot-tab,
:lang(hy) .lp-feature-title h3,
:lang(hy) .lp-drawer-item,
:lang(hy) .lp-drawer-child,
:lang(hy) .lp-lang-name,
:lang(hy) .lp-lang-notice {
  font-family: 'EB Garamond', 'Quivira', Georgia, serif;
}
:lang(ka) body,
:lang(ka) .lp-tab,
:lang(ka) .lp-signin,
:lang(ka) .lp-signup,
:lang(ka) .lp-lang-trigger,
:lang(ka) .lp-lang-option,
:lang(ka) .lp-foot-tab,
:lang(ka) .lp-feature-title h3,
:lang(ka) .lp-drawer-item,
:lang(ka) .lp-drawer-child,
:lang(ka) .lp-lang-name,
:lang(ka) .lp-lang-notice {
  font-family: 'EB Garamond', 'Quivira', Georgia, serif;
}
/* 日本語(ja): 本文・UI とも明朝で統一。ヒラギノ(Apple)→游(Win/Mac)→Noto Serif JP(その他)。
   Latin/記号は EB Garamond が unicode-range で先取り。中韓 Noto は字形事故回避のため非混入(zh/ko 追加時に別 :lang() で)。 */
:lang(ja) body,
:lang(ja) .lp-tab,
:lang(ja) .lp-signin,
:lang(ja) .lp-signup,
:lang(ja) .lp-lang-trigger,
:lang(ja) .lp-lang-option,
:lang(ja) .lp-foot-tab,
:lang(ja) .lp-feature-title h3,
:lang(ja) .lp-feature-body,
:lang(ja) .lp-drawer-item,
:lang(ja) .lp-drawer-child,
:lang(ja) .lp-lang-name,
:lang(ja) .lp-lang-notice {
  font-family: 'EB Garamond', "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
}
:lang(hy) h1,
:lang(hy) h2,
:lang(hy) h3,
:lang(hy) h4 {
  font-weight: 400;
}

/* 言語ドロップダウンは全14言語名を常時同時表示する＝ページの lang に関係なく
   全スクリプトのフォントを font-family に載せる。unicode-range が各文字を正しい
   フェースへ振り分ける（Latin/Cyrillic→EB Garamond, Arabic→Amiri, Georgian/Armenian→Quivira,
   日本語→明朝, my/am→system）。:lang() 分岐に依存しないため、pl ページで Armenian が
   フォールバックする等の取りこぼしが起きない。 */
.lp-lang-trigger,
.lp-lang-option,
.lp-lang-name {
  font-family: 'EB Garamond', 'Amiri', 'Quivira',
               "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP",
               Georgia, serif !important;
}

/* RTL: 英語スローガン(Like oral tradition.)は LTR で組む。
   RTL 継承で末尾ピリオドが左へ回る bidi 崩れを防ぐ。ar/fa 共通。 */
[dir="rtl"] .hero .slogan {
  direction: ltr;
}

/* RTL: モバイルのハンバーガー / ドロワーを右側に鏡像化。
   既定(LTR)は左上ハンバーガー・左出しドロワー。RTL は右上・右出しに。ar/fa 共通。 */
[dir="rtl"] .lp-hamburger {
  left: auto;
  right: 12px;
}
@media (max-width: 1023px) {
  [dir="rtl"] .lp-header {
    padding-left: 1.5rem;
    padding-right: 62px;
  }
  [dir="rtl"] .lp-drawer {
    left: auto;
    right: 0;
    transform: translateX(100%);
  }
  [dir="rtl"] .lp-drawer-visible {
    transform: translateX(0);
  }
  [dir="rtl"] .lp-drawer-hidden {
    transform: translateX(100%);
  }
}
/* RTL: ドロワー選択バー(左帯)を右へ、子リストのインデントを右へ */
[dir="rtl"] .lp-drawer-item-active::before {
  left: auto;
  right: -0.6rem;
  border-radius: 2px 0 0 2px;
}
[dir="rtl"] .lp-drawer-children {
  padding-left: 0;
  padding-right: 0.6rem;
}

/* スクロールバー共通(コンソールUIと統一、4px navy) */
*::-webkit-scrollbar { width: 4px; height: 4px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(28, 42, 77, 0.25); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(28, 42, 77, 0.45); }
* { scrollbar-width: thin; scrollbar-color: rgba(28, 42, 77, 0.25) transparent; }

 /* ===== Reset / Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'EB Garamond', "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  background: #f5f5f0;
  color: #1C2A4D;
  line-height: 1.7;
  font-size: 17px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
  line-height: 1.4;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: 0.08em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.06em;
  margin-top: 3rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(28, 42, 77, 0.15);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  letter-spacing: 0.04em;
  margin-top: 2rem;
}

p {
  margin: 0 0 1.2rem;
}

a {
  color: #1C2A4D;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  -webkit-text-decoration-skip: ink;
  text-decoration-skip-ink: auto;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.65;
}

em {
  opacity: 0.85;
}

strong {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ===== Layout ===== */
.site-header {
  border-bottom: 1px solid rgba(28, 42, 77, 0.12);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-header .brand {
  font-size: 1.4rem;
  letter-spacing: 0.3em;
  font-weight: 500;
  text-decoration: none;
  padding-left: 0.3em;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-header nav a {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: rgba(28, 42, 77, 0.85);
  transition: opacity 0.2s ease;
}

.site-header nav a:hover {
  opacity: 1;
}

/* Phase 4 (5/19): Sign in / Sign up CTA in header nav
   業界前例: Stripe / Linear / GitHub / Vercel
   - 順序: [Pricing] [lang-switch] [Sign in (text)] [Sign up (button)]
   - Sign up は最右に主 CTA として塗りつぶしボタン (Gutenberg Terminal Area)
   - Sign in は前段のテキストリンク (controle: secondary)
   - lang-switch は主動線でないため CTA 群の左 (Vercel パターン) */
.site-header nav a.nav-signin {
  /* Outlined secondary button (Sign up と同じ size、 枠線のみ)
     業界前例: Stripe Dashboard / Apple / Linear の secondary CTA */
  background: transparent;
  color: #1C2A4D;
  padding: 0.55rem 1.2rem;
  border: 1px solid #1C2A4D;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.site-header nav a.nav-signin:hover {
  opacity: 1;
  background: rgba(28, 42, 77, 0.06);
}

.site-header nav a.nav-signup {
  background: #1C2A4D;
  color: #f5f5f0;
  padding: 0.55rem 1.2rem;
  border: 1px solid #1C2A4D;  /* Sign in と outer size を揃える (透明 border ではなく同色 border で塗りつぶし側にも 1px の輪郭を持たせる) */
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-left: 0.25rem;  /* Sign in との視覚的分離、WCAG 8px+ 確保 */
  transition: opacity 0.2s ease, background 0.2s ease;
}

.site-header nav a.nav-signup:hover {
  opacity: 1;
  background: #2a3d6e;
}

/* lang-switch を主動線から控えめに */
.site-header nav .lang-switch {
  opacity: 0.7;
  font-size: 0.88rem;
}

.site-header nav .lang-switch:hover {
  opacity: 1;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.container--narrow {
  max-width: 680px;
}

.site-footer {
  border-top: 1px solid rgba(28, 42, 77, 0.12);
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.site-footer nav a {
  text-decoration: none;
  color: rgba(28, 42, 77, 0.85);
}

/* ===== Tagline / Hero ===== */
.tagline {
  opacity: 0.85;
  letter-spacing: 0.10em;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  margin: 0 0 2rem;
}

.divider {
  width: 40px;
  height: 1px;
  background: #1C2A4D;
  opacity: 0.3;
  margin: 2rem auto;
  border: none;
}

/* ===== Cards / Tables for legal & pricing pages ===== */
.card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(28, 42, 77, 0.1);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}

.card h3 {
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(28, 42, 77, 0.12);
}

th {
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-transform: uppercase;
  opacity: 0.85;
}

td {
  font-variant-numeric: tabular-nums;
}

/* ===== Pricing-specific ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(28, 42, 77, 0.12);
  border-radius: 6px;
  padding: 1.5rem;
}

.pricing-card .model-name {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 0.75rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.pricing-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(28, 42, 77, 0.1);
}

.pricing-card .price-row:last-child {
  border-bottom: none;
}

.pricing-card .price-label {
  font-size: 0.9rem;
  opacity: 0.85;
}

.pricing-card .price-value {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.pricing-card .price-base {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-right: 0.5rem;
}

.pricing-card .price-billable {
  color: #1C2A4D;
  font-size: 1rem;
}

.note {
  font-size: 0.9rem;
  opacity: 0.85;
  border-left: 2px solid rgba(28, 42, 77, 0.2);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.last-updated {
  text-align: right;
  font-size: 0.85rem;
  opacity: 0.85;
  letter-spacing: 0.1em;
  margin-top: 3rem;
}

/* ===== Utility ===== */
.text-center {
  text-align: center;
}

.muted {
  opacity: 0.85;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .site-header {
    padding: 1rem 1.25rem;
  }
  .site-header nav {
    gap: 1.25rem;
  }
  .container {
    padding: 2rem 1.25rem 3rem;
  }
  .pricing-card {
    padding: 1.25rem;
  }
  body {
    font-size: 16px;
  }
}

/* ============================================================
 * VATES ロゴ配置
 * .brand-logo : ヘッダー左上
 * .hero-logo  : ヒーロー領域、レスポンシブ
 * ============================================================ */

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0;
}

.brand-logo {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  flex-shrink: 0;
  transform: translateY(0.02em);   /* 視覚的中央に下げる */
}

.brand-text {
  display: inline-block;
}

.hero-logo-wrap {
  margin: 3rem auto 0;
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: clamp(120px, 16vw, 200px);
  height: auto;
  aspect-ratio: 1;
  display: block;
}

@media (max-width: 600px) {
  .hero-logo {
    width: 130px;
  }
}

/* ============================================================
 * VATES Landing - 新ヘッダー (lp- prefix)
 * ============================================================ */
.lp-header {
  border-bottom: 1px solid rgba(28, 42, 77, 0.12);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
}

.lp-tabs-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: flex-start;
}

.lp-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 5px;
  background: linear-gradient(145deg, #fafaf5 0%, #f1f1ea 100%);
  border: 1px solid rgba(28, 42, 77, 0.12);
  border-radius: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(28, 42, 77, 0.06), inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.lp-tab {
  background: transparent;
  border: none;
  padding: 9px 16px;
  font-size: 0.95rem;
  color: rgba(28, 42, 77, 0.7);
  cursor: pointer;
  border-radius: 8px;
  font-family: 'EB Garamond', serif;
  letter-spacing: 0.04em;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.lp-tab:hover:not(.lp-tab-active) { color: #1C2A4D; background: rgba(28, 42, 77, 0.05); opacity: 1; }
.lp-tab-active {
  color: #f5f5f0;
  font-weight: 500;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(80, 110, 180, 0.3) 0%, rgba(80, 110, 180, 0.1) 30%, transparent 60%),
    linear-gradient(145deg, rgba(42, 61, 110, 0.95) 0%, rgba(28, 42, 77, 0.97) 50%, rgba(15, 26, 53, 0.97) 100%);
  box-shadow: 0 2px 6px rgba(15, 26, 53, 0.25), inset 0 1px 1px rgba(80, 110, 180, 0.45), inset 0 -1px 1px rgba(0, 0, 0, 0.15);
}

.lp-actions { flex: 1; display: flex; align-items: center; gap: 0.5rem; justify-content: flex-end; }

.lp-signin {
  background: transparent;
  color: #1C2A4D;
  padding: 0.5rem 1.1rem;
  border: 1px solid #1C2A4D;
  border-radius: 8px;
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.lp-signin:hover { background: rgba(28, 42, 77, 0.06); opacity: 1; }

.lp-signup {
  color: #f5f5f0;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(80, 110, 180, 0.25);
  border-radius: 8px;
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(80, 110, 180, 0.35) 0%, rgba(80, 110, 180, 0.1) 30%, transparent 60%),
    linear-gradient(145deg, rgba(42, 61, 110, 0.92) 0%, rgba(28, 42, 77, 0.95) 50%, rgba(15, 26, 53, 0.95) 100%);
  box-shadow: 0 2px 8px rgba(15, 26, 53, 0.25), inset 0 1px 1px rgba(80, 110, 180, 0.5), inset 0 -1px 1px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}
.lp-signup:hover { opacity: 1; box-shadow: 0 4px 12px rgba(15, 26, 53, 0.35), inset 0 1px 1px rgba(80, 110, 180, 0.6), inset 0 -1px 1px rgba(0, 0, 0, 0.15); }
.lp-signup:active { transform: scale(0.98); }

.lp-lang { position: relative; display: inline-block; flex-shrink: 0; }
.lp-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.5rem 0.85rem;
  background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
  border: 1px solid rgba(28, 42, 77, 0.12);
  border-radius: 8px;
  cursor: pointer;
  font-family: 'EB Garamond', serif;
  font-size: 0.92rem;
  color: #1C2A4D;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), inset 0 1px 1px rgba(255,255,255,0.8);
}
.lp-lang-trigger:hover { border-color: #1C2A4D; box-shadow: 0 2px 6px rgba(15,26,53,0.08), inset 0 1px 1px rgba(255,255,255,0.9); }
.lp-lang-arrow { color: rgba(28,42,77,0.5); flex-shrink: 0; transition: transform 0.15s ease; }
.lp-lang.open .lp-lang-arrow { transform: rotate(180deg); }

.lp-lang-overlay { position: fixed; inset: 0; z-index: 100; display: none; }
.lp-lang.open .lp-lang-overlay { display: block; }

.lp-lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 101;
  min-width: 120px;
  padding: 6px;
  background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
  border: 1px solid rgba(28, 42, 77, 0.12);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15,26,53,0.15), 0 2px 6px rgba(0,0,0,0.06), inset 0 1px 1px rgba(255,255,255,0.9);
  display: none;
  flex-direction: column;
  gap: 2px;
}
.lp-lang.open .lp-lang-dropdown { display: flex; }
.lp-lang-option {
  display: block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-family: 'EB Garamond', serif;
  color: #1C2A4D;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.1s ease;
}

/* RTL: 言語ドロップダウンを trigger の左端揃えに開く（はみ出し防止）。
   LTR(en/ja/fr) は無変更、[dir="rtl"] の ar だけ鏡像化。 */
[dir="rtl"] .lp-lang-dropdown {
  right: auto;
  left: 0;
}
[dir="rtl"] .lp-lang-option {
  text-align: right;
}
.lp-lang-option:hover { background: rgba(28, 42, 77, 0.06); opacity: 1; }
.lp-lang-option-active {
  color: #f5f5f0;
  background: linear-gradient(145deg, rgba(42,61,110,0.92) 0%, rgba(28,42,77,0.95) 50%, rgba(15,26,53,0.95) 100%);
}

.lp-hamburger {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: #f5f5f0;
  border: 1px solid rgba(80, 110, 180, 0.25);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(80,110,180,0.25) 0%, rgba(80,110,180,0.08) 30%, transparent 60%),
    linear-gradient(145deg, rgba(42,61,110,0.92) 0%, rgba(28,42,77,0.95) 50%, rgba(42,61,110,0.90) 100%);
  box-shadow: inset 0 1px 1px rgba(80,110,180,0.4), inset 0 -1px 1px rgba(0,0,0,0.15);
}
.lp-hamburger:hover { border-color: rgba(80,110,180,0.4); box-shadow: inset 0 1px 1px rgba(80,110,180,0.55), inset 0 -1px 1px rgba(0,0,0,0.15); }

.lp-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lp-drawer-overlay.open { opacity: 1; pointer-events: auto; }

.lp-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  width: 220px;
  z-index: 200;
  flex-direction: column;
  padding: 1.2rem 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(80,110,180,0.12) 0%, transparent 50%),
    linear-gradient(165deg, rgba(42,61,110,0.96) 0%, rgba(28,42,77,0.98) 35%, rgba(15,26,53,1) 60%, rgba(28,42,77,0.96) 100%);
}
.lp-drawer-visible { display: flex; }
.lp-drawer-hidden { display: none; }

.lp-drawer-nav { display: flex; flex-direction: column; gap: 2px; padding: 3.5rem 0.6rem 1.5rem; flex: 1; min-height: 0; }
.lp-drawer-link {
  padding: 0.7rem 0.9rem;
  margin: 1px 0;
  border-radius: 6px;
  color: rgba(245,245,240,0.85);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: background 0.18s ease, opacity 0.18s ease;
}
.lp-drawer-link:hover { background: rgba(255,255,255,0.08); color: #f5f5f0; opacity: 1; }
.lp-drawer-link-active { background: rgba(255,255,255,0.14); color: #f5f5f0; }

@media (max-width: 1023px) {
  .lp-tabs-scroll { display: none; }
  .lp-hamburger { display: inline-flex; }
  .lp-header { gap: 0.75rem; padding-left: 62px; justify-content: flex-end; }
  .lp-signin, .lp-signup { padding: 0.45rem 0.85rem; font-size: 0.9rem; }
  .lp-actions { gap: 0.4rem; }
  /* モバイル: コンソール .sidebar と同じく、外側影を撤廃し inset のみ（コンテンツ干渉防止） */
  .lp-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    transform: translateX(-100%);
    width: 220px;
    padding-bottom: env(safe-area-inset-bottom);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }
  .lp-drawer-visible { transform: translateX(0); }
  .lp-drawer-hidden { transform: translateX(-100%); display: flex; }
}

@media (min-width: 1024px) {
  .lp-drawer, .lp-drawer-overlay { display: none; }
}


/* ============================================================
 * VATES Landing - drawer コンソール型(大項目+子h2+開閉+選択バー)
 * コンソール sidebar (instance-item / menu-item) 意匠を移植。
 * ============================================================ */
.lp-drawer-block {
  margin: 1px 0;
}

/* 大項目(行) */
.lp-drawer-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  color: rgba(245, 245, 240, 0.85);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: background 0.18s ease, color 0.18s ease;
}
.lp-drawer-item:hover { background: rgba(255, 255, 255, 0.08); color: #f5f5f0; }

/* 選択中: 左に縦インジケーターバー + 背景ハイライト(コンソール踏襲) */
.lp-drawer-item-active {
  background: rgba(255, 255, 255, 0.14);
  color: #f5f5f0;
}
.lp-drawer-item-active::before {
  content: "";
  position: absolute;
  left: -0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, #E8A872 0%, rgba(232,168,114,0.4) 100%);
  border-radius: 0 2px 2px 0;
}

/* 大項目(子持ち): リンク + トグルを横並び */
.lp-drawer-item-parent {
  padding: 0;
  background: transparent;
}
.lp-drawer-item-parent:hover { background: transparent; }
.lp-drawer-item-link {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0.7rem 0.4rem 0.7rem 0.9rem;
  border-radius: 6px;
  color: rgba(245, 245, 240, 0.85);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: background 0.18s ease, color 0.18s ease;
}
.lp-drawer-item-link:hover { background: rgba(255, 255, 255, 0.08); color: #f5f5f0; }
.lp-drawer-item-parent.lp-drawer-item-active .lp-drawer-item-link { color: #f5f5f0; }

/* 開閉トグルボタン(右の chevron) */
.lp-drawer-toggle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: rgba(245, 245, 240, 0.55);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.lp-drawer-toggle:hover { background: rgba(255, 255, 255, 0.08); color: #f5f5f0; }
.lp-drawer-chevron {
  transition: transform 0.2s ease;
}
/* 開いてる時は chevron を下向き(90度回転) */
.lp-drawer-block-open .lp-drawer-chevron {
  transform: rotate(90deg);
}

/* 子(h2)リスト: 既定は閉じる(高さ0)、開いたら出す */
.lp-drawer-children {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
  padding-left: 0.6rem;
}
.lp-drawer-block-open .lp-drawer-children {
  max-height: 500px;
}

/* 子項目 */
.lp-drawer-child {
  display: block;
  padding: 0.5rem 0.9rem;
  margin: 1px 0;
  border-radius: 6px;
  color: rgba(245, 245, 240, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: background 0.18s ease, color 0.18s ease;
}
.lp-drawer-child::before {
  content: "– ";
  opacity: 0.5;
}
.lp-drawer-child:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 245, 240, 0.9);
}


/* ============================================================
 * VATES Landing - Features アコーディオン (lp-feature)
 * コンソール .security-subsection 移植。左アクセントは全てネイビー統一。
 * <details>/<summary> ネイティブ開閉（JS不要）
 * ============================================================ */
.lp-feature-list {
  max-width: 880px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 768px) {
  .lp-feature-list { grid-template-columns: 1fr; }
}

.lp-feature {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
  border: 1px solid rgba(28, 42, 77, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(28, 42, 77, 0.05), inset 0 1px 1px rgba(255,255,255,0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lp-feature:hover { border-color: rgba(28, 42, 77, 0.25); box-shadow: 0 4px 12px rgba(28,42,77,0.08), inset 0 1px 1px rgba(255,255,255,0.9); }
.lp-feature[open] { border-color: rgba(28, 42, 77, 0.25); box-shadow: 0 4px 14px rgba(28,42,77,0.1), inset 0 1px 1px rgba(255,255,255,0.9); }

/* 左の縦アクセントライン（全てネイビー統一） */
.lp-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 60%;
  background: linear-gradient(180deg, rgba(58,74,112,0.6) 0%, rgba(64,99,159,0.2) 100%);
  border-radius: 0 2px 2px 0;
  pointer-events: none;
  z-index: 1;
  transition: height 0.3s ease, width 0.2s ease, box-shadow 0.2s ease;
}
.lp-feature:hover::before { width: 7px; box-shadow: 0 0 12px rgba(28,42,77,0.15); }
.lp-feature[open]::before { height: 100%; }

.lp-feature-title {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 20px 16px 28px;
  list-style: none;
  border-bottom: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.2s ease;
}
.lp-feature-title::-webkit-details-marker { display: none; }
.lp-feature-title::marker { display: none; }
.lp-feature-title:hover { background: rgba(28, 42, 77, 0.04); }
.lp-feature[open] > .lp-feature-title { border-bottom-color: rgba(28, 42, 77, 0.1); }

.lp-feature-title h3 {
  margin: 0;
  color: #1C2A4D;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.lp-feature-mark {
  margin-left: auto;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: #1C2A4D;
  opacity: 0.35;
  width: 16px;
  text-align: center;
  line-height: 0.8;
  transition: opacity 0.2s ease;
}

/* RTL: マークを反対端(左)へ。auto マージンは物理プロパティなので
   RTL では right 側に張り替えないと端まで届かない。 */
[dir="rtl"] .lp-feature-mark {
  margin-left: 0;
  margin-right: auto;
}
.lp-feature-title:hover .lp-feature-mark,
.lp-feature[open] > .lp-feature-title .lp-feature-mark { opacity: 0.85; }
.lp-feature-mark::before { content: "+"; }
.lp-feature[open] > .lp-feature-title .lp-feature-mark::before { content: "−"; }

.lp-feature-body {
  padding: 16px 20px 20px 28px;
  font-family: 'EB Garamond', 'Quivira', 'Amiri', serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(28, 42, 77, 0.85);
}
.lp-feature-body p { margin: 0; }
.lp-feature-list-single { grid-template-columns: 1fr; max-width: 760px; }

/* RTL: 左アクセントバー(読み始めの合図)を右に鏡像化。ar/fa 共通。
   ドロワー選択バー([dir="rtl"] .lp-drawer-item-active::before)と同じ発想の統一。 */
[dir="rtl"] .lp-feature::before {
  left: auto;
  right: 0;
  border-radius: 2px 0 0 2px;
}
[dir="rtl"] .lp-feature-title {
  padding: 16px 28px 16px 20px;
}
[dir="rtl"] .lp-feature-body {
  padding: 16px 20px 20px 28px;
}
[dir="rtl"] .lp-feature-nested .lp-feature-title {
  padding: 13px 24px 13px 18px;
}


/* ============================================================
 * VATES Landing - Pricing パネル（lp-pricing-card）
 * Three Roles の .role-card と同一の紺グラデ。リンクは象牙系。
 * .card を汚さない専用クラス（legal の白カードに影響させない）
 * ============================================================ */
.lp-pricing-card {
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid #506eb44d;
  border-radius: 6px;
  padding: 2rem 2.25rem;
  text-align: center;
  color: #f5f5f0;
  background:
    radial-gradient(ellipse at 30% 20%, #506eb459 0%, #506eb41a 30%, transparent 60%),
    radial-gradient(ellipse at 75% 80%, #3c5aa02e 0%, transparent 50%),
    linear-gradient(145deg, #2a3d6ef2 0%, #1c2a4df7 35%, #0f1a35fa 60%, #1c2a4df2 100%);
  box-shadow:
    0 4px 14px #0f1a354d,
    0 1px 3px #0000001f,
    inset 0 2px 1px #506eb480,
    inset 0 -2px 1px #00000026;
}
.lp-pricing-card strong { color: #f5f5f0; }
.lp-pricing-card .muted { color: rgba(245, 233, 212, 0.85); opacity: 1; }
.lp-pricing-card a {
  color: #f5f5f0;
  text-decoration-color: rgba(245, 233, 212, 0.5);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease, opacity 0.2s ease;
}
.lp-pricing-card a:hover { opacity: 1; text-decoration-color: #f5f5f0; }


/* ============================================================
 * VATES Landing - Rates 紺パネル化（#pricing-cards 配下のみ）
 * Three Roles / lp-pricing-card と同一の紺グラデ。破線・文字は象牙。
 * ============================================================ */
#pricing-cards .pricing-card {
  border: 1px solid #506eb44d;
  color: #f5f5f0;
  background:
    radial-gradient(ellipse at 30% 20%, #506eb459 0%, #506eb41a 30%, transparent 60%),
    radial-gradient(ellipse at 75% 80%, #3c5aa02e 0%, transparent 50%),
    linear-gradient(145deg, #2a3d6ef2 0%, #1c2a4df7 35%, #0f1a35fa 60%, #1c2a4df2 100%);
  box-shadow:
    0 4px 14px #0f1a354d,
    0 1px 3px #0000001f,
    inset 0 2px 1px #506eb480,
    inset 0 -2px 1px #00000026;
}
#pricing-cards .pricing-card .model-name { color: #f5f5f0; }
#pricing-cards .pricing-card .muted { color: rgba(245, 233, 212, 0.7); }
#pricing-cards .pricing-card .price-label { color: rgba(245, 233, 212, 0.9); }
#pricing-cards .pricing-card .price-value { color: #f5f5f0; }
#pricing-cards .pricing-card .price-row { border-bottom-color: rgba(245, 233, 212, 0.25); }


/* ============================================================
 * VATES Landing - 共通フッター (lp-footer)
 * ヘッダー lp-tabs のセグメント横スクロールを流用。
 * ただし footer は従属的: 厚み半分・背景同色系・active なし。
 * ============================================================ */
.lp-footer {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(28, 42, 77, 0.1);
  padding: 1.5rem 1rem 2rem;
  margin-top: 4rem;
}

.lp-foot-scroll {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
}
/* スクロールバーは共通の細いトーンに委ねる(LP は灰青のまま) */
.lp-foot-scroll::-webkit-scrollbar { height: 3px; }
.lp-foot-scroll::-webkit-scrollbar-track { background: transparent; }
.lp-foot-scroll::-webkit-scrollbar-thumb { background: rgba(93, 109, 143, 0.4); border-radius: 2px; }

.lp-foot-tabs {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  gap: 2px;
  padding: 3px;
  background: linear-gradient(145deg, #f1f1ea 0%, #ebebe3 100%);
  border: 1px solid rgba(28, 42, 77, 0.08);
  border-radius: 9px;
  white-space: nowrap;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}


.lp-foot-tab {
  background: transparent;
  border: none;
  padding: 5px 12px;
  font-size: 0.8rem;
  color: rgba(28, 42, 77, 0.6);
  border-radius: 6px;
  font-family: 'EB Garamond', serif;
  letter-spacing: 0.03em;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.lp-foot-tab:hover {
  color: #1C2A4D;
  background: rgba(28, 42, 77, 0.05);
  opacity: 1;
}

.lp-foot-copy {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(28, 42, 77, 0.8);
  font-family: 'EB Garamond', serif;
  letter-spacing: 0.04em;
  margin: 0.9rem 0 0;
}


/* ============================================================
 * VATES Landing - テーマ切替ピル (Light | Samhain)
 * desk: ヘッダ右(.lp-actions 内) / mobile: drawer 下(.lp-drawer-theme)
 * 昼基調。active のみ篝火金。夜は後続の [data-mode="samhain"] で翻訳。
 * ============================================================ */
.lp-theme {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: linear-gradient(145deg, #f1f1ea 0%, #ebebe3 100%);
  border: 1px solid rgba(28, 42, 77, 0.12);
  border-radius: 9px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

/* desk: メインナビ直後に寄せ、右側の余白で actions を右端へ押す */
.lp-theme-desk {
  flex-shrink: 0;
}

.lp-theme-pill {
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: rgba(28, 42, 77, 0.65);
  cursor: pointer;
  border-radius: 6px;
  font-family: 'EB Garamond', serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lp-theme-pill:hover {
  color: #1C2A4D;
  background: rgba(28, 42, 77, 0.05);
}

/* Light active = 昼の世界をまとう（lp-tab-active と同一の紺 Liquid Glass）。desk ヘッダ限定 */
.lp-header .lp-theme-pill[data-mode="light"].lp-theme-pill-active {
  color: #f5f5f0;
  font-weight: 500;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(80, 110, 180, 0.3) 0%, rgba(80, 110, 180, 0.1) 30%, transparent 60%),
    linear-gradient(145deg, rgba(42, 61, 110, 0.95) 0%, rgba(28, 42, 77, 0.97) 50%, rgba(15, 26, 53, 0.97) 100%);
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(15, 26, 53, 0.25), inset 0 1px 1px rgba(80, 110, 180, 0.45), inset 0 -1px 1px rgba(0, 0, 0, 0.15);
}
.lp-header .lp-theme-pill[data-mode="light"].lp-theme-pill-active:hover {
  color: #f5f5f0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(80, 110, 180, 0.3) 0%, rgba(80, 110, 180, 0.1) 30%, transparent 60%),
    linear-gradient(145deg, rgba(42, 61, 110, 0.95) 0%, rgba(28, 42, 77, 0.97) 50%, rgba(15, 26, 53, 0.97) 100%);
}

/* Samhain active = 夜の世界をまとう（コンソール client-tab.active と同一の篝火夜）。desk ヘッダ限定（drawer は軽い⑤-Bに委ねる）*/
.lp-header .lp-theme-pill[data-mode="samhain"].lp-theme-pill-active {
  color: #F4E9D4;
  border-color: rgba(232, 168, 114, 0.3);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 221, 235, 0.4) 0%, rgba(212, 221, 235, 0.12) 30%, transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(232, 168, 114, 0.35) 0%, rgba(232, 168, 114, 0.1) 40%, transparent 70%),
    linear-gradient(145deg, rgba(43, 20, 56, 0.92) 0%, rgba(26, 35, 64, 0.94) 50%, rgba(10, 15, 30, 0.96) 100%);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 14px rgba(232, 168, 114, 0.12),
    inset 0 2px 2px rgba(212, 221, 235, 0.6),
    inset 0 -2px 2px rgba(232, 168, 114, 0.3),
    inset 2px 0 1px rgba(212, 221, 235, 0.2),
    inset -2px 0 1px rgba(212, 221, 235, 0.15);
}
.lp-header .lp-theme-pill[data-mode="samhain"].lp-theme-pill-active:hover {
  color: #F4E9D4;
}

/* drawer は昼でも紺背景 → 内部のピルは明色文字に上書き */
.lp-drawer-theme {
  margin-top: auto;
  padding: 1.25rem 1rem 0;
  border-top: 1px solid rgba(212, 221, 235, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.lp-drawer-theme-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(212, 221, 235, 0.6);
  font-family: 'EB Garamond', serif;
}

.lp-drawer-theme .lp-theme {
  display: flex;
  width: 100%;
  background: rgba(244, 233, 212, 0.06);
  border-color: rgba(212, 221, 235, 0.18);
}
.lp-drawer-theme .lp-theme-pill {
  flex: 1;
  text-align: center;
}
.lp-drawer-theme .lp-theme-pill {
  color: rgba(244, 233, 212, 0.7);
}
.lp-drawer-theme .lp-theme-pill:hover {
  color: #F4E9D4;
  background: rgba(244, 233, 212, 0.10);
}
/* drawer Light active = 紺 Liquid Glass（lp-tab-active と同一）*/
.lp-drawer-theme .lp-theme-pill[data-mode="light"].lp-theme-pill-active {
  color: #f5f5f0;
  font-weight: 500;
  border-color: transparent;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(80, 110, 180, 0.3) 0%, rgba(80, 110, 180, 0.1) 30%, transparent 60%),
    linear-gradient(145deg, rgba(42, 61, 110, 0.95) 0%, rgba(28, 42, 77, 0.97) 50%, rgba(15, 26, 53, 0.97) 100%);
  box-shadow: 0 2px 6px rgba(15, 26, 53, 0.25), inset 0 1px 1px rgba(80, 110, 180, 0.45), inset 0 -1px 1px rgba(0, 0, 0, 0.15);
}

/* drawer Samhain active = 篝火夜リッチ（client-tab.active と同一）*/
.lp-drawer-theme .lp-theme-pill[data-mode="samhain"].lp-theme-pill-active {
  color: #F4E9D4;
  border-color: rgba(232, 168, 114, 0.3);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 221, 235, 0.4) 0%, rgba(212, 221, 235, 0.12) 30%, transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(232, 168, 114, 0.35) 0%, rgba(232, 168, 114, 0.1) 40%, transparent 70%),
    linear-gradient(145deg, rgba(43, 20, 56, 0.92) 0%, rgba(26, 35, 64, 0.94) 50%, rgba(10, 15, 30, 0.96) 100%);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 14px rgba(232, 168, 114, 0.12),
    inset 0 2px 2px rgba(212, 221, 235, 0.6),
    inset 0 -2px 2px rgba(232, 168, 114, 0.3),
    inset 2px 0 1px rgba(212, 221, 235, 0.2),
    inset -2px 0 1px rgba(212, 221, 235, 0.15);
}

/* desk ピルはヘッダのメインナビ右に常駐。mobile はヘッダから消し、drawer 内のピルに任せる */
@media (max-width: 1023px) {
  .lp-theme-desk {
    display: none;
  }
}


/* ============================================================
 * VATES Landing - Samhain（夜）: ヘッダ + フッター
 * [data-mode="samhain"] 発火時のみ。昼は無傷。
 * 翻訳ルール: 篝火金#E8A872=操作/active, 月光#D4DDEB=情報, 闇#0A0F1E基調
 * ============================================================ */

/* ---- 全体の地 ---- */
[data-mode="samhain"] body {
  background: #0A0F1E;
  color: rgba(244, 233, 212, 0.9);
}

/* ---- ヘッダ枠 ---- */
[data-mode="samhain"] .lp-header {
  background: linear-gradient(165deg, rgba(20, 30, 58, 0.6) 0%, rgba(10, 15, 30, 0.7) 100%);
  border-bottom-color: rgba(212, 221, 235, 0.12);
}

/* ---- メインナビ（タブ群） ---- */
[data-mode="samhain"] .lp-tabs {
  background: linear-gradient(145deg, rgba(26, 35, 64, 0.6) 0%, rgba(10, 15, 30, 0.7) 100%);
  border: 1px solid rgba(212, 221, 235, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}
[data-mode="samhain"] .lp-tab {
  color: rgba(212, 221, 235, 0.6);
}
[data-mode="samhain"] .lp-tab:hover:not(.lp-tab-active) {
  color: rgba(244, 233, 212, 0.9);
  background: rgba(212, 221, 235, 0.08);
}
/* active タブ = ウィジェットアイコン質感（上辺月光 + 下篝火 + 闇本体）*/
[data-mode="samhain"] .lp-tab-active {
  color: #F4E9D4;
  border: 1px solid rgba(232, 168, 114, 0.3);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 221, 235, 0.4) 0%, rgba(212, 221, 235, 0.12) 30%, transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(232, 168, 114, 0.35) 0%, rgba(232, 168, 114, 0.1) 40%, transparent 70%),
    linear-gradient(145deg, rgba(43, 20, 56, 0.92) 0%, rgba(26, 35, 64, 0.94) 50%, rgba(10, 15, 30, 0.96) 100%);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 14px rgba(232, 168, 114, 0.12),
    inset 0 2px 2px rgba(212, 221, 235, 0.6),
    inset 0 -2px 2px rgba(232, 168, 114, 0.3);
}

/* ---- Sign in（副CTA = 月光枠の素） ---- */
[data-mode="samhain"] .lp-signin {
  color: rgba(244, 233, 212, 0.9);
  background: linear-gradient(145deg, rgba(26, 35, 64, 0.6) 0%, rgba(10, 15, 30, 0.7) 100%);
  border: 1px solid rgba(212, 221, 235, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}
[data-mode="samhain"] .lp-signin:hover {
  background: rgba(212, 221, 235, 0.08);
  border-color: rgba(232, 168, 114, 0.45);
}

/* ---- Sign up（主CTA = 篝火を一点灯す） ---- */
[data-mode="samhain"] .lp-signup {
  color: #F4E9D4;
  border-color: rgba(232, 168, 114, 0.35);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212, 221, 235, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(232, 168, 114, 0.25) 0%, transparent 55%),
    linear-gradient(145deg, rgba(43, 20, 56, 0.92) 0%, rgba(26, 35, 64, 0.94) 50%, rgba(10, 15, 30, 0.96) 100%);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(232, 168, 114, 0.12),
    inset 0 2px 1px rgba(212, 221, 235, 0.5),
    inset 0 -1px 1px rgba(0, 0, 0, 0.18);
}
[data-mode="samhain"] .lp-signup:hover {
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(232, 168, 114, 0.18),
    inset 0 2px 1px rgba(212, 221, 235, 0.6),
    inset 0 -1px 1px rgba(0, 0, 0, 0.18);
}

/* ---- 言語切替 ---- */
[data-mode="samhain"] .lp-lang-trigger {
  color: rgba(244, 233, 212, 0.9);
}
[data-mode="samhain"] .lp-lang-dropdown {
  background: rgba(10, 15, 30, 0.95);
  border: 1px solid rgba(212, 221, 235, 0.2);
}
[data-mode="samhain"] .lp-lang-option {
  color: rgba(244, 233, 212, 0.9);
}
[data-mode="samhain"] .lp-lang-option:hover {
  background: rgba(212, 221, 235, 0.08);
}
[data-mode="samhain"] .lp-lang-option-active {
  color: #F4E9D4;
  background: linear-gradient(145deg, rgba(43, 20, 56, 0.9) 0%, rgba(26, 35, 64, 0.94) 50%, rgba(10, 15, 30, 0.96) 100%);
}

/* ---- ハンバーガー（mobile） ---- */
[data-mode="samhain"] .lp-hamburger {
  color: #F4E9D4;
  border-color: rgba(232, 168, 114, 0.25);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212, 221, 235, 0.25) 0%, transparent 60%),
    linear-gradient(145deg, rgba(43, 20, 56, 0.92) 0%, rgba(26, 35, 64, 0.94) 50%, rgba(10, 15, 30, 0.96) 100%);
  box-shadow: inset 0 1px 1px rgba(212, 221, 235, 0.4), inset 0 -1px 1px rgba(0, 0, 0, 0.15);
}

/* ---- drawer 本体（mobile）= コンソール sidebar の Samhain 準用 ---- */
[data-mode="samhain"] .lp-drawer {
  background:
    radial-gradient(ellipse at 25% 15%, rgba(212, 221, 235, 0.12) 0%, rgba(212, 221, 235, 0.04) 30%, transparent 60%),
    radial-gradient(ellipse at 80% 85%, rgba(232, 168, 114, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 90%, rgba(244, 233, 212, 0.04) 0%, transparent 40%),
    linear-gradient(165deg, rgba(43, 20, 56, 0.78) 0%, rgba(26, 35, 64, 0.82) 35%, rgba(10, 15, 30, 0.88) 60%, rgba(26, 35, 64, 0.78) 100%);
  backdrop-filter: blur(40px) saturate(2.0);
  -webkit-backdrop-filter: blur(40px) saturate(2.0);
  box-shadow:
    inset 0 2px 1px rgba(232, 168, 114, 0.30),
    inset 0 -2px 1px rgba(0, 0, 0, 0.25),
    inset 2px 0 1px rgba(212, 221, 235, 0.22),
    inset -2px 0 1px rgba(212, 221, 235, 0.15),
    4px 0 24px rgba(3, 5, 8, 0.45);
}

/* ---- フッター（黒子 = 闇に沈める） ---- */
[data-mode="samhain"] .lp-footer {
  border-top-color: rgba(212, 221, 235, 0.1);
}
[data-mode="samhain"] .lp-foot-tabs {
  background: linear-gradient(145deg, rgba(26, 35, 64, 0.6) 0%, rgba(10, 15, 30, 0.7) 100%);
  border: 1px solid rgba(212, 221, 235, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}
[data-mode="samhain"] .lp-foot-tab {
  color: rgba(212, 221, 235, 0.55);
}
[data-mode="samhain"] .lp-foot-tab:hover {
  color: rgba(244, 233, 212, 0.9);
  background: rgba(212, 221, 235, 0.06);
}
[data-mode="samhain"] .lp-foot-copy {
  color: rgba(212, 221, 235, 0.6);
}


/* ---- テーマピル枠（夜では闇地に）---- */
[data-mode="samhain"] .lp-theme {
  background: linear-gradient(145deg, rgba(26, 35, 64, 0.6) 0%, rgba(10, 15, 30, 0.7) 100%);
  border: 1px solid rgba(212, 221, 235, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}
[data-mode="samhain"] .lp-theme-pill {
  color: rgba(212, 221, 235, 0.6);
}
[data-mode="samhain"] .lp-theme-pill:hover {
  color: rgba(244, 233, 212, 0.9);
  background: rgba(212, 221, 235, 0.08);
}

/* ---- 言語切替トリガ枠（夜では闇地に）---- */
[data-mode="samhain"] .lp-lang-trigger {
  background: linear-gradient(145deg, rgba(26, 35, 64, 0.6) 0%, rgba(10, 15, 30, 0.7) 100%);
  border: 1px solid rgba(212, 221, 235, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}


/* ============================================================
 * VATES Landing - Samhain（夜）: 入れ物（カード/アコーディオン）
 * コンソール正本（es-list-row / jump-trigger）と同基準:
 * 闇グラデ面 + 月光の縁。ベタ細線にせず月光色で縁取る。
 * ============================================================ */

/* legal / pricing principles の .card */
[data-mode="samhain"] .card {
  background: linear-gradient(145deg, rgba(26, 35, 64, 0.55) 0%, rgba(10, 15, 30, 0.6) 100%);
  border: 1px solid rgba(212, 221, 235, 0.25);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 2px 1px rgba(244, 233, 212, 0.25),
    inset 0 -1px 1px rgba(0, 0, 0, 0.15),
    inset 2px 0 1px rgba(244, 233, 212, 0.15),
    inset -2px 0 1px rgba(244, 233, 212, 0.12);
}
[data-mode="samhain"] .card h3 {
  color: rgba(244, 233, 212, 0.95);
}
[data-mode="samhain"] .card p,
[data-mode="samhain"] .card strong {
  color: rgba(212, 221, 235, 0.85);
}

/* Features アコーディオン .lp-feature = コンソール security-subsection（Notifications）準用 */
[data-mode="samhain"] .lp-feature {
  background: linear-gradient(145deg, rgba(26, 35, 64, 0.4) 0%, rgba(10, 15, 30, 0.5) 100%);
  border: 1px solid rgba(212, 221, 235, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(212, 221, 235, 0.1);
}
[data-mode="samhain"] .lp-feature:hover {
  border-color: rgba(212, 221, 235, 0.3);
}
[data-mode="samhain"] .lp-feature[open] {
  border-color: rgba(232, 168, 114, 0.3);
}
/* 左の縦アクセント = Samhain 紫帯（notifications edge 準用） */
[data-mode="samhain"] .lp-feature::before {
  background: linear-gradient(180deg, rgba(43, 20, 56, 0.9) 0%, rgba(43, 20, 56, 0.2) 100%);
  box-shadow: 0 0 16px rgba(212, 221, 235, 0.45), inset 0 0 5px rgba(212, 221, 235, 0.5);
}
[data-mode="samhain"] .lp-feature:hover::before {
  box-shadow: 0 0 20px rgba(212, 221, 235, 0.55), inset 0 0 5px rgba(212, 221, 235, 0.55);
}
/* タイトル h3 = 古い光 / mark = 篝火 */
[data-mode="samhain"] .lp-feature-title h3 {
  color: rgba(244, 233, 212, 0.92);
}
[data-mode="samhain"] .lp-feature-title:hover {
  background: rgba(212, 221, 235, 0.04);
}
[data-mode="samhain"] .lp-feature[open] > .lp-feature-title {
  border-bottom-color: rgba(212, 221, 235, 0.1);
}
[data-mode="samhain"] .lp-feature-mark {
  color: rgba(232, 168, 114, 0.7);
}
/* 本文 = 月光寄り */
[data-mode="samhain"] .lp-feature-body {
  color: rgba(212, 221, 235, 0.7);
}


/* ============================================================
 * VATES Landing - Samhain: ヒーローロゴ昼夜出し分け + タグライン
 * ============================================================ */
.hero-logo-night {
  display: none;
}
[data-mode="samhain"] .hero-logo-day {
  display: none;
}
[data-mode="samhain"] .hero-logo-night {
  display: block;
}

/* タグライン: 夜は月光（VATES本体=古い光 の上の階層）*/
[data-mode="samhain"] .hero .slogan {
  color: rgba(212, 221, 235, 0.75);
}


/* ============================================================
 * VATES Landing - Samhain（夜）: ボディの紺パネル
 * Three Roles / Pricing Summary / Rates のカードを
 * テーマトグルの Samhain active（篝火夜）と同一意匠に。
 * ============================================================ */
[data-mode="samhain"] .role-card,
[data-mode="samhain"] .lp-pricing-card,
[data-mode="samhain"] #pricing-cards .pricing-card {
  color: #F4E9D4;
  border: 1px solid rgba(232, 168, 114, 0.3);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 221, 235, 0.4) 0%, rgba(212, 221, 235, 0.12) 30%, transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(232, 168, 114, 0.35) 0%, rgba(232, 168, 114, 0.1) 40%, transparent 70%),
    linear-gradient(145deg, rgba(43, 20, 56, 0.92) 0%, rgba(26, 35, 64, 0.94) 50%, rgba(10, 15, 30, 0.96) 100%);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 14px rgba(232, 168, 114, 0.12),
    inset 0 2px 2px rgba(212, 221, 235, 0.6),
    inset 0 -2px 2px rgba(232, 168, 114, 0.3),
    inset 2px 0 1px rgba(212, 221, 235, 0.2),
    inset -2px 0 1px rgba(212, 221, 235, 0.15);
}

/* カード内の文字・リンク（紺前提の象牙→夜の古い光/月光に）*/
[data-mode="samhain"] .role-card .role-name,
[data-mode="samhain"] .lp-pricing-card strong,
[data-mode="samhain"] #pricing-cards .pricing-card .model-name,
[data-mode="samhain"] #pricing-cards .pricing-card .price-value {
  color: #F4E9D4;
}
[data-mode="samhain"] .lp-pricing-card .muted,
[data-mode="samhain"] #pricing-cards .pricing-card .muted,
[data-mode="samhain"] #pricing-cards .pricing-card .price-label {
  color: rgba(212, 221, 235, 0.85);
}
[data-mode="samhain"] .lp-pricing-card a {
  color: #F4E9D4;
  text-decoration-color: rgba(244, 233, 212, 0.5);
}
[data-mode="samhain"] .lp-pricing-card a:hover {
  color: #D4DDEB;
  text-decoration-color: rgba(212, 221, 235, 0.85);
}
[data-mode="samhain"] #pricing-cards .pricing-card .price-row {
  border-bottom-color: rgba(232, 168, 114, 0.25);
}


/* ============================================================
 * VATES Landing - Samhain: 本文リンク
 * 夜では沈んだネイビーで読めない → 月光寄りの青 + 篝火下線
 * （コンソール console-logs-msg-body a 準用）
 * ============================================================ */
[data-mode="samhain"] main a {
  color: #a8b8e0;
  text-decoration-color: rgba(168, 184, 224, 0.5);
}
[data-mode="samhain"] main a:hover {
  color: #c0ccec;
  text-decoration-color: rgba(192, 204, 236, 0.85);
}


/* ============================================================
 * VATES Landing - Samhain: 特商法テーブル
 * th（左ラベル）が #1C2A4D 直書きで夜に沈む → 古い光へ。境界線も月光に。
 * ============================================================ */
[data-mode="samhain"] .company-table th {
  color: #D4DDEB;
  border-bottom-color: rgba(212, 221, 235, 0.12);
}
[data-mode="samhain"] .company-table td {
  border-bottom-color: rgba(212, 221, 235, 0.12);
}


/* 言語ドロップダウンの矢印（昼 navy のまま沈むので夜は月光に）*/
[data-mode="samhain"] .lp-lang-arrow {
  color: rgba(212, 221, 235, 0.6);
}


/* ============================================================
 * VATES Landing - Manual 全展開ボタン（manual-toggle-all）
 * Light = .nav-signin 系 outlined secondary、Samhain = action-btn 系（沈んだ紺＋月光縁）
 * ============================================================ */
.manual-toggle-all {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  background: transparent;
  color: #1C2A4D;
  padding: 0.55rem 1.4rem;
  border: 1px solid #1C2A4D;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}
.manual-toggle-all:hover {
  background: rgba(28, 42, 77, 0.06);
}

[data-mode="samhain"] .manual-toggle-all {
  background: rgba(26, 35, 64, 0.5);
  color: rgba(244, 233, 212, 0.9);
  border: 1px solid rgba(212, 221, 235, 0.4);
}
[data-mode="samhain"] .manual-toggle-all:hover {
  background: rgba(43, 51, 84, 0.6);
  border-color: rgba(232, 168, 114, 0.5);
}


/* ============================================================
 * VATES Landing - Concept ページ比較表 (.concept-table)
 * 既存 table の昼基調を踏襲し、Samhain 夜は company-table と同基準
 * (th=古い光/月光、罫線=月光0.12) で沈み防止。
 * style2.css 末尾に追記する。
 * ============================================================ */

/* 昼: VATES列を主役に少し強調 */
.concept-table { margin: 1.5rem 0 2.5rem; }
.concept-table th:nth-child(3),
.concept-table td:nth-child(3) {
  color: #1C2A4D;
  font-weight: 500;
}
.concept-table td:nth-child(2) {
  color: rgba(28, 42, 77, 0.6);
}

/* 夜: 沈み防止 (company-table と同型) */
[data-mode="samhain"] .concept-table th {
  color: #D4DDEB;
  border-bottom-color: rgba(212, 221, 235, 0.12);
}
[data-mode="samhain"] .concept-table td {
  color: rgba(212, 221, 235, 0.7);
  border-bottom-color: rgba(212, 221, 235, 0.12);
}
/* VATES列(3列目)= 古い光で主役に */
[data-mode="samhain"] .concept-table th:nth-child(3),
[data-mode="samhain"] .concept-table td:nth-child(3) {
  color: rgba(244, 233, 212, 0.92);
}
/* RAG列(2列目)= さらに沈ませて対比 */
[data-mode="samhain"] .concept-table td:nth-child(2) {
  color: rgba(212, 221, 235, 0.5);
}


/* ============================================================
 * VATES Landing - Origin: 入れ子アコーディオン + 言語リスト
 * lp-feature-nested は親 lp-feature の中に入る（grid外）。
 * 見た目（昼夜・縦帯・開閉）は親 .lp-feature をそのまま継承。
 * ここでは配置の崩れ防止と、言語リスト固有の体裁のみ。
 * ============================================================ */
.lp-feature-nested {
  margin-top: 16px;
}
.lp-feature-nested .lp-feature-title {
  padding: 13px 18px 13px 24px;
}
.lp-feature-nested .lp-feature-title h3 {
  font-size: 1.02rem;
}

/* 言語リスト本体 */
.lp-lang-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-lang-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(28, 42, 77, 0.08);
}
.lp-lang-list li:last-child {
  border-bottom: none;
}
.lp-lang-name {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: #1C2A4D;
}
.lp-lang-notice {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(28, 42, 77, 0.7);
}

/* Samhain（夜）: 罫線=月光、名=古い光、注意文=月光寄り */
[data-mode="samhain"] .lp-lang-list li {
  border-bottom-color: rgba(212, 221, 235, 0.1);
}
[data-mode="samhain"] .lp-lang-name {
  color: rgba(244, 233, 212, 0.9);
}
[data-mode="samhain"] .lp-lang-notice {
  color: rgba(212, 221, 235, 0.72);
}


/* ============================================================
 * VATES Landing - Origin: 結語（Light, to the shadows.）
 * ④の最後に独立して置く締め。tagline と同じ EB Garamond の格。
 * 中央寄せ・上に余白・淡く沈めて余韻。
 * ============================================================ */
.origin-closing {
  max-width: 760px;
  margin: 3.5rem auto 1rem;
  text-align: center;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(28, 42, 77, 0.55);
}
[data-mode="samhain"] .origin-closing {
  color: rgba(212, 221, 235, 0.6);
}


/* ============================================================
 * VATES Landing - Samhain: 流れ星（shooting star）
 * ギャラクシーマン背景の紫の斜線。Samhain のみ・全ページ。
 * 色 = role-card 準拠（Belgae 菫 + 月光 + 篝火）。
 * 動き = 頭が先行して伸び、尾が追いついて消える、両端フェード。
 * 出現制御は header.js（間隔・位置・角度ランダム）。
 * ▼調整はここの :root 変数だけいじればよい
 * ============================================================ */
.shootingstar-layer {
  --ss-length: 180px;        /* 斜線の最大長 */
  --ss-thick: 1px;           /* 太さ */
  --ss-life: 200ms;          /* 一閃の寿命（頭が走り尾が消えるまで）。山下さん要望で視認性up、150ms→200ms */
  --ss-head: rgba(214, 200, 240, 0.95);   /* 頭=月光がかった藤 */
  --ss-mid:  rgba(43, 20, 56, 0.85);       /* 中=Samhain 菫 */
  --ss-tail: rgba(43, 20, 56, 0);          /* 尾=Samhain 菫→透明 */
  --ss-glow: rgba(140, 110, 170, 0.5);     /* 頭の滲み（Samhain 寄り） */
  --ss-flame: rgba(232, 168, 114, 0.25);   /* ほのかな篝火 */

  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.shootingstar {
  position: absolute;
  /* 角度はここで固定（rotate 専用）。中の <i> がアニメする＝transform を奪い合わない */
  transform: rotate(var(--ss-angle, 35deg));
  transform-origin: 100% 50%;
}

.shootingstar i {
  display: block;
  width: var(--ss-length);
  height: var(--ss-thick);
  /* 尾→頭のグラデ：左（尾）透明 → 菫 → 頭は明るい藤、篝火をかすかに混ぜる */
  background: linear-gradient(
    90deg,
    var(--ss-tail) 0%,
    var(--ss-mid) 55%,
    var(--ss-flame) 78%,
    var(--ss-head) 100%
  );
  border-radius: 999px;
  /* 頭の glow */
  box-shadow: 0 0 3px var(--ss-glow);
  transform-origin: 100% 50%;   /* 頭（右端）を起点に伸縮 */
  opacity: 0;
  will-change: transform, opacity;
}

.shootingstar.run i {
  animation: ss-streak var(--ss-life) cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes ss-streak {
  0%   { opacity: 0; transform: scaleX(0.05) translateX(0); }
  20%  { opacity: 1; transform: scaleX(0.5)  translateX(-120px); }
  60%  { opacity: 1; transform: scaleX(1)    translateX(-320px); }
  100% { opacity: 0; transform: scaleX(0.25) translateX(-480px); }
}

/* Samhain 以外では layer ごと隠す（保険。生成も JS 側で止める） */
:root:not([data-mode="samhain"]) .shootingstar-layer { display: none; }