* {
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans JP", "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "メイリオ", Meiryo, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", sans-serif;
    font-weight: 400;
    background: #ffffff;
    margin: 0;
    padding: 0;
    height: 100svh;
    overflow: hidden;
}

a {
    transition: all 0.2s ease;
    color: #0d47a1;
    text-decoration: none;
}

a:hover {
    color: #1565c0;
    text-decoration: underline;
}

a img {
    transition: all 0.2s ease;
}

a:hover img {
    filter: brightness(1.2);
}

ul {
    list-style-type: disc;
    padding-inline-start: 0;
}

.u-center {
    text-align: center;
}

@media (min-width: 500px) {
    .br_sp {
        display: none;
    }
}

/* レイアウト */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100svh;
}

/* ヘッダー */
header {
    background: #1565c0;
    padding: 10px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    header {
        padding: 10px;
    }
}

@media (max-width: 500px) {
    header {
        padding: 5px;
    }
}

@media (min-width: 600px) {
    header {
        position: relative;
    }
}


.header_wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

h1 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
}

@media (max-width: 500px) {
    h1 {
        white-space: normal;
    }
}

@media (min-width: 501px) and (max-width: 900px) {
    h1 {
        font-size: 1rem;
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    h1 {
        font-size: 1.1rem;
    }
}

@media (min-width: 600px) {
    h1 {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.4rem;
    transition: all 0.2s ease;
}

a:hover .logo {
    opacity: 0.8;
}

@media (max-width: 766px) {
    .logo {
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    .logo {
        font-size: 1rem;
    }
}

.logo img {
    height: 30px;
    width: auto;
}

@media (max-width: 766px) {
    .logo img {
        height: 20px;
        width: auto;
    }
}


/* 注意バー - インフォメーションスタイル（青）に変更 */
.notice-bar {
    /* 背景：薄い青のグラデーション */
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%);
    /* 枠線：少し濃い水色 */
    border-bottom: 1px solid #90caf9;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* インフォメーションアイコンのスタイル作成 */
.notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #1976d2;
    color: white;
    border-radius: 50%;
    font-family: serif;
    font-weight: bold;
    font-style: italic;
    font-size: 16px;
    flex-shrink: 0;
    padding-right: 2px;
}

.notice-text {
    font-size: 0.9rem;
    color: #0d47a1; /* 濃紺のテキスト */
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
    min-width: 0;
}

.notice-text strong {
    color: #1565c0; /* 強調部分も青系 */
    margin-right: 5px;
}

/* ボタン - 青系に変更 */
.notice-button {
    background: #1976d2;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.notice-button:hover {
    background: #1565c0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* 地図エリア */
.map-area {
    flex: 1;
    position: relative;
    background: #e5e7eb;
}

#map {
    width: 100%;
    height: 100%;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 85svh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #1e293b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* モーダルヘッダーのアイコンもiマークに変更 */
.modal-header h2::before {
    content: "i";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #1976d2;
    color: #fff;
    border-radius: 50%;
    font-family: serif;
    font-weight: bold;
    font-style: italic;
    font-size: 20px;
    padding-right: 2px;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #64748b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-button:hover {
    background: #f1f5f9;
    color: #334155;
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #334155;
}

.modal-body ol {
    padding-inline-start: 20px;
    margin: 0;
}

.modal-body li {
    margin-bottom: 18px;
}

.modal-body ul {
    margin-top: 10px;
    padding-inline-start: 20px;
}

.modal-body ul li {
    margin-bottom: 6px;
}

.modal-body small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    line-height: 1.6;
}

.legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.legend_square01 {
    width: 30px;
    min-width: 30px;
    height: 20px;
    /*background-color: #105cdc;*/
    border: 2px solid #4285F4;
}

.legend_square02 {
    width: 30px;
    min-width: 30px;
    height: 20px;
    background-color: #30303080;
    border: 1px solid #30303080;
}

.use_wrapper {
    margin-bottom: 20px;
}

/* フッター */
footer {
    background: #f8f9fa;
    padding: 10px 20px;
    border-top: 1px solid #e5e7eb;
    z-index: 100;
    flex-shrink: 0;
}

.footerlist {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

@media (max-width: 500px) {
    .footerlist {
        gap: 5px;
    }
}


.footerlist li a {
    color: #475569;
    font-size: 0.85rem;
    font-weight: 500;
}

.footerlist li a:hover {
    color: #1565c0;
}

.copyright {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 6px;
    text-align: center;
}

/* マップコントロールなど (既存スタイルの維持) */
.map-control-container {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    margin-left: 10px;
    padding: 6px;
    border-radius: 8px;
    font-family: sans-serif;
    display: flex;
    gap: 4px;
}

.map-control-button {
    cursor: pointer;
    padding: 4px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    user-select: none;
    transition: all 0.2s ease;
}

.map-control-button:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.map-control-button.active {
    background: #1565c0;
    color: white;
    border-color: #1565c0;
}

.gsi-credit-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    font-size: 11px;
    font-family: sans-serif;
    border-radius: 4px;
    pointer-events: auto;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 凡例パネル */
.legend-panel {
    position: absolute;
    top: 70px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    font-family: sans-serif;
    font-size: 13px;
    color: #334155;
    pointer-events: auto;
    border: 1px solid #e2e8f0;
    min-width: 250px;
}

.legend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
}

.legend-close {
    cursor: pointer;
    font-size: 18px;
    color: #64748b;
    line-height: 1;
}

.legend-close:hover {
    color: #334155;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.legend-item:last-child {
    margin-bottom: 0;
}

/* レスポンシブ */
@media (max-width: 600px) {
    h1 {
        font-size: 1rem;
    }

    @media (max-width: 360px) {
        h1 {
            font-size: 0.9rem;
        }
    }

    .notice-bar {
        padding: 8px 15px;
        flex-direction: column;
        align-items: stretch;
    }

    .notice-content {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .notice-button {
        width: 100%;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        max-height: 90svh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .legend-panel {
        max-width: calc(100% - 20px);
    }
}