* ,*::before,*::after{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/*color*/
:root {
  --themeyellow:#EFD669;
  --themered:#AE3923;
  --themewhite: #F3F0EB;
  --themebeige: #C0A17B;
  --themeblack: #3E3A39;
  --beige40: #e6d9ca;

  --booth: #B89F36;
  --field:#cf8342;
  --indoor: #345c70;
  --stage: #7da4ae;
  --sympo: #5a7444;
  --decoration: #b4534b;
}


body {
  margin: 0;
  overflow: hidden;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

p, button, h2, a{
  font-family:"Shippori Mincho", serif;
  font-weight:400;
  font-style:normal;
}

h2{
  font-size:15px;
  font-weight:bold;
  line-height:1.3;
  color:#3e3a39;
}

/* ズームレベル表示用のスタイル */
#zoom-level-display {
  position: absolute;
  top: 120px; /* 他のボタンと重ならないように調整 */
  right: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  padding: 5px 10px;
  font-family: monospace, sans-serif;
  font-size: 14px;
  border-radius: 4px;
  z-index: 500; /* 他のUIより手前に表示 */
}

/*トップページに戻るロゴ*/
.iks-logo{
  height:30px;
  position:absolute;
  top:15px;
  left:15px;
  display:inline-block;
  z-index:500;
}

.iks-logo-img{
  width:100%;
  height:100%;
}

/* zoomレベル17.5以上になったら一瞬出現するやつ */

.zoom-message {
  position: fixed; 
  width:75%;
  top: 50px; 
  left: 50%; 
  transform: translateX(-50%); 
  background-color: rgba(243, 240, 235, 0.85);
  color: var(--themeblack); 
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  z-index: 1001; 
  opacity: 0; 
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
}

.zoom-message.active {
  opacity: 1;
  visibility: visible; 
}

/*モーダル*/

/* モーダルを開くボタンのスタイル */
.open-modal {
  position: absolute;
  top: 50px; 
  left: 15px; 
  width: 30px; 
  height: 30px;
  font-size: 18px; 
  font-weight: bold;
  color: #3e3a39;
  background: #f4f5f7;
  border: 1px solid #3e3a39; 
  border-radius: 20px; 
  cursor: pointer; 
  z-index:500;
}

/* モーダルウィンドウの基本スタイル */
.modal {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; 
  background-color: rgba(0, 0, 0, 0.4);
  z-index:1000;
}

.modal-content {
  position: fixed; 
  top: 50%;
  left: 50%; 
  max-width:500px;
  transform: translate(-50%, -50%); 
  padding: 20px;
  width: 70%;
  height: 70%;
  background-color: var(--themewhite); 
  border: 1px solid #888; 
  overflow:scroll;
}

.modal-content::-webkit-scrollbar {
  width: 12px; /* 横幅 */
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--beige40); /* ハンドルの色 */
  border-radius:10px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--themewhite); /* 背景色 */
}

.modal-content::-webkit-scrollbar-corner {
  background: var(--themewhite); /* 背景色 */
}

.modal_title{
  font-size:15px;
  font-weight:600;
  color:var(--themeblack);
  margin-top:-25px;

}

.modal_title span{
  font-size:17px;
  color:var(--themered);
}

.modal_midashi{
  font-size:13px;
  color:var(--themeblack);
  border-bottom:1px solid var(--themered);
  margin-top:10px;
  margin-bottom:5px;
}

.hanrei_wrapper{
  display:flex;
  flex-wrap:wrap;
  flex-direction:row;
}

.hanrei_content{
  width:calc(100% / 3);
  display:flex;
  flex-direction:column;
  justify-content:center;
  margin-top:5px;
  margin-bottom:5px;
}

.hanrei_img{
  width:20px;
  height:20px;
  margin:0 auto;
}

.hanrei_name{
  font-size:11px;
  text-align:center;
}

.pin_wrapper{
  display:flex;
  width:100%;
  flex-direction:row;
  margin-top:10px;
}

.pin_content{
  display:flex;
  flex-direction:column;
  width:calc(100% / 3);
  justify-content:center;
}

.circle{
  width:15px;
  height:15px;
  border-radius:30px;
  background-color:var(--themered);
  margin:0 auto;
}

.square{
  width:15px;
  height:15px;
  background-color:var(--themered);
  margin:0 auto;
}

