

/* --- [03. パンくずリスト] --- */
.btc-mypage-history__breadcrumb-container {
    position: relative;
    padding: 85px 25px 20px;
    z-index: 10;
}
.btc-mypage-history__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;
    -webkit-overflow-scrolling: touch;
}
.btc-mypage-history__breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 10px;
    color: #ccc;
}
.btc-mypage-history__breadcrumbs a {
    text-decoration: none;
    color: #2d2d2d;
    opacity: 0.5;
}

/* --- [04. ページヘッダー] --- */
.btc-mypage-history__page-header {
    padding: 20px 25px 30px;
    text-align: center;
    position: relative;
}
.btc-mypage-history__page-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.1rem;
    margin: 0;
    color: #008075;
    line-height: 1.6;
}
.btc-mypage-history__page-title span {
    display: block;
    font-size: 10px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 2em;
    text-indent: 2em;
    text-align: center;
    margin-top: 0px;
    opacity: 0.6;
}

/* --- [05. コンテンツエリア共通設定] --- */
main { position: relative; z-index: 1; }
.btc-mypage-history__main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* --- [08. セクション見出し] --- */
.btc-mypage-history__section-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #008075;
    margin: 36px 0 24px;
    letter-spacing: 0.05em;
}

.btc-mypage-history__mypage-download-receipt {
    text-align: right;
    margin-bottom: 15px;
}

.btc-mypage-history__form-btn-small {
    display: inline-flex;
    line-height: 1;
    padding: 10px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
    border-radius: 15px;
    box-sizing: border-box;
    color: var(--color__white);
    background-color: #008075;
    border: #008075;
}


/* --- [06. TOPへ戻るボタン] --- */
.btc-mypage-history__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, visibility 0.3s;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.1em;
}
.btc-mypage-history__totop-button:hover { opacity: 0.8; transform: translateY(-3px); }
.btc-mypage-history__totop-button.btc-mypage-history__is-show { opacity: 1; visibility: visible; }

/* --- [07. ユーザー挨拶エリア] --- */
.btc-mypage-history__mypage-greeting {
    padding: 0px 0 10px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 24px;
}
.btc-mypage-history__mypage-greeting .btc-mypage-history__user-name {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    color: #2d2d2d;
    letter-spacing: 0.06em;
    margin: 0 0 4px;
}
.btc-mypage-history__mypage-greeting .btc-mypage-history__user-name em {
    font-style: normal;
    font-size: 16px;
    font-weight: 500;
    color: #2d2d2d;
    margin-left: 4px;
    letter-spacing: 0.05em;
}

/* ==========================================================================
    購入履歴詳細：縦積みレイアウト
    ========================================================================== */

/* 各項目のブロック（外枠なし、境界線で区切る） */
.btc-mypage-history__detail-block {
    border-bottom: 1px solid #e5e5e5;
    padding: 0;
    margin-bottom: 0;
}
.btc-mypage-history__detail-block:last-child {
    border-bottom: none;
}

/* ラベル行：緑色の帯背景 */
.btc-mypage-history__detail-label {
    background-color: #e6f4f1;
    color: #005a52;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 10px 20px;
    display: block;
    border-left: 3px solid #008075;
}

/* 内容行 */
.btc-mypage-history__detail-value {
    padding: 20px 15px 25px;
    font-size: 18px;
    font-weight: 500;
    color: #2d2d2d;
    line-height: 1.8;
    font-family: 'Noto Sans JP', sans-serif;
}

/* 商品詳細BOXのみ独立させた余白調整用スタイル */
.btc-mypage-history__detail-value.btc-mypage-history__product-detail-box {
    padding: 20px 0px;
}

/* 注文番号：強調表示 */
.btc-mypage-history__order-number {
    font-size: 18px;
    font-weight: 500;
    color: #2d2d2d;
}
.btc-mypage-history__order-sub-highlight {
    color: #008075;
    font-weight: 700;
    font-size: 16px;
    margin-left: 6px;
}

