body, html, * {
  font-family: "Noto Sans JP","Yu Gothic Medium","Hiragino Sans","Meiryo",sans-serif !important;
  font-weight: 400 !important;
}

html {
    transform-origin: left top;
    overflow-x: hidden;
}
body {
    margin: 0;
    /* overflow: hidden; */
    height:100%;
}
div {
    font-size:14px;
    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;
    user-select:none;
}

@media (max-width: 575.98px) {
    div {
        font-size: 15px;
    }
}

.container-fluid {
    display: flex;
    padding: 0 !important;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

header {
    position: relative;
    top: 0;
    z-index: 1002;
    width: 100%;
    padding: 0em;
}

@media (max-width: 767.98px) {
    header.is-mobile {
        position: fixed;
        top: 0;
        left: 0;
        height: 3.5em;
    }
}

.titleArea {
    width: 100%;
    padding: 0.75em 0.5em;
    color: inherit;
}

#site_title {
    font-size: 14px;
    color: inherit;
    width: auto;
    cursor: pointer;
}

.breadcrumb {
    padding: 0 !important;
    margin: 0 !important;
    --bs-breadcrumb-divider:'>';
}

.breadcrumb a {
    color:#ffffff !important;
}

.breadcrumb-item.active{
    color:#ffffff !important;
}

.breadcrumb-item::before{
    color:#ffffff !important;
}

main {
    flex: 1;
    overflow-y : scroll;
}

footer {
    border-top: 1px solid #000000;
}

.navbar {
    padding: 0 1em 0.5em 1em !important;
    width: 100%;
    display: flex !important;
}

.nav-hamburger {
    width: 2em;
    height: 2em;
    margin: 0 0.5em;
    border-radius: 2px;
    background-position: center;
    background-image: url(../img/mobile_menu.png);
}

.hamburgerMenuContent { padding: 0.8rem 1rem; border-bottom: 1px solid #404040; }
#hamburger-menu {
    --bs-offcanvas-width: 80%;
}
@media (min-width: 768px) {
    #hamburger-menu {
        --bs-offcanvas-width: 50%;
    }
}
@media (min-width: 992px) {
    #hamburger-menu {
        --bs-offcanvas-width: 40%;
    }
}
@media (min-width: 1200px) {
  #hamburger-menu {
    --bs-offcanvas-width: 30%;
  }
}

/* ********************* */
/* top\contentsMobile.js */
/* ********************* */

.buttonArea {
    position: relative;
    float: right;
    width: fit-content;
    z-index: 500;
    right: 10px;
    bottom: 90px;
}

.dragHandleMobile {
    position: relative;
    width: 100%;
    height: 1.75em;
    background-color: #212529;
    border-bottom: 1px solid #212529;
    touch-action: none;
}

/* ********************* */
/* 凡例エリア */
/* ********************* */

/* #controlSample {
    width: 60px;
    height: 40px;
    border: 1px solid #aaaaaa;
    font-size: 14px;
    background: linear-gradient(#ffffff, #d4dcf1);
} */

/* ********************* */
/* swiper.js関係 */
/* ********************* */

.swiperSheet {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    transition: transform 0.3s ease-in-out;
    transform: translateY(calc(100% - 3em));
    z-index: 1001 !important;
    border-radius: 1em 1em 0 0;
    overflow: hidden;
    box-shadow: 0 -1px 1px rgba(0,0,0,0.25);
    touch-action: manipulation;
}

.swiperSheet.open { transform: translateY(0); }

.swiperSheet2 {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    transition: transform 0.3s ease-in-out;
    transform: translateY(calc(100% - 3em));
    z-index: 1001 !important;
    border-radius: 1em 1em 0 0;
    overflow: hidden;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.25);
    touch-action: manipulation;

}
.swiperSheet2.open { transform: translateY(0); }

.swiper-button-prev {
    position: absolute !important;
    width: 1.5em !important;
    color: #ffffff !important;
}

.swiper-button-next {
    position: absolute !important;
    width: 1.5em !important;
    color: #ffffff !important;
}

/* ********************* */
/* modalUtil.js 操作メニューモーダル関係 */
/* ********************* */

#bottom_menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3.5em;
    z-index: 1001;
    border-top: 1px solid #aaaaaa;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.25);
}

#modal-util-all-check { margin-right: 10px; width: 30px; cursor: pointer; }

