@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500&family=Zen+Old+Mincho:wght@400;700&display=swap');

:root {
    /* V5: Deep Green Zen Palette */
    --color-bg: #fdfdfd;
    /* Purest White/Paper */
    --color-text: #052416;
    /* Deepest Forest Green (Almost Black) */
    --color-accent: #00654D;
    /* Rich Matcha / Moss */
    --color-highlight: #bfd6bf;
    /* Pale Green Mist */
    --color-sub: #d0e0d0;
    /* Greenish Grey */

    --font-jp: 'Zen Old Mincho', serif;
    --font-en: 'Montserrat', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-jp);
    line-height: 2.0;
    overflow-x: hidden;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover {
    color: var(--color-bg);
    background-color: var(--color-accent);
    padding: 0 4px;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 3rem 5%;
    position: fixed;
    top: 0;
    width: 90%;
    z-index: 100;
}

.logo {
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    border-bottom: 2px solid var(--color-accent);
    /* Green underline */
    padding-bottom: 5px;
    color: var(--color-accent);
}

nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 1.5rem;
    align-items: flex-end;
    margin: 0;
    padding: 0;
}

nav li {
    font-family: var(--font-en);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--color-text);
}

.hamburger {
    display: none;
}

/* Hero */
.hero-section {
    height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
    border-bottom: 1px solid var(--color-sub);
}

.hero-content {
    z-index: 10;
    text-align: center;
    position: relative;
    width: 100%;
    /* Force full width to allow big logo */
}

.hero-title {
    margin: 0;
    line-height: 1;
    /* Reset line-height to fix inner img space */
}

.hero-logo {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 450px;
    height: auto;
    margin-bottom: 2rem;
}

.page-hero-logo {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin-bottom: 2rem;
}

.hero-subtitle {
    margin-top: 3rem;
    font-size: 1.1rem;
    letter-spacing: 0.5em;
    font-weight: 700;
    font-family: var(--font-jp);
    color: var(--color-accent);
}

/* Breathing Enso (Deep Green Ink Style) */
.enso-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55vh;
    height: 55vh;
    z-index: 1;
    pointer-events: none;
}

.enso-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Gradient representing deep green ink wash */
    background: radial-gradient(circle, rgba(58, 95, 11, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    animation: breathe 10s ease-in-out infinite;
    mix-blend-mode: multiply;
}

.enso-circle:nth-child(2) {
    width: 130%;
    height: 130%;
    top: -15%;
    left: -15%;
    border: 1px solid rgba(58, 95, 11, 0.1);
    /* Green border */
    background: none;
    animation: rotate 30s linear infinite;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Grid Lines (Greenish Tint) */
.grid-line-v {
    position: absolute;
    top: 0;
    left: 20%;
    width: 1px;
    height: 100%;
    background: rgba(58, 95, 11, 0.1);
    z-index: 0;
}

.grid-line-h {
    position: absolute;
    top: 25%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(58, 95, 11, 0.1);
    z-index: 0;
}

/* Sections */
.content-section {
    padding: 10rem 15% 8rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
    border-bottom: 1px solid rgba(58, 95, 11, 0.1);
    position: relative;
    background-color: var(--color-bg);
    scroll-margin-top: 80px;
    /* Buffer for fixed header on scroll */
}

.content-section.single-col {
    display: block;
    padding: 8rem 15%;
    /* Adjust padding for single column if needed */
}

/* Ensure container inside gets full width if needed, though block display handles it */
.content-section.single-col .container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-en);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 700;
    position: sticky;
    top: 8rem;
    border-left: 4px solid var(--color-accent);
    /* Green Bar */
    padding-left: 1rem;
}

/* .text-block p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-text);
    text-align: justify;
    line-height: 2.4;
} */

.text-block p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-text);
    text-align: justify;
    line-height: 2.4;
}

.center-text p,
.text-block.center-text p {
    text-align: center;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Event Card V5 (Deep Green) with Image */
.event-card {
    border: 1px solid var(--color-accent);
    padding: 3rem;
    transition: all 0.4s ease;
    background: #fff;
    box-shadow: 10px 10px 0 rgba(58, 95, 11, 0.05);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .event-card {
        flex-direction: row;
        align-items: center;
    }
}

.event-image-container {
    flex: 1;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: all 0.4s ease;
}

.event-image.desaturate {
    filter: saturate(0.6) contrast(1.1);
}

.event-card:hover .event-image {
    filter: saturate(1) contrast(1.1);
}

.event-content {
    flex: 1;
}

.event-card:hover {
    box-shadow: 15px 15px 0 var(--color-accent);
    transform: translate(-5px, -5px);
    background-color: #fbfdfb;
    /* Very slight green tint on hover */
}

.event-card h3 {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 300;
    margin: 0 0 1rem 0;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-sub);
    padding-bottom: 1rem;
    color: var(--color-text);
}

.event-details .date {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--color-accent);
    color: #fff;
    padding: 2px 8px;
    margin-bottom: 1rem;
}

