/* terms.css */
.page-header {
    padding: 160px 0 80px;
    background-color: var(--color-gray-100);
    text-align: center;
}

.page-title {
    font-size: var(--font-2xl);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.page-lead {
    font-size: var(--font-lg);
    color: var(--color-gray-500);
}

.terms-content {
    padding: var(--space-2xl) 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: var(--space-2xl);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.terms-lead {
    font-size: var(--font-lg);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
    color: var(--color-text);
}

.terms-section {
    margin-bottom: var(--space-2xl);
}

.terms-section:last-child {
    margin-bottom: 0;
}

.terms-section h2 {
    font-size: var(--font-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary);
    font-weight: 700;
}

.terms-section p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

/* 番号付きリストのスタイリング */
.terms-list {
    counter-reset: terms-counter;
    list-style-type: none;
    padding-left: 0;
    margin: var(--space-md) 0;
}

.terms-list li {
    position: relative;
    padding-left: 2.5em;
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.terms-list li:before {
    counter-increment: terms-counter;
    content: counter(terms-counter) ".";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-family: 'Jost', sans-serif;
}

/* 入れ子リストのスタイリング */
.terms-list ol {
    counter-reset: sub-terms-counter;
    list-style-type: none;
    padding-left: 1.5em;
    margin-top: var(--space-md);
}

.terms-list ol li {
    padding-left: 3em;
}

.terms-list ol li:before {
    counter-increment: sub-terms-counter;
    content: "(" counter(sub-terms-counter) ")";
}

/* 附則のスタイリング */
.terms-section:last-child p {
    color: var(--color-gray-500);
    font-size: var(--font-sm);
    text-align: right;
    margin-top: var(--space-xl);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }

    .content-wrapper {
        padding: var(--space-xl);
    }

    .terms-section h2 {
        font-size: var(--font-lg);
    }

    .terms-lead {
        font-size: var(--font-base);
    }

    .terms-list li {
        padding-left: 2em;
    }
}

@media screen and (max-width: 480px) {
    .content-wrapper {
        padding: var(--space-lg);
    }

    .terms-section h2 {
        font-size: var(--font-base);
    }

    .terms-list li {
        font-size: var(--font-sm);
    }

    .terms-list li:before {
        left: 0.5em;
    }
}