/* =====================================================
   home.css — 安積自然農園 トップページ専用スタイル
   スタイルガイド §3.2 TaiShoDo 調トークン準拠
   ===================================================== */

/* ====================================================
   CSS 変数
   ==================================================== */
:root {
    --clr-primary:    #2f7627;
    --clr-primary-dk: #255c22;
    --clr-accent:     #6ca223;
    --clr-bg:         #f5f9f4;
    --clr-bg-tint:    #f5f8ec;
    --clr-surface:    #ffffff;
    --clr-text:       #333333;
    --clr-muted:      #848484;
    --clr-border:     #d9d9d9;

    --font-sans: 'Noto Sans JP', sans-serif;
    --font-mark: 'NIS Tak', 'Noto Sans JP', sans-serif;
    --font-fv-title: 'NIS Tak', 'Noto Sans JP', sans-serif;
    --font-fv-text: 'Noto Sans JP', sans-serif;
    /* 見出し（h2 セクションタイトル）— スタイルガイド §2 NIS Tak */
    --font-section-title: 'NIS Tak', 'Noto Sans JP', sans-serif;
    --font-section-body: 'Noto Sans JP', sans-serif;

    --sp-xs: 0.75rem;
    --sp-sm: 1.5rem;
    --sp-md: 3rem;
    --sp-lg: 4.5rem;
    --sp-xl: 7rem;

    --container-w: 1280px;
    --container-pad: clamp(16px, 2.4vw, 28px);
}

/* ====================================================
   リセット・ベース
   ==================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

a {
    color: inherit;
}

body.home {
    font-family: var(--font-section-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--clr-text);
    background: var(--clr-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ====================================================
   レイアウト共通
   ==================================================== */
.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.section {
    padding: var(--sp-lg) 0;
}

/* セクション交互背景 */
body.home #about    { background: var(--clr-bg); }
body.home #features { background: var(--clr-bg-tint); }
body.home #food     { background: var(--clr-bg); }

/* ====================================================
   タイポグラフィ共通
   ==================================================== */
.section-title {
    font-family: var(--font-section-title);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 400;
    letter-spacing: 0.14em;
    color: var(--clr-text);
    text-align: center;
    margin-bottom: var(--sp-md);
    line-height: 1.3;
}

/* ====================================================
   FV（ヒーロー）
   ==================================================== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 98vh;
    background:
        url('image/compagnons-hlC6OwRSQFs-unsplash.jpg') center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(62, 255, 36, 0.249) 0%,
        rgba(46, 200, 7, 0.447) 100%
    );
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: var(--sp-lg) var(--sp-sm);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 640px;
}

.hero-catch {
    display: block;
    font-family: var(--font-fv-text);
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.22em;
    color: #f0f0f0;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-family: var(--font-fv-title);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.18em;
    line-height: 1.15;
    margin-bottom: 1.4rem;
    text-shadow: none;
    text-align: center;
    width: 100%;
}

.hero-desc {
    display: block;
    font-family: var(--font-fv-text);
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 0.12em;
    line-height: 2.1;
    margin-bottom: 2.25rem;
    text-align: center;
    width: 100%;
}

/* ヒーロー内ボタン（FV専用） */
.fv-btn {
    display: inline-block;
    padding: 0.8em 2.8em;
    background: var(--clr-primary);
    color: #fff;
    font-family: var(--font-fv-text);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-decoration: none;
    border-radius: 90px;
    border: 1px solid #ffffff;
    transition: background 0.2s;
    box-shadow: 0 2px 12px rgba(47, 118, 39, 0.18);
}

.fv-btn:hover,
.fv-btn:focus-visible {
    background: var(--clr-primary-dk);
    outline: none;
}

/* ヒーロー中央下 — 最新ニュース（1件固定） */
.hero-news {
    position: absolute;
    left: 50%;
    bottom: clamp(20px, 4vh, 40px);
    transform: translateX(-50%);
    z-index: 3;
    width: min(560px, calc(100vw - 2rem));
}

.hero-news-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.75rem 1.6rem;
    background: var(--clr-bg);
    border: 1px solid rgba(202, 224, 200, 0.85);
    border-radius: 9999px;
    color: var(--clr-text);
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(20, 40, 20, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-news-link:hover,
.hero-news-link:focus-visible {
    background: var(--clr-bg-tint);
    border-color: var(--clr-primary);
    outline: none;
}

.hero-news-date {
    flex-shrink: 0;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--clr-primary);
    white-space: nowrap;
}

.hero-news-divider {
    flex-shrink: 0;
    align-self: stretch;
    width: 1px;
    min-height: 1.1em;
    margin: 0.15em 0;
    background: var(--clr-border);
}

