/* ========================================
 * File: 07_terms-page.css
 * Description: Styles for the Terms of Service Page.
 * ======================================== */

/* ========================================
 * 1. Terms Page General Layout
 * ======================================== */

.terms-main {
    background-color: var(--bg-light, #f9f9f9);
}

/* --- Hero Section --- */
.terms-hero-refresh {
    background: linear-gradient(135deg, var(--primary-color, #2c5e4c) 0%, #1a332c 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

.terms-hero-content-refresh {
    max-width: 800px;
    margin: 0 auto;
}

.hero-main-title-refresh {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: var(--font-accent, serif);
    line-height: 1.3;
    color: #ffffff; /* Ensure title is white */
}

.hero-subtitle-refresh {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
}

/* --- Hero Eyebrow (English label) --- */
.hero-eyebrow-refresh {
    font-family: var(--font-accent, 'Poppins', sans-serif);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary-light, #c5a572);
    margin-top: 14px;
}

/* --- Breadcrumbs --- */
.terms-breadcrumbs {
    background-color: var(--bg-white, #ffffff);
    padding: 14px 0 0;
}

/* --- Industry Badge (Mobile Only) --- */
.industry-badge {
    display: none; /* Hidden by default */
    background-color: var(--secondary-color, #c0a375);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Main Content Area --- */
.terms-content-area-refresh {
    padding: 80px 0;
}

.terms-container-refresh {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.terms-wrapper-refresh {
    background: var(--bg-white, #ffffff);
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--border-color, #e0e0e0);
}

/* ========================================
 * 2. Terms Content Styling
 * ======================================== */

.terms-section {
    margin-bottom: 45px;
    padding-bottom: 45px;
    border-bottom: 1px solid #eaeaea;
}

.terms-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.terms-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color, #2c5e4c);
    margin-bottom: 25px;
    padding: 0 0 12px 16px;
    border-bottom: 2px solid var(--border-color, #e8ece9);
    position: relative;
}

/* ゴールドのアクセントバー（見出し左） */
.terms-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 16px;
    width: 5px;
    border-radius: 3px;
    background: var(--secondary-color, #b99769);
}

/* --- Lead Paragraph --- */
.terms-lead {
    font-size: 16px;
    line-height: 1.95;
    color: var(--text-color, #333);
    margin-bottom: 45px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
}

.terms-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color, #333);
    margin-bottom: 1.5em;
}

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

.terms-content strong {
    font-weight: 600;
}

/* --- Ordered Clauses (項) / Nested Items (号) --- */
.terms-content ol.terms-ol {
    list-style-type: decimal;
    padding-left: 1.7em;
    margin: 0;
}

.terms-content ol.terms-ol > li {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-color, #333);
    margin-bottom: 1.1em;
    padding-left: 4px;
}

.terms-content ol.terms-ol > li:last-child {
    margin-bottom: 0;
}

/* 本文の導入文＋リストが続く場合の余白調整 */
.terms-content p + ol.terms-ol {
    margin-top: 0.4em;
}

/* 号（lower-roman のネスト） */
.terms-content ol.terms-ol-sub {
    list-style-type: lower-roman;
    padding-left: 1.9em;
    margin: 0.9em 0 0.3em;
}

.terms-content ol.terms-ol-sub > li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary, #4a6b63);
    margin-bottom: 0.55em;
}

/* --- 事業者情報 (Business Operator Info) --- */
.terms-biz-section .terms-content {
    margin-top: 5px;
}

.terms-biz {
    margin: 0;
    background-color: var(--bg-light, #f8f6f2);
    border: 1px solid var(--border-color, #e8ece9);
    border-radius: 8px;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 12px 24px;
}

.terms-biz dt {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color, #2c5e4c);
    line-height: 1.7;
}

.terms-biz dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color, #333);
}

/* ========================================
 * 3. Responsive Design
 * ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .terms-wrapper-refresh {
        padding: 50px;
    }

    .hero-main-title-refresh {
        font-size: 38px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .terms-hero-refresh {
        padding: 60px 20px;
    }

    /* Show badge and adjust hero content for it */
    .industry-badge {
        display: inline-block;
    }

    .terms-hero-content-refresh {
        padding-top: 40px;
    }

    .hero-main-title-refresh {
        font-size: 32px;
    }

    .hero-subtitle-refresh {
        font-size: 15px;
    }

    .terms-content-area-refresh {
        padding: 60px 0;
    }

    .terms-wrapper-refresh {
        padding: 40px 25px;
    }

    .terms-title {
        font-size: 20px;
    }

    .terms-content p,
    .terms-content ol.terms-ol > li {
        font-size: 15px;
    }

    .terms-content ol.terms-ol-sub > li {
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-main-title-refresh {
        font-size: 26px;
    }

    .terms-wrapper-refresh {
        padding: 30px 20px;
        border: none;
        box-shadow: none;
    }

    .terms-content-area-refresh {
        padding: 40px 0;
    }

    /* 事業者情報を縦積みに */
    .terms-biz {
        grid-template-columns: 1fr;
        gap: 4px 0;
        padding: 20px;
    }

    .terms-biz dt {
        margin-top: 10px;
    }

    .terms-biz dt:first-child {
        margin-top: 0;
    }
}