/* ==========================================================================
   common.css
   3ページ（トップ / 果物紹介 / ジャム）すべてに共通するスタイル
   ========================================================================== */

:root {
    --ink: #1a1a18;
    --paper: #f5f0e8;
    --paper2: #ede7d9;
    --green: #5b8a52;
    --green-d: #3f6238;
    --green-l: #7aad70;
    --gold: #c9a84c;
    --muted: #8a8278;
    --white: #ffffff;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* body の font-family / line-height / font-weight は共通だが、
   background と color は各ページの世界観に合わせて home.css / products.css / jam.css 側で個別に指定してください。
   例: home.css → background: var(--paper); / products.css・jam.css → background: var(--ink); */

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
}


/* ── NAVIGATION ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 72px;
    background: rgba(26, 26, 24, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(91, 138, 82, 0.3);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 44px;
    width: auto;
    display: block;
    mix-blend-mode: lighten;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav ul a {
    color: rgba(245, 240, 232, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    transition: color 0.25s;
}

nav ul a:hover {
    color: var(--green-l);
}

nav ul a.active {
    color: var(--green-l);
}


/* ── HAMBURGER MENU ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--paper);
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: 1px solid rgba(245, 240, 232, 0.25);
    color: var(--paper);
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    line-height: 1;
}

.mobile-menu-close:hover {
    border-color: var(--green-l);
    color: var(--green-l);
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(26, 26, 24, 0.97);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: rgba(245, 240, 232, 0.75);
    text-decoration: none;
    font-size: 1.15rem;
    letter-spacing: 0.25em;
    padding: 14px 0;
    width: 100%;
    max-width: 280px;
    text-align: center;
    border-bottom: 1px solid rgba(91, 138, 82, 0.15);
    transition: color 0.2s;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a:active {
    color: var(--green-l);
}

.mobile-menu .mobile-sns {
    display: flex;
    gap: 28px;
    margin-top: 28px;
}

.mobile-menu .mobile-sns a {
    width: auto;
    border: none;
    padding: 8px;
    font-size: 0;
    color: rgba(245, 240, 232, 0.45);
}

.mobile-menu .mobile-sns a:hover {
    color: var(--green-l);
}

.mobile-menu .mobile-sns svg {
    width: 22px;
    height: 22px;
}


/* ── FOOTER ── */
footer {
    background: #111110;
    color: rgba(245, 240, 232, 0.35);
    padding: 36px 0;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    border-top: 1px solid rgba(91, 138, 82, 0.2);
}

.footer-sns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 16px;
}

.footer-sns a {
    color: rgba(245, 240, 232, 0.4);
    transition: color 0.25s;
    display: flex;
    align-items: center;
}

.footer-sns a:hover {
    color: var(--green-l);
}

.footer-sns svg {
    width: 18px;
    height: 18px;
}


/* ==========================================================================
   下層ページ（果物紹介 / ジャム）共通パーツ
   home.html.twig では使用しないが、products.css / jam.css 単独に複製せず
   ここにまとめておくことで2ページ間の表記ゆれを防ぐ
   ========================================================================== */

/* ── PAGE HERO（下層ページの見出し帯） ── */
.page-hero {
    padding: 160px 0 72px;
    background: var(--ink);
    border-bottom: 1px solid rgba(91, 138, 82, 0.2);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 70% 50%, rgba(91, 138, 82, 0.08) 0%, transparent 70%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    color: var(--green-l);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.page-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 16px;
}

.page-desc {
    font-size: 0.88rem;
    color: rgba(245, 240, 232, 0.55);
    letter-spacing: 0.08em;
}


/* ── 写真ライトボックス（果物紹介・ジャム共通） ── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(10, 10, 9, 0.95);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox-overlay.open {
    display: flex;
}

.lightbox-box {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    color: var(--paper);
}

.lightbox-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.lightbox-origin {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--green-l);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(26, 26, 24, 0.55);
    border: 1px solid rgba(245, 240, 232, 0.25);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    transition: background 0.25s, border-color 0.25s;
    user-select: none;
}

.lightbox-nav:hover {
    background: var(--green);
    border-color: var(--green);
}

.lightbox-nav.prev {
    left: 14px;
}

.lightbox-nav.next {
    right: 14px;
}

.lightbox-counter {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(26, 26, 24, 0.6);
    color: var(--paper);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 5px 12px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    background: none;
    border: 1px solid rgba(245, 240, 232, 0.3);
    color: var(--paper);
    font-size: 1.2rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.lightbox-close:hover {
    border-color: var(--green-l);
    color: var(--green-l);
}

.lightbox-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.lightbox-thumb:hover {
    opacity: 0.85;
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: var(--green-l);
}

/* ※ .lightbox-main / .lightbox-main img / .lightbox-thumb のサイズ指定は
   products.css と jam.css でわずかに異なる可能性があるため、各ページ側に残しています。
   念のため両ファイルを見比べて、違いが意図的かどうか確認してください。 */


/* ── 「トップページへ戻る」リンク（果物紹介・ジャム共通） ── */
.back-link-wrap {
    display: flex;
    justify-content: center;
    padding: 48px 0 80px;
    border-top: 1px solid rgba(91, 138, 82, 0.15);
    margin-top: 64px;
}

.back-link {
    display: inline-block;
    padding: 14px 44px;
    border: 1px solid rgba(245, 240, 232, 0.25);
    color: rgba(245, 240, 232, 0.7);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    transition: all 0.3s;
}

.back-link:hover {
    border-color: var(--green-l);
    color: var(--green-l);
}


/* ── RESPONSIVE（共通） ── */
@media (max-width: 600px) {
    nav ul {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}
