@charset "UTF-8";

/* =========================================
   Variables (カラーパレットなど)
========================================= */
:root {
    --color-primary-purple: #6B4C9A; /* ブドウの色 */
    --color-primary-green: #85B038;  /* シャインマスカットの色 */
    --color-bg-light: #FAFAFA;
    --color-text-main: #333333;
    --color-text-light: #666666;
    --font-serif: 'Noto Serif JP', serif;
}

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

body {
    font-family: var(--font-serif);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    color: var(--color-primary-purple);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

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

/* =========================================
   Hero Header (TOP画像と縦書きテキスト)
========================================= */
.hero-header {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

/* スライドショー */
.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 10s ease-in-out;
    transform: scale(1.05); /* 少しズームされた状態から開始 */
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

/* 画像が用意されるまでの仮のグラデーション背景 */
.slide-1 { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
.slide-2 { background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%); }
.slide-3 { background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); }

/* 縦書きテキスト */
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15%;
    /* うっすら暗くして文字を読ませる */
    background: rgba(255, 255, 255, 0.2);
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #333;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.7);
    padding: 3rem 2rem;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.vertical-text h1 {
    font-size: 2.5rem;
    margin-left: 2rem;
    letter-spacing: 0.5em;
    font-weight: 700;
}

.vertical-text p {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    line-height: 2.5;
}

/* =========================================
   News Section (お知らせ)
========================================= */
.news-section {
    padding: 6rem 1rem;
    background-color: #fff;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--color-primary-purple);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.news-scroll-box {
    height: 200px;
    overflow-y: auto;
    border: 1px solid #eaeaea;
    padding: 1.5rem;
    border-radius: 8px;
    background: #fdfdfd;
}

.news-list {
    list-style: none;
}

.news-list li {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px dashed #ccc;
    flex-wrap: wrap;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-date {
    font-weight: bold;
    color: var(--color-primary-green);
    margin-right: 1.5rem;
    white-space: nowrap;
}

.news-text {
    flex: 1;
}

/* スクロールバーのカスタマイズ */
.news-scroll-box::-webkit-scrollbar {
    width: 6px;
}
.news-scroll-box::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.news-scroll-box::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* =========================================
   Parallax Backgrounds
========================================= */
.parallax-bg {
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 画像がない場合の仮色 */
.parallax-1 {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1596431940910-67c4adad530d?auto=format&fit=crop&w=1600&q=80');
    background-attachment: fixed;
    background-size: cover;
}

.parallax-2 {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1605807660447-2e118ba8eab9?auto=format&fit=crop&w=1600&q=80');
    background-attachment: fixed;
    background-size: cover;
}

/* =========================================
   Product Sections (広々としたデザイン)
========================================= */
.product-section {
    padding: 0; /* 余白は内部ブロックで作る */
}

.bg-light-green {
    background-color: #f7faf3;
}

.product-block {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    min-height: 80vh;
}

/* reverseクラスで画像とテキストを左右入れ替え */
.product-block.reverse {
    flex-direction: row-reverse;
}

.product-image-wrapper {
    flex: 0 0 50%;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

/* 仮の画像表示用スタイル */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
}
.purple-bg { background-color: var(--color-primary-purple); }
.green-bg { background-color: var(--color-primary-green); }

.product-info-wrapper {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 8%;
}

.product-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-primary-purple);
}

.bg-light-green .product-title {
    color: var(--color-primary-green);
}

.product-desc {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--color-text-light);
}

.shop-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--color-primary-purple);
    color: #fff;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(107, 76, 154, 0.3);
    transition: all 0.3s ease;
}

.bg-light-green .shop-btn {
    background-color: var(--color-primary-green);
    box-shadow: 0 4px 15px rgba(133, 176, 56, 0.3);
}

.shop-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
    opacity: 1;
}

/* =========================================
   Footer
========================================= */
.site-footer {
    background-color: #2c2c2c;
    color: #fff;
    padding: 4rem 1rem 2rem;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 1px solid #444;
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.footer-brand p {
    color: #aaa;
    font-size: 0.95rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #aaa;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* =========================================
   Page Top Button
========================================= */
.page-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--color-primary-purple);
    border: 2px solid var(--color-primary-purple);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.page-top-btn.is-active {
    opacity: 1;
    visibility: visible;
}

.page-top-btn:hover {
    background-color: var(--color-primary-purple);
    color: #fff;
    transform: translateY(-5px);
}

/* =========================================
   Responsive (スマホ・タブレット対応)
========================================= */
@media screen and (max-width: 991px) {
    .product-block {
        flex-direction: column !important; /* reverseを打ち消す */
    }
    
    .product-image-wrapper {
        min-height: 400px;
    }
    
    .product-info-wrapper {
        padding: 4rem 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-content {
        justify-content: center;
        padding-right: 0;
        background: rgba(255, 255, 255, 0.6);
    }
    
    .vertical-text {
        padding: 2rem 1rem;
    }
    
    .vertical-text h1 {
        font-size: 2rem;
    }
    
    .news-list li {
        flex-direction: column;
    }
    
    .news-date {
        margin-bottom: 0.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
}
