/* ========================================
    施設紹介ページ専用スタイル
    ======================================== */

/* ページタイトルセクション */
.page-title-section {
    background: linear-gradient(135deg, rgba(197, 212, 218, 0.8), rgba(139, 218, 194, 0.8)), url('../koya.img/tree2.jpg!d');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: clamp(4rem, 8vw, 6rem) 0;
    text-align: center;
    color: #ffffff;
    margin-top: 180px; /* 固定ヘッダーの高さ分 */
}

.page-title-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.page-title {
    font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Rounded Mplus 1c', 'Rounded Mplus 1p', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Rounded Mplus 1c', 'Rounded Mplus 1p', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: #666666; /* より濃いグレーに変更 */
    opacity: 0.9;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8); /* 白い影を追加 */
}

/* 施設紹介セクション */
.facility-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 248, 220, 0.1));
}

/* 施設グリッド - 縦13列横2列のタイルデザイン */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(7, auto);
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 13個目のタイルを2列目に配置 */
.facility-tile:nth-child(13) {
    grid-column: 2;
    grid-row: 7;
}

/* 施設タイル */
.facility-tile {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(74, 103, 65, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.facility-tile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* 施設ヘッダー */
.facility-header {
    background: linear-gradient(135deg, #40E0D0, #20B2AA);
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: 15px 15px 0 0;
    text-align: center;
    color: #ffffff;
}



.facility-title {
    font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Rounded Mplus 1c', 'Rounded Mplus 1p', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* 施設コンテンツ */
.facility-content {
    padding: clamp(1.5rem, 2.5vw, 2rem);
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.facility-description {
    font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Rounded Mplus 1c', 'Rounded Mplus 1p', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

/* 施設画像 */
.facility-image {
    margin-top: 1rem;
    text-align: center;
}

.facility-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.facility-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}



/* お問い合わせセクション */
.contact-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(240, 248, 255, 0.1));
}

/* 会社概要セクション */
.company-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(248, 255, 248, 0.1));
}

/* 会社概要グリッド - 縦13列横2列のタイルデザイン */
.company-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(7, auto);
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 13個目のタイルを2列目に配置 */
.company-tile:nth-child(13) {
    grid-column: 2;
    grid-row: 7;
}

/* 会社概要タイル */
.company-tile {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(74, 103, 65, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.company-tile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* 会社概要ヘッダー */
.company-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: 15px 15px 0 0;
    text-align: center;
    color: #ffffff;
}

.company-title {
    font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Rounded Mplus 1c', 'Rounded Mplus 1p', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* 会社概要コンテンツ */
.company-content {
    padding: clamp(1.5rem, 2.5vw, 2rem);
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    text-align: center;
    justify-content: center;
    line-height: 1.2;
    margin: 0;
}

.company-description {
    font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Rounded Mplus 1c', 'Rounded Mplus 1p', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-description {
    font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Rounded Mplus 1c', 'Rounded Mplus 1p', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Rounded Mplus 1c', 'Rounded Mplus 1p', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(1rem, 2.5vw, 1.5rem) clamp(2rem, 4vw, 3rem);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-btn.primary {
    background: linear-gradient(135deg, #40E0D0, #20B2AA);
    color: #ffffff;
}

.contact-btn.primary:hover {
    background: linear-gradient(135deg, #48D1CC, #00CED1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.4);
}

.contact-btn.secondary {
    background: transparent;
    color: #20B2AA;
    border-color: #20B2AA;
}

.contact-btn.secondary:hover {
    background: rgba(32, 178, 170, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.2);
}

.contact-btn svg {
    width: 20px;
    height: 20px;
}

/* アクティブなナビゲーションリンク */
.nav-link.active {
    background-color: #f8f9fa;
    color: #007bff;
}

.nav-link.active .nav-text-ja,
.nav-link.active .nav-text-en {
    color: #007bff;
}

/* レスポンシブ対応 */
@media screen and (max-width: 900px) {
    .facility-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: clamp(1rem, 2vw, 1.5rem);
    }
    
    .facility-tile:nth-child(13) {
        grid-column: 1;
        grid-row: auto;
    }
    
    .company-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: clamp(0.8rem, 1.5vw, 1.2rem);
    }
    
    .company-tile:nth-child(13) {
        grid-column: 1;
        grid-row: auto;
    }
}

@media screen and (max-width: 768px) {
    .facility-content {
        padding: clamp(1rem, 2vw, 1.5rem);
    }
    
    .facility-header {
        padding: clamp(0.8rem, 1.5vw, 1.2rem);
    }
    
    .company-content {
        padding: clamp(0.8rem, 1.5vw, 1.2rem);
        line-height: 1.1;
        margin: 0;
    }
    
    .company-header {
        padding: clamp(0.8rem, 1.5vw, 1.2rem);
    }
    
    .company-description {
        font-size: clamp(1rem, 2.2vw, 1.1rem);
        margin-bottom: 0;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 480px) {
    .page-title-section {
        margin-top: 160px;
        padding: clamp(2rem, 6vw, 4rem) 0;
    }
    
    .facility-content {
        padding: clamp(0.8rem, 1.5vw, 1.2rem);
    }
    
    .facility-header {
        padding: clamp(0.6rem, 1.2vw, 1rem);
    }
    
    .facility-title {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }
    
    .facility-description {
        font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    }
    
    .company-content {
        padding: clamp(0.6rem, 1.2vw, 1rem);
        line-height: 1.0;
        margin: 0;
    }
    
    .company-header {
        padding: clamp(0.6rem, 1.2vw, 1rem);
    }
    
    .company-title {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }
    
    .company-description {
        font-size: clamp(1rem, 2.2vw, 1.1rem);
        margin-bottom: 0;
    }
    
    .contact-btn {
        padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1.5rem, 3vw, 2rem);
        font-size: clamp(0.9rem, 2vw, 1.1rem);
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
}

/* スマートフォン対応 */
@media screen and (max-width: 480px) {
    .contact-section {
        padding: clamp(2rem, 6vw, 3rem) 0;
    }
    
    .contact-content {
        padding: 0 1rem;
    }
    
    .contact-description {
        font-size: clamp(0.9rem, 2vw, 1rem);
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .contact-buttons {
        gap: 0.8rem;
    }
    
    .contact-btn {
        padding: clamp(0.7rem, 1.8vw, 1rem) clamp(1.2rem, 2.5vw, 1.8rem);
        font-size: clamp(0.8rem, 1.8vw, 1rem);
        min-width: 100%;
    }
}

/* 超小画面対応 */
@media screen and (max-width: 360px) {
    .contact-section {
        padding: clamp(1.5rem, 5vw, 2.5rem) 0;
    }
    
    .contact-content {
        padding: 0 0.5rem;
    }
    
    .contact-description {
        font-size: clamp(0.8rem, 1.8vw, 0.9rem);
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }
    
    .contact-btn {
        padding: clamp(0.6rem, 1.6vw, 0.9rem) clamp(1rem, 2.2vw, 1.6rem);
        font-size: clamp(0.7rem, 1.6vw, 0.9rem);
    }
}

/* 大画面対応 */
@media screen and (min-width: 1200px) {
    .contact-section {
        padding: clamp(5rem, 8vw, 7rem) 0;
    }
    
    .contact-content {
        max-width: 900px;
    }
    
    .contact-description {
        font-size: clamp(1.1rem, 2.2vw, 1.3rem);
        line-height: 1.8;
        margin-bottom: 2.5rem;
    }
    
    .contact-buttons {
        gap: 1.5rem;
    }
    
    .contact-btn {
        padding: clamp(1.2rem, 2.5vw, 1.5rem) clamp(2.5rem, 4vw, 3rem);
        font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    }
}

/* アニメーション効果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.facility-tile {
    animation: fadeInUp 0.6s ease-out;
}

.facility-tile:nth-child(2) {
    animation-delay: 0.1s;
}

.facility-tile:nth-child(3) {
    animation-delay: 0.2s;
}

.facility-tile:nth-child(4) {
    animation-delay: 0.3s;
}

.facility-tile:nth-child(5) {
    animation-delay: 0.4s;
}

.facility-tile:nth-child(6) {
    animation-delay: 0.5s;
}

.facility-tile:nth-child(7) {
    animation-delay: 0.6s;
}

.facility-tile:nth-child(8) {
    animation-delay: 0.7s;
}

.facility-tile:nth-child(9) {
    animation-delay: 0.8s;
}

.facility-tile:nth-child(10) {
    animation-delay: 0.9s;
}

.facility-tile:nth-child(11) {
    animation-delay: 1.0s;
}

.facility-tile:nth-child(12) {
    animation-delay: 1.1s;
}

.facility-tile:nth-child(13) {
    animation-delay: 1.2s;
}

/* 会社概要タイルのアニメーション効果 */
.company-tile {
    animation: fadeInUp 0.6s ease-out;
}

.company-tile:nth-child(2) {
    animation-delay: 0.1s;
}

.company-tile:nth-child(3) {
    animation-delay: 0.2s;
}

.company-tile:nth-child(4) {
    animation-delay: 0.3s;
}

.company-tile:nth-child(5) {
    animation-delay: 0.4s;
}

.company-tile:nth-child(6) {
    animation-delay: 0.5s;
}

.company-tile:nth-child(7) {
    animation-delay: 0.6s;
}

.company-tile:nth-child(8) {
    animation-delay: 0.7s;
}

.company-tile:nth-child(9) {
    animation-delay: 0.8s;
}

.company-tile:nth-child(10) {
    animation-delay: 0.9s;
}

.company-tile:nth-child(11) {
    animation-delay: 1.0s;
}

.company-tile:nth-child(12) {
    animation-delay: 1.1s;
}

.company-tile:nth-child(13) {
    animation-delay: 1.2s;
}

/* カテゴリ別の色分け */
.facility-tile[data-category="屋外施設"] .facility-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.facility-tile[data-category="保育室"] .facility-header {
    background: linear-gradient(135deg, #40E0D0, #20B2AA);
}

.facility-tile[data-category="給食施設"] .facility-header {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
}

.facility-tile[data-category="保健施設"] .facility-header {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
}

.facility-tile[data-category="事務施設"] .facility-header {
    background: linear-gradient(135deg, #747d88, #57606f);
}

.facility-tile[data-category="衛生施設"] .facility-header {
    background: linear-gradient(135deg, #2ed573, #00b894);
}

.facility-tile[data-category="遊具施設"] .facility-header {
    background: linear-gradient(135deg, #ff7675, #d63031);
}

.facility-tile[data-category="送迎施設"] .facility-header {
    background: linear-gradient(135deg, #3742fa, #3b82f6);
}



/* スクロール時の視差効果 */
.facility-tile {
    will-change: transform;
}

/* タイルの高さ統一 */
.facility-tile {
    min-height: 400px;
}

@media screen and (max-width: 768px) {
    .facility-tile {
        min-height: 350px;
    }
}

@media screen and (max-width: 480px) {
    .facility-tile {
        min-height: 300px;
    }
    
    .company-tile {
        min-height: 300px;
    }
}