.triangle{
  height: calc(tan(60deg) * (20px / 2)) !important;
  width: 20px !important;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius:0%;
  padding-top:5px;
  background-color:var(--themered);
  margin:0 auto;
}

.prj{
  font-size:13px;
  text-align:center;
  margin-top:5px;
  color:var(--themeblack);
}

.modal ul{
  padding-left: 10%;
}

.modal li{
  font-size:11px;
  font-family:"Shippori Mincho", serif;
  font-weight:400;
  font-style:normal;
  margin-top:5px;
  text-align:justify;
}

/* モーダルを閉じるボタン（×）のスタイル */
#closeModal {
  position: sticky; 
  display: flex; 
  justify-content: center;
  top: 0%;
  left:100%;
  font-size: 20px;
  font-weight: bold; 
  cursor: pointer;
  color: var(--themewhite);
  width: 30px;
  height: 30px;
  background-color: var(--themered);
  border: #333;
  border-radius: 50%;
}

.modal_close_1{
  position:absolute;
  width:20px;
  height:3px;
  border-radius:10px;
  transform:rotate(45deg);
  top:14px;
  right:4.5px;
  background-color:var(--themewhite);
}

.modal_close_2{
  position:absolute;
  width:20px;
  height:3px;
  border-radius:10px;
  transform:rotate(-45deg);
  top:14px;
  right:4.5px;
  background-color:var(--themewhite);
}

/*検索ボックス*/
#search-ui{
  position:fixed;
  top:10px;
  left:50px;
  display:flex;
  z-index:10;
}

#search-box{
  padding:10px 0px 10px 15px;
  width:15rem;
  border:2px solid #f0d763;
  border-radius:35px;
  background:rgb(244,241,236,0.85);
  filter:drop-shadow(0 0 3px rgba(0, 0, 0, 0.25));
}

#search-btn{
  background-image:url("https://ikkyosai.com/visitor/56/experiment/map/img/search-img.png");
  width:25px;
  height:25px;
  background-size:cover;
  background-repeat:no-repeat;
  position:absolute;
  top:8px;
  right:10px;
  border:transparent;
  background-color:rgb(244,241,236,0);
}

/* サイドパネル */
.filter-panel {
  position: fixed;
  top: 60px;
  right: -350px;
  width: 350px;
  height: 100%;
  background: var(--themewhite);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding-bottom:50px;
  border-top:2px solid var(--themeblack);
}

.filter-panel.active {
  right: 0;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--themered);
}

#clear-filters-btn {
  background: #f8f9fa;
  border: none;
  padding: 6px 12px;
  border-radius: 100px;
  border:1px solid #ccc;
  color:#333;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.filter-title{
  display:flex;
  justify-content:space-between;
}

#filter-btn{
  font-size:15px;
  width:60px;
  height:30px;
  line-height:15px;
  background-color:var(--themered);
  color:var(--themewhite);
  text-align:center;
  border:1px solid var(--themewhite);
  border-radius:30px;
}

#clear-filters-btn:hover {
  background: #d0d0d0;
}

.filter-section {
  padding: 15px;
  border-bottom:1px solid var(--themered);
}

.filter-section h3{
  font-size:16px;
  font-weight:700;
  font-family:"Shippori Mincho", serif;
  color:var(--themered);
  margin:0;
  display:flex;
  align-items:center;
  gap:8px;
}

.genre-icon{
  width:20px;
  height:20px;
  flex-shrink:0;
  filter: hue-rotate(0deg) saturate(1.2) brightness(0.7) contrast(1.1);
}


.filter-section h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  padding: 6px 10px;
  font-size:12px;
  background: #f8f9fa;
  color: var(--themered);
  border-radius: 100px;
  cursor: pointer;
  border:1px solid var(--themewhite);
}

.filter-btn.active {
  background: var(--themered);
  color: var(--themewhite);
}

#filter-close{
  width:30px;
  height:30px;
  background-color:var(--themeblack);
  color:var(--themewhite);
  border-radius:30px;
  position:relative;
}

.filter_close_1{
  position:absolute;
  width:17px;
  height:2px;
  border-radius:10px;
  transform:rotate(45deg);
  top:13px;
  right:5px;
  background-color:var(--themewhite);
}

.filter_close_2{
  position:absolute;
  width:17px;
  height:2px;
  border-radius:10px;
  transform:rotate(-45deg);
  top:13px;
  right:5px;
  background-color:var(--themewhite);
}

