/* トップ（index.html）の LP。ほかのページの style.css の上に重ねる。サイドバーは使わず、上に固定のナビを置く。
   色は落ち着いた濃紺と金を主にし、地は白と淡い灰色。光る効果・グラデーションの文字は使わない */
:root {
  --lp-ink: #16202e;        /* 見出し・本文 */
  --lp-sub: #566273;        /* 説明 */
  --lp-line: #e2e6eb;
  --lp-panel: #f5f6f8;      /* 淡い帯 */
  --lp-navy: #13233d;       /* 主の色（濃紺） */
  --lp-navy-2: #1d3557;
  --lp-gold: #a88a4a;       /* 差し色（落ち着いた金） */
  --lp-gold-soft: #f4efe4;
}

body.lp-page { background: #fff; color: var(--lp-ink); font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif; }
.lp-page .content { margin-left: 0; }
.lp-page main { max-width: none !important; padding: 0 !important; margin: 0; }
.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .lp-wrap { padding: 0 16px; } }

/* --- ナビ --- */
.lp-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--lp-line); }
.lp-nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.lp-logo { display: flex; align-items: center; gap: 10px; color: var(--lp-navy); font-weight: 800; font-size: 19px; letter-spacing: .02em; text-decoration: none; margin-right: auto; }
.lp-logo-mark { width: 24px; height: 24px; border-radius: 6px; background: var(--lp-navy); position: relative; }
.lp-logo-mark::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--lp-gold); }
.lp-nav nav { display: flex; gap: 24px; }
.lp-nav nav a { color: var(--lp-sub); text-decoration: none; font-size: 14px; font-weight: 500; }
.lp-nav nav a:hover { color: var(--lp-navy); }
@media (max-width: 900px) { .lp-nav nav { display: none; } }

/* --- ボタン --- */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 32px; border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; background: var(--lp-navy); color: #fff; transition: background .15s, transform .15s; }
.lp-btn::after { content: "→"; font-weight: 400; }
.lp-btn:hover { background: var(--lp-navy-2); color: #fff; transform: translateY(-1px); }
.lp-btn-ghost { background: #fff; color: var(--lp-navy); box-shadow: inset 0 0 0 1.5px var(--lp-navy); }
.lp-btn-ghost:hover { background: var(--lp-panel); color: var(--lp-navy); }
.lp-btn-sm { padding: 9px 20px; font-size: 14px; }
.lp-btn-sm::after { content: none; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.lp-center { justify-content: center; text-align: center; }

/* --- ファースト・ビュー（白い地） --- */
.lp-hero { position: relative; padding: 88px 0 72px; background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--lp-panel) 100%); }
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.lp-nowrap { display: inline-block; }
@media (max-width: 1000px) { .lp-hero-in { grid-template-columns: 1fr; } .lp-hero { padding: 48px 0 56px; } }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--lp-gold); background: var(--lp-gold-soft); }
.lp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lp-gold); }
.lp-hero h1 { color: var(--lp-ink); font-size: clamp(32px, 3.6vw, 50px); line-height: 1.35; margin: 0 0 24px; letter-spacing: .02em; font-weight: 800; }
.lp-grad { color: var(--lp-navy); background: linear-gradient(transparent 70%, var(--lp-gold-soft) 70%); }
.lp-hero-lead { font-size: 17px; line-height: 2; color: var(--lp-sub); max-width: 540px; margin: 0; }
.lp-hero-lead strong { color: var(--lp-ink); }
.lp-hero-shot { position: relative; margin: 0; }
.lp-hero-shot .lp-window { box-shadow: 0 30px 70px rgba(19, 35, 61, .18), 0 0 0 1px rgba(19, 35, 61, .06); }
.lp-chip { position: absolute; padding: 12px 18px; border-radius: 12px; font-size: 13px; color: var(--lp-sub); background: #fff;
  box-shadow: 0 14px 34px rgba(19, 35, 61, .14), 0 0 0 1px var(--lp-line); }
.lp-chip b { display: block; color: var(--lp-navy); font-size: 22px; line-height: 1.2; }
.lp-chip-a { left: -24px; bottom: -28px; }
.lp-chip-b { right: -16px; top: -26px; }
@media (max-width: 600px) { .lp-chip { display: none; } }

/* --- 画面写しの枠 --- */
.lp-window { border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 18px 44px rgba(19, 35, 61, .12), 0 0 0 1px rgba(19, 35, 61, .06); }
.lp-window img { display: block; width: 100%; height: auto; border: none; border-radius: 0; }
.lp-page figure img { cursor: zoom-in; }

