/* =========================================================
   1. Variables & Reset
========================================================= */
:root {
    /* 基本カラー */
    --bg-base: #ffffff;
    --bg-light: #f9f9f9;
    --text-main: #000000;
    --text-muted: #666666;
    --border-color: #e5e5e5;
    
    /* テーマカラー */
    --color-kodomo: #eb2c5e;
    --color-kodomo-light: #fff0f2;
    --color-sogo: #0062b0;
    --color-sogo-light: #eaf3fa;
    --color-kasai: #d46037;
    --color-kasai-light: #fdf2ed;
    
    /* トランジション・フォント */
    --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    --font-en: 'Inter', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    border-radius: 0; /* 角丸の完全廃止 */
}
html, body {
    scroll-behavior: smooth;
    overflow-x: hidden; /* 横揺れ防止 */
    width: 100%;
}
body {
    font-family: var(--font-jp);
    color: var(--text-main);
    background-color: var(--bg-base);
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* グレースケール解除 */
}
.img-sp { display: none; }

/* =========================================================
   2. 各セクションのテーマカラー設定
========================================================= */
#kodomo { 
    --theme-color: var(--color-kodomo); 
    --theme-bg: var(--color-kodomo-light); 
    background-color: var(--theme-bg); 
}
#sogo { 
    --theme-color: var(--color-sogo); 
    --theme-bg: var(--color-sogo-light); 
    background-color: var(--theme-bg); 
}
#kasai { 
    --theme-color: var(--color-kasai); 
    --theme-bg: var(--color-kasai-light); 
    background-color: var(--theme-bg); 
}
#offices { 
    --theme-color: var(--color-sogo); 
    background-color: var(--bg-light); 
}

/* =========================================================
   3. 共通コンポーネント
========================================================= */
/* ボタン共通スタイル（通常：白背景＋カラー枠、ホバー：カラー背景＋白文字） */
.cta-list-horizontal a, 
.btn-tier,
.btn-outline-dark {
    display: flex; justify-content: center; align-items: center;
    background-color: #ffffff;
    color: var(--theme-color);
    border: 2px solid var(--theme-color);
    transition: all var(--transition-fast);
    font-weight: 600;
    text-align: center;
}
.cta-list-horizontal a:hover, 
.btn-tier:hover,
.btn-outline-dark:hover {
    background-color: var(--theme-color);
    color: #ffffff;
}
.cta-list-horizontal { display: flex; gap: 12px; list-style: none; margin-bottom: 80px; }
.cta-list-horizontal li { flex: 1; }
.cta-list-horizontal li a { padding: 16px 12px; gap: 8px; font-size: 0.95rem; white-space: nowrap; }
.cta-list-horizontal .arrow { font-family: var(--font-en); transition: transform var(--transition-fast); }
.cta-list-horizontal li a:hover .arrow { transform: translateX(5px); }
.btn-tier { padding: 10px 24px; font-size: 0.9rem; }
.btn-outline-dark { padding: 20px; flex: 1; }

/* =========================================================
   4. Header & Navigation
========================================================= */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    background: rgba(255, 255, 255, 0.95); /* 最初から背景表示 */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: block; width: 200px; text-decoration: none; }
.global-nav .nav-list { display: flex; gap: 40px; list-style: none; align-items: center; }
.global-nav a { font-size: 0.85rem; font-weight: 500; }
.global-nav a:hover { color: var(--text-muted); }