.utilMenu {
    background: linear-gradient(#ffffff, #EBEFF9);
    border-left: 1px solid #cdcfd9;
    border-right: 1px solid #cdcfd9;
    border-collapse: collapse;
    cursor: pointer;
}

.utilMenu.active {
    background: linear-gradient(#ffffff, #cdcfd9); /* お好みの色に変更可能 */
}

/* ********************* */
/* stationMobile.js, js\device下 監視局・機器表示関係 */
/* ********************* */

.stationIconPassive {
    width: 40px;
    height: 40px;
    background-image: url(../img/station_passive_2.png);
    background-size: 25px;
    background-position: center;
    background-repeat: no-repeat;
}

.stationIconActive {
    width: 40px;
    height: 40px;
    background-image: url(../img/station_active_2.png);
    background-size: 25px;
    background-position: center;
    background-repeat: no-repeat;
}

.stationHeader {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0.5em 0.5em 0.25em 0.5em;
    background-color: #212529;
    grid-area: stationHeader;
}

.stationQuote {
    width: auto;
    font-size: 0.8em;
    color: #ffffff !important;
}

.noStation {
    width: 100%;
    height: 100%;
    font-size: 14px;
    background-color: #212529;
    color: #ffffff;
    text-align: center;
    padding: 0.5em 0 4.5em 0;
}

.deviceHeader {
    width: 278px;
    color: #ffffff;
}

.deviceBox {
    width: 278px !important;
    height: 201px !important;
    cursor: pointer;
}

.takeTime {
    height: 24px;
    line-height: 24px;
    text-align: center;
    margin-bottom: 4px;
    white-space: nowrap;
    text-shadow: -0.5px 0 0 #000, 0.5px 0 0 #000, 0 -0.5px 0 #000, 0 0.5px 0 #000;

}

.stateArea {
    position: relative;
    width:100%;
    height: 180px;
    background-color: #ffffff;
    background-position:center;
}

.wlevelGraphicArea {
    position: absolute;
    left: 10px;
    bottom: 5px;
    width: 50%;
    height: 120px;
}

.waterBar {
    position: absolute;
    left: 0px;
    width: 100%;
    height: 0px;
    background: #cbe6f8;
    border-top: 1px solid #c3dced;
}

.stateInfoBar {
    position: relative;
    width: 100%;
    height: 40px;
    padding: 5px 10px;
}

.stateBar {
    margin: 0 0 0.5em 0;
    padding: 0.5em;
    text-align: center;
    font-weight: bold;
}

.rainLabel {
    height: 40px;
    line-height: 40px;
    text-align: center;
}

.rainAlert {
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    text-align: center;
    background: #c00000;
    color: #ffffff;
}

.rainFallSwitchArea {
    width: 100%;
    padding: 0.3em 1em;
    margin: 0 0 0.5em 0;
    background: "#505050";
}

.mapIconStName {
    position: absolute;
    top: 0px;
    max-width: 250px;
    height: 32px;
    line-height: 26px;
    font-size: 14px;
    background-color: #000000;
    background-image: url(../img/station_passive.png);
    background-size: 20px;
    border: 2px solid #000000;
    box-shadow: 0 4px 4px -2px rgba(0,0,0,0.3);
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.mapIconStNameLabel1 {
    left: 34px;
    padding: 0px 30px 0px 20px;
    border-radius: 0px 20px 20px 0px;
    background-position: right 2px center;
}
.mapIconStNameLabel1.single {
    left: 20px !important;
}

.mapIconStNameLabel2 {
    right: 5px;
    padding: 0px 20px 0px 30px;
    border-radius: 20px 0px 0px 20px;
    background-position: left 2px center;
}
.mapIconStNameLabel2.single {
    right: -8px !important;
}

.mapIconMarker {
    position: absolute;
    top: 0;
    left: -10px;
    width: 60px;
    height: 32px;
    background: #fff;
    box-shadow: 0 4px 4px -2px rgba(0,0,0,0.3);
    border-radius: 22px;
    border: 2px solid #000;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 8px;
    z-index: 2;
    cursor: pointer;
}

.mapIconMarker.single {
    left: 4px !important;
    width: 32px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.mapIconMarker::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #000;
    z-index: 1;
}


#image-zoom-button {
    position: absolute;
    bottom: 8px;
    left: 290px;
    width: 25px;
    height: 25px;
    background-image: url(img/zoom.png);
    background-repeat: no-repeat;
    background-size: 25px;
    cursor: pointer;
}

.mainDataArea {
    width: 100%;
    padding: 0.5em 1em;
}

.subDataBase {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: none;
    overscroll-behavior: none;
    background-color: #f2f2f2;
    box-shadow: 0 3px 3px #bebebe, 0 -3px 3px #bebebe;
    grid-area: subDataArea;
    transition: opacity 0.12s ease, transform 0.12s ease;
    opacity: 1;
    transform: translateY(0);
}


.contents-mobile-detail .subDataBase {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
  overscroll-behavior: auto;
  overscroll-behavior-y: auto;
  background-color: #f2f2f2;
  box-shadow: none;
}

.subDataBase.closing {
    opacity: 0;
    transform: translateY(20px);
}

.subDataCloseButton {
    width: 1.5em;
    height: 1.5em;
    margin-left: 0.25em;
    background-image: url(../img/close_button.png);
    background-size: 1em, 100%;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.subDataHeader {
    width: 100%;
    min-height: 4em;
    padding: 0.5em 1em;
}

.subDataHeaderTop {
    width: 100%;
    min-height: 2em;
    padding-bottom: 0.5em;
}

.subDataHeaderBottom {
    width: 100%;
    min-height: 2em;
    margin-top: 0.25em;
}

.subDataArea {
    position: relative;
    width: 100%;
    padding: 0.5em 0.5em 2em 0.5em;
}

.contents-mobile-detail .subDataArea {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
  padding: 0.5em 0.5em 2em 0.5em;
}

.scroll-top-button {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    cursor: pointer;
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-top-button.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-button i {
    font-size: 1.25rem;
    line-height: 1;
}

.timeControlArea {
    width: 100%;
    border-bottom: double 3px black;
    box-shadow: inset 0 6px 8px -6px #212529, inset 0 -6px 8px -6px #ffffff;
    grid-area: timeControlArea;
    padding: 1em 0.5em;
}

.timeControlButton {
    width: 3em;
    height: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #cccccc;
    border-radius: 999px !important;
    cursor: pointer;
}

.timeControlButton i {
    display: inline-flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    color: #505050;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* ********************* */
/* グラフ生成関係 */
/* ********************* */

.graphGrid {
    position: relative;
    display: grid;
    /* grid-template-areas, grid-template-columns, grid-template-rows はJS側で動的に設定 */
    gap: 0px 0px;
    grid-auto-flow: row;
}
.graphTitle {
    position: relative;
    grid-area: graphTitle;
    font-size: 13px;
    padding: 0 0.5em;
    background-color: white;
}
.graphScaleArea {
    position: relative;
    grid-area: graphScaleArea;
}
.graphScaleLabel {
    line-height: 13px;
    font-size: 13px;
    margin-right: 0.4em;
}
.graphArea {
    position: relative;
    display: grid;
    /* grid-template-areas, grid-template-columns, grid-template-rows はJS側で動的に設定 */
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas:
        "graphDrawArea"
        "graphRow";
    grid-area: graphArea;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}
.graphDrawArea {
    position: relative;
    grid-area: graphDrawArea;
    background-color: white;
}
.graphAlarmLineArea {
    position: absolute;
    top: 0px;
    z-index: 2;
}
.graphValueArea {
    position: absolute;
    height: 2.5em;
    border: 2px solid;
    border-radius: 2px;
    background-color: white;
}
.graphValueLabel {
    position: relative;
    width: 100%;
    height: 1.5em;
    line-height: 1.25em;
    font-size: 0.8em;
    padding: 0 0.3em;
    white-space: nowrap;
    overflow: hidden;
}
.graphRow { grid-area: graphRow; position: relative;  }
.graphLegend { grid-area: graphLegend; }
.graphCanvasArea {
    position: absolute;
    left: 0px;
    top: 0px;
    bottom: 0px;
}
.graphPlot {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 1px solid #000000;
    border-radius: 20px;
    cursor: pointer;
    z-index: 20;
    background-color: #ffffff;
}
.graphBar {
    position: absolute;
    background-color: #8faadc;
    cursor: pointer;
    z-index: 20;
    touch-action: pan-x;
}

.stationInfoTh {
    background-color: #f2f2f2;
    padding : 0.2em 0.8em;
    text-align: right;
    font-weight: normal;
}

.stationInfoTd {
    padding : 0.2em 0.8em;
}

/* ********************* */
/* 一覧生成関係 */
/* ********************* */
.listDateLabel {
    text-align: center;
}

/* これ以降、既存クラス */

div.cameraIcon0 {
    width: 150px !important;
    height: 40px !important;
    background:url(../img/bubble_0.png) no-repeat;
    background-size:contain;
}
div.cameraIcon1 {
    width: 24px !important;
    height: 24px !important;
    background:url(../img/camera_1.png) no-repeat;
    background-size:contain;
}

.bold {
    font-weight: bold;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.font16 { font-size: 16px; }
.pointer { cursor: pointer; }

@media all and (-ms-high-contrast:none) {
    html {
        font-family: 'メイリオ', 'Meiryo', sans-serif;
    }
}

#map {
    width: 100%;
    height: 450px;
    border: 1px solid #aaaaaa;
}

/* ********************* */
/* ヘッダー関係 */
/* ********************* */

.linkMark {
    height: 100%;
    padding: 0.5em;
    background-color: #ffcc00;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid #aaaaaa;
}

.linkBody {
    width: 100%;
    background-image: url(../img/jma_logo.jfif);
    background-size: 6em;
    background-position: center center;
    cursor: pointer;
    background-color: #ffffff;
    border: 1px solid #aaaaaa;
}

.msgArea {
    /*margin-left: 1.5em;*/
    background-color: #ffffff;
    border: 1px solid #aaaaaa;
    overflow: hidden;
    flex: 1;
}

#msg-mark {
    height: 100%;
    padding: 0.5em 1.5em 0.5em 0.5em;
    background-color: #ffcc00;
    border-right: 1px solid #aaaaaa;
    background-image: url(../img/modal_open.png);
    background-repeat: no-repeat;
    background-position: right 0.25em center;
    background-size: 1em;
    white-space: nowrap;
    cursor: pointer;
}

#msg-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 1.5em 0 0.5em;
    padding: 0;
    border: 0;
    background-color: transparent;
    color: inherit;
    cursor: pointer;
}

.msgBody {
    flex: 1;
    min-width: 0;
    width: 0;
    height: 100%;
    padding: 0.5em 0;
    overflow: hidden;
    position: relative;
    align-items: center;
}

.msgTelop {
    white-space: nowrap;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: auto;
    line-height: normal;
}

.reloadIcon {
    /* position: absolute;
    right: 20px;
    top: 6px; */
    width: 22px;
    height: 22px;
    background-image: url(../img/reload.png);
    background-position: center;
    cursor: pointer;
}

#changeMapLabel {
    width: 30px;
    height: 30px;
    line-height: 20px;
    margin-left:2px;
    text-align: center;
    color: #000000;
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-size: 20px;
    border: 1px solid #aaaaaa;
    border-radius: 5px;
    cursor: pointer;
    z-index: 500;
}

/* ********************* */
/* allView.js / unitView.js メイン画面関係 */
/* ********************* */

#all_view {
    display: flex;
    flex-wrap: wrap;
    padding: 0.25em;
    height: 734px;
    overflow-y: auto;
    border: 1px solid #aaaaaa;
}

@media (max-width: 575.98px) {
    #all_view  {
        height: 500px;
    }
}

#unit-view {
    padding: 0 0.25em 0.25em 0.25em;
    height: 734px;
    overflow-y: scroll;
    border: 1px solid #aaaaaa;
    display: none;
}

@media (max-width: 575.98px) {
    #unit-view {
        height: 500px;
    }
}

/* ********************* */
/* allView.js / unitView.js メイン画面関係 */
/* ********************* */

#modal-station-select-area {
    width: 100%;
    max-height: calc(100vh - 10rem);
    overflow-y: hidden;
}

#modal-station-select-area .mainArea {
    clear: both;
    width: 100%;
    height: calc(100vh - 14rem);
    min-height: 220px;
}

#modal-station-select-area .mainArea .table-responsive {
    height: 100%;
    overflow: auto;
}

#modal-station-select-area .mainArea thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

@media (max-width: 575.98px) {
    #modal-station-select-area {
        max-height: calc(100vh - 8rem);
    }

    #modal-station-select-area .mainArea {
        height: calc(100vh - 12rem);
        min-height: 180px;
    }
}

.selectedTab {
    box-sizing: border-box;
    width: 50%;
    margin-left:0;
}

@media (max-width: 575.98px) {
    .selectedTab {
        width: 50%;
        margin-left:0;
    }
}

.one-line-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.two-line-ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
