#map {
    height: calc(var(--vh) * 90);
    width: 100%;
    z-index: 1;
}

.location-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    color: #000000;
    /* 文字色は白 */
    background-color: #e9b321;
    /* 明るめの茶色 */
    border-radius: 10px;
    /* 角丸 */
    text-decoration: none;
    /* リンクの下線を消す */
    transition: background-color 0.3s;
    /* ホバーエフェクトのアニメーション時間 */
    margin-bottom: 20px;
    font-family: 'Noto Sans', system-ui, sans-serif;
}

.spot-name-label {
    font-size: 1.5em;
    display        : inline-block;
    color          : #000000;            /* 文字の色 */
    text-shadow    : 
        2px  2px 2px #ffffff,
        -2px  2px 2px #ffffff,
        2px -2px 2px #ffffff,
        -2px -2px 2px #ffffff,
        2px  0px 2px #ffffff,
        0px  2px 2px #ffffff,
        -2px  0px 2px #ffffff,
        0px -2px 2px #ffffff;        /* 文字の影 */
}

.background-grey {
    background-color: gainsboro;
}

.my-custom-control img {
    width: 55px;
    height: 55px;
    border-radius: 50%; /* 画像を円形にする */
    cursor: pointer;
    border: none; /* 枠線を消す */
    box-shadow: none; /* 影を消す */
    outline: none; /* フォーカス時の枠線を消す */
}

/* Leafletのデフォルトスタイルをオーバーライド */
.leaflet-control {
    box-shadow: none;
}

.leaflet-bar {
    box-shadow: none;
    border: none !important;
}

/* Bootstrapのa{text-decoration:underline}を上書き */
/* グラフ切り替えボタン(.btn-link, .btn-route)とその子要素の下線を消す */
a .btn-link,
a .btn-link *,
a .btn-route,
a .btn-route * {
    text-decoration: none !important;
}

/* aタグ内のボタン配置を統一 */
.leaflet-control-custom a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaflet-control .leaflet-bar {
    box-shadow: none;
    border: none;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border-color: #f522f5;
  width: 60px;
  padding: 0;
}

.parent > .child {
    color: red;
}

.popup-mission .leaflet-popup-content-wrapper, 
.popup-mission .leaflet-popup-tip {
    border-color: orange;
}

.popup-mission .leaflet-popup-content,
.popup-mission a.leaflet-popup-close-button {
  color: orange !important;
}

.leaflet-popup-content,
a.leaflet-popup-close-button {
  color: #f522f5 !important;
  font: bold 8pt monospace;
}

.leaflet-popup-content-wrapper {
  border-width: 3px;
  border-style: solid;
}

.leaflet-popup-tip-container {
  margin-top: -3px;
}

.leaflet-popup-tip {
  border-style: solid;
  border-width: 0 3px 3px 0;
  width: 20px
}
.leaflet-popup {
  bottom: 5px;
}
#title {
    font-family: "chiarob";
    font-style: normal;
    color: #203354; 
    text-align: center;
    margin: 0;
    line-break: anywhere;
    word-wrap: break-word;
}
.leaflet-custom-bottom-center {
  position: absolute;
  width: 100%;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 1000;
  padding-bottom: 25px;
  font-size: 16px;
  border-radius: 20px;
  cursor: pointer;
  display: none;
  pointer-events: none;
}

.leaflet-bottom.leaflet-left {
    padding-bottom: 20px;
}

.leaflet-bottom.leaflet-right {
    padding-bottom: 25px;
}

#btn-back-icon svg,
#graph-switch-off-svg-container svg, #graph-switch-on-svg-container svg,
#btn-current-location-svg-container svg {
  filter: drop-shadow(0px 3px rgba(0,0,0,0.4));
}

.mission-keyword-label {
    display: block;          /* ← 縦並びに変更 */
    font-family: "chiarob";
    font-size: 16px;
    color: #203354;
    text-shadow:
      -2px -2px 0 white,
      2px -2px 0 white,
      -2px  2px 0 white,
      2px  2px 0 white,
      0px  -2px 0 white,
      -2px  0px 0 white,
      2px  0px 0 white,
      0px   2px 0 white;
}
.mission-keyword {
    font-family: "chiarob";
    display: inline-block;   /* 横並び */
    padding: 0.5em 10px;       /* 内側の余白 */
    color: #203354;
    margin-right: 3px;       /* 四角の間隔 */
    background-color: rgba(255,255,255,0.5);
}
.masked_keyword {
    color: #203354;
    border: 1px solid #d9d9d9; /* 四角い枠線 */
    border-radius: 5.5px;
    background-color: white;
    height: 42px;
    min-width: 42px;
    vertical-align: middle;
}

