/* 全体のスタイル */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --bg-primary: #f3f4f6;
    --bg-white: #ffffff;
    --container-width: 1200px;
    --spacing-unit: 1rem;
    --product-image-size: 256px;
    --thumbnail-size: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

/* ヘッダー */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* メインコンテンツ */
.main-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem var(--spacing-unit);
}

/* バナースライドショー */
.banner-section {
    margin-bottom: 3rem;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease;
    cursor: pointer;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-slide.active:hover {
    transform: scale(1.02);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: white;
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.banner-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.banner-nav.prev {
    left: 20px;
}

.banner-nav.next {
    right: 20px;
}

@media (max-width: 768px) {
    .banner-slider {
        height: 300px;
    }
    
    .banner-nav {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .banner-nav.prev {
        left: 10px;
    }
    
    .banner-nav.next {
        right: 10px;
    }
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* 商品カード */
.product-card {
    background-color: var(--bg-white);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

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

.product-image-container {
    cursor: pointer;
    background-color: var(--bg-white);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.product-image {
    width: var(--product-image-size);
    height: var(--product-image-size);
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    min-height: 1.5em;
}

.product-brand {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.product-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, transform 0.3s ease-out;
}

.product-details[aria-hidden="false"] {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
}

.details-toggle {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px 0;
    font-size: 0.9em;
    position: relative;
    transition: color 0.3s ease;
}

.details-toggle:hover {
    color: #333;
}

.details-toggle::after {
    content: '▼';
    display: inline-block;
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.details-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.product-features {
    margin-bottom: 1rem;
}

.feature {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.feature:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
    min-height: 4.5em;
}

.product-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: auto;
    padding-top: 1rem;
    gap: 0.5rem;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 0.5em;
    margin-bottom: 0.25em;
}

.price-arrow {
    margin: 0 0.3em;
    color: #aaa;
    font-size: 1.1em;
}

.old-price {
    text-decoration: line-through;
    color: #aaa;
    margin-right: 0.2em;
    font-size: 1em;
}
.sale-price {
    color: #e53935;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 0.2em;
}
.sale-label {
    background: #e53935;
    color: #fff;
    font-size: 0.8em;
    font-weight: bold;
    padding: 0.15em 0.8em;
    border-radius: 4px;
    margin-top: 0.3em;
    display: inline-block;
    letter-spacing: 0.05em;
}

.stock-info {
    background: #ff9800;
    color: #fff;
    font-size: 0.8em;
    font-weight: bold;
    padding: 0.15em 0.8em;
    border-radius: 4px;
    margin-top: 0.3em;
    display: inline-block;
    letter-spacing: 0.05em;
    margin-right: 0.5em;
}

.new-label {
    background: #4caf50;
    color: #fff;
    font-size: 0.8em;
    font-weight: bold;
    padding: 0.15em 0.8em;
    border-radius: 4px;
    margin-top: 0.3em;
    display: inline-block;
    letter-spacing: 0.05em;
}

.tax-included {
    font-size: 0.75rem;
    font-weight: normal;
    margin-left: 0.25rem;
    color: var(--text-secondary);
}

.buy-button {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}

.buy-button:hover {
    background-color: var(--primary-hover);
}

/* フッター */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

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

.footer-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    color: #9ca3af;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .site-logo {
        height: 50px;
    }

    .nav-links {
        gap: 1rem;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-card {
        max-width: 100%;
    }

    .product-image-container {
        height: 250px;
    }

    .product-image {
        width: calc(var(--product-image-size) * 0.8);
        height: calc(var(--product-image-size) * 0.8);
    }
    
    .product-title {
        font-size: 1.125rem;
        min-height: 1.25em;
    }
    
    .product-description {
        font-size: 0.875rem;
        min-height: 4em;
    }

    .product-brand {
        font-size: 0.875rem;
    }
    
    .feature {
        font-size: 0.75rem;
    }

    .product-footer {
        align-items: stretch;
        gap: 0.3rem;
    }
    .product-price {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2em;
    }
    .sale-label {
        font-size: 0.9em;
        margin-top: 0.2em;
    }
    .new-label {
        font-size: 0.9em;
        margin-top: 0.2em;
    }
}

/* 画像ポップアップ */
.image-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.image-popup.active {
    display: flex;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.popup-image-container {
    position: relative;
    max-width: 80vw;
    max-height: 80vh;
    background: #000;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-image {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    display: block;
    cursor: default;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.popup-image.zoomed {
    cursor: default;
    transform: none;
}

.popup-image.design-image {
    max-height: none;
    cursor: default;
}

.zoom-icon {
    display: none;
}

.popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
}

.popup-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-left: 1rem;
}

.image-switch-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
}

.image-switch-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.image-switch-btn.active {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.switch-thumbnail {
    width: var(--thumbnail-size);
    height: var(--thumbnail-size);
    object-fit: contain;
    border-radius: 0.25rem;
    background-color: var(--bg-white);
}

.switch-label {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.image-switch-btn.active .switch-label {
    color: white;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .popup-content {
        flex-direction: column;
        gap: 1rem;
    }

    .popup-image-container {
        max-width: 100%;
    }

    .popup-controls {
        flex-direction: row;
        margin-left: 0;
        margin-top: 1rem;
    }

    .image-switch-btn {
        min-width: 80px;
    }

    .switch-thumbnail {
        width: calc(var(--thumbnail-size) * 0.8);
        height: calc(var(--thumbnail-size) * 0.8);
    }
}

/* ブランドページのスタイル */
.brands-section {
    padding: 2rem;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.brand-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.brand-content {
    text-align: center;
}

.brand-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.brand-description {
    color: #666;
    line-height: 1.6;
}

/* ブランド詳細ページのスタイル */
.brand-section {
    padding: 2rem;
}

.brand-header {
    text-align: center;
    margin-bottom: 3rem;
}

.brand-header .brand-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.brand-header .brand-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* メガメニューのスタイル */
.nav-link {
    position: relative;
    cursor: pointer;
}

.mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
    min-width: 300px;
    z-index: 1000;
}

/* メガメニューの疑似要素でギャップを作成 */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.nav-link:hover .mega-menu,
.mega-menu:hover {
    display: block;
    animation: fadeIn 0.2s ease;
}

.mega-menu-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mega-menu-item {
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: block;
    text-align: left;
}

.mega-menu-item:hover {
    background-color: var(--bg-primary);
    color: var(--primary-color);
}

.mega-menu-item.brand {
    font-weight: 600;
    color: var(--primary-color);
}

.mega-menu-item.more {
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid #e5e7eb;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

/* メガメニューのアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .mega-menu {
        position: static;
        transform: none;
        margin-top: 0.5rem;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    .mega-menu::before {
        display: none;
    }

    .nav-link:hover .mega-menu,
    .mega-menu:hover {
        animation: none;
    }
}

/* お問い合わせフォームのスタイル */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.submit-button:hover {
    background-color: var(--primary-hover);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-section {
        padding: 1rem;
    }

    .contact-container {
        padding: 1.5rem;
    }

    .submit-button {
        width: 100%;
    }
} 