/* ============================================================
   ED専用ページ スタイル
   ※ サイト共通の css/styles.css が body に紺×オレンジの斜め
   グラデーション背景＋白文字を強制するため、body.main-background
   に対してこのページだけ穏やかな配色で上書きする。
   （styles.css 自体は他ページ共通なので変更しない）
   ============================================================ */

body.main-background {
    background: linear-gradient(160deg, #fdf8f0 0%, #eef7f6 55%, #e6f4f5 100%);
    background-attachment: fixed;
    color: #3b3f42;
    font-family: "Hiragino Sans", "Yu Gothic", 'Arial', sans-serif;
}

body.main-background * {
    box-sizing: border-box;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== 見出し共通 ===== */
.message-section h2,
.steps-section h2,
.voice-section h2,
.stats-section h2,
.why-section h2,
.faq-section h2 {
    position: relative;
    display: inline-block;
    font-size: 1.6em;
    color: #056b7d;
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.message-section h2::after,
.steps-section h2::after,
.voice-section h2::after,
.stats-section h2::after,
.why-section h2::after,
.faq-section h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #00bcd4, #d9a441);
    transform: translateX(-50%);
    border-radius: 3px;
}

/* ===== ヒーロー ===== */
.hero {
    background: linear-gradient(180deg, #eaf9fb 0%, #dff3f5 100%);
    padding: 56px 20px 48px;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-content img {
    max-width: 220px;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(5, 107, 125, 0.15);
}

.hero-content h1 {
    font-size: 1.9em;
    line-height: 1.5;
    margin-bottom: 16px;
    color: #045163;
    font-weight: 700;
}

.hero-content p.sub-headline {
    font-size: 1.05em;
    color: #567279;
    margin-bottom: 28px;
}

.button {
    display: inline-block;
    padding: 14px 36px;
    text-decoration: none;
    background: linear-gradient(135deg, #00bcd4, #049aad);
    color: #fff;
    border-radius: 50px;
    font-weight: bold;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 18px rgba(0, 150, 170, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    background: linear-gradient(135deg, #049aad, #037c8c);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 150, 170, 0.4);
}

/* ===== メッセージ / ステップ / 経験者の声：白カードで統一 ===== */
.message-section,
.steps-section,
.voice-section {
    padding: 46px 0;
    text-align: center;
}

.message-section .container,
.voice-section .container {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 34px 26px;
    box-shadow: 0 6px 24px rgba(5, 107, 125, 0.08);
}

.message-section p {
    font-size: 1em;
    color: #4c565a;
    margin-bottom: 20px;
    line-height: 1.9;
}

.message-section .image-container {
    margin-top: 20px;
}

.message-section .image-container img {
    max-width: 85%;
    height: auto;
    border-radius: 14px;
}

.steps-section {
    background-color: transparent;
}

.steps-section h2 {
    margin-bottom: 30px;
}

.steps-section .step {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 26px 22px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 6px 20px rgba(5, 107, 125, 0.08);
    text-align: center;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00bcd4, #049aad);
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 4px 10px rgba(0, 150, 170, 0.35);
}

.steps-section .step h3 {
    font-size: 1.2em;
    color: #045163;
    margin-bottom: 10px;
    font-weight: 700;
}

.steps-section .step p {
    font-size: 0.95em;
    color: #56666b;
    line-height: 1.8;
    margin: 0;
}

.voice-section .voice-item {
    background-color: #f7fbfb;
    padding: 18px 20px;
    margin-bottom: 14px;
    border-radius: 12px;
    border-left: 4px solid #00bcd4;
    text-align: left;
}

.voice-section .voice-item:last-child {
    margin-bottom: 0;
}

.voice-section .voice-item p {
    font-style: italic;
    color: #4c565a;
    font-size: 0.95em;
    margin: 0;
    line-height: 1.8;
}

/* ===== 統計セクション ===== */
.stats-section {
    padding: 46px 20px;
    text-align: center;
}

.stats-section .container {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 34px 26px;
    box-shadow: 0 6px 24px rgba(5, 107, 125, 0.08);
    max-width: 640px;
}

.stats-lead {
    font-size: 0.98em;
    color: #4c565a;
    margin-bottom: 26px;
    line-height: 1.8;
}

.stats-bars {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.stats-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 11px;
}

.stats-age {
    flex: 0 0 44px;
    font-size: 0.9em;
    color: #333;
    font-weight: bold;
}

.stats-bar-track {
    flex: 1 1 auto;
    background-color: #eaf6f5;
    border-radius: 20px;
    height: 16px;
    overflow: hidden;
}

.stats-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4dd0e1, #00acc1);
    border-radius: 20px;
}

.stats-bar-total .stats-bar-fill {
    background: linear-gradient(90deg, #f0b94d, #d9a441);
}

.stats-bar-total .stats-age,
.stats-bar-total .stats-ratio {
    color: #b8790c;
}

.stats-ratio {
    flex: 0 0 92px;
    font-size: 0.85em;
    color: #333;
    text-align: right;
}

.stats-note {
    max-width: 560px;
    margin: 26px auto 12px;
    font-size: 0.9em;
    color: #56666b;
    line-height: 1.8;
    text-align: left;
}

.stats-source {
    font-size: 0.75em;
    color: #9aa5a8;
}

/* ===== 選ばれる理由セクション ===== */
.why-section {
    padding: 46px 0;
    text-align: center;
}

.why-lead {
    color: #4c565a;
    margin-bottom: 26px;
    line-height: 1.8;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

.why-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(5, 107, 125, 0.08);
    border-top: 3px solid #00bcd4;
}

.why-item h3 {
    font-size: 1.02em;
    color: #045163;
    margin-bottom: 8px;
    font-weight: 700;
}

.why-item p {
    font-size: 0.9em;
    color: #56666b;
    margin: 0;
    line-height: 1.75;
}

/* ===== FAQセクション ===== */
.faq-section {
    padding: 46px 20px 56px;
}

.faq-section .container {
    max-width: 640px;
}

.faq-item {
    background-color: #ffffff;
    border-radius: 12px;
    margin: 0 auto 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 14px rgba(5, 107, 125, 0.07);
}

.faq-item summary {
    font-weight: bold;
    color: #045163;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: "Q. ";
    color: #00bcd4;
}

.faq-item[open] summary {
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 0.92em;
    color: #56666b;
    margin: 0;
    line-height: 1.8;
    padding-left: 1.4em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .hero {
        padding: 40px 16px;
    }

    .hero-content h1 {
        font-size: 1.5em;
    }

    .message-section .container,
    .voice-section .container,
    .stats-section .container {
        padding: 26px 18px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .stats-age {
        flex-basis: 38px;
        font-size: 0.8em;
    }

    .stats-ratio {
        flex-basis: 82px;
        font-size: 0.78em;
    }
}
