/* --- Root & Reset --- */
:root {
    --navy: #0f172a;
    --accent: #2563eb;
    --text-main: #334155;
    --silver: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    background-color: #f8fafc;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

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

/* --- Header & Hero --- */
.site-header {
    background: #fff; padding: 1rem 0; border-bottom: 1px solid var(--silver);
    position: sticky; top: 0; z-index: 100;
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo-area { display: flex; align-items: center; gap: 12px; }
.site-logo { height: 42px; }
.site-title { font-weight: 800; font-size: 1.4rem; color: var(--navy); letter-spacing: -0.02em; }
.main-nav ul { list-style: none; display: flex; gap: 24px; }
.main-nav a { text-decoration: none; color: var(--text-main); font-weight: 500; }

.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1e293b 100%);
    color: #fff; padding: 100px 0; text-align: center;
}
.hero h1 { font-size: 3.2rem; font-weight: 700; line-height: 1.3; margin-bottom: 24px; }
.highlight { color: #60a5fa; }
.btn {
    display: inline-block; padding: 18px 36px; border-radius: 50px;
    text-decoration: none; font-weight: 700; transition: 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }

/* --- Categories --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; padding: 60px 0; }
.card { background: #fff; padding: 40px 30px; border-radius: 16px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); text-align: center; }

/* --- Modal & Diagnostic --- */
.modal-overlay {
    display: none; position: fixed; z-index: 2000; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px); align-items: center; justify-content: center;
}
.modal-content {
    background: #fff; width: 90%; max-width: 600px; padding: 40px;
    border-radius: 24px; position: relative; animation: zoomIn 0.3s;
}
.modal-close { position: absolute; top: 20px; right: 20px; font-size: 2rem; cursor: pointer; }

.diag-progress-container { height: 6px; background: var(--silver); border-radius: 10px; margin-bottom: 30px; overflow: hidden; }
.diag-progress-fill { height: 100%; background: var(--accent); width: 0%; transition: 0.4s; }
.diag-q-text { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.diag-options-list { display: flex; flex-direction: column; gap: 10px; }
.diag-option-btn {
    padding: 15px; border: 2px solid var(--silver); border-radius: 10px;
    background: #fff; cursor: pointer; text-align: left; transition: 0.2s;
}
.diag-option-btn:hover { border-color: var(--accent); background: #f0f9ff; }

.diag-result-card { background: #f0fdf4; padding: 25px; border-radius: 15px; text-align: center; margin-bottom: 20px; }
.diag-saving-num { font-size: 3rem; font-weight: 800; color: #10b981; }
.diag-advice-box { background: #f8fafc; padding: 15px; border-left: 4px solid var(--navy); margin-bottom: 20px; font-size: 0.9rem; }
.diag-cta-group { display: flex; flex-direction: column; gap: 10px; }
.diag-btn { padding: 15px; border-radius: 10px; text-decoration: none; text-align: center; font-weight: 700; color: #fff !important; }
.diag-btn-coconala { background: var(--accent); }
.diag-btn-school { background: #10b981; }
.diag-retry-btn { background: none; border: none; text-decoration: underline; margin-top: 15px; cursor: pointer; width: 100%; }

@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* css/style.css の最後に追加 */

/* --- 6. Profile Page Styles (最終調整版) --- */
.profile-page {
    background-color: #f1f5f9; /* 全体の背景を少し落として、各ブロックを浮き立たせる */
}

.profile-main {
    padding: 60px 0;
    max-width: 750px; /* さらに少し絞って、視線の移動距離を短く */
    margin: 0 auto;
}

/* アイキャッチ */
.profile-eyecatch-wrapper {
    margin-bottom: 40px;
}
.profile-eyecatch {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

/* タイトルエリア */
.profile-title {
    font-size: 2.4rem; /* 少しだけ小さくして凝縮 */
    line-height: 1.25;
    margin-bottom: 50px;
    text-align: center;
}

/* --- 【重要】見出しのデザイン修正 --- */
.story-section h2 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 20px;
    font-weight: 700;
    padding: 12px 18px;
    background: #e2e8f0; /* 見出しに背景色 */
    border-left: 6px solid var(--navy); /* 左に太めのアクセント線 */
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- 【重要】文章ブロックの背景と行間 --- */
.story-section {
    background: #ffffff; /* ブロックごとに白背景 */
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px; /* ブロック間の間隔 */
}

/* 行間をさらに詰め、情報の密度を上げる */
.story-content p {
    font-size: 1rem;
    line-height: 1.5; /* 1.6から1.5へ。日本語で最も「詰まっていて読みやすい」比率 */
    color: var(--text-main);
    margin-bottom: 18px;
}

.story-content p:last-child {
    margin-bottom: 0;
}

.story-content ul {
    margin: 15px 0 15px 20px;
    line-height: 1.4;
}

.story-content li {
    margin-bottom: 8px;
}

/* 以前設定したnth-of-type(even)の背景設定は、
   すべてのブロックに背景がついたので不要（または削除）してください */
.story-section:nth-of-type(even) {
    background: #ffffff; 
    margin: 0 0 30px 0; 
    padding: 35px;
}