/* ========================================
   プレスクール専用CSS
   ======================================== */

/* ページ固有のヒーロー画像 */
.page-preschool .hero-background img {
    content: url('../images/courses-preschool.jpg');
}

/* インラインスタイルの移行 */
.page-preschool .logo-main img {
    width: 160px;
    height: 120px;
    object-fit: contain;
}

/* ヒーローセクションの調整 */
.page-preschool .hero-title {
    color: #333;
}

.page-preschool .hero-text p {
    color: #333;
}

/* セクションタイトル装飾（common から移行予定の固有装飾） */
.page-preschool #about .section-title::before { background-image: url('../images/star-moon.svg'); transform: translateY(-50%) rotate(-15deg); }
.page-preschool #about .section-title::after  { background-image: url('../images/blocks.svg'); transform: translateY(-50%) rotate(15deg); width: 90px; height: 90px; }
.page-preschool #gallery .section-title::before { background-image: url('../images/blocks.svg'); transform: translateY(-50%) rotate(-15deg); }
.page-preschool #gallery .section-title::after  { background-image: url('../images/sun.svg'); transform: translateY(-50%) rotate(15deg); }

/* PC版：幼児部のヒーロータイトル調整 */
@media (min-width: 880px) {
    .page-preschool .hero-title {
        text-align: center;
    }
    
    .page-preschool .hero-title br:first-of-type {
        display: block;
        margin-bottom: 8px;
    }
}



/* Zephyrが目指すものセクション - style.cssの正解設定を適用 */
.page-preschool .zephyr-goals {
    margin-bottom: 40px;
}

.page-preschool .zephyr-goals h3 {
    font-size: 1.5rem;
    color: var(--main-color);
    text-align: center;
    margin-bottom: 20px;
}

.page-preschool .zephyr-goals ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-preschool .zephyr-goals li {
    background-color: var(--cream-color);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 特長セクション - style.cssから転記 */
.page-preschool .features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-preschool .feature-item {
    background-color: var(--cream-color);
    padding: 30px 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-preschool .feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.page-preschool .feature-item h3 {
    font-size: 1.6rem;
    color: var(--main-color);
    margin-bottom: 15px;
}

.page-preschool .feature-item img {
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: transparent;
    padding: 0;
    width: 200px;
    height: 200px;
    object-fit: cover;
    align-self: center;
}

.page-preschool .feature-item p {
    min-height: 120px;
    text-align: justify;
    color: var(--text-color-light);
    line-height: 1.6;
}

/* --- PCギャラリー直前余白調整: 特長カードと#gallery間を圧縮 --- */
@media (min-width: 880px) {
    /* 最後のカード下マージンを抑制 */
    .page-preschool #about .features { margin-bottom: 25px; }
    /* ギャラリー上のデフォルトセクション余白を打ち消してタイトに */
    .page-preschool #gallery { padding-top: 10px !important; }
    /* 必要に応じてさらに微調整しやすいフック */
    .page-preschool #gallery .section-title { margin-top: 0; }
}

/* ギャラリーセクション - 現在のレイアウトを維持 */
.page-preschool .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.page-preschool .gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.page-preschool .gallery-grid img:hover {
    transform: scale(1.05);
}


/* モバイル対応 */
@media (max-width: 879px) {
    /* Hero モバイル中央揃え（共通で align-items:center 済だが念のためテキスト側も明示） */
    .page-preschool .hero-title,
    .page-preschool .hero-text { text-align: center !important; }
    .page-preschool .hero-text p { text-align: center !important; }
    /* セクション余白の共通仕様に合わせる - style.cssの正解設定を適用 */
    .page-preschool section {
        padding: 60px 0;
        padding-top: 0px !important;
    }
    
    /* style.cssの正解設定を適用 */
    .page-preschool #about {
        padding-bottom: 38px !important; /* 1cm（約38px）に統一 */
    }
    

    
    /* ギャラリーセクションの下余白調整 - より強力な設定 */
    .page-preschool #gallery {
        padding-bottom: 60px !important; /* 50pxから60pxに増加 */
    }
    
    /* より強力な設定でギャラリーセクションの下余白を調整 */
    body.page-preschool section#gallery {
        padding-bottom: 60px !important;
    }
    
    
    /* Zephyrが目指すものセクション - モバイル版で縦並びに */
    .page-preschool .zephyr-goals ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .page-preschool .zephyr-goals li {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* 特長セクション - モバイル版で1列に */
    .page-preschool .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-preschool .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .page-preschool .gallery-grid img {
        height: 150px;
    }
    

    
    .page-preschool .feature-item {
        padding: 20px;
    }
    
    .page-preschool .feature-item img {
        height: 180px;
    }
    
    /* モバイルでの特長セクション画像調整 */
    .page-preschool .feature-item img {
        width: 100%;
        height: auto;
        max-width: 350px;
    }
    
}

@media (max-width: 480px) {
    .page-preschool .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .page-preschool .gallery-grid img {
        height: 200px;
    }
}

