@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

html {
    scroll-behavior: smooth;
}

#about, #history, #feature, #news, #gallery, #contact {
    scroll-margin-top: 40px;
}

/* =======================================================
   1. 変数定義
======================================================= */
:root {
    --color-main-green: #ABC10D;
    --color-dark-green: #486815;
    --color-text-main: #222222;
    --color-text-dark: #1F1F1F;
    --color-bg-light: #f7f9eb;
    --color-white: #FFFFFF;
    
    --font-jp: 'Zen Maru Gothic', sans-serif;
    --font-en: 'Montserrat', sans-serif;
    --font-serif: 'Montserrat', 'Zen Maru Gothic', serif;
    --font-sans: 'Montserrat', 'Zen Maru Gothic', sans-serif;
}

/* =======================================================
   2. リセット＆ベーススタイル
======================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 2;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

/* =======================================================
   3. ヘッダー
======================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* ロゴを上端に密着させる */
}

/* ロゴ部分は白背景の矩形 */
.logo {
    background-color: var(--color-white);
    padding: 0 3px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo svg {
    height: 120px;
    width: auto;
}

/* メニューボタンは右上の丸いアイコン */
.menu-btn {
    margin: 30px;
    width: 50px;
    height: 50px;
    background-color: #b2cc35;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.menu-btn span {
    width: 20px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
}

/* ナビは一旦非表示（ハンバーガーで開く想定） */
.global-nav {
    display: none;
}

/* =======================================================
   Menu Overlay
======================================================= */
.menu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    background: #FFFFFF;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.menu-overlay-inner {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left image panel */
.menu-overlay-img {
    position: relative;
    flex: 1;
    height: 100%;
    overflow: hidden;
}
.menu-overlay-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    object-position: center top;
}

/* Right navigation panel */
.menu-overlay-nav {
    width: 480px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 140px 0 60px 120px;
}

/* Close button (×) */
.menu-close-btn {
    position: absolute;
    top: 40px;
    right: 50px;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.menu-close-btn span {
    position: absolute;
    width: 37.64px;
    height: 0;
    left: 0;
    top: 50%;
    border: 3px solid var(--color-main-green);
    border-radius: 3px;
}
.menu-close-btn span:first-child {
    transform: rotate(39.61deg);
}
.menu-close-btn span:last-child {
    transform: rotate(-39.61deg);
}

/* Nav links */
.menu-nav-links {
    display: flex;
    flex-direction: column;
    gap: 26px;
}
.menu-link {
    font-family: var(--font-jp);
    font-weight: 700;
    font-size: 24px;
    line-height: 35px;
    color: var(--color-main-green);
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.menu-link:hover {
    opacity: 0.7;
}

/* Contact button */
.menu-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 289px;
    height: 90px;
    margin-top: 40px;
    background: var(--color-main-green);
    border: 1px solid var(--color-main-green);
    border-radius: 45px;
    font-family: var(--font-jp);
    font-weight: 700;
    font-size: 20px;
    line-height: 29px;
    letter-spacing: 0.15em;
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.menu-contact-btn:hover {
    opacity: 0.85;
}

/* Divider */
.menu-divider {
    width: 289px;
    height: 0;
    border-top: 1px solid var(--color-main-green);
    margin-top: auto;
}

/* Address */
.menu-address {
    margin-top: 33px;
    font-family: var(--font-jp);
    font-weight: 700;
    font-size: 16px;
    line-height: 26px;
    color: var(--color-main-green);
}

/* =======================================================
   4. メインビジュアル (Hero)
======================================================= */
.hero {
    width: 100%;
    height: 950px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 950px; /* matches hero height */
    background-size: 103.75% auto;
    background-position: 48.14% -35px;
    opacity: 0;
    z-index: 1; 
    animation: heroDimension 16s infinite;
}

.hero-bg-1 {
    background-image: url('https://appletown-iizuna.com/assets/sourapple/image/a613d7a2fb34de378228184d5437873245590772.jpg');
    animation-delay: 0s;
}

.hero-bg-2 {
    background-image: url('https://appletown-iizuna.com/assets/sourapple/image/ca2a329cf4ec16f78cade66894a3de4cba214f59.jpg');
    animation-delay: 4s;
}

.hero-bg-3 {
    background-image: url('https://appletown-iizuna.com/assets/sourapple/image/94a67924faf5d4eacbdd638e1e275e8ea0b6b94f.jpg');
    animation-delay: 8s;
}

.hero-bg-4 {
    background-image: url('https://appletown-iizuna.com/assets/sourapple/image/ec86ccf556a48f3fdb67a6840a951dc51641c7e7.jpg');
    animation-delay: 12s;
}

@keyframes heroDimension {
    0% {
        opacity: 0;
        transform: scale(1.05); /* Slight zoom in effect */
        animation-timing-function: ease-in;
    }
    8% {
        opacity: 1;
        transform: scale(1.03); /* Fade in complete, still zooming */
    }
    25% {
        opacity: 1;
        transform: scale(1.0); /* Full transition */
    }
    33% {
        opacity: 0;
        transform: scale(0.98); /* Fade out and zoom out */
    }
    100% {
        opacity: 0;
    }
}


/* キャッチフレーズ（横書き） */
.catchphrase {
    position: absolute;
    width: 484px;
    height: 163px;
    left: calc(50% - 660px);
    top: 695px;
    color: #FFFFFF;
    font-family: var(--font-jp);
    font-size: 56px;
    font-weight: 700;
    line-height: 84px;
    letter-spacing: 0.11em;
    z-index: 10;
}

/* =======================================================
   5. About (飯綱町の紹介)
======================================================= */
.section-about {
    margin-top: -211px; /* Overlaps hero perfectly (950 - 739) */
    position: relative;
    z-index: 3;
}

.section-about::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2121px;
    top: -225px;
    left: 0;
    /* Figma: Intersection of Mask Group (Rectangle 48) and Green Box (Rectangle 55) */
    background: linear-gradient(
        to bottom,
        rgba(171, 193, 13, 0) 0px,
        rgba(171, 193, 13, 0) 225px,
        rgba(171, 193, 13, 0.1) 847px,
        rgba(171, 193, 13, 0.1) 1400px,
        rgba(171, 193, 13, 0.05) 1700px,
        rgba(171, 193, 13, 0) 2121px
    );
    z-index: -1;
    pointer-events: none;
}

.about-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    height: 1797px; /* Figma Mask Group Height */
}

