
::-webkit-scrollbar {
    display: none;
  }
  
  html, body {
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }  

body{
    margin: 0;
    display: flex;
    flex-direction: column;
}

#map {
    width: 100%;
    height: calc(100dvh - 100px);
    background-color: white;
    position: relative; /* z-indexを適用するためにpositionを設定 */
    z-index: 1; /* map要素のz-indexを設定 */
}

.map-title{
    text-align: center;
    font-size: 0.95em;
    margin: 0;

     /* 背景だけ透明化 */
  background-color: rgb(255 255 255 / 50%); 
  padding-top: 10px;     /* ↑ 上の余白を追加 */
  padding-bottom: 3px;  /* ↓ 下の余白を追加 */

 
  border-radius: 0px;
 position: absolute;
        /* 必要に応じて微調整 */
  left: 50%;
  transform: translateX(-50%); /* 横中央固定 */
  z-index: 10;
     width: 100%;
 box-sizing: border-box;    /* padding含めて width を管理 */
}

.root-title p:first-child {
    margin-bottom:5px;
}

.root-title{
  font-weight: 500;
  background-color: rgb(255 255 255 / 50%); /* 半透明の白背景 */

  padding: 11px 50px;        /* 上下左右に余白 */
  border-radius: 0;          /* 角丸不要なら0、必要なら調整 */
  box-sizing: border-box;    /* padding含めて width を管理 */

  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;               /* ← 横いっぱいに広げる */
  z-index: 10;
}

.menu-container {
    margin: 0 16px;
    font-weight: 700;
    margin-top:12px;
}


.menu-item {
    cursor: pointer;
    padding: 12px 15px;
    color: #fff;
    outline: none;
    width: 100%;
    margin-bottom: 10px;
    padding-bottom : 10px;
    font-size: 1.1em;
}

.menu-item.green {
    background-color: #00984a;
}

.menu-item.blue {
    background-color: #0066cc;
}

.menu-button.arrow::after{
    content: "▾";
    float: right;
    transition: transform 0.3s;
}

.menu-button.active::after{
    transform: rotate(180deg);
}

.menu-item::after {
    content: "▾";
    float: right;
    transition: transform 0.3s;
}

.menu-item.active::after {
    transform: rotate(180deg);
}

.menu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 15px;
}

.menu-button {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    text-align: left;
    color: #fff;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.menu-button.blue {
    background-color: #0066cc;
}

.menu-button.lightgreen {
    color: black;
    background-color: rgb(217, 242, 208);
}

.dropdown {
    flex: 1;
    border: 2px solid green;
    border-radius: 4px;
    font-size: 14px;
}

.dropdown select {
    width: 100%;
    padding: 5px;
    font-size: 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    appearance: none;
}


.search-button {
    border: 2px solid green;
    background-color: #00a651;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.license{
    font-size: 8px;
    text-align: left;
    padding: 0 16px;
    flex-grow: 1;
    flex-direction: column;
    display: flex;
    justify-content: center;
    margin-top:16px;
}

.license p {
    margin-bottom:5px;
}

/*
.license p:last-child {
    margin-bottom:0px;
    line-height: 12px;
    position: relative;
    top: -3px;
}
*/

.information {
    font-size: 14px;
    text-align: left;
    padding: 0 16px;
    flex-grow: 1;
    flex-direction: column;
    display: flex;
    justify-content: center;
    margin-top:16px;
}

.information p {
    margin-bottom:5px;
}

/*
.information p:last-child {
    margin-bottom:0px;
    line-height: 12px;
    position: relative;
    top: -3px;
}
*/


.dropdown{
    border: 2px solid #00A55A;
    padding: 5px;
    width: 60px;
    appearance: none; 
    -webkit-appearance: none; 
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>'); /* カスタム矢印 */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    font-size: 16px;
    cursor: pointer;
}

.search-btn {
    width: 50px;
    height: 30px;
    color: white;
    background-color: #00A55A;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
}

/*
.search-btn::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
}

.search-btn::after {
    content: "";
    width: 6px;
    height: 2px;
    background-color: white;
    position: absolute;
    transform: rotate(45deg);
    top: 65%;
    left: 60%;
}
*/

.dropdown-container {
    height: 40;
    overflow: hidden;
    gap: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    transition: max-height 0.3s ease-out;
    gap: 10px;
}

.dropdown-container p{
    font-size: 10px;
    font-weight: 500;
    position: relative;
    left: -6px;
}


