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

:root {
    --color-black: #000000;
    --color-darkgray: #222222;
    --color-gray: #777777;
    --color-lightgray: #f5f5f5;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    --font-en: 'Inter', sans-serif;
    --font-ja: 'Noto Sans JP', sans-serif;
    --header-height: 80px;
}

body {
    font-family: var(--font-ja);
    color: var(--color-darkgray);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-en);
    font-weight: 600;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.logo {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
}

.desktop-nav li {
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    padding-bottom: 5px;
}

.desktop-nav li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-black);
    transition: width 0.3s ease;
}

.desktop-nav li:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--color-black);
    transition: 0.3s;
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-white);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: left 0.4s ease;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu ul {
    text-align: center;
}

.mobile-menu li {
    font-size: 24px;
    margin: 20px 0;
    text-transform: uppercase;
    cursor: pointer;
}

/* Page Transition (SPA) */
.page {
    display: none;
    opacity: 0;
    padding-top: var(--header-height);
    min-height: 100vh;
    animation: fadeIn 0.5s forwards;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

.container.full-width {
    max-width: 100%;
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

/* 1. Hero Section */
.hero {
    height: calc(100vh - var(--header-height));
    background-image: url('images/hero_bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

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

.hero h1 {
    font-size: 64px;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    letter-spacing: 0.1em;
    font-weight: 300;
}

/* Category Grid (Top Page) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
}

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

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.category-card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.card-overlay h3 {
    color: var(--color-white);
    font-size: 24px;
    letter-spacing: 0.1em;
}

/* 2. Products Section (Horizontal Scroll) */
.product-category-row {
    margin-bottom: 60px;
}

.row-title {
    padding: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.scroll-wrapper {
    position: relative;
    display: block;
}

.scroll-arrow {
    position: absolute;
    top: 200px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.scroll-arrow:hover {
    background-color: var(--color-white);
}

.scroll-arrow.left {
    left: -20px;
}

.scroll-arrow.right {
    right: -20px;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-top: 0;
    padding-bottom: 20px;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
}

.horizontal-scroll::before,
.horizontal-scroll::after {
    content: '';
    margin: auto;
}

/* スクロールバーのカスタマイズ */
.horizontal-scroll::-webkit-scrollbar {
    height: 4px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: var(--color-lightgray);
    margin: 0 max(5vw, calc((100vw - 1200px) / 2));
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--color-gray);
}

.product-item {
    flex: 0 0 300px;
    scroll-snap-align: start;
    cursor: pointer;
}

.product-img-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 8px;
}

.product-item img,
.placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--color-lightgray);
    transition: transform 0.4s ease;
}

.product-item:hover img,
.product-item:hover .placeholder-img {
    transform: scale(1.05);
}

.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray);
    font-family: var(--font-en);
}

.product-item h4 {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 5px;
}

.product-item p {
    font-size: 14px;
    color: var(--color-gray);
}

/* Category Single View */
.back-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-family: var(--font-en);
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-block;
}

/* 3. Product Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--color-white);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-img {
    flex: 1 1 400px;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    flex: 1 1 300px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.modal-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-price {
    font-size: 18px;
    color: var(--color-gray);
    margin-bottom: 20px;
}

.modal-desc {
    font-size: 14px;
    margin-bottom: 30px;
    color: var(--color-gray);
}

.option-group {
    margin-bottom: 25px;
}

.option-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-family: var(--font-en);
}

.size-options,
.color-options {
    display: flex;
    gap: 10px;
}

.size-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    background: none;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-en);
}

.size-btn.active,
.size-btn:hover {
    border-color: var(--color-black);
    background: var(--color-black);
    color: var(--color-white);
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: transform 0.2s;
}

.color-btn.active,
.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--color-white), 0 0 0 3px var(--color-black);
}

.color-btn.white {
    background-color: #ffffff;
}

.color-btn.black {
    background-color: #000000;
}

.color-btn.gray {
    background-color: #777777;
}

.buy-btn {
    margin-top: auto;
    padding: 15px 0;
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-ja);
}

.buy-btn:hover {
    background-color: var(--color-darkgray);
}

/* 4. Concept Section */
.concept-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.concept-image {
    flex: 1;
}

.concept-image img {
    width: 100%;
    height: auto;
}

.concept-text {
    flex: 1;
}

.concept-lead {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.8;
}

.concept-text p:not(.concept-lead) {
    font-size: 15px;
    margin-bottom: 20px;
    color: var(--color-gray);
}

/* 5. Shop Info Section */
.shop-info-wrapper {
    display: flex;
    gap: 40px;
    background-color: var(--color-lightgray);
    padding: 40px;
}

.shop-details {
    flex: 1;
}

.shop-details h3 {
    margin-bottom: 20px;
}

.shop-details li {
    margin-bottom: 15px;
    font-size: 15px;
}

.shop-map {
    flex: 1;
    min-height: 300px;
}

.shop-map iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
}

/* 6. Contact Section */
.contact-container {
    max-width: 600px;
}

.contact-desc {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-gray);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    font-family: var(--font-ja);
    font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-black);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: var(--color-darkgray);
}

/* Footer */
footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 60px 40px 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 20px;
    font-family: var(--font-en);
    font-weight: 600;
}


.copyright {
    text-align: center;
    font-size: 12px;
    color: #aaaaaa;
    font-family: var(--font-en);
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 40px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .concept-container {
        flex-direction: column;
    }

    .shop-info-wrapper {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-info {
        padding: 20px;
    }

    .row-title {
        padding: 0 20px;
    }

    .horizontal-scroll {
        padding: 0 20px 20px 20px;
    }

    .horizontal-scroll::-webkit-scrollbar-track {
        margin: 0 20px;
    }
}