/*
Theme Name: Shonan Tabunka Garden Custom Theme
Theme URI: 
Author: Antigravity AI
Description: A completely original flat design theme for Shonan Multicultural Garden (湘南多文化ガーデン). Based on a clean, green color palette with a fun and gentle atmosphere.
Version: 1.0.0
Text Domain: shonan-tabunka
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary-green: #079748; /* Vibrant Green */
    --secondary-green: #47C27B; /* Muted Vibrant Green */
    --dark-green: #133824; /* Deep Forest Green */
    --light-bg: #F0F8F3; /* Very Pale Green */
    --base-bg: #FAFCFB; /* Off-white with green tint */
    --text-color: #2D3A32;
    --sub-text: #66756B;
    --heading-color: #133824;
    --white: #ffffff;
    --nav-bg: #ffffff;
    --border-radius: 12px;
    --accent-mustard: #D4B96A;
    --accent-coral: #E07A5F;
}
body {
    font-family: "Noto Sans JP", sans-serif;
    color: var(--text-color);
    background-color: var(--base-bg);
    line-height: 1.9;
    font-size: 16px;
    letter-spacing: 0.05em;
    word-break: auto-phrase;
}
p {
    margin-bottom: 1.5rem;
}
p:last-child {
    margin-bottom: 0;
}
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
li {
    margin-bottom: 0.5rem;
}
ul:last-child, ol:last-child {
    margin-bottom: 0;
}
a {
    color: var(--dark-green);
    text-decoration: none;
    transition: all 0.2s ease;
}
a:hover {
    color: var(--secondary-green);
}
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    padding: 18px 40px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 40px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 12px rgba(7, 151, 72, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn:hover {
    background-color: #06823E;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(7, 151, 72, 0.3);
}
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-green);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.06em;
}
h1 { font-size: 2.4rem; }
h2 {
    font-size: 1.9rem;
    position: relative;
    padding-bottom: 1rem;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}
h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-mustard);
    border-radius: 4px;
}
.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Header Config */
.site-header {
    background-color: var(--nav-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Added to handle long nav */
    padding: 25px 20px;
    min-height: 80px; /* Changed from fixed 80px */
    gap: 20px;
}
.site-branding .site-title {
    margin: 0;
    padding: 0;
    line-height: 1;
}
.site-branding .site-title a {
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: 800;
}
.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center; /* Center when wrapped */
    flex-wrap: wrap; /* Wrap on smaller screens */
    gap: 25px; /* 広げて見やすく調整 */
    margin: 0;
    padding: 0;
}
.main-navigation a {
    color: var(--heading-color);
    font-weight: bold;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.4;
}
.main-navigation a:hover {
    color: var(--primary-green); /* Fixed accent color */
}
.nav-desc {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: normal;
    margin-top: 4px;
    white-space: nowrap; /* Prevent awkward line breaks in small nav items */
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--heading-color);
    position: relative;
    border-radius: 3px;
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--heading-color);
    border-radius: 3px;
    left: 0;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        padding: 20px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }
    .main-navigation.toggled ul { display: flex; }
}

