/* --- 基本設定：横幅の制限を解除 --- */
body {
    margin: 0;
    font-family: sans-serif;
    background: #f5f5f5;
}

/* メインエリア */
.home-page .main {
    max-width: 100%;
    width: 96%; /* 左右に少しだけ余裕を持たせる */
    margin: auto;
    padding: 16px 0;
}

.logo_img {
    width: 100%;    /* 画像を親の横幅いっぱいに広げる */
    height: auto;
    display: block;
}

/* バナーセクション（地図・管理ボタン */
.map-sec, .list-sec {
    background: #fff;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 0 rgba(160, 64, 0, .15);
    margin-bottom: 12px;
    width: 100%;      /* 横幅いっぱい */
    overflow: hidden; /* 角丸からはみ出さないように */
}

.map-btn, .list-btn {
    display: block;
    width: 100%;
    text-decoration: none;
    transition: opacity 0.3s;
}

/* 画像の高さを制限 */
.map-btn img, .list-btn img {
    display: block;
    margin: 0 auto;
    width: 100%;      /* 横幅は親に合わせる */
    max-height: 130px; /* 高さ制限 */
    object-fit: contain; /* 画像が歪まないように収める */
}

/* 施設一覧：8列グリッド設定 */
.home-page .grid {
    display: grid;
    /* 全てのカードの横幅を完全に同じ(1fr)にする */
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

/* 施設ボタン（カード）のデザイン */
.facility-btn {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-left: 4px solid #2537ff; /* 左側にアクセントライン */
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    min-height: 100px;
    justify-content: space-between;
}
.facility-btn:hover {
        background-color: #f0f7ff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.f-name {
    font-weight: bold;
    font-size: 0.95rem;
    color: #007bff;
    margin-bottom: 6px;
}

.f-address, .f-tel {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 2px;
}

/* タグの装飾 */
.f-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.f-tag-block {
    background-color: #f1c40f;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* レスポンシブ */
@media (max-width: 1200px) {
    .home-page .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 800px) {
    .home-page .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 500px) {
    .home-page .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}