@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Serif+JP:wght@300;500;900&display=swap');

body { 
  margin: 0; 
  padding: 0;
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  overflow-y: hidden;
}

input {
  cursor: pointer;
}

main {
  position: relative;
  width: 100%;
  height: 100%;
}

#map { 
  position: absolute; 
  top: 40px; 
  left: 40px; 
  width: calc(100% - 80px); 
  height: calc(100% - 80px); 
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.left-top {
  position: absolute;
  top: 0px;
  left: 0px;
  padding: 20px 10px;
  width: 90%;
  max-width: 400px;
  user-select: none;
}

.title {
  font-family: 'Bebas Neue', sans-serif;
  /* font-family: 'Noto Serif JP', serif; */
  font-weight: 800;
  color: white;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}
.title h1 {
  font-size: 80px;
  top: 0;
  left: 0;
  padding: 0;
  margin: 0;
  text-align: left;
}
.title h2 {
  padding: 0;
  margin: 0;
  text-align: left;
}

.post {
  /* 投稿 UI は一時非表示（DOM / JS は維持） */
  display: none;
  pointer-events: initial;
}
.post p {
  color: white;
  font-size: 12px;
}
.post button {
  cursor: pointer;
}

.about {
  position: absolute;
  z-index: 10;
  height: 100%;
  width: 400px;
  padding: 0px;
  right: 0px;
  top: 0px;
  pointer-events: none;
}
.about-bg {
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  background: #000000cc;
  width: 100%;
  height: 100%;
}
.about-checkbox {
  z-index: 3;
  position: relative;
  color: white;
  font-size: 14px;
  padding: 10px 10px 0 0;
  text-align: right;
  background: none;
  text-decoration: underline;
  pointer-events: initial;
}
.about-checkbox input[type="checkbox"] {
  display: none;
}
.about-checkbox label {
  cursor: pointer;
}
.about .description {
  z-index: 2;
  position: relative;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  height: 90%;
  pointer-events: initial;
}
.about .description .description-inner {
  height: 100%;
  padding: 20px;
  overflow-y: auto; 
}
.about .description .description-inner  p {
  color: white;
  font-size: 14px;
}

.bottom-section {
  z-index: 10;
  position: absolute;
  bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}
.control-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  background-color: rgba(255, 255, 255, 0.9);
}

.layer-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  pointer-events: auto;
  padding-right: 20px;
}

.layer-btns .toggle-placename {
  display: none;
}

.layer-btns input[type="checkbox"] {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid #000;
  vertical-align: -5px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.layer-btns input[type="checkbox"]:checked:before {
  position: absolute;
  top: 1px;
  left: 4px;
  transform: rotate(50deg);
  width: 4px;
  height: 8px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  content: '';
}

.opacity-control-container {
  display: flex;
  justify-content: center;
}
.opacity-control {
  padding: 5px 20px;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  pointer-events: auto;
}
.opacity-control span {
  width: 80px;
  max-width: 80px;
  margin: 0 10px;
  text-align: center;
}

/* ベースのスタイル */
input[type="range"] {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none; /* ブラウザのデフォルトのスタイルを無効化 */
  outline: none;
  width: 100%;
  max-width: 400px;
  height: 8px;
  border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -10px;
  width: 8px;
  height: 24px;
  background-color: #333;
  border-radius: 4px;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  background-color: #aaa;
  height: 4px;
}

input[type="range"]::-moz-range-track {
  background-color: #aaa;
  height: 4px;
}
input[type="range"]::-moz-range-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -10px;
  width: 8px;
  height: 24px;
  background-color: #888;
  border-radius: 4px;
  cursor: pointer;
}

input[type="range"]::-ms-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -10px;
  width: 8px;
  height: 24px;
  background-color: #888;
  border-radius: 4px;
  cursor: pointer;
}


@media (max-width: 768px) {
  main {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  #map {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 5px;
  }

  .about {
    width: 100%;
    top: 0;
    left: 0;
    right: initial;
    padding: 0;
    background: none;
  }
  .about .about-checkbox {
    margin-top: 20px;
    margin-right: 20px;
  }
  .about .description {
    padding: 40px 20px 20px 20px;
    margin-top: -40px;
  }

  .left-top {
    padding: 0;
  }
  .left-top .title {
    padding: 10px 20px 0 20px;
    padding-bottom: 0;
  }
  .left-top .title h1 {
    font-size: 50px;
  }
  .left-top .title h2 {
    font-size: 1em;
  }
  .left-top .post {
    width: 100%;
    padding: 0 20px;
  }
  .left-top .post p {
    font-size: 12px;
    margin: 10px 0;
  }

  .bottom-section {
    bottom: 44px;
    height: 70px;
  }
  .bottom-section .control-panel {
    flex-direction: column;
    height: 100%;
    width: 90%;
  }

  .bottom-section .control-panel .opacity-control-container {
    width: 100%;
  }

  .bottom-section .control-panel .opacity-control-container .opacity-control {
    width: 100%;
    justify-content: space-between;
  }

  input[type="range"]::-webkit-slider-thumb {
    width: 22px;
  }  
  input[type="range"]::-moz-range-thumb {
    width: 22px;
  }
  input[type="range"]::-ms-thumb {
    width: 22px;
  }

  .opacity-control span { 
    margin: 0;
  }
}
