/* 下層ページ（/fee/ /privacy/ /terms/）の本文。トップの style.css に重ねて読み込む */
.page-head .doc-head__en {
    font-family: var(--f-latin);
    font-weight: 800;
    font-size: 36px;
    line-height: 1.1;
}

.page-head .doc-head__title {
    font-family: var(--f-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .06em;
}

.doc {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.doc h2 {
    margin-top: 32px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--line);
    font-size: 18px;
}

.doc a {
    color: var(--brand);
    overflow-wrap: anywhere;
}

.doc__list {
    list-style: none;
    margin: 0;
    padding: 16px 20px;
    background: var(--tint);
    border-radius: 10px;
    display: grid;
    gap: 6px;
}

.doc__bullets {
    margin: 0;
    padding-left: 1.4em;
}

/* 表は横幅が足りないときだけ横にスクロールさせる */
.doc__table {
    overflow-x: auto;
}

.doc__table table {
    width: 100%;
    border-collapse: collapse;
}

.doc__table caption {
    text-align: left;
    font-weight: 700;
    margin-bottom: 8px;
}

.doc__table th, .doc__table td {
    border: 1px solid var(--line-strong);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

.doc__table th {
    background: var(--tint);
    color: var(--brand-dark);
}

.doc__table thead th {
    white-space: nowrap;
}

.doc__footer {
    margin-top: 32px;
    text-align: right;
    display: grid;
    gap: 4px;
}

/* 5列の別表は SP では読めない幅になるため、最小幅を確保して横スクロールにする（広い画面では本文の幅に収まる） */
.doc__table table:has(thead th:nth-child(5)) {
    min-width: 760px;
}

/* 5列の別表は見出しが長いため、見出しも折り返す（折り返さないと広い画面でも本文の幅からはみ出す） */
.doc__table table:has(thead th:nth-child(5)) thead th {
    white-space: normal;
}

@media (min-width: 861px) {
    .page-head .doc-head__en {
        font-size: 56px;
    }

    .page-head .doc-head__title {
        font-size: 20px;
    }
}
