@charset "UTF-8";
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/MPLUSRounded1c-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/MPLUSRounded1c-Medium.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/MPLUSRounded1c-Bold.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/MPLUSRounded1c-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/MPLUSRounded1c-Medium.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/MPLUSRounded1c-Bold.woff2") format("woff2");
  font-display: swap;
}
/********************************************
* common
/********************************************/
body,
.main {
  height: 100%;
}

/********************************************
* ki-outer
/********************************************/
#ki-outer {
  display: flex;
  align-items: center;
  height: 100%;
}

@media (max-width: 750px) {
  #ki-outer {
    width: 375px;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
  }
}
.map-ui-outer {
  display: block;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100% !important;
}

.map-ui-outer:before, .map-ui-outer:after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  max-width: 3100px;
  margin: 0 auto;
}

.map-ui-outer:before {
  width: 100%;
  height: 50%;
  top: 0;
  background-repeat: repeat-y !important;
  background-image: url(../images/base_sky_bg.webp);
  background-position: right top;
  background-size: 100% auto;
}

.map-ui-outer:after {
  width: 100%;
  height: 50%;
  bottom: 0;
  /* background-color: rgba(0,255,0,0.4); */
  background-repeat: repeat !important;
  background-size: 100px;
  background-image: url(../images/base_ground_bg.webp);
  background-position: right top;
}

@media (max-width: 750px) {
  .map-ui-outer {
    width: 1312px;
    height: 667px;
    overflow: visible;
    transition-duration: 1.5s;
    transform: translateX(-830px) translateY(0);
    /*
    &.gotoLeft {
      transform: translateX(-188px) translateY(0);
    }
    &.gotoRight {
      transform: translateX(-1436px) translateY(0);
    }
    */
  }
  .map-ui-outer.display_position1 {
    transform: translateX(-188px) translateY(0);
  }
  .map-ui-outer.display_position2 {
    transform: translateX(-422px) translateY(0);
  }
  .map-ui-outer.display_position3 {
    transform: translateX(-656px) translateY(0);
  }
  .map-ui-outer.display_position4 {
    transform: translateX(-890px) translateY(0);
  }
  .map-ui-outer.display_position5 {
    transform: translateX(-1100px) translateY(0);
  }
}
@media screen and (max-width: 375px) {
  .map-ui-outer {
    width: 1312px;
    height: 667px;
    transform: translateX(-656px) translateY(0);
    /*
    &.gotoLeft {
      transform: translateX(-188px) translateY(0);
    }
    &.gotoRight {
      transform: translateX(-1124px) translateY(0);
    }
    */
  }
  .map-ui-outer.display_position1 {
    transform: translateX(-188px) translateY(0);
  }
  .map-ui-outer.display_position2 {
    transform: translateX(-422px) translateY(0);
  }
  .map-ui-outer.display_position3 {
    transform: translateX(-656px) translateY(0);
  }
  .map-ui-outer.display_position4 {
    transform: translateX(-890px) translateY(0);
  }
  .map-ui-outer.display_position5 {
    transform: translateX(-1124px) translateY(0);
  }
}
#map-ui-inner {
  transform: scale(1);
  display: block;
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  position: absolute;
  top: 0px;
  left: 0;
  overflow: visible;
}

@media (max-width: 750px) {
  #map-ui-inner {
    transform: scale(1.312);
  }
}
@media screen and (max-width: 375px) {
  #map-ui-inner {
    transform: scale(1.312);
  }
}
#map-arrows {
  display: none;
}

@media (max-width: 750px) {
  #map-arrows {
    display: block;
  }
}
.map-arrow {
  position: fixed;
  z-index: 100;
  justify-content: center;
  align-items: center;
  width: 13.3333333333vw;
  height: 13.3333333333vw;
  background-color: #fff;
  border-radius: 50%;
  border: 0.8vw solid #ff8b00;
  display: none;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transform: scale(0.8);
  transition-timing-function: ease-out;
  transform-origin: center center;
  transition-duration: 0.1s;
}

@media (max-width: 750px) {
  .map-arrow {
    transition-duration: 0.2s;
  }
}
.map-arrow.ON {
  transition-delay: 0s;
  transition-duration: 0.4s;
  transform: scale(1);
  opacity: 1;
  visibility: visible;
  transition-timing-function: cubic-bezier(0.34, 2.43, 0.81, 0.58);
}