.about-container .section-en {
    position: absolute;
    width: 76px;
    height: 29px;
    left: calc(50% - 378px);
    top: 373px;
    color: var(--color-main-green);
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 500;
}

.about-container .section-title {
    position: absolute;
    width: 432px;
    left: calc(50% - 382px);
    top: 403px;
    color: var(--color-main-green);
    font-family: var(--font-jp);
    font-size: 72px;
    font-weight: 500;
    line-height: 104px;
}

.about-container .sub-title {
    position: absolute;
    width: 484px;
    height: 66px;
    left: calc(50% - 378px);
    top: 616px;
    color: var(--color-main-green);
    font-family: var(--font-jp);
    font-size: 36px;
    font-weight: 700;
    line-height: 61px;
    letter-spacing: 0.11em;
}

.about-container .description {
    position: absolute;
    width: 484px;
    height: 670px;
    left: calc(50% - 378px);
    top: 792px;
    color: #1F1F1F;
    font-family: var(--font-jp);
    font-size: 20px;
    font-weight: 700;
    line-height: 58px;
    letter-spacing: 0.11em;
    text-align: justify;
}

.about-img-main {
    position: absolute;
    width: 538px;
    height: 466px;
    left: calc(50% + 200px);
    top: 303px;
    border-radius: 20px;
    object-fit: cover;
    object-position: calc(50% + 50px) center;
}

.about-img-left {
    position: absolute;
    width: 277px;
    height: 408px;
    left: calc(50% - 739px);
    top: 1035px;
    border-radius: 20px;
    object-fit: cover;
}

.about-img-right {
    position: absolute;
    width: 424px;
    height: 322px;
    left: calc(50% + 191px);
    top: 1332px;
    border-radius: 20px;
    object-fit: cover;
    z-index: 10;
}

.about-img-bottom {
    position: absolute;
    width: 339px;
    height: 263px;
    left: calc(50% - 358px);
    top: 1675px;
    border-radius: 20px;
    object-fit: cover;
    z-index: 10;
}

/* =======================================================
   6. History (飯綱町のりんごの歴史)
======================================================= */
.section-history {
    padding: 0;
    background-color: var(--color-white);
    position: relative;
    z-index: 2;
}

.section-history::before {
    content: '';
    position: absolute;
    top: -400px;
    left: 0;
    width: 100%;
    height: 400px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #FFFFFF 100%);
    z-index: 1;
    pointer-events: none;
}

.history-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.history-title-block .section-en {
    position: absolute;
    width: 87px;
    height: 29px;
    left: calc(50% - 550px);
    top: 336px; /* 2872 - 2536 */
    color: var(--color-main-green);
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 500;
}

.history-title-block .section-title {
    position: absolute;
    width: 432px;
    height: 180px;
    left: calc(50% - 550px);
    top: 372px; /* 2908 - 2536 */
    color: var(--color-main-green);
    font-family: var(--font-jp);
    font-size: 72px;
    font-weight: 500;
    line-height: 90px;
}

/* History Block 1: Orchard */
.history-block-1 {
    width: 100%;
    position: relative;
    height: 1772px; /* 4308 - 2536 */
}

.history-block-1::after {
    content: '';
    position: absolute;
    bottom: -300px;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, #FFFFFF 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
    pointer-events: none;
}

.history-main-img {
    position: absolute;
    width: 1100px;
    height: 561px;
    left: calc(50% - 550px);
    top: 620px; /* 3156 - 2536 */
    object-fit: cover;
    border-radius: 20px;
}

.history-vertical-title {
    position: absolute;
    width: 130px;
    height: 480px; /* Removes strict 300px bound enabling 7-char columns without artificial wraps */
    left: calc(50% - 403px); /* Perfectly aligns 82px line-height columns to Figma's -314px and -396px anchors */
    top: 1283px; /* 3819 - 2536 */
    writing-mode: vertical-rl;
    color: var(--color-main-green);
    font-family: var(--font-jp);
    font-size: 48px;
    font-weight: 700;
    line-height: 82px;
    letter-spacing: 0.11em;
}

.history-paragraph .description {
    position: absolute;
    width: 457px;
    height: 324px;
    left: calc(50% - 57px); /* Figma offset: 171.5 - 457/2 = -57px */
    top: 1332px; /* 3868 - 2536 */
    color: #1F1F1F;
    font-family: var(--font-jp);
    font-size: 16px;
    font-weight: 700;
    line-height: 34px;
    letter-spacing: 0.11em;
    text-align: justify;
}


/* History Block 2: 50品種以上 */
.history-block-2 {
    width: 100%;
    position: relative;
    height: 1406px;
    background: url('https://appletown-iizuna.com/assets/sourapple/image/ec86ccf556a48f3fdb67a6840a951dc51641c7e7.jpg') 42.74% -30px no-repeat;
    background-size: 188.05% auto; /* 2708px / 1440px の完全な比率 */
    overflow: hidden;
}

