/* 全体共通リセットとマップの全画面化 */
html, body,
.page-id-8170 #map,
.page-id-8170 .content,
.page-id-8170 #main,
.page-id-8170 #primary {
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  box-sizing: border-box;
  overflow: hidden;
}

/* bodyの固定（スクロール禁止したい場合） */
.page-id-8170 body {
  overflow: hidden;
}

/* マップ専用divの調整 */
.page-id-8170 #map {
  display: block;
}


/*モバイルフッター＆ヘッダーメニューの非表示（footer.phpで設定しているからなくても多分OK）*/
.mobile-footer-menu,
.navi-menu-button,
.mobile-menu,
.mobile-header-menu {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/*ロゴのサイズ調整*/
img.custom-logo {
  width: 250px;
  background-color: rgba(255, 255, 255, 0.8);
	padding:10px;
	 border-radius: 6px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2); /* お好みで影 */
}


.leaflet-popup-content-wrapper {
  width: 500px;
}

.custom-popup {
  width: 460px; /* 幅を指定 */
  font-size: 16px;
  line-height: 1.5;
}

.custom-popup a {
	text-decoration: none;
}

.custom-popup .name {
  font-size: 20px;
  font-weight: bold;
}

.custom-popup .label {
  font-size: 14px;
		  font-weight: bold;
  display: block;
}

.custom-popup .address,
.custom-popup .classify,
.custom-popup .memo {
  font-size: 16px;
}

.custom-popup .gmap-link {
  font-size: 14px;
  color: #0078d7;
  text-decoration: none;
}

.custom-popup .blog-link {
	  font-size: 16px;
  color: #0078d7;
  text-decoration: none;
}

.custom-popup .gmap-link:hover,
.custom-popup .blog-link:hover {
  text-decoration: underline;
}

.custom-popup img {
  max-width: 350px; /* 画像の最大幅を100%に設定 */
	  display: block; /* インライン要素からブロック要素に変更 */
  margin: 0 auto; /* 左右のマージンを自動で設定して中央に配置 */
}

.custom-popup-station {
  width: 250px; /* 幅を指定 */
  height: 50px; /* 高さを指定 */
  font-size: 16px;
  line-height: 1.5;
}

.custom-popup-station .name {
  font-size:18px;
}

.leaflet-popup-close-button {
  font-size: 30px !important;
  line-height: 30px !important;
  width: 40px !important;
  height: 40px !important;
  text-align: center !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #333 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  z-index: 10000 !important; /* 念のため */
}

/* popupの広告部分 */
.tabelog{
	  display: inline-block;
  padding: 10px 20px;
  background-color: #FFAA00;
	color: #ffffff;
  text-decoration: none;
  border: solid 1px black;
  border-radius: 5px;
}

.jalan{
	  display: inline-block;
  padding: 10px 20px;
  background-color: #FF7A15;
		color: #ffffff;
  text-decoration: none;
  border: solid 1px black;
  border-radius: 5px;
}

.rakuten{
	  display: inline-block;
  padding: 10px 20px;
  background-color: #00B900;
		color: #ffffff;
  text-decoration: none;
  border: solid 1px black;
  border-radius: 5px;
}

.tabelog a, .jalan a, .rakuten a {
  color: white !important; /* リンクの文字色を白色に強制設定 */
}

/* メニューの隠す／表示切り替え用クラス */
.hidden-layers {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.leaflet-control-layers-overlays {
  column-count: 2;       /* 2列に分ける */
  column-gap: 10px;     /* 列の間隔 */
  max-height: 400px;    /* 高さを適宜調整 */
  width: 400px;
  overflow-y: auto;     /* 多い場合はスクロール */
}

.leaflet-control-layers-base label,
.leaflet-control-layers-overlays label {
  font-size: 18px;
  font-weight: 500;
  line-height: 2.0;
}

/* レイヤー一覧をボタンのすぐ下に表示 */
.custom-layers-panel {
  position: absolute;
  top: 50px; /* ボタンの下に調整 */
  right: 10px;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.leaflet-interactive:focus {
  outline: none;
  box-shadow: none;
}

/*スポット追加*/
#add-spot-form {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid #aaa;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  width: 90vw;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.0;
  padding:16px;
}

#add-spot-form h3 {
  margin: 0 0 5px;
  font-size: 15px;
  text-align: center;
}

