@charset "UTF-8";

/* 基本設定 */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
    line-height: 1.6;
}

/* 1. ヒーローイメージ */
.hero-section {
    position: relative;
    background: linear-gradient(rgb(237, 212, 53), rgb(237, 212, 53)), url('https://placehold.co/1200x400/2980b9/ffffff?text=Study+Space');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #555555;
    padding: 0 20px;
}

/* ロゴの設定（PC表示） */
.site-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100px;
    height: auto;
    z-index: 10;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* 説明文 */
.intro-text {
    max-width: 800px;
    margin: 30px auto;
    text-align: center;
    padding: 0 20px;
}

/* 2. 区別リンク（ボタン） */
.ward-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.ward-nav button {
    background-color: #fff;
    border: 2px solid #2980b9;
    color: #2980b9;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.ward-nav button:hover {
    background-color: #2980b9;
    color: #fff;
}

.ward-nav .all-btn {
    background-color: #2980b9;
    color: #fff;
}

/* 3. 結果表示エリア */
.results-container {
    max-width: 1000px;
    margin: 20px auto 50px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.placeholder-msg {
    grid-column: 1 / -1;
    text-align: center;
    color: #777;
    padding: 40px;
}

/* 施設カードのデザイン */
.facility-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 5px solid #27ae60;
}

.ward-badge {
    background-color: #eee;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #555;
}

.facility-card h3 {
    margin: 10px 0;
    font-size: 1.25rem;
    color: #2c3e50;
}

/* 4. フッター */
.site-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 20px;
}

.footer-content {
    display: flex;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto 30px;
}

/* ご意見ボックスのデザイン */
.review-link {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.btn-review {
    display: inline-block;
    background-color: #e67e22;
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-review:hover {
    background-color: #d35400;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
}

/* カード内のデザイン詳細 */
.card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.card-header h3 {
    margin: 10px 0 0 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

.info-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 0.95rem;
    align-items: flex-start;
}

.info-row .label {
    background-color: #e8f4f8;
    color: #2980b9;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-right: 10px;
    min-width: 70px;
    text-align: center;
    flex-shrink: 0;
}

.info-row .value {
    color: #444;
    line-height: 1.5;
}

.address-row .value a {
    color: #2980b9;
    text-decoration: none;
    border-bottom: 1px dotted #2980b9;
    font-weight: bold;
}

.address-row .value a:hover {
    color: #e74c3c;
    border-bottom: 1px solid #e74c3c;
}

.facility-link {
    color: #2980b9;
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
}

.facility-link:hover {
    color: #e74c3c;
    border-bottom: 1px solid #e74c3c;
}

.external-icon {
    font-size: 0.8em;
    margin-left: 5px;
    vertical-align: middle;
}

/* スマホ用調整 (画面幅600px以下) */
@media (max-width: 600px) {
    .hero-section {
        height: auto;
        padding: 40px 20px;
        flex-direction: column;
    }

    .site-logo {
        position: static;
        width: 80px; 
        margin-bottom: 15px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
    }

    /* ▼▼▼ 今回の修正箇所：ご意見ボックスのはみ出し防止 ▼▼▼ */
    .review-link {
        width: auto;             /* 幅を自動調整にする */
        margin-left: 10px;       /* 左右に少し隙間を作る */
        margin-right: 10px;
        padding: 20px;           /* 余白を少し小さくする */
        box-sizing: border-box;  /* 余白を含めて幅を計算させる */
    }
}