/* ============================================================
  【BMP】新フロントページ専用 CSS
  ファイル名：bmp-front.css
  読み込み条件：is_front_page()
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@600;700;800&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

.bmp-home {
    --bh-navy: #1e3a8a;
    --bh-navy-deep: #10204d;
    --bh-gold: #e8b84b;
    --bh-gold-deep: #b8892e;
    --bh-ink: #1a1e26;
    --bh-gray: #5a6372;
    --bh-tint: #f2f4f9;
    --bh-line: #dfe4ee;
    --bh-font-title: 'Shippori Mincho', serif;
    --bh-font-body: 'Noto Sans JP', sans-serif;

    font-family: var(--bh-font-body);
    color: var(--bh-ink);
    line-height: 1.9;
    font-size: 16px;
    overflow-wrap: break-word;
}

.bmp-home * { box-sizing: border-box; }

/* ---------- 共通レイアウト ---------- */
.bmp-home .bh-container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.bmp-home .bh-narrow { max-width: 860px; }
.bmp-home .bh-section { padding: 90px 0; background: #fff; }
.bmp-home .bh-section-slim { padding: 60px 0; }
.bmp-home .bh-section-tint { background: var(--bh-tint); }
.bmp-home .bh-section-dark { background: var(--bh-ink); color: #f2f2f2; }
.bmp-home .bh-section-navy { background: var(--bh-navy-deep); color: #fff; }
.bmp-home .bh-center { text-align: center; }
.bmp-home .bh-small { font-size: 0.85rem; }
.bmp-home .bh-pc-only { display: inline; }

/* ---------- 見出し ---------- */
.bmp-home .bh-eyebrow {
    font-family: var(--bh-font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--bh-navy);
    margin: 0 0 10px;
    text-align: center;
}
.bmp-home .bh-eyebrow-gold { color: var(--bh-gold); }
.bmp-home .bh-h2 {
    font-family: var(--bh-font-title);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.5;
    color: var(--bh-ink);
    text-align: center;
    margin: 0 0 30px;
    padding: 0;
    background: none;
    border: none;
}
.bmp-home .bh-h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--bh-gold);
    margin: 18px auto 0;
}
.bmp-home .bh-h2-light { color: #fff; }
.bmp-home .bh-lead {
    text-align: center;
    font-size: 1.1rem;
    color: var(--bh-gray);
    margin: 0 0 40px;
}
.bmp-home .bh-section-dark .bh-lead,
.bmp-home .bh-section-navy .bh-lead { color: rgba(255,255,255,0.75); }
.bmp-home .bh-text { font-size: 1.02rem; margin: 0 0 24px; }
.bmp-home .bh-text-light { color: rgba(255,255,255,0.88); }
.bmp-home .bh-text-dim { color: rgba(255,255,255,0.5); }

/* ---------- ファーストビュー（全画面スライドショー） ---------- */
/* 100vw化の際の横スクロール防止 */
body { overflow-x: hidden; }

/* Cocoonコンテナの白帯・余白除去（このページのみ有効） */
#content,
#content-in,
.main,
#main,
.article,
.entry-content {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
#navi { margin-bottom: 0 !important; }
.breadcrumb,
.article-header { display: none !important; }

/* 保険：万一サイドバー付きレイアウトのままでも強制的に1カラム幅にする */
#main { width: 100% !important; float: none !important; }
#content { width: 100% !important; }
.sidebar { display: none !important; }

.bmp-home .bh-fv {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 92svh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 120px 0;
    background: var(--bh-navy-deep);
}

/* 背景スライド（CSSのみでクロスフェード） */
.bmp-home .bh-fv-slides { position: absolute; inset: 0; z-index: 0; }
.bmp-home .bh-fv-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    animation: bhCrossfade 32s linear infinite;
    will-change: opacity;
}
.bmp-home .bh-fv-slide:nth-child(1) { animation-delay: 0s; }
.bmp-home .bh-fv-slide:nth-child(2) { animation-delay: 8s; }
.bmp-home .bh-fv-slide:nth-child(3) { animation-delay: 16s; }
.bmp-home .bh-fv-slide:nth-child(4) { animation-delay: 24s; }

/* iOS Safari等 background-attachment:fixed が不安定な環境向けフォールバック */
@media (max-width: 780px), (hover: none) and (pointer: coarse) {
    .bmp-home .bh-fv-slide { background-attachment: scroll; }
}

@keyframes bhCrossfade {
    0%   { opacity: 0; }
    6%   { opacity: 1; }
    28%  { opacity: 1; }
    34%  { opacity: 0; }
    100% { opacity: 0; }
}

/* 紺のオーバーレイ（文字の可読性と世界観の統一） */
.bmp-home .bh-fv::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 1200px 600px at 80% -10%, rgba(232,184,75,0.16), transparent 60%),
        linear-gradient(160deg, rgba(16,32,77,0.92) 0%, rgba(22,41,94,0.82) 55%, rgba(30,58,138,0.72) 100%);
}
.bmp-home .bh-fv-inner { position: relative; z-index: 2; }
.bmp-home .bh-fv-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.65);
    margin: 0 0 30px;
}
.bmp-home .bh-title {
    font-family: var(--bh-font-title);
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.55;
    margin: 0 0 30px;
    color: #fff;
}
.bmp-home .bh-title .bh-gold { color: var(--bh-gold); }
.bmp-home .bh-fv-sub {
    font-size: 1.15rem;
    line-height: 2.1;
    color: rgba(255,255,255,0.85);
    margin: 0 0 26px;
}
.bmp-home .bh-fv-tagline {
    font-family: var(--bh-font-title);
    font-size: 1rem;
    letter-spacing: 0.12em;
    color: var(--bh-gold);
    margin: 0 0 46px;
}
.bmp-home .bh-fv-tagline::before,
.bmp-home .bh-fv-tagline::after { content: "—"; margin: 0 0.8em; opacity: 0.6; }

