/*
Skin Name: いるかのこそだて (Irukanokosodate)
Skin URI: https://irukanokosodate.org/
Description: 岐阜県大垣市の子育て支援団体「いるかのこそだて」風の温かいデザインスキンです。
Author: Antigravity
Author URI: 
Version: 1.1.0
Priority: 10
*/

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

:root {
    --primary-color: #87CEEB;
    --primary-light: #B0E0E6;
    --secondary-color: #FDF5E6;
    --accent-color: #FFDAB9;
    --text-color: #5D4037;
    --text-muted: #8D6E63;
    --white: #FFFFFF;
    --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);
}

/* Base Override for Cocoon */
body {
    font-family: 'Zen Maru Gothic', sans-serif !important;
    color: var(--text-color);
    background: var(--bg-gradient) !important;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Zen Maru Gothic', sans-serif !important;
    font-weight: 700;
}

/* Standard H2 Override (for posts/pages) */
.article h2, #main h2 {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    padding: 1rem 1.5rem !important;
    border-radius: 10px;
    margin: 2rem 0 1.5rem !important;
    border: none !important;
}

/* Layout (LP Content Area) */
.lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

/* Header & Nav (For front-page.php specific header) */
.lp-layout header#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);
}

.lp-layout .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;
}

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

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

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

.lp-layout .nav-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 1.5rem;
    list-style: none !important;
    margin-left: auto;
    padding: 0;
}

.lp-layout .nav-links li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lp-layout .nav-links li::before {
    content: none !important;
}

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

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

/* Nav Toggle (PC: hidden) */
.lp-layout .nav-toggle {
    display: none;
}

/* LP Sections Styles */
.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;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: url('images/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;
    color: #fff !important;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--white) !important;
    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);
}

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

.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);
}

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

.activity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.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: 200px;
    margin: 0;
}

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

.card-content {
    padding: 2rem;
}

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

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

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

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
    background: #000;
}

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

/* Support Map Section */
.map-section {
    background: #e0f2fe;
    text-align: center;
    padding: 100px 0;
}

.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;
}

/* FAQ Section */
.lp-faq {
    background: var(--white);
    padding: 100px 0;
}

.lp-faq-container {
    max-width: 800px !important;
    margin: 0 auto;
    display: block !important; /* Ensure vertical stacking */
}

.lp-faq-item {
    background: var(--secondary-color);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
    display: block !important; /* Ensure vertical stacking */
    width: 100% !important;
}

.lp-faq-question {
    padding: 1.5rem 2rem;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-color);
    width: 100%;
}

.lp-faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
    margin-left: 1rem;
    flex-shrink: 0;
}

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

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

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

/* Gallery Section */
.gallery {
    padding: 100px 0 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 img {
    transform: scale(1.1);
}

/* Base Section */
.base {
    background: var(--white);
    padding: 100px 0;
}

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

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

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

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

/* Content Area Refinement (for Standard Pages) */
#main {
    background-color: #fff;
    padding: 2rem !important; /* Restore standard padding */
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Footer Override for LP */
.lp-layout footer#contact {
    background: var(--text-color) !important;
    color: var(--white) !important;
    padding: 4rem 0 2rem;
}

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

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

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

.lp-layout .footer-links ul {
    list-style: none !important;
    padding: 0;
}

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

.lp-layout .footer-links a:hover {
    color: var(--white) !important;
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 2.75rem; }
    .concept-grid, .base-content, .lp-layout .footer-content { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .lp-layout .footer-content {
        gap: 2.5rem !important;
        text-align: center;
    }

    /* Nav Toggle (Mobile) */
    .lp-layout .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
        position: relative;
    }

    .lp-layout .nav-toggle span {
        display: block;
        width: 30px;
        height: 3px;
        background: var(--primary-color);
        margin: 6px 0;
        transition: var(--transition);
        border-radius: 3px;
    }

    /* Toggle Active State */
    .lp-layout .nav-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .lp-layout .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .lp-layout .nav-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Mobile Nav Overlay */
    .lp-layout .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(253, 245, 230, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2rem !important;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        margin: 0 !important;
        padding: 0 !important;
    }

    .lp-layout .nav-links.active {
        right: 0;
    }

    .lp-layout .nav-links a {
        font-size: 1.4rem;
        color: var(--text-color);
    }

    /* Fix header height for mobile if needed */
    .lp-layout header#header {
        padding: 0.5rem 0;
    }
}

/* Archive/Category Page Customization */
#list.list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    padding: 2rem 0 !important;
}

#list.list .entry-card-wrap {
    background: var(--white) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow) !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    border: none !important;
    transition: var(--transition);
    height: 100%;
}

#list.list .entry-card-wrap:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Eyecatch (Thumbnail) */
#list.list .entry-card-thumb {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

#list.list .entry-card-thumb img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

/* Content Area */
#list.list .entry-card-content {
    padding: 2rem !important;
    margin-left: 0 !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Title in Archive Card */
#list.list .entry-card-content h2 {
    background: none !important;
    color: var(--primary-color) !important;
    padding: 0 !important;
    margin: 0 0 1rem 0 !important;
    font-size: 1.4rem !important;
    border-radius: 0 !important;
    font-weight: 700;
}

#list.list .entry-card-content h2 a {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

/* Snippet (Excerpt) */
#list.list .entry-card-snippet {
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
    line-height: 1.6;
}

/* Post Meta (Date/Category) */
#list.list .post-meta {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.8rem !important;
    opacity: 0.6;
    display: flex;
    justify-content: space-between;
}

/* Responsive Grid for mobile */
@media (max-width: 580px) {
    #list.list {
        grid-template-columns: 1fr !important;
    }
}
