@charset "UTF-8";

/* モーダル：背景オーバーレイ・中身レイアウト・表・操作ボタン */

/* モーダル全体（背景込み） */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 1000;
}

.modal-bg {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    width: 100%;
    height: 100%;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1100px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    scrollbar-color: var(--light-green) transparent;
}

/* スクロールバー（WebKit系） */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--light-green);
    border-radius: 10px;
}

.modal-title {
    font-size: clamp(1.4rem, 6vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    color: var(--dark-green);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    letter-spacing: 0.05em;
}

.modal-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 詳細テーブル */
.modal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.modal-table th,
.modal-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.modal-table th {
    width: 30%;
    font-weight: 500;
    color: #555;
    background-color: #fdfdfd;
    white-space: nowrap;
}

.modal-table td {
    width: 70%;
    color: #333;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.modal-table a {
    color: var(--dark-green);
    text-decoration: none;
    transition: opacity 0.3s, color 0.3s;
}

.modal-table a:hover {
    color: var(--light-green);
    text-decoration: underline;
}

.modal-updated {
    font-size: 0.85rem;
    text-align: right;
    color: #999;
    margin-top: 15px;
}

/* 閉じるボタン */
.modal-close {
    text-align: center;
    margin-top: 35px;
}

.modal-close a,
.modal-close button {
    display: inline-block;
    background-color: var(--dark-green);
    color: #fff;
    padding: 12px 45px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font: inherit;
    transition: background-color 0.3s, transform 0.2s;
}

.modal-close a:hover,
.modal-close button:hover {
    background-color: var(--light-green);
    transform: translateY(-2px);
}

/* 案内図モーダル（固定コンテンツ） */
.map-subtitle {
    text-align: center;
    color: var(--dark-green);
    margin: 30px 0 15px;
    font-size: 1.3rem;
    font-weight: bold;
}

.map-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.modal-external-link {
    text-align: center;
    margin-bottom: 50px;
}

.modal-external-link a {
    color: var(--dark-green);
    font-weight: bold;
    text-decoration: underline;
    font-size: 1.4rem;
    transition: color 0.3s;
    display: inline-block;
}

.modal-external-link a:hover {
    color: var(--light-green);
    text-decoration: none;
    transform: scale(1.05);
}