:root {
    --primary-color: #87CEEB;
    --primary-light: #B0E0E6;
    --secondary-color: #FDF5E6;
    --accent-color: #FFDAB9;
    --text-color: #5D4037;
    --text-muted: #8D6E63;
    --white: #FFFFFF;
    --black: #000000;
    --bg-gradient: linear-gradient(135deg, #FDF5E6 0%, #FFFFFF 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background: var(--bg-gradient);
    overflow-x: hidden;
}

.admin-bar #header {
    top: 32px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.3;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title.text-left {
    text-align: left !important;
}

.section-title.text-left::after {
    left: 0 !important;
    transform: none !important;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

section {
    padding: 100px 0;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
}

.site-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--white);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: url('assets/hero.png') center/cover no-repeat;
    position: relative;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0.1));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.5);
    background: var(--primary-light);
}

/* News Section */
.front-news {
    background: var(--white);
    padding: 80px 0;
}

.front-news-header {
    position: relative;
}

.front-news-link {
    position: absolute;
    right: 0;
    top: 0.35rem;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.front-news-link:hover {
    text-decoration: underline;
}

.front-news-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(93, 64, 55, 0.14);
}

.front-news-item {
    border-bottom: 1px solid rgba(93, 64, 55, 0.14);
}

.front-news-item a {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.1rem 0;
    color: var(--text-color);
    text-decoration: none;
}

.front-news-item a:hover span {
    color: var(--primary-color);
}

.front-news-item time {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.front-news-item span {
    font-weight: 700;
    transition: var(--transition);
}

.front-news-empty {
    text-align: center;
    color: var(--text-muted);
}

/* Concept Section */
.concept {
    background: var(--white);
}

.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.concept-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.concept-img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.concept-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--secondary-color);
}

.concept-slider .concept-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
    box-shadow: none;
}

.concept-slide {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.concept-slide.active {
    opacity: 1;
}

.concept-button {
    margin-top: 2rem;
}

/* Activities Section */
.activities {
    background: var(--secondary-color);
}

.activity-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.card-image {
    width: 100%;
    height: 160px;
    margin: 0;
    border-radius: 0; /* Handled by overflow:hidden on .card */
    border: none;
    box-shadow: none;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0;
}

.card-content {
    padding: 1.35rem;
}

.card h3 {
    margin-bottom: 0.6rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.card h3 a {
    color: inherit;
    text-decoration: none;
}

.card h3 a:hover {
    text-decoration: underline;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.activities-button {
    margin-top: 2.5rem;
}

/* Video Section */
.video-section {
    margin-top: 4rem;
    max-width: 800px;
    margin-inline: auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
    background: var(--black);
}

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

.video-credit {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.video-credit a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.video-credit a:hover {
    text-decoration: underline;
}

/* 活動拠点 Section */
.base {
    background: var(--white);
}

.base-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.map-container {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

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

/* Gallery Section */
.gallery {
    padding-bottom: 150px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow);
    border: 5px solid var(--white);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Map Section */
.map-section {
    background: #e0f2fe;
    text-align: center;
}

.map-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.map-illustration {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.map-text {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 2;
    margin-bottom: 2rem;
}

/* FAQ Section */
.faq {
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--secondary-color);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 2rem;
    overflow: hidden;
    transition: all 0.4s ease;
    background: var(--white);
    line-height: 1.8;
}

.faq-answer p {
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0.75rem 2rem 1rem;
}

/* Footer */
footer {
    background: var(--text-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo .site-name {
    color: var(--white);
    margin-bottom: 1rem;
    display: block;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .container { padding: 0 1.5rem; }
    .hero-title { font-size: 2.75rem; }
    .concept-grid, .base-content { grid-template-columns: 1fr; }
    .activity-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-nav {
        position: relative;
        padding-inline: 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 1.5rem;
        right: 1.5rem;
        display: grid;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .nav-links.active {
        max-height: 520px;
        padding: 0.75rem;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.85rem 1rem;
        border-radius: 10px;
        white-space: normal;
    }

    .nav-links a:hover {
        background: var(--secondary-color);
    }

    .nav-links a.btn {
        margin-top: 0.35rem;
        text-align: center;
        color: var(--white);
        border-radius: 50px;
    }

    .nav-links a.btn:hover {
        background: var(--primary-light);
    }

    .front-news {
        padding: 60px 0;
    }

    .front-news-link {
        position: static;
        display: block;
        margin: -1.5rem 0 2rem;
        text-align: center;
    }

    .front-news-item a {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 1rem 0;
    }

    .section-title { font-size: 2rem; }
    .activity-cards { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
    .admin-bar #header {
        top: 46px;
    }
}

.iruka-front-page .faq {
    background: var(--white);
}

.iruka-front-page .faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.iruka-front-page .faq-item {
    display: block;
    background: var(--secondary-color);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.iruka-front-page .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 2rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-color);
    background: var(--secondary-color);
}

.iruka-front-page .faq-question::after {
    content: '+';
    display: block;
    flex: 0 0 auto;
    margin-left: 1rem;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--primary-color);
    transition: var(--transition);
}

.iruka-front-page .faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.iruka-front-page .faq-answer {
    display: block;
    max-height: 0;
    padding: 0 2rem;
    overflow: hidden;
    background: var(--white);
    line-height: 1.8;
    transition: all 0.4s ease;
}

.iruka-front-page .faq-answer p {
    margin: 0;
}

.iruka-front-page .faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0.75rem 2rem 1rem;
}

.faq .faq-item,
.iruka-front-page .faq .faq-item {
    margin-bottom: 0.45rem !important;
}

.faq .faq-question,
.iruka-front-page .faq .faq-question {
    min-height: 0 !important;
    padding: 1.5rem 2rem 0.35rem !important;
    line-height: 1.5 !important;
}

.faq .faq-answer,
.iruka-front-page .faq .faq-answer {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.faq .faq-item.active .faq-answer,
.iruka-front-page .faq .faq-item.active .faq-answer {
    padding-top: 0.45rem !important;
    padding-bottom: 0.8rem !important;
}
