/* tag defaults */
html {
    font-size: 14px;
    padding: 0px;
    margin: 0px;
}

header {
    width: 100%;
    height: 60px;
    margin: 0px !important;
    padding: 0px !important;
    color: #ffffff !important;
    background-size: inherit;
}

body {
    font-family: "Tahoma";
    height: 100%;
    background-color: #ffffff;
    padding: 0px;
    margin: 0px;
    overflow: hidden;
}

h4 {
    font-size: 1.3em !important;
    margin-right: auto;
}

h5 {
    font-size: 1.2em !important;
    font-weight: bold !important;
    background-color: #FFFFFF;
}

/* body dom */

a {
    overflow-wrap: break-word;
    color: rgb(0 117 58);
}

/*
#article {
    height: 100vh;
    display: flex;
    flex-direction: column;
}
*/

#mapid {
    height: 100%;
}

.two-pane {
    display: flex;
    flex-direction: column;
    /* デフォルト = 縦並び */
}

#top-pane {
    background-color: #faf8f8;
}

#bottom-pane {
    background-color: #faf8f8;
    overflow: auto;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.footerSpace {
    height: 100px !important;
}

#btmHeader {
    background-color: #FFFFFF;
}

#btmWindow {
    overflow-y: auto;
}

#panelProgress {
    height: 6px
}

.minimapDatail {
    height: 100px;
    width: 98%;
    margin-right: 4px;
    background: linear-gradient(to right, #4286f4, #373B44);
}

/* list */
ul {
    /*column-count: 3;*/
    list-style-type: none;
}

li::before {
    position: relative;
    top: -2px;
    left: -12px;
    display: inline-block;
    width: 8px;
    height: 8px;
    content: "";
    border-radius: 100%;
    background: green;
}

div.showcase {
    overflow-x: scroll;
    width: 100vw;
    display: flex;
    user-select: none;
    padding-right: 72px !important;
}

div.showcase::-webkit-scrollbar {
    display: block;
    height: 4px;
}

div.showcase::-webkit-scrollbar-track {
    background-color: rgba(255, 255, 255, 0.5);
}

div.showcase::-webkit-scrollbar-thumb {
    height: 5px;
    background-color: #404080;
}

img.w100 {
    width: 100%;
}

/* Activity Modal Icon Size */
h4 img {
    height: 1.5em;
    margin-right: 0.3em;
}

span.zoom {
    font-size: 12px;
    color: rgba(0, 0, 0, 1);
    background-color: rgba(255, 255, 255, 0.5);
    padding: 6px;
    margin: 0px;
}

.menu {
    margin: 2px 0px;
    border: 1px solid;
    width: initial !important;
    height: 100%;
}

.pointer {
    cursor: pointer;
}

p {
    line-height: 1.5;
    margin-bottom: 0.5rem;
    margin-left: 0.5em;
}

span {
    font-size: 1rem;
}

/* マーカーのフォントサイズ選択 */
span.fs-10 {
    font-size: 10px;
}

span.fs-12 {
    font-size: 12px;
}

span.fs-14 {
    font-size: 14px;
}

/* button for select way color */
.modal-backdrop.show {
    opacity: 0;
}

.modal-dialog-fluid {
    max-width: 800px !important;
    max-height: 98% !important;
    width: 98%;
    margin: auto !important;
}

.modal-body {
    font-size: 14px !important;
    overflow-x: hidden;
}

input[type="search"] {
    font-size: 14px;
    display: inline-block;
    width: calc(180px - 4em);
}

/* for Grid.js */
th.gridjs-th {
    padding: 2px 4px !important;
    margin: 0px 8px !important;
}

td.gridjs-td {
    padding: 2px 4px !important;
    cursor: pointer !important;
}

tr:hover td {
    background-color: #d9efff !important;
}

tr.selected td {
    background-color: #d9efff !important;
}

/* spinner */
#list_spinner {
    position: absolute;
    margin: auto;
    left: 0px;
    z-index: 9999;
    right: 0px;
    top: 0px;
    bottom: 0px;
}

.detailTitle {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    text-wrap-mode: nowrap;
}

.cursor-pointer {
    cursor: pointer;
}

#splashImage {
    display: none;
}

#PinchImage {
    display: none;
    height: auto;
    position: fixed;
    z-index: 10000;
    cursor: zoom-out;
}

#PinchImageBK {
    display: none;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    position: absolute;
    background-color: #000000A0;
    top: 0px;
    left: 0px;
}

#scrollHand {
    display: none;
    z-index: 3000;
    position: absolute;
    width: 100vw;
}

#tableid {
    font-size: 14px;
    background-color: #ffffff;
}

@keyframes swing {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

/* メッセージを画面中央に配置 */
.fade-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 20px 40px;
    border-radius: 8px;
    opacity: 1;
    transition: opacity 2s ease;
    z-index: 9999;
    text-align: center;
    font-size: 1.2rem;
}

.fade-message.hide {
    opacity: 0;
}

/* パネル */
.basemenu {
    background-image: var(--bg-url, none);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    max-width: unset;
}

/* タイトル/サブ：読みやすく、派手にしない */
.basemenu .title {
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
    line-height: 1.2;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.basemenu .subtitle {
    color: #6b7280;
    font-size: .85rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

/* 1行目の高さを少しだけ確保 */
.basemenu>.col-12.p-1.me-2.d-flex.align-items-center:first-child {
    min-height: 54px;
}

/* 2行目：間隔だけ微調整、装飾は最小限 */
.basemenu .col-12.p-1.me-2.d-flex.align-items-center:nth-of-type(2) {
    gap: .5rem;
}

/* セレクトは標準のまま＋縁だけ薄く */
.basemenu .form-select {
    background: #fff;
}

/* アイコンボタンは小さめ・軽めに（統一サイズ） */
.basemenu .btn {
    border-radius: 10px !important;
}

.basemenu .btn.menu,
.basemenu .col-12.p-1.me-2.d-flex.align-items-center:nth-of-type(2) .btn {
    height: 36px;
    min-width: 36px;
    border: 1px solid #d1d5db;
    background: #fff;
}

.search-area {
    position: relative;
    flex-wrap: nowrap;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box input {
    width: 100%;
    padding-right: 38px;
    /* ボタン分の余白 */
    border-radius: 10px;
    border: 1px solid #ccc;
    height: 38px;
}

.search-box .search-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #555;
    cursor: pointer;
    height: 28px;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box .search-btn:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group {
    border-radius: 8px;
}

.maplibregl-ctrl-bottom-right .maplibregl-ctrl button {
    width: 36px;
    height: 36px;
    padding: 0;
}

#snow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* 地図操作を妨げない */
}

/* モバイル */
@media (min-width: 1080px) {
    .two-pane {
        flex-direction: row;
        height: 100vh;
    }

    .two-pane aside {
        width: 480px;
        flex: 0 0 0px;
        height: 100vh;
    }

    .two-pane main {
        flex: 1 1 auto;
        height: 100vh;
    }
}