.map-arrow-left {
  left: 2vw;
}

.map-arrow-right {
  right: 2vw;
}

.arrow_position1 #map-arrow-right2 {
  display: flex;
}

.arrow_position2 #map-arrow-left1,
.arrow_position2 #map-arrow-right3 {
  display: flex;
}

.arrow_position3 #map-arrow-left2,
.arrow_position3 #map-arrow-right4 {
  display: flex;
}

.arrow_position4 #map-arrow-left3,
.arrow_position4 #map-arrow-right5 {
  display: flex;
}

.arrow_position5 #map-arrow-left4 {
  display: flex;
}

.icon_arrow {
  position: relative;
  border-top-left-radius: 30%;
  width: 12px;
  height: 12px;
  background: #ff8b00;
}

@media (max-width: 750px) {
  .icon_arrow {
    width: 3.2vw;
    height: 3.2vw;
  }
}
.icon_arrow::before, .icon_arrow::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ff8b00;
}

@media (max-width: 750px) {
  .icon_arrow::before, .icon_arrow::after {
    width: 3.2vw;
    height: 3.2vw;
  }
}
.icon_arrow::before {
  border-top-right-radius: 30%;
  transform: skewX(-45deg) translateX(50%);
}

.icon_arrow::after {
  border-bottom-left-radius: 30%;
  transform: skewY(-45deg) translateY(50%);
}

.icon_arrow.icon_arrow_left {
  margin-right: 1.3333333333vw;
  transform: rotate(-60deg) skewY(30deg) scaleX(0.86666);
}

.icon_arrow.icon_arrow_right {
  margin-left: 1.3333333333vw;
  transform: rotate(120deg) skewY(30deg) scaleX(0.86666);
}

@media screen and (min-width: 1001px) and (max-width: 1100px) {
  .map-ui-outer {
    height: 558px;
  }
  #map-ui-inner {
    transform: scale(1.1) !important;
  }
}
@media screen and (min-width: 1101px) and (max-width: 1200px) {
  .map-ui-outer {
    height: 609px;
  }
  #map-ui-inner {
    transform: scale(1.2) !important;
  }
}
@media screen and (min-width: 1201px) and (max-width: 1300px) {
  .map-ui-outer {
    height: 660px;
  }
  #map-ui-inner {
    transform: scale(1.3) !important;
  }
}
@media screen and (min-width: 1301px) and (max-width: 1400px) {
  .map-ui-outer {
    height: 711px;
  }
  #map-ui-inner {
    transform: scale(1.4) !important;
  }
}
@media screen and (min-width: 1401px) and (max-width: 1500px) {
  .map-ui-outer {
    height: 762px;
  }
  #map-ui-inner {
    transform: scale(1.5) !important;
  }
}
@media screen and (min-width: 1501px) and (max-width: 1600px) {
  .map-ui-outer {
    height: 812px;
  }
  #map-ui-inner {
    transform: scale(1.6) !important;
  }
}
@media screen and (min-width: 1601px) and (max-width: 1700px) {
  .map-ui-outer {
    height: 863px;
  }
  #map-ui-inner {
    transform: scale(1.7) !important;
  }
}
@media screen and (min-width: 1701px) and (max-width: 1800px) {
  .map-ui-outer {
    height: 914px;
  }
  #map-ui-inner {
    transform: scale(1.8) !important;
  }
}
@media screen and (min-width: 1801px) and (max-width: 1900px) {
  .map-ui-outer {
    height: 965px;
  }
  #map-ui-inner {
    transform: scale(1.9) !important;
  }
}
@media screen and (min-width: 1901px) and (max-width: 2000px) {
  .map-ui-outer {
    height: 1016px;
  }
  #map-ui-inner {
    transform: scale(2) !important;
  }
}
@media screen and (min-width: 2001px) and (max-width: 2100px) {
  .map-ui-outer {
    height: 1066px;
  }
  #map-ui-inner {
    transform: scale(2.1) !important;
  }
}
@media screen and (min-width: 2101px) and (max-width: 2200px) {
  .map-ui-outer {
    height: 1117px;
  }
  #map-ui-inner {
    transform: scale(2.2) !important;
  }
}
@media screen and (min-width: 2201px) and (max-width: 2300px) {
  .map-ui-outer {
    height: 1168px;
  }
  #map-ui-inner {
    transform: scale(2.3) !important;
  }
}
@media screen and (min-width: 2301px) and (max-width: 2400px) {
  .map-ui-outer {
    height: 1219px;
  }
  #map-ui-inner {
    transform: scale(2.4) !important;
  }
}
@media screen and (min-width: 2401px) and (max-width: 2500px) {
  .map-ui-outer {
    height: 1270px;
  }
  #map-ui-inner {
    transform: scale(2.5) !important;
  }
}
@media screen and (min-width: 2501px) and (max-width: 2600px) {
  .map-ui-outer {
    height: 1320px;
  }
  #map-ui-inner {
    transform: scale(2.6) !important;
  }
}
@media screen and (min-width: 2601px) and (max-width: 2700px) {
  .map-ui-outer {
    height: 1371px;
  }
  #map-ui-inner {
    transform: scale(2.7) !important;
  }
}
@media screen and (min-width: 2701px) and (max-width: 2800px) {
  .map-ui-outer {
    height: 1422px;
  }
  #map-ui-inner {
    transform: scale(2.8) !important;
  }
}
@media screen and (min-width: 2801px) and (max-width: 2900px) {
  .map-ui-outer {
    height: 1473px;
  }
  #map-ui-inner {
    transform: scale(2.9) !important;
  }
}
@media screen and (min-width: 2901px) and (max-width: 3000px) {
  .map-ui-outer {
    height: 1524px;
  }
  #map-ui-inner {
    transform: scale(3) !important;
  }
}
@media screen and (min-width: 3001px) {
  .map-ui-outer {
    height: 1524px;
  }
  #map-ui-inner {
    transform: scale(3.1) !important;
  }
}
/** (省略せずに style.css の全内容をここに移植しました) **/
.arrow_position2 #map-arrow-left1,
.arrow_position2 #map-arrow-right3 {
  display: flex;
}

