:root {
    --primary-color: #f48fb1; /* Soft Pink based on PDF */
    --secondary-color: #fce4ec; /* Light Pink */
    --accent-green: #81c784;
    --accent-yellow: #fff59d;
    --text-color: #4a4a4a;
    --text-light: #7b7b7b;
    --bg-light: #fdfbf7;
    --white: #ffffff;
    --shadow: 0 8px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 40px rgba(244,143,177,0.2);
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* fixed .header の実高に合わせて余白（ヒーローがヘッダーに被らない） */
    --header-height: 5rem;
}

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

html {
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Zen Maru Gothic', 'M PLUS Rounded 1c', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.text-center { text-align: center; }
.section-padding { padding: 80px 0; }
.bg-light-yellow { background-color: var(--accent-yellow); }
.bg-light-green { background-color: #e8f5e9; }

/* Typography */
.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: var(--accent-green);
    border-radius: 2px;
}
.sub-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}
.logo-area {
    display: flex;
    flex-direction: column;
}
.logo-area .facility-type {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 2px;
}
.logo-area .city-badge {
    color: var(--accent-green);
}
.logo {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sheep-icon-small {
    height: 35px;
    width: auto;
}

.header-contact {
    display: flex;
    gap: 15px;
    align-items: center;
}
.btn-tel, .btn-contact {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.btn-tel {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-tel:hover {
    background-color: #ff8a65;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,138,101,0.4);
}
.btn-contact {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-contact:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Hero：cover は端が切れるため img + width100% / height:auto で常に全体表示 */
.hero {
    position: relative;
    width: 100%;
    line-height: 0;
    /* fixed ヘッダー直下で画像の上端が隠れないよう先頭に余白 */
    padding-top: var(--header-height);
    background-color: var(--bg-light);
}
.hero-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: bottom;
}

/* Intro */
.intro-lead {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 50px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-hover);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: var(--transition);
}
.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Schedule Table */
.schedule-table-wrap {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    text-align: center;
}
.schedule-table th {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border: 1px solid #ffccbc;
}
.schedule-table td {
    padding: 5px;
    border: 1px solid #eee;
    vertical-align: middle;
}
.time-col {
    font-weight: 700;
    background-color: #fff3e0;
    color: var(--primary-color);
    width: 60px;
    position: relative;
    padding: 0 !important;
}
.time-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    text-align: right;
    padding: 5px;
}
.time-bottom {
    position: absolute;
    bottom: 0;
    right: 5px;
}
.empty-cell {
    background-color: #fafafa;
}
.prog-cell {
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px !important;
}
.prog-heikou {
    background-color: #e8f5e9;
    color: #2e7d32;
}
.prog-yugata {
    background-color: #e0f7fa; /* Light cyan as per PDF (夕方メニュー) */
    color: #00838f;
}
.prog-oyako {
    background-color: #e3f2fd; /* Light blue as per PDF (親子療育) */
    color: #1565c0;
}
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 2px;
    margin: 0 auto;
}
.prog-note-bar {
    background-color: #00bcd4; /* blue bar */
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 5px !important;
    border-radius: 5px;
}

/* Programs */
.program-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    margin-bottom: 40px;
    transition: var(--transition);
}
.program-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}
.program-image {
    width: 40%;
    background-size: cover;
    background-position: center;
    min-height: 300px;
}
.program-content {
    width: 60%;
    padding: 40px;
}
.program-badge {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.badge-green { background-color: var(--accent-green); }
.badge-orange { background-color: #ffa726; }
.program-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}
.program-content .target {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.program-content .desc {
    margin-bottom: 20px;
}
.programs-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.program-box {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.program-box:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}
.program-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    color: var(--primary-color);
}
.program-box .target {
    font-weight: 700;
    margin-bottom: 15px;
    color: #d84315;
}
.program-box .desc {
    margin-bottom: 20px;
    flex-grow: 1;
}
.program-info {
    font-size: 0.9rem;
    background-color: #fafafa;
    padding: 15px;
    border-radius: 10px;
    margin-top: auto;
}
.info-label {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 5px;
}
.info-label.orange { background-color: #ffa726; }

/* Parent Program & Photos */
.facility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.parent-program {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.photo-card {
    background: var(--white);
    padding: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    transition: var(--transition);
}
.photo-card:hover {
    transform: rotate(0deg) scale(1.02);
}
.facility-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}
.photo-caption {
    text-align: center;
    font-weight: 700;
    margin-top: 15px;
    color: var(--text-light);
}

/* Guide */
.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.fee-section, .flow-section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.fee-list li {
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px dashed #ccc;
    padding: 10px 0;
}
.fee-extra {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}
.flow-list li {
    display: flex;
    margin-bottom: 25px;
    gap: 15px;
}
.step-num {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 800;
    padding: 10px;
    border-radius: 10px;
    height: fit-content;
    white-space: nowrap;
}
.link-tel {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Downloads */
.download-desc {
    margin-bottom: 30px;
}
.download-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}
.btn-download {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    font-weight: 700;
    text-align: left;
    border: 2px solid transparent;
}
.btn-download:hover {
    transform: translateY(-3px);
    border-color: var(--accent-green);
    box-shadow: 0 10px 25px rgba(129, 199, 132, 0.3);
}
.btn-download .icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

/* Access */
.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.access-info {
    padding: 30px;
    text-align: center;
}
.exterior-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    height: 250px;
    object-fit: cover;
}
.text-large {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 10px 0;
}
.map-wrap {
    border-radius: 15px;
    overflow: hidden;
    min-height: 400px;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 40px 0;
}
.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in;
}
.fade-in.visible {
    opacity: 1;
}
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 850px) {
    /* 「お問い合わせ」文言のみ非表示。アイコン用 .icon は残す */
    .header-contact .btn-contact span:not(.icon),
    .header-contact .btn-tel .tel-text {
        display: none;
    }
}
@media (max-width: 768px) {
    .program-card { flex-direction: column; }
    .program-image { width: 100%; min-height: 250px; }
    .program-content { width: 100%; padding: 25px; }
    .programs-row, .guide-grid, .facility-grid, .access-grid { grid-template-columns: 1fr; }
    .access-info { padding: 10px; }
    .map-wrap { min-height: 300px; }
}