.custom-marker-main {
  width: 100% !important;
  height: 100%;
}
.custom-marker-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
}

.custom-marker-pin-badge {
    position: absolute;
    top: -7px;
    right: -10px;
    width: 20px;
    height: 20px;
}

.leaflet-tooltip {
  font-size: 10px;
  padding: 0;
  background-color: rgba(255,255,255,.5);
  border-color: rgba(255,255,255,.5);
}

.leaflet-tooltip::before {
  border-bottom-color: rgba(255,255,255,.5);
}

.leaflet-tooltip-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 700;
}

.leaflet-control-custom {
  margin-top: 26.8px !important;
}

/* ========================================
   Graph Switch Button Styles (Route/Link)
   ======================================== */

/* ボタンの共通スタイル */
.graph-switch-btn {
  display: flex;
  align-items: center;
  width: 158px;
  height: 32px;
  border-radius: 16px;
  border: 1px solid;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: 'Noto Sans', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
  transition: transform 0.1s ease;
}

.graph-switch-btn:active {
  transform: scale(0.98);
}

/* ルートボタン（ピンク） */
.btn-route {
  border-color: #ed72b5;
}

.btn-route .btn-left {
  background-color: #ed72b5;
  color: #fff;
  width: 79px;
  height: 26px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px !important;
  font-weight: 400;
  margin: 3px 0 3px 3px;
  line-height: 1.2;
}

.btn-route .btn-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a0a0;
  font-size: 12px !important;
  font-weight: 400;
  padding: 0 8px;
  margin: 3px 3px 3px 0;
  line-height: 1.2;
}

.btn-route .arrow {
  width: 0;
  height: 0;
  border-top: 6.5px solid transparent;
  border-bottom: 6.5px solid transparent;
  border-left: 8px solid #fff;
  margin-left: 4px;
}

/* つながりボタン（青） */
.btn-link {
  border-color: #3b85ac;
}

.btn-link .btn-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a0a0;
  font-size: 12px !important;
  font-weight: 400;
  padding: 0 8px;
  margin: 3px 0 3px 3px;
  line-height: 1.2;
}

.btn-link .btn-right {
  background-color: #3b85ac;
  color: #fff;
  width: 79px;
  height: 26px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px !important;
  font-weight: 400;
  margin: 3px 3px 3px 0;
  line-height: 1.2;
}

.btn-link .arrow {
  width: 0;
  height: 0;
  border-top: 6.5px solid transparent;
  border-bottom: 6.5px solid transparent;
  border-left: 8px solid #fff;
  margin-left: 4px;
}

/* 日本語テキスト調整 */
.btn-route .btn-left[lang="ja"],
.btn-link .btn-right[lang="ja"] {
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* 英語テキスト調整 */
.btn-route .btn-left[lang="en"],
.btn-link .btn-right[lang="en"] {
  font-size: 14px;
  letter-spacing: 0.3px;
}

.btn-route .btn-right[lang="ja"],
.btn-link .btn-left[lang="ja"] {
  font-size: 13px;
  letter-spacing: 0.5px;
}

.btn-route .btn-right[lang="en"],
.btn-link .btn-left[lang="en"] {
  font-size: 14px;
  letter-spacing: 0.3px;
}

/* ========================================
   Help Button Styles
   ======================================== */

.help-button-container {
  position: absolute;
  right: 15px;
  bottom: calc(var(--vh) * 10 + env(safe-area-inset-bottom));
  z-index: 1000;
  transition: bottom 0.3s ease;
}

.help-button {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  background-color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
}

.help-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.help-button:active {
  transform: scale(0.95);
}

.help-button svg {
  width: 40px;
  height: 40px;
  color: #203354;
}

/* ヘルプモーダル */
.help-modal-body {
  background-color: #D9E4EA;
  padding: 0;
}

#helpModal iframe {
  width: 100%;
  height: 60vh;
  border: none;
  border-radius: 0 0 15px 15px;
}

