/* ============================================
   アクセス・周辺環境ページ専用スタイル
   style_access.css
   ============================================ */


/* ============================================
   アクセスセクション
   ============================================ */
/* Googleマップ：コンテナ内で幅100%・角丸 */
.access__map-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0; /* iframeの下に生じる余白を消す */
    margin-bottom: 40px; /* マップ下余白 */
}

.access__map-wrap iframe {
    width: 100%;
    height: 400px;
    display: block;
    border: 0;
}


/* ============================================
   交通のご案内
   ============================================ */
.access__traffic-block {
    margin-bottom: 24px;
}
.access__traffic-block:last-child {
    margin-bottom: 0;
}
.access__traffic-station {
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}
.access__traffic-block p {
    line-height: 1.8;
}

/* ============================================
   周辺環境セクション
   ============================================ */
/* 中見出し下テキスト */
.shuhen > .container > p {
    margin-bottom: 12px;
}
.shuhen > .container > p:last-of-type {
    margin-bottom: 0;
}

/* h4カテゴリ見出し */
.shuhen__category-title {
    margin-top: 50px;
    margin-bottom: 30px;
}

/* 画像グリッド：PC 4列 */
.shuhen__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 20px;
}

/* 各アイテム */
.shuhen__item {
    display: flex;
    flex-direction: column;
}

/* 画像ラッパー：幅固定・角丸 */
.shuhen__img-wrap {
    width: 100%;
    aspect-ratio: 280 / 200;
    border-radius: 8px;
    overflow: hidden;
}

.shuhen__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* キャプション */
.shuhen__caption {
    margin-top: 6px;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.4;
    color: var(--color-text);
}

/* ============================================
   レスポンシブ（スマホ）
   ============================================ */
@media (max-width: 768px) {
    /* スマホ時も高さはそのまま（400px） */
    .access__map-wrap iframe {
        height: 400px;
    }

    /* スマホ：1列縦並び */
    .shuhen__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* スマホ：画像は横幅いっぱい */
    .shuhen__img-wrap {
        aspect-ratio: 4 / 3;
    }
    .shuhen__category-title {
        margin-top: 40px;
    }
}
