/* =========================================================================
   社会福祉法人 春生会 | Stylesheet
   ========================================================================= */

:root {
    --primary-green: #7cb342;
    --primary-green-dark: #558b2f;
    --primary-orange: #f57c00;
    --bg-light-green: #f4f9ef;
    --bg-light-gray: #f8f9fa;
    
    /* Facility Colors */
    --fac-1: #8bc34a; /* くどみ児友園 */
    --fac-2: #ff9800; /* 春生ケアセンター */
    --fac-3: #00bcd4; /* 国富ホーム */

    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 35px rgba(0,0,0,0.12);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Zen Maru Gothic', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.text-center { text-align: center; }
.bg-white { background-color: var(--white); }
.bg-light-green { background-color: var(--bg-light-green); }
.bg-light-gray { background-color: var(--bg-light-gray); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Ensure smooth scrolling with fixed header offset */
section[id], div[id] {
    scroll-margin-top: 75px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 45px;
    color: var(--primary-green-dark);
    text-align: center;
    position: relative;
}

.section-title .subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 2px;
    margin-top: 6px;
    text-transform: uppercase;
}

/* =========================================================================
   Fixed Header & Navigation
   ========================================================================= */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-link img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-menu a {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color);
    padding: 8px 0;
    position: relative;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--primary-green);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-green-dark);
}

.nav-reserve-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0284c7;
    color: var(--white) !important;
    padding: 7px 16px !important;
    border-radius: 50px;
    font-size: 0.88rem !important;
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.25);
    transition: var(--transition);
}

.nav-reserve-btn::after {
    display: none !important;
}

.nav-reserve-btn:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(2, 132, 199, 0.35);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-green-dark);
    cursor: pointer;
    padding: 5px;
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero-section {
    position: relative;
    height: 65vh;
    min-height: 460px;
    max-height: 700px;
    overflow: hidden;
    background-color: #e8f5e9;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    padding: 40px 45px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-left: 8px solid var(--primary-green);
    max-width: 580px;
    animation: slideRight 0.8s ease-out forwards;
}

@keyframes slideRight {
    from { opacity: 0; transform: translate(-25px, -50%); }
    to { opacity: 1; transform: translate(0, -50%); }
}

.hero-org-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    color: var(--primary-green-dark);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.hero-overlay h1 {
    color: var(--primary-green-dark);
    font-size: 2.3rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.hero-overlay p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.6;
}

.sp-only { display: none; }

/* =========================================================================
   Intro Section
   ========================================================================= */
.intro-section {
    padding: 70px 0;
}

.character-icon {
    width: 90px;
    height: auto;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
}

/* =========================================================================
   Facilities Setup (The 3 Pillars)
   ========================================================================= */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.facility-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    padding: 24px 20px;
    color: var(--white);
    text-align: center;
}

.bg-facility-1 { background-color: var(--fac-1); }
.bg-facility-2 { background-color: var(--fac-2); }
.bg-facility-3 { background-color: var(--fac-3); }

.card-header h3 {
    font-size: 1.55rem;
    margin-bottom: 8px;
}

.card-header .badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 24px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body .tel {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #d1d5db;
}

.service-list {
    list-style: none;
    margin-bottom: 22px;
    flex-grow: 1;
}

.service-list li {
    margin-bottom: 9px;
}

.service-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--text-color);
    background-color: var(--bg-light-gray);
    font-size: 0.92rem;
    border: 1px solid #f1f1f1;
}

.service-list a::after {
    content: "›";
    font-size: 1.2rem;
    color: #999;
    transition: var(--transition);
}

.service-list a:hover {
    background-color: var(--primary-green);
    color: var(--white);
    padding-left: 15px;
    border-color: var(--primary-green);
}

.service-list a:hover::after {
    color: var(--white);
    transform: translateX(3px);
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    text-align: center;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.btn-outline {
    border: 2px solid #888;
    color: #555;
    background-color: transparent;
}

.facility-card:hover .btn-outline {
    border-color: var(--primary-green);
    background-color: var(--primary-green);
    color: var(--white);
}

/* =========================================================================
   病後児保育 Web予約 バナー (カード下・資料集上)
   ========================================================================= */
.reservation-banner-wrapper {
    margin-top: 50px;
}

.reservation-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border: 2px solid #38bdf8;
    border-radius: 16px;
    padding: 26px 35px;
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.2);
    transition: var(--transition);
}

