/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2b5e2d;     /* Deep green for Nakajima-na */
    --primary-light: #448046;
    --text-main: #333333;
    --text-light: #666666;
    --bg-main: #fcfbf9;           /* Soft organic off-white */
    --accent: #d4a373;            /* Warm earthy accent */
    --surface: #ffffff;
    
    --font-heading: 'Shippori Mincho', "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
    --font-body: 'Shippori Mincho', "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Typography */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background-color: currentColor;
    width: 100%;
}

.section-title.center {
    text-align: center;
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.section-desc.center {
    text-align: center;
}

.section-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 10px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    height: 75px; /* Restored to original large size */
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}

.logo-sub {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: var(--text-light);
    font-weight: 400;
    display: block;
}

/* Hamburger Menu Base (Hidden on Desktop) */
.menu-btn {
    display: none;
}
.menu-icon {
    display: none;
    cursor: pointer;
    padding: 28px 20px;
    position: relative;
    user-select: none;
    z-index: 1001;
}
.navicon {
    background: var(--text-main);
    display: block;
    height: 2px;
    position: relative;
    transition: background .2s ease-out;
    width: 24px;
}
.navicon:before,
.navicon:after {
    background: var(--text-main);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}
.navicon:before { top: 8px; }
.navicon:after { top: -8px; }

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

.global-nav a {
    font-size: 1.05rem;
    font-weight: 500;
    position: relative;
}

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

.global-nav a:hover::after {
    width: 100%;
}

.btn-shop {
    font-family: var(--font-body);
    background-color: #ffd700;
    color: #333333;
    text-align: center;
    line-height: 1.4;
    display: inline-block;

    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1.05rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}


.corezo-text {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 0.9em;
}

.btn-shop:hover {
    background-color: #ffc107;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    /* padding removed to allow container alignment */
    /* ユーザーがアップロードした中島菜の画像を使用 */
    background-image: url('./hero.png');
    background-size: cover;
    background-position: 15% center; /* ピントが合っている葉っぱを強調 */
    background-attachment: fixed; /* Parallax effect */
}

