

/* --- [03. パンくずリスト] 配置と余白を固定（先祖返り防止エリア） --- */
.btc-mypage-delivery__breadcrumb-container {
    position: relative;
    padding: 85px 25px 20px; /* ヘッダーとの干渉を防ぐ上部余白 */
    z-index: 10;
}
.btc-mypage-delivery__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-delivery__breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 10px;
    color: #ccc;
}
.btc-mypage-delivery__breadcrumbs a {
    text-decoration: none;
    color: #2d2d2d;
    opacity: 0.5;
}

/* --- [04. ページヘッダー] タイトル表示エリア（先祖返り防止エリア） --- */
.btc-mypage-delivery__page-header {
    padding: 20px 25px 30px;
    text-align: center;
    position: relative;
}
.btc-mypage-delivery__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-delivery__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-delivery__main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* --- [06. TOPへ戻るボタン] スタイルと配置設定 --- */
.btc-mypage-delivery__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-delivery__totop-button:hover { opacity: 0.8; transform: translateY(-3px); }
.btc-mypage-delivery__totop-button.btc-mypage-delivery__is-show { opacity: 1; visibility: visible; }

/* --- [07. ユーザー挨拶エリア] （バランス固定エリア） --- */
.btc-mypage-delivery__mypage-greeting {
    padding: 0px 0 10px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 24px;
}
.btc-mypage-delivery__mypage-greeting .btc-mypage-delivery__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-delivery__mypage-greeting .btc-mypage-delivery__user-name em {
    font-style: normal;
    font-size: 16px;
    font-weight: 500;
    color: #2d2d2d;
    margin-left: 4px;
    letter-spacing: 0.05em;
}

/* --- [08. 新規追加：お申込みの定期セクション見出し] --- */
.btc-mypage-delivery__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-delivery__form-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 5px;
    box-sizing: border-box;
}

.btc-mypage-delivery__form-lead {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #555555;
    text-align: left;
}

/* --- [09. 追加：お届け先操作・一覧用カスタムスタイル] --- */
/* 「新しいお届け先を追加する」ボタンエリア */
.btc-mypage-delivery__address-action-wrap {
    display: flex;
    justify-content: center;
}
.btc-mypage-delivery__btn-add-address {
    background-color: #008075; /* ボタン背景色を枠線色と統一 */
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    box-sizing: border-box;
    letter-spacing: 0.05em;
}

.btc-mypage-delivery__btn-cant-add-address {
    background-color: #cc3333; /* ボタン背景色を枠線色と統一 */
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    box-sizing: border-box;
    letter-spacing: 0.05em;
}

/* 登録済みお届け先一覧コンテナ（指定：緑の枠#008075 / 背景色#f1f1f0） */
.btc-mypage-delivery__saved-addresses-box {
    border: 2px solid #008075; /* 緑の枠線 */
    background-color: #f1f1f0;  /* 背景色 */
    padding: 20px 15px;
    border-radius: 8px;
    margin-top: 25px;
    box-sizing: border-box;
}

/* 【修正】お届け先一覧見出し：フォントを「Zen Kaku Gothic New」に固定 */
.btc-mypage-delivery__saved-addresses-box h3 {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #2d2d2d;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 128, 117, 0.3);
}

/* 「登録はありません」テキスト用スタイル */
.btc-mypage-delivery__address-empty-text {
    font-size: 15px;
    color: #555555;
    padding: 10px 0;
}

/* 登録ありパターンのデータ表示カード */
.btc-mypage-delivery__address-record-card {
    background-color: #ffffff; /* 情報がハッキリ見えやすいようにカード内は白背景 */
    border-radius: 6px;
    padding: 15px;
    box-sizing: border-box;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}
.btc-mypage-delivery__address-record-card:last-child {
    margin-bottom: 0; /* 最後のカードはマージンをリセット */
}

/* 住所テキスト等の詳細ブロック */
.btc-mypage-delivery__address-detail-flex {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #2d2d2d;
}

/* 【修正・強化】リストの「１」「２」の数字をより目立たせるためのバッジスタイル */
.btc-mypage-delivery__address-index-num {
    background-color: #008075; /* 緑の背景 */
    color: #ffffff;            /* 文字は白 */
    font-size: 12px;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    width: 22px;
    height: 22px;
    border-radius: 50%;        /* 真ん丸にする設定 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;            /* 画面幅が狭まっても丸が潰れないように固定 */
    margin-top: 2px;           /* テキストの1行目と高さを合わせる微調整 */
}

.btc-mypage-delivery__address-info-texts p {
    margin: 0 0 4px 0;
}
.btc-mypage-delivery__address-info-texts p:last-child {
    margin-bottom: 0;
}

/* 変更・削除ボタンのコンテナ（右寄せ） */
.btc-mypage-delivery__address-card-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}
/* 変更（ボタン） */
.btc-mypage-delivery__btn-sub-edit {
    background-color: #ffffff;
    border: 1px solid #008075;
    color: #008075;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
}
/* 削除（ボタン） */
.btc-mypage-delivery__btn-sub-delete {
    background-color: #e5e5e0;
    border: 1px solid #cccccc;
    color: #2d2d2d;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
}

/* --- [11. ボタンエリア] マイページに戻る白ボタン用の装飾 --- */
.btc-mypage-delivery__btn-container {
    padding: 0 35px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 480px;
}
.btc-mypage-delivery__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: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
    border-radius: 30px;
    box-sizing: border-box;
}
.btc-mypage-delivery__form-btn:hover { opacity: 0.8; }
/* サイトの共通ブランドカラーである深緑(#008075)と親和性を持たせるため、テキストと境界線の色を設定 */
.btc-mypage-delivery__btn-white { background-color: #ffffff; color: #008075; border: 1px solid #008075; }

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

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