/* --- 数字の帯（濃紺） --- */
.lp-stats { background: var(--lp-navy); color: #fff; padding: 56px 0; }
.lp-stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .lp-stats-in { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }
.lp-stat { padding: 4px 28px; border-left: 1px solid rgba(255,255,255,.14); }
.lp-stat:first-child { border-left: none; padding-left: 0; }
@media (max-width: 760px) { .lp-stat:nth-child(odd) { border-left: none; padding-left: 0; } }
.lp-stat b { display: block; font-size: clamp(30px, 3.2vw, 42px); font-weight: 700; line-height: 1.15; color: #fff; letter-spacing: .01em; }
.lp-stat b small { font-size: .5em; margin-left: 3px; color: #d8c79f; }
.lp-stat span { display: block; margin-top: 10px; font-size: 13.5px; color: #aab6c6; line-height: 1.6; }

/* --- 節 --- */
.lp-sec { padding: 104px 0; }
.lp-steps-sec { background: var(--lp-panel); }
@media (max-width: 760px) { .lp-sec { padding: 64px 0; } }
.lp-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; color: var(--lp-gold); font-weight: 700; font-size: 13px; letter-spacing: .18em; }
.lp-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--lp-gold); }
.lp-h2 { border: none !important; padding: 0 !important; margin: 0 0 56px !important; font-size: clamp(26px, 2.8vw, 36px) !important; line-height: 1.45; color: var(--lp-ink); font-weight: 800; letter-spacing: .02em; }

/* --- 4つの強み --- */
.lp-adv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; padding: 56px 28px; border-top: 1px solid var(--lp-line); }
.lp-adv-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.lp-adv-rev .lp-adv-text { order: 2; }
@media (max-width: 1000px) { .lp-adv, .lp-adv-rev { grid-template-columns: 1fr; gap: 28px; padding: 40px 16px; } .lp-adv-rev .lp-adv-text { order: 0; } }
.lp-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--lp-panel); box-shadow: inset 0 0 0 1px var(--lp-line); }
.lp-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--lp-navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lp-no { margin: 20px 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--lp-gold); }
.lp-adv h3 { margin: 0 0 16px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.5; color: var(--lp-ink); font-weight: 800; }
.lp-adv p { color: var(--lp-sub); line-height: 1.95; }
.lp-checks { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 12px; }
.lp-checks li { position: relative; padding-left: 28px; color: var(--lp-ink); font-size: 15px; }
.lp-checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--lp-gold); border-bottom: 2px solid var(--lp-gold); transform: rotate(-45deg); }
.lp-more { font-weight: 700; font-size: 15px; color: var(--lp-navy); text-decoration: none; border-bottom: 1px solid var(--lp-navy); padding-bottom: 2px; }
.lp-more::after { content: " →"; }
.lp-more:hover { color: var(--lp-gold); border-color: var(--lp-gold); }
.lp-adv-shot { margin: 0; }

/* RI の比べ */
.lp-compare { margin: 20px 0 26px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--lp-line); font-size: 14.5px; }
.lp-compare-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; }
.lp-compare-row span { padding: 12px 16px; border-top: 1px solid var(--lp-line); color: var(--lp-sub); }
.lp-compare-head span { border-top: none; background: var(--lp-panel); font-weight: 700; color: var(--lp-sub); font-size: 13px; }
.lp-compare .lp-hl { color: var(--lp-navy); font-weight: 700; background: #fbf9f4; }
.lp-compare-head .lp-hl { background: var(--lp-navy); color: #fff; }

/* --- 手順 --- */
.lp-steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-steps li { padding: 32px 28px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--lp-line); }
.lp-step-no { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--lp-gold); }
.lp-step-no::before { content: "STEP "; }
.lp-steps b { display: block; font-size: 19px; margin-bottom: 8px; color: var(--lp-ink); }
.lp-steps span:last-child { color: var(--lp-sub); font-size: 15px; line-height: 1.85; }