.hero-news-title {
    flex: 1;
    min-width: 0;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.04em;
    color: var(--clr-text);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* ====================================================
   About（農法）
   ==================================================== */
.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    margin-top: var(--sp-xs);
}

.method-item {
    position: relative;
    text-align: left;
}

.method-image {
    position: relative;
    margin-bottom: 24px;
}

.method-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.method-label {
    font-size: 16px;
    color: #6ca223;
    font-weight: bold;
    line-height: 1.7;
    margin-top: 0;
    margin-bottom: 12px;
}

.method-title {
    font-family: var(--font-mark);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--clr-text);
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.45;
}

.method-description {
    font-size: 15px;
    line-height: 2;
    color: #333333;
    margin-top: 0;
    margin-bottom: 0;
}

/* ====================================================
   Features（旬の野菜）2カラム
   ==================================================== */
.home-features-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    margin-top: 0;
}

.home-features-copy {
    width: 100%;
    max-width: 470px;
    justify-self: start;
}

/* 見出しは左カラム・本文の直上（セクション共通の中央見出しを上書き） */
#features .home-features-copy .section-title {
    text-align: left;
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    letter-spacing: 0.12em;
}

.vegetables-intro {
    font-size: 1rem;
    line-height: 2.1;
    color: var(--clr-text);
}

.vegetables-intro + .vegetables-intro {
    margin-top: var(--sp-sm);
}

.home-features-actions {
    margin-top: 40px;
}

/* 通常セクション用の塗りボタン（Features/Contact） */
.section-btn {
    display: inline-block;
    padding: 0.7em 2.2em;
    background: var(--clr-primary);
    color: #fff;
    font-family: var(--font-section-body);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
    border: none;
}

.section-btn:hover,
.section-btn:focus-visible {
    background: var(--clr-primary-dk);
    outline: none;
}

.home-features-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--clr-border);
}

/* ====================================================
   Food（無添加加工シリーズ）
   ==================================================== */
.products-content {
    max-width: 980px;
    margin: 0 auto;
}

.products-intro {
    font-size: 1rem;
    line-height: 2.1;
    color: var(--clr-text);
    text-align: center;
}

.products-intro + .products-intro {
    margin-top: var(--sp-sm);
}

/* 4カードグリッド */
.home-food-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: var(--sp-md);
    max-width: var(--container-w);
    margin-left: auto;
    margin-right: auto;
}

.home-food-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.home-food-card:hover,
.home-food-card:focus-visible {
    transform: translateY(-4px);
    outline: none;
}

.home-food-card:focus-visible .home-food-card-thumb {
    outline: 2px solid var(--clr-primary);
    outline-offset: 3px;
}

.home-food-card-thumb {
    aspect-ratio: 1;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    background: linear-gradient(135deg, #e4f0e3 0%, #f5f8ec 100%);
    margin-bottom: 0.6rem;
    overflow: hidden;
}

.home-food-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-food-card-title {
    font-size: 0.9rem;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.05em;
    line-height: 1.6;
    color: var(--clr-text);
}

/* Food 下部ボタン */
.home-food-actions {
    text-align: center;
    margin-top: var(--sp-md);
}

.food-cta-button {
    display: inline-block;
    padding: 0.75em 2.5em;
    background: var(--clr-primary);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.food-cta-button:hover,
.food-cta-button:focus-visible {
    background: var(--clr-primary-dk);
    outline: none;
}

/* ====================================================
   Greeting（生産者からのあいさつ）
   ==================================================== */
#greeting {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 100vh;
    padding: 0;
    background:
        linear-gradient(
            rgba(14, 22, 30, 0.52),
            rgba(14, 22, 30, 0.52)
        ),
        url('image/dan-gold-4LiUI-Y2mI8-unsplash.jpg') center / cover no-repeat;
}

#greeting .container {
    width: 100%;
    position: relative;
    z-index: 1;
    text-align: left;
}

#greeting .section-title {
    color: #ffffff;
    text-align: left;
}

.message-content {
    max-width: 640px;
    margin: 0;
}

.message-text {
    font-size: 1rem;
    line-height: 2.3;
    color: #ffffff;
}

.message-text + .message-text {
    margin-top: var(--sp-sm);
}

.spacer {
    height: var(--sp-sm);
}

.message-text-emphasis {
    color: #ffffff;
}