.arrow_position3 #map-arrow-left2,
.arrow_position3 #map-arrow-right4 {
  display: flex;
}

.arrow_position4 #map-arrow-left3,
.arrow_position4 #map-arrow-right5 {
  display: flex;
}

.arrow_position5 #map-arrow-left4 {
  display: flex;
}

.icon_arrow {
  position: relative;
  border-top-left-radius: 30%;
  width: 12px;
  height: 12px;
  background: #ff8b00;
}
@media (max-width: 750px) {
  .icon_arrow {
    width: 3.2vw;
    height: 3.2vw;
  }
}
.icon_arrow::before, .icon_arrow::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ff8b00;
}
@media (max-width: 750px) {
  .icon_arrow::before, .icon_arrow::after {
    width: 3.2vw;
    height: 3.2vw;
  }
}
.icon_arrow::before {
  border-top-right-radius: 30%;
  transform: skewX(-45deg) translateX(50%);
}
.icon_arrow::after {
  border-bottom-left-radius: 30%;
  transform: skewY(-45deg) translateY(50%);
}
.icon_arrow.icon_arrow_left {
  margin-right: 1.3333333333vw;
  transform: rotate(-60deg) skewY(30deg) scaleX(0.86666);
}
.icon_arrow.icon_arrow_right {
  margin-left: 1.3333333333vw;
  transform: rotate(120deg) skewY(30deg) scaleX(0.86666);
}

