        /* ============================================================
           スクールの想いページ 専用スタイル
        ============================================================ */

        /* ─── ヒーローセクション ─── */
        .philosophy-hero {
            position: relative;
            height: 560px;
            min-height: 560px;
            display: flex;
            align-items: stretch;
            overflow: hidden;
        }

        .philosophy-hero-bg {
            position: absolute;
            inset: 0;
            background-image: url('../images/philosophy_1-1.jpg');
            background-size: cover;
            background-position: center 35%;
        }

        /* 左側のグリーングラデーションオーバーレイ */
        .philosophy-hero-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(
                105deg,
                rgba(44, 95, 44, 0.88) 0%,
                rgba(44, 95, 44, 0.82) 22.5%,
                rgba(44, 95, 44, 0.40) 35%,
                transparent 50%
            );
        }

        .philosophy-hero .container {
            position: relative;
            z-index: 2;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            padding-top: 0;
            padding-bottom: 0;
        }

        .philosophy-hero-text {
            color: #fff;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            max-width: 700px;
        }

        .philosophy-hero-text h2 {
            font-family: var(--font-heading, 'Montserrat', 'Noto Sans JP', sans-serif);
            font-size: 3.5rem;
            font-weight: 800;
            line-height: 1.2;
            margin-top: 80px;
            margin-bottom: 1.5rem;
            text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .philosophy-hero-text p {
            font-size: 1.3rem;
            line-height: 1.8;
            color: rgba(255,255,255,0.95);
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            margin-bottom: 0;
        }

        /* ─── 「私たちが大切にしていること」セクション ─── */
        .philosophy-values {
            padding: 80px 0 70px;
            background: #fff;
        }

        .philosophy-values .section-center {
            text-align: center;
            margin-bottom: 3.5rem;
        }

        .philosophy-values .section-center h2 {
            font-family: 'Noto Sans JP', sans-serif;
            font-size: clamp(1.5rem, 3vw, 1.9rem);
            font-weight: 700;
            color: #1a1a1a;
            letter-spacing: 0.04em;
            margin-bottom: 0.9rem;
        }

        .philosophy-values .section-center p {
            font-size: 0.95rem;
            color: #555;
            line-height: 1.9;
        }

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

        .value-card {
            background: #fff;
            border: 1px solid #e8ede8;
            border-radius: 16px;
            padding: 2.5rem 2rem 2rem;
            text-align: center;
            box-shadow: 0 2px 12px rgba(44, 95, 45, 0.07);
            transition: all 0.3s ease;
        }

        .value-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 8px 28px rgba(44, 95, 45, 0.14);
        }

        .value-icon {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: rgba(44, 95, 45, 0.10);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.4rem;
        }

        .value-icon i {
            font-size: 1.6rem;
            color: #2C5F2D;
        }

        .value-card h3 {
            font-size: 1.1rem;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 0.8rem;
            letter-spacing: 0.03em;
        }

        .value-card p {
            font-size: 0.875rem;
            color: #666;
            line-height: 1.85;
        }

        /* ─── ギャラリーセクション ─── */
        .philosophy-gallery {
            padding: 70px 0 80px;
            background: #f8faf8;
        }

        .philosophy-gallery .section-center {
            text-align: center;
            margin-bottom: 2.8rem;
        }

        .philosophy-gallery .section-center h2 {
            font-family: 'Noto Sans JP', sans-serif;
            font-size: clamp(1.5rem, 3vw, 1.9rem);
            font-weight: 700;
            color: #1a1a1a;
            letter-spacing: 0.04em;
            margin-bottom: 0.8rem;
        }

        .philosophy-gallery .section-center p {
            font-size: 0.95rem;
            color: #555;
            line-height: 1.9;
        }

        /* 交互グリッドギャラリー：奇数行2枚 / 偶数行3枚（4:3 横長写真） */
        /* 6列グリッドにし、2枚行は span 3、3枚行は span 2 で並べる */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 16px;
        }

        .gallery-item {
            overflow: hidden;
            border-radius: 12px;
            position: relative;
            aspect-ratio: 4 / 3;
            background: #e8eee8;
            /* デフォルトは「3枚行」のサイズ */
            grid-column: span 2;
        }

        /* 2枚+3枚=5枚のパターンを繰り返し、奇数行（1枚目・2枚目、6枚目・7枚目…）を span 3 に */
        .gallery-item:nth-child(5n + 1),
        .gallery-item:nth-child(5n + 2) {
            grid-column: span 3;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
        }

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

        /* JSで非表示にする隠しアイテム */
        .gallery-item.is-hidden {
            display: none;
        }

        /* 「もっと見る」ボタン */
        .gallery-more-wrap {
            display: flex;
            justify-content: center;
            margin-top: 2.4rem;
        }

        .gallery-more-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            background: #fff;
            color: #2C5F2D;
            font-size: 0.95rem;
            font-weight: 700;
            padding: 0.85rem 2.2rem;
            border: 2px solid #2C5F2D;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            letter-spacing: 0.04em;
            font-family: inherit;
        }

        .gallery-more-btn:hover {
            background: #2C5F2D;
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(44, 95, 45, 0.25);
        }

        .gallery-more-btn i {
            transition: transform 0.3s ease;
        }

        .gallery-more-btn:hover i {
            transform: translateY(2px);
        }

        /* ─── タイムラインセクション ─── */
        .philosophy-timeline {
            padding: 80px 0 90px;
            background: #fff;
        }

        .philosophy-timeline .section-center {
            text-align: center;
            margin-bottom: 3.5rem;
        }

        .philosophy-timeline .section-center h2 {
            font-family: 'Noto Sans JP', sans-serif;
            font-size: clamp(1.4rem, 3vw, 1.9rem);
            font-weight: 700;
            color: #1a1a1a;
            letter-spacing: 0.04em;
        }

        .timeline-wrap {
            max-width: 700px;
            margin: 0 auto;
            background: #fff;
            border-radius: 20px;
            box-shadow: 0 4px 24px rgba(0,0,0,0.09);
            padding: 3rem 3rem;
        }

        .timeline-list {
            position: relative;
            list-style: none;
            padding: 0;
            margin: 0;
        }

        /* 縦ライン（各アイテムごとに描画し、最初/最後のはみ出しを防ぐ） */
        .philosophy-timeline .timeline-item::before {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            left: 89px;
            width: 2px;
            background: #d0e4d0;
        }

        /* 最初のアイテム: ドット中央より上はライン非表示 */
        .philosophy-timeline .timeline-item:first-child::before {
            top: 12px; /* padding-top:4px + ドット半径8px */
        }

        /* 最後のアイテム: ドット中央より下はライン非表示 */
        .philosophy-timeline .timeline-item:last-child::before {
            bottom: auto;
            height: 12px; /* 上端から最後のドット中央まで */
        }

        /* 各行 */
        .philosophy-timeline .timeline-item {
            position: relative;
            display: flex;
            align-items: flex-start;
            gap: 0;
            padding-bottom: 2.5rem;
            min-height: 0;
            /* pages.css の .timeline-item:nth-child(even){direction:rtl} を打ち消す */
            direction: ltr;
            grid-template-columns: none;
            margin-bottom: 0;
        }

        /* 偶数行も含めて常に左揃え（pages.css のグローバル指定を上書き） */
        .philosophy-timeline .timeline-item:nth-child(even),
        .philosophy-timeline .timeline-item:nth-child(even) .timeline-body {
            direction: ltr;
            text-align: left;
        }

        .philosophy-timeline .timeline-item:last-child {
            padding-bottom: 0;
        }

        /* 年号 */
        .timeline-year {
            flex: 0 0 72px;
            font-size: 0.95rem;
            font-weight: 700;
            color: #2C5F2D;
            white-space: nowrap;
            padding-top: 2px;
            text-align: right;
            line-height: 1.5;
        }

        /* ドット */
        .timeline-dot {
            flex: 0 0 36px;
            display: flex;
            justify-content: center;
            padding-top: 4px;
        }

        .timeline-dot::before {
            content: '';
            display: block;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #2C5F2D;
            border: 3px solid #fff;
            box-shadow: 0 0 0 2px #2C5F2D;
            position: relative;
            z-index: 1;
        }

        /* 本文 */
        .timeline-body {
            flex: 1;
            padding-left: 0.8rem;
        }

        .timeline-body h4 {
            font-size: 1rem;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 0.35rem;
            letter-spacing: 0.02em;
            line-height: 1.5;
            padding-top: 0;
        }

        .timeline-body p {
            font-size: 0.875rem;
            color: #666;
            line-height: 1.8;
        }

        /* ─── CTAバナーセクション ─── */
        .philosophy-cta {
            padding: 72px 0;
            background: linear-gradient(135deg, #1e4820 0%, #2C5F2D 50%, #3d7a3f 100%);
            text-align: center;
        }

        .philosophy-cta h2 {
            font-family: 'Noto Sans JP', sans-serif;
            font-size: clamp(1.3rem, 3vw, 1.8rem);
            font-weight: 700;
            color: #fff;
            letter-spacing: 0.04em;
            margin-bottom: 1rem;
        }

        .philosophy-cta p {
            font-size: 0.95rem;
            color: rgba(255,255,255,0.85);
            line-height: 1.9;
            margin-bottom: 2.2rem;
        }


        /* ─── レスポンシブ ─── */
        @media (max-width: 900px) {
            .philosophy-hero .container {
                grid-template-columns: 1fr;
                padding-top: 110px;
                padding-bottom: 50px;
            }

            .philosophy-hero-image {
                display: none;
            }

            .philosophy-hero {
                height: 95vw;
                min-height: unset;
                margin-top: 80px;
            }

            .philosophy-hero-bg {
                background-size: 100% auto;
                background-position: center -40px;
            }

            .philosophy-hero-overlay {
                background: linear-gradient(
                    to bottom,
                    transparent 25%,
                    rgba(44, 95, 44, 0.15) 35%,
                    rgba(44, 95, 44, 0.4) 42%,
                    rgba(44, 95, 44, 0.7) 49%,
                    rgba(44, 95, 44, 0.9) 54%,
                    rgba(44, 95, 44, 1) 60%
                );
            }

            .philosophy-hero .container {
                align-items: flex-end;
                padding-bottom: 15px;
            }

            .philosophy-hero-text {
                margin-top: auto;
                margin-bottom: 0;
            }

            .philosophy-hero-text h2 {
                font-size: 1.8rem;
                margin-top: 0;
                margin-bottom: 0.5rem;
                text-shadow: 0 2px 6px rgba(0,0,0,0.5);
            }

            .philosophy-hero-text p {
                font-size: 0.85rem;
            }

            .values-grid {
                grid-template-columns: 1fr;
                max-width: 420px;
                margin: 0 auto;
            }

            /* タブレット：交互パターンを維持（6列ベース） */
            .gallery-grid {
                gap: 12px;
            }

            .timeline-wrap {
                padding: 2rem 2rem;
            }

            .philosophy-timeline .timeline-item::before {
                left: 89px;
            }

            .timeline-year {
                flex: 0 0 72px;
                text-align: right;
            }

            .timeline-dot {
                flex: 0 0 36px;
            }
        }

        @media (max-width: 600px) {

            /* スマホ：交互パターンを解除し全アイテムを1列に */
            .gallery-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            .gallery-item,
            .gallery-item:nth-child(5n + 1),
            .gallery-item:nth-child(5n + 2) {
                grid-column: span 1;
            }

            .gallery-more-btn {
                padding: 0.8rem 1.8rem;
                font-size: 0.9rem;
            }

            .timeline-wrap {
                padding: 1.5rem 1.2rem;
            }

            .timeline-year {
                flex: 0 0 48px;
                font-size: 0.78rem;
                text-align: right;
            }

            .timeline-dot {
                flex: 0 0 24px;
            }

            .timeline-dot::before {
                width: 12px;
                height: 12px;
            }

            .philosophy-timeline .timeline-item::before {
                left: 60px;
            }

            .philosophy-timeline .timeline-item {
                padding-bottom: 1.8rem;
            }

            .timeline-body {
                padding-left: 0.5rem;
            }

            .timeline-body h4 {
                font-size: 0.92rem;
            }

            .timeline-body p {
                font-size: 0.82rem;
            }
        }