/* マイページボタン（総合保障型カラー） */
.btn-outline {
    background-color: #ffffff; color: var(--color-sogo);
    border: 2px solid var(--color-sogo); padding: 8px 24px; font-weight: 600;
}
.btn-outline:hover { background-color: var(--color-sogo); color: #ffffff; }

/* Mega Menu */
.nav-item { position: relative; }
.nav-link { cursor: pointer; display: flex; align-items: center; padding: 10px 0; }
.nav-link::after { content: ''; display: inline-block; width: 6px; height: 6px; border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); margin-left: 8px; margin-top: -2px; transition: var(--transition-fast); }
.nav-link.is-active::after { transform: rotate(-135deg); margin-top: 4px; }
.mega-dropdown { position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(10px); background: #ffffff; border: 1px solid var(--border-color); box-shadow: 0 20px 40px rgba(0,0,0,0.08); width: max-content; min-width: 380px; padding: 40px; opacity: 0; visibility: hidden; pointer-events: none; transition: var(--transition-fast); z-index: 200; }
.mega-dropdown.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown-header { margin-bottom: 32px; text-align: center; }
.drop-title { display: block; font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.drop-desc { font-size: 0.85rem; color: var(--text-muted); }

/* メガメニューのボタン配色 */
.drop-btn-list { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.drop-btn { display: block; width: 100%; text-align: center; border: none; padding: 20px; font-weight: 500; line-height: 1.5; transition: var(--transition-fast); }
.drop-btn .text-sm { font-size: 0.8rem; font-weight: 400; display: block; margin-top: 6px; opacity: 0.8; }
.drop-catch { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 4px; letter-spacing: 0.05em; }

.drop-btn-list li:nth-child(1) .drop-btn { background-color: var(--color-kodomo-light); color: var(--text-main); }
.drop-btn-list li:nth-child(1) .drop-catch { color: var(--color-kodomo); }
.drop-btn-list li:nth-child(1) .drop-btn:hover { background-color: var(--color-kodomo); color: #ffffff; }

.drop-btn-list li:nth-child(2) .drop-btn { background-color: var(--color-sogo-light); color: var(--text-main); }
.drop-btn-list li:nth-child(2) .drop-catch { color: var(--color-sogo); }
.drop-btn-list li:nth-child(2) .drop-btn:hover { background-color: var(--color-sogo); color: #ffffff; }

.drop-btn-list li:nth-child(3) .drop-btn { background-color: var(--color-kasai-light); color: var(--text-main); }
.drop-btn-list li:nth-child(3) .drop-catch { color: var(--color-kasai); }
.drop-btn-list li:nth-child(3) .drop-btn:hover { background-color: var(--color-kasai); color: #ffffff; }
.drop-btn-list li:nth-child(1) .drop-btn:hover .drop-catch, .drop-btn-list li:nth-child(1) .drop-btn:hover .text-sm,
.drop-btn-list li:nth-child(2) .drop-btn:hover .drop-catch, .drop-btn-list li:nth-child(2) .drop-btn:hover .text-sm,
.drop-btn-list li:nth-child(3) .drop-btn:hover .drop-catch, .drop-btn-list li:nth-child(3) .drop-btn:hover .text-sm { color: rgba(255,255,255,0.9); }

/* Hamburger & Mobile Menu */
.hamburger { display: none; background: none; border: none; cursor: pointer; width: 24px; height: 16px; position: relative; z-index: 101; }
.hamburger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--text-main); transition: var(--transition-fast); }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { bottom: 0; }
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--bg-base); z-index: 99; display: flex; flex-direction: column; justify-content: center; padding: 40px; opacity: 0; pointer-events: none; transition: var(--transition-fast); }
.mobile-menu.is-active { opacity: 1; pointer-events: auto; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { margin-bottom: 32px; font-size: 1.5rem; font-weight: 300; }

/* =========================================================
   5. Hero Section
========================================================= */
.hero-split { display: grid; grid-template-columns: repeat(3, 1fr); height: 100vh; width: 100%; }
.hero-pane { position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.hero-pane img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); z-index: 1; }
.pane-content {
    position: relative; z-index: 3; padding: 60px 40px; color: var(--text-main); width: 100%;
    /* ソリッドな白フチ取りシャドウ */
    text-shadow: 
        2px 2px 0px #ffffff, -2px 2px 0px #ffffff, 2px -2px 0px #ffffff, -2px -2px 0px #ffffff,
        0px 2px 0px #ffffff, 0px -2px 0px #ffffff, 2px 0px 0px #ffffff, -2px 0px 0px #ffffff,
        0px 4px 15px rgba(255, 255, 255, 0.9);
}
.pane-en { display: block; font-family: var(--font-en); font-size: 0.75rem; letter-spacing: 0.2em; margin-bottom: 12px; }
.hero-main-title { font-size: 2.8rem; font-weight: 700; margin-bottom: 16px; line-height: 1.2; letter-spacing: 0.05em; }
.hero-catch { font-size: 1.4rem; font-weight: 600; margin-bottom: 24px; line-height: 1.4; letter-spacing: 0.02em; }
.hero-catch .text-sub { display: block; font-size: 1.1rem; font-weight: 400; margin-top: 8px; color: var(--text-main); }
.hero-sub { font-size: 1.1rem; font-weight: 400; line-height: 1.8; opacity: 0.9; }
.hero-sub .text-note { display: block; font-size: 0.8rem; margin-top: 4px; margin-left: 1em; opacity: 0.7; }
.hover-highlight { position: absolute; inset: 0; background-color: rgba(255, 255, 255, 0); transition: background-color var(--transition-fast); z-index: 2; }
.hero-pane:hover img { transform: scale(1.05); }
.hero-pane:hover .hover-highlight { background-color: rgba(255, 255, 255, 0.6); }

/* =========================================================
   6. Sections Layout (Minimal)
========================================================= */
.section-minimal { padding: 120px 40px; }
.container { max-width: 1000px; margin: 0 auto; }
.pt-large { padding-top: 60px; margin-top: 60px; }
.content-block { margin-bottom: 80px; }
.content-head-center { text-align: center; margin-bottom: 40px; }
.content-head-center h3 { font-size: 2rem; font-weight: 600; color: var(--theme-color); }

.section-header-new { margin-bottom: 80px; display: flex; flex-direction: column; align-items: flex-start; }
.section-subtitle {
    font-family: var(--font-en); font-size: 1rem; letter-spacing: 0.15em;
    color: var(--theme-color); margin-bottom: 8px; display: block; background-color: transparent;
}
.section-header-new .section-title { font-size: 2.5rem; font-weight: 600; letter-spacing: 0.05em; line-height: 1.2; }

.main-visual { margin-bottom: 60px; width: 100%; overflow: hidden; }
.banner-image { margin: 80px 0; }

/* 4つのポイント */
.point-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 16px; }
.point-item { background-color: #ffffff; padding: 32px 24px; text-align: center; display: flex; flex-direction: column; }
.point-num { font-family: var(--font-en); font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--theme-color); margin-bottom: 16px; }
.point-text { font-size: 1.1rem; font-weight: 600; line-height: 1.6; letter-spacing: 0.02em; }
.point-note { font-size: 0.85rem; color: var(--text-muted); text-align: right; }

/* 心配事 */
.worries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.worry-item { text-align: center; }
.worry-item img { margin-bottom: 16px; border: none; box-shadow: none; }
.worry-item p { font-size: 1.1rem; font-weight: 500; line-height: 1.5; }

/* =========================================================
   7. Specific Components
========================================================= */
/* お支払事例 */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.case-card { background-color: #ffffff; padding: 32px; display: flex; flex-direction: column; }
.case-badge { display: inline-block; font-size: 0.85rem; font-weight: 600; background-color: var(--theme-color); color: #ffffff; padding: 6px 16px; margin-bottom: 16px; width: fit-content; }
.case-scene { font-size: 1.15rem; font-weight: 500; margin-bottom: 24px; line-height: 1.6; flex-grow: 1; }
.case-calc { display: flex; justify-content: space-between; align-items: center; background-color: transparent; padding: 0; margin-bottom: 12px; }
.calc-formula { font-size: 1rem; color: var(--text-muted); }
.calc-result { font-size: 1.25rem; }
.calc-result strong { font-size: 2rem; font-family: var(--font-en); }
.calc-result .equal { margin-right: 8px; font-weight: 300; }
.case-note-sm { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* 万が一の保障 特別枠 */
.case-card-special { background: var(--bg-light); }
.death-benefit-grid { display: flex; gap: 16px; margin: 20px 0; }
.benefit-item { flex: 1; background: #ffffff; padding: 16px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.benefit-label { font-size: 0.85rem; margin-bottom: 8px; color: var(--text-muted); }
.benefit-price strong { font-size: 1.75rem; font-family: var(--font-en); }
.case-note-bottom { font-size: 0.85rem; color: var(--text-muted); text-align: right; }

/* こども型 テーブル */
.course-table-v2 { width: 100%; border-collapse: separate; border-spacing: 4px; margin-bottom: 16px; background: transparent; }
.course-table-v2 th, .course-table-v2 td { padding: 24px; text-align: center; vertical-align: middle; border: none; }
.col-type { width: 35%; }
.type-sub { display: block; font-size: 0.85rem; margin-bottom: 4px; color: rgba(255,255,255,0.9); }
.type-name { display: block; font-size: 1.5rem; font-weight: 600; margin-bottom: 8px; }
.type-price { display: inline-block; font-family: var(--font-en); font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.5); padding-bottom: 2px; color: rgba(255,255,255,0.9); }
.course-table-v2 td strong { font-size: 1.75rem; font-family: var(--font-en); }
.course-table-v2 th strong { font-size: 1.75rem; font-family: var(--font-en); }
.course-table-v2 thead th { background-color: var(--theme-color); color: #ffffff; }
.course-table-v2 thead th.col-feature { background-color: #ffffff; color: var(--theme-color); width: 30%; text-align: left; }
.course-table-v2 tbody td { background-color: #ffffff; }
.course-table-v2 tbody td.col-feature { background-color: var(--theme-color); color: #ffffff; text-align: left; }
.course-table-v2 tbody td.col-feature strong, .course-table-v2 tbody td.col-feature .text-sm { color: #ffffff; }
.course-note { font-size: 0.85rem; color: var(--text-muted); text-align: right; margin-bottom: 32px; }
.course-actions { display: flex; gap: 24px; }

/* 総合保障型 スタック */
.target-banner-light { display: inline-block; background-color: #ffffff; color: var(--theme-color); padding: 12px 32px; font-size: 0.95rem; font-weight: 500; margin-bottom: 40px; }
.course-stack { display: flex; flex-direction: column; gap: 32px; }
.course-tier { background: #ffffff; display: flex; flex-direction: column; }
.tier-recommend { border: 4px solid var(--theme-color); }
.tier-recommend .tier-header { background: var(--theme-color); }
.tier-header { padding: 20px 32px; background: var(--theme-color); }
.tier-sub { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.9); margin-bottom: 4px; }
.tier-header h4 { font-size: 1.5rem; font-weight: 600; color: #ffffff; }
.tier-body { display: flex; padding: 32px; gap: 40px; align-items: center; }
.tier-features { flex: 1; }
.feature-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid #f2f2f2; }
.feature-row:last-of-type { border-bottom: none; }
.f-label { font-size: 1.05rem; font-weight: 500; }
.f-note { display: block; font-size: 0.8rem; color: var(--text-muted); font-weight: 400; margin-top: 4px; }
.f-value { font-size: 1.1rem; text-align: right; }
.f-value strong { font-size: 1.75rem; font-family: var(--font-en); margin: 0 4px; }
.f-note-bottom { font-size: 0.8rem; color: var(--text-muted); text-align: right; margin-top: 12px; }
.tier-action { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 220px; padding-left: 40px; background-color: #ffffff; }
.tier-price { text-align: center; margin-bottom: 16px; }
.p-label { display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 4px; }
.p-val { font-size: 1.25rem; }
.p-val strong { font-size: 2.5rem; font-family: var(--font-en); line-height: 1; }
.course-note-bottom { font-size: 0.85rem; color: var(--text-muted); margin-top: 24px; line-height: 1.6; }

/* 火災共済 */
.catch-large { font-size: 1.5rem; font-weight: 600; margin-bottom: 16px; }
.target-sub-text { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 40px; }
.kasai-target-table { width: 100%; border-collapse: separate; border-spacing: 8px; margin: 0 auto; background: transparent; }
.kasai-target-table th, .kasai-target-table td { padding: 32px 24px; text-align: center; width: 33.333%; border: none; }
.kasai-target-table th { font-weight: 600; color: #ffffff; font-size: 1rem; background-color: var(--theme-color); }
.kasai-target-table td { background: #ffffff; font-size: 1.25rem; }
.kasai-target-table td strong { color: var(--theme-color); font-weight: 600; font-size: 1.5rem; margin: 0 4px; }

.jishin-tokuyaku-box { background: #ffffff; padding: 60px 40px 40px; position: relative; margin-top: 32px; }
.jt-header-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--theme-color); color: #ffffff; padding: 12px 32px; font-size: 1.25rem; font-weight: 700; white-space: nowrap; }
.jt-intro { text-align: center; margin-bottom: 40px; font-size: 1.15rem; font-weight: 500; line-height: 1.6; }
.jt-main-offer { background: var(--theme-bg); padding: 48px 40px; text-align: center; margin-bottom: 32px; }
.jt-offer-text { font-size: 1.75rem; font-weight: 600; margin-bottom: 16px; display: flex; justify-content: center; align-items: baseline; gap: 16px; }
.highlight-15 { font-size: 5rem; font-family: var(--font-en); line-height: 1; position: relative; display: inline-block; color: var(--theme-color); }
.highlight-15::after { content: ''; position: absolute; bottom: 8px; left: 0; width: 100%; height: 20px; background: rgba(0, 0, 0, 0.08); z-index: -1; }
.highlight-15 .percent { font-size: 2.5rem; margin-left: 4px; }
.jt-offer-sub { font-size: 1.35rem; font-weight: 600; margin-bottom: 32px; }
.jt-offer-note { font-size: 0.9rem; color: var(--text-muted); text-align: left; background: var(--bg-light); padding: 20px; line-height: 1.6; }
.jt-footer-notes p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; }

/* FAQ */
.faq-wrapper { max-width: 1000px; width: 100%; margin: 0 auto; }
.accordion-minimal { margin-bottom: 8px; }
.accordion-minimal summary { padding: 20px 24px; background-color: #ffffff; display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; font-weight: 500; cursor: pointer; list-style: none; }
.accordion-minimal summary::-webkit-details-marker { display: none; }
.accordion-minimal .icon { font-family: var(--font-en); font-weight: 300; font-size: 1.5rem; transition: transform var(--transition-fast); }
.accordion-minimal[open] .icon { transform: rotate(45deg); }
.accordion-content { padding: 0 24px 24px; background-color: #ffffff; color: var(--text-muted); line-height: 1.8; margin-top: -8px; }

/* リンクバナー */
.section-links-wrapper { margin-top: 40px; }
.section-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.section-link-card { display: flex; flex-direction: column; background: var(--bg-base); transition: var(--transition-fast); }
.card-img-wrap { overflow: hidden; }
.card-img-wrap img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform var(--transition-slow); }
.link-card-body { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; background-color: #ffffff; color: var(--text-main); transition: all var(--transition-fast); }
.link-card-body h4 { font-size: 1.1rem; font-weight: 500; }
.link-card-body .arrow { font-family: var(--font-en); font-size: 1.25rem; transition: transform var(--transition-fast); }
.section-link-card:hover .card-img-wrap img { transform: scale(1.05); }
.section-link-card:hover .link-card-body .arrow { transform: translateX(8px); }

.section-link-card[href="#kodomo"]:hover .link-card-body { background-color: var(--color-kodomo); color: #ffffff; }
.section-link-card[href="#sogo"]:hover .link-card-body { background-color: var(--color-sogo); color: #ffffff; }
.section-link-card[href="#kasai"]:hover .link-card-body { background-color: var(--color-kasai); color: #ffffff; }

/* オフィス */
.office-row { display: flex; gap: 40px; padding: 40px 0; }
.office-image { flex: 1; }
.office-info { flex: 2; display: flex; flex-direction: column; justify-content: center; }
.office-info h3 { font-size: 1.5rem; margin-bottom: 16px; font-weight: 500; }
.office-info p { color: var(--text-muted); margin-bottom: 8px; }
.tel-link { margin-top: 16px; font-family: var(--font-en); font-size: 1.25rem; border-bottom: 1px solid currentColor; align-self: flex-start; }

/* =========================================================
   8. Footer
========================================================= */
.footer { background-color: #0062b0; color: var(--bg-base); padding: 80px 40px; }
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; }
.footer-logo { display: block; width: 220px; text-decoration: none; margin-bottom: 16px; }
.copyright { font-family: var(--font-en); font-size: 0.8rem; color: #ffffff; opacity: 0.8; }

/* =========================================================
   9. Media Queries (Responsive)
========================================================= */
@media (max-width: 1024px) {
    .hero-split { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
    .hero-pane { min-height: 50vh; }
    .pane-content { padding: 40px 20px; }
    .hero-main-title { font-size: 2rem; }
    .hero-catch { font-size: 1.4rem; }
    .hero-catch .text-sub { font-size: 1rem; }
    .hero-sub { font-size: 0.85rem; }
    .section-minimal { padding: 80px 20px; }
    .section-header-new { margin-bottom: 40px; }
    .section-header-new .section-title { font-size: 2rem; }
    .cta-list-horizontal { flex-wrap: wrap; }
    .cta-list-horizontal li { flex: 1 1 calc(50% - 12px); }
    .worries-grid { grid-template-columns: 1fr; gap: 32px; }
    .case-grid { grid-template-columns: 1fr; }
    .death-benefit-grid { flex-direction: column; }
    .course-actions { flex-direction: column; gap: 16px; }
    .office-row { flex-direction: column; gap: 24px; padding: 40px 0; }
    .section-links-grid { grid-template-columns: 1fr; gap: 16px; }
    .point-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
    .img-pc { display: none !important; }
    .img-sp { display: block !important; }
    .global-nav { display: none; }
    .hamburger { display: block; }
    .header-inner { padding: 0 20px; }
    
    .hero-split { height: 100vh; grid-template-rows: repeat(3, 1fr); }
    .hero-pane { min-height: auto; height: 100%; }
    .pane-content { padding: 20px 20px 15px; }
    .hero-sub { display: none; }
    .hero-main-title { font-size: 1.7rem; margin-bottom: 8px; }
    .hero-catch { font-size: 1.1rem; margin-bottom: 0; }
    .hero-catch .text-sub { font-size: 0.9rem; margin-top: 4px; }

    .cta-list-horizontal li { flex: 1 1 100%; }
    .course-table-v2 th, .course-table-v2 td { padding: 16px 8px; font-size: 0.9rem; }
    .type-name { font-size: 1.25rem; }
    .course-table-v2 td strong { font-size: 1.25rem; }
    
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
    .point-grid { grid-template-columns: 1fr; gap: 24px; }
    
    .case-calc { flex-direction: column; align-items: flex-end !important; gap: 8px; padding: 16px; }
    .calc-formula { width: 100%; text-align: left; font-size: 0.95rem; border-bottom: 1px dashed #cccccc; padding-bottom: 8px; }
    .calc-result { text-align: right; }

    .tier-body { flex-direction: column; padding: 24px; gap: 24px; }
    .tier-action { width: 100%; padding-left: 0; padding-top: 24px; }
    .feature-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .f-value { align-self: flex-end; }
    
    .kasai-target-table { display: table; width: 100%; font-size: 0.85rem; }
    .kasai-target-table tbody, .kasai-target-table tr { display: table-row-group; }
    .kasai-target-table tr { display: table-row; }
    .kasai-target-table th, .kasai-target-table td { display: table-cell; width: auto; padding: 12px 8px; }
    .kasai-target-table td strong { font-size: 1.1rem; display: block; margin-top: 4px; }
    
    .jishin-tokuyaku-box { padding: 64px 20px 24px; margin-top: 48px; }
    .jt-header-badge { font-size: 1rem; padding: 12px 16px; width: 95%; text-align: center; white-space: normal; line-height: 1.4; }
    .jt-intro { font-size: 1rem; }
    .jt-main-offer { padding: 24px 16px; }
    .jt-offer-text { display: block; font-size: 1.1rem; line-height: 2; margin-bottom: 24px; }
    .highlight-15 { font-size: 3.5rem; margin: 0 4px; }
    .highlight-15 .percent { font-size: 1.75rem; }
    .jt-offer-sub { font-size: 1.05rem; line-height: 1.5; }

    .section-links-grid { display: flex; flex-direction: column; gap: 12px; }
    .section-link-card .card-img-wrap { display: none; }
    .link-card-body { padding: 16px 20px; }
}

/* =========================================================
   「万が一の時の保障」特別カードのスタイル調整
========================================================= */

/* 1. カード自体の背景を白にし、テーマカラーの太い枠線（4px）で囲む */
.case-card-special {
    background-color: #ffffff !important;
    border: 4px solid var(--theme-color) !important;
    padding: 28px !important; /* 枠線が太くなった分、中の余白を少し調整 */
}

/* 2. 「500万円」などが書かれている枠の背景色を薄いピンク色に */
/* ※ var(--theme-bg) を使うことで、こども型では薄いピンク、総合保障型では薄い青になります */
.case-card-special .benefit-item {
    background-color: var(--theme-bg) !important;
    border: none !important; /* 枠線を消してスッキリとした色面に */
}

/* =========================================================
   テキスト長によるレイアウト崩れ対応 ＆ 注釈テキストの小文字化
========================================================= */

/* 1. 4つのポイントの注釈（※）を小さく、少し細い文字にする */
.text-sm-note {
    display: block;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
}

/* 2. お支払事例の文字数オーバーによる崩れ（重なり・はみ出し）を防止 */
.case-calc {
    flex-wrap: wrap !important; /* 横幅が足りない場合は自動で改行させる */
    gap: 12px 8px !important;   /* 改行されたときの上下左右の余白 */
}
.calc-formula {
    flex: 1 1 100%; /* 計算式（左側）が長い場合は1行まるまる使う */
    line-height: 1.5;
    word-break: keep-all; /* 単語の途中で不自然に改行されないようにする */
    overflow-wrap: anywhere;
}
.calc-result {
    margin-left: auto; /* 計算結果（右側）は常に右端に寄せる */
}

/* =========================================================
   カラーアクセントの追加 ＆ 4つのポイント横幅拡張
========================================================= */

/* 1. ヒーローエリアの各タイトルをそれぞれのテーマカラーに */
/* （白の太いドロップシャドウの上にカラーの文字が乗ることで、よりポップで美しい見栄えになります） */
.hero-pane[href="#kodomo"] .hero-main-title { color: var(--color-kodomo) !important; }
.hero-pane[href="#sogo"] .hero-main-title { color: var(--color-sogo) !important; }
.hero-pane[href="#kasai"] .hero-main-title { color: var(--color-kasai) !important; }

/* 2. お支払事例紹介の「金額の数字部分」を各セクションのテーマカラーに */
/* 通常の事例の数字 */
.calc-result strong {
    color: var(--theme-color) !important;
}
/* 万が一の保障（死亡時など）の数字 */
.benefit-price strong {
    color: var(--theme-color) !important;
}

/* 3. 各セクションの「4つのポイント」の横幅を少し伸ばす（PC表示時のみ） */
/* 基本の横幅（1000px）から左右に40pxずつ（合計80px）はみ出させることで、ゆったりと見せます */
@media (min-width: 1025px) {
    .point-grid {
        width: calc(100% + 80px) !important;
        margin-left: -40px !important;
    }
}

/* =========================================================
   スマホ（SP）版の見た目最適化（上書き・追加）
========================================================= */
@media (max-width: 768px) {
    /* 1. 全体の余白と見出しをスマホサイズに引き締め */
    .section-minimal { padding: 60px 15px !important; }
    .pt-large { padding-top: 40px !important; margin-top: 40px !important; }
    .section-header-new { margin-bottom: 30px !important; }
    .section-header-new .section-title { font-size: 2rem !important; }
    .content-head-center h3 { font-size: 1.35rem !important; line-height: 1.4 !important; }

    /* 2. ヒーローエリアの高さ調整（画面に合わせつつ見やすく） */
    .hero-split { height: auto !important; display: flex !important; flex-direction: column !important; }
    .hero-pane { min-height: 33vh !important; }
    .pane-content { padding: 30px 20px !important; }
    .hero-main-title { font-size: 2rem !important; }

    /* 3. 各種ボタンを大きく、タップしやすく（縦並びに） */
    .cta-list-horizontal { display: flex !important; flex-direction: column !important; gap: 10px !important; margin-bottom: 40px !important; }
    .cta-list-horizontal li a { padding: 15px !important; font-size: 1rem !important; }
    .btn-outline-dark { padding: 15px !important; font-size: 0.95rem !important; }
    
    /* 4. テーブルの横スクロール（スワイプ）対応 */
    /* こども型の表（縮んで文字が崩れないように最低幅を設け、指で横スクロール可能に） */
    .course-comparison { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -15px; padding: 0 15px; }
    .course-table-v2 { min-width: 600px !important; } 
    
    /* 新型火災の表（横スクロール可能に） */
    .kasai-target-table { display: block !important; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    .kasai-target-table th, .kasai-target-table td { width: auto !important; padding: 15px 20px !important; }

    /* 5. お支払事例やカード類の内側余白をスマホ最適化 */
    .case-card, .case-card-special { padding: 20px !important; }
    .case-scene { font-size: 1.05rem !important; }
    .calc-result strong { font-size: 1.75rem !important; }
    
    /* 6. 総合保障型 コース紹介の余白引き締め */
    .tier-header { padding: 15px 20px !important; }
    .tier-header h4 { font-size: 1.25rem !important; }
    .tier-body { padding: 20px !important; gap: 15px !important; }
    .f-label { font-size: 0.95rem !important; }
    .p-val strong { font-size: 2rem !important; }
    
    /* 7. 新型火災 地震特約ボックスの調整 */
    .jishin-tokuyaku-box { padding: 50px 15px 20px !important; margin-top: 30px !important; }
    .jt-header-badge { font-size: 0.85rem !important; padding: 10px 15px !important; width: 90% !important; white-space: normal !important; text-align: center !important; }
    .jt-main-offer { padding: 20px 15px !important; }
    .highlight-15 { font-size: 3.5rem !important; }
    .highlight-15 .percent { font-size: 1.5rem !important; }
    
    /* 8. FAQ（アコーディオン） */
    .accordion-minimal summary { padding: 15px !important; font-size: 1rem !important; }
    .accordion-content { padding: 0 15px 15px !important; font-size: 0.9rem !important; }
    
    /* 9. フッター */
    .footer { padding: 40px 20px !important; }
    .footer-logo { width: 160px !important; }
}

/* =========================================================
   SP版：テーブルのはみ出し・金額ズレの完全修正
========================================================= */
@media (max-width: 768px) {
    /* 1. お支払事例の金額ズレを修正（計算式を上、金額を下に綺麗に分ける） */
    .case-calc {
        display: flex !important;
        flex-direction: column !important;
        background-color: transparent !important;
        padding: 0 !important;
        gap: 0 !important;
    }
    .calc-formula {
        width: 100% !important;
        text-align: left !important;
        border-bottom: 1px dashed var(--border-color) !important; /* 区切り線を引く */
        padding-bottom: 8px !important;
        margin-bottom: 8px !important;
        font-size: 0.9rem !important;
    }
    .calc-result {
        width: 100% !important;
        text-align: right !important; /* 金額は右下にビシッと寄せる */
    }

    /* 2. こども型：基本コーステーブルを画面内にピタッと収める */
    .course-comparison {
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .course-table-v2 {
        display: table !important;
        width: 100% !important;
        min-width: 100% !important;
        table-layout: fixed !important; /* 横幅を均等に割り当てて絶対にはみ出させない魔法のコード */
    }
    .course-table-v2 th, .course-table-v2 td {
        padding: 12px 4px !important; /* 余白を削って文字を入れるスペースを確保 */
        font-size: 0.8rem !important;
        word-wrap: break-word !important;
    }
    .type-name { font-size: 1.1rem !important; margin-bottom: 4px !important; }
    .type-price { font-size: 0.75rem !important; }
    .course-table-v2 td strong, .course-table-v2 th strong { font-size: 1.1rem !important; }
    
    /* 3. 新型火災：加入対象テーブルも画面内に収める */
    .kasai-target-table {
        display: table !important;
        width: 100% !important;
        table-layout: fixed !important; /* 同上 */
        white-space: normal !important;
    }
    .kasai-target-table th, .kasai-target-table td {
        width: 33.33% !important;
        padding: 12px 4px !important;
        font-size: 0.8rem !important;
        word-wrap: break-word !important;
    }
    .kasai-target-table td strong {
        font-size: 1.1rem !important;
        display: inline-block !important;
    }
}

/* =========================================================
   SP版：お支払事例の金額消滅バグを修正（ブロックレイアウト化）
========================================================= */
@media (max-width: 768px) {
    /* flexの複雑な重なりを解除し、シンプルな縦積みのブロックに変更 */
    .case-calc {
        display: block !important; /* フレックスを解除して確実に出す */
        background-color: transparent !important;
        padding: 0 !important;
        margin-top: 15px !important;
    }
    
    .calc-formula {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        border-bottom: 1px dashed #cccccc !important;
        padding-bottom: 8px !important;
        margin-bottom: 8px !important;
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    .calc-result {
        display: block !important;
        width: 100% !important;
        text-align: right !important; /* 右下にビシッと寄せる */
        font-size: 1.25rem !important;
        color: var(--text-main) !important; /* 色の同化を防ぐ */
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* =========================================================
   PC版：ヘッダー「マイページ」ボタンのマウスオーバー時文字色修正
========================================================= */
@media (min-width: 769px) {
    .global-nav .btn-outline:hover {
        background-color: var(--color-sogo) !important;
        color: #ffffff !important; /* ホバー時のテキストを確実に白色に */
    }
}

/* =========================================================
   SP版：リッチアコーディオン ＆ ぬるっと開閉アニメーション
========================================================= */
@media (max-width: 768px) {
    .mobile-menu {
        justify-content: flex-start !important;
        padding: 80px 20px 40px !important; 
        overflow-y: auto !important;
    }
    .mobile-menu-inner { width: 100%; margin-top: 10px; }
    
    /* アコーディオンのトグルボタン */
    .mobile-accordion-wrap { border-bottom: 1px solid var(--border-color); }
    .mobile-accordion-toggle {
        width: 100%; display: flex; justify-content: space-between; align-items: center;
        padding: 20px 5px; font-size: 1.1rem; font-weight: 500; background: none; border: none;
        color: var(--text-main); cursor: pointer; text-align: left;
    }
    .mobile-accordion-toggle .icon {
        font-family: var(--font-en); font-weight: 300; font-size: 1.5rem; transition: transform var(--transition-fast);
    }
    .mobile-accordion-toggle.is-active .icon { transform: rotate(45deg); }
    
    /* ぬるっと開閉するコンテンツエリア（初期状態は高さ0） */
    .mobile-accordion-content {
        max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    /* 中のリッチボタンのスタイル */
    .mobile-drop-btn-list { list-style: none; padding: 0 5px 20px 5px; display: flex; flex-direction: column; gap: 12px; }
    .m-drop-btn {
        display: block; width: 100%; padding: 16px; text-align: center; border: none;
        text-decoration: none; transition: var(--transition-fast);
    }
    .m-drop-catch { display: block; font-size: 0.75rem; font-weight: 600; margin-bottom: 4px; letter-spacing: 0.05em; }
    .m-drop-title { display: block; font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
    .m-drop-desc { display: block; font-size: 0.8rem; opacity: 0.8; }

    /* テーマカラーの適用 */
    .m-drop-btn.type-kodomo { background-color: var(--color-kodomo-light); color: var(--text-main); }
    .m-drop-btn.type-kodomo .m-drop-catch { color: var(--color-kodomo); }
    
    .m-drop-btn.type-sogo { background-color: var(--color-sogo-light); color: var(--text-main); }
    .m-drop-btn.type-sogo .m-drop-catch { color: var(--color-sogo); }
    
    .m-drop-btn.type-kasai { background-color: var(--color-kasai-light); color: var(--text-main); }
    .m-drop-btn.type-kasai .m-drop-catch { color: var(--color-kasai); }
    
    /* マイページボタン */
    .mobile-single-link { margin-top: 40px; text-align: center; }
    .btn-mypage-mobile {
        display: flex !important; justify-content: center; align-items: center;
        width: 100%; background-color: var(--color-sogo) !important; color: #ffffff !important;
        border: 2px solid var(--color-sogo) !important; padding: 16px !important;
        font-weight: 600 !important; font-size: 1.1rem !important; border-radius: 0 !important;
    }
}

/* =========================================================
   SP版：アコーディオン内のボタン余白・隙間調整
========================================================= */
@media (max-width: 768px) {
    .mobile-drop-btn-list {
        /* 各メニュー上部（こども型の上）に12pxの余白を持たせる */
        padding: 12px 5px 20px 5px !important; 
        /* ボタン同士の隙間をなくす */
        gap: 0 !important; 
    }
}

/* =========================================================
   4つのポイント：注釈テキストのみ左揃え
========================================================= */
.text-sm-note {
    text-align: left !important;
}

/* =========================================================
   SP版：ヒーローエリア（こども型）とヘッダーの重なり解消
========================================================= */
@media (max-width: 768px) {
    .hero-split {
        margin-top: 65px !important; /* ヘッダーの高さ分だけ下に押し出す */
    }
}

/* =========================================================
   SP版：ヒーローエリアをヘッダー下から1画面にピタッと収める
========================================================= */
@media (max-width: 768px) {
    .hero-split {
        margin-top: 65px !important; /* ヘッダーの高さ分下げる */
        height: calc(100vh - 65px) !important; /* 全体の高さを「画面の高さ－ヘッダー」にする */
        display: flex !important;
        flex-direction: column !important;
    }
    .hero-pane {
        flex: 1 !important; /* 3つのエリアで残りの高さを均等に分ける */
        min-height: 0 !important; /* 過去の高さ指定を解除してはみ出しを防ぐ */
        height: 100% !important;
    }
}

/* =========================================================
   各種注釈テキスト（※）の左揃え化
========================================================= */
/* お支払事例の下部注釈、基本コースの下部注釈 */
.case-note-bottom,
.course-note,
.case-grid .content-head-center {
    text-align: left !important;
}