@media screen and (min-width: 1001px) and (max-width: 1100px) {
  .map-ui-outer {
    height: 558px;
  }
  #map-ui-inner {
    transform: scale(1.1) !important;
  }
}
@media screen and (min-width: 1101px) and (max-width: 1200px) {
  .map-ui-outer {
    height: 609px;
  }
  #map-ui-inner {
    transform: scale(1.2) !important;
  }
}
@media screen and (min-width: 1201px) and (max-width: 1300px) {
  .map-ui-outer {
    height: 660px;
  }
  #map-ui-inner {
    transform: scale(1.3) !important;
  }
}
@media screen and (min-width: 1301px) and (max-width: 1400px) {
  .map-ui-outer {
    height: 711px;
  }
  #map-ui-inner {
    transform: scale(1.4) !important;
  }
}
@media screen and (min-width: 1401px) and (max-width: 1500px) {
  .map-ui-outer {
    height: 762px;
  }
  #map-ui-inner {
    transform: scale(1.5) !important;
  }
}
@media screen and (min-width: 1501px) and (max-width: 1600px) {
  .map-ui-outer {
    height: 812px;
  }
  #map-ui-inner {
    transform: scale(1.6) !important;
  }
}
@media screen and (min-width: 1601px) and (max-width: 1700px) {
  .map-ui-outer {
    height: 863px;
  }
  #map-ui-inner {
    transform: scale(1.7) !important;
  }
}
@media screen and (min-width: 1701px) and (max-width: 1800px) {
  .map-ui-outer {
    height: 914px;
  }
  #map-ui-inner {
    transform: scale(1.8) !important;
  }
}
@media screen and (min-width: 1801px) and (max-width: 1900px) {
  .map-ui-outer {
    height: 965px;
  }
  #map-ui-inner {
    transform: scale(1.9) !important;
  }
}
@media screen and (min-width: 1901px) and (max-width: 2000px) {
  .map-ui-outer {
    height: 1016px;
  }
  #map-ui-inner {
    transform: scale(2) !important;
  }
}
@media screen and (min-width: 2001px) and (max-width: 2100px) {
  .map-ui-outer {
    height: 1066px;
  }
  #map-ui-inner {
    transform: scale(2.1) !important;
  }
}
@media screen and (min-width: 2101px) and (max-width: 2200px) {
  .map-ui-outer {
    height: 1117px;
  }
  #map-ui-inner {
    transform: scale(2.2) !important;
  }
}
@media screen and (min-width: 2201px) and (max-width: 2300px) {
  .map-ui-outer {
    height: 1168px;
  }
  #map-ui-inner {
    transform: scale(2.3) !important;
  }
}
@media screen and (min-width: 2301px) and (max-width: 2400px) {
  .map-ui-outer {
    height: 1219px;
  }
  #map-ui-inner {
    transform: scale(2.4) !important;
  }
}
@media screen and (min-width: 2401px) and (max-width: 2500px) {
  .map-ui-outer {
    height: 1270px;
  }
  #map-ui-inner {
    transform: scale(2.5) !important;
  }
}
@media screen and (min-width: 2501px) and (max-width: 2600px) {
  .map-ui-outer {
    height: 1320px;
  }
  #map-ui-inner {
    transform: scale(2.6) !important;
  }
}
@media screen and (min-width: 2601px) and (max-width: 2700px) {
  .map-ui-outer {
    height: 1371px;
  }
  #map-ui-inner {
    transform: scale(2.7) !important;
  }
}
@media screen and (min-width: 2701px) and (max-width: 2800px) {
  .map-ui-outer {
    height: 1422px;
  }
  #map-ui-inner {
    transform: scale(2.8) !important;
  }
}
@media screen and (min-width: 2801px) and (max-width: 2900px) {
  .map-ui-outer {
    height: 1473px;
  }
  #map-ui-inner {
    transform: scale(2.9) !important;
  }
}
@media screen and (min-width: 2901px) and (max-width: 3000px) {
  .map-ui-outer {
    height: 1524px;
  }
  #map-ui-inner {
    transform: scale(3) !important;
  }
}
@media screen and (min-width: 3001px) {
  .map-ui-outer {
    height: 1524px;
  }
  #map-ui-inner {
    transform: scale(3.1) !important;
  }
}
/********************************************
* 共通class
********************************************/
.base {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
}

.object {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
}

/********************************************
* base
********************************************/
#base_ground {
  z-index: 3;
  width: 1000px;
  height: 508px;
  margin-left: -500px;
  margin-top: -254px;
  /* background-color: rgba(0,255,0,0.4); */
  background-image: url(../images/base_ground.webp);
  background-position: right top;
}

#base_highway_a {
  z-index: 10;
  width: 597px;
  height: 147px;
  margin-left: -375px;
  margin-top: -162px;
  /* background-color: rgba(0,255,0,0.4); */
  background-image: url(../images/base_highway_a.webp);
  background-position: right top;
}

#base_highway_b {
  z-index: 12;
  width: 584px;
  height: 129px;
  margin-left: -368px;
  margin-top: -164px;
  /* background-color: rgba(0,255,0,0.4); */
  background-image: url(../images/base_highway_b.webp);
  background-position: right top;
}

#base_highway_c {
  z-index: 14;
  width: 599px;
  height: 136px;
  margin-left: -376px;
  margin-top: -151px;
  /* background-color: rgba(0,255,0,0.4); */
  background-image: url(../images/base_highway_c.webp);
  background-position: right top;
}

