/* =================================================================
   ご利用ガイド（フリーページ：guide-top）
   設置先：https://gigaplus.makeshop.jp/swat/cm/css/guide.css
================================================================= */

.guide-page *, .guide-page *::before, .guide-page *::after {
    box-sizing: border-box;
}

.guide-page {
    padding-bottom: 120px;
    color: #222;
}

html:has(.guide-page) {
    scroll-behavior: smooth;
}

/* ジャンプ先が固定ヘッダーに隠れないように */
.guide-page [id] {
    scroll-margin-top: calc(var(--hd-h, 170px) + 20px);
}

.guide-page p {
    font-size: 15px;
    line-height: 1.9;
}

.guide-page p + p {
    margin-top: 12px;
}

.guide-page strong {
    font-weight: 700;
}

.guide-page small {
    font-size: 12px;
    color: #666;
}

.guide-page img {
    max-width: 100%;
    height: auto;
}

/* -----------------------------------------------------------------
   メニュー
----------------------------------------------------------------- */

.gd-menu {
    margin-top: 50px;
}

.gd-menu ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.gd-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    min-height: 92px;
    padding: 14px 10px;
    border: 1px solid #222;
    color: #222;
    text-align: center;
    transition: background .2s, color .2s;
}

.gd-menu a:hover {
    background: #222;
    color: #fff;
}

.gd-menu-en {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    color: #c8161d;
}

.gd-menu a:hover .gd-menu-en {
    color: #fff;
}

.gd-menu-ja {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .06em;
}

/* -----------------------------------------------------------------
   セクション
----------------------------------------------------------------- */

.gd-sec {
    margin-top: 100px;
}

.gd-sec-ttl {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 30px;
    padding-bottom: 14px;
    border-bottom: 2px solid #222;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.4;
}

.gd-sec-ttl span {
    font-size: 14px;
    letter-spacing: .2em;
    color: #c8161d;
}

.gd-img {
    margin: 10px 0;
}

.gd-img img {
    display: block;
}

/* セクション内ジャンプ */
.gd-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 30px;
}

.gd-jump a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: #f2f2f2;
    color: #222;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s;
}

.gd-jump a::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.gd-jump a:hover {
    background: #dadada;
}

/* ブロック（宅急便・メール便・各決済など） */
.gd-block {
    margin-top: 50px;
}

.gd-block-ttl {
    margin-bottom: 20px;
    padding: 10px 18px;
    background: #333;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .08em;
}

/* 項目と内容の表 */
.gd-dl {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    border-top: 1px solid #e5e5e5;
}

.gd-dl dt,
.gd-dl dd {
    padding: 18px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.gd-dl dt {
    background: #f7f7f7;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.gd-dl dd {
    min-width: 0;
}

.gd-dl dd > :first-child {
    margin-top: 0;
}

.gd-strong {
    font-size: 17px !important;
    font-weight: 700;
}

.guide-page .gd-small {
    font-size: 12px;
    line-height: 1.7;
    color: #666;
}

.guide-page .gd-red {
    color: #c8161d;
}

.gd-total {
    margin-bottom: 16px;
    font-weight: 700;
}

.gd-campaign {
    font-size: 17px !important;
    font-weight: 700;
}

.gd-campaign em,
.gd-big em {
    font-style: normal;
    color: #c8161d;
}

.gd-badge {
    display: inline-block;
    margin-right: 10px;
    padding: 2px 10px;
    background: #c8161d;
    color: #fff;
    font-size: 12px;
    vertical-align: 2px;
}

.gd-account {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    font-weight: 700;
    letter-spacing: .04em;
}

/* 注意書き */
.gd-note {
    margin: 30px 0;
    padding: 24px 28px;
    border: 1px solid #c8161d;
    background: #fff7f7;
}

.gd-note-ttl {
    margin-bottom: 10px;
    color: #c8161d;
    font-weight: 700;
    font-size: 16px !important;
}

.gd-note--center {
    text-align: center;
}

.gd-note--red p:not(.gd-note-ttl) {
    color: #c8161d;
}

.guide-page .gd-big {
    font-size: 22px;
    font-weight: 700;
}

.gd-box {
    margin: 16px 0;
    padding: 18px 22px;
    background: #f7f7f7;
}

/* 箇条書き */
.gd-list {
    margin: 12px 0;
}

.gd-list li {
    position: relative;
    padding-left: 1.3em;
    font-size: 15px;
    line-height: 1.9;
}

.gd-list li + li {
    margin-top: 6px;
}

.gd-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 10px;
    line-height: 2.85;
    color: #555;
}

.gd-list--note li {
    font-size: 13px;
    color: #555;
}

.gd-list--note li::before {
    content: '※';
    font-size: 13px;
    line-height: 1.9;
}

/* 連絡先 */
.gd-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.gd-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    padding: 16px 30px;
    background: #c8161d;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .08em;
    transition: opacity .2s;
}

.gd-contact-btn:hover {
    color: #fff;
    opacity: .8;
}

.gd-dl--address {
    grid-template-columns: 160px minmax(0, 1fr);
}

.gd-dl--address dd {
    font-size: 15px;
}

/* -----------------------------------------------------------------
   メニューに戻る（右下に固定）
----------------------------------------------------------------- */

.gd-back {
    position: fixed !important;
    right: 24px;
    bottom: 24px;
    z-index: 9000;
    box-sizing: border-box;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .04em;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
    transition: opacity .3s, visibility .3s, transform .3s, background .2s;
}

.gd-back:hover {
    background: #c8161d;
    color: #fff;
}

.gd-back-arrow {
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: translateY(3px) rotate(45deg);
}

/* メニューが画面に見えている間・ドロワー表示中は隠す（guide.jsで切り替え） */
html.is-drawer-open .gd-back,
.gd-back.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
}

/* -----------------------------------------------------------------
   レスポンシブ
----------------------------------------------------------------- */

@media screen and (max-width: 768px) {
    .guide-page {
        padding-bottom: 70px;
    }
    .guide-page p,
    .gd-list li {
        font-size: 14px;
    }
    .gd-menu {
        margin-top: 30px;
    }
    .gd-menu ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .gd-menu a {
        min-height: 76px;
    }
    .gd-menu-ja {
        font-size: 14px;
    }
    .gd-sec {
        margin-top: 70px;
    }
    .gd-sec-ttl {
        font-size: 21px;
    }
    .gd-block {
        margin-top: 36px;
    }
    .gd-block-ttl {
        font-size: 16px;
        padding: 9px 14px;
    }
    .gd-dl,
    .gd-dl--address {
        grid-template-columns: 1fr;
    }
    .gd-dl dt {
        padding: 10px 12px;
        border-bottom: 0;
    }
    .gd-dl dd {
        padding: 12px 12px 20px;
    }
    .gd-strong,
    .gd-campaign {
        font-size: 16px !important;
    }
    .gd-note {
        padding: 18px 16px;
    }
    .guide-page .gd-big {
        font-size: 18px;
    }
    .gd-contact-btn {
        width: 100%;
    }
    .gd-back {
        right: 12px;
        bottom: 12px;
        width: 72px;
        height: 72px;
        font-size: 10px;
    }
}
