/*
Theme Name: Nakamura Tokichi Reproduction (Saijoen Style)
Theme URI: https://tokichi.jp/
Description: A premium, minimalist reproduction of the Saijoen website style for Tokichi.
Version: 2.0.0
Author: Antigravity
Text Domain: tokichi-repro
*/

:root {
    /* Color Palette - Saijoen Style */
    --color-navy: #003355;
    --color-moss: #7B8F32;
    --color-bg: #ffffff;
    --color-text-main: #222222;
    --color-text-sub: #666666;
    --color-border: #e0e0e0;

    /* Mapping to generic names */
    --color-primary: var(--color-navy);
    --color-accent: var(--color-moss);

    /* Typography */
    --font-serif: "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
    --font-sans: "Roboto", "Yu Gothic", "Hiragino Kaku Gothic Pro", sans-serif;
    --font-en-display: "Roboto", sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 6rem;
    --spacing-xl: 12rem;

    /* Layout */
    --sidebar-width: 80px;
    --container-width: 1200px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* =========================================
   Fixed Layout Elements
   ========================================= */

/* Header Center Logo (Removed for PC, now in Sidebar) */
/* Sidebar Logo (Vertical Center) */
.side-logo {
    margin: auto 0;
    width: 60px;
    z-index: 1001;
}

.side-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Header Settings */
.mobile-header {
    display: none;
}

@media (max-width: 900px) {
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        z-index: 2000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid var(--color-border);
    }

    .mobile-logo img {
        height: 35px;
        width: auto;
    }

    .mobile-menu-trigger {
        width: 25px;
        height: 18px;
        position: relative;
        cursor: pointer;
    }

    .mobile-menu-trigger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--color-navy);
        position: absolute;
        transition: 0.3s;
    }

    .mobile-menu-trigger span:nth-child(1) {
        top: 0;
    }

    .mobile-menu-trigger span:nth-child(2) {
        top: 8px;
    }

    .mobile-menu-trigger span:nth-child(3) {
        top: 16px;
    }

    .side-navigation {
        display: none;
    }
}

/* Right Sidebar Navigation */
.side-navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: #fff;
    border-left: 1px solid var(--color-border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    /* Distribute top, middle (via margin:auto), bottom */
    padding: 40px 0;
}

.menu-trigger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.hamburger-icon {
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-navy);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.hamburger-icon span:nth-child(1) {
    top: 0;
}

.hamburger-icon span:nth-child(2) {
    top: 9px;
}

.hamburger-icon span:nth-child(3) {
    top: 18px;
}

.menu-label {
    font-size: 10px;
    font-weight: bold;
    color: var(--color-navy);
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.2em;
    margin-top: 5px;
}

/* Utility Links in Sidebar */
.side-utils {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.side-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: bold;
    color: var(--color-navy);
}

.side-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--color-navy);
    stroke-width: 1.5;
}

.side-link span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.1em;
}

/* Sidebar Language Switcher */
.side-lang-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.side-lang-btn {
    font-size: 11px;
    font-weight: bold;
    color: var(--color-navy);
    opacity: 0.4;
    transition: opacity 0.3s;
}

.side-lang-btn.active {
    opacity: 1;
}

.side-lang-divider {
    width: 15px;
    height: 1px;
    background: var(--color-border);
}

/* Drawer Menu (The actual navigation overlay) */
.drawer-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: var(--sidebar-width);
    /* Avoid overlap */
}

.drawer-menu.is-open {
    transform: translateX(0);
}

.drawer-content {
    text-align: center;
}

.drawer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-nav a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-navy);
    letter-spacing: 0.1em;
}

.drawer-nav .menu-subtitle {
    display: block;
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--color-moss);
    margin-top: 5px;
}

/* =========================================
   Front Page Sections
   ========================================= */

/* Hero Slider */
.hero {
    position: relative;
    width: calc(100% - var(--sidebar-width));
    height: 100vh;
    margin-right: var(--sidebar-width);
    /* Push left to account for sidebar */
    overflow: hidden;
}