#add-spot-form label {
  display: block;
  margin: 1px 0 0px; /* 上下の余白を最小限に */
  font-weight: 600;
  font-size: 13px;
  line-height: 1.0;
}

#add-spot-form input,
#add-spot-form textarea,
#add-spot-form select {
  width: 100%;
  padding: 2px 4px; /* 内側の余白もコンパクトに */
  margin: 0 0 2px;
  box-sizing: border-box;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

#add-spot-form textarea {
  resize: vertical;
  min-height: 48px;
}

#add-spot-form button {
  padding: 5px 10px;
  margin: 6px 4px 0 0;
  font-size: 13px;
  border: none;
  border-radius: 4px;
  background-color: #0078d7;
  color: #fff;
  cursor: pointer;
}

#add-spot-form button#cancel-spot {
  background-color: #aaa;
}

#add-spot-form p {
  font-size: 12px;
  color: #555;
  margin-top: 6px;
}

/*検索ボックス*/
#search-container {
  background-color: #f0f8ff; /* 淡いブルー（アリスブルー） */
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: none;
  box-shadow: none;
}

#search-box {
  width: 100%;
  padding: 10px 8px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #ffffff;
  color: #333;
}

#search-box:focus {
  outline: none;
  border-color: #0078d7;
  box-shadow: 0 0 4px rgba(0,120,215,0.4);
}

#search-button {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  background-color: #0078d7;
  color: white;
  border: none;
  border-radius: 6px;
  margin-top: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#search-button:hover {
  background-color: #005fa3;
}

#search-results-wrapper {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-top: 6px;
}

#search-results li:hover {
  background-color: #f0f8ff;
}

#close-results {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #888;
}
#close-results:hover {
  color: #000;
}

/*ポップアップの画像をクリックしたときのモーダル表示*/
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal-gallery {
  position: relative;
  width: 100%;
  height: 100%;
}

.modal-slide {
  position: absolute;
  max-width: 90%;
  max-height: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}


.modal button.prev,
.modal button.next {
  position: absolute;
  top: 50%;
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 100000;
  transform: translateY(-50%);
}

.modal .prev { left: 10px; }
.modal .next { right: 10px; }

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 10001;
}


body.iframe-mode .custom-popup {
  max-height: 350px;
	overflow-y: auto;
}

/*ページひらいた時に出てくるポップアップ（お知らせ）*/
.notice-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1em;
}

.popup-content {
  background: #fff;
  padding: 2em;
  border-radius: 15px;
 max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.center-list {
  margin: 0 auto 0.8em auto;     /* ← 全体を中央に */
  padding-left: 0;
  list-style: none;
  text-align: left;              /* ← リスト項目を左寄せ */
  max-width: 300px;              /* ← 中央配置の幅を制限 */
}

.center-list li {
  margin-bottom: 0.3em;
}

#close-popup-button {
  background: #444;
  color: white;
  border: none;
  padding: 0.6em 1.5em;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
}

.X1 {
	  display: inline-block;
  padding: 3px 8px;
  background-color: #0f1419;
  text-decoration: none;
  border: solid 1px black;
  border-radius: 5px;

}

.instagram1 {
	  display: inline-block;
  padding: 3px 8px;
    background: linear-gradient(to right,
        rgba(247, 207, 0, 0.7),
        rgba(246, 37, 2, 0.7) 45%,
        rgba(182, 47, 82, 0.7) 75%,
        rgba(113, 58, 166, 0.7));
  text-decoration: none;
  border: solid 1px black;
  border-radius: 5px;
}