.select-all-btn {
  margin-left: 10px;
  background: #f8f9fa;
  color: var(--themered);
  border: 1px solid var(--themered);
  padding: 3px 8px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 10px;
  height:23px;
}

.select-all-btn:hover {
  background: var(--themered);
  color:#f8f9fa;
}

/*ホーム画面のCSS*/
.title_anchor_wrapper{
  display:flex;
  width:100%;
  flex-direction:row;
}

.title_anchor_content{
  display:flex;
  flex-direction:column;
  justify-content:center;
  width:35%;
  margin-right:7.5%;
  margin-left:7.5%;
  border:1px solid var(--themered);
  text-decoration:none;
}

.title_anchor_content:hover{
  opacity:0.8;
}

.title_anchor_img{
  width:30px;
  height:30px;
  display:block;
  margin:0 auto;
  padding-top:5px;
}

.title_anchor_text{
  font-size:12px;
  color:var(--themeblack);
  text-align:center;
  margin-top:5px;
  margin-bottom:5px;
}


.home-anchor{
  display:flex;
  flex-direction:row;
  overflow:scroll;
  margin-bottom:15px;
}

.home-anchor::-webkit-scrollbar{
  display:none;
}

.anchor_content{
  border:1px solid var(--themered);
  background-color:#f8f9fa;
  text-align:center;
  text-wrap:nowrap;
  padding:3px 7px;
  margin:1px 5px;
  border-radius:30px;
  height:28px;
  line-height:20px;
  font-size:14px;
}

.anchor_content a{
  text-decoration:none;
  color:var(--themeblack);
}

.timetable-block{
  margin-top:40px;
}

.timetable-title{
  font-family:"Shippori Mincho", serif;
  font-weight:600;
  font-size:16px;
  padding-left:10px;
  width:100%;
  display:inline-block;
  position:relative;
  border-bottom:2.5px solid var(--themered);
  color:var(--themered);
  margin-top:20px;
  margin-bottom:20px;
}

.timetable-title::before{
  content: "";
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 1.2px;
  background: linear-gradient(90deg, #ae3923, #f3f0eb);
  z-index: -1;
}

.timetable-header{
  position:relative;
}

.timetable_text{
  margin-top:5px;
  margin-bottom:5px;
  position:relative;
}

.prj_none{
  font-size:12px;
  margin-top:8px;
  margin-bottom:8px;
}

.h3_wrapper{
  display: flex;
  flex-direction: row;
  position: relative;
  align-items: center;
}

.h3_circle{
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: solid 1px var(--themered);
}

.h3_circle::before{
  content: "";
  position: absolute;
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--themered);
  top: -1px;
  left: 7px;
}

.h3_wrapper p{
  position: relative;
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--themeblack);
  padding-left: 8px;
  margin-bottom:5px;
  margin-top:5px;
}

.goto-building-btn{
  display:block;
  border:1px solid #ae3923;
  background:#e6d9ca;
  text-align:center;
  width:110px;
  height:25px;
  line-height:20px;
  margin-left:10px;
  border-radius:20px;
  text-decoration:none;
  color:#3e3a39;
  position:absolute;
  top:5px;
  right:0px;
  padding-left:30px;
  cursor:pointer;
}

.goto-building-btn:hover{
  opacity:0.8;
}

/* map.css に追記 */

/* ホーム画面のおすすめ企画リンク */
.recommended-title{
  font-family:"Shippori Mincho", serif;
  font-weight:600;
  font-size:16px;
  padding-left:10px;
  width:100%;
  display:inline-block;
  position:relative;
  border-bottom:2.5px solid var(--themered);
  color:var(--themered);
  margin-top:20px;
  margin-bottom:20px;
}

.recommended-title::before{
  content: "";
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 1.2px;
  background: linear-gradient(90deg, #ae3923, #f3f0eb);
  z-index: -1;
}

#recommended-links {
  padding: 0 20px 10px 20px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 10px;
}

.recommended-link {
  margin:10px 0;
  padding-left:5px;
  border-bottom:1px solid var(--themered);
  font-size:13px;
  width:90%;
  position:relative;
    cursor:pointer;
}

.recommended-link:hover{
  opacity:0.8;
}

.recommended-link.academic{
  border-bottom:1px solid var(--booth);
}

.recommended-link.academic::before{
  border-bottom:1px solid var(--booth);
}

.recommended-link.juken{
  border-bottom:1px solid var(--decoration);
}