.reservation-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(56, 189, 248, 0.35);
    border-color: #0284c7;
    background: linear-gradient(135deg, #bae6fd 0%, #bfdbfe 100%);
}

.reservation-icon {
    width: 65px;
    height: 65px;
    background: #0284c7;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.reservation-text {
    flex-grow: 1;
}

.reservation-badge {
    display: inline-block;
    background: #0284c7;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.reservation-text h3 {
    font-size: 1.45rem;
    color: #0369a1;
    margin-bottom: 4px;
}

.reservation-text p {
    font-size: 0.95rem;
    color: #475569;
    margin: 0;
}

.reservation-arrow {
    display: flex;
    align-items: center;
    background: #0284c7;
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 22px;
    border-radius: 50px;
    white-space: nowrap;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    transition: var(--transition);
    flex-shrink: 0;
}

.reservation-banner:hover .reservation-arrow {
    background: #0369a1;
    transform: scale(1.05);
}

/* =========================================================================
   Information Section (資料集・情報開示のみ)
   ========================================================================= */
.info-single-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-light-green);
    padding: 35px 40px;
    border-radius: var(--border-radius);
    border: 1px solid #dcedc8;
    box-shadow: var(--shadow-sm);
}

.info-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 12px;
}

.info-header-row h3 {
    font-size: 1.4rem;
    color: var(--primary-green-dark);
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.corp-number-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    color: var(--primary-green-dark);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #c5e1a5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.corp-number-tag i {
    color: var(--primary-green);
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    list-style: none;
}

.doc-grid li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--white);
    border-radius: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.98rem;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.doc-grid li a i {
    color: var(--primary-green);
    font-size: 1.1rem;
}

.doc-grid li a:hover {
    color: var(--primary-green-dark);
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* =========================================================================
   Access Section
   ========================================================================= */
.access-container {
    display: flex;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.access-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    background-color: var(--primary-green-dark);
    color: var(--white);
}

.address-box h4 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    color: #e8f5e9;
}

.address-box p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.address-box .tel-number {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffd54f;
    display: inline-block;
    margin-top: 4px;
}

.access-map {
    flex: 1.3;
    min-height: 420px;
}

.staff-info-container img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    background-color: #374151;
    color: var(--white);
    padding: 35px 20px 25px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-corp-info {
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-corp-name {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-corp-separator {
    color: #6b7280;
}

.footer-corp-number {
    font-family: 'Noto Sans JP', sans-serif;
    color: #d1d5db;
}

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    color: #d1d5db;
    font-size: 0.95rem;
    padding: 5px 12px;
    display: inline-block;
}

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

.copyright {
    color: #9ca3af;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* =========================================================================
   Subpage / Privacy Policy Styles
   ========================================================================= */
.subpage-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--white);
    padding: 50px 20px;
    text-align: center;
}

