/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ナビゲーション */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.nav-logo span {
    color: #c19777;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    position: relative;
}

.nav-menu a:hover {
    color: #c19777;
    background-color: rgba(193, 151, 119, 0.1);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .nav-menu a {
        padding: 1rem 2rem;
        display: block;
        font-size: 1.1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    background-image: url('P1060331.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    padding-top: 80px; /* ナビゲーション分のスペース */
}

.hero-content {
    padding: 2rem;
    padding-top: 8rem;
    width: 100%;
    max-width: 1600px;
}

/* 画像スライダー */
.image-slider {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4rem;
    width: 100%;
}

.slide {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0;
    animation: cutIn 4.3s forwards;
    animation-play-state: paused; /* アニメーションを一時停止 */
}

/* アニメーションの開始を全て0.5秒ずつずらす（1.5秒後に開始） */
.slide:nth-child(1) { animation-delay: 1.5s; }
.slide:nth-child(2) { animation-delay: 2.0s; }
.slide:nth-child(3) { animation-delay: 2.5s; }
.slide:nth-child(4) { animation-delay: 3.0s; }
.slide:nth-child(5) { animation-delay: 3.5s; }
.slide:nth-child(6) { animation-delay: 4.0s; }
.slide:nth-child(7) { animation-delay: 4.5s; }
.slide:nth-child(8) { animation-delay: 5.3s; }

@keyframes cutIn {
    0% { 
        opacity: 0;
    }
    1% { 
        opacity: 1;
    }
    100% { 
        opacity: 1;
    }
}

h1 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInTagline 1s forwards;
    animation-delay: 5.8s; /* 最後の画像の表示後に開始（1.5秒後に開始） */
    animation-play-state: paused; /* アニメーションを一時停止 */
}

@keyframes fadeInTagline {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: #c19777;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #a67d5b;
}

/* 特徴セクション */
.features {
    padding: 4rem 2rem;
    background-color: white;
}

h2 {
    text-align: center;
    color: #a67d5b;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-image {
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

h3 {
    color: #c19777;
    margin-bottom: 1rem;
}

/* 商品セクション */
.products {
    padding: 6rem 2rem;
    background-color: #f5f0e6;
}

.products-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* 商品カテゴリーセクション */
.category-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 共通のカテゴリースタイル */
.category-item {
    display: flex;
    align-items: center;
    margin-bottom: 6rem;
    gap: 4rem;
    background-color: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.category-item:last-child {
    margin-bottom: 0;
}

.category-item:hover {
    transform: translateY(-5px);
}

/* 偶数番目のカテゴリーアイテムを反転 */
.category-item:nth-child(even) {
    flex-direction: row-reverse;
}

.category-image {
    flex: 0 0 45%;
}

.category-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

.category-content {
    flex: 0 0 55%;
    padding: 2rem 3rem;
}

.category-content h3 {
    font-size: 2rem;
    color: #a67d5b;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: 0.05em;
}

.category-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #c19777;
}

.category-content p {
    color: #666;
    line-height: 2;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    margin-top: 1rem;
    padding-right: 1rem;
}

/* フッター */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* 購入セクション */
.purchase {
    padding: 6rem 2rem;
    background-color: white;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
    padding: 1rem;
}

.social-link:hover {
    transform: translateY(-5px);
}

.social-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    border-radius: 12px;
}

.social-link span {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.purchase-info {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 2rem;
}

/* レスポンシブデザイン */
@media (max-width: 1200px) {
    .hero {
        background-position: 40% 60%;
    }

    .hero-content {
        max-width: 100%;
        padding: 1.5rem;
        padding-top: 6rem;
    }
    
    .image-slider {
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: visible;
        justify-content: center;
    }
    
    .slide {
        width: calc((100vw - 120px) / 8);
        height: calc((100vw - 120px) / 8);
        min-width: 90px;
        min-height: 90px;
    }
}

@media (max-width: 767px) {
    .hero {
        background-position: 35% 65%;
    }

    .hero-content {
        padding: 1rem;
        padding-top: 5rem;
    }
    
    .image-slider {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .slide {
        width: 80px;
        height: 80px;
        min-width: auto;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .hero {
        background-position: 30% 70%;
        padding: 0 10px;
    }

    .slide {
        width: 70px;
        height: 70px;
    }
    
    .image-slider {
        gap: 4px;
    }
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
    .products {
        padding: 4rem 1.5rem;
    }

    .category-item,
    .category-item:nth-child(even) {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2rem;
        margin-bottom: 4rem;
    }

    .category-image,
    .category-content {
        flex: 0 0 100%;
        width: 100%;
    }

    .category-content {
        text-align: center;
        padding: 1rem 2rem;
    }

    .category-content p {
        padding-right: 0;
        padding: 0 1rem;
    }

    .category-content h3::after {
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
    }

    .purchase {
        padding: 4rem 1.5rem;
    }

    .social-links {
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .products {
        padding: 3rem 1rem;
    }

    .category-item {
        padding: 1.5rem;
        margin-bottom: 3rem;
        gap: 2rem;
    }

    .category-content {
        padding: 1rem;
    }

    .category-content h3 {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
        padding-bottom: 0.8rem;
    }

    .category-content p {
        font-size: 1rem;
        line-height: 1.8;
        padding: 0 0.5rem;
    }

    .purchase {
        padding: 3rem 1rem;
    }

    .social-links {
        gap: 2rem;
    }

    .social-icon {
        width: 50px;
        height: 50px;
    }

    .social-link span {
        font-size: 1rem;
    }

    .purchase-info {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* 作品サンプルセクション */
.samples {
    padding: 4rem 2rem;
    background-color: white;
    position: relative;
}

/* カルーセルコンテナ */
.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 0 20px;
}

.carousel-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    max-width: 100%;
}

.carousel-slide {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 正方形にするためのアスペクト比 */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block;
}

.carousel-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* カルーセルコントロール */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border: none;
    background-color: #c19777;
    color: white;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: #a67d5b;
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* レスポンシブデザイン */
@media (max-width: 900px) {
    .carousel-track {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
    }
    
    .carousel-container {
        padding: 0 15px;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .carousel-track {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
    }
    
    .carousel-slide {
        width: 100%;
        height: 0;
        padding-bottom: 100%;
    }
    
    .carousel-controls {
        gap: 15px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-container {
        padding: 0 10px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .carousel-track {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        width: 100%;
    }
    
    .carousel-slide {
        width: 100%;
        height: 0;
        padding-bottom: 100%;
    }
    
    .carousel-container {
        padding: 0 8px;
        max-width: 100%;
    }
}

/* モーダルウィンドウ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #c19777;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.modal-btn {
    width: 60px;
    height: 60px;
    border: none;
    background-color: rgba(193, 151, 119, 0.8);
    color: white;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.modal-btn:hover {
    background-color: rgba(193, 151, 119, 1);
    transform: scale(1.1);
}

.modal-btn:active {
    transform: scale(0.95);
}

/* モーダルのレスポンシブ対応 */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .modal-nav {
        padding: 0 10px;
    }
    
    .modal-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .modal-content img {
        border-radius: 5px;
    }
    
    .close {
        top: 5px;
        right: 10px;
        font-size: 25px;
    }
    
    .modal-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
} 