body.club_modal {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding-top: 50px;
    box-sizing: border-box;
}
.headcover_modal_content {
    padding: 16px 16px 24px;
    width: 100%;
    box-sizing: border-box;
}
.headcover_modal_title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}
.headcover_modal_item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 28px;
    text-align: left;
}
.headcover_modal_image {
    width: 140px;
    height: auto;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.headcover_modal_info .name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: left;
}
.headcover_modal_info .price {
    color: #e60012;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: left;
}
.headcover_modal_info .price.original {
    color: #666;
    font-size: 1rem;
    text-decoration: line-through;
    margin-bottom: 4px;
}
.headcover_modal_info .price small {
    font-size: 0.85rem;
    color: #666;
    margin-left: 4px;
}
.close_modal_btn_wrap {
    text-align: center;
    margin-top: 100px;
}
.btn_close {
    display: inline-block;
    padding: 10px 40px;
    background: #666;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
.btn_close:hover {
    background: #444;
}

/* SP (Mobile) adjustments */
/* Trigger SP layout only when width is 500px or less (PC modal is 700px) */
@media screen and (max-width: 500px) {
    body.club_modal {
        padding-top: 24px;
    }
    .headcover_modal_content {
        padding: 12px 12px 20px;
    }
    .headcover_modal_title {
        font-size: 1.15rem;
        margin-bottom: 20px;
        text-align: left;
    }
    .headcover_modal_item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 15px;
        gap: 15px;
        text-align: left;
        margin-bottom: 20px;
    }
    .headcover_modal_image {
        width: 120px;
        margin: 0;
    }
    .headcover_modal_info .name {
        font-size: 0.95rem;
        margin-bottom: 6px;
        text-align: left;
    }
    .headcover_modal_info .price {
        font-size: 1.25rem;
        text-align: left;
    }
    .headcover_modal_info .price.original {
        font-size: 0.85rem;
    }
    .headcover_modal_info .price small {
        font-size: 0.75rem;
    }
    .close_modal_btn_wrap {
        margin-top: 40px;
    }
    .btn_close {
        padding: 10px 30px;
        width: 100%;
        max-width: 200px;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   カート画面・詳細画面での「ヘッドカバーセット購入」ボタン・リンク用
   ========================================================================== */

/* モーダル表示時のカスタムサイズ設定（Modaalプラグイン用） */
.modaal-headcover .modaal-inner-wrapper {
    padding-top: 18vh;
    padding-bottom: 18vh;
}
@media screen and (max-width: 500px) {
    .modaal-headcover .modaal-inner-wrapper {
        padding-top: 10vh;
        padding-bottom: 10vh;
    }
}
.modaal-headcover .modaal-container {
    max-width: 700px;
}

/* --------------------------------------------------------------------------
   カート画面での表示（PC/SP で位置を出し分け）
   -------------------------------------------------------------------------- */

/* PC版：grip_select内に配置（右側） */
.headcover_pc {
    display: block;
}

/* SP版：商品情報エリア：在庫店舗情報の下に配置（左側） */
.headcover_sp {
    display: none;
}

@media (max-width: 739px) {
    .headcover_pc {
        display: none !important;
    }
    .headcover_sp {
        display: block !important;
    }
}

/* --------------------------------------------------------------------------
   PC版のデザイン（grip_select内）向け調整
   -------------------------------------------------------------------------- */
.headcover_together_small {
    margin-top: 8px;
    text-align: center;
    width: 100%;
}

/* cart.css の .price_block .grip_select a スタイルを打ち消して詳細画面のデザインを再現 */
.price_block .grip_select a.headcover_link_small.explan_btn_detail {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    color: #222 !important;
    text-align: center !important;
    margin-top: 6px !important;
    font-weight: bold !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    white-space: nowrap !important;
}

.price_block .grip_select a.headcover_link_small.explan_btn_detail svg {
    margin-left: 3px !important;
    width: 10px !important;
    height: 9px !important;
    color: #222 !important;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   SP版のデザイン（在庫店情報の下）向け調整
   -------------------------------------------------------------------------- */
.headcover_together_cart {
    margin-top: 12px;
    text-align: left;
    max-width: 100%;
}

.headcover_together_cart .btn_headcover_small {
    max-width: 240px;
    font-size: 11px;
    padding: 4px 10px;
    min-height: 3.2em;
}

.headcover_together_cart .headcover_link_small.explan_btn_detail {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    color: #222;
    text-align: left;
    margin-top: 8px;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   共通パーツ：ヘッドカバーセット購入ボタン（共通）
   -------------------------------------------------------------------------- */
.btn_headcover_small {
    width: 100%;
    box-sizing: border-box;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.02em;
    color: var(--orange, #ec6300);
    background: #fff;
    border: 2px solid var(--orange, #ec6300);
    border-radius: 50px;
    padding: 2px 10px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8em;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    white-space: normal;
}

.btn_headcover_small:hover {
    background: var(--orange, #ec6300);
    color: #fff;
}

/* --------------------------------------------------------------------------
   詳細画面での表示（従来のデザインを維持）
   -------------------------------------------------------------------------- */
.headcover_together {
    position: relative;
    padding-bottom: 45px !important;
    clear: both;
}

.headcover_together .item_submit_cart_button {
    width: 100%;
    margin-bottom: 8px;
}

.headcover_together .btn_stock_cart {
    width: 100%;
    height: 48px;
    background: #fff;
    border: 2px solid var(--orange, #ed6c00);
    color: var(--orange, #ed6c00);
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.12rem;
}

.headcover_together .btn_stock_cart:hover {
    background: var(--orange, #ed6c00);
    color: #fff;
}

.headcover_together .headcover_shipping_link_wrapper {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    text-align: right;
}

.headcover_together .explan_btn_detail {
    display: inline-flex;
    align-items: center;
    font-size: 0.86rem;
    color: #222;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: bold;
}

.headcover_together .explan_btn_detail svg {
    margin-left: 5px;
    width: 10px;
    height: 9px;
    color: #222;
}

/* SP (Mobile) レスポンシブ調整（詳細画面用） */
@media screen and (max-width: 739px) {
    .headcover_together {
        padding-bottom: 50px !important;
    }
}
/* ==========================================================================
   カート画面での「ヘッドカバー推奨」ボックス
   ========================================================================== */

.headcover_recommend_box {
    margin: 15px 0 0 auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    width: 90%;
    clear: both;
    padding: 15px;
    box-sizing: border-box;
}

.headcover_recommend_item {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
}

.headcover_recommend_left {
    display: flex;
    gap: 20px;
    flex: 1;
    align-items: stretch;
}

.headcover_recommend_photo {
    width: 80px;
    height: 80px;
    background: #fff;
    flex-shrink: 0;
    align-self: flex-end;
}

.headcover_recommend_photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.headcover_recommend_main_info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.headcover_recommend_promo {
    color: #e60012;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1;
}

.headcover_recommend_name {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: auto;
    line-height: 1.4;
    color: #222;
}

.btn_headcover_detail {
    display: inline-block;
    padding: 4px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #333;
    font-size: 11px;
    text-decoration: none;
    transition: 0.2s;
}

.btn_headcover_detail:hover {
    background: #f5f5f5;
}

.headcover_recommend_right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 180px;
}

.headcover_recommend_price_wrap {
    margin-bottom: auto;
}

.headcover_recommend_price {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    line-height: 1;
}

.headcover_recommend_price.original {
    color: #666;
    font-size: 14px;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.headcover_recommend_price span {
    font-size: 11px;
    font-weight: normal;
    margin-left: 2px;
}

.headcover_recommend_point {
    font-size: 12px;
    color: var(--orange, #ec6300);
    margin-top: 5px;
}

.btn_headcover_orange_outline {
    background: #fff;
    color: var(--orange, #ec6300);
    border: 2px solid var(--orange, #ec6300);
    border-radius: 50px;
    padding: 8px 25px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.btn_headcover_orange_outline:hover {
    background: var(--orange, #ec6300);
    color: #fff;
}

@media (max-width: 739px) {
    .headcover_recommend_box {
        padding: 15px;
        width: 100%;
    }
    .headcover_recommend_item {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .headcover_recommend_left {
        align-items: center;
    }
    .headcover_recommend_right {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-top: 1px dashed #eee;
        padding-top: 15px;
    }
    .headcover_recommend_price_wrap {
        order: 2;
        margin-bottom: 0;
        margin-left: 10px;
        text-align: right;
        white-space: nowrap;
    }
    .btn_headcover_orange_outline {
        order: 1;
        flex: 1;
        text-align: center;
        padding: 8px 12px;
    }
}
