/* tag defaults */
html {
    font-size: 14px;
    padding: 0px;
    margin: 0px;
}

header {
    width: 100%;
    height: 60px;
    margin: 0px !important;
    padding: 0px !important;
    background-size: inherit;
}

body {
    font-family: "Tahoma";
    height: 100%;
    padding: 0px;
    margin: 0px;
    background-color: #fff7cb !important;
    overflow: hidden;
}

/* startup status */
#startupStatus {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fff7cb;
    color: #263238;
    font-family: Tahoma, sans-serif;
    text-align: center;
}

#startupStatus[hidden] {
    display: none;
}

.startup-status-card {
    box-sizing: border-box;
    width: min(420px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    padding: 12px 12px 20px;
    overflow: auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

@media (min-width: 768px) {
    .startup-status-card {
        width: min(640px, calc(100vw - 64px));
        padding: 16px 16px 24px;
    }
}

.startup-splash-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 180px);
    max-height: calc(100dvh - 180px);
    height: auto;
    margin: 0 auto 16px;
    object-fit: contain;
    border-radius: 8px;
}

.startup-status-spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto 14px;
    border: 4px solid #c8ddd1;
    border-top-color: #00753a;
    border-radius: 50%;
    animation: startup-spin 0.8s linear infinite;
}

#startupStatus[data-error="true"] .startup-status-spinner {
    display: none;
}

#startupRetry {
    display: none;
    margin: 16px auto 0;
    padding: 8px 18px;
    border: 1px solid #00753a;
    border-radius: 6px;
    background: #fff;
    color: #00753a;
    font: inherit;
    cursor: pointer;
}

#startupStatus[data-error="true"] #startupRetry {
    display: block;
}

@keyframes startup-spin {
    to {
        transform: rotate(360deg);
    }
}

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);
}


.two-pane {
    display: flex;
    position: relative;
}

#top-pane {
    background-color: #faf8f8;
}

#bottom-pane {
    position: relative;
    background-color: #faf8f8;
    overflow: hidden;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    background-image: var(--bg-url, none);
}

#btmHeader {
    width: 100%;
    overflow-y: auto;
}

#sidebarResizeHandle {
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 100%;
    padding: 0;
    z-index: 1001;
    cursor: col-resize;
    touch-action: none;
}

#sidebarResizeHandle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 56px;
    transform: translateY(-50%);
    border: 1px solid #adb5bd;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

#sidebarResizeHandle::after {
    content: "⋮";
    position: absolute;
    top: 50%;
    left: 1px;
    width: 10px;
    transform: translateY(-52%);
    color: #495057;
    font-size: 22px;
    line-height: 1;
    text-align: center;
}

#sidebarResizeHandle:hover::before,
body.is-resizing-sidebar #sidebarResizeHandle::before {
    border-color: rgb(0, 117, 58);
    background: rgb(224, 243, 233);
}

#sidebarResizeHandle:hover::after,
body.is-resizing-sidebar #sidebarResizeHandle::after {
    color: rgb(0, 117, 58);
}

@media (max-width: 1079.98px) {
    #sidebarResizeHandle {
        top: 0;
        left: 0;
        width: 100%;
        height: 12px;
        cursor: row-resize;
    }

    #sidebarResizeHandle::before {
        top: 0;
        left: 50%;
        width: 56px;
        height: 12px;
        transform: translateX(-50%);
        border: 1px solid #adb5bd;
        border-top: 0;
        border-radius: 0 0 8px 8px;
    }

    #sidebarResizeHandle::after {
        content: "⋯";
        top: -8px;
        left: 50%;
        width: 40px;
        transform: translateX(-50%);
    }
}

body.is-resizing-sidebar,
body.is-resizing-sidebar * {
    cursor: inherit !important;
    user-select: none !important;
}

.footerSpace {
    height: 100px !important;
}

#detailArea {
    overflow-y: auto;
}

#panelProgress {
    height: 6px
}

.minimapDatail {
    height: 100px;
    width: 98%;
    margin-right: 4px;
    background: linear-gradient(to right, #4286f4, #373B44);
}

#detailHeader {
    background-color: var(--bs-accordion-active-bg);
    color: var(--bs-accordion-active-color);
    border-bottom: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color);
}

#detailHeader .detailTitle {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--bs-accordion-active-color);
}

#detailHeaderClose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #000;
    font-size: 24px;
    line-height: 1;
}

/* 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 {
    margin: 0px 0px 0px 0px !important;
    padding: 0px !important;
    overflow-x: auto;
    width: fit-content;
    max-width: calc(100vw - 0px);
    display: flex;
    user-select: none;

    /* padding-right はイベント領域を広げるので避ける */
    padding-right: 0 !important;
}

@media screen and (width >=1080px) {
    div.showcase {
        margin: 0px 0px 24px 0px !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;
}

.globalMessage {
    display: block;
    color: rgba(0, 0, 0, 1);
    background-color: rgba(255, 255, 255, 0.6);
    padding: 6px;
    margin: 0px;
}

.globalMessage:empty {
    display: none;
}

.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: 16px;
}

/* マーカーのフォントサイズ選択 */
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 {
    background-color: var(--splash-bg-color);
    opacity: 1 !important;
}

.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);
}

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;
    height: 30px;
}

.cursor-pointer {
    cursor: pointer;
}

#splashImage {
    display: none;
}

#PinchImage {
    display: none;
    height: auto;
    position: fixed;
    z-index: 10000;
    cursor: zoom-out;
    user-select: none;
    -webkit-user-drag: none;
}

#PinchImageBK {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: #000000A0;
    top: 0px;
    left: 0px;
}

#FullScreenVideo {
    display: none;
    position: fixed;
    z-index: 10000;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000;
    cursor: pointer;
}

#PinchImageClose,
#FullScreenVideoClose {
    display: none;
    position: fixed;
    z-index: 10001;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 24px;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
}

#PinchImageClose:hover,
#PinchImageClose:focus-visible,
#FullScreenVideoClose:hover,
#FullScreenVideoClose:focus-visible {
    background-color: rgba(0, 0, 0, 0.9);
}

#scrollHand {
    display: none;
    z-index: 3000;
    position: absolute;
    width: 100vw;
}

#mapid {
    position: relative;
    overflow: hidden;
}

.list-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

@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;
    width: min(360px, calc(100vw - 40px));
    box-sizing: border-box;
    padding: 20px 20px;
    border-radius: 8px;
    opacity: 1;
    transition: opacity 3s 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;
}

#snow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}
