/* ==========================================
   リセット & 基本設定
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "KatoriLife";
    src: url("/font/katorilife-Regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.katorifont {
    font-family: "KatoriLife"
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'M PLUS Rounded 1c', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro', 'Yu Gothic', 'YuGothic', 'Meiryo', sans-serif;
    color: #333;
    line-height: 1.8;
    background: #fff;
}

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

/* ==========================================
   カラー設定
   ========================================== */
:root {
    --primary-color: #8FBC3F;      /* 明るい黄緑 */
    --accent-color: #F4D03F;       /* 明るい黄色 */
    --text-dark: #2C3E1F;          /* 深い緑 */
    --text-gray: #666;
    --bg-light: #FAFDF5;           /* 淡い黄緑の背景 */
    --bg-cream: #FFF9E6;           /* クリーム色の背景 */
    --font-main: 'M PLUS Rounded 1c', sans-serif;
    --font-alt: 'Zen Maru Gothic', sans-serif;
}

/* ==========================================
   共通要素
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-dark);
    font-weight: 500;
    font-family: var(--font-main);
}

.section-logo {
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.products-title {
    text-align: center;
    margin-bottom: 1rem;
}

h3 {
    font-family: var(--font-main);
    font-weight: 500;
}

.section-lead {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-family: var(--font-main);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(143, 188, 63, 0);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(143, 188, 63, 0.4);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* ==========================================
   ヘッダー
   ========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

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

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

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

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after {
    width: 100%;
}

/* ==========================================
   ヒーローセクション
   ========================================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(143, 188, 63, 0.3), rgba(244, 208, 63, 0.2));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-logo {
    width: auto;
    max-width: 600px;
    height: auto;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease forwards 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 0.2em;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards 0.6s;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 2;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards 0.9s;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: white;
    margin: 10px auto 0;
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* ==========================================
   私たちの想い
   ========================================== */
.story {
    padding: 6rem 0;
    background: var(--bg-light);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.story-text h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
}

.story-text h3:first-child {
    margin-top: 0;
}

.story-text p {
    margin-bottom: 1.5rem;
    line-height: 2;
    color: var(--text-gray);
}

.story-closing {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.story-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.story-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   圃場づくりと里山の一年
   ========================================== */
.field-journey {
    padding: 6rem 0;
    background: var(--bg-light);
}

.journey-lead {
    text-align: center;
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 4rem;
    line-height: 1.8;
}

.journey-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.journey-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.journey-step:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.journey-step:nth-child(even) .journey-image {
    order: 2;
}

.journey-step:nth-child(even) .journey-body {
    order: 1;
}

.journey-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.journey-image-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.journey-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-family: var(--font-main);
}

.journey-body p {
    line-height: 2;
    color: var(--text-gray);
}

/* ==========================================
   商品紹介
   ========================================== */
.products {
    padding: 6rem 0;
    background: white;
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.product-image-wrapper {
    position: sticky;
    top: 100px;
}

.product-main-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-info h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.product-info p {
    margin-bottom: 1.5rem;
    line-height: 2;
    color: var(--text-gray);
}

.product-details {
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    display: none; /* 品種・価格情報は非表示 */
}

.detail-item {
    flex: 1;
}

.detail-item dt {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.detail-item dd {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 5rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ==========================================
   ご購入について
   ========================================== */
.purchase {
    padding: 6rem 0;
    background: var(--bg-cream);
}

.purchase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.purchase-box {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.purchase-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.purchase-box h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.purchase-box p {
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 2rem;
}

.access-info {
    text-align: left;
    margin-top: 2rem;
}

.access-info p {
    margin-bottom: 1rem;
}

.contact-email a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-email a:hover {
    text-decoration: underline;
}

/* ==========================================
   お問い合わせ
   ========================================== */
.contact {
    padding: 6rem 0;
    background: white;
}

.contact-button-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.contact-button-wrapper .btn {
    min-width: 300px;
}

.contact-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ==========================================
   フッター
   ========================================== */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo img {
    height: 40px;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ==========================================
   レスポンシブデザイン
   ========================================== */
@media (max-width: 768px) {
    .logo img {
        height: 45px;
    }

    .hero-logo {
        max-width: 90%;
        margin-bottom: 1.5rem;
    }

    .section-logo {
        max-width: 80%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    nav {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .story-content,
    .product-showcase,
    .purchase-content,
    .product-features {
        grid-template-columns: 1fr;
    }

    .product-image-wrapper {
        position: static;
    }

    .product-details {
        flex-direction: column;
        gap: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

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

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

@media (max-width: 480px) {
    .hero-logo {
        max-width: 95%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    nav a {
        font-size: 0.85rem;
    }
}