.recommended-link.juken::before{
  border-bottom:1px solid var(--decoration);
}

.recommended-link.child{
  border-bottom:1px solid var(--indoor);
}

.recommended-link.child::before{
  border-bottom:1px solid var(--indoor);
}

.recommended-link.student{
  border-bottom:1px solid var(--sympo);
}

.recommended-link.student::before{
  border-bottom:1px solid var(--sympo);
}

.recommended-link.local{
  border-bottom:1px solid var(--stage);
}

.recommended-link.local::before{
  border-bottom:1px solid var(--stage);
}

.recommended-link::before{
  content:"";
  width:15px;
  height:15px;
  border-bottom:1px solid var(--themered);
  position:absolute;
  top: 2px;
  right:-7px;
  transform:rotate(45deg);
}



.map_img{
  width:15px;
  height:15px;
  margin-right:5px;
  position:absolute;
  top:3px;
  left:14px;
}

/* ボトムシート */
#bottom-sheet {
  position: fixed;
  left: 0;
  width: 100%;
  height: 40%;
  bottom: 0;
  background: rgb(244,241,236);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
  touch-action: none;
  transition: height 0.3s ease;
  display: flex;
  flex-direction: column;
  z-index:998;
}

#handle_wrapper{
  display:flex;
  justify-content:center;
  padding:14px 0;
}

#handle {
  width: 60px;
  height:7px;
  background: #3e3a39;
  border-radius: 3px;
}


/*メニューに戻る*/
#back-to-menu{
  width:25px;
  height:25px;
  border-radius:30px;
  border:1px solid #ae3923;
  background-color:rgb(244,241,236);
  position:fixed;
  margin-top:-20px;
  margin-left:-30px;
  cursor:pointer;
}

.back1{
  width:10px;
  height:2px;
  background-color:#ae3923;
  border-radius:10px;
  transform:rotate(45deg);
  position:absolute;
  top:14px;
  left:6px;
}

.back2{
  width:10px;
  height:2px;
  background-color:#ae3923;
  border-radius:10px;
  transform:rotate(-45deg);
  position:absolute;
  top:8px;
  left:6px;
}

.button_wrap{
  position:relative;
}

/*他の～の企画も見る*/
#show-all-building{
  display:block;
  border:1px solid #ae3923;
  background:#e6d9ca;
  text-align:center;
  height:25px;
  line-height:23px;
  margin-left:10px;
  border-radius:20px;
  text-decoration:none;
  color:#3e3a39;
  padding:0 8px;
  margin:0 auto;
}

/*タイムテーブルに飛ぶボタン*/

/*屋内の地図を見るボタン*/
#g-nav{
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position:fixed;
  z-index: 999;
    /*ナビのスタート位置と形状*/
	top:0;
  right: -120%;
	width:100%;
  height: 100vh;/*ナビの高さ*/
	background:#f9f8f4;
    /*動き*/
	transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive{
  right: 0;
}

