@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap");

/* 購入ガイド（初めての方へ・ご注文方法ページと共通のデザイン） */
.pg-main {
    padding-top: 15px;
    color: #20252b;
    font-family: "Noto Sans JP", sans-serif;
}

.pg-main .routes-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 17px;
}

.pg-main .section-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 auto 72px;
}

.pg-main .content-wrapper {
    flex: 1;
    min-width: 0;
}

.pg-main .main-content {
    max-width: 900px;
    width: 100%;
}

.pg-main a {
    color: #0868a8;
}

/* ヘッダー */
.pg-header {
    position: relative;
    overflow: hidden;
    padding: 36px 42px 38px;
    border-top: 5px solid #0868a8;
    background-color: #f3f7fa;
    background-image: linear-gradient(90deg, rgba(8, 104, 168, 0.06) 1px, transparent 1px), linear-gradient(rgba(8, 104, 168, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

.pg-header::after {
    content: "GUIDE";
    position: absolute;
    right: 24px;
    bottom: -12px;
    color: rgba(8, 104, 168, 0.08);
    font-size: 68px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

/* 背景の文字はページごとに data-watermark で変更できる */
.pg-header[data-watermark]::after {
    content: attr(data-watermark);
}

.pg-header_label {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    color: #087a72;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.pg-header_title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 34px;
    line-height: 1.4;
    letter-spacing: 0;
}

.pg-header_text {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.85;
}

/* 目次 */
.pg-toc {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 20px 0 64px;
}

.pg-toc_link {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 10px 14px;
    box-sizing: border-box;
    border: 1px solid #dfe4e8;
    background: #fff;
    color: #20252b !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pg-toc_link:hover {
    border-color: #0868a8;
    box-shadow: 0 6px 16px rgba(37, 56, 69, 0.08);
}

.pg-toc_num {
    flex: 0 0 auto;
    color: #087a72;
    font-size: 12px;
    font-weight: 700;
}

/* セクション */
.pg-section {
    margin-bottom: 72px;
    /* 固定ヘッダーの下に見出しが隠れないようにする（--pg-header-offset はページ内のスクリプトで設定） */
    scroll-margin-top: calc(var(--pg-header-offset, 196px) + 20px);
}

.pg-section_heading {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #20252b;
}

.pg-section_index {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    background: #087a72;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.pg-section_title {
    margin: 0;
    font-size: 23px;
    line-height: 1.4;
    letter-spacing: 0;
}

.pg-subtitle {
    margin: 32px 0 12px;
    padding-left: 12px;
    border-left: 4px solid #0868a8;
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: 0;
}

.pg-section_heading + .pg-subtitle {
    margin-top: 0;
}

.pg-text {
    margin: 0 0 14px;
    color: #3d464e;
    font-size: 15px;
    line-height: 1.9;
}

.pg-note {
    margin: 12px 0 0;
    color: #6a747c;
    font-size: 13px;
    line-height: 1.7;
}

.pg-alert {
    color: #c0392b;
    font-weight: 700;
}

/* 箇条書き */
.pg-list {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.pg-list li {
    position: relative;
    padding: 4px 0 4px 18px;
    color: #3d464e;
    font-size: 15px;
    line-height: 1.8;
}

.pg-list li::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #087a72;
}

.pg-list_ok li::before,
.pg-list_ng li::before {
    top: 12px;
    left: 2px;
    width: 9px;
    height: 5px;
    border-radius: 0;
    background: none;
    border-bottom: 2px solid #087a72;
    border-left: 2px solid #087a72;
    transform: rotate(-45deg);
}

.pg-list_ng li::before {
    top: 10px;
    width: 10px;
    height: 10px;
    border: 0;
    background:
        linear-gradient(45deg, transparent 43%, #c0392b 43%, #c0392b 57%, transparent 57%),
        linear-gradient(-45deg, transparent 43%, #c0392b 43%, #c0392b 57%, transparent 57%);
    transform: none;
}

.pg-steps {
    margin: 6px 0 4px;
    padding-left: 1.6em;
    list-style: decimal;
}

.pg-steps li {
    display: list-item;
    list-style: decimal;
    padding: 2px 0;
    color: #3d464e;
    font-size: 15px;
    line-height: 1.75;
}

/* 項目表（定義リスト） */
.pg-spec {
    margin: 0 0 14px;
    border-top: 1px solid #dfe4e8;
}

.pg-spec_row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 4px;
    border-bottom: 1px solid #dfe4e8;
}

.pg-spec_row dt {
    color: #4b555e;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.75;
}

.pg-spec_row dd {
    margin: 0;
    color: #20252b;
    font-size: 15px;
    line-height: 1.75;
}

.pg-spec_row dd .pg-list {
    margin: 0;
}

.pg-spec_row dd .pg-list li {
    padding-top: 0;
    padding-bottom: 2px;
}

.pg-spec_row dd .pg-list li::before {
    top: 11px;
}

/* カード */
.pg-cards {
    display: grid;
    gap: 12px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.pg-cards_2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pg-card {
    padding: 18px 18px 20px;
    border: 1px solid #dfe4e8;
    background: #fff;
}

.pg-card_title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
}

.pg-card p {
    margin: 0;
    color: #3d464e;
    font-size: 14px;
    line-height: 1.8;
}

.pg-card_num {
    display: grid;
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    place-items: center;
    border-radius: 50%;
    background: #f1f8f7;
    color: #087a72;
    font-size: 13px;
    font-weight: 700;
}

/* 取扱注意事項（重要度で色分け） */
.pg-caution {
    border-top: 3px solid #0868a8;
}

.pg-caution_tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 8px;
    border-radius: 3px;
    background: #e8f1f8;
    color: #0868a8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
}

.pg-caution_danger {
    border-top-color: #c0392b;
}

.pg-caution_danger .pg-caution_tag {
    background: #fdf2f1;
    color: #c0392b;
}

.pg-caution_warning {
    border-top-color: #d9822b;
}

.pg-caution_warning .pg-caution_tag {
    background: #fdf5ec;
    color: #b0651a;
}

/* お支払方法 */
.pg-pay {
    margin: 0 0 12px;
    padding: 20px 22px;
    border: 1px solid #dfe4e8;
    border-left: 4px solid #0868a8;
    background: #fff;
}

.pg-pay_title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: 0;
}

.pg-pay .pg-text:last-child,
.pg-pay .pg-list:last-child {
    margin-bottom: 0;
}

.pg-bank {
    width: 100%;
    margin: 6px 0 14px;
    border-collapse: collapse;
    font-size: 14px;
}

.pg-bank th,
.pg-bank td {
    padding: 10px 12px;
    border: 1px solid #dfe4e8;
    text-align: left;
    vertical-align: top;
    line-height: 1.7;
}

.pg-bank th {
    width: 150px;
    background: #f7fafc;
    font-weight: 700;
    white-space: nowrap;
}

/* 案内ボックス */
.pg-box {
    margin: 18px 0 14px;
    padding: 18px 22px;
    border-left: 4px solid #087a72;
    background: #f1f8f7;
}

.pg-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
}

.pg-box p + p {
    margin-top: 6px;
}

.pg-box_warn {
    border-left-color: #d9a400;
    background: #fffaeb;
}

@media screen and (max-width: 1400px) {
    .pg-main .routes-wrapper {
        padding: 0 1.5rem;
        box-sizing: border-box;
    }

    .pg-main .content-wrapper {
        padding: 0 24px;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 991px) {
    .pg-main .routes-wrapper {
        padding: 0 10px;
    }

    .pg-main .section-content {
        display: block;
    }

    .pg-main .content-wrapper {
        padding: 0 13px;
    }

    .pg-main .main-content {
        max-width: none;
    }

    .pg-toc {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 700px) {
    .pg-header {
        padding: 26px 22px 28px;
    }

    .pg-header::after {
        font-size: 40px;
    }

    .pg-header_title {
        font-size: 26px;
    }

    .pg-toc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 48px;
    }

    .pg-section {
        margin-bottom: 56px;
    }

    .pg-section_title {
        font-size: 20px;
    }

    .pg-cards_2 {
        grid-template-columns: 1fr;
    }

    .pg-spec_row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .pg-pay {
        padding: 16px;
    }

    .pg-bank th,
    .pg-bank td {
        display: block;
        width: auto;
        border-top: 0;
    }

    .pg-bank tr:first-child th {
        border-top: 1px solid #dfe4e8;
    }
}
