@charset "UTF-8";

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/*--------------------------------------------------
/* 見出しの修飾線
--------------------------------------------------*/
.heading-with-line {
    position: relative;
}

.heading-with-line::after {
    content: '';
    display: block;
    width: 86px;
    height: 1px;
    background-color: #8d9190;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.railwayAccessTtl_txt .heading-with-line::after,
.driveAccessTtl_txt .heading-with-line::after {
    bottom: -24px;
}

.expressTimeTable_bg .heading-with-line::after {
    bottom: -10px;
}

/*--------------------------------------------------
/* ハザードマップ
--------------------------------------------------*/
.hazard-map-section {
    margin: 80px auto;
}

/* ヘッダー部分のレイアウト */
.hazard-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    color: #061651;
    font-weight: 500;
    margin: 0;
}

/* ボタン風リンクのコンテナ */
.official-link-container {
    margin: 20px 0 0;
}

.official-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    width: 380px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    background-color: #004ba4;
    border: 1px solid #004ba4;
    background: #004ba4 url(../../images/hazardmap/icon_outerlink_wh.svg) no-repeat 95% center;
    background-size: 4%;
    transition: all 0.2s;
}

.official-link-btn:hover {
    background: #fff url(../../images/hazardmap/icon_outerlink_wh_on.svg) no-repeat 95% center;
    background-size: 4%;
    border: 1px solid #004ba4;
    color: #004ba4;
    transition: all 0.2s;
}

/* ハザードマップリストのスタイル */
.hazard-map-list-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.hazard-map-item {
    position: relative;
    background-color: #fff;
    border: 1px solid #465a84;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}

/* ホバーエフェクト（擬似要素の透明度変更） */
.hazard-map-item::before {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(70, 90, 132, 0);
    transition: all 0.2s;
    pointer-events: none;
}

.hazard-map-item:hover::before {
    background-color: rgba(70, 90, 132, .4);
}

/* リンク内のコンテンツのスタイル */
.hazard-map-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* タイトル */
.map-title {
    padding: 16px 10px;
    border-bottom: 1px solid #465a84;
    font-size: 0.8rem;
    font-weight: bold;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

.map-title strong {
    font-size: inherit;
}

/* 画像コンテナ */
.map-thumbnail {
    flex-grow: 1;
}

.map-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.map-thumbnail::after {
    position: absolute;
    display: block;
    z-index: 5;
    content: '';
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 54px 54px;
    border-color: transparent transparent #004ba4 transparent;
}

/* 矢印（擬似要素）のスタイル */
.hazard-map-item::after {
    position: absolute;
    display: block;
    z-index: 10;
    content: '';
    width: 12px;
    height: 12px;
    border: 0px;
    border-top: solid 1.5px #fff;
    border-right: solid 1.5px #fff;
    transform: rotate(45deg);
    bottom: 10px;
    right: 10px;
}
