@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;
}

/* ▼▼▼ 追加：左上画像のサイズと位置設定 ▼▼▼ */
.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;
}

.facility-card .address {
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
}

.facility-card .address a {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dotted #2980b9;
    transition: color 0.3s;
}

.facility-card .address a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* 4. フッター */
.site-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 30px;
}

.about-page, .review-link {
    flex: 1;
    min-width: 300px;
}

.review-link {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
}

.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;
}

/* スマホ用調整 */
@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .footer-content {
        flex-direction: column;
    }
    /* ▼▼▼ 追加：スマホのときはロゴを少し小さくする ▼▼▼ */
    .site-logo {
        width: 60px; /* スマホ時のサイズ */
        top: 10px;
        left: 10px;
    }
}

/* カード内のヘッダー部分 */
.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;
}