.overview .overview_part3 .top {
  height: 125px;
}

.overview .overview_part4 .top {
  height: 125px;
}

.gallery_dots li:nth-child(1) button:before {
  content: 'Use in daily life';
  top: 43px;
  left: 24px;
}

.gallery_dots li:nth-child(2) button:before {
  content: 'Learn quickly';
  top: 43px;
  left: 34px;
}

.gallery_dots li:nth-child(3) button:before {
  content: 'For JLPT';
  top: 43px;
  left: 55px;
}

.gallery_dots li:nth-child(4) button:before {
  content: 'For Business\A(in Japanese only)';
  top: 31px;
  left: 9px;
}

.function .function_list li:nth-child(2) h3 {
  line-height: 1;
}

.function .function_list li:nth-child(3) h3 {
  padding: 29px 0 30px 80px;
}

.function .function_list li h4 {
  background-repeat: no-repeat;
}

.function .function_list li h3 {
  padding-top: 15px;
  padding-bottom: 0;
}

.country .area p {
  padding-top: 14px;
  font-size: 20px;
}

.purpose .purpose_gallery_list li h4 {
  font-size: 95%;
  white-space: normal;
}

.purpose .purpose_gallery_list.l2 .left .center_text {
  display: block;
  text-align: center;
  top: calc(50% - 35px);
}

.purpose .purpose_gallery_list.l2 .left li:nth-child(4) {
  left: 23px;
}

.purpose .purpose_gallery_list.l2 .left li:nth-child(4) p:last-child {
  margin-left: 5px;
}

.purpose .purpose_gallery_list.l3 li h4 {
  font-size: 140%;
}

.purpose .purpose_gallery_list.l2 .left li:nth-child(2) p:first-child {
  position: absolute;
  top: 110px;
  left: -9px;
}

.purpose .purpose_gallery_list.l2 .left li:nth-child(2) p:last-child {
  position: absolute;
  top: 30px;
  left: 0;
}

.purpose .purpose_gallery_list.l2 .left li:nth-child(4) p:first-child {
  position: absolute;
  top: 110px;
  left: -9px;
}

.purpose .purpose_gallery_list.l2 .left li:nth-child(4) p:last-child {
  position: absolute;
  top: 30px;
  right: 12px;
}

/* tab */
@media screen and (min-width: 960px) and (max-width: 1279px) {
  .overview_wrap .top img {
    width: 80%;
  }
  .country .area p {
    padding-top: 15px;
    font-size: 16px;
  }
}

@media screen and (min-width: 769px) and (max-width: 959px) {
  .environment .environment_wrap {
    width: auto;
  }
  .country .area p {
    padding-top: 10px;
    font-size: 16px;
  }
  .gallery_dots li:nth-child(1) button:before {
    content: 'Use in daily life';
    top: 35px;
    left: 24px;
  }

  .gallery_dots li:nth-child(2) button:before {
    content: 'Learn quickly';
    top: 35px;
    left: 34px;
  }

  .gallery_dots li:nth-child(3) button:before {
    content: 'For JLPT';
    top: 35px;
    left: 55px;
  }

  .gallery_dots li:nth-child(4) button:before {
    content: 'For Business\A(in Japanese only)';
    top: 24px;
    left: 9px;
  }
}

@media screen and (max-width: 768px) {
  .update .btn_detail > span::after {
    margin-left: 10px;
  }

  .environment .environment_wrap {
    width: 1280px;
  }

  .country {
    background-color: #f99b2c;
    background-image: url(../img/top/bk_online.png), url(../img/top/img_country_back1.png),
      url(../img/top/img_country_back2.png);
    background-size: auto auto, 55vw auto, 95vw auto;
    background-repeat: repeat, no-repeat, no-repeat;
    background-position: center, top left, top right;
  }

  .country h2 {
    line-height: 70px;
    font-family: source-han-sans-japanese, sans-serif;
    font-style: normal;
    font-weight: bold;
    font-size: 32px;
    color: white;
    margin: 30px 0;
    text-align: left;
  }

  .country ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .country li {
    color: white;
    margin-bottom: 37px;
    width: 50%;
  }

  .country .area {
    margin-bottom: 40px;
  }

  .country .area p {
    font-size: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
    height: auto;
  }

  .pankuzu .pankuzu_wrap {
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .pankuzu span:last-child {
    background: none;
    padding-right: 10px;
  }

  /* sp */
  .overview {
    padding: 50px 0;
    background-color: #ffc130;
    flex-wrap: wrap;
    justify-content: center;
  }

  .overview .overview_part3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
  }

  .overview .overview_part3 .top {
    margin-bottom: 10px;
  }

  .overview .overview_part3 .bottom {
    display: flex;
    justify-content: center;
  }

  .purpose .purpose_gallery_list img {
    width: auto;
    margin: 0 10px;
  }

  .gallery_dots li:nth-child(1) button:before {
    left: 29px;
  }

  .gallery_dots li:nth-child(3) button:before {
    left: 51px;
  }

  .gallery_dots li:nth-child(4) button:before {
    left: 15px;
  }

  .purpose .purpose_gallery_list.l2 .left li:nth-child(4) {
    left: 0;
  }

  .purpose .purpose_gallery_list.l2 .left .center_text {
    top: calc(50% - 28px);
  }
}
