/* 利用規約ページスタイル - STYLE-GUIDE.md準拠 */

/* ======================================
   ページ固有のレイアウト
   ====================================== */

.terms-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--bb-bg-primary, #fff);
    color: var(--bb-main-text-color, #333);
}

.terms-content {
    background: var(--bb-bg-container, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ======================================
   条項セクションのスタイル
   ====================================== */

.terms-section {
    padding: 30px;
    border-bottom: 1px solid var(--bb-gray-200, #e9ecef);
    color: var(--bb-main-text-color, #333);
}

.terms-section:last-child {
    border-bottom: none;
}

.terms-section h2 {
    color: var(--bb-main-text-color, #333);
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bb-accent-color, #ffd700);
    position: relative;
}

.terms-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--bb-sub-color, #282800);
}

.terms-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--bb-main-text-color, #333);
    font-size: 1em;
}

/* ======================================
   リスト要素のスタイル
   ====================================== */

.terms-section ol {
    margin: 15px 0;
    padding-left: 20px;
    counter-reset: item;
}

.terms-section ol li {
    line-height: 1.7;
    margin-bottom: 12px;
    color: var(--bb-main-text-color, #333);
    position: relative;
    display: block;
    counter-increment: item;
}

.terms-section ol li::before {
    content: counter(item) ". ";
    color: var(--bb-sub-color, #282800);
    font-weight: 600;
    margin-right: 8px;
}

.terms-section ul {
    margin: 15px 0 15px 20px;
    padding-left: 20px;
}

.terms-section ul li {
    line-height: 1.7;
    margin-bottom: 8px;
    color: var(--bb-main-text-color, #333);
    position: relative;
    counter-increment: none;
}

.terms-section ul li::before {
    content: '•';
    color: var(--bb-accent-color, #ffd700);
    font-size: 1.2em;
    position: absolute;
    left: -15px;
    top: 0;
}

/* 料金情報のハイライト */
.terms-section ul li:contains("¥") {
    font-weight: 500;
    color: var(--bb-sub-color, #282800);
}

.terms-section a {
    color: var(--bb-sub-color, #282800);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.terms-section a:hover {
    border-bottom-color: var(--bb-accent-color, #ffd700);
}

/* ======================================
   連絡先セクション
   ====================================== */

.terms-contact {
    background: var(--bb-accent-color-light, #fff8d6);
    border: 1px solid var(--bb-accent-color, #ffd700);
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
}

.terms-contact h3 {
    color: var(--bb-sub-color, #282800);
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.terms-contact p {
    color: var(--bb-main-text-color, #333);
    line-height: 1.6;
}

.terms-contact a {
    color: var(--bb-sub-color, #282800);
    font-weight: 500;
    text-decoration: underline;
}

.terms-contact a:hover {
    color: var(--bb-main-color, #333);
}

/* ======================================
   レスポンシブ対応
   ====================================== */

@media (max-width: 768px) {
    .terms-container {
        padding: 15px;
    }

    .terms-section {
        padding: 20px 15px;
    }

    .terms-section h2 {
        font-size: 1.3em;
    }

    .terms-footer {
        padding: 20px 15px;
    }

    .terms-contact {
        padding: 20px 15px;
    }

    .terms-section ol,
    .terms-section ul {
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .terms-section h2 {
        font-size: 1.2em;
    }

    .terms-section p,
    .terms-section li {
        font-size: 0.9em;
    }

    .terms-contact h3 {
        font-size: 1.1em;
    }

    .terms-section ol {
        padding-left: 10px;
    }

    .terms-section ul {
        padding-left: 10px;
    }
}