/* --- カード --- */
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--lp-line); border-left: 1px solid var(--lp-line); }
@media (max-width: 960px) { .lp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lp-grid { grid-template-columns: 1fr; } }
.lp-card { display: block; padding: 30px 28px; text-decoration: none; background: #fff; border-right: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line); transition: background .15s; }
.lp-card:hover { background: var(--lp-panel); }
.lp-card b { display: block; color: var(--lp-ink); font-size: 17px; margin-bottom: 10px; }
.lp-card span { color: var(--lp-sub); font-size: 14.5px; line-height: 1.85; }

/* --- 締め（濃紺） --- */
.lp-final { text-align: center; color: #c9d2de; padding: 112px 0; background: var(--lp-navy); position: relative; overflow: hidden; }
.lp-final::before { content: ""; position: absolute; inset: 0; background: url(images/hero-bg.png) center 70% / cover no-repeat; opacity: .14; filter: grayscale(.4); }
.lp-final .lp-wrap { position: relative; }
.lp-final h2 { border: none; padding: 0; margin: 8px 0 16px; color: #fff; font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; letter-spacing: .03em; }
.lp-final p { max-width: 760px; margin: 0 auto; line-height: 2; }
.lp-final .lp-badge { background: rgba(168, 138, 74, .18); color: #d8c79f; }
.lp-final .lp-dot { background: #d8c79f; }
.lp-final .lp-btn { background: #fff; color: var(--lp-navy); }
.lp-final .lp-btn:hover { background: var(--lp-gold-soft); }
.lp-final .lp-btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }

/* --- 浮かび上がり（動きを減らす設定なら動かさない） --- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.lp-page footer.site { background: #fff; }
.lp-page footer.site .inner { max-width: 1160px; padding: 24px 28px 36px !important; margin: 0 auto; }
.lp-page footer.site a { color: var(--lp-navy); }

/* 打ち出しの帯（約4,000の特徴量候補とオリジナルモデル） */
.lp-punch { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding-top: 16px; padding-bottom: 16px; }
@media (max-width: 860px) { .lp-punch { grid-template-columns: 1fr; gap: 8px; } }
.lp-punch-num { font-size: clamp(72px, 10vw, 136px); font-weight: 800; line-height: 1; color: #d8c79f; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.lp-punch-pre { font-size: .32em; margin-right: 6px; vertical-align: .9em; color: #d8c79f; }
.lp-punch-copy p { margin: 0; }
.lp-punch-lead { font-size: clamp(18px, 1.8vw, 22px); color: #c9d2de; font-weight: 500; }
.lp-punch-main { font-size: clamp(26px, 2.9vw, 38px); font-weight: 800; color: #fff; line-height: 1.35; margin: 4px 0 14px !important; letter-spacing: .02em; }
.lp-punch-sub { color: #aab6c6; font-size: 15px; line-height: 1.9; max-width: 640px; }
.lp-punch-link { display: inline-block; margin-top: 16px; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 1px solid #d8c79f; padding-bottom: 2px; }
.lp-punch-link::after { content: " →"; }
.lp-punch-link:hover { color: #d8c79f; }

/* =====================================================================
   中面のページ（body.lp-doc-page）。トップと同じ上のナビ・同じ幅（.lp-wrap 1160px）で、左に目次の枠、右に本文。
   本文の要素（style.css）の色はトップの濃紺と金に合わせる。
   ===================================================================== */
body.lp-page {
  --text: var(--lp-ink); --muted: var(--lp-sub); --line: var(--lp-line);
  --accent: var(--lp-navy); --accent-soft: #eef1f5; --code-bg: var(--lp-panel);
}
.lp-nav nav a[aria-current="page"] { color: var(--lp-navy); font-weight: 700; }

.lp-doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 96px; }
.lp-doc-page main { min-width: 0; }

/* 目次の枠（広い画面では上のナビの下に付いてくる） */
.lp-toc { position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow-y: auto;
  padding: 22px 18px; border-radius: 12px; background: var(--lp-panel); box-shadow: inset 0 0 0 1px var(--lp-line); }
.lp-toc-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding-left: 10px; color: var(--lp-gold); font-weight: 700; font-size: 12px; letter-spacing: .18em; }
.lp-toc-title::before { content: ""; width: 20px; height: 1px; background: var(--lp-gold); }
.lp-toc nav { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; line-height: 1.6; }
.lp-toc nav a { position: relative; display: block; padding: 7px 10px; border-radius: 8px; color: var(--lp-sub); text-decoration: none; }
.lp-toc nav a:hover { color: var(--lp-navy); background: #fff; }
.lp-toc nav a[aria-current="page"] { color: var(--lp-navy); font-weight: 700; background: #fff; box-shadow: 0 1px 2px rgba(19, 35, 61, .06), 0 0 0 1px var(--lp-line); }
.lp-toc nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--lp-gold); }
.lp-toc nav a.sub { padding-left: 26px; font-size: 13.5px; }
.lp-toc nav a.sub::before { content: none; }
.lp-toc nav a.sub[aria-current="page"]::before { content: ""; }
.lp-toc .other-app { margin: 16px 0 0; padding: 14px 10px 0; border-top: 1px solid var(--lp-line); font-size: 12.5px; color: var(--lp-sub); }
.lp-toc .other-app a { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--lp-navy); text-decoration: none; }
.lp-toc .other-app a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .lp-doc { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; padding-bottom: 64px; }
  /* 目次はハンバーガーの引き出しに出す（menu.js） */
  .lp-toc { display: none; }
}

/* 本文 */
.lp-doc-page main { font-size: 16px; line-height: 1.95; }
.lp-doc-page main h1 { margin: 0 0 20px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.45; font-weight: 800; letter-spacing: .02em; color: var(--lp-ink); }
.lp-doc-page main h2 { margin: 64px 0 16px; padding: 0 0 0 16px; border-top: none; position: relative; font-size: clamp(21px, 2vw, 25px); font-weight: 800; color: var(--lp-ink); }
.lp-doc-page main h2::before { content: ""; position: absolute; left: 0; top: .3em; bottom: .3em; width: 4px; border-radius: 2px; background: var(--lp-navy); }
.lp-doc-page main h3 { margin: 36px 0 10px; font-size: 18px; font-weight: 700; color: var(--lp-ink); }
.lp-doc-page main p.lead { font-size: 17.5px; line-height: 2; color: var(--lp-sub); }
.lp-doc-page main a { color: var(--lp-navy); text-underline-offset: 3px; }
.lp-doc-page main a:hover { color: var(--lp-gold); }
.lp-doc-page main figure img { border-color: var(--lp-line); border-radius: 8px; box-shadow: 0 10px 28px rgba(19, 35, 61, .08); }
.lp-doc-page main th { color: var(--lp-ink); }
.lp-doc-page .card { border-radius: 12px; padding: 18px 20px; }
.lp-doc-page a.card:hover { border-color: var(--lp-navy); background: var(--lp-panel); }
.lp-doc-page .card .title { color: var(--lp-navy); }
.lp-doc-page .next { margin-top: 56px; padding: 18px 22px; border-radius: 12px; background: var(--lp-gold-soft); }
@media (max-width: 520px) { .lp-doc-page main h2 { margin-top: 48px; } }

/* ==========================================================================
   スマホのメニュー（menu.js）。幅 900px 以下で、上のナビの右にハンバーガー、押すと右から引き出し
   ========================================================================== */
.lp-menu-button, .lp-menu-drawer, .lp-menu-overlay { display: none; }
@media (max-width: 900px) {
  .lp-nav-in { gap: 12px; }
  .lp-menu-button { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px;
    margin-right: -10px; border: 0; background: none; cursor: pointer; }
  .lp-menu-button span { display: block; height: 2px; border-radius: 1px; background: var(--lp-navy); transition: transform .2s, opacity .2s; }
  .lp-menu-open .lp-menu-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .lp-menu-open .lp-menu-button span:nth-child(2) { opacity: 0; }
  .lp-menu-open .lp-menu-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .lp-menu-overlay { display: block; position: fixed; inset: 64px 0 0 0; z-index: 48; background: rgba(19, 35, 61, .35);
    opacity: 0; pointer-events: none; transition: opacity .2s; }
  .lp-menu-open .lp-menu-overlay { opacity: 1; pointer-events: auto; }
  .lp-menu-drawer { display: block; position: fixed; top: 64px; right: 0; bottom: 0; z-index: 49; width: min(320px, 86vw); overflow-y: auto;
    padding: 20px 16px 32px; background: var(--lp-panel, #f6f7f9); box-shadow: -8px 0 24px rgba(19, 35, 61, .12);
    transform: translateX(100%); transition: transform .22s ease; }
  .lp-menu-open .lp-menu-drawer { transform: none; }
  .lp-menu-open { overflow: hidden; }
  .lp-menu-main { display: flex; flex-direction: column; gap: 2px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--lp-line); }
  .lp-menu-main a { display: block; padding: 10px; border-radius: 8px; color: var(--lp-navy); font-weight: 700; font-size: 15px; text-decoration: none; }
  .lp-menu-main:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
  .lp-menu-main a[aria-current="page"] { background: #fff; box-shadow: 0 0 0 1px var(--lp-line); }
  .lp-menu-toc .lp-toc-title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding-left: 10px; color: var(--lp-gold); font-weight: 700; font-size: 12px; letter-spacing: .18em; }
  .lp-menu-toc .lp-toc-title::before { content: ""; width: 20px; height: 1px; background: var(--lp-gold); }
  .lp-menu-toc nav { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; line-height: 1.6; }
  .lp-menu-toc nav a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--lp-sub); text-decoration: none; }
  .lp-menu-toc nav a.sub { padding-left: 26px; font-size: 13.5px; }
  .lp-menu-toc nav a[aria-current="page"] { color: var(--lp-navy); font-weight: 700; background: #fff; box-shadow: 0 0 0 1px var(--lp-line); }
  .lp-menu-toc .other-app { margin: 16px 0 0; padding: 14px 10px 0; border-top: 1px solid var(--lp-line); font-size: 12.5px; color: var(--lp-sub); }
  .lp-menu-toc .other-app a { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--lp-navy); text-decoration: none; }
}

/* 中面の本文の中のボタン（本文のリンクの色に負けないように）と、固定のナビに隠れない移動先 */
.lp-doc-page main .lp-cta-row { margin: 12px 0 20px; }
.lp-doc-page main a.lp-btn { color: #fff; text-decoration: none; }
.lp-doc-page main a.lp-btn-ghost { color: var(--lp-navy); }
.lp-doc-page main h3[id] { scroll-margin-top: 84px; }
