/*
Theme Name: Folium LP
Description: Folium Vineyard Single Page Theme
Author: ASOBIZ
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    color: #4A4F48;
    background-color: #FAFAFA;
    line-height: 1.6;
}
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #2A332C;
}
p {
    font-size: 0.95rem;
    color: #5A6058;
    margin-bottom: 1.5rem;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.text-center {
    text-align: center;
}

/* Hero Section */
.hero {
    height: 80vh;
    /* imagesフォルダに入れた hero.jpg を背景に読み込む設定 */
    background-image: linear-gradient(rgba(42, 51, 44, 0.3), rgba(42, 51, 44, 0.4)), url('./images/hero.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}
.hero h1 {
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #fff;
}
.hero p {
    color: #F3F4F1;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.section { padding: 80px 0; }
.section-organic { background-color: #F3F4F1; }
.section-title { font-size: 2.2rem; margin-bottom: 40px; position: relative; }
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background-color: #8C9985;
    margin: 20px auto 0;
}

.two-col { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }

.wines-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
@media (min-width: 768px) { .wines-grid { grid-template-columns: repeat(2, 1fr); } }
.wine-card {
    background: #fff;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(42, 51, 44, 0.04);
    transition: transform 0.3s ease;
    border: 1px solid #EFEFEF;
}
.wine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(42, 51, 44, 0.08);
}

.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #2A332C;
    color: #2A332C;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin-top: 20px;
}
.cta-btn:hover { background-color: #2A332C; color: #fff; }

footer {
    padding: 40px 0;
    text-align: center;
    background-color: #2A332C;
    color: #D1D6D0;
    font-size: 0.85rem;
}
footer p { color: #D1D6D0; margin-bottom: 0.5rem; }
footer a { color: #8C9985; text-decoration: none; transition: color 0.3s ease; }
footer a:hover { color: #fff; }

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto 0;
    box-shadow: 0 10px 30px rgba(42, 51, 44, 0.1);
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- 画像のレスポンシブ設定（修正版） --- */

.section-img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* --- 1. Hero Section (トップ画像) の修正 --- */
.hero {
    height: 80vh;
    background-image: linear-gradient(rgba(42, 51, 44, 0.3), rgba(42, 51, 44, 0.4)), url('images/hero.jpg'); 
    background-size: cover;
    /* center から bottom に変更 */
    background-position: bottom; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

/* 2. Legacy (岡田様) */
.img-legacy {
    aspect-ratio: 4 / 3; 
    /* object-position: center 20%;  ← この行を削除、または以下のように center に変更 */
    object-position: center; 
    max-width: 800px;
}

/* 3. Philosophy (ブドウと葉っぱ) */
.img-philosophy {
    aspect-ratio: 4 / 3; 
    /* object-position: center 10%;  ← この行を削除、または以下のように center に変更 */
    object-position: center; 
}

/* 4. Journey (トラクター) */
.img-journey {
    aspect-ratio: 4 / 3; 
    /* center から bottom に変更 */
    object-position: bottom; 
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    max-width: 800px;
    margin-top: 10px;
    margin-bottom: 30px;
}

/* --- PC用の表示設定 --- */
@media (min-width: 768px) {
    .img-legacy {
        aspect-ratio: 21 / 9; 
        /* object-position も念のため center にしておくと安心です */
        object-position: center;
    }
    .img-philosophy {
        aspect-ratio: 16 / 9;
        object-position: center;
    }
    .img-journey {
        aspect-ratio: 21 / 9; 
        /* PC版も下を基準にする */
        object-position: bottom; 
    }
}