#base_depart {
  z-index: 20;
  width: 726px;
  height: 251px;
  margin-left: -454px;
  margin-top: -121px;
  /* background-color: rgba(0,255,0,0.4); */
  background-image: url(../images/base_depart.webp);
  background-position: right top;
}

#base_mountain01 {
  z-index: 30;
  width: 224px;
  height: 124px;
  margin-left: 232px;
  margin-top: -149px;
  /* background-color: rgba(0,255,0,0.4); */
  background-image: url(../images/base_mountain01.webp);
  background-position: right top;
}

#base_mountain02 {
  z-index: 32;
  width: 135px;
  height: 125px;
  margin-left: 365px;
  margin-top: -131px;
  /* background-color: rgba(0,255,0,0.4); */
  background-image: url(../images/base_mountain02.webp);
  background-position: right top;
}

#base_school {
  z-index: 40;
  width: 380px;
  height: 188px;
  margin-left: 73px;
  margin-top: -91px;
  /* background-color: rgba(0,255,0,0.4); */
  background-image: url(../images/base_school.webp);
  background-position: right top;
}

#base_train01 {
  z-index: 50;
  width: 502px;
  height: 236px;
  margin-left: -3px;
  margin-top: -33px;
  /* background-color: rgba(0,255,0,0.4); */
  background-image: url(../images/base_train01.webp);
  background-position: right top;
}

#base_train02 {
  z-index: 55;
  width: 639px;
  height: 341px;
  margin-left: -139px;
  margin-top: -86px;
  /* background-color: rgba(0,255,0,0.4); */
  background-image: url(../images/base_train02.webp);
  background-position: right top;
}

/********************************************
* object
********************************************/
#object_position_test {
  z-index: 51;
  width: 30px;
  height: 15px;
  background-image: url(../images/position_test.webp);
  background-position: right top;
  transform: translateX(77px) translateY(-29.5px);
}

/********************************************/
.voice_list {
  position: absolute;
  display: flex;
  justify-content: center;
  width: 100%;
  bottom: -10px;
  gap: 5px;
  margin-top: 5px;
}
@media (max-width: 750px) {
  .voice_list {
    flex-wrap: wrap;
  }
}
.voice_list .voice_item .audio-player {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #eb505a;
  transition: 0.2s;
}
@media (max-width: 750px) {
  .voice_list .voice_item .audio-player {
    width: 18px;
    height: 18px;
  }
}
.voice_list .voice_item .audio-player:hover {
  opacity: 0.7;
}
.voice_list .voice_item .audio-player i {
  color: #fff;
  font-size: 12px;
}
@media (max-width: 750px) {
  .voice_list .voice_item .audio-player i {
    font-size: 8px;
  }
}

/* === Audio player: play button left, seekbar right (row) === */
.audio-player {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: auto;
  /* 上下均等の余白を与える（modal_img 下に配置した際のスペース） */
  padding: 12px 0; /* top and bottom equal */
  margin: 8px auto; /* center horizontally */
  justify-content: center;
  pointer-events: auto;
}

/* Play button (icon element) */
.audio-player > i {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px; /* smaller */
  height: 48px; /* smaller */
  min-width: 48px;
  border-radius: 50%;
  background-color: #e74c3c; /* red */
  color: #fff;
  font-size: 18px;
  box-shadow: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
  cursor: pointer;
}

.audio-player.playing > i {
  transform: scale(0.98);
  opacity: 0.95;
}

/* Seekbar sits to the right */
.audio-player .seek-range {
  display: none !important;
}

/* Play button as unified icon+text for kids (pill style) */
.audio-player .play-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px; /* tighter space between icon and label */
  padding: 6px 16px 6px 8px; /* more space on the right for balance */
  border-radius: 999px;
  background-color: #e74c3c; /* outer pill in red */
  color: #fff; /* label in white */
  box-shadow: none;
  cursor: pointer;
  user-select: none;
  min-width: 88px;
}

.audio-player .play-btn i {
  width: 32px; /* smaller */
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #ffffff; /* white circle */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: #e74c3c; /* triangle in red */
}

.audio-player .play-btn .audio-label {
  font-size: 18px;
  color: #fff;
  font-weight: 700;
}

/* spacing below play button */
.audio-player .play-btn {
  margin-bottom: 10px;
}

