/* pc用 */
@media screen and (min-width: 1024px) {
#map {
  height: 259px;
  margin: -10px auto;
  width: 762px;
}

#map a {
  text-decoration: none;
}

#map-area {
  float: left;
  height: 239px;
  position: relative;
  width: 762px;
}

.japan-map {
  height: 249px;
  width: 762px;
}

#school-map-search .area {
  position: absolute;
}

#school-map-search .area img {
  border: none;
}

#school-map-search .area h3 {
  background: none;
  background-image: none;
  left: 0;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
  width: auto;
  z-index: 2;
}

#school-map-search .area ul {
  background: url('./img/popup_bg.png');
  border: 2px #fff solid;
  border-bottom-color: #a5aaaf;
  border-right-color: #a5aaaf;
  display: none;
  left: -9px;
  list-style: none;
  margin: 0;
  padding: 46px 0 9px 9px;
  position: absolute;
  top: -9px;
  width: 216px;
  z-index: 1;
}

#school-map-search .area li a {
  background: url('.img/link_bg.png');
  color: #06c;
  cursor: pointer;
  float: left;
  font-size: 15px;
  height: 22px;
  line-height: 19px;
  margin: 0 8px 7px 0;
  padding: 0 0 0 17px;
  text-decoration: underline;
  width: 82px;
}

#school-map-search .area li a:hover {
  color: #09c;
}

}


@media screen and (max-width: 1023px) {
  #map {
    width: 100%;
    height: auto;
    margin: 10px auto;
  }

  #map a {
    text-decoration: none;
  }

  #map-area {
    float: none;
    width: 100%;
    height: auto;
    position: relative;
  }

  .japan-map {
    width: 100%;
    height: 150px;
    display: block;
    background-image: url('path/to/your-image.jpg');
    background-size: 100% 100%; 
    background-position: center center;
    background-repeat: no-repeat;
  }

  #school-map-search .area {
    position: absolute;
  }
  
  #school-map-search .area img {
    border: none;
    height: 20px;
  }
  
  #school-map-search .area h3 {
    background: none;
    background-image: none;
    left: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    width: auto;
    z-index: 2;
  }
  
  #school-map-search .area ul {
    background: url('./img/popup_bg.png');
    border: 2px #fff solid;
    border-bottom-color: #a5aaaf;
    border-right-color: #a5aaaf;
    display: none;
    left: -9px;
    list-style: none;
    margin: 0;
    padding: 46px 0 9px 9px;
    position: absolute;
    top: -9px;
    width: 90px;
    z-index: 1;
  }
  
  #school-map-search .area li a {
    background: url('./img/link_bg.png');
    color: #06c;
    cursor: pointer;
    float: left;
    font-size: 15px;
    height: 22px;
    line-height: 19px;
    margin: 0 8px 7px 0;
    padding: 0 0 0 17px;
    text-decoration: underline;
    width: 60px;
  }
  
  #school-map-search .area li a:hover {
    color: #09c;
  }
}