.ana-imp-2024-map {

  --img-w: 600px;

  max-width: 1200px;
  background: #fffbf2;
  margin:  40px auto;
  /* padding: 20px 70px; */
  position: relative;
  border-radius: 50px;
  min-height: 850px;
  overflow: clip;

  /* display:flex;
  align-items: center; */

  display: grid;
  grid-template-columns: minmax( 0, 1fr ) auto;
  grid-template-areas:
    'map imgs'
    'details imgs';

  .instruction {
    position: absolute;
    color: #000;
    max-width: 360px;
    font-family: "myriad-pro";
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    top: 55px;
    left: 55px;
    transition: opacity .5s ease;
  }

  .japan-map {
    grid-area: map;
  }

  .pref-imgs {
    grid-area: imgs;
    position: relative;
    width: 0px;
    transition: width .5s ease;

    .imgs-wrap {
      overflow: clip;
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
    }

    .slick-list,
    .slick-track {
      height: 100%;
    }
    
    .slider {
      position: absolute;
      top: 0;
      height: 100%;
      left: 50%;
      width: var( --img-w );
      translate: -50% 0;
    }

    img {
      position: absolute;
      height: 100%;
      width: 100%;
      top: 0;
      left: 0%;
      object-fit: cover;
      object-fit: cover;
    }
  }

  .close-pref {
    position: absolute;
    top: .5rem;
    right: calc( 100% + .5rem );
    width: 2em;
    height: 2em;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 4px;
    border-color: transparent;
    background-color: transparent;
    opacity: 0;
    transition: all .5s ease;
    img {
      object-fit: contain;
    }
  }

  .pref-details {
    grid-area: details;
    text-align: center;
    color: #000;
    height: 0;
    transition: height .5s ease;

    .slider {
      background-color: transparent;
      padding: 0 55px 55px;
      width: var( --detail-w, initial );
    }

    .prefecture-name {
      font-family: 'TTTrailers-Md', 'TT Trailers';
      font-size: 60px;
      text-transform: uppercase;
    }

    .prefecture-desc {
      font-size: 18px;
      line-height: normal;
      font-family: 'myriad-pro';
    }

    .prefecture-cta {
      margin: 30px auto 0;
      a {
        color: #FFF;
        text-align: center;
        font-family: 'myriad-pro';
        font-size: 14px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        letter-spacing: -0.14px;
        background-color: #00A6FC;
        border-radius: 4px;
        padding: 20px 28px;
        display: inline-block;
        text-transform: uppercase;
        margin: 0 auto;
        text-decoration: none;
      }
    }

    
  }

  &.details-active {
    .pref-imgs {
      width: var( --img-w );
    }
    .pref-details {
      height: var( --detail-h, initial );
    }
    .instruction {
      opacity: 0;
    }
    .close-pref {
      opacity: 1;
      cursor: pointer;
      &:hover,
      &:focus-visible {
        border-color: #1d02ff;
      }
    }
  }
}


.map-container {
  position: relative;
  height: 100%;
  width: 100%;
  aspect-ratio: 1 / 1;

  #Layer_1 {
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    display: block;
  }

  .label {
    position: absolute;
    color: #000;
    z-index: 3;
    line-height: normal;
    font-size: 35px;
    font-family: 'myriad-pro';
    font-weight: 700;
    text-transform: uppercase;
    display: none;
    .active {
      display: block;
    }
  }

  .main-map,
  .prefecture {
    position: absolute;
    max-width: 100%;
  }

  .prefecture {
    z-index: 2;
    display: none;
    &.active,
    &.block {
      display: block;
    }
  }

  .marker,
  .marker-active {
    position: absolute;
    z-index: 23;
    cursor: pointer;
  }

  .marker {
    height: 40px;
  }
  
  .marker-active {
    height: 80px;
    display: none;
    &.active, 
    &.block {
      display: block;
    }
  }
  
}


.japan-map {
  height: fit-content;
  max-width: 1080px;
  width: 100%;
  aspect-ratio: 1 / 1;
  transition: all 1s;
  padding: 55px;
  margin: 0 auto;

  .map-container {
    .marker {
      &.m-yamaguchi {
        top: 68%;
        left: 20.75%;
      }
      &.m-hakone {
        top: 63.25%;
        left: 63.75%;
      }
      &.m-okinawa {
        top: 92%;
        left: 4.875%;
      }
    }
    .marker-active {
      &.ma-yamaguchi {
        top: 64.75%;
        left: 19%;
      }
      &.ma-hakone {
        top: 59.875%;
        left: 62%;
      }
      &.ma-okinawa {
        top: 88.5%;
        left: 3%;
      }
    }
  }
}


