@charset "UTF-8";

/* =========================================
   メインコンテンツ要素
========================================= */
/* --- 上部メイン画像 --- */
.top-img {
    width: 100%;
    height: clamp(250px, 45vw, 450px);
    background-color: #e9ecef;
    margin-bottom: 50px;
    background-image: url("../img/facility-img/toppho01.jpg");
    background-size: cover;
    background-position: center;
}

/* --- メインコンテンツ（フラットデザイン） --- */
.body {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto 100px;
    color: #333;
    line-height: 1.8;
}

/* スマホ時の上部固定ヘッダー被り防止 */
#intro, #facility, #service, #summary {
    scroll-margin-top: 80px; 
}

/* 見出し・テキスト装飾 */
.body h1:first-of-type {
    font-size: 2.2rem;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 5px;
}

.body h2:first-of-type {
    font-size: 1.6rem;
    color: #888;
    text-align: center;
    font-weight: normal;
    margin-bottom: 30px;
}

.main-copy {
    font-size: 1.8rem;
    color: #2c3e50;
    text-align: center;
    background: #fff; 
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 60px;
}

.body h1:not(:first-of-type) {
    font-size: 2rem;
    color: #2c3e50;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin: 3em 0 1.5em;
}

.body h1:not(:first-of-type)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #0056b3;
    border-radius: 3px;
}

/* 施設セクション */
.facility-section {
    margin-bottom: 50px;
}

.facility-section h1 {
    margin-top: 0 !important;
}

.facility-section .sub-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 2.5em 0 1em;
    padding-left: 10px;
    border-left: 4px solid #50c878;
}

/* リスト・段落 */
.body p {
    margin-bottom: 1.5em;
    color: #555;
    text-align: left; 
}

.body ul {
    background: #fff;
    padding: 25px 25px 25px 45px;
    border-radius: 12px;
    border: 1px solid #ccc;
    margin-bottom: 2em;
    text-align: left;
}

/* 画像ギャラリー (3枚横並び) */
.body img {
    width: calc(30% - 14px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
    margin-bottom: 20px;
    vertical-align: top;
    display: inline-block;
}

.body img:nth-of-type(3n) {
    margin-right: 0;
}

/* 施設概要テーブル */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1.4rem;
}

.info-table th, .info-table td {
    border: 1px solid #ccc;
    padding: 15px;
    text-align: left;
}

.info-table th {
    background-color: #f3f3f2;
    width: 25%;
    color: #333;
    font-weight: bold;
}

/* =========================================
   施設ごとの写真・マップ・個別お問い合わせ
========================================= */
.facility-bottom-area {
    margin-top: 50px;
}

/* 写真とマップを横並びにするコンテナ */
.facility-media-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch;
}

.body img.facility-bottom-img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0;
    display: block;
}

.facility-map {
    width: 100%;
    height: 100%;
    margin: 0;
}

.facility-map iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: block;
}

.facility-individual-contact {
    background-color: #f4f8fc;
    border: 2px solid #e0ebf5;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
}

.facility-individual-contact h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.facility-individual-contact p {
    text-align: center;
    margin-bottom: 25px;
}

.local-tel {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.2rem;
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 25px;
}

.local-tel-icon {
    width: 35px;
    height: 35px;
    fill: #0056b3;
    margin-right: 15px;
}

.local-mail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 30px;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
}

.local-mail-btn:hover {
    background-color: #004494;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.3);
    color: #fff;
}

/* メールアイコン（白い画像にするためのフィルタ処理） */
.local-mail-icon {
    width: 20px !important;
    height: 20px !important;
    margin: 0 10px 0 0 !important;
    border-radius: 0 !important;
    filter: brightness(0) invert(1);
    display: inline-block !important;
}

/* =========================================
   スマホ・タブレット向けレスポンシブ
========================================= */
@media screen and (max-width: 1000px) {
    .body {
        padding: 20px 15px; 
        width: 100%;
    }
    
    .body img {
        width: 100%;
        margin-right: 0;
    }
    
    .info-table th, .info-table td {
        display: block;
        width: 100%;
    }
    
    .info-table th {
        border-bottom: none;
    }
}

/* スマホ用 (768px以下) */
@media screen and (max-width: 768px) {
    .facility-media-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .body img.facility-bottom-img {
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: auto;
    }
    .facility-map iframe {
        height: 300px;
    }
    
    .local-tel {
        font-size: 2.6rem;
    }
    .local-mail-btn {
        width: 100%;
        box-sizing: border-box;
    }
}