@charset "utf-8";

/* CSS Document */
/* -------------------------------------------------------------------------- */
/*  Map-specific overrides only
/* -------------------------------------------------------------------------- */

/* Map ------------------------------------- */
.wrap {
  font-family: "Noto Sans JP", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #000;
  font-size: 14px;
  letter-spacing: 1.9px;
  line-height: 1.9;
  width: 100%;
  overflow: hidden;
  margin-top: 70px;
}

.map_main {
  background-color: #0ab7c4;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 70px;
  position: relative;
}

.map_ttl {
  text-align: center;
}

.map_ttl img {
  padding: 100px 0 30px;
  max-width: 840px;
  width: 80%;
}

.map_inner {
  width: calc(100% - 80px);
  max-width: 890px;
  margin: 0 auto;
  margin-bottom: 30px;
  color: #fff;
}

.map_inner .blue {
  color: #0011ff;
}

.map_inner .red {
  color: #f91010;
  filter: brightness(0.9);
}

.map_inner .black {
  color: #2d3134;
}

.info {
  font-size: 12px;
  padding-top: 10px;
}

.map_legend {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: rgba(255, 255, 255, 0.6);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  color: #32363a;
  width: auto;
  max-width: 240px;
}

.map_legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.map_legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.map_legend li:last-child {
  margin-bottom: 0;
}

.map_legend li img {
  width: auto;
  height: 20px;
  margin-top: 6px;
  margin-right: 0px;
}

.cls-1 {
  fill: url(#_map_3);
}

.cls-1,
.cls-2,
.cls-3,
.cls-4,
.cls-5,
.cls-6,
.cls-7,
.cls-8,
.cls-9 {
  stroke-width: 0px;
}

.cls-1,
.cls-2,
.cls-7,
.cls-8 {
  fill-rule: evenodd;
}

.cls-2 {
  fill: url(#_map_4);
}

.cls-10 {
  isolation: isolate;
}

.cls-3,
.cls-4 {
  fill: none;
}

.cls-11 {
  clip-path: url(#clippath-1);
}

.cls-4 {
  clip-rule: evenodd;
}

.cls-5 {
  fill: #32363a;
}

.cls-6 {
  fill: #11296d;
}

.cls-12 {
  clip-path: url(#clippath);
}

.cls-7 {
  fill: url(#_map_7);
}

.cls-8 {
  fill: url(#_map_6);
}

.cls-9 {
  fill: #fff;
}

.cls-13 {
  mix-blend-mode: color-burn;
}

/* モーダルウィンドウ */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 10px;
  border: 1px solid #888;
  width: 80%;
  max-width: 660px;
  /* 最大幅を設定 */
  position: absolute;
  box-sizing: border-box;
  top: 50%;
  /* 上から50% */
  left: 50%;
  /* 左から50% */
  transform: translate(-50%, -50%);
  /* 上下左右の中央に移動 */
  max-height: 90vh;
  overflow: auto;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 アスペクト比 */
  background-color: #000;
  /* 動画の背景色を設定 */
}

.poster-img,
video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 内側に収まるように調整 */
  display: block;
}

.poster-img {
  z-index: 3;
}

.center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  /* アイコンが最前面に表示されるように設定 */
}

img.center-icon {
  width: 105px;
}

.open-modal {
  cursor: pointer;
}

/** 凡例アイコンのカーソル変更 */
.open-modal.legend-icon {
  cursor: default;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 4;
  /* close-modalを最前面に表示 */
}

.close-modal .bar1,
.close-modal .bar2 {
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #000;
  transition: 0.3s;
  border-radius: 5px;
}

.close-modal .bar1 {
  transform: rotate(45deg);
  top: 50%;
  left: 0;
  transform-origin: center;
}

.close-modal .bar2 {
  transform: rotate(-45deg);
  top: 50%;
  left: 0;
  transform-origin: center;
}

.close-modal:hover .bar1,
.close-modal:hover .bar2 {
  background-color: #666;
}

.mov {
  font-size: 15px;
}

.mov_location {
  padding-bottom: 5px;
}

.mov_update {
  text-align: right;
}

/* カメラマーカーの色制御 */
.camera-marker > * {
  fill: #ffffff; /* デフォルト：白（クジラ検知なし） */
  filter: drop-shadow(0 0 1px #000000);
}
.camera-marker.open-modal > * {
  fill: #f91010;
  filter: brightness(0.9) drop-shadow(0 0 1px #ffffff);
}
.camera-marker.camera-inactive > * {
  fill: #2d3134;
  filter: none;
}

/* スマートフォンではマップ上のカメラマーカーを大きめに表示（凡例は除外） */
.camera-marker:not(.legend-icon) {
  transform-origin: center center;
}

/* 768px以下の時に適用されるスタイル */
@media (max-width: 768px) {
  img.center-icon {
    width: 60px;
  }

  .mov_update {
    font-size: 10px;
  }

  .map_legend {
    bottom: 20px;
    left: 20px;
    width: auto;
    max-width: 90%;
    font-size: 12px;
    padding: 10px 14px;
  }

  .map_legend li img {
    height: 14px;
    margin-right: 6px;
  }

  /* ナズマド */
  #nazumado {
    transform: scale(1.5) translate(2%, 9%);
  }

  /* 底土船客待合所 */
  #sokodoko {
    transform: scale(1.5) translate(-6.7%, 5.5%);
  }

  /* 八重根港 */
  #yaene {
    transform: scale(1.5) translate(-2.7%, -2.7%);
  }

  /* 乙千代ヶ浜 */
  #ochogahama {
    transform: scale(1.5) translate(-4.5%, -6%);
  }

  /* 藍ヶ江港 */
  #aigae {
    transform: scale(1.5) translate(-6.7%, -10%);
  }

  /* 洞輪沢 */
  #borawazawa {
    transform: scale(1.5) translate(-9%, -8%);
  }
}

.nav-spot:hover path {
  fill: #ffe885; /* ホバー時の色 */
}
