/* ============================================================
   ご利用ガイド CSS（SP/PC共通・レスポンシブ対応）
   ブレークポイント: 768px / 1024px（モバイルファースト）
   1024px以上：guide-indexをスティッキーサイドバーに変換（HTML変更なし・CSSグリッドで実現）
   ============================================================ */

/* --- [01] 基礎設定 --- */
body { margin: 0; padding: 0; background-color: #f5f5f0; color: #2d2d2d; font-family: 'Inter', 'Noto Sans JP', sans-serif; position: relative; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }

/* --- [02] 質感ノイズ --- */
body::before { content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); opacity: 0.04; pointer-events: none; z-index: 9998; }

/* --- [03] パンくずリスト --- */
.breadcrumb-container { position: relative; padding: 85px 25px 20px; z-index: 10; }
.breadcrumbs {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0; margin: 0; font-size: 10px; letter-spacing: 0.05em; overflow-x: auto; white-space: nowrap;
}
.breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 10px; color: #ccc; }
.breadcrumbs a { text-decoration: none; color: #2d2d2d; opacity: 0.5; }

/* --- [04] ページタイトルエリア --- */
.page-header { padding: 20px 25px 40px; text-align: center; position: relative; }
.page-title { font-family: 'Noto Sans JP', sans-serif; font-weight: 550; font-size: 1.375rem; letter-spacing: 0.1rem; margin: 0; color: #1a2a40; line-height: 1.6; }
.page-title span { display: block; font-size: 10px; font-family: 'Inter', sans-serif; letter-spacing: 0.3em; margin-top: 10px; opacity: 0.6; }

/* --- [05] ガイドコンテンツ外枠 --- */
.guide-content { padding: 0 20px 100px; max-width: 800px; margin: 0 auto; }

/* --- [06] 目次ボタンエリア --- */
.guide-index { margin-top: 0; margin-bottom: 60px; }
.guide-index ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; }
.guide-index a { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; box-sizing: border-box; min-height: 80px; padding: 10px 10px; background: #fff; border: 1px solid #1a2a40; color: #1a2a40; text-decoration: none; font-size: 13px; text-align: center; font-weight: 700; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); transition: background-color 0.3s, border-color 0.3s, color 0.3s; white-space: nowrap; }
.guide-index a img { width: 36px; height: auto; margin-top: 12px; opacity: 0.8; }
.guide-index a:active { background-color: #f9f9f9; }

@media (max-width: 390px) {
    .guide-index a { font-size: 12px; }
}

/* SPのみ「について」の文字列を他部分より0.5px小さく表示 */
@media (max-width: 767px) {
    .guide-content .fs-sm { font-size: calc(1em - 0.5px); }
}

/* 「変更・返品・キャンセル」：SPは2行、768px以上は1行 */
.guide-cancel-label { display: block; text-align: center; }
.guide-cancel-p1 { display: block; }
.guide-cancel-p2 { display: block; }

@media (min-width: 768px) {
    .guide-cancel-p1 { display: inline; }
    .guide-cancel-p1::after { content: "・"; }
    .guide-cancel-p2 { display: inline; }
}

/* --- [07] 各セクション見出し --- */
.guide-section { margin-bottom: 60px; scroll-margin-top: 100px; }
.guide-section h2 { font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 20px; color: #1a2a40; border-bottom: 1px solid #bda16b; padding-bottom: 15px; margin: 0 0 20px 0; white-space: nowrap; }

/* 「5.ご注文内容の変更・返品・キャンセル」見出しのみSP時に縮小 */
@media (max-width: 767px) {
    #cancel h2 { font-size: 17px; }
}

/* --- [08] 本文テキストとリスト --- */
.guide-text { font-size: 15px; line-height: 2.2; color: #1a2a40; font-weight: 500; }
.guide-text ul { list-style: none; padding: 0; margin: 0; }
.guide-text li { margin-bottom: 12px; position: relative; padding-left: 0; }
.guide-text a { text-decoration: none; color: inherit; display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; background: #fff; border: 1px solid #e0e0d5; border-radius: 8px; transition: all 0.3s ease; white-space: nowrap; }
.guide-text a::after { content: "〉"; font-size: 12px; color: #bda16b; font-weight: bold; transition: transform 0.3s ease; }
.guide-text a:hover { background-color: #fcfcf9; border-color: #bda16b; color: #bda16b; }
.guide-text a:hover::after { transform: translateX(4px); }
.guide-text li::before { display: none; }

/* --- [09] レイアウト共通設定 --- */
main { position: relative; z-index: 1; }
section { position: relative; width: 100%; box-sizing: border-box; }

/* --- [10] TOPへ戻るボタン --- */
.totop-button { position: fixed; right: 20px; bottom: 20px; width: 54px; height: 54px; background-color: #bda16b; color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 10px; font-weight: 200; z-index: 9999; box-shadow: 0 2px 10px rgba(0,0,0,0.2); transition: opacity 0.3s, transform 0.3s; cursor: pointer; opacity: 0; visibility: hidden; text-align: center; line-height: 1.3; letter-spacing: 0.1em; }
.totop-button:hover { opacity: 0.8; transform: translateY(-3px); }
.totop-button.is-show { opacity: 1; visibility: visible; }


/* ============================================================
   タブレット（768px〜）
   ============================================================ */
@media (min-width: 768px) {
    .breadcrumb-container {
        padding: 100px 40px 20px;
    }

    .breadcrumbs {
        font-size: 12px;
    }

    .page-header {
        padding: 20px 40px 50px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .guide-content {
        padding: 0 40px 100px;
        max-width: 860px;
    }

    .guide-index ul {
        gap: 12px;
    }

    .guide-index a {
        min-height: 90px;
        font-size: 16px;
        padding: 18px 12px;
    }

    .guide-index a img {
        width: 40px;
        margin-top: 14px;
    }

    .guide-section h2 {
        font-size: 22px;
    }

    .guide-text {
        font-size: 16px;
    }

    .guide-text a {
        padding: 12px 18px;
    }

    .totop-button {
        width: 60px;
        height: 60px;
        font-size: 11px;
    }
}


/* ============================================================
   PC（1024px〜）
   目次ナビをスティッキーサイドバーに変換
   guide-content を 2カラムグリッドに変換（HTML変更なし）
   ============================================================ */
@media (min-width: 1024px) {
    .breadcrumb-container {
        max-width: 1300px;
        margin: 0 auto;
        padding: 110px 60px 20px;
        box-sizing: border-box;
    }

    .breadcrumbs {
        font-size: 13px;
    }

    .page-header {
        padding: 20px 60px 60px;
    }

    .page-title {
        font-size: 2rem;
    }

    /* 2カラムグリッドに変換：左=サイドバー(index)、右=セクション群 */
    .guide-content {
        display: grid;
        grid-template-columns: 240px 1fr;
        column-gap: 60px;
        align-items: start;
        max-width: 1300px;
        padding: 0 60px 120px;
        box-sizing: border-box;
    }

    /* サイドバーとして左列に固定・スクロール追従 */
    .guide-index {
        grid-column: 1;
        grid-row: 1 / span 99;
        position: sticky;
        top: 120px;
        margin-bottom: 0;
    }

    /* 全セクションを右列へ */
    .guide-section {
        grid-column: 2;
        scroll-margin-top: 130px;
    }

    /* サイドバー内は縦1列に変更 */
    .guide-index ul {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 8px;
    }

    /* 各リンクを横並び（アイコン左・テキスト右）に変換 */
    .guide-index a {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        min-height: 52px;
        padding: 10px 14px;
        gap: 12px;
        text-align: left;
        font-size: 14px;
    }

    /* アイコンをテキストの左に移動 */
    .guide-index a img {
        width: 28px;
        margin-top: 0;
        order: -1;
        flex-shrink: 0;
    }

    /* PCではhoverで色変化 */
    .guide-index a:hover {
        background-color: #1a2a40;
        color: #fff;
        border-color: #1a2a40;
    }

    .guide-index a:hover img {
        filter: brightness(0) invert(1);
    }

    .guide-section {
        margin-bottom: 70px;
    }

    .guide-section h2 {
        font-size: 24px;
        padding-bottom: 18px;
        margin-bottom: 24px;
    }

    .guide-text {
        font-size: 16px;
    }

    .guide-text a {
        padding: 14px 20px;
        font-size: 16px;
    }

    .guide-text a:active {
        background-color: #f5f5f0;
    }

    .totop-button {
        width: 64px;
        height: 64px;
        font-size: 11px;
        right: 30px;
        bottom: 30px;
    }
}
