/* ============================================
   利用規約ページ スタイル
   ============================================ */

/* ラッパー */
.terms-wrap {
    padding: 2rem 0 4rem;
}

/* 各条文ブロック */
.terms-article {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e8e8e8;
}

.terms-article:last-of-type {
    border-bottom: none;
}

/* 条文タイトル（h2） */
.terms-article__title {
    font-size: 1.125em; /* タイトル基本サイズ */
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    background-color: #f5f5f0;
    border-left: 4px solid #f0b429;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    line-height: 1.5;
}

/* 条文本文エリア */
.terms-article__body {
    padding: 0 0.5rem;
}

.terms-article__body p {
    font-size: 0.875em; /* 本文基本サイズ */
    line-height: 1.8;
    color: #333;
    margin-bottom: 0.75rem;
}

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

/* リスト共通 */
.terms-list {
    margin: 0.75rem 0 0.75rem 0;
    padding: 0;
    list-style: none;
}

.terms-list li {
    font-size: 0.875em; /* 本文基本サイズ */
    line-height: 1.8;
    color: #333;
    margin-bottom: 0.4rem;
    padding-left: 2.5rem;
    position: relative;
}

/* 番号ラベル（(1)(2)…） */
.terms-list__label {
    position: absolute;
    left: 0;
    top: 0;
    min-width: 2rem;
    font-weight: 600;
}

/* 箇条書きリスト */
.terms-list--bullet {
    list-style: none;
    padding-left: 0;
}

.terms-list--bullet li {
    padding-left: 1.25rem;
}

.terms-list--bullet li::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
    color: #666;
}

/* アルファベットサブリスト（a. b. c.…） */
.terms-list--alpha {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.terms-list--alpha li {
    font-size: 1em; /* 親li（0.875em）からの相対値を維持 */
    padding-left: 2rem;
}

/* 会員種別ノート（宅配ロッカーあり/なし 適用区分ブロック） */
.terms-note {
    margin: 1rem 0;
    padding: 0.875rem 1rem;
    border-radius: 4px;
}

.terms-note--locker-with {
    background-color: hsl(from var(--c-plan-locker-main) h s 97%);
    border: 1px solid var(--c-plan-locker-main);
    /* background-color: #fff8e6;
    border: 1px solid #f0c060; */
}

.terms-note--locker-without {
    background-color: hsl(from var(--c-plan-box-main) h s 97%);
    border: 1px solid var(--c-plan-box-main);
    /* background-color: #e8f4fd;
    border: 1px solid #7dc0e8; */
}

.terms-note__label {
    font-size: 0.875em; /* 本文基本サイズ */
    font-weight: 700;
    margin-bottom: 0.5rem !important;
    color: #444;
}

/* バッジ（タイトル内の適用区分表示） */
.terms-badge {
    display: inline-block;
    font-size: 0.7em; /* タイトル(1.125em)に対する相対値 */
    font-weight: 600;
    padding: 0.15em 0.6em;
    border-radius: 3px;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1.6;
}

.terms-badge--locker-with {
    background-color: var(--c-plan-locker-main);
    color: hsl(from var(--c-plan-locker-main) h s 95%);
    /* background-color: #f0c060;
    color: #5a3e00; */
}

.terms-badge--locker-without {
    background-color: var(--c-plan-box-main);
    color: hsl(from var(--c-plan-box-main) h s 95%);
    /* background-color: #7dc0e8;
    color: #003558; */
}

/* 附則 */
.terms-supplementary {
    margin-top: 3rem;
    padding: 1rem 1.25rem;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.terms-supplementary__title {
    font-size: 1.125em; /* タイトル基本サイズ */
    font-weight: 700;
    margin-bottom: 0.4rem !important;
}

.terms-supplementary p {
    font-size: 0.875em; /* 本文基本サイズ */
    line-height: 1.8;
    color: #333;
}

/* 改訂履歴 */
.terms-revision {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.terms-revision__list {
    margin: 0;
    padding: 0;
}

.terms-revision__date {
    font-size: 0.875em; /* 本文基本サイズ */
    font-weight: 700;
    color: #555;
    margin-bottom: 0.2rem;
    margin-block-start: 0.8em;
    
    &:first-child {
        margin-block-start: 0;
    }
}

.terms-revision__note {
    font-size: 0.875em; /* 本文基本サイズ */
    color: #666;
    margin-left: 0;
    line-height: 1.6;
}

/* ============================================
   レスポンシブ対応
   ============================================ */
@media (max-width: 600px) {
    .terms-article__title {
        font-size: 1em; /* モバイルではやや縮小 */
        padding: 0.5rem 0.75rem;
    }

    .terms-article__body p,
    .terms-list li,
    .terms-note__label,
    .terms-supplementary p,
    .terms-revision__date,
    .terms-revision__note {
        font-size: 0.8125em; /* モバイルではやや縮小 */
    }

    .terms-badge {
        font-size: 0.65em;
    }
}