/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list{
    /*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  z-index: 999; 
  width: 100%;
  height: 100vh;/*表示する高さ*/
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/*========= ボタンのためのCSS ===============*/
.openbtn{
	position:absolute;
  font-size:13px;
	top:-50px;
	right: -10px;
	cursor: pointer;
  text-align:center;
  border:1px solid #ae3923;
  font-family:"Shippori Mincho", serif;
  font-weight:400;
  font-style:normal;
  width:140px;
  height:25px;
  line-height:23px;
  border-radius:30px;
  color:var(--themeblack);
  cursor:pointer;
}

.openbtn:hover{
  opacity:0.8;
}

.button_timetable{
	position:absolute;
  font-size:13px;
	top:-15px;
	right: -10px;
	cursor: pointer;
  text-align:center;
  border:1px solid #ae3923;
  font-family:"Shippori Mincho", serif;
  font-weight:400;
  font-style:normal;
  width:140px;
  height:25px;
  line-height:23px;
  border-radius:30px;
  text-decoration:none;
  color:var(--themeblack);
}

.button_timetable:hover{
  opacity:0.8;
}

.kanematsu-button{
  top:-30px;
  right:-20px;
}

.kanematsu-stage-button{
  top:-30px;
  right:-20px;
}

.houzin-button{
  top:-59px;
}

.intelligent-button{
  top:-59px;
}

.closebtn{
  position:absolute;
  width:35px;
  height:35px;
  border-radius:25px;
  background-color:var(--themeblack);
  top:20px;
  left:20px;
}

.close1{
  position:absolute;
  top:21px;
  right:11px;
  width:15px;
  height:3px;
  border-radius:10px;
  background-color:var(--themewhite);
  transform:rotate(45deg);
}

.close2{
  position:absolute;
  top:12px;
  right:11px;
  width:15px;
  height:3px;
  border-radius:10px;
  background-color:var(--themewhite);
  transform:rotate(-45deg);
}

.indoormap_img{
  width:80%;
  margin-right:10%;
  margin-left:10%;
}

	

/*DBクリック時*/
.content {
  padding: 10px 40px;
  overflow-y: auto;
}

.content::-webkit-scrollbar{
  display:none;
}

.content h2{
  margin-top:0px;
  margin-bottom:10px;
}

.tab-group{
  border-bottom:3px solid var(--themered);
}

.prj_wrapper{
    width: 310px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 0;
    position: relative;
    margin: 10px 0;
    transition: transform 0.2s ease;
}

.prj_wrapper::after {
    content: "";
    height: 2px;
    width: 100%;
    position: absolute;
    background: var(--themered);
    bottom: 0;
    left: 0;
    transform: scaleY(.5);
}
.card_top{
  display:flex;
  width:100%;
  height:80px;
  gap:10px;
}

.card_surr img{
  width:80px;
  height:80px;
  overflow:hidden;
}

.card_event{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.card_event p:nth-of-type(1) {
    font-size: 15px;
    color: var(--themeblack);
    font-weight: bold;
    font-family: "Shippori Mincho", serif;
    height: 45px;
    line-height: 1.3;
    position: relative;
}

.card_event p:nth-of-type(1)::before {
    content: "";
    height: 1px;
    width: 100%;
    position: absolute;
    bottom: 2px;
    transform: scaleY(.5);
    display: block;
    background: var(--themered);
}

.card_event p:nth-of-type(2) {
    font-size: 12px;
    color: var(--themeblack);
    font-family: "Shippori Mincho", serif;
    line-height: 1.2;
}

.card_event p:nth-of-type(3) {
    font-size: 11px;
    color: var(--themeblack);
    font-family: "Shippori Mincho", serif;
    line-height: 1.1;
}

.card_event p:nth-of-type(4) {
    font-size: 10px;
    color: var(--themeblack);
    font-family: "Shippori Mincho", serif;
    line-height: 1.1;
}

.img_place{
  width:10px;
  height:10px;
}

.card_bottom {
    display: flex;
    gap: 5px;
    position: relative;
    margin-top: 5px;
}

.card_genre, .card_detail {
    display: inline-block;
    padding: 5px 15px;
    background: var(--beige40);
    border-radius: 15px;
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
}

.card_detail{
  background:#f4f5f7;
}

.card_detail:hover{
  opacity:0.8;
}

.card_bottom a,.card_bottom p {
    font-size: 10px;
    color: var(--themered);
    text-decoration:none;
    padding:4px 10px;
    border-radius:30px;
}

.card_bottom a{
  border:1px solid var(--themered);
}

.card-genre-icon {
    width: 16px;
    height: 16px;
    margin-left: -5px;
    flex-shrink: 0;
    filter: hue-rotate(0deg) saturate(1.2) brightness(0.7) contrast(1.1);
}

.card_heart {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 27px;
    z-index: 12;
    cursor: pointer;
}

.card_heart img {
    width: 100%;
    height: 100%;
}

/*建物ピンを押したとき*/
.building_text{
  margin-top:20px !important;
  position:relative;
  padding-left:5px;
}

.building_text::before{
  content:"";
  position:absolute;
  top:4px;
  left:-10px;
  width:12px;
  height:12px;
  border-radius:10px;
  border:1px solid var(--themered);
}

.building_text::after{
  content:"";
  position:absolute;
  top:4px;
  left:-2px;
  width:5px;
  height:5px;
  border-radius:10px;
  background-color:var(--themered);
}

.tab-btn{
  width:50px;
  height:20px;
  line-height:0px;
  background-color:#f8f9fa;
  color:var(--themered);
  font-size:12px;
  border:1px solid #ae3923;
  margin-right:20px;
  margin-bottom:10px;
  border-radius:20px;
}

.tab-btn.active{
  background-color:var(--themered);
  color:#f8f9fa;
}

.floor_text{
  margin-top:10px;
  margin-bottom:4px;
}

.date_text{
  margin-top:5px;
  margin-bottom:4px;
}

.timetable-section h3{
  font-size:16px;
  font-family:"Shippori Mincho", serif;
  font-weight:400;
  font-style:normal;
  color:var(--themeblack);
  position:relative;
  margin-bottom:-12px;
}

.timetable-section .prj_wrapper{
  margin-bottom:20px;
}

.yajirushi_right{
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background-color:var(--themeblack);
  width:15px;
  height:15px;
  display:block;
  position:absolute;
  top:6px;
  left:55px;
}

/* 画像マーカーの親コンテナ */
.custom-image-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

/* 画像マーカーのスタイル */
.marker-image {
  width: 20px;  /* アイコンの幅 */
  height: 20px; /* アイコンの高さ */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position:relative;
  z-index:10;
}

/* テキストラベル部分のスタイル */
.marker-text-label {
  color: #3e3a39;
  font-size: 11px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 4px;
  position:absolute;
  text-wrap:nowrap;
  font-family: "Shippori Mincho", serif;
}

.marker-text-label.honbu{
  left:-11px;
  color:#c30d27
}

.marker-text-label.information{
  left:-30px;
}

.marker-text-label.westgate, .marker-text-label.eastgate{
  font-size:16px;
  left:-35px;
  top:-9px;
}


/* カスタムマーカーの全体 */
.custom-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index:1;
}


/* ラベル部分（タイトル文字） */
.marker-label {
  background: #f3f0eb;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 14px;
  line-height:22px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  margin-bottom: 2px;
  color:#3e3a39;
  font-family:"Shippori Mincho", serif;
  font-weight:600;
  font-style:normal;
  position:relative;
  z-index:30;
}

.custom-marker.is-active .marker-label{
  background:#3e3a39;
  color:#f3f0eb;
}

.db-marker:has(.db-marker-inner[data-forceVisible="true"]) {
  z-index: 1;
}

.db-marker-wrapper:has(.db-marker-inner[data-force-visible="true"]) {
  z-index: 1;
}


.db-marker-inner{
  width:15px;
  height:15px;
  border-radius:50%;
  background-color:#007bff;
  border:1px solid #fff;
  color:white;
  display:flex;
  justify-content:center;
  align-items:center;
  font-weight:bold;
  cursor:pointer;
  font-size:10px;
  transition:all 0.2s ease;
  position:relative;
  z-index:20;
}

.db-marker-inner.field_pin{
  border-radius:0%;
}

.db-marker-inner.deco_pin{
  height: calc(tan(60deg) * (20px / 2)) !important;
  width: 20px !important;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius:0%;
  padding-bottom:3px;
}

.db-marker-inner[data-forceVisible="true"],
.db-marker-inner[data-highlighted="true"] {
  width: 40px !important;
  height: 40px !important;
}


.db-marker-wrapper.active .db-marker-inner {
  text-indent: -9999px; /* 数字を隠す */
  background: url('https://ikkyosai.com/visitor/56/experiment/map/img/pin.png') no-repeat center/contain;
  width: 40px;
  height: 40px;
  border: none;
}

/*ボタン*/
.btn{
  text-align: center;
  margin: 20px 0 30px 0;
  position: relative;
}
.btn a{
  display: inline-block;
  font-family: "Shippori Mincho", serif;
  font-weight: bold;
  font-size: 12px;
  padding: 0.6em 3.5em;
  position: relative;
  transition: all .3s;
  text-decoration:none;
}
.btn span{
    display: inline-block;
    width: 40px;
    height: 1px;
    position: absolute;
    top: 50%;
    right: -13px;
    transition: all .3s;
}
.btn span::after{
  content: "";
  position: absolute;
  height: 1px;
  width: 7px;
  transform:rotate(35deg);
  right: -1px;
  top: -2px;
}
.btn a:hover span{
  right: -26px;
}



.btn_red a{
  color: var(--themered);
  border:1px solid var(--themered);
}
.btn_red span,.btn_red span::after{
  background: var(--themered);
}
.btn_red a:hover{
  background: var(--themered);
  color: var(--themewhite);
}


.c_kougi{
  border:1px solid #009944;
}

.c_honkan{
  border:1px solid #f5cb1d;
}

.c_westplaza{
  border:1px solid #00bbe5;
}

.c_ground{
  border:1px solid #c9a063;
}

.c_stage{
  border:1px solid #154686;
}

.c_library{
  border:1px solid #e94a45;
}

.c_normal{
  border:1px solid #030303;
}

.o_deco .db-marker-inner{
  background-color:#ff7bac;
}

.o_library .db-marker-inner{
  background-color:#c37979;
}

.o_lecture .db-marker-inner{
  background-color:#99b29e;
}

.o_stage .db-marker-inner{
  background-color:#365366;
}

.o_honkan .db-marker-inner{
  background-color:#dbc063;
}

.o_westplaza .db-marker-inner{
  background-color:#88a6ae;
}

.o_ground .db-marker-inner{
  background-color:#c79f62;
}

/* PC表示用のボタンをスマホでは非表示に */
#panel-toggle-btn {
  display: none;
}
/* map.css の末尾に追記 */