@media screen and (max-width: 375px) {
  .audio-player .play-btn {
    padding: 5px 12px 5px 6px; /* mobile: a bit more right padding */
    gap: 2px; /* tighter on mobile */
    min-width: 72px;
  }
  .audio-player .play-btn i {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .audio-player .play-btn .audio-label {
    font-size: 14px;
  }
}
@media screen and (max-width: 375px) {
  .audio-player {
    gap: 8px;
    padding-top: 8px;
    margin: 6px auto;
  }
  .audio-player > i {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 14px;
  }
  .audio-player .seek-range {
    width: 120px;
    max-width: calc(100% - 56px);
  }
}
/* Visual label next to play button */
.audio-player .audio-label {
  display: inline-block;
  margin-left: 8px;
  color: #333;
  font-size: 14px;
  line-height: 1;
  user-select: none;
}

@media screen and (max-width: 375px) {
  .audio-player .audio-label {
    font-size: 12px;
    margin-left: 6px;
  }
}
/* Seek bar inside audio-player */
.audio-player .seek-range {
  -webkit-appearance: none;
  appearance: none;
  width: 160px;
  height: 8px;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.12); /* darker track for contrast */
  outline: none;
  margin-top: 8px;
  position: relative;
  background-image: linear-gradient(90deg, #e74c3c 0%, #e74c3c 0%), none;
  background-repeat: no-repeat;
}

.audio-player .seek-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 6px;
  background: transparent;
}

.audio-player .seek-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -3px; /* center the thumb */
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  border: 2px solid rgba(0, 0, 0, 0.06);
}

.audio-player .seek-range::-moz-range-track {
  height: 8px;
  border-radius: 6px;
  background: transparent;
}

.audio-player .seek-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  border: 2px solid rgba(0, 0, 0, 0.06);
}

@media screen and (max-width: 375px) {
  .audio-player .seek-range {
    width: 120px;
    height: 5px;
  }
  .audio-player .seek-range::-webkit-slider-thumb,
  .audio-player .seek-range::-moz-range-thumb {
    width: 12px;
    height: 12px;
  }
}
/* Opening modal (modalGuidance) needs slightly less top spacing */
#modalGuidance .audio-player {
  padding-top: 4px;
}

@media screen and (max-width: 375px) {
  #modalGuidance .audio-player {
    padding-top: 2px;
  }
}
.movie {
  position: fixed;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  z-index: 500;
}

.movie video {
  width: 100%;
  display: block;
}

/* 右下固定のユニット */
.bgmControl {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px; /* ← まず隙間作って重なり排除 */
}

/* テキスト箱（見やすさ重視） */
.bgmLabel {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid rgba(255, 255, 255, 0.75); /* ← “黒く枠”要望に合わせて太め */
  border-radius: 8px;
  white-space: nowrap;
  overflow: visible; /* ← 変なクリップ保険 */
  pointer-events: none;
}

/* 再生ボタン */
.playBtn {
  position: relative; /* ← これが本命。アイコンの基準をボタンに固定 */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

/* スマホ向け: タップ領域とタッチ処理の改善 */
@media (max-width: 750px) {
  a, button, .btn, .close_btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
    min-width: 44px;
    box-sizing: border-box;
  }
}
/* モーダル表示時、フルスクリーンの固定要素がタップを奪わないようにする */
body.modal-open #loader-area,
body.modal-open #opening-clouds-outer,
body.modal-open .map-ui-outer,
body.modal-open .bgmControl,
body.modal-open .movie {
  pointer-events: none !important;
}

/* アイコン共通：ボタンの真ん中 */
.playBtn .icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

/* ▶︎ */
.playBtn .play {
  width: 0;
  height: 0;
  border-left: 14px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  transform: translate(-50%, -50%) translateX(2px);
}

/* ⏸ */
.playBtn .pause {
  width: 14px;
  height: 16px;
}

.playBtn .pause::before,
.playBtn .pause::after {
  content: "";
  position: absolute;
  top: 0;
  width: 5px;
  height: 100%;
  background: #fff;
}

.playBtn .pause::before {
  left: 0;
}

.playBtn .pause::after {
  right: 0;
}

/* 状態切り替え */
.playBtn.is-paused .play {
  opacity: 1;
}

.playBtn.is-playing .pause {
  opacity: 1;
}

