:root {
    /* Botanical & Earth Colors */
    --bg-color: #F9F8F6;
    /* 生成り・ベージュ */
    --text-color: #3e3a39;
    /* チャコールグレー */
    --accent-green: #8A9A5B;
    /* セージグリーン */
    --accent-warm: #CC7A6F;
    /* テラコッタ/くすみコーラル */
    --card-bg: #ffffff;
    --border-radius: 12px;
    --section-gap: 80px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Zen Kaku Gothic New', "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 1rem 0;
    font-weight: 700;
}

p {
    margin: 0 0 1.5rem 0;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e3e7e1 0%, #fdfbf7 100%);
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-family: 'Shippori Mincho', serif;
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    color: #555;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--accent-warm);
    border-bottom: 2px solid var(--accent-warm);
}

.hero .subtitle {
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 0;
}

/* Section Common */
.section {
    margin-bottom: var(--section-gap);
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-green);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-green);
    margin: 15px auto 0;
    opacity: 0.5;
}

.section-lead {
    text-align: center;
    margin-bottom: 2rem;
}

/* Hormone Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.hormone-card h3 {
    font-size: 0.9rem;
    color: #aaa;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.hormone-card .jp-name {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-color);
}

.hormone-card .role {
    font-size: 0.9rem;
    color: var(--accent-warm);
    margin-bottom: 15px;
}

.hormone-card .desc {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Mechanism Flow */
.flow-chart {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.flow-step {
    display: inline-block;
    width: 100%;
    max-width: 500px;
}

.step-label {
    display: inline-block;
    background: #eee;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: #666;
}

.arrow {
    font-size: 1.5rem;
    color: #ccc;
    margin: 10px 0;
}

.highlight {
    background: linear-gradient(transparent 60%, rgba(204, 122, 111, 0.2) 60%);
    font-weight: bold;
}

.flow-step.result p {
    font-size: 1.3rem;
    color: var(--accent-warm);
    font-weight: bold;
    margin: 0;
}

/* Solutions */
.solution-block {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.solution-block h3 {
    color: var(--accent-green);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 10px;
}

.check-list li::before {
    content: "✔";
    color: var(--accent-warm);
    position: absolute;
    left: 0;
    top: 2px;
}

/* Nutrients Grid */
.nutrient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.nutrient-item {
    background: #fff;
    padding: 20px;
    border-left: 4px solid var(--accent-green);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nutrient-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    display: inline-block;
}

.nutrient-item .sub {
    font-size: 0.85rem;
    color: #888;
    margin-left: 10px;
}

.nutrient-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
    margin-top: 5px;
}

/* Supplements */
.section-intro {
    text-align: center;
    margin-bottom: 30px;
}

.supplement-compare {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.supple-box {
    background: #fff;
    flex: 1;
    min-width: 280px;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    text-align: center;
}

.supple-box h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.supple-box .type {
    display: inline-block;
    font-size: 0.8rem;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 15px;
    color: #666;
}

.or-separator {
    font-weight: bold;
    color: var(--accent-green);
    background: #fff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Alert Box */
.alert-box {
    background: rgba(204, 122, 111, 0.1);
    /* 薄い赤 */
    border: 1px solid rgba(204, 122, 111, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.alert-box p {
    margin-bottom: 10px;
}

.alert-box p:last-child {
    margin-bottom: 0;
}

.check-box-area {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.check-box-area ul {
    margin: 0;
    padding-left: 20px;
}

/* Equol Check */
.equol-check {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

.yes-no-grid {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    gap: 15px;
}

.res {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
}

.res.yes {
    background: #f1f8e9;
    /* 薄い緑 */
}

.res.no {
    background: #fff3e0;
    /* 薄いオレンジ */
}

.res .icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 5px;
}

.res.yes .icon {
    color: var(--accent-green);
}

.res.no .icon {
    color: orange;
}

/* Diet Section */
.diet-section .section-title {
    color: var(--text-color);
}

.good-food {
    background: #fff;
    padding: 30px;
    border-top: 4px solid var(--accent-warm);
    border-radius: 0 0 8px 8px;
    margin-bottom: 40px;
}

.food-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.food-tags span {
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    color: #555;
    border: 1px solid #ddd;
}

.equol-food {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.equol-food span {
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
}

.ng-food {
    background: #333;
    /* Dark background */
    color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
}

.ng-food h3 {
    color: #ffccbc;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

.ng-food ul {
    list-style: none;
    padding: 0;
}

.ng-food li {
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
}

.ng-food li:last-child {
    border-bottom: none;
}

.ng-food .marker {
    color: #ffccbc;
    font-weight: bold;
    margin-right: 5px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background: #e8e8e8;
    color: #666;
    font-size: 0.8rem;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .supplement-compare {
        flex-direction: column;
        gap: 0;
    }

    .or-separator {
        transform: none;
        margin: -20px 0;
        position: relative;
        z-index: 2;
    }

    .check-box-area {
        margin-top: 20px;
    }
}

/* NG Lifestyle Section (New) */
.ng-lifestyle {
    background: #fff8e1;
    /* Pastel amber */
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    border: 1px solid #ffe0b2;
}

.ng-lifestyle h3 {
    color: #e65100;
    border-bottom: 1px dashed #ffcc80;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Warning List Style */
.check-list.warning li {
    padding-left: 24px;
}

.check-list.warning li::before {
    content: "✕";
    /* Cross mark for NG items */
    color: #d32f2f;
    font-weight: bold;
}

/* Print Optimization */
@media print {
    @page {
        margin: 15mm;
        size: A4;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 10.5pt;
        line-height: 1.5;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .container {
        max-width: 100%;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    /* Simplify Header */
    .hero {
        padding: 10px 0 20px;
        background: none;
        margin-bottom: 30px;
        border-bottom: 2px solid #000;
        text-align: left;
        /* Header left aligned for document feel */
    }

    .hero h1 {
        font-size: 24pt;
        color: #000;
        margin-bottom: 5px;
    }

    .hero h1 span {
        border: none;
        color: #000;
    }

    .hero .subtitle {
        color: #333;
        font-size: 12pt;
    }

    /* Section Spacing */
    .section {
        margin-bottom: 30px;
        page-break-inside: avoid;
    }

    .section-title {
        font-size: 16pt;
        color: #000;
        border-bottom: 1px solid #000;
        text-align: left;
        padding-bottom: 5px;
        margin-bottom: 15px;
    }

    .section-title::after {
        display: none;
    }

    .section-lead {
        text-align: left;
        margin-bottom: 15px;
    }

    /* Grids & Layouts */
    .card-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        /* Force 3 columns for hormones */
        gap: 15px;
    }

    .nutrient-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 cols for nutrients */
    }

    /* Card styling for print (borders, no shadows) */
    .card,
    .nutrient-item,
    .supple-box,
    .solution-block,
    .ng-lifestyle,
    .check-box-area,
    .flow-chart,
    .good-food {
        box-shadow: none;
        border: 1px solid #ccc;
        background: #fff !important;
        /* Force white bg to save ink */
        color: #000 !important;
    }

    /* Exception for vital highlights if "exact" print is enabled, otherwise fallback */
    .ng-food {
        background: #fff !important;
        color: #000 !important;
        border: 2px solid #333;
    }

    .ng-food h3,
    .ng-lifestyle h3,
    .good-food h3 {
        color: #000;
        border-bottom: 1px solid #000;
    }

    .check-list li::before {
        color: #000;
        /* Black checks */
    }

    .check-list.warning li::before {
        color: #000;
        /* Black crosses */
    }

    .good-food,
    .ng-food,
    .ng-lifestyle {
        border-top: 1px solid #000;
        /* Reset fancy borders */
    }

    .marker {
        color: #000 !important;
        font-weight: 800;
        /* Extra bold */
        text-decoration: underline;
        font-size: 1.05em;
        /* Slightly larger */
    }

    /* Remove interactive/unnecessary elements */
    footer {
        display: none;
    }

    /* Typography adjustments */
    h3,
    h4 {
        color: #000 !important;
        margin-bottom: 10px;
    }

    p {
        margin-bottom: 10px;
    }

    /* Flow Chart Arrows */
    .arrow {
        color: #000;
        display: none;
        /* Hide vertical arrows, replace with formatting? No, keep them but simple */
    }

    /* Horizontal flow for print? No, vertical is fine if space permits */
}