:root {
    --green-deep: #124d2b;
    --green-main: #1a6b3c;
    --green-mid: #2c9356;
    --green-light: #eaf5ee;
    --green-pale: #eef6f0;
    --cream: #faf8f3;
    --cream-dark: #f0ede4;
    --warm-white: #ffffff;
    --text-primary: #2a332c;
    --text-secondary: #526658;
    --text-muted: #809987;
    --accent-gold: #e8a817;
    --accent-gold-light: #fdf1da;
    --border-soft: rgba(26,107,60,0.08);
    --shadow-sm: 0 2px 8px rgba(26,107,60,0.06);
    --shadow-md: 0 4px 24px rgba(26,107,60,0.10);
    --radius: 20px;
    --font-serif: 'Zen Kaku Gothic New', sans-serif;
    --font-sans: 'Noto Sans JP', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background-color: var(--cream);
    color: var(--text-primary);
    line-height: 1.9;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Nav (same as top page) ── */
.nav-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 12px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo {
    font-family: var(--font-serif); font-size: 1.1rem; font-weight: 900;
    color: var(--green-main); letter-spacing: 0.04em; text-decoration: none; flex-shrink: 0;
}
.brand-group { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.parent-brand { display: flex; align-items: center; gap: 6px; text-decoration: none; font-family: var(--font-serif); font-size: 0.86rem; font-weight: 900; color: var(--green-deep); }
.parent-brand img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.parent-brand em { color: var(--accent-gold); font-style: normal; }
.brand-divider { width: 1px; height: 18px; background: var(--border-soft); flex-shrink: 0; }
@media (max-width: 640px) { .parent-brand span { display: none; } }
.nav-links {
    display: flex; gap: clamp(12px, 1.5vw, 24px); align-items: center;
    white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-item { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); text-decoration: none; flex-shrink: 0; }
.nav-item:hover, .nav-item.active { color: var(--green-main); }
.nav-cta {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent-gold); color: white; padding: 8px 22px;
    font-size: 0.82rem; font-weight: 700; text-decoration: none; border-radius: 40px; flex-shrink: 0;
}
.nav-cta:hover { background: #d99b0f; }

/* ── Header banner ── */
.guide-hero {
    background: linear-gradient(160deg, var(--green-deep) 0%, var(--green-main) 100%);
    color: white; padding: 128px 24px 64px; text-align: center;
}
.guide-hero-label {
    display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 18px; border-radius: 30px; font-size: 0.8rem; font-weight: 500; margin-bottom: 20px;
}
.guide-hero h1 {
    font-family: var(--font-serif); font-size: 2.1rem; font-weight: 700; line-height: 1.6; margin-bottom: 18px;
}
.guide-hero p { max-width: 640px; margin: 0 auto; font-size: 0.98rem; opacity: 0.92; font-weight: 300; line-height: 2; }

.disclaimer-box {
    max-width: 860px; margin: -28px auto 0; position: relative; z-index: 2;
    background: var(--accent-gold-light); border: 1px solid rgba(232,168,23,0.35);
    border-radius: 14px; padding: 18px 24px; font-size: 0.84rem; color: #7a5b0a; line-height: 1.9;
}

/* ── Section ── */
.section { max-width: 860px; margin: 0 auto; padding: 72px 24px; }
.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green-pale); color: var(--green-main); padding: 6px 16px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 16px;
}
h2 {
    font-family: var(--font-serif); font-size: 1.7rem; color: var(--text-primary);
    margin-bottom: 14px; line-height: 1.6; font-weight: 700;
}
h2 .highlight { color: var(--green-main); }
.section-desc { font-size: 0.98rem; line-height: 2.1; color: var(--text-secondary); margin-bottom: 28px; }

/* ── Diagram card ── */
.diagram-card {
    background: white; border: 1px solid var(--border-soft); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); padding: 28px 24px; margin-bottom: 28px;
}
.diagram-card svg { width: 100%; height: auto; display: block; }
.diagram-caption { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }

/* ── Glossary accordion (same visual language as FAQ on top page) ── */
.glossary-title { font-size: 0.92rem; font-weight: 700; color: var(--green-deep); margin: 32px 0 14px; }
.faq-item { background: white; border-radius: 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); overflow: hidden; }
.faq-question {
    width: 100%; text-align: left; padding: 18px 24px; font-size: 0.94rem; font-weight: 600;
    color: var(--text-primary); background: none; border: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-family: var(--font-sans); line-height: 1.6;
}
.faq-question:hover { background: var(--cream); }
.faq-chevron { flex-shrink: 0; width: 18px; height: 18px; transition: transform 0.3s ease; color: var(--text-muted); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 320px; }
.faq-answer-inner { padding: 0 24px 18px; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.9; }

/* ── Guide-wide search ── */
.guide-search { position: relative; max-width: 460px; margin: 0 auto; padding: 0 24px; }
.guide-search-icon {
    position: absolute; left: 40px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none;
}
.guide-search input {
    width: 100%; padding: 13px 16px 13px 44px;
    border: 1px solid var(--border-soft); border-radius: 30px;
    background: white; font-size: 0.92rem; font-family: var(--font-sans);
    color: var(--text-primary); outline: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.guide-search input:focus { border-color: var(--green-main); box-shadow: 0 0 0 3px rgba(26,107,60,0.12); }
.guide-search-hint { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 8px; }
.faq-item.is-hidden, .glossary-title.is-hidden { display: none; }

/* ── Comparison table ── */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); }
table.compare { width: 100%; border-collapse: collapse; background: white; min-width: 640px; font-size: 0.86rem; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--cream-dark); line-height: 1.8; }
table.compare th { background: var(--green-pale); color: var(--green-deep); font-weight: 700; white-space: nowrap; }
table.compare td:first-child { font-weight: 700; color: var(--text-primary); white-space: nowrap; background: var(--cream); }
table.compare tr:last-child td { border-bottom: none; }

/* ── Jump nav ── */
.jump-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 0 24px 8px; }
.jump-nav a {
    display: inline-flex; align-items: center; gap: 6px; background: white; border: 1px solid var(--border-soft);
    color: var(--green-main); text-decoration: none; padding: 8px 18px; border-radius: 30px;
    font-size: 0.82rem; font-weight: 600; box-shadow: var(--shadow-sm);
}
.jump-nav a:hover { background: var(--green-pale); }

.scroll-offset { scroll-margin-top: 76px; }

footer { background: var(--green-deep); color: white; text-align: center; padding: 36px 24px; font-size: 0.82rem; opacity: 0.95; }
footer p + p { margin-top: 8px; opacity: 0.7; font-size: 0.75rem; }

@media (max-width: 640px) {
    .guide-hero { padding: 112px 20px 56px; }
    .guide-hero h1 { font-size: 1.5rem; }
    .section { padding: 48px 16px; }
    h2 { font-size: 1.35rem; }
    .diagram-card { padding: 20px 14px; }
}