.event-details .location {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.event-details .fee {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.description {
    font-size: 1rem;
    color: #4a5d50;
    /* Greenish Grey Text */
}

/* Footer */
footer {
    padding: 6rem 10%;
    background-color: var(--color-bg);
    color: var(--color-accent);
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--color-accent);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .site-header {
        padding: 1.5rem 5%;
        background-color: rgba(253, 253, 253, 0.95);
        backdrop-filter: blur(5px);
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        /* Prevent padding from expanding width causing the menu to go offscreen */
    }

    /* Hamburger Icon */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 200;
        margin-right: 0;
        /* Ensure it stays aligned to the right edge */
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-accent);
        transition: all 0.3s ease;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

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

    /* Nav Drawer */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 150;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        align-items: center;
        text-align: center;
        gap: 3rem;
    }

    nav li {
        font-size: 1.5rem;
        /* Larger font for mobile menu */
    }

    .hero-subtitle {
        margin-top: 1.5rem;
        font-size: 0.9rem;
    }

    .enso-container {
        width: 40vh;
        height: 40vh;
    }

    .content-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 6rem 5% 4rem;
    }

    .section-title {
        position: static;
        margin-bottom: 2rem;
        border-left: 3px solid var(--color-accent);
        top: auto;
    }

    .text-block p {
        text-align: left;
        font-size: 1rem;
        line-height: 1.8;
    }

    .event-card {
        padding: 1.5rem;
    }

    .event-card h3 {
        font-size: 1.5rem;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        align-items: center;
        padding: 4rem 5%;
    }
}

/* =========================================
   Event Page Styles (Adapted for V5)
   ========================================= */

/* Use V5 variables */
.page-hero {
    padding: 10rem 5% 4rem;
    text-align: center;
    border-bottom: 1px solid var(--color-sub);
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    line-height: 1.4;
    font-family: var(--font-en);
    font-weight: 300;
    color: var(--color-text);
}

.page-hero .subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    display: block;
    margin-top: 1rem;
    font-weight: 700;
    font-family: var(--font-jp);
    color: var(--color-accent);
}

.center-text {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Event Schedule Block */
.event-schedule-block {
    margin-bottom: 4rem;
    border-bottom: 1px dashed var(--color-accent);
    padding-bottom: 3rem;
}

.event-schedule-block:last-of-type {
    border-bottom: none;
}

.event-schedule-block h3 {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-family: var(--font-en);
}

.event-location {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.event-time {
    font-family: var(--font-en);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.event-schedule-block .fee {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-top: 0.5rem;
}

.address-block {
    margin-top: 3rem;
    font-size: 1rem;
    border-top: 1px solid var(--color-sub);
    padding-top: 2rem;
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: left;
}

@media (min-width: 769px) {
    .detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.detail-item h3 {
    font-size: 1.4rem;
    color: var(--color-accent);
    border-left: 4px solid var(--color-accent);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-jp);
}

.accent-text {
    font-weight: bold;
    color: var(--color-text);
    margin-top: 1rem;
    display: block;
}

/* Step Guide (For How to Join) */
.step-guide {
    background: #fff;
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid var(--color-sub);
    box-shadow: 10px 10px 0 rgba(58, 95, 11, 0.05);
    text-align: left;
}

.step-guide h3 {
    border-bottom: 1px solid var(--color-sub);
    padding-bottom: 1rem;
    margin-top: 0;
    font-family: var(--font-jp);
    font-size: 1.6rem;
}

.dialogue {
    font-weight: bold;
    background-color: #f4f7f5;
    /* Very subtle green tint */
    padding: 0.5rem 1rem;
    display: inline-block;
    border-radius: 4px;
    margin: 1.5rem 0;
    color: var(--color-accent);
}

.steps {
    padding-left: 1.5rem;
}

.steps li {
    margin-bottom: 1rem;
    font-weight: 500;
    position: relative;
    padding-left: 0.5rem;
}

.steps li::marker {
    color: var(--color-accent);
    font-weight: bold;
}

.sub-option {
    font-size: 0.9em;
    color: #4a5d50;
    display: block;
    margin-top: 0.3rem;
}

.note-text {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    text-align: center;
}

.small-note {
    font-size: 0.9rem;
    color: #4a5d50;
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* Highlight BG (Alternative Section Background) */
.highlight-bg {
    background-color: #fbfdfb;
    /* Subtle change from main bg */
}

/* Animation utilities reused from V5 base (transitions) but adding specific classes if needed */
.fade-in-up {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SNS Links */
.sns-links {
    display: flex;
    justify-content: flex-start;
    gap: 3rem;
    /* Increased from 2rem for better mobile tap spacing */
    margin-bottom: 2rem;
    font-size: 1.8rem;
    flex-wrap: wrap;
}

.center-text .sns-links {
    justify-content: center;
}

.sns-links a {
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: none;
    padding: 0.5rem;
    /* Add padding to increase touch target area without changing visual size */
}

.sns-links a:hover {
    color: var(--color-accent);
    transform: scale(1.1);
    background-color: transparent;
    border-bottom: none;
    padding: 0;
}