.switch-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: Arial, sans-serif;
    padding: 10px;
}

.switch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.switch-toggle {
    position: relative;
    width: 40px;
    height: 20px;
}

.switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-left{
    display: flex;
    align-items: center;
}

.switch-left p{
    margin-left:15px;
}

.switch-input:checked + .switch-slider {
    background-color: #4CAF50;
}

.switch-input:checked + .switch-slider::before {
    transform: translateX(20px);
}

img{
    width:25px
}

.custom-switch {
    position: relative;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-switch .switch-slider {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    background-color: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
}

.custom-switch[data-state="on"] {
    background-color: #4CAF50;
}

.custom-switch[data-state="on"] .switch-slider {
    transform: translateX(20px);
}


.custom-arrow-icon .arrow {
    transform-origin: 20.5px 20.5px;
    transition: transform 0.1s ease; /* アニメーション */
}


 /* 現在地アイコン色変更 */
.diy-arrow{
    background: linear-gradient(to bottom, rgb(26 0 234) 18%, rgb(27 0 226 /0%) 100%);
    width: 36px;
    height: 34px;
    opacity: 40%;
    clip-path: polygon(0 0, 100% 0, 65% 100%, 33% 100%);
    position: relative;
    top: 9px;
    z-index: 0;
    left: -12px;
}



.diy-round-arrow{
    width: 12px;
    height: 12px;
    background: #1B00E2;
    border-radius: 50%;
    border: 1.5px #ffffff solid;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒い背景 */
    z-index: 9999; /* ダイアログの背面に表示 */
}

#dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10000; /* オーバーレイの上に表示 */
}

#dialog button {
    margin-top: 10px;
}
/* コンパスアイコン */
.leaflet-control-compass {
  background-color: rgb(245 206 206 / 0%);
  padding: 5px;
  border-radius: 4px;
     top: 95px;
}
/* ズームイン・アウトボタン */
.leaflet-control-zoom {
  top: 95px !important; 
}

.menu {
  position: absolute;
  z-index: 20000;
  background-color: #fff;
  padding: 0px;
  bottom: 0px;
  width: 100%;
}

.tab {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.tab_menu {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 80px;
  padding: 0;
  margin: 0;
}

.tab_menu-item {
  width: calc(100%/4);
  height: 80px;
  list-style: none;
  padding: 0;
  text-align: center;
  margin: 0;
  background-color: #ECF8E7;
  cursor: pointer;
}

.tab_menu_text {
  font-size: 15px;
}

#tab1 {
  background-image: url(../icon/destination.png);
  background-repeat: no-repeat;
  background-size: 30px;
  background-position: top 10px center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tab1.is-active {
  background-image: url(../icon/destination_white.png);
  background-color: #22B14C;
}

#tab2 {
  background-image: url(../icon/facility.png);
  background-repeat: no-repeat;
  background-size: 30px;
  background-position: top 10px center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tab2.is-active {
  background-image: url(../icon/facility_white.png);
  background-color: #22B14C;
}

#tab3 {
  background-image: url(../icon/center.png);
  background-repeat: no-repeat;
  background-size: 30px;
  background-position: top 10px center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tab4 {
  background-image: url(../icon/information.png);
  background-repeat: no-repeat;
  background-size: 30px;
  background-position: top 10px center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tab4.is-active {
  background-image: url(../icon/information_white.png);
  background-color: #22B14C;
}

.tab_menu-item > p.line1 {
  bottom: 8px;
  position: absolute;
  margin: 0 auto;
}

.tab_menu-item > p.line2 {
  bottom: 0;
  position: absolute;
  margin: 0 auto;
}

.tab_menu-item > p {
  color: rgb(109, 121, 104);
}

.tab_menu-item.is-active > p {
  color: rgb(250, 250, 250);
}

.tab_panel {
  margin: 0;
  padding: 0;
  height: 0px;
  transition-duration: 0.5s; 
}

.tab_panel:has(.is-show) {
  height: calc(100vh - 173px);
}

.tab_panel-box {
  /* height: 60vh; */
  overflow: auto;
  display: none;
}

.tab_panel-box.is-show {
  display: block;
  height: 75vh;
}

.hide {
  display: none;
}

.close-btn_panel {
  width: 100%;
  display: flex;
  align-items: right;
  text-align: right;
}

.close-btn {
  padding: 10px;
  right: 0px;
  margin: 0 0 0 auto;
}