.mobile{
  display:inline-block;
}

.pc{
  display:none;
}

@media (max-width: 768px) {
  .filter-panel {
    width: 100%;
    right: -100%;
  }
  .filter-panel.active {
    right: 0;
  }
}

/* --- PC表示用のスタイル (画面幅1024px以上) --- */
@media screen and (min-width: 1024px) {

  .zoom-message{
    width:50%;
  }

  /*絞り込み検索のサイドパネル*/
  .filter-panel{
    right:inherit;
    left:-350px;
  }

  .filter-panel.active{
    right:inherit;
    left:0;
  }

  .modal_title{
    font-size:20px;
  }

  .modal_title span{
    font-size:22px;
  }

  .modal_midashi{
    font-size:18px;
  }

  .hanrei_img{
    width:30px;
    height:30px;
  }

  .hanrei_name{
    font-size:14px;
  }

  .modal li{
    font-size:14px;
  }

  /* サイドパネルの基本スタイル */
  #bottom-sheet {
    position:fixed;
    /* 位置を右側に変更 */
    top: 0;
    right: -400px;
    left: auto;
    bottom: auto;

    /* サイズを変更 */
    width: 460px; /* パネルの幅 */
    height: 100vh; 
    /* 画面の高さに合わせる */

    /* 初期状態では画面外に隠す */
    transform: none;
    transition: transform 0.4s ease; /* スライドアニメーション */
    will-change:transform;

    /* 角丸を左側に変更 */
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 0;
    border-bottom-right-radius:0;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    z-index: 998;
    display: flex; /* ✅ 非表示にしない */
    flex-direction: column;
  }

  /* is-openクラスが付与されたら表示 */
  #bottom-sheet.is-open {
    right: 0;
  }

  /* スマホ用のドラッグハンドルは非表示に */
  #handle_wrapper {
    display: none;
  }

  /* PC用の開閉ボタンのスタイル */
  #panel-toggle-btn {
    display: flex; /* Flexboxで中の矢印を中央揃え */
    align-items: center;
    justify-content: center;
    
    position: absolute; /* 親(bottom-sheet)を基準に配置 */
    top: 50%;
    left: 0; /* 親の左端に配置 */
    transform: translateY(-50%); /* 上下中央揃え */
    
    width: 60px; /* ボタンの幅 */
    height: 80px; /* ボタンの高さ */
    
    background: #f4f1ec;
    border: 1px solid #ae3923;
    cursor: pointer;
    border-radius: 10px 0 0 10px;
    padding: 0;
  }

  /* ボタン内の矢印アイコン */
  #panel-toggle-btn span {
    font-size: 24px;
    color: #3e3a39;
    transition: transform 0.4s ease;
  }

  /* パネルが開いているときは矢印を180度回転 */
  #bottom-sheet.is-open #panel-toggle-btn span {
    transform: rotate(180deg);
  }

  .content{
    padding-top:70px;
    padding-bottom:70px;
    padding-right:75px;
    padding-left:85px;
  }

  #back-to-menu{
    width:50px;
    height:50px;
    margin-top:-42px;
    margin-left:-60px;
  }

  .back1{
    width:25px;
    height:5px;
    top:30px;
    left:10px;
  }

  .back2{
    width:25px;
    height:5px;
    top:15px;
    left:10px;
  }

  .building_text{
    font-size:18px;
  }

  .building_text::before,.building_text::after{
    top:6px;
  }

  .kanematsu-button{
    top:-30px;
    right:-30px;
}

.kanematsu-stage-button{
  top:-65px;
}

.btn a{
  font-size: 16px;

}

.mobile{
  display:none;
}

.pc{
  display:inline-block;
}
}