/* 文字の可読性を保ちつつ、薄暗さを大幅に軽減 */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white; /* Restored */
    max-width: 600px;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-desc {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 16px 40px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
    background: var(--primary-light);

}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.scroll-down::after {
    content: '';
    width: 1px;
    height: 40px;
    background: white;
    animation: scrollLine 1.5s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* About Section */
.about-section {
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.about-image {
    position: relative;
}

.about-image .image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Products Section */
.products-section {
    padding: 120px 0;
    background-color: var(--surface);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--bg-main);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.product-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.product-info p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.center-btn-wrapper {
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 36px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);

}

/* News Section */
.news-section {
    padding: 120px 0;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.news-link {
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 500;
}

.news-link:hover {
    color: var(--primary-light);
}

.news-list {
    list-style: none;
}

.news-list li {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.news-list a {
    display: flex;
    padding: 24px 10px;
    transition: background-color 0.3s ease;
}

.news-list a:hover {
    background-color: rgba(0,0,0,0.02);
}

.news-list time {
    margin-right: 40px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 500;
}

.news-title {
    font-size: 1.2rem;
    color: var(--text-main);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: rgba(255,255,255,0.8);
    padding: 80px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand h2 {
    font-family: var(--font-heading);

    font-size: 1.65rem;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a:hover {

}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
}

/* Page Content (Lower Pages) */
.page-content {
    padding: 160px 0 120px;
    min-height: calc(100vh - 250px);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.coming-soon {
    text-align: center;
    padding: 60px 0;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Access Page Styles */
.access-info-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.access-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.access-table th {
    width: 30%;
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    vertical-align: top;
}

.access-table td {
    width: 70%;
    padding: 20px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    color: var(--text-main);
    line-height: 1.8;
}

.access-table tr:last-child th,
.access-table tr:last-child td {
    border-bottom: none;
}

.access-table a {
    color: var(--primary-color);
    transition: opacity 0.3s ease;
}

.access-table a:hover {
    opacity: 0.7;
}

.access-map {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.access-map iframe {
    display: block;
    width: 100%;
}

/* Contact Page Styles */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-desc {
    text-align: center;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-form-container {
    background: var(--surface);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
}

.contact-form-container iframe {
    display: block;
    width: 100%;
    border: none;
    min-height: 800px;
}

/* Shop CTA Section */
.shop-cta {
    background-color: var(--surface);
    padding: 120px 0;
    text-align: center;
}

.shop-cta-centered {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.cta-desc {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.cta-action {
    display: flex;
    justify-content: center;
}

.cta-banner-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.cta-banner-link:hover {
    transform: translateY(-5px);
}

.cta-banner-link img {
    height: 45px; /* Make the banner smaller for better balance */
    width: auto;
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    
    
    /* スマホ表示時のヒーロー画像の見え方・ピント位置の調整 */
    .hero-section {
        background-attachment: scroll; /* スマホ特有の背景巨大化・ピンボケを防ぐ */
        background-position: 35% center; /* ピントが合う位置に合わせて数値を調整してください（PC版は15%が入っています） */
    }
    
    .about-grid { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; gap: 40px; }
    
    .header-inner {
        flex-direction: row;
        justify-content: flex-end;
        padding: 6px 40px;
        min-height: 87px;
        position: relative; /* Ensure absolute children are relative to this */
    }
    
    .logo {
        position: static;
        width: 100%;
        transform: none;
        margin-bottom: 0;
    }
    
    .logo-link {
        width: 100%;
        display: flex;
        justify-content: center; /* Center the text */
        position: relative;
    }
    
    .logo-icon {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Hamburger Menu Logic */
    .menu-icon {
        display: block;
        order: 3;
        padding: 15px 20px;
        margin-right: -20px;
        position: absolute;
        right: 40px; /* Pin to the right padding edge */
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }
    .global-nav {
        clear: both;
        max-height: 0;
        transition: max-height .2s ease-out;
        overflow: hidden;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .global-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    .global-nav li {
        text-align: center;
    }
    .global-nav a {
        display: block;
        padding: 15px 20px;
        font-size: 1.2rem;
    }
    .btn-shop {
    font-family: var(--font-body);
        position: absolute; /* Using absolute relative to the fixed header fixes iOS containing block issues */
        top: calc(100vh - 75px);
        top: calc(100dvh - 75px); /* 90px above bottom edge */
        left: 50%;
        transform: translateX(-50%);
        padding: 14px 30px;
        font-size: 1rem;
        background-color: rgba(255, 215, 0, 0.9);
        color: #333333; /* Lighter transparency (was 0.85) */
        backdrop-filter: blur(8px); /* Stronger blur to compensate for lighter background */
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        z-index: 2000;
        margin: 0;
        order: unset;
        width: 85%;
        max-width: 350px;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .btn-shop:hover {
        transform: translateX(-50%) translateY(-2px);
    }
    
    /* Toggle State */
    .menu-btn:checked ~ .global-nav {
        max-height: 400px;
    }
    .menu-btn:checked ~ .menu-icon .navicon {
        background: transparent;
    }
    .menu-btn:checked ~ .menu-icon .navicon:before {
        transform: rotate(-45deg);
        top: 0;
    }
    .menu-btn:checked ~ .menu-icon .navicon:after {
        transform: rotate(45deg);
        top: 0;
    }
    
    /* Unified Mobile Section Paddings */
    .about-section,
    .products-section,
    .shop-cta {
        padding: 80px 0;
    }
    
    .page-content {
        padding: 120px 0 80px;
    }

    /* Access Page Mobile Styles */
    .access-info-wrapper {
        padding: 20px;
    }
    
    .access-table th,
    .access-table td {
        display: block;
        width: 100%;
        padding: 15px 10px;
    }
    
    .access-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    /* Contact Page Mobile Styles */
    .contact-form-container {
        padding: 20px;
        border-radius: 8px;
    }
    .contact-desc {
        text-align: left;
        padding: 0 10px;
    }
    
    /* Shop CTA Mobile Styles */
    .cta-title {
        font-size: 1.6rem;
    }
    .cta-banner-link img {
        height: 40px;
    }
}

/* Category Navigation */
.category-nav {
    text-align: center;
    margin-bottom: 60px;
}

.category-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.category-nav a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    position: relative;
}

.category-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ffd700;
    color: #333333;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.category-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Dynamic Underline Width for Grid Layout */
@media (min-width: 760px) {
    .section-title:not(.center)::after {
        width: calc((100% - 40px) / 2);
    }
}

@media (min-width: 1120px) {
    .section-title:not(.center)::after {
        width: calc((100% - 80px) / 3);
    }
}

/* Compact grid for items_list.html (Test) */
.items-list-page .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.items-list-page .section-title:not(.center)::after {
    width: calc((100% - 20px) / 2);
}

@media (min-width: 760px) {
    .items-list-page .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    .items-list-page .section-title:not(.center)::after {
        width: calc((100% - 90px) / 4);
    }
}

