/** Header表示、カート情報の表示部分 **/
/* ヘッダーの基本レイアウト修正 */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* PC版でのセンター配置 */
@media (min-width: 769px) {
    .header-container {
        justify-content: center;
        gap: 40px; /* 各要素間のスペース */
    }
    
    .logo {
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin: 0 !important;
    }
    
    .navmenu {
        margin: 0;
    }
}

/* PC表示時のカートアイコンをヘッダー内に統合 */
@media (min-width: 769px) {
    .cart-container {
        position: static;
        margin: 0;
    }
    
    .cart-icon {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        background: linear-gradient(45deg, #f39c12, #e67e22);
        border: 2px solid #d35400;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
    }
    
    .cart-icon:hover {
        background: linear-gradient(45deg, #e67e22, #d35400);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        transform: translateY(-1px);
    }
    
    .cart-icon svg {
        width: 24px;
        height: 24px;
        color: #ffffff;
    }
    
    .cart-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        background-color: #c0392b;
        color: white;
        border-radius: 50%;
        min-width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        border: 2px solid #fff;
    }
}

/* モバイル表示時は固定位置のまま */
@media (max-width: 768px) {
    .cart-container {
        position: fixed;
        top: 15px;
        right: 70px;
        z-index: 1000;
    }
    
    .cart-icon {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        background: linear-gradient(45deg, #f39c12, #e67e22);
        backdrop-filter: blur(8px);
        border: 2px solid #d35400;
        border-radius: 50%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
    }
    
    .cart-icon:hover {
        background: linear-gradient(45deg, #e67e22, #d35400);
        transform: translateY(-1px);
    }
    
    .cart-icon svg {
        width: 20px;
        height: 20px;
        color: #ffffff;
    }
    
    .cart-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        background-color: #c0392b;
        color: white;
        border-radius: 50%;
        min-width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: bold;
        border: 2px solid #fff;
    }
}

/* より小さい画面用 */
@media (max-width: 480px) {
    .cart-container {
        right: 60px;
    }
    
    .cart-icon {
        padding: 10px;
        background: linear-gradient(45deg, #f39c12, #e67e22);
        border: 2px solid #d35400;
    }
    
    .cart-icon svg {
        width: 18px;
        height: 18px;
        color: #ffffff;
    }
    
    .cart-badge {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        top: -6px;
        right: -6px;
        background-color: #c0392b;
    }
}

/* アニメーション効果 */
.cart-badge.animate {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ナビゲーションメニューの調整 */
@media (min-width: 769px) {
    /* PC版では全ての要素を中央に配置 */
    .header-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 60px; /* 間隔を広げる */
        position: relative;
    }
    
    /* ナビゲーションを中央に配置 */
    .navmenu {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
    
    /* ロゴを左側に配置 */
    .logo {
        order: -1;
        margin: 0;
        flex-shrink: 0;
    }
    
    /* カートを右側に配置 */
    .cart-container {
        order: 1;
        margin: 0;
        flex-shrink: 0;
    }
}

/* Cart.blade.php 数量入力フィールドのスタイル */
.quantity-input {
    width: 80px;
    height: 35px;
    text-align: center;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    color: #2c3e50;
    margin: 0 auto;
    display: block;
}
/*  Cart.blade.php ボタン */
.button-container-responsive {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 768px) {
    .button-container-responsive {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        padding: 0 20px;
    }
    
    .button-container-responsive .btn {
        flex: 1;
        max-width: 200px;
    }
}

/* checkout */
.zip-btn {
    display: inline-block;
    min-width: 170px;
    height: 50px;
    color: #ffffff;
    border: none;
    border-radius: 0;
    padding: 0 40px;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 50px;
    background-color: #e2e2e2;
    letter-spacing: 1.5px;
    font-weight: 600;
}


.about .about-image .experience-badge {
    right: 10px !important;
}