/* ---------- ボタン ---------- */
.bmp-home .bh-fv-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.bmp-home .bh-btn {
    display: inline-block;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 17px 52px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.bmp-home .bh-btn:hover { transform: translateY(-2px); }
.bmp-home .bh-btn-gold {
    background: var(--bh-gold);
    color: var(--bh-navy-deep) !important;
    box-shadow: 0 10px 26px rgba(232,184,75,0.35);
}
.bmp-home .bh-btn-gold:hover { background: #f0c765; }
.bmp-home .bh-btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.85) !important;
    border: 1px solid rgba(255,255,255,0.45);
    font-size: 0.95rem;
    padding: 13px 40px;
}
.bmp-home .bh-btn-ghost:hover { border-color: #fff; color: #fff !important; }
.bmp-home .bh-btn-navy {
    background: var(--bh-navy);
    color: #fff !important;
    box-shadow: 0 10px 26px rgba(30,58,138,0.25);
}
.bmp-home .bh-btn-navy:hover { background: #2447a8; }
.bmp-home .bh-btn-ghost-navy {
    background: transparent;
    color: var(--bh-navy) !important;
    border: 1.5px solid var(--bh-navy);
    font-size: 0.95rem;
    padding: 13px 40px;
}
.bmp-home .bh-btn-ghost-navy:hover { background: var(--bh-navy); color: #fff !important; }

/* ---------- 納得設計とは ---------- */
.bmp-home .bh-quote {
    font-family: var(--bh-font-title);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2;
    text-align: center;
    color: var(--bh-navy);
    border-top: 1px solid var(--bh-line);
    border-bottom: 1px solid var(--bh-line);
    padding: 34px 20px;
    margin: 0 0 40px;
}
.bmp-home .bh-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 50px 0;
}
.bmp-home .bh-pillar {
    background: var(--bh-tint);
    border-top: 3px solid var(--bh-navy);
    border-radius: 0 0 14px 14px;
    padding: 28px 24px;
}
.bmp-home .bh-pillar-en {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--bh-gold-deep);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.bmp-home .bh-pillar-title {
    font-family: var(--bh-font-title);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--bh-ink);
}
.bmp-home .bh-pillar p { font-size: 0.93rem; margin: 0; color: var(--bh-gray); }

/* ---------- 振り分けカード ---------- */
.bmp-home .bh-route-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    max-width: 1080px;
    margin: 0 auto;
}
.bmp-home .bh-route-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--bh-line);
    border-radius: 18px;
    padding: 34px 28px;
    text-decoration: none;
    color: var(--bh-ink);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bmp-home .bh-route-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(16,32,77,0.14);
    border-color: var(--bh-gold);
}
.bmp-home .bh-route-num {
    font-family: var(--bh-font-title);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--bh-gold-deep);
    margin-bottom: 14px;
}
.bmp-home .bh-route-symptom {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bh-navy);
    background: var(--bh-tint);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 0 0 18px;
    line-height: 1.6;
}
.bmp-home .bh-route-title {
    font-family: var(--bh-font-title);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--bh-ink);
}
.bmp-home .bh-route-desc {
    font-size: 0.93rem;
    color: var(--bh-gray);
    margin: 0 0 22px;
    flex-grow: 1;
}
.bmp-home .bh-route-link {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--bh-navy);
}
.bmp-home .bh-route-card:hover .bh-route-link { color: var(--bh-gold-deep); }

/* ---------- プロフィール ---------- */
.bmp-home .bh-profile {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.bmp-home .bh-profile-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    border: 4px solid var(--bh-tint);
}
.bmp-home .bh-profile-name {
    font-family: var(--bh-font-title);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 18px;
    color: var(--bh-ink);
}
.bmp-home .bh-profile-text p { font-size: 1rem; margin: 0 0 18px; }

