/* =========================================
    1. 基本設定（全デバイス共通）
   ========================================= */
body {
    margin: 0;
    font-family: sans-serif;
    background: #f5f5f5;
    color: #333;
}

.hd {
    background: #d35400;
    color: #fff;
    padding: 28px;
    text-align: center;
}

.hd-title {
    margin: 0;
    font-size: 1.6rem;
}

.hd-sub {
    margin: 8px 0 0;
    font-size: 0.95rem;
    opacity: .95;
}

.main {
    max-width: 1000px; /* デフォルト幅 */
    margin: 32px auto;
    padding: 16px;
}

/* =========================================
    2. 施設一覧（スマホ版：横2列）
   ========================================= */
.pref-title {
    font-size: 1.1rem;
    color: #092eff;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    margin-top: 32px;
    margin-bottom: 16px;
    width: 100%;
}

.facility-grid {
    display: grid;
    /* ★スマホは横2列 */
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.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;
}

.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;
}

/* =========================================
    3. PC版（768px以上：横4列）
   ========================================= */
@media (min-width: 768px) {
    .main {
        max-width: 1200px; /* PCは広く使う */
    }

    .facility-grid {
        /* ★PCは横4列 */
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .facility-btn:hover {
        background-color: #f0f7ff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .f-name {
        font-size: 1.05rem;
    }
}

/* =========================================
    4. 特殊状態・ボタン
   ========================================= */
.facility-btn.disabled {
    opacity: 0.6;
    background-color: #f0f0f0;
    cursor: not-allowed;
}

.facility-btn.disabled .f-tag-block {
    background-color: #9ca3af;
}

.ft {
    text-align: center;
    padding: 40px 18px;
    color: #666;
}

/* 登録用ボタンなどの共通パーツ */
.btnwrap {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-map, .btn-form {
    padding: 14px 28px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.btn-map { background: #d35400; }
.btn-form { background: #27ae60; }