/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'メイリオ', Meiryo, 'Hiragino Kaku Gothic ProN', sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   Product Detail Section
   ============================================ */
.product-detail-section {

    padding: 80px 0;
    background-image: url(../images/product/uzumaki_bg.png);
    background-position: top right;
    background-repeat: no-repeat;
    background-size: 40%;
    position: relative;
}

.product-category {
    margin-bottom: 50px;
    padding-bottom: 30px;
    /*border-bottom: 1px solid #e0e0e0;*/
}

.product-category h1 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.product-category p {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Products Detail Grid */
.products-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
    position: relative;
}

/* Background decoration lines */

.product-detail-card {
    position: relative;
    z-index: 1;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-detail-image {
    width: 100%;
    height: 200px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

.product-detail-name {
    padding: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background-color: #e8e8e8;
}

/* ============================================
   Product Categories Section
   ============================================ */
.product-categories-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    border: 1px solid #e4e4e4;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.category-image {
    width: 120px;
    height: 80px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.category-link {
    flex: 1;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
    min-height: 80px;
}

.category-card:hover .category-link {
    background-color: #40419B;
    color: #fff;
}

/* ============================================
   Responsive Design (Tablet)
   ============================================ */
@media (max-width: 1024px) {
    .products-detail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .products-detail-grid::before {
        display: none;
    }
}

/* ============================================
   Responsive Design (Smartphone)
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .product-detail-image img {
        width: 50%;
        height: auto;
    }

    .product-detail-section {
        padding: 40px 0;
    }

    .product-category {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .product-category h1 {
        font-size: 24px;
    }

    .product-category p {
        font-size: 13px;
    }

    .products-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 50px;
    }

    .product-detail-image {
        height: 200px;
    }

    .product-categories-section {
        padding: 40px 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-image {
        height: 100px;
    }

    .category-link {
        padding: 12px;
        font-size: 12px;
        min-height: 60px;
    }
}

@media (max-width: 480px) {
    .product-category h1 {
        font-size: 20px;
    }

    .product-category p {
        font-size: 12px;
    }

    .product-detail-image {
        height: auto;
    }

    .product-detail-name {
        font-size: 12px;
        padding: 12px;
    }

    .category-image {
        height: 80px;
    }

    .category-link {
        padding: 10px;
        font-size: 11px;
        min-height: 50px;
    }
}

/* ============================================
   Product Navigation
   ============================================ */
.product-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.nav-prev,
.nav-next,
.nav-archive {
    width: 33%;
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-archive {
    text-align: center;
}

.nav-archive .back-link {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #333;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    background: #fff;
    font-size: 14px;
}

.nav-archive .back-link:hover {
    background: #333;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .product-navigation {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        /* Stretch to full width */
    }

    .nav-prev,
    .nav-archive,
    .nav-next {
        width: 100%;
    }

    .nav-prev {
        order: 1;
        text-align: left;
    }

    .nav-archive {
        order: 2;
        text-align: center;
        margin: 10px 0;
    }

    .nav-next {
        order: 3;
        text-align: right;
    }
}