/* Ensure full width on mobile or handle separately */

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Content Overlay */
.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-catchphrase {
    font-family: var(--font-en-display);
    /* Or serif if user prefers */
    font-size: 4rem;
    line-height: 1.2;
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* Sections General */
section {
    padding: var(--spacing-xl) 0;
    width: calc(100% - var(--sidebar-width));
    /* Account for sidebar */
    margin-right: var(--sidebar-width);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section-title p.subtitle {
    font-family: var(--font-en-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-title h2 {
    font-size: 1rem;
    color: var(--color-text-sub);
    font-weight: normal;
    letter-spacing: 0.2em;
}

/* News Section */
.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

/* Hover effect removed per user request */
/* .news-item:hover {
    background: #f9f9f9;
} */

.news-date {
    font-family: var(--font-en-display);
    font-weight: bold;
    color: var(--color-text-sub);
    margin-right: 30px;
    min-width: 100px;
}

.news-title {
    font-size: 1rem;
    font-weight: 500;
}

/* Products Section (Online Store) */
.section-products {
    background-color: transparent;
    /* Changed from #f5f5f5 to unify with global bg */
    margin-top: var(--spacing-lg);
    /* Added space above Online Store */
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: #fff;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card-image {
    aspect-ratio: 1/1;
    /* Square for clean grid */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content-wrap {
    padding: 20px;
    text-align: center;
}

.card-title {
    font-size: 1.1rem;
    color: var(--color-navy);
    margin-bottom: 5px;
    font-weight: bold;
}

.card-price {
    font-family: var(--font-en-display);
    color: var(--color-moss);
    font-weight: bold;
}

/* About Section */
.section-about {
    background: transparent;
}

/* Footer */
.site-footer {
    background-color: var(--color-navy);
    color: #fff;
    padding: 3rem 0;
    /* Reduced from 6rem (spacing-lg) */
    margin-right: var(--sidebar-width);
    margin-top: 4rem;
    /* Significantly reduced from 18rem */
    width: calc(100% - var(--sidebar-width));
}

.site-footer .container {
    max-width: 800px;
    /* narrowed from 1200px */
}

.site-footer a {
    color: #fff;
}

.footer-navigation ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 20px 0;
    /* Reduced from 30px */
}

.footer-logo img {
    filter: brightness(0) invert(1);
    /* Make logo white */
}

/* Buttons */
.btn-more {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--color-navy);
    background: transparent;
    color: var(--color-navy);
    font-family: var(--font-en-display);
    font-weight: bold;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: var(--color-navy);
    color: #fff;
}

.button-container {
    text-align: center;
    margin-top: 140px;
    margin-bottom: 100px;
    /* Added substantial margin below the button */
    padding-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    :root {
        --sidebar-width: 0px;
        /* Remove fixed sidebar space */
    }

    .side-navigation {
        display: none;
        /* Hide sidebar mainly, or change to mobile header */
    }

    /* Mobile Header */
    .mobile-header {
        display: flex;
        /* Will need to add this in header.php */
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        z-index: 2000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .fixed-logo {
        position: static;
        width: 100px;
        margin: 0;
    }

    .mobile-menu-trigger {
        width: 30px;
        height: 20px;
        position: relative;
    }

    .mobile-menu-trigger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--color-navy);
        position: absolute;
        transition: 0.3s;
    }

    .mobile-menu-trigger span:nth-child(1) {
        top: 0;
    }

    .mobile-menu-trigger span:nth-child(2) {
        top: 9px;
    }

    .mobile-menu-trigger span:nth-child(3) {
        top: 18px;
    }

    .hero,
    section,
    .site-footer {
        width: 100%;
        margin-right: 0;
    }
}

/* =========================================
   Restoring Page-Shizuoka-Tea Styles
   ========================================= */
/* Page Template: Shizuoka Tea */
.page-header {
    text-align: center;
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-md);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.1em;
}

.page-subtitle {
    font-size: 1rem;
    color: 666;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.content-section {
    padding: var(--spacing-lg) 0;
}

.bg-light {
    background-color: #f9f9f9;
}

.section-heading {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 10px;
}

.text-center {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.text-center.section-heading {
    border-bottom: none;
    position: relative;
}

.text-center.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 15px auto 0;
}

/* Split Layout */
.split-layout {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.text-col {
    flex: 1;
}

.text-col p {
    margin-bottom: var(--spacing-sm);
    text-align: justify;
}

.image-col {
    flex: 1;
}

.content-image {
    width: 100%;
    height: auto;
    /* Maintain aspect ratio */
    display: block;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.note-text {
    font-size: 0.9rem;
    color: #555;
    background: #fff;
    padding: 15px;
    border-left: 4px solid var(--color-accent);
    margin: 20px 0;
}

.subsection-heading {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--color-accent);
}

/* Grid Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-img {
    margin: -30px -30px 20px -30px;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.card-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.info-card:hover .card-img img {
    transform: scale(1.05);
}

.info-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-accent);
    font-family: var(--font-serif);
    border-bottom: 1px dashed #ddd;
    padding-bottom: 10px;
}

.highlight-card {
    background: #eef7f2;
    /* Light green tint */
    border-color: var(--color-accent);
}

/* Health Benefits Table */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 40px;

    /* Background Image Settings */
    background-image: url('images/緑茶と健康.jpeg');
    background-size: cover;
    background-position: center;
    padding: 40px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* White overlay to ensure readability */
.benefits-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    /* Reduced opacity */
    z-index: 1;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.85);
    /* Semi-transparent card */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Slightly stronger shadow */
    position: relative;
    z-index: 2;
    /* Sit above the overlay */
    backdrop-filter: blur(5px);
    /* Premium frost effect */
}

