body {
  font-family: "Roboto", "Hiragino Sans", "Meiryo", "Hiragino Kaku Gothic ProN",
    sans-serif !important;
  margin: 0px;
  color: #000;
  background-color: #fff;
}

* {
  box-sizing: border-box;
}
.navbar {
  /* height:65px !important; */
  margin: 0px !important;
  /* background-color: #f8f9fa !important; */
  border: 1px solid #000 !important;
  box-shadow:
    0 0 10px #364d5d,
    inset -1.5px -1.5px 2px #828c97 !important;
  position: fixed !important;
  top: 0px !important;
  width: 100%;
  z-index: 100 !important;
}
/* 
.navbar-collapse.collapsing,
.navbar-collapse.show {
	background-color: #f8f9fa !important;
	text-align: right !important;
	padding-right: 8px !important;
} */

/* Bootstrap modifications */
.btn:focus,
.btn:active {
  outline: none !important;
  box-shadow: none;
}
.form-check:focus,
.form-check:active {
  outline: none !important;
  box-shadow: none;
}
/*
.tooltip-inner {
    max-width: 1000px !important;
	text-align: left !important;
}*/
.modal-content {
  background: #f8f9fa !important;
  border-radius: 5px !important;
  border: 1px solid #000 !important;
  box-shadow:
    0 0 10px #364d5d,
    inset -1.5px -1.5px 2px #828c97 !important;
  /* text-shadow:1px 1px 0px #12446d !important; */
}
.modal-body ul li a:link,
.modal-body ul li a:visited {
  color: #fff;
}
.modal-body ul li a:hover {
  color: #f5e356;
}

/* Leaflet Principal Map Area */
#map_area {
  position: absolute;
  bottom: 0;
  top: 84px;
  left: 0;
  right: 0;
  z-index: 0;
  background: #fff;
}
#dup_map_area {
  position: absolute;
  bottom: 0;
  top: 84px;
  left: 50%;
  right: 0;
  z-index: 1;
  display: none;
  border-left: 10px solid #f8f9fa;
}
#smallMap {
  border: 1px solid #000 !important;
  background: #fff;
  height: 60vh;
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
  z-index: 10;
}
#mapOverlay {
  position: absolute;
  width: 100%;
  height: 100%;
  margin-top: -60vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: block;
}

/* Leaflet Controls */
.ctl {
  padding: 5px;
  background: #f8f9fa !important;
  border-radius: 5px;
  text-align: center;
  color: #000;
  border: 1px solid #000;
  box-shadow:
    0 0 10px #364d5d,
    inset -1.5px -1.5px 2px #828c97 !important;
  right: 0;
}
.title {
  font-family: "Roboto", "Hiragino Sans", "Meiryo", "Hiragino Kaku Gothic ProN",
    sans-serif !important;
  width: 360px;
}
.title i {
  font-size: 25px !important;
}

.hh1 {
  font-size: 18px;
  line-height: 95%;
  font-weight: bold;
  margin-top: auto;
  margin-bottom: auto;
}
.hh2 {
  font-size: 14px;
  text-align: left;
}
.title2 {
  font-family: "Roboto", "Hiragino Sans", "Meiryo", "Hiragino Kaku Gothic ProN",
    sans-serif !important;
  width: 360px;
  color: #8c8c8c;
  background: #e1e6ea;
}
.colorbar img,
.colorbar2 img {
  image-rendering: -webkit-optimize-contrast;
  width: 348px;
}
.colorbar,
.colorbar2 {
  background: #f8f9fa !important;
}
/* Leaflet Zoom Controls */
.leaflet-control-zoom.leaflet-bar.leaflet-control {
  border-radius: 5px !important;
  border: 1px solid #000 !important;
  box-shadow:
    0 0 10px #364d5d,
    inset -1.5px -1.5px 2px #828c97 !important;
  padding: 5px !important;
  background: #f8f9fa !important;
  height: 40px !important;
}
.leaflet-control-zoom.leaflet-bar.leaflet-control > a {
  border-radius: 5px !important;
  float: right;
  background: #f8f9fa !important;
  border-bottom-width: 0px;
  font-size: 28px !important;
  width: 32px !important;
  margin-bottom: 5px !important;
}
.leaflet-control-zoom.leaflet-bar.leaflet-control > a:hover {
  background-color: #c7ccd1 !important;
}
/* Leaflet Control Layer Settings  and Downloads Buttons */
.settingsBtn,
.downloadsBtn {
  height: 40px;
  width: auto;
}
.settingsBtn > button {
  font-size: 22px;
  padding: 2px !important;
  text-align: center !important;
}
.downloadsBtn > button {
  font-size: 22px;
  padding: 2px 6px !important;
  text-align: center !important;
}
.settingsBtn > button:hover,
.downloadsBtn > button:hover {
  background-color: #c7ccd1 !important;
}
#gotodownloads:disabled {
  border: 0px solid #000 !important;
  opacity: 0.4 !important;
}