/* 商品詳細の2ブロック左右並び */
.btc-mypage-history__product-flex-box {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 20px;
}
.btc-mypage-history__product-left-block {
    width: 155px;
    flex-shrink: 0;
}
.btc-mypage-history__product-left-block img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    display: block;
}
.btc-mypage-history__product-right-block {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    box-sizing: border-box;
}
.btc-mypage-history__product-name {
    font-weight: 700;
    font-size: 16px;
    margin: 0;
    color: #2d2d2d;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 3px;
    flex-shrink: 0;
    width: 100%;
}

.btc-mypage-history__product-contents {
    list-style: none;
    padding: 0px 5px;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}
.btc-mypage-history__product-contents li {
    font-size: 13px;
    color: #444444;
    line-height: 1.4;
    padding: 0 0 0 14px;
    position: relative;
}
.btc-mypage-history__product-contents li:not(:last-child) {
    padding-bottom: 2px;
}
.btc-mypage-history__product-contents li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: #008075;
}

.btc-mypage-history__qtys-box {
    display: flex;
    flex-direction: column;
}
.btc-mypage-history__product-qty {
    font-size: 15px;
    color: #666666;
    margin: 0;
    padding-left: 10px;
    text-align: left;
    flex-shrink: 0;
}

/* 金額明細リスト */
.btc-mypage-history__price-breakdown-list {
    list-style: none;
    padding: 18px 22px;
    margin: 0;
    background-color: #f5f0e8;
    border-radius: 8px;
}
.btc-mypage-history__price-breakdown-list li {
    display: flex;
    justify-content: space-between;
    font-size: 17px;
    margin-bottom: 0px;
    color: #4a3b28;
}
.btc-mypage-history__price-breakdown-list li:nth-last-child(2) {
    padding-bottom: 10px;
}
.btc-mypage-history__price-breakdown-list li:last-child {
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px dashed #c4a87a;
    font-size: 19px;
    font-weight: 700;
    color: #2c2010;
}

/* --- [11. ボタンエリア] --- */
.btc-mypage-history__btn-container {
    padding: 0 20px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.btc-mypage-history__form-btn {
    width: 100%;
    height: 60px;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
    border-radius: 32px;
    box-sizing: border-box;
}
.btc-mypage-history__form-btn:hover { opacity: 0.8; }
.btc-mypage-history__btn-green { background-color: #008075; color: #ffffff; }
.btc-mypage-history__btn-white { background-color: #ffffff; color: #008075; border: 1px solid #008075; }
.btc-mypage-history__btn-light-green {
    background-color: #e6f4f1;
    color: #008075;
}

/* ============================================================
   PC・タブレット レイアウト（768px以上）
   ============================================================ */
@media (min-width: 768px) {
    .btc-mypage-history__breadcrumb-container {
        max-width: 960px;
        margin: 0 auto;
    }
    .btc-mypage-history__breadcrumbs {
        font-size: 12px;
    }
    .btc-mypage-history__main-content {
        max-width: 960px;
        padding: 15px 30px 80px;
        display: flex;
        flex-wrap: wrap;
    }
    .btc-mypage-history__main-content .c-contents-header {
        width: 100%;
    }
    .btc-mypage-history__main-content .mypage-contents__aside {
        width: 240px;
        margin-right: 50px;
        position: sticky;
        top: 95px;
        align-self: flex-start;
    }
    .btc-mypage-history__main-content .btc-mypage-history__form-content {
        width: calc(100% - 290px);
    }
    .btc-mypage-history__section-title {
        font-size: 26px;
        margin: 20px 0 45px;
    }
    .btc-mypage-history__btn-container {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================================
   ワイドデスクトップ（1024px以上）
   ============================================================ */
@media (min-width: 1024px) {
    .btc-mypage-history__main-content {
        max-width: 1060px;
    }
    .btc-mypage-history__breadcrumb-container {
        max-width: 1060px;
    }

    /* 注文情報を2列グリッドで並べる */
    .btc-mypage-history__detail-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 40px;
    }
    .btc-mypage-history__detail-grid .btc-mypage-history__detail-block {
        border-top: none;
    }
}
