/* ========================================
   フォント定義
   ======================================== */
@font-face {
    font-family: 'NIS Tak';
    src: url('fonts/NIS_TAK.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NIS Tak Narrow';
    src: url('fonts/NIS_TAKN.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   リセット & ベース
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラー: 抑えたトーン */
    --color-bg: #fafaf9;
    --color-text: #3a3a3a;
    --color-text-light: #6b6b6b;
    --color-border: #e0e0dc;
    --color-accent: #4a5d3f;
    --color-accent-hover: #5a6d4f;
    
    /* タイポグラフィ */
    --font-takumi: 'NIS Tak', 'Noto Serif JP', serif;
    --font-takumi-narrow: 'NIS Tak Narrow', 'Noto Sans JP', sans-serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    
    /* スペーシング */
    --spacing-xs: 1rem;
    --spacing-sm: 2rem;
    --spacing-md: 4rem;
    --spacing-lg: 6rem;
    --spacing-xl: 8rem;
    --spacing-2xl: 12rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 2;
    color: var(--color-text);
    background-color: var(--color-bg);
    letter-spacing: 0.05em;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-takumi);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--color-text);
}

.nav {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.1em;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link-shop {
    color: var(--color-accent);
    font-weight: 400;
}

/* ========================================
   メインビジュアル
   ======================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(250, 250, 249, 0.7), rgba(250, 250, 249, 0.9)),
                url('https://images.unsplash.com/photo-1464226184884-fa280b87c399?w=1600') center/cover;
    position: relative;
}

.hero-content {
    text-align: center;
    padding: var(--spacing-md);
}

.hero-subtitle {
    font-family: var(--font-takumi);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--color-text);
    line-height: 2.2;
}

/* ========================================
   セクション共通
   ======================================== */
.section {
    padding: var(--spacing-2xl) var(--spacing-md);
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-takumi);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--color-text);
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--color-border);
    margin: var(--spacing-sm) auto 0;
}

/* ========================================
   農園主メッセージ
   ======================================== */
.message {
    background-color: #ffffff;
}

.message-content {
    margin-bottom: var(--spacing-xl);
}

.message-text {
    font-size: 1rem;
    line-height: 2.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.message-text-emphasis {
    font-weight: 400;
    margin-top: var(--spacing-lg);
}

.spacer {
    height: var(--spacing-lg);
}

.spacer-small {
    height: var(--spacing-md);
}

.signature {
    text-align: right;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.signature-text {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.signature-name {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text);
}

/* ========================================
   農法
   ======================================== */
.method {
    background-color: var(--color-bg);
}

.method-grid {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: var(--spacing-lg) auto 0;
    padding: var(--spacing-xl) 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-item {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px;
}

.method-item:nth-child(1) {
    animation: circleRotate1 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.method-item:nth-child(2) {
    animation: circleRotate2 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.method-item:nth-child(3) {
    animation: circleRotate3 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes circleRotate1 {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateY(-200px) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateY(-200px) rotate(-360deg);
    }
}

@keyframes circleRotate2 {
    0% {
        transform: translate(-50%, -50%) rotate(120deg) translateY(-200px) rotate(-120deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(480deg) translateY(-200px) rotate(-480deg);
    }
}

@keyframes circleRotate3 {
    0% {
        transform: translate(-50%, -50%) rotate(240deg) translateY(-200px) rotate(-240deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(600deg) translateY(-200px) rotate(-600deg);
    }
}

.method-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconRotate 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.method-icon svg {
    width: 100%;
    height: 100%;
}

.method-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes iconRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.method-title {
    font-family: var(--font-takumi-narrow);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    opacity: 0;
    animation: fadeInText 0.8s ease-out 1.8s forwards;
}

.method-description {
    font-size: 0.875rem;
    line-height: 2;
    color: var(--color-text-light);
    opacity: 0;
    animation: fadeInText 0.8s ease-out 2s forwards;
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   旬の野菜
   ======================================== */
.vegetables {
    background-color: #ffffff;
}

.vegetables-content {
    margin-top: var(--spacing-lg);
}

.vegetables-intro {
    font-size: 1rem;
    line-height: 2.2;
    color: var(--color-text);
    text-align: left;
}

.vegetables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.vegetable-item {
    text-align: center;
}

.vegetable-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #f5f5f3;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.vegetable-image-placeholder p {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-family: var(--font-sans);
}

.vegetable-season {
    font-family: var(--font-takumi-narrow);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    letter-spacing: 0.15em;
}

.vegetable-list {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ========================================
   無添加加工シリーズ
   ======================================== */
.products {
    background-color: var(--color-bg);
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 0.5rem;
}

.products-content {
    margin-top: var(--spacing-lg);
}

.products-intro {
    font-size: 1rem;
    line-height: 2.2;
    color: var(--color-text);
    text-align: left;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.product-item {
    text-align: center;
}

.product-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0.05em;
    line-height: 1.8;
}

/* ========================================
   農園の場所
   ======================================== */
.location {
    background-color: #ffffff;
}

.location-content {
    margin-top: var(--spacing-lg);
}

.location-text {
    font-size: 1rem;
    line-height: 2.2;
    color: var(--color-text);
}

.location-text-small {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

/* ========================================
   CTA
   ======================================== */
.cta {
    background-color: var(--color-bg);
    text-align: center;
}

.cta-text {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.cta-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--color-accent);
    color: #ffffff;
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background-color: #ffffff;
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-lg) var(--spacing-md);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-link {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-accent);
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 768px) {
    :root {
        --spacing-md: 2rem;
        --spacing-lg: 4rem;
        --spacing-xl: 6rem;
        --spacing-2xl: 8rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 1.5rem;
    }

    .nav {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .message-text {
        font-size: 0.95rem;
    }

    .method-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .vegetables-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========================================
   スムーススクロール調整
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