.prefecture-modal {
  transition: transform 2s, opacity 2s, flex-basis 0ms, width 0ms, left 0ms;
  width: 1px;
  height: 1px;
  visibility: hidden;
  opacity: 0;
  transform: scale(1) translateY(-100px) translateX(calc(-100% - 70px));
  flex-basis: 0;
  transition-delay: 0s;
  position: absolute;
  left: -99999px;
  &.active {
    height: auto;
    visibility: visible;
    opacity: 1;
    transform: translateX(calc(-100% - 70px));
    transition-delay: 1s;
    left: 100%;
  }
}


.ana-imp-2024-map .prefecture-nav,
.ana-imp-2024-map .prefecture-control,
.ana-imp-2024-accordion .prefecture-nav,
.ana-imp-2024-accordion .prefecture-control {
  display: none !important;
}


@media screen and (min-width: 1200px) {

  .japan-map.modal-active {
    max-width: 640px;
    padding-top: 40px;
    padding-right: 40px;
    transform: scale(1);
  }

  .japan-map.modal-active .label {
    display: none;
  }

  .japan-map.modal-active .map-container .marker,
  .japan-map.modal-active .map-container .marker-active {
    transform: translateX(-20%) translateY( -40% );
  }

  .prefecture-modal {
    padding: 48px 40px;
    border: solid 2px #1D02FF;
    border-radius: 42px;
    margin-top: 35px;
    margin-bottom: 35px;
    background: white;
  }
  
  .prefecture-modal.active {
    display: block;
    flex-basis: 420px;
    width: 420px;
  }

  .prefecture-modal .modal-close {
    position: absolute;
    top: 0;
    right: 36px;
    color: #000;
    font-size: 40px;
    cursor: pointer;
  }

  .prefecture-modal .image-container {
    width: 266px;
    /* height: 380px; */
    margin: 0 auto;
    display: flex;
    align-items: center;
  }

  .prefecture-modal img.prefecture-image {
    border-radius: 66px;
    border: 3px solid #1D02FF;
  }

  .prefecture-modal .prefecture-control {
    text-align: center;
    margin: 30px 0 0;
    height: 16px
  }

  .prefecture-modal .prefecture-control a {
    display: inline-block;
    background-color: #FF1DC1;
    border: solid 1px #fff;
    text-indent: -9999px;
    border-radius: 14px;
    width: 14px;
    height: 14px;
    margin: 0 6px;
    padding: 0;
  }

  .prefecture-modal .prefecture-control a.active {
    border: solid 1px #FF1DC1;
    background: #fff;
  }

  .prefecture-modal .prefecture-nav {
    position: absolute;
    top: 223px;
    cursor: pointer;
  }

  .prefecture-modal .prefecture-nav.left {
    left: calc( 50% - 195px );
  }

  .prefecture-modal .prefecture-nav img {
    width: 53px;
    height: auto;
  }

  .prefecture-modal .prefecture-nav.right {
    left: calc(50% + 144px);
    transform: scaleX(-1);
  }

  .prefecture-modal .content-container {
    margin-top: 20px;
  }

  .prefecture-modal .prefecture-name {
    color:  #000;
    text-align: center;
    font-family: 'TT Trailers';
    font-size: 60px;
    text-transform: uppercase;
  }

  .prefecture-modal .prefecture-desc {
    color:  #000;
    font-size: 18px;
    line-height: normal;
    font-family: 'myriad-pro';
    text-align: center;
  }

  .prefecture-modal .prefecture-cta {
    margin: 30px auto 0;
    text-align: center;
  }

  .prefecture-modal a.btn {
    color: #FFF;
    text-align: center;
    font-family: 'myriad-pro';
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.14px;
    background-color: #00A6FC;
    border-radius: 4px;
    padding: 20px 28px;
    display: inline-block;
    text-transform: uppercase;
    margin: 0 auto;
  }
}

.ana-imp-2024-accordion {
  display: none;
  .prefecture-body-container {
    display: none;
  }
}

