@charset "UTF-8";

/* =====================
*
* 国盗り地図用
*
=====================*/
#kntr-map-center-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  background-color: rgba(63, 134, 200, 0.2);
  box-shadow: 0 0 0 4px rgba(63, 134, 200, 0.1);
  pointer-events: none;
}

#kntr-map-center-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

#kntr-map {
  width: 100%;
  height: 100vh;
  min-height: 0;
  position: relative;
}

/* ---------------------
スケールバー
---------------------*/
.kntr-scale-bar {
  position: absolute;
  bottom: 50px;
  right: 15px;
  padding: 8px 12px;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--text-color);
  font-family: Arial, sans-serif;
  background: none;
}

.kntr-scale-bar-text {
  margin-bottom: 2px;
  text-shadow: 1px 1px 0 var(--bg-color), -1px 1px 0 var(--bg-color), 1px -1px 0 var(--bg-color), -1px -1px 0 var(--bg-color);
}

.kntr-scale-bar-ruler {
  height: 3px;
  background-color: var(--text-color);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ---------------------
著作権表示
---------------------*/
.kntr-copyright-notice {
  position: fixed;
  bottom: 30px;
  right: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 5px;
  font-size: 10px;
  pointer-events: none;
  border-radius: 3px;
  color: #333;
  font-family: 'Arial, sans-serif';
}

/* ---------------------
位置情報
---------------------*/
.kntr-location-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8em;
  padding: 10px 10px;
  width: 100%;
  height: 30px;

  box-sizing: border-box;
  position: fixed;
  bottom: 0px;
  left: 0;
  right: 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

/* =====================
*
マップコントロール（各ボタン関連）
*
=====================*/
.kntr-map-controls {
  position: absolute;
  bottom: 70px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kntr-map-control-btn {
  width: 38px;
  height: 38px;
  background-color: var(--bg-color);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: var(--primary-color);
  cursor: pointer;
  position: relative;
}

.kntr-map-control-btn i {
  width: 24px;
  height: 24px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* アイコンがクリックを奪わない */
  pointer-events: none;
}

/* 全ボタン共通の押下時 */
.kntr-map-control-btn:active {
  transform: translateY(0) scale(0.95);
}

/* ---------------------
現在地ボタン固有
---------------------*/
/* GPS測位中状態 */
.kntr-map-control-btn.current-location[data-state="locating"] {
  background-color: #E3F2FD;
}

.kntr-map-control-btn.current-location[data-state="locating"] i {
  opacity: 0.7;
}

/* GPS測位完了状態 */
.kntr-map-control-btn.current-location[data-state="located"] {
  background-color: white;
  border: 2px solid #1976D2;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.4);
}