.signature {
    max-width: 640px;
    margin: var(--sp-md) 0 0;
    padding-top: var(--sp-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    text-align: left;
}

.signature-text {
    font-size: 0.875rem;
    color: #ffffff;
    letter-spacing: 0.08em;
}

.signature-name {
    font-family: var(--font-mark);
    font-size: 1.15rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.14em;
    margin-top: 0.3rem;
}

/* ====================================================
   Contact（CTA）
   ==================================================== */
#contact {
    position: relative;
    overflow: hidden;
    background: var(--clr-bg);
}

#contact::before,
#contact::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(202, 224, 200, 0.9);
    border-radius: 50%;
    pointer-events: none;
}

#contact::before {
    top: -390px;
    right: -80px;
}

#contact::after {
    bottom: -410px;
    left: -120px;
}

#contact .container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: clamp(3rem, 7vw, 5rem);
    padding-bottom: clamp(3rem, 7vw, 5rem);
}

.cta-heading {
    font-family: var(--font-mark);
    font-size: clamp(1.15rem, 2.6vw, 1.6rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--clr-text);
    margin-bottom: 1.6rem;
    line-height: 1.4;
}

.cta-lead {
    font-size: 0.98rem;
    line-height: 1.9;
    color: var(--clr-text);
}

.cta-lead + .cta-lead {
    margin-top: .1rem;
}

.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
    margin-top: clamp(1.4rem, 3vw, 2.2rem);
}

#contact .home-cta-actions .section-btn,
#contact .home-cta-actions .cta-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: min(420px, 100%);
    min-height: 86px;
    padding: 1rem 3.8rem 1rem 2rem;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    color: var(--clr-accent);
    font-family: var(--font-sans);
    font-size: clamp(1.05rem, 2vw, 1.12rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(47, 118, 39, 0.08);
}

#contact .home-cta-actions .section-btn::after,
#contact .home-cta-actions .cta-button::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 34px;
    height: 34px;
    border-radius: 34px 0 12px 0;
    background: var(--clr-primary);
}

#contact .home-cta-actions .section-btn:hover,
#contact .home-cta-actions .section-btn:focus-visible,
#contact .home-cta-actions .cta-button:hover,
#contact .home-cta-actions .cta-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(47, 118, 39, 0.14);
    outline: none;
}

/* ====================================================
   Footer
   ==================================================== */
.site-footer {
    position: relative;
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
}

.site-footer .container {
    padding-top: clamp(2.8rem, 6vw, 4.2rem);
    padding-bottom: clamp(2rem, 4vw, 2.8rem);
}

.footer-brand {
    margin-bottom: 1.8rem;
}

.footer-logo {
    width: min(180px, 48%);
    height: auto;
}

.footer-info {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.footer-info-block {
    min-width: 0;
    max-width: 360px;
    padding-right: 1.2rem;
}

.footer-info-block + .footer-info-block {
    border-left: 1px solid #e6e6e6;
    padding-left: 1.2rem;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--clr-accent);
    margin-bottom: 0.2rem;
}

.footer-title {
    font-family: var(--font-mark);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #0c2a23;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.footer-text {
    font-size: 0.86rem;
    line-height: 1.8;
    color: #3b4043;
}

.footer-text a {
    color: inherit;
    text-decoration: none;
}

.footer-text a:hover,
.footer-text a:focus-visible {
    text-decoration: underline;
    outline: none;
}

.footer-copy {
    margin-top: 1.7rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--clr-muted);
}

/* ====================================================
   レスポンシブ
   ==================================================== */
@media (max-width: 900px) {
    .method-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        gap: 3.5rem;
    }

    .home-food-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-info-block {
        max-width: none;
        padding-right: 0;
    }

    .footer-info-block + .footer-info-block {
        border-left: none;
        border-top: 1px solid #e6e6e6;
        padding-left: 0;
        padding-top: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--container-pad);
    }

    .section {
        padding: var(--sp-md) 0;
    }

    .home-features-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .home-features-copy {
        max-width: none;
    }

    /* モバイルでは画像を先に表示 */
    .home-features-media {
        order: -1;
    }

    .hero {
        min-height: 85vh;
    }

    .hero-news {
        left: 50%;
        bottom: clamp(16px, 3vh, 28px);
        width: min(560px, calc(100vw - 2 * var(--container-pad)));
        transform: translateX(-50%);
    }

    .hero-news-link {
        gap: 0.75rem;
        padding: 0.7rem 1.2rem;
    }

    .hero-news-date {
        font-size: 0.75rem;
    }

    .hero-news-title {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .home-cta-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    #contact .home-cta-actions .section-btn,
    #contact .home-cta-actions .cta-button {
        width: 100%;
        min-width: 0;
        max-width: 520px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .home-food-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
}