.support-link-mid {
  display: inline-block;
  background-color: #ffe066;  /* 濃いめのやまぶき色 */
  color: #222;                /* 読みやすくて自然な黒系 */
  border: 1px solid #e0b100;  /* 少し引き締める黄金系 */
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.support-link-mid:hover {
  background-color: #ffcc00;  /* ホバーでちょい濃く */
  color: #000;
}

.custom-cluster {
  background-color: rgba(0, 123, 255, 0.85);
  color: #fff;
  font-weight: bold;
  text-align: center;
  border-radius: 50%;
  border: 2px solid white;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
}

/*レスポンシブ対応*/
@media screen and (max-width: 767px) {

.leaflet-control-attribution {
font-size:10px;
bottom:15px !important;
right: 6px !important;
  }
	
.leaflet-control-zoom {
    display: none !important;
}
	
	/*ロゴのサイズ調整*/
img.custom-logo {
	margin-top: 10px;
  width: 180px;
	padding:5px;
}

  /* ポップアップ（scroll可能＆余白調整） */
/* ポップアップ全体の幅制限（画面に合わせる） */
.leaflet-popup-content-wrapper {
  max-width: 90vw;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 実際の中身（スクロールできるように） */
.leaflet-popup-content {
 max-height: 65vh;
  overflow-y: auto;
	  overflow-x: hidden;
-webkit-overflow-scrolling: touch; /* ← これでスマホぬるぬる */
  touch-action: pan-y;
  will-change: transform;
  font-size: 15px;
  line-height: 1.5;
  margin: 10px 14px; /* 左右余白追加で読みやすく */
  padding: 0;
	  box-sizing: border-box;
}

/* 中身を整えるためのカスタムラッパー */
.custom-popup {
  width: 100%;
  box-sizing: border-box;
  font-size: 15px;
  line-height: 1.5;
}

/* 画像がポップアップに収まるように調整 */
.custom-popup img,
.leaflet-popup-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}
	
.custom-popup .blog-link {
font-size: 14px;
color: #0078d7;
text-decoration: none;
}


/* リンク整える */
.custom-popup a {
  color: #0078d7;
  text-decoration: none;
  word-break: break-word;
}

.custom-popup a:hover {
  text-decoration: underline;
}

	  .leaflet-popup-close-button {
    font-size: 40px !important;
    width: 48px !important;
    height: 48px !important;
  }
	
  /* スポット追加フォーム */
  #add-spot-form {
    width: 95vw;
    padding: 10px;
    font-size: 13px;
    line-height: 1.3;
  }

  #add-spot-form label {
    margin: 2px 0 1px;
  }

  #add-spot-form input,
  #add-spot-form textarea,
  #add-spot-form select {
    font-size: 13px;
    padding: 4px;
  }

  /* メニュー＆トグルボタン */
  .layers-toggle-button {
    font-size: 14px !important;
    padding: 6px 10px !important;
margin-top: 20px !important;
  }
	.custom-layers-panel {
		 width: 320px;
		  max-height: 80vh; /* 高さを画面の80%までに制限 */
  overflow-y: auto; /* 中が多い場合はスクロール */
  position: absolute;
  top: 45px;
  right: 5px;
  z-index: 1000;
}	
	.leaflet-control-layers-overlays {
		width: 100%;
	}

.leaflet-control-layers-overlays label{
  width: 120px;                   /* ← ★これで列幅固定 */
  display: inline-block;          /* ← ★blockやflexだとcolumn崩れることある */
  font-size: 13px;
  line-height: 1.2;
  margin: 2px 0;
  word-break: break-word;
	}

	.leaflet-control-layers-base label {
		font-size:12px;
	}
	
.leaflet-control-layers input[type="checkbox"] {
transform: scale(1.0);
margin-right: 2px;
}

#search-container {
  margin-bottom: 10px;
}

#search-results-wrapper {
  margin-top: 8px;
}

/*ページひらいた時に出てくるポップアップ（お知らせ）*/
.popup-content {
padding: 1em 1em;
font-size:13px;
line-height: 1.2;
max-width: 90vw;
  }

  .center-list {
max-width: 100%;
font-size: 13px;
  }

  .center-list li {
    margin-left: 1em; /* スマホでもちょいインデント */
  }

  .X1,
  .instagram1,
  .support-link-mid {
    font-size: 0.9em;
    padding: 5px 10px;
    margin: 2px 4px;
    display: inline-block;
  }

  #close-popup-button {
    font-size: 0.95em;
    padding: 0.5em 1.2em;
  }
		/* popupの広告部分 */
.tabelog{
  padding: 5px 10px;
}

.jalan{
  padding: 5px 10px;
}

.rakuten{
  padding: 5px 10px;
}
	
}