.benefit-item dt {
    font-weight: bold;
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-bottom: 5px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    display: inline-block;
}

.benefit-item dd {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-left: 0;
}

.intro-text {
    max-width: 860px;
    margin: 4rem auto;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 2.4;
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
    position: relative;
    /* Removed card styles */
}

/* Remove the 'RESEARCH' badge */
.intro-text::before {
    content: none;
}

.highlight-quote {
    display: block;
    /* Make the quote stand on its own */
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--color-accent);
    /* Removed marker gradient */
    background: none;
}

@media (max-width: 768px) {

    .split-layout,
    .split-layout.reverse {
        flex-direction: column;
    }

    .placeholder-image {
        height: 250px;
    }
}

/* Tea Page Specific Layout Improvements */
.tea-intro {
    margin-bottom: var(--spacing-lg);
}

.tea-highlight-box {
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.tea-highlight-box .subsection-heading {
    margin-top: 0;
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.tea-highlight-box .note-text {
    margin: 1.5rem 0 0;
    background-color: #f9f9f9;
    font-size: 0.95rem;
}

.tea-environment {
    padding-top: var(--spacing-md);
    border-top: 1px dashed #cccccc;
}

.tea-environment .subsection-heading {
    font-size: 1.3rem;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

/* Make image align to top for better flow with long text */
.split-layout.align-start {
    align-items: flex-start;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tea-highlight-box {
        padding: 1.5rem;
    }
}

/* Footer Widget Area */
.footer-company-info-area {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.f-company-info {
    margin-bottom: 1rem;
}

/* =========================================
   Contact Page Styles (Refined)
   ========================================= */
.contact-hero {
    overflow: hidden;
}

.contact-hero .subtitle {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.contact-form-container {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.02);
}

.contact-form input,
.contact-form textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-moss) !important;
    box-shadow: 0 0 0 3px rgba(123, 143, 50, 0.05);
}

@media (max-width: 768px) {
    .contact-hero {
        height: 300px !important;
    }

    .contact-hero h1 {
        font-size: 1.8rem !important;
    }

    .contact-form-container {
        padding: 40px 20px !important;
    }
}

.contact-page {
    background-color: #fff;
}

.contact-method-card {
    transition: all 0.3s ease;
    background-color: #fff;
}

.contact-method-card:hover {
    border-color: var(--color-moss) !important;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 30px !important;
    }

    .grid-2 {
        grid-template-columns: 1fr !important;
    }
}