/* ========================================
   GOLDEN FEET Online Shop - Modern Design
   ======================================== */

/* ========== リセット & 基本設定 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ゴールドと黒をベースにしたカラーパレット */
    --primary-gold: #D4AF37;
    --primary-dark: #1a1a1a;
    --secondary-gold: #F4E4C1;
    --accent-gold: #FFD700;
    --dark-bg: #0d0d0d;
    --light-text: #ffffff;
    --gray-text: #cccccc;
    --gray-light: #f5f5f5;
    --border-color: #333333;
    --success-green: #28a745;
    --error-red: #dc3545;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 24px rgba(212, 175, 55, 0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== トップバー ========== */
.top-bar {
    background: var(--dark-bg);
    border-bottom: 1px solid var(--primary-gold);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-link {
    color: var(--secondary-gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.top-link:hover {
    color: var(--accent-gold);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-switcher i {
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.lang-switcher select {
    background: var(--primary-dark);
    color: var(--light-text);
    border: 1px solid var(--primary-gold);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lang-switcher select:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
}

/* ========== メインヘッダー ========== */
.main-header {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: center;
}

/* ========== ロゴエリア（右上に配置） ========== */
.logo-area {
    display: flex;
    align-items: center;
}

.logo-area a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.5));
    transition: transform 0.3s;
}

.site-logo:hover {
    transform: scale(1.05);
}

.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* ========== 検索フォーム ========== */
.search-form {
    display: flex;
    background: var(--primary-dark);
    border: 2px solid var(--primary-gold);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s;
    flex: 1;
    max-width: 600px;
}

.search-form:focus-within {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    border-color: var(--accent-gold);
}

.search-form input {
    flex: 1;
    border: none;
    padding: 14px 24px;
    background: transparent;
    color: var(--light-text);
    font-size: 1rem;
    outline: none;
    min-width: 200px;
}

.search-form input::placeholder {
    color: var(--gray-text);
}

.search-form button {
    background: var(--primary-gold);
    border: none;
    padding: 14px 28px;
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.search-form button:hover {
    background: var(--accent-gold);
    transform: scale(1.05);
}

/* ========== ヘッダーアイコン ========== */
.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-shrink: 0;
}

.header-icon-link {
    color: var(--primary-gold);
    font-size: 1.4rem;
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
    padding: 8px;
}

.header-icon-link:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error-red);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ========== グローバルナビゲーション ========== */
.main-nav-bar {
    background: var(--primary-dark);
    border-top: 2px solid var(--primary-gold);
    border-bottom: 2px solid var(--primary-gold);
    padding: 0;
}

.main-nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.main-nav-list li {
    position: relative;
}

.main-nav-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    color: var(--secondary-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.main-nav-list a:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
    border-bottom-color: var(--accent-gold);
}

.main-nav-list a i {
    font-size: 1.1rem;
}

/* ========== メインコンテンツ ========== */
.main-content {
    padding: 40px 20px;
    min-height: 70vh;
}

/* ========== メッセージ ========== */
.message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.message.success {
    background: linear-gradient(135deg, #28a745 0%, #20873a 100%);
    border-left: 4px solid #1e7e34;
}

.message.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-left: 4px solid #bd2130;
}

.message i {
    font-size: 1.4rem;
}

/* ========== ヒーローセクション ========== */
.hero-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(13, 13, 13, 0.9) 100%),
                url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(212,175,55,0.1)" stroke-width="0.5"/></pattern><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    padding: 100px 20px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 60px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-gold);
    margin-bottom: 20px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9);
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--gray-text);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== セクション共通 ========== */
.section-new-arrivals,
.section-recommendations {
    margin-bottom: 60px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(13, 13, 13, 0.95) 100%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-gold);
}

.section-title i {
    font-size: 2rem;
    color: var(--accent-gold);
}

/* ========== 商品グリッド ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-hover);
}

.product-image-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.6s;
}

.product-card:hover .product-image-placeholder::before {
    left: 100%;
}

.product-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .product-image-placeholder img {
    transform: scale(1.1);
}

.product-info {
    padding: 24px;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-name a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s;
}

.product-name a:hover {
    color: var(--primary-gold);
}

.product-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-gold);
    margin-bottom: 16px;
}

/* ========== カテゴリグリッド ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.category-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: all 0.4s;
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-gold);
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    box-shadow: var(--shadow-hover);
}

.category-icon-placeholder {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.category-icon-placeholder i {
    font-size: 2.5rem;
    color: var(--primary-dark);
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 8px;
}

.category-count {
    color: var(--gray-text);
    font-size: 1rem;
}

.arrow-icon {
    color: var(--primary-gold);
    font-size: 1.4rem;
    transition: transform 0.3s;
}

.category-card:hover .arrow-icon {
    transform: translateX(8px);
}

/* ========== ボタン ========== */
.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.button.primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    color: var(--primary-dark);
}

.button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

.button.secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.button.secondary:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.button.small {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.button.large {
    padding: 18px 48px;
    font-size: 1.2rem;
}

/* ========== フッター ========== */
.site-footer {
    background: linear-gradient(180deg, #0d0d0d 0%, #000000 100%);
    border-top: 3px solid var(--primary-gold);
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.footer-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--primary-gold);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p,
.footer-col li {
    color: var(--gray-text);
    margin-bottom: 12px;
    line-height: 1.8;
}

.footer-col p i {
    color: var(--primary-gold);
    margin-right: 10px;
    width: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: var(--gray-text);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-col a:hover {
    color: var(--primary-gold);
    transform: translateX(5px);
}

/* ========== ニュースレター ========== */
.newsletter-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--primary-dark);
    color: var(--light-text);
    font-size: 1rem;
    transition: all 0.3s;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.newsletter-form button {
    padding: 14px 32px;
}

/* ========== ソーシャルアイコン ========== */
.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-dark);
    border: 2px solid var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
    transform: translateY(-4px) rotate(360deg);
}

/* ========== フッターボトム ========== */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-copy {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* ========== データなし ========== */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-text);
    font-size: 1.1rem;
    font-style: italic;
}

/* ========== レスポンシブ対応 ========== */
@media (max-width: 1200px) {
    .hero-content h2 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 992px) {
    .main-header-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo-area {
        order: 1;
        width: 100%;
        justify-content: center;
        min-width: auto;
    }
    
    .search-form {
        order: 2;
        width: 100%;
        max-width: 100%;
    }
    
    .header-icons {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .main-nav-list {
        flex-direction: column;
        align-items: stretch;
    }
    
    .main-nav-list a {
        justify-content: center;
        padding: 14px 20px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        flex-direction: column;
        text-align: center;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .footer-content-grid {
        grid-template-columns: 1fr;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 20px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .site-logo {
        height: 65px;
        max-width: 200px;
    }
    
    .site-name {
        font-size: 1.3rem;
    }
    
    .main-header-content {
        min-height: 80px;
    }
    
    .header-icons {
        gap: 12px;
    }
    
    .header-icon-link {
        font-size: 1.2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .section-new-arrivals,
    .section-recommendations {
        padding: 24px 16px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
    }
}

/* ========== アニメーション ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.category-card {
    animation: fadeIn 0.6s ease-out;
}

/* ========== スクロールバーカスタマイズ ========== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}