/**
 * 元静的 HTML（earth-healthy_statc_html 05〜10）の <style> から移植。
 * main_about / main_guide / main_faq / main_terms / main_legal / main_privacy 用。
 */

/* ---- スクロール表示（IntersectionObserver + .visible） ---- */
.fade-in {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- About（05）---- */
.mission-quote {
    position: relative;
    padding: 2rem;
    background-color: var(--bg-sub);
    border-radius: 1rem;
}
.mission-quote::before {
    content: "“";
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-size: 5rem;
    color: var(--earth-green);
    opacity: 0.2;
    font-family: serif;
}

.policy-axis {
    border-left: 1px solid #e5e7eb;
    padding-left: 2rem;
    height: 100%;
}

.info-table th {
    width: 30%;
    text-align: left;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-sub);
}
.info-table td {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9375rem;
}

.text-link {
    position: relative;
    color: var(--earth-green);
    font-weight: 700;
}
.text-link::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: right;
}
.text-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ---- Guide（06）：ガイド本文内 section のみ（グローバル section は使わない） ---- */
article.flex-grow.max-w-4xl.overflow-hidden > section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #f0f0f0;
}

.toc-link {
    transition: all 0.3s;
    border-left: 2px solid transparent;
}
.toc-link:hover {
    color: var(--earth-green);
    background-color: #f7f8f7;
    border-left: 2px solid var(--earth-green);
}

.step-num {
    font-family: "Noto Serif JP", serif;
    font-style: italic;
    color: var(--earth-green);
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.note-box {
    background-color: var(--bg-sub);
    border-radius: 0.75rem;
    padding: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-sub);
}

/* ---- FAQ（07）---- */
.faq-item {
    border-bottom: 1px solid #f0f0f0;
}
.faq-question {
    cursor: pointer;
    transition: background-color 0.3s;
}
.faq-question:hover {
    background-color: #f7f8f7;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}
.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 1s ease-in-out;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.cat-btn {
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}
.cat-btn:hover {
    border-color: var(--earth-green);
    color: var(--earth-green);
    background-color: #f7f8f7;
}

/* ---- 利用規約（08）---- */
.terms-content h3 {
    padding-bottom: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.125rem;
    color: var(--text-main);
    font-weight: 700;
}
.terms-content p {
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-sub);
}
.terms-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.terms-content li {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-sub);
}
.terms-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ---- 特商法（09）---- */
.legal-table {
    width: 100%;
    border-top: 1px solid #e5e7eb;
}
.legal-table th {
    width: 30%;
    background-color: var(--bg-sub);
    padding: 1.5rem 1.25rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.875rem;
    border-bottom: 1px solid #e5e7eb;
    color: var(--text-main);
    vertical-align: top;
}
.legal-table td {
    padding: 1.5rem 1.25rem;
    font-size: 0.9375rem;
    border-bottom: 1px solid #e5e7eb;
    color: var(--text-sub);
    line-height: 1.8;
    vertical-align: top;
}

@media (max-width: 768px) {
    .legal-table th,
    .legal-table td {
        display: block;
        width: 100%;
    }
    .legal-table th {
        padding-bottom: 0.5rem;
        border-bottom: none;
    }
    .legal-table td {
        padding-top: 0.5rem;
    }
}

/* ---- プライバシー（10）：policy-content は terms と微妙に異なる ---- */
.policy-content h3 {
    padding-bottom: 0.5rem;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.125rem;
    color: var(--text-main);
    font-weight: 700;
}
.policy-content p {
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-sub);
}
.policy-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.policy-content li {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-sub);
}
.policy-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

/* アンカー（sticky ヘッダー考慮・ガイド/FAQ/規約で統一） */
[id] {
    scroll-margin-top: 7.5rem;
}