@media screen and (max-width: 1199px) {
  .close-pref {
    display: none !important;
  }
  .japan-map {
    padding: 0 !important;
    transform: scale(1) !important;
  }
  .ana-imp-2024-map {
  transform: scale(0.9);
  min-height: 0 !important;
  }
  .pref-details,
  .pref-imgs {
    display: none !important;
  }
  .prefecture-modal.active {
    display: none;
  }
  .ana-imp-2024-map {
    padding: 30px;
  }

  .map-container .label.active {
    display: none !important;
  }

  .ana-imp-2024-accordion {
    display: flex;
    flex-flow: column nowrap;
    gap: 1px;
    width: 100vw;
    margin-top: 30px;
    margin-bottom: 30px;
    position: relative;
    margin-left: -50vw;
    left: 50%;
    background-color: white;
    .a-entry {
      background-color: #1D02FF;
    }
  }

  .a-entry .prefecture-name {
    max-width: 100%;
    width: 95%;
    margin: auto;
    color: #FFFBF2;
    font-family: 'myriad-pro';
    font-size: 25px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    line-height: 70px;
    height: 70px;
    cursor: pointer;
    padding-left: 20px;
  }

  .a-entry .prefecture-body {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #FFFBF2;
    padding: 60px 30px;
  }

  .a-entry .prefecture-body img.prefecture-image {
    display: block;
    border-radius: 66px;
    border: 3px solid #1D02FF;
    height: auto;
    max-width: min( 340px, 100% );
    margin: 0 auto;
  }

  .a-entry .prefecture-body .content-container {
    margin-top: 30px;
  }

  .a-entry .prefecture-body .prefecture-desc {
    color:  #000;
    font-size: 18px;
    line-height: normal;
    font-family: 'myriad-pro';
    text-align: center;
    margin: 0 auto;
  }

  .a-entry .prefecture-body .prefecture-cta {
    margin: 30px auto 0;
    text-align: center;
  }

  .a-entry .prefecture-body a.btn {
    color: #FFF;
    text-align: center;
    font-family: 'myriad-pro';
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.14px;
    background-color: #00A6FC;
    border-radius: 4px;
    padding: 20px 28px;
    display: inline-block;
    text-transform: uppercase;
    margin: 0 auto;
    text-decoration: none !important;
  }

  .ana-imp-2024-map {
    grid-template-areas:
      'instr instr'
      'map imgs'
      'details imgs';
  }
  .ana-imp-2024-map .instruction {
    position: static;
    max-width: initial;
    text-align: center;
    grid-area: instr;
    margin-bottom: 1.5rem;
    opacity: 1 !important;
  }
}

@media screen and (max-width: 576px) {
  .ana-imp-2024-map {
  transform: scale(1);
  }
}

@media screen and (max-width: 1100px) {
  .japan-map .map-container .marker-active {
    transform: translateX( -4% ) translateY( -10% );
  }
  .japan-map .map-container .marker {
    transform: translateX( -4% ) translateY( -10% );
  }
}

@media screen and (max-width: 1000px) {
  .japan-map .map-container .marker-active {
    transform: translateX( -10% ) translateY( -20% );
  }
  .japan-map .map-container .marker {
    transform: translateX( -10% ) translateY( -20% );
  }
}

@media screen and (max-width: 900px) {
  .ana-imp-2024-map .instruction {
    font-size: 22px;
  }
  .japan-map .map-container .marker-active,
  .japan-map .map-container .marker {
    transform: translateX( -12.5% ) translateY( -25% );
  }
}

@media screen and (max-width: 800px) {
  .japan-map .map-container .marker-active,
  .japan-map .map-container .marker {
    transform: translateX( -15% ) translateY( -30% );
  }
}

@media screen and (max-width: 700px) {
  .japan-map .map-container .marker-active,
  .japan-map .map-container .marker {
    transform: translateX( -22.5% ) translateY( -45% );
  }
}

@media screen and (max-width: 600px) {
  .japan-map .map-container .marker-active,
  .japan-map .map-container .marker {
    transform: translateX( -27.5% ) translateY( -50% );
  }
}

@media screen and (max-width: 500px) {
  .japan-map .map-container .marker-active,
  .japan-map .map-container .marker {
    transform: translateX( -35% ) translateY( -60% );
  }
}

@media screen and (max-width: 400px) {
  .japan-map .map-container .marker-active,
  .japan-map .map-container .marker {
    transform: translateX( -37.5% ) translateY( -65% );
  }
}