/* Control buttons for map comparison */
.easy-button-container {
  background: #f8f9fa !important;
  border-radius: 5px !important;
  border: 1px solid #000 !important;
  box-shadow:
    0 0 10px #364d5d,
    inset -1.5px -1.5px 2px #828c97 !important;
  height: 40px !important;
  padding: 5px !important;
}
.leaflet-bar.easy-button-container.leaflet-control > button {
  border-radius: 5px !important;
  clear: none;
  float: left;
  width: 32px;
  border-bottom-width: 0px;
  font-size: 22px;
  padding-bottom: 0px;
  height: 28;
}
.leaflet-bar.easy-button-container.leaflet-control > button:nth-child(2),
.leaflet-bar.easy-button-container.leaflet-control > button:nth-child(3) {
  padding-left: 4px !important;
  padding-right: 8px !important;
}
.leaflet-bar.easy-button-container.leaflet-control > button:hover {
  background-color: #c7ccd1 !important;
}
.leaflet-bar.easy-button-container.leaflet-control > button.disabled:hover {
  background-color: #fff;
}
/* On map popup window (no tip) */
.leaflet-popup-tip {
  background: rgba(0, 0, 0, 0) !important;
  border: 1px solid rgba(0, 0, 0, 0) !important;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0) !important;
  /* box-shadow: 0 0 10px #364d5d, inset -2px -2px 3px #7cb8e9 !important; */
}
.leaflet-popup-content-wrapper {
  background: #f8f9fa !important;
  border-radius: 5px !important;
  text-align: left !important;
  color: #000 !important;
  border: 1px solid #000 !important;
  box-shadow:
    0 0 10px #364d5d,
    inset -1.5px -1.5px 2px #828c97 !important;
}
.leaflet-popup-content {
  font-size: 0.75rem !important;
  margin: 2px !important;
  padding: 10px !important;
  background: #f8f9fa !important;
  border: 0px !important;
  text-align: left !important;
  min-width: 15vh !important;
}
.leaflet-popup-content img {
  background: #fff !important;
  /* border: 1px solid #7cb8e9 !important; */
}
.leaflet-popup-close-button {
  margin-right: 3px !important;
  margin-top: 1px !important;
  color: #000 !important;
  font-size: 20px !important;
}
/* Elements inside the Layer Settings Modal */
#box_title {
  line-height: 26px;
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  padding: 0 0 5px 0;
}
.option_label {
  font-size: 16px;
  font-weight: 400;
  /* text-shadow:1px 1px 0px #12446d; */
  margin: 4px 0 5px 4px;
  width: 100%;
}
.select-wrap {
  overflow: hidden;
  padding: 0;
  margin: 0 0 0 3px;
  text-align: center;
  position: relative;
  border: 2px solid #97a6b5;
  border-radius: 2px;
  background: #ffffff;
}
.select-wrap select {
  width: 100%;
  margin: 0;
  padding: 3px 6px 3px 0;
  cursor: pointer;
  text-indent: 2px;
  text-overflow: ellipsis;
  font-size: 14px;
  border: none;
  outline: none;
  background: transparent;
  background-image: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.select-wrap select::-ms-expand {
  display: none;
  padding: 4px 38px 4px 4px;
  color: #000000;
}
.select-wrap::before {
  position: absolute;
  top: 7px;
  right: 5px;
  width: 0;
  height: 0;
  padding: 0;
  content: "";
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #666666;
  pointer-events: none;
}
select:disabled {
  color: #666666;
  background: #ccc;
}
.form-check-input:checked {
  background-color: #7cb8e9 !important;
  border-color: #7cb8e9 !important;
}

/*Downloads modal settings */
#inputMethods {
  border-radius: 5px !important;
  border: 1px solid #000 !important;
  box-shadow:
    0 0 10px #364d5d,
    inset -1.5px -1.5px 2px #828c97 !important;
  padding: 10px;
  max-height: 28vh; /* 28% of the visible window height */
  overflow-y: auto;
}
#inputTableBody td,
#fetchedTableBody td {
  padding: 0.3rem;
}
/*Resposive setups*/
@media screen and (max-width: 991.98px) {
  #map_area {
    bottom: 0;
    top: 57px;
    left: 0;
    right: 0;
  }
  .box_title {
    line-height: 22px;
    font-size: 16px;
  }

  .select-wrap select {
    font-size: 10px;
  }
  .option_label {
    font-size: 13px;
  }
  .title {
    max-width: 500px;
    font-size: 16px;
    line-height: 20px;
  }
  .offcanvas {
    width: 320px !important;
  }

  .info-link {
    color: #00aaff;
    text-decoration: none;
    font-family: sans-serif;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .info-link:hover {
    text-decoration: underline;
  }

  .info-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    background-color: #00aaff; /* 背景色 */
    color: white; /* 文字色 */
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
    font-family: sans-serif;
    flex-shrink: 0;
    overflow: visible; /* 明示的に表示させる */
  }
}