/* この画像の上側は白でぼやかす感じに（Figma Rectangle 48のマスクを再現） */
.history-block-2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 34.62%;
    background: linear-gradient(to bottom, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* テキストを読みやすくする薄く白い正円 */
.hb2-text-bg-blob {
    position: absolute;
    width: 790px;
    height: 790px;
    left: calc(50% - 745px); /* -25 - 720 */
    top: 214px; /* 4522 - 4308 */
    border-radius: 50%;
    background: radial-gradient(57.81% 57.81% at 50% 50%, rgba(255, 255, 255, 0.5) 73.4%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.hb2-text-block {
    position: absolute;
    width: 457px;
    left: calc(50% - 550px); /* 170 - 720 */
    top: 382px; /* 4690 - 4308 */
    z-index: 2;
}

.hb2-title {
    font-family: var(--font-jp);
    font-style: normal;
    font-weight: 700;
    font-size: 48px;
    line-height: 69px;
    letter-spacing: 0.05em;
    color: #1F1F1F;
    margin-bottom: 30px;
}

.hb2-text-block .description {
    font-family: var(--font-jp);
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 34px;
    color: #1F1F1F;
    text-align: justify;
}

.hb2-img-top {
    position: absolute;
    width: 581px;
    height: 298px;
    left: calc(50% - 9px); /* 711 - 720 */
    top: 412px; /* 4720 - 4308 */
    object-fit: cover;
    border-radius: 20px;
    z-index: 3;
}

.hb2-img-bottom {
    position: absolute;
    width: 528px;
    height: 297px;
    left: calc(50% + 202px); /* 922 - 720 */
    top: 765px; /* 5073 - 4308 */
    object-fit: cover;
    border-radius: 20px;
    z-index: 2;
}

/* History Block 3: イギリスとの交流の歴史 */
.history-block-3 {
    width: 100%;
    position: relative;
    height: 1522px;
    background-color: var(--color-white);
    overflow: hidden;
}

.history-block-3::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://appletown-iizuna.com/assets/sourapple/image/09bc8ee7e5e8817bc6b85f88c96126c5c67b5891.jpg') calc(50% + 200px) top / cover no-repeat;
    -webkit-mask-image: linear-gradient(to top, rgba(255, 255, 255, 0) 0%, #000000 34.62%, #000000 100%);
    mask-image: linear-gradient(to top, rgba(255, 255, 255, 0) 0%, #000000 34.62%, #000000 100%);
    z-index: 0;
}

.hb3-container-inner {
    position: relative;
    z-index: 2;
    height: 100%;
}

.hb3-text-bg-blob {
    position: absolute;
    width: 951px;
    height: 951px;
    left: calc(50% - 194px); /* 526 - 720 = -194 */
    top: 125px; /* 5839 - 5714 */
    background: radial-gradient(57.81% 57.81% at 50% 50%, rgba(171, 193, 13, 0.425) 73.4%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.hb3-text-block {
    position: absolute;
    width: 457px;
    left: calc(50% + 92px);
    top: 356px; /* 6070 - 5714 */
    z-index: 2;
}

.hb3-text-block::before {
    content: '';
    position: absolute;
    width: 951px;
    height: 951px;
    top: -231px;
    left: -287px;
    background: radial-gradient(57.81% 57.81% at 50% 50%, rgba(171, 193, 13, 0.3) 73.4%, rgba(171, 193, 13, 0) 100%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.hb3-title {
    font-family: var(--font-jp);
    font-weight: 700;
    font-size: 48px;
    line-height: 69px;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    margin-bottom: 32px; /* 6257 - 6070 - 155 = 32 */
}

.hb3-text-block .description {
    font-family: var(--font-jp);
    font-weight: 700;
    font-size: 16px;
    line-height: 34px;
    color: #FFFFFF;
    text-align: justify;
}

.hb3-img-left {
    position: absolute;
    width: 747px;
    height: 652px;
    left: calc(50% - 819.5px);
    top: 171.5px;
    border-radius: 20px;
    object-fit: cover;
    z-index: 3;
}

.hb3-img-bottom {
    position: absolute;
    width: 873px;
    height: 398px;
    left: calc(50% - 552px); /* 168 - 720 */
    top: 908px; /* 6622 - 5714 */
    border-radius: 20px;
    object-fit: cover;
    z-index: 3;
}


/* 以降のセクション（ダミーとして残す） */
/* 後ほど別ステップで実装 */
.section-dummy {
    padding: 100px 20px;
}

/* =======================================================
   7. Feature (海外品種の特徴)
======================================================= */
.section-feature {
    background-color: var(--color-white);
    position: relative;
    height: 4217px;
    padding: 0;
}

.feature-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.feature-title-block .section-en {
    position: absolute;
    width: 94px;
    height: 29px;
    left: calc(50% - 47px); /* Centered */
    top: 264px;
    color: var(--color-main-green);
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 500;
}

.feature-title-block .section-title {
    position: absolute;
    width: 504px;
    left: calc(50% - 252px);
    top: 300px;
    color: var(--color-main-green);
    font-family: var(--font-jp);
    font-size: 72px;
    font-weight: 500;
    line-height: 90px;
    text-align: center;
}

.feature-hero-img {
    position: absolute;
    width: 100%;
    height: 555px;
    left: 0;
    top: 477px;
    object-fit: cover;
}

.feature-subtitle {
    position: absolute;
    width: 380px;
    height: 155px;
    left: calc(50% - 552px); /* 168 - 720 */
    top: 1180px;
    color: var(--color-main-green);
    font-family: var(--font-jp);
    font-size: 48px;
    font-weight: 700;
    line-height: 69px;
}

.feature-paragraph .description {
    position: absolute;
    width: 457px;
    left: calc(50% - 57px); /* 663 - 720 */
    top: 1180px;
    color: #1F1F1F;
    font-family: var(--font-jp);
    font-size: 16px;
    font-weight: 700;
    line-height: 34px;
    letter-spacing: 0.11em;
}

/* ---------------------------------------------------
   Feature Variety Cards (Zinczag Absolute Matrix)
--------------------------------------------------- */
.feature-list {
    position: absolute;
    width: 100%;
    top: 0; left: 0;
}

.feature-card {
    position: absolute;
    height: 652px;
    border-radius: 20px;
}

.fc-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    background: #F9F6F4;
    border-radius: 20px;
    z-index: 1; /* Stay above section background */
}

.fc-title {
    position: absolute;
    width: 380px;
    top: 54px;
    color: var(--color-main-green);
    font-family: var(--font-jp);
    font-size: 48px;
    font-weight: 700;
    line-height: 69px;
    z-index: 2;
}

.fc-desc {
    position: absolute;
    width: 457px;
    top: 237px;
    color: #1F1F1F;
    font-family: var(--font-jp);
    font-size: 16px;
    font-weight: 700;
    line-height: 34px;
    letter-spacing: 0.11em;
    z-index: 2;
}

.fc-sub {
    display: none; /* Merged into desc natively via Figma spacing */
}

.fc-sub-desc {
    position: absolute;
    width: 457px;
    top: 448px;
    color: #1F1F1F;
    font-family: var(--font-jp);
    font-size: 20px;
    font-weight: 700;
    line-height: 34px;
    letter-spacing: 0.11em;
    z-index: 2;
}

.fc-small-apple {
    position: absolute;
    object-fit: cover;
}

.fc-visual {
    position: absolute;
    width: 786px;
    height: 786px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
}

.circle-main-img {
    position: absolute;
    max-width: none;
    object-fit: fill;
}

/* Card 1: Bramley */
.feature-card:nth-child(1) {
    top: 1721px; left: calc(50% - 659px); width: 938px;
}
.feature-card:nth-child(1) .fc-title { left: 107px; letter-spacing: -0.1em; }
.feature-card:nth-child(1) .fc-desc { left: 107px; }
.feature-card:nth-child(1) .fc-sub-desc { left: 107px; }
.feature-card:nth-child(1) .fc-small-apple { top: 35px; left: 437px; width: 203px; height: 179px; filter: drop-shadow(0px 12px 30px rgba(184, 172, 165, 0.8)); z-index: 3; }
.feature-card:nth-child(1) .fc-visual { top: -69px; left: 703px; }
.feature-card:nth-child(1) .fc-visual .circle-main-img { top: -9px; left: -224px; width: 1210px; height: 806px; }

/* Card 2: Boskoop */
.feature-card:nth-child(2) {
    top: 2488px; left: calc(50% - 277px); width: 944px;
}
.feature-card:nth-child(2) .fc-title { left: 370px; }
.feature-card:nth-child(2) .fc-desc { left: 370px; }
.feature-card:nth-child(2) .fc-sub-desc { left: 370px; }
.feature-card:nth-child(2) .fc-small-apple { top: 6px; left: 622px; width: 226px; height: 226px; filter: drop-shadow(0px 12px 30px rgba(184, 172, 165, 0.8)); z-index: 3; }
.feature-card:nth-child(2) .fc-visual { top: -69px; left: -531px; }
.feature-card:nth-child(2) .fc-visual .circle-main-img { top: -100px; left: -178px; width: 1341px; height: 894px; }

/* Card 3: Granny */
.feature-card:nth-child(3) {
    top: 3274px; left: calc(50% - 659px); width: 938px;
}
.feature-card:nth-child(3) .fc-title { left: 107px; }
.feature-card:nth-child(3) .fc-desc { left: 107px; }
.feature-card:nth-child(3) .fc-sub-desc { left: 107px; }
.feature-card:nth-child(3) .fc-small-apple { top: 32px; left: 387px; width: 179px; height: 177px; filter: drop-shadow(0px 12px 30px rgba(184, 172, 165, 0.8)); z-index: 3; }
.feature-card:nth-child(3) .fc-visual { top: -69px; left: 703px; }
.feature-card:nth-child(3) .fc-visual .circle-main-img { top: -209px; left: -321px; width: 1509px; height: 1006px; }

/* =======================================================
   8. Image Banner & News (お知らせ)
======================================================= */
/* Infinite 7-Image Left-Scrolling Marquee */
.image-banner {
    width: 100%;
    background-color: #FFFFFF;
    position: relative;
    height: 643px; /* 12096 - 11453 */
    overflow: hidden;
}

.banner-track {
    display: flex;
    gap: 24px; /* Figma spacing 344 - 320 = 24px */
    width: max-content;
    align-items: flex-start; /* Figma explicit top anchor behavior */
    animation: scrollBannerLeft 40s linear infinite;
}

.banner-img {
    border-radius: 20px;
    object-fit: cover;
    width: 320px;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* 8-Image Repeating Height Matrix matching Figma alternates */
.banner-img:nth-child(8n+1), 
.banner-img:nth-child(8n+3), 
.banner-img:nth-child(8n+5), 
.banner-img:nth-child(8n+7) { 
    height: 295px; 
    margin-top: 61px;
}

.banner-img:nth-child(8n+2), 
.banner-img:nth-child(8n+6) { 
    height: 336px; 
    margin-top: 0px; 
}

.banner-img:nth-child(8n+4),
.banner-img:nth-child(8n) { 
    height: 336px; 
    margin-top: 81px; 
}

@keyframes scrollBannerLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 12px)); } /* Shift exactly 7 items left natively */
}


/* ニュースセクション */
.section-news {
    background-color: #FFFFFF;
    position: relative;
    height: 750px;
    padding: 0;
    z-index: 2;
}

.section-news::after {
    content: '';
    position: absolute;
    bottom: -400px;
    left: 0;
    width: 100%;
    height: 400px;
    background: linear-gradient(to bottom, #FFFFFF 0%, rgba(255,255,255,0) 100%);
    z-index: 2;
    pointer-events: none;
}

.news-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.news-title-block .section-en {
    position: absolute;
    width: 68px;
    height: 29px;
    left: calc(50% - 550px);
    top: 0px;
    color: var(--color-main-green);
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 500;
}

.news-title-block .section-title {
    position: absolute;
    width: 192px;
    height: 90px;
    left: calc(50% - 550px);
    top: 23px;
    color: var(--color-main-green);
    font-family: var(--font-jp);
    font-size: 48px;
    font-weight: 500;
    line-height: 90px;
}

.news-list {
    position: absolute;
    width: 807px;
    left: calc(50% - 257px);
    top: 35px;
    list-style: none;
    border-top: none;
}

.news-item {
    border-bottom: 1px solid #1F1F1F;
    height: 82px;
}

.news-item a {
    display: flex;
    align-items: center;
    padding: 0;
    height: 100%;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.news-item a:hover {
    background-color: #f7f9f2;
}

.news-date {
    width: 123px;
    font-family: var(--font-jp);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.11em;
    color: #1F1F1F;
}

.news-txt {
    flex: 1;
    font-family: var(--font-jp);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.11em;
    color: #1F1F1F;
}

.news-arrow {
    width: 24px;
    height: 24px;
    background-color: var(--color-main-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: bold;
}

/* =======================================================
   9. Photo Gallery (フォトギャラリー)
======================================================= */
.section-gallery {
    background-color: transparent;
    position: relative;
    height: 2918px;
    overflow: visible;
    width: 100%;
    padding: 0;
}

/* Base Figma Masking Background spanning overlapping boundaries */
.section-gallery::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(171,193,13,0) 0px, rgba(171,193,13,0) 200px, rgba(171,193,13,0.1) 600px, rgba(171,193,13,0.25) 1200px, rgba(171,193,13,0.45) 1800px, rgba(171,193,13,0.6) 2500px, rgba(171,193,13,0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Background SVGs Overlaying the Green Mask natively */
.g-svg {
    position: absolute;
    z-index: 4; /* Render exactly above g-img frames natively */
    pointer-events: none;
}
.g-svg-1 { top: 520px; left: calc(50% + 447px); } /* 13330 - 12810 */
.g-svg-2 { top: 962px; left: calc(50% - 748px); } /* 13772 - 12810 */

/* SVG 3 Scrolling Text Overlay */
.gallery-svg-scroll {
    position: absolute;
    top: 2124px; /* explicitly overlapping top of g-img-7 natively */
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: 10; /* Render at very front explicitly */
}

.gallery-svg-track {
    display: flex;
    width: max-content;
    gap: 40px; /* spacing between repetitions natively */
    animation: scrollBgSvgLeft 50s linear infinite;
}

@keyframes scrollBgSvgLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 20px)); } /* Accounts for SVG width + half gap */
}

.gallery-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.gallery-title-block .section-en {
    position: absolute;
    width: 165px;
    height: 29px;
    left: calc(50% - 550px);
    top: 0px;
    color: var(--color-main-green);
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 500;
}

.gallery-title-block .section-title {
    position: absolute;
    width: 551px;
    height: 90px;
    left: calc(50% - 561px);
    top: 36px;
    color: var(--color-main-green);
    font-family: var(--font-jp);
    font-size: 72px;
    font-weight: 500;
    line-height: 90px;
    letter-spacing: -0.05em;
}



/* Scattered Gallery Images (Figma Rotations ignored, evaluating absolute oriented bounding boxes natively ordered Top-to-Bottom) */
.g-img {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    object-fit: cover;
    z-index: 3; /* Render on top of SVGs and Background Mask */
}

/* Explicit X/Y Bound Mappings arrayed vertically */
.g-img-1 { top: -38px; left: calc(50% + 298px); width: 422px; height: 529px; } 

.g-img-2 { top: 278px; left: calc(50% - 765px); width: 870px; height: 560px; border-radius: 20px; } 
.g-img-inner-2 { position: absolute; width: 941px; height: 627px; left: -47px; top: -29px; max-width: none; }

.g-img-3 { top: 740px; left: calc(50% - 28px); width: 542px; height: 394px; z-index: 5; } 
.g-img-4 { top: 1120px; left: calc(50% - 680px); width: 508px; height: 600px; overflow: hidden; border-radius: 20px; } 
.g-img-inner-4 { position: absolute; width: 933px; height: 622px; left: -77px; top: -8px; max-width: none; }
.g-img-5 { top: 1369px; left: calc(50% + 80px); width: 668px; height: 522px; } 
.g-img-6 { top: 1656px; left: calc(50% - 390px); width: 378px; height: 410px; overflow: hidden; border-radius: 20px; } 
.g-img-inner-6 { position: absolute; width: 393px; height: 590px; left: -5px; top: -165px; max-width: none; }
.g-img-7 { top: 2242px; left: calc(50% - 18px); width: 546px; height: 390px; } 
.g-img-8 { top: 2437px; left: calc(50% - 573px); width: 402px; height: 356px; }

/* Suppress overlapping legacy background scrolling elements replaced by SVG3 */
.gallery-bg-text { display: none; }

/* =======================================================
   10. Map (マップ)
======================================================= */
.section-map {
    width: 100%;
    height: 651px; /* 16379 - 15728 */
    background-color: #EDEDED;
}

.section-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* =======================================================
   11. Footer (フッター)
======================================================= */
/* =======================================================
   11. Footer (フッター)
======================================================= */
.footer {
    background-color: var(--color-main-green);
    color: #FFFFFF;
    position: relative;
    height: 567px;
    font-family: var(--font-jp);
}

.footer-container {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
}

.footer-left {
    position: absolute;
    width: 267px;
    left: 146px;
    top: 49px;
}

.footer-logo-svg {
    width: 330px;
    height: auto;
    display: block;
}

.footer-address {
    font-family: var(--font-jp);
    font-weight: 700;
    font-size: 16px;
    line-height: 23px;
    color: #FFFFFF;
    font-style: normal;
    margin-top: 8px;
    margin-left: 30px;
}

.footer-nav-col {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 18px;
    top: 99px;
}
.footer-nav-col a {
    font-family: var(--font-jp);
    font-weight: 700;
    font-size: 20px;
    line-height: 29px;
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.3s;
}
.footer-nav-col a:hover {
    opacity: 0.7;
}

.footer-nav-col-1 {
    left: 685px;
}
.footer-nav-col-2 {
    left: 1013px;
}

.footer-copyright {
    position: absolute;
    right: 167px;
    bottom: 71px;
    font-family: var(--font-en);
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    text-align: right;
    color: #FFFFFF;
}

/* お問い合わせボタン */
.footer-contact-btn {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 488px;
    height: 90px;
    left: 685px;
    top: 273px;
    border: 2px solid #FFFFFF;
    border-radius: 45px;
    color: #FFFFFF;
    font-family: var(--font-jp);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-contact-btn:hover {
    background-color: #FFFFFF;
    color: var(--color-main-green);
}

/* PAGE TOPボタン */
.page-top {
    position: absolute;
    right: 79px;
    top: 300px;
}
.page-top a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFFFFF;
    text-decoration: none;
    gap: 12px;
}
.pt-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: #FFFFFF;
    color: var(--color-main-green);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
}
.page-top a:hover .pt-arrow {
    background-color: var(--color-main-green);
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
}
.pt-text {
    writing-mode: vertical-lr;
    font-family: var(--font-en);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: #FFFFFF;
}

/* =======================================================
   5. Contact Page
======================================================= */
.contact-page-container {
    max-width: 800px;
    margin: 150px auto 100px;
    padding: 0 40px;
    font-family: var(--font-jp);
}

.contact-title-block {
    text-align: left;
    margin-bottom: 60px;
}

.contact-en {
    display: block;
    color: var(--color-main-green);
    font-family: var(--font-en);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-ja {
    color: var(--color-main-green);
    font-size: 36px;
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-group.row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-main-green);
    font-size: 16px;
    font-weight: 700;
}

.required-badge {
    background-color: var(--color-main-green);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.form-input, .form-textarea {
    width: 100%;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 15px;
    font-size: 16px;
    font-family: var(--font-jp);
    box-sizing: border-box;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-main-green);
}

.form-input {
    height: 50px;
}

.form-textarea {
    height: 200px;
    resize: vertical;
}

.form-submit-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.form-submit-btn {
    background-color: var(--color-main-green);
    color: white;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-jp);
    border: none;
    border-radius: 35px;
    padding: 20px 80px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.form-submit-btn:hover {
    opacity: 0.8;
}

/* =======================================================
   SP対応 (max-width: 768px)
======================================================= */
@media (max-width: 768px) {

    /* =======================================================
       1. グローバル & 全般リセット
    ======================================================= */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    main, section, .section-about, .section-history, .section-feature, .section-news, .section-gallery, .image-banner {
        overflow-x: hidden !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
    }

    /* --- ヘッダー --- */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 100 !important;
    }
    .logo svg {
        height: 56px !important;
        width: auto !important;
    }
    .menu-btn {
        margin: 12px 16px !important;
        width: 44px !important;
        height: 44px !important;
        gap: 5px !important;
    }

    /* --- メニューオーバーレイ --- */
    .menu-overlay-img {
        display: none !important;
    }
    .menu-overlay-nav {
        width: 100% !important;
        padding: 80px 24px 30px !important;
    }
    .menu-close-btn {
        top: 16px !important;
        right: 16px !important;
    }
    .menu-link {
        font-size: 18px !important;
    }
    .menu-contact-btn {
        width: 100% !important;
        max-width: 280px !important;
    }

    /* =======================================================
       2. Hero (メインビジュアル)
    ======================================================= */
    .hero {
        position: relative !important;
        width: 100% !important;
        height: 70vh !important;
        min-height: 440px !important;
        max-height: 580px !important;
        overflow: hidden !important;
    }
    .hero-bg {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-size: cover !important;
        background-position: center !important;
    }
    .hero-content {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
    }
    .catchphrase {
        position: absolute !important;
        width: calc(100% - 40px) !important;
        height: auto !important;
        left: 20px !important;
        bottom: 40px !important;
        top: auto !important;
        right: auto !important;
        font-size: 26px !important;
        line-height: 1.4 !important;
        letter-spacing: 0.05em !important;
        color: #FFFFFF !important;
        z-index: 10 !important;
    }

    /* =======================================================
       3. About (飯綱町の紹介)
    ======================================================= */
    .section-about {
        position: relative !important;
        height: auto !important;
        margin-top: 0 !important; /* PC版 margin-top: -211px を完全解除 */
        padding: 40px 20px 24px !important;
        background-color: var(--color-bg-light) !important;
        z-index: 3 !important;
    }
    .section-about::before {
        display: none !important;
    }
    .about-container {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    /* PC版セレクタ同等の特異性で top/left/width を完治 */
    .about-title-block,
    .about-container .section-en,
    .about-container .section-title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        text-align: left !important;
    }
    .about-container .section-en {
        font-size: 14px !important;
        color: var(--color-main-green) !important;
        display: block !important;
        margin-bottom: 2px !important;
    }
    .about-container .section-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
        color: var(--color-main-green) !important;
    }

    .about-text-block {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
    }
    .about-container .sub-title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        font-size: 20px !important;
        line-height: 1.4 !important;
        letter-spacing: 0.03em !important;
        color: var(--color-main-green) !important;
        margin: 10px 0 8px !important;
        text-align: left !important;
    }
    .about-container .description {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        font-size: 14px !important;
        line-height: 1.8 !important;
        letter-spacing: 0 !important;
        color: #333333 !important;
        text-align: left !important;
        margin: 0 !important;
        word-break: break-word !important;
    }

    .about-img-main,
    .about-img-left,
    .about-img-right,
    .about-img-bottom {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
        border-radius: 14px !important;
        margin: 8px 0 0 0 !important;
        display: block !important;
    }

    /* =======================================================
       4. History (飯綱町の歴史)
    ======================================================= */
    .section-history {
        position: relative !important;
        height: auto !important;
        padding: 40px 20px 20px !important;
        background-color: #FFFFFF !important;
    }
    .section-history::before {
        display: none !important;
    }
    .history-container {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* Title Block */
    .history-title-block {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 8px !important;
    }
    .history-title-block .section-en {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        font-size: 14px !important;
        color: var(--color-main-green) !important;
        display: block !important;
        text-align: left !important;
    }
    .history-title-block .section-title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        font-size: 28px !important;
        line-height: 1.3 !important;
        color: var(--color-main-green) !important;
        text-align: left !important;
    }

    /* History Block 1 */
    .history-block-1 {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        padding: 0 !important;
    }
    .history-block-1::after {
        display: none !important;
    }
    .history-main-img {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
        border-radius: 14px !important;
        display: block !important;
    }
    .history-text-row {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .history-vertical-title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        writing-mode: horizontal-tb !important;
        font-size: 20px !important;
        line-height: 1.4 !important;
        font-weight: 700 !important;
        letter-spacing: 0.03em !important;
        margin: 4px 0 !important;
        text-align: left !important;
        color: var(--color-main-green) !important;
    }
    .history-paragraph,
    .history-paragraph .description {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        font-size: 14px !important;
        line-height: 1.8 !important;
        letter-spacing: 0 !important;
        color: #333333 !important;
        text-align: left !important;
        margin: 0 !important;
        word-break: break-word !important;
    }

    /* History Block 2 (50品種以上) */
    .history-block-2 {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        padding: 28px 16px !important;
        margin-top: 24px !important;
        background-size: cover !important;
        background-position: center !important;
        border-radius: 16px !important;
    }
    .history-block-2::before {
        height: 100% !important;
        background: linear-gradient(to bottom, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.96) 100%) !important;
    }
    .hb2-text-bg-blob {
        display: none !important;
    }
    .hb2-text-block {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        z-index: 2 !important;
    }
    .hb2-title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        font-size: 22px !important;
        line-height: 1.4 !important;
        letter-spacing: 0.03em !important;
        color: #1F1F1F !important;
        margin-bottom: 12px !important;
        text-align: left !important;
    }
    .hb2-text-block .description {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        font-size: 14px !important;
        line-height: 1.8 !important;
        letter-spacing: 0 !important;
        color: #333333 !important;
        margin-bottom: 16px !important;
        text-align: left !important;
    }
    .hb2-img-top,
    .hb2-img-bottom {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: 180px !important;
        margin: 0 0 12px 0 !important;
        display: block !important;
        object-fit: cover !important;
        border-radius: 14px !important;
        z-index: 2 !important;
    }

    /* History Block 3 (イギリスとの交流) */
    .history-block-3 {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        padding: 24px 0 10px 0 !important;
        background-color: transparent !important;
    }
    .history-block-3::before,
    .hb3-text-bg-blob,
    .hb3-text-block::before {
        display: none !important;
    }
    .hb3-container-inner {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    .hb3-text-block {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
    }
    .hb3-title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        font-size: 22px !important;
        line-height: 1.4 !important;
        letter-spacing: 0.03em !important;
        margin-bottom: 12px !important;
        text-align: left !important;
        color: #1F1F1F !important; /* スマホ版のみ黒文字化 */
    }
    .hb3-text-block .description,
    .history-block-3 .description {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        font-size: 14px !important;
        line-height: 1.8 !important;
        letter-spacing: 0 !important;
        color: #333333 !important; /* スマホ版のみ黒文字化 */
        text-align: left !important;
    }
    .hb3-img-left,
    .hb3-img-bottom {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        border-radius: 14px !important;
        margin-top: 8px !important;
        display: block !important;
    }

    /* =======================================================
       5. Feature (海外品種の特徴)
    ======================================================= */
    .section-feature {
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
        padding: 40px 20px !important;
        background-color: #FFFFFF !important;
    }
    .feature-container {
        position: relative !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .feature-title-block,
    .feature-title-block .section-en,
    .feature-title-block .section-title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        text-align: left !important;
        display: block !important;
    }
    .feature-title-block .section-en {
        font-size: 14px !important;
        color: var(--color-main-green) !important;
        margin-bottom: 4px !important;
    }
    .feature-title-block .section-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
        color: var(--color-main-green) !important;
        margin-bottom: 16px !important;
    }
    .feature-hero-img {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: 200px !important;
        margin: 0 0 24px 0 !important;
        object-fit: cover !important;
        border-radius: 14px !important;
        display: block !important;
    }
    .feature-text-row {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 30px !important;
    }
    .feature-subtitle {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        font-size: 20px !important;
        line-height: 1.4 !important;
        font-weight: 700 !important;
        color: var(--color-main-green) !important;
        text-align: left !important;
        margin: 0 !important;
    }
    .feature-paragraph,
    .feature-paragraph .description {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        font-size: 14px !important;
        line-height: 1.8 !important;
        letter-spacing: 0 !important;
        color: #333333 !important;
        text-align: left !important;
        margin: 0 !important;
    }

    /* 品種カードリスト */
    .feature-list {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 28px !important;
    }
    .feature-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        border-radius: 18px !important;
        background: #F9F6F4 !important;
        padding: 20px 16px !important;
        box-shadow: 0 4px 14px rgba(0,0,0,0.04) !important;
    }
    .fc-bg {
        display: none !important;
    }
    .fc-content {
        position: relative !important;
        width: 100% !important;
    }
    .fc-title-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }
    .fc-title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        font-size: 20px !important;
        line-height: 1.3 !important;
        color: var(--color-main-green) !important;
    }
    .fc-small-apple {
        position: static !important;
        width: 42px !important;
        height: auto !important;
        filter: none !important;
    }
    .fc-desc {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        font-size: 13.5px !important;
        line-height: 1.75 !important;
        letter-spacing: 0 !important;
        margin-bottom: 12px !important;
        color: #333333 !important;
    }
    .fc-sub {
        display: block !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: var(--color-main-green) !important;
        margin-bottom: 4px !important;
    }
    .fc-sub-desc {
        display: block !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
        letter-spacing: 0 !important;
        margin-bottom: 16px !important;
        background: rgba(255,255,255,0.75) !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }
    .fc-visual {
        position: relative !important;
        width: 200px !important;
        height: 200px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        margin: 0 auto !important;
        top: auto !important;
        left: auto !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
        flex-shrink: 0 !important;
    }
    .circle-main-img {
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        top: 0 !important;
        left: 0 !important;
    }

    /* =======================================================
       6. Image Banner & News
    ======================================================= */
    .image-banner {
        position: relative !important;
        height: 210px !important;
        padding: 10px 0 !important;
        overflow: hidden !important;
        background-color: #FFFFFF !important;
    }
    .banner-track {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .banner-img,
    .banner-img:nth-child(8n+1), 
    .banner-img:nth-child(8n+2), 
    .banner-img:nth-child(8n+3), 
    .banner-img:nth-child(8n+4), 
    .banner-img:nth-child(8n+5), 
    .banner-img:nth-child(8n+6), 
    .banner-img:nth-child(8n+7), 
    .banner-img:nth-child(8n) {
        width: 140px !important;
        height: 190px !important;
        margin-top: 0 !important;
        border-radius: 12px !important;
        object-fit: cover !important;
    }

    .section-news {
        position: relative !important;
        height: auto !important;
        padding: 40px 20px !important;
    }
    .section-news::after {
        display: none !important;
    }
    .news-container {
        padding: 0 !important;
    }
    .news-title-block,
    .news-title-block .section-en,
    .news-title-block .section-title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
    }
    .news-title-block .section-en {
        font-size: 14px !important;
        color: var(--color-main-green) !important;
        display: block !important;
    }
    .news-title-block .section-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-bottom: 16px !important;
    }
    .news-list {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
    }
    .news-item a {
        flex-wrap: wrap !important;
        padding: 10px 0 !important;
        gap: 4px !important;
    }
    .news-date {
        width: 100% !important;
        font-size: 11.5px !important;
        color: var(--color-main-green) !important;
    }
    .news-txt {
        width: 100% !important;
        font-size: 13.5px !important;
        line-height: 1.5 !important;
        overflow-wrap: break-word !important;
        word-break: break-all !important;
    }
    .news-arrow {
        display: none !important;
    }

    /* =======================================================
       7. Photo Gallery
    ======================================================= */
    .section-gallery {
        position: relative !important;
        height: auto !important;
        padding: 40px 20px !important;
    }
    .section-gallery::before {
        background: linear-gradient(to bottom, rgba(171,193,13,0) 0%, rgba(171,193,13,0.3) 200px, rgba(171,193,13,0.6) 100%) !important;
    }
    .g-svg,
    .gallery-svg-scroll {
        display: none !important;
    }
    .gallery-container {
        position: relative !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }
    .gallery-title-block,
    .gallery-title-block .section-en,
    .gallery-title-block .section-title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 16px !important;
    }
    .gallery-title-block .section-en {
        font-size: 14px !important;
        color: var(--color-main-green) !important;
        display: block !important;
    }
    .gallery-title-block .section-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
    
    .g-img,
    .g-img-1, .g-img-2, .g-img-3, .g-img-4, 
    .g-img-5, .g-img-6, .g-img-7, .g-img-8 {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: 200px !important;
        margin: 0 !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }
    .g-img img,
    .g-img-inner-2,
    .g-img-inner-4,
    .g-img-inner-6 {
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        top: 0 !important;
        left: 0 !important;
    }

    /* =======================================================
       8. Map & Footer
    ======================================================= */
    .section-map {
        position: relative !important;
        height: 260px !important;
    }

    .footer {
        position: relative !important;
        height: auto !important;
        padding: 40px 20px 30px !important;
    }
    .footer-container {
        position: relative !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }
    .footer-left {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        text-align: center !important;
    }
    .footer-logo-svg {
        width: 140px !important;
        margin: 0 auto !important;
    }
    .footer-address {
        margin-top: 10px !important;
        margin-left: 0 !important;
        text-align: center !important;
        font-size: 12.5px !important;
        line-height: 1.6 !important;
    }
    .footer-nav-col {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
    }
    .footer-nav-col a {
        font-size: 13.5px !important;
    }
    .footer-contact-btn {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 260px !important;
        height: 48px !important;
        margin: 0 auto !important;
        font-size: 14px !important;
    }
    .page-top {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        text-align: center !important;
        margin: 10px auto 0 !important;
    }
    .pt-text {
        writing-mode: horizontal-tb !important;
    }
    .footer-copyright {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        text-align: center !important;
        margin-top: 8px !important;
        font-size: 11px !important;
    }

    /* --- Contact Page --- */
    .contact-page-container {
        margin: 70px auto 30px !important;
        padding: 0 20px !important;
    }
    .contact-ja {
        font-size: 22px !important;
    }
    .form-submit-btn {
        width: 100% !important;
        padding: 14px 0 !important;
    }
}

/* =========================================
   News Modal Styles
========================================= */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.news-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow-y: auto;
    z-index: 10000;
}

.news-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.news-modal-close:hover {
    background: var(--color-main-green);
    color: #fff;
}

.news-modal-header {
    margin-bottom: 25px;
    text-align: left;
}

.news-modal-date {
    display: inline-block;
    color: var(--color-main-green);
    font-family: var(--font-en), sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.news-modal-title {
    font-size: 22px;
    color: #333;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    font-family: var(--font-jp);
}

.news-modal-image-container {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    background: #f9f9f9;
}

.news-modal-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

.news-modal-body {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    font-family: var(--font-jp);
}

@media screen and (max-width: 768px) {
    .news-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .news-modal-title {
        font-size: 18px;
    }
    .news-modal-body {
        font-size: 15px;
    }
}
