/**
 * Facility Detail Styles
 * Version: 1.05.01
 * Description: 施設詳細ページのレスポンシブデザイン。メイン画像をコンテナ内いっぱいに表示する設定を追加。
 */

.facility-detail-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px; /* 基本の左右余白 */
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 1. Hero Section (Main Image) - コンテナ内いっぱい */
.facility-hero-container {
    margin-left: -15px;  /* コンテナのpadding分を相殺 */
    margin-right: -15px; /* コンテナのpadding分を相殺 */
    margin-bottom: 30px;
    overflow: hidden;
    background: #f0f0f0;
}

.hero-image-wrapper {
    width: 100%;
    line-height: 0; /* 画像下の隙間排除 */
}

.hero-main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* PCでの最大高さ制限（必要に応じて調整） */
}

.hero-no-image {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #94a3b8;
}

/* Breadcrumb */
.breadcrumb-mini {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #666;
}
.breadcrumb-mini a {
    color: #0066cc;
    text-decoration: none;
}
.breadcrumb-mini a:hover {
    text-decoration: underline;
}

/* Header Section */
.entry-header {
    margin-bottom: 30px;
}
.category-badge {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: #555;
}
.facility-title {
    font-size: 2rem;
    margin: 0 0 15px;
    font-weight: bold;
    border-left: 5px solid #00a0e9;
    padding-left: 15px;
}

/* Action Buttons (btn-group) */
.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 25px 0;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}
.btn-ui {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 160px;
}
.btn-ui i {
    margin-right: 8px;
}
.btn-ui-green {
    background-color: #4caf50;
    color: #fff;
}
.btn-ui-green:hover {
    background-color: #388e3c;
}
.btn-ui-outline {
    border: 2px solid #ddd;
    color: #555;
    background: #fff;
}
.btn-ui-outline:hover {
    border-color: #bbb;
    background: #f9f9f9;
}

/* Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

/* Info Cards */
.info-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #00a0e9;
}

/* Map Section */
.address-info {
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}
.address-text {
    font-size: 1.1rem;
}
.map-frame {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* --- Facility Sidebar Styles --- */
.facility-sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-list dt {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.info-list dd {
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
    margin-left: 0;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
    border: 2px solid #2563eb;
    color: #2563eb;
}

.btn-full:hover {
    background: #2563eb;
    color: #fff;
}

.sns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    color: #fff;
    font-size: 1.25rem;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.sns-link.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.sns-link.x-twitter { background: #000; }
.sns-link.facebook { background: #1877F2; }
.sns-link.line { background: #06C755; }

/* Responsive */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-column {
        order: 2;
    }
    .facility-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    /* ヒーロー画像をモバイルで画面端まで広げる */
    .facility-hero-container {
        margin-bottom: 20px;
    }
    .hero-main-image {
        max-height: 300px;
    }
    .sns-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .btn-group {
        flex-direction: column;
    }
    .btn-ui {
        width: 100%;
    }
}