.subpage-org {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.subpage-header h1 {
    font-size: 2rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.subpage-header p {
    font-size: 1.05rem;
    opacity: 0.9;
}

.breadcrumb {
    background: #f1f5f9;
    padding: 14px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.breadcrumb a {
    color: var(--primary-green-dark);
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.policy-content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.policy-container {
    background: #fff;
    padding: 45px 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
    line-height: 1.85;
    color: var(--text-color);
}

.policy-intro {
    font-size: 1.05rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.policy-section {
    margin-bottom: 30px;
}

.policy-section h3 {
    color: var(--primary-green-dark);
    font-size: 1.25rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy-section h3 i {
    color: var(--primary-green);
    font-size: 1rem;
}

.policy-section p {
    margin-bottom: 10px;
    padding-left: 10px;
}

.policy-list {
    list-style: none;
    padding-left: 10px;
    margin-bottom: 15px;
}

.policy-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
}

.policy-list li::before {
    content: "・";
    position: absolute;
    left: 10px;
    font-weight: bold;
    color: var(--primary-green);
}

.policy-note {
    font-size: 0.92rem;
    color: #555;
    background: #f9fafb;
    padding: 14px 18px;
    border-left: 4px solid var(--primary-green);
    margin: 12px 0 12px 10px;
    border-radius: 0 6px 6px 0;
}

.policy-contact {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 20px 24px;
    border-radius: 8px;
    margin-top: 15px;
    margin-left: 10px;
}

.policy-contact-title {
    font-weight: bold;
    color: var(--primary-green-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy-back-btn {
    text-align: center;
    margin-top: 40px;
}

.policy-back-btn a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-green);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.policy-back-btn a:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =========================================================================
   Animations & Responsive Design
   ========================================================================= */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .facility-grid { grid-template-columns: 1fr; }
    .hero-overlay { width: 90%; left: 5%; padding: 30px; }
    .doc-grid { grid-template-columns: 1fr; }
    .access-container { flex-direction: column; }
    .reservation-banner { flex-direction: column; text-align: center; }
    .reservation-arrow { width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        display: none;
        padding: 15px 20px 25px;
        border-top: 1px solid #f0f0f0;
    }
    .nav-menu.active { display: block; }
    .nav-menu ul {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        text-align: center;
    }
    .nav-menu a {
        display: block;
        padding: 12px 10px;
        border-radius: 6px;
    }
    .nav-menu a:hover {
        background: #f4f9ef;
    }
    .nav-reserve-btn {
        margin-top: 8px;
        justify-content: center;
    }
    .hero-section { height: auto; min-height: 420px; }
    .hero-overlay { position: static; transform: none; margin: 20px auto; width: 92%; }
    .hero-overlay h1 { font-size: 1.7rem; }
    .sp-only { display: block; }
    .section-title { font-size: 1.8rem; }
    .policy-container { padding: 30px 20px; }
    .access-info { padding: 30px 20px; }
}

/* =========================================================================
   Mission Statement Section
   ========================================================================= */
.mission-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #dcedc8;
    border-left: 6px solid var(--primary-green);
    margin-bottom: 35px;
}

.mission-card-header {
    margin-bottom: 22px;
}

.mission-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light-green);
    color: var(--primary-green-dark);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 8px 22px;
    border-radius: 30px;
    border: 1px solid #c5e1a5;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.mission-text {
    font-size: 1.02rem;
    line-height: 1.85;
    color: #4a5568;
    margin-bottom: 14px;
}

.mission-text:last-child {
    margin-bottom: 0;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.business-category-card {
    border-radius: var(--border-radius);
    padding: 28px 24px;
    transition: var(--transition);
}

.business-category-card.child-care {
    background: #fbfdf9;
    border: 2px solid #c8e6c9;
}

.business-category-card.child-care:hover {
    box-shadow: 0 10px 25px rgba(124, 179, 66, 0.15);
    transform: translateY(-3px);
}

.business-category-card.senior-care {
    background: #fffcf8;
    border: 2px solid #ffe0b2;
}

.business-category-card.senior-care:hover {
    box-shadow: 0 10px 25px rgba(245, 124, 0, 0.15);
    transform: translateY(-3px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.category-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.child-care .category-icon {
    background: #e8f5e9;
    color: var(--primary-green-dark);
}

.senior-care .category-icon {
    background: #fff3e0;
    color: var(--primary-orange);
}

.category-header h4 {
    font-size: 1.2rem;
    margin: 0;
    color: #1f2937;
}

.business-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.business-item-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 8px;
    font-size: 0.98rem;
    color: #374151;
    border-bottom: 1px dashed #e5e7eb;
    transition: transform 0.2s;
}

.business-item-list li:hover {
    transform: translateX(4px);
}

.business-item-list li:last-child {
    border-bottom: none;
}

.child-care .business-item-list li i {
    color: var(--primary-green);
    font-size: 1rem;
}

.senior-care .business-item-list li i {
    color: var(--primary-orange);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .business-grid {
        grid-template-columns: 1fr;
    }
    .mission-card {
        padding: 25px 20px;
    }
}