/* スマホ調整 */
@media (max-width: 768px) {
  .bgmControl {
    right: 12px;
    bottom: 12px;
    gap: 6px;
  }
  .playBtn {
    width: 56px;
    height: 56px;
  }
  .bgmLabel {
    font-size: 11px;
    padding: 6px 9px;
  }
}
.site-header {
  position: fixed;
  z-index: 1000;
  right: 0;
  top: 0;
  padding: 10px 16px;
}
@media (min-width: 1921px) and (max-width: 1300px) {
  .site-header {
    padding: 0.5208333333vw 0.8333333333vw;
  }
}
@media (max-width: 750px) {
  .site-header {
    padding: 1.3333333333vw 2.1333333333vw;
  }
}
.site-header.open .main_nav {
  transform: translateX(0);
}
.site-header.open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 998;
}

.drawer-btn, .main_nav .drawer-close, #menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #3f8f4d;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  width: 165px;
  padding: 14px 24px;
  border-radius: 12px;
  border: 4px solid #fff;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
@media (min-width: 1921px) and (max-width: 1300px) {
  .drawer-btn, .main_nav .drawer-close, #menu {
    width: 8.59375vw;
    font-size: 1.0416666667vw;
    padding: 0.7291666667vw 1.25vw;
    border-radius: 0.625vw;
    border: 0.2083333333vw solid #fff;
    gap: 0.5208333333vw;
  }
}
@media (max-width: 750px) {
  .drawer-btn, .main_nav .drawer-close, #menu {
    width: 24vw;
    font-size: 2.9333333333vw;
    padding: 2.6666666667vw 3.2vw;
    border-radius: 1.6vw;
    border: 0.5333333333vw solid #fff;
    gap: 1.3333333333vw;
  }
}
.drawer-btn:active, .main_nav .drawer-close:active, #menu:active {
  transform: translateY(2px);
}

.title_area {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  padding: 16px 20px;
}
@media (min-width: 1921px) and (max-width: 1300px) {
  .title_area {
    padding: 0.8333333333vw 1.0416666667vw;
  }
}
@media (max-width: 750px) {
  .title_area {
    padding: 2.1333333333vw 2.6666666667vw;
  }
}
.title_area h1.logo {
  width: 240px;
  height: 60px;
  margin: 0;
}
@media (min-width: 1921px) and (max-width: 1300px) {
  .title_area h1.logo {
    width: 12.5vw;
    height: 3.125vw;
  }
}
@media (max-width: 750px) {
  .title_area h1.logo {
    width: 50.6666666667vw;
    height: 12.6666666667vw;
  }
}

.main_nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100svh;
  width: 100vw;
  max-width: 600px;
  background: #ffde57;
  transform: translateX(100%);
  transition: transform 0.3s;
  z-index: 1000000;
  overflow-y: auto;
  padding: 10px 16px;
}
@media (min-width: 1921px) and (max-width: 1300px) {
  .main_nav {
    padding: 0.5208333333vw 0.8333333333vw;
  }
}
@media (max-width: 750px) {
  .main_nav {
    padding: 1.3333333333vw 2.1333333333vw;
  }
}
.main_nav .drawer-close {
  display: block;
  text-align: center;
  width: 165px;
  margin-left: auto;
  margin-bottom: 32px;
}
@media (min-width: 1921px) and (max-width: 1300px) {
  .main_nav .drawer-close {
    margin-bottom: 1.6666666667vw;
    width: 8.59375vw;
  }
}
@media (max-width: 750px) {
  .main_nav .drawer-close {
    margin-bottom: 4.2666666667vw;
    width: 24vw;
    padding-top: 3.3333333333vw;
  }
}
.main_nav ul.gmenu_list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.main_nav ul.gmenu_list li {
  display: block;
  width: fit-content;
  margin: 14px auto 5px;
  background: linear-gradient(transparent 60%, #fff 30%);
  font-size: 26px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
}
.main_nav ul.gmenu_list li:hover {
  opacity: 0.85;
}
@media (min-width: 1921px) and (max-width: 1300px) {
  .main_nav ul.gmenu_list li {
    font-size: 1.3541666667vw;
    margin: 0.7291666667vw auto 0.2604166667vw;
  }
}
@media (max-width: 750px) {
  .main_nav ul.gmenu_list li {
    font-size: 3.7333333333vw;
    margin: 1.8666666667vw auto 0.6666666667vw;
  }
}

.main_nav {
  transform: translateX(100%);
}

.site-header.open .main_nav {
  transform: translateX(0);
}

.drawer-overlay {
  opacity: 0;
  pointer-events: none;
}

.site-header.open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}