/* Footer Config */
.site-footer {
    background-color: var(--dark-green);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-widget h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.25rem;
}
.footer-widget p, .footer-widget a {
    color: var(--light-bg);
    opacity: 0.9;
}
.footer-widget a:hover {
    color: var(--primary-green);
    opacity: 1;
}
.nav-widget ul {
    list-style: none;
    padding: 0;
}
.nav-widget li {
    margin-bottom: 10px;
}
.site-info {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Components */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Page Fallback Styles */
.page-content {
    /* Container for the page sections */
}
.section-block {
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
    border: 1px solid rgba(7, 151, 72, 0.1);
}
@media (max-width: 768px) {
    .section-block { padding: 30px 20px; }
}

/* Extracted Utility Classes */
.page-container { max-width: 960px; margin: 0 auto; }
.text-green { color: var(--primary-green); }
.text-dark-green { color: var(--dark-green); }
.text-gray { color: #555; }
.text-light-gray { color: #666; }
.text-underline { text-decoration: underline; }

.font-small { font-size: 0.95rem; }
.font-bold { font-weight: bold; }
.text-lg { font-size: 1.15rem; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.bg-light { background: var(--light-bg); }

.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 30px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }
.mt-60 { margin-top: 60px; }
.mb-5 { margin-bottom: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.mb-60 { margin-bottom: 60px; }

.p-15 { padding: 15px; }
.p-20 { padding: 20px; }
.p-25 { padding: 25px; }
.p-30 { padding: 30px; }
.p-40 { padding: 40px; }
.br-8 { border-radius: 8px; }
.br-12 { border-radius: 12px; }

.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; }
.gap-20 { gap: 20px; }
.gap-25 { gap: 25px; }
.gap-30 { gap: 30px; }
.gap-40 { gap: 40px; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.flex-1 { flex: 1; }
.min-w-150 { min-width: 150px; }
.min-w-200 { min-width: 200px; }
.min-w-280 { min-width: 280px; }
.min-w-300 { min-width: 300px; }

.divider-line { border: none; border-top: 1px solid #e2e8f0; margin: 20px 0; }

.about-member-img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; border: 4px solid var(--light-bg); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.about-member-text { flex: 1; min-width: 250px; }

.page-header { margin-top: 50px; margin-bottom: 40px; }

.table-overview { width: 100%; border-collapse: collapse; margin-top: 20px; }
.table-overview tr { border-bottom: 1px solid #e2e8f0; }
.table-overview th { padding: 20px 15px; text-align: left; width: 30%; }
.table-overview td { padding: 20px 15px; }

.history-list { list-style: none; padding: 0; }
.history-item { margin-bottom: 20px; display: flex; gap: 20px; }
.history-date { color: var(--dark-green); min-width: 80px; font-weight: bold; }

.italic-quote { font-style: italic; }
.border-b-green { border-bottom: 2px solid var(--primary-green); padding-bottom: 10px; }
.list-style-disc { list-style-type: disc; }
.list-style-square { list-style-type: square; }

.faq-list { display: flex; flex-direction: column; gap: 25px; margin-top: 25px; }
.faq-box { background: var(--light-bg); padding: 30px; border-radius: 12px; }
.faq-question { color: var(--primary-green); margin-bottom: 15px; font-size: 1.15rem; line-height: 1.5; }

.contact-button-container { margin: 40px 0; }
.btn-large { font-size: 1.2rem; padding: 18px 45px; box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4); display: inline-flex; align-items: center; justify-content: center; }
.btn-large svg { margin-right: 8px; }

.testimonial-quote { border-left: 4px solid var(--primary-green); padding-left: 20px; margin-left: 0; font-style: italic; background: var(--light-bg); padding: 25px; border-radius: 0 8px 8px 0; line-height: 1.9; }

/* Home & Additional Page Utilities */
.my-40 { margin-top: 40px; margin-bottom: 40px; }
.hero-container { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 60px 20px; }
.hero-text { flex: 1.6; min-width: 320px; text-align: left; }
.hero-title { font-size: 2.5rem; margin-bottom: 20px; color: var(--dark-green); border: none; margin-top: 0; }
.hero-title::after { display: none; }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 30px; }
.hero-img-box { flex: 1; min-width: 280px; text-align:right; }
.hero-img { width: 100%; max-width: 400px; display: inline-block; }

.bg-white { background-color: var(--white); }
.max-w-800 { max-width: 800px; margin: 0 auto; }

.news-list { list-style: none; padding: 0; }
.news-item { border-bottom: 1px solid #e2e8f0; padding: 15px 0; }
.news-article { display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap; text-align: left; }
.news-date { color: var(--secondary-green); font-weight: bold; width: 120px; }
.news-title { margin: 0; font-size: 1.1rem; flex: 1; }
.news-link { color: var(--heading-color); }
.news-link:hover { color: var(--accent-orange); }

.activities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.icon-large { font-size: 3rem; margin-bottom: 20px; }

.resources-list { display: flex; flex-direction: column; gap: 20px; }
.resource-item { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.resource-title { margin-bottom: 5px; color: var(--dark-green); }
.resource-meta { font-size: 0.9rem; color: #666; margin: 0; }
.btn-disabled { opacity: 0.5; cursor: not-allowed; }
.notice-warning { background: #fff3cd; color: #856404; padding: 15px; border-radius: 8px; font-size: 0.9rem; }

/* Event Calendar Utilities */
.calendar-nav { display: flex; justify-content: center; align-items: center; gap: 30px; margin-bottom: 30px; }
.calendar-month-label { font-size: 1.5rem; font-weight: bold; color: var(--dark-green); }

.calendar-wrapper { background: var(--white); border-radius: var(--border-radius); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03); border: 1px solid rgba(7, 151, 72, 0.1); padding: 20px; }
.calendar-header-row { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; margin-bottom: 10px; }
.cal-day-name { font-weight: bold; color: #666; }
.cal-day-sun { color: #f43f5e; }
.cal-day-sat { color: #3b82f6; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: minmax(100px, auto); gap: 1px; background: #e2e8f0; border: 1px solid #e2e8f0; }
.calendar-day-cell { background: var(--white); padding: 10px; position: relative; min-height: 100px; }
.calendar-day-empty { background: #f8fafc; }
.cal-date-num { display: block; margin-bottom: 8px; font-size: 0.9rem; color: #888; }
.cal-events { display: flex; flex-direction: column; gap: 4px; }
.cal-event-link { font-size: 0.8rem; color: var(--dark-green); background: var(--light-bg); padding: 4px 8px; border-radius: 4px; text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: bold; }
.cal-event-link:hover { background: var(--primary-green); color: var(--white); }

.event-list-responsive { display: none; margin-top: 40px; }

/* Event List Items */
.event-item-card { background: var(--white); padding: 20px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03); border: 1px solid rgba(7, 151, 72, 0.1); display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; text-align: left; }
.event-date-box { text-align: center; background: var(--light-bg); padding: 10px 15px; border-radius: 8px; min-width: 80px; }
.event-day { display: block; font-size: 1.5rem; font-weight: bold; color: var(--primary-green); }
.event-month { display: block; font-size: 0.8rem; text-transform: uppercase; color: #888; }
.event-details { flex-grow: 1; }
.event-item-title { margin: 0 0 5px 0; font-size: 1.2rem; }
.event-item-title a { color: var(--heading-color); }
.event-item-title a:hover { color: var(--accent-orange); }
.event-meta { margin: 0; color: #888; font-size: 0.95rem; }

.btn-outline { background: transparent; border: 2px solid var(--primary-green); color: var(--primary-green); padding: 10px 20px; border-radius: 50px; font-weight: bold; cursor: pointer; display: inline-block; text-decoration: none; transition: all 0.3s; }
.btn-outline:hover { background: var(--primary-green); color: var(--white); }

@media (max-width: 768px) {
    .calendar-wrapper { display: none; }
    .event-list-responsive { display: block; }
    .event-item-card { flex-direction: column; align-items: stretch; gap: 15px; }
    .event-date-box { display: flex; align-items: baseline; gap: 10px; padding: 5px 15px; }
}