/* ---------- 原点の事例 ---------- */
.bmp-home .bh-case {
    border: 1px solid rgba(232,184,75,0.35);
    border-radius: 18px;
    padding: 40px 36px;
    background: rgba(255,255,255,0.03);
}
.bmp-home .bh-case p { font-size: 1rem; margin: 0 0 18px; color: rgba(255,255,255,0.85); }
.bmp-home .bh-case-head {
    font-family: var(--bh-font-title);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 20px !important;
}
.bmp-home .bh-case-result {
    font-family: var(--bh-font-title);
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff !important;
    margin: 26px 0 !important;
    line-height: 1.6;
}
.bmp-home .bh-case-result span { color: var(--bh-gold); }
.bmp-home .bh-case .bh-gold { color: var(--bh-gold); }
.bmp-home .bh-case-note {
    font-size: 0.8rem !important;
    color: rgba(255,255,255,0.45) !important;
    margin-bottom: 0 !important;
}

/* ---------- 料金 ---------- */
.bmp-home .bh-price-list {
    list-style: none;
    margin: 0 0 34px;
    padding: 0;
    border-top: 1px solid var(--bh-line);
}
.bmp-home .bh-price-list li {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr;
    gap: 16px;
    align-items: center;
    padding: 24px 8px;
    border-bottom: 1px solid var(--bh-line);
}
.bmp-home .bh-price-name { font-weight: 700; font-size: 1.02rem; }
.bmp-home .bh-price-val {
    font-family: var(--bh-font-title);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--bh-navy);
    text-align: center;
    white-space: nowrap;
}
.bmp-home .bh-price-val span { font-size: 0.85rem; font-weight: 700; margin-left: 2px; }
.bmp-home .bh-price-note { font-size: 0.83rem; color: var(--bh-gray); line-height: 1.7; }

/* ---------- メルマガ ---------- */
.bmp-home .bh-embed {
    display: flex;
    justify-content: center;
    margin: 36px 0 14px;
}
.bmp-home .bh-embed iframe {
    width: 480px;
    max-width: 100%;
    height: 160px;
    border: none;
    border-radius: 12px;
    background: #fff;
}

/* ---------- Cocoon側パーツの調整（このページのみ） ---------- */
/* フロントページにSNSシェアボタンは不要なので非表示 */
.sns-share,
.sns-follow,
.sns-share-message { display: none !important; }

/* 本文末尾〜フッター間の溝つぶし */
#content { margin-bottom: 0 !important; padding-bottom: 0 !important; }
#footer { margin-top: 0 !important; }
.entry-footer,
.article-footer,
#sidebar { display: none !important; }

/* 保険：ページの地色を墨色に */
body { background-color: #1a1e26 !important; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
    .bmp-home .bh-pillars,
    .bmp-home .bh-route-grid { grid-template-columns: 1fr; }
    .bmp-home .bh-title { font-size: 2.3rem; }
}
@media (max-width: 640px) {
    .bmp-home { font-size: 15px; }
    .bmp-home .bh-section { padding: 64px 0; }
    .bmp-home .bh-fv { padding: 80px 0 70px; }
    .bmp-home .bh-title { font-size: 1.85rem; line-height: 1.65; }
    .bmp-home .bh-fv-sub { font-size: 1rem; }
    .bmp-home .bh-h2 { font-size: 1.6rem; }
    .bmp-home .bh-quote { font-size: 1.2rem; }
    .bmp-home .bh-pc-only { display: none; }
    .bmp-home .bh-btn { padding: 15px 40px; font-size: 1rem; }
    .bmp-home .bh-profile { flex-direction: column; align-items: center; text-align: left; }
    .bmp-home .bh-profile-img { width: 150px; height: 150px; }
    .bmp-home .bh-case { padding: 28px 22px; }
    .bmp-home .bh-price-list li {
        grid-template-columns: 1fr;
        gap: 6px;
        text-align: center;
        padding: 20px 8px;
    }
    .bmp-home .bh-price-val { font-size: 1.5rem; }
}

/* 動きを減らす設定のユーザーに配慮 */
@media (prefers-reduced-motion: reduce) {
    .bmp-home .bh-btn,
    .bmp-home .bh-route-card { transition: none; }
    .bmp-home .bh-fv-slide { animation: none; }
    .bmp-home .bh-fv-slide:first-child { opacity: 1; }
}

/* CocoonのH3デフォルト装飾完全リセット */
.article .bmp-home h3,
.bmp-home h3 {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-left: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.article .bmp-home h3::before,
.article .bmp-home h3::after,
.bmp-home h3::before,
.bmp-home h3::after {
    content: none !important;
    display: none !important;
}
