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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Serif JP", serif;
    line-height: 1.8;
    color: #444;
    background-color: #fefefe;
    font-weight: 300;
}

/* ヘッダー - product.htmlと同じ仕様 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

nav {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 15px 3%;
    height: 70px;
    width: 100%;
}

.nav-logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

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

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

.nav-center {
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-size: 0.9rem;
    font-weight: 300;
    transition: opacity 0.3s ease;
    letter-spacing: 0.05em;
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-icon {
    transition: opacity 0.3s ease;
    display: block;
}

.nav-icon:hover {
    opacity: 0.7;
}

.nav-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #444;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* モバイルメニュー */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-radius: 0 0 15px 15px;
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu li {
    margin-bottom: 1rem;
}

.mobile-menu a {
    text-decoration: none;
    color: #444;
    font-size: 1rem;
    font-weight: 300;
    display: block;
    padding: 10px;
    text-align: center;
}

/* ヒーロー画像 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* JPEG fallback */
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('../../assets/images/index_hero.jpg');
    /* Prefer WebP where supported */
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), image-set(
        url('../../assets/images/index_hero.webp') type('image/webp') 1x,
        url('../../assets/images/index_hero.jpg') type('image/jpeg') 1x
    );
    background-size: cover;
    background-position: center 40%;
    text-align: center;
    position: relative;
    border-radius: 15px;
    margin: 85px 3% 0;
    overflow: hidden;
}

.hero-content {
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    font-family: "Noto Serif JP", serif;
}

.hero-content p {
    font-size: 1rem;
    letter-spacing: 0.05em;
    font-weight: 300;
}

/* カテゴリ分岐セクション */
.category-section {
    padding: 6rem 5%;
    text-align: center;
    background: #fafaf8;
}

.category-intro {
    margin-bottom: 4rem;
}

.category-intro h2 {
    font-size: 2rem;
    font-weight: 400;
    color: #444;
    margin-bottom: 1.5rem;
    font-family: "Noto Serif JP", serif;
}

.category-intro p {
    font-size: 1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.category-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.category-image.product {
    background-image: url('../../assets/images/IMG_3350.JPG');
    background-image: image-set(
        url('../../assets/images/IMG_3350.webp') type('image/webp') 1x,
        url('../../assets/images/IMG_3350.JPG') type('image/jpeg') 1x
    );
}

.category-image.furniture {
    background-image: url('../../assets/images/furniture_hero.jpg');
    background-image: image-set(
        url('../../assets/images/furniture_hero.webp') type('image/webp') 1x,
        url('../../assets/images/furniture_hero.jpg') type('image/jpeg') 1x
    );
}

.category-content {
    padding: 2rem;
}

.category-content h3 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    font-family: "Noto Serif JP", serif;
    color: #444;
}

.category-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.category-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: white;
    color: #444;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 300;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    font-family: "Noto Serif JP", serif;
    border: 1px solid #ddd;
}

.category-button:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* フッター */
footer {
    background: #fefefe;
    color: #555;
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 3rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo-img {
    height: 52px;
    width: auto;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-contact {
    margin-bottom: 2rem;
}

.footer-contact a {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.footer-contact a:hover {
    opacity: 0.7;
}

.copyright {
    font-size: 0.9rem;
    font-weight: 300;
    color: #555;
}

/* レスポンシブ対応 */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
    }
    
    .nav-icons {
        display: flex !important;
    }
    
    .hamburger {
        display: none !important;
    }
}

@media (max-width: 768px) {
    nav {
        grid-template-columns: auto 1fr auto;
        padding: 10px 3%;
        height: 60px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-icons {
        display: flex !important;
    }
    
    .hamburger {
        display: flex;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .hero {
        height: 80vh;
        margin: 60px 2% 0;
        border-radius: 10px;
    }
    
    .hero-content {
        white-space: normal;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .category-section {
        padding: 4rem 5%;
    }
    
    .category-intro h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }
    
    .nav-icons {
        display: flex !important;
        gap: 0.8rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero {
        margin: 60px 1% 0;
    }
    
    .hero-content {
        white-space: normal;
    }
}

/* 印刷用スタイル */
@media print {
    /* 印刷時の基本設定 */
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* ヒーローセクションの印刷対応 */
    .hero {
        background: #f5f5f5 !important;
        height: auto !important;
        min-height: 200px !important;
        margin: 20px 0 !important;
        border: 1px solid #ddd !important;
        border-radius: 0 !important;
    }
    
    /* ヒーロー背景画像を印刷用に調整 */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #f5f5f5;
        z-index: 1;
    }
    
    /* ヒーローコンテンツを印刷用に調整 */
    .hero-content {
        position: relative;
        z-index: 2;
        color: #333 !important;
        text-shadow: none !important;
        background: rgba(255, 255, 255, 0.9);
        padding: 20px;
        border-radius: 5px;
    }
    
    /* カテゴリカードの印刷対応 */
    .category-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    /* 画像の印刷対応 */
    .category-image {
        background-color: #f0f0f0 !important;
        border: 1px solid #ddd !important;
    }
    
    /* ヘッダーとフッターの印刷調整 */
    header, footer {
        background: white !important;
        box-shadow: none !important;
    }
    
    /* 印刷時の色調整 */
    body {
        background: white !important;
        color: black !important;
    }
    
    /* リンクの印刷対応 */
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}
