@charset "utf-8";
/* CSS Document */
/*--top----------------------------------------------------------*/
.top .main {
  display: flex;
  max-height: 500px;
  background: url("../image/maths/maths_main.jpg") no-repeat 0 0;
  background-size: cover;
  padding: 10% 0;
}
.main h1 {
  display: flex;
  flex-wrap: wrap;
  color: #fff;
  line-height: 1.5;
  font-size: 3rem;
  font-weight: bold;
  margin-left: 10%;
}
.main h1 span {
  font-size: 1.6rem;
}
.description_area {
  background-image: url("../image/abacus/deco2.gif"), url("../image/abacus/deco3.gif"), url("../image/abacus/deco4.gif");
  background-repeat: no-repeat;
  background-size: 7% auto;
  background-position: top 40% right 20%, bottom 15% left 30%, top 35% left 15%;
}
.description_area .inner {
  margin-top: 80px;
}
.description_area h3 {
  font-size: 2rem;
  line-height: 2;
}
.other-link {
  vertical-align: middle;
  margin-right: 20px;
}
.other-link img {
  vertical-align: middle;
  width: 20px;
}
.description_area a {
  position: relative;
  z-index: 0;
}
.description_area a .other-link-icon {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  right: 30px;
  z-index: 2;
}
.description_area a .other-link-wh-icon {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  right: 30px;
  z-index: 1;
}
.description_area a:hover {
  color: #fff;
  background-color: #8cc11e;
}
.description_area a:hover img {
  opacity: 1;
}
.description_area a:hover .other-link-icon {
  display: none;
}
.math_discription {
  display: block;
  padding-bottom: 50px;
  line-height: 2;
  font-size: 1.6rem;
  width: 85%;
  margin: 20px auto;
  text-align: left;
}
@media screen and (max-width: 926px) {
  .description_area {
    background-size: 10% auto;
    background-position: top 40% right 10%, bottom 15% left 30%, top 35% left 10%;
  }
}
@media screen and (max-width: 749px) {
  .math_discription {
    font-size: 1.4rem;
  }
  .br-sp3 {
    display: block;
  }
}
@media screen and (max-width: 480px) {
  .top .main {
    height: 400px;
    background: url("../image/maths/moth_mobile.jpg") no-repeat 0 0;
    background-size: cover;
  }
  .description_area {
    background-size: 15% auto;
    background-position: top 40% right 10%, bottom 15% left 30%, top 35% left 10%;
  }
  .top .main {
    height: 400px;
  }
  .main h1 {
    font-size: 2.4rem;
    line-height: 260px;
  }
  .description_area h3 {
    font-size: 1.8rem;
  }
  .br-sp2 {
    display: block;
  }
  .service_dot {
    display: none;
  }
}
/*--study--------------------------------------------------------*/
.study {
  margin-top: 150px;
}
.list-1,
.list-2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 80px 10%;
}
.descreption-img {
  width: 50%;
}
.list-2 {
  flex-flow: row-reverse;
}
.list-1 img {
  box-shadow: 100px 30px 0 #fff59f;
}
.list-2 img {
  box-shadow: -100px 30px 0 #fff59f;
}
.descreption-text-1,
.descreption-text-2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  height: 300px;
  padding: 30px 5%;
  z-index: 2;
}
.study h3 {
  display: inline-block;
  font-weight: bold;
  border-bottom: 1px solid #333;
  margin-bottom: 20px;
  font-size: 2rem;
  line-height: 2;
  text-align: left;
}
.descreption-text-1 p,
.descreption-text-2 p {
  width: 100%;
  text-align: left;
  line-height: 2;
  margin: 0 auto;
}
.a-link {
  display: flex;
  flex-direction: column;
  margin: -30px 0 0 60%;
}
.list-1 a {
  color: #0d9203;
  text-decoration: none;
  text-align: right;
  margin-top: 10px;
}
.list-1 a:hover {
  opacity: 0.5;
}
@media screen and (max-width: 1200px) {
  .study h3 {
    font-size: 1.8rem;
  }
  .list-1 a {
    font-size: 1.4rem;
  }
}
@media screen and (max-width: 800px) {
  .a-link {
    margin: -15px 0 0 50%;
  }
}
@media screen and (max-width: 926px) {
  .section-descreption h2 {
    font-size: 3rem;
  }
  .descreption-text-1 p,
  .descreption-text-2 p {
    font-size: 1.4rem;
  }
  .list-1 a {
    font-size: 1.4rem;
  }
}
@media screen and (max-width: 640px) {
  .list-2,
  .list-4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .descreption-text-1,
  .descreption-text-2 {
    width: 100%;
  }
  .descreption-img {
    width: 100vw;
  }
  .descreption-text {
    margin: 40px 0 50px;
  }
  .descreption-text p {
    margin-top: 30px;
    text-align: center;
  }
  .a-link {
    margin: -60px 0 0 20%;
  }
}
@media screen and (max-width: 480px) {
  .descreption-img {
    margin-bottom: 50px;
  }
  .a-link {
    margin: -50px 0 0 0;
  }
  .br-sp4 {
    display: block;
  }
}
@media screen and (max-width: 330px) {
  .a-link {
    margin: -30px 0 0 0;
  }
}
/*--lesson time prise-------------------------------------------------------*/
.lesson-time_price {
  margin-top: 140px;
}
.lesson-time_price .inner {
  width: 92%;
}
.tbl-r03 {
  margin: 50px 1% 10px;
  width: 100%;
  table-layout: fixed;
  word-wrap: break-all;
}
th {
  background: #8cc11e;
  border: solid 1px #ccc;
  color: #fff;
  padding: 1% 0;
}
td {
  border: solid 1px #ccc;
  padding: 1% 0;
  vertical-align: middle;
}
.lesson_time p {
  text-align: left;
  font-size: 1.4rem;
}
.price {
  background-color: #f5f5f5;
  margin: 50px 0;
  padding: 50px;
}
.price span {
  font-size: 1.4rem;
  text-align: left;
  display: block;
}
.first_price,
.month_price {
  display: flex;
  border-bottom: 1px solid #9e9e9e;
  font-size: 2rem;
  margin: 20px 0;
  padding-left: 10px;
  justify-content: space-between;
}
.first_price div:first-child,
.month_price div:first-child {
  text-align: left;
}
.pp {
  display: flex;
}
@media screen and (max-width: 640px) {
  .scroll {
    overflow-x: auto;
  }
  .fill span {
    writing-mode: vertical-rl;
    -webkit-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    vertical-align: middle;
    min-height: 4em;
  }
}
@media screen and (max-width: 480px) {
  .td_time {
    font-size: 1.4rem;
  }
  .first_price,
  .month_price {
    font-size: 1.6rem;
  }
  .lesson_time p,
  .price span {
    font-size: 1.2rem;
  }
  .price {
    padding: 20px;
  }
  .first_price div:last-child::after {
    width: 4em;
  }
}
@media screen and (max-width: 420px) {
  td {
    font-size: 1.4rem;
  }
  .td_time {
    font-size: 1.2rem;
  }
}
/*--voice-----------------------------------------------------------*/
.voice {
  background-image: url("../image/top/flag_illust.png");
  background-repeat: no-repeat;
  background-size: 15% auto;
  background-position: top 0 right 50%;
}
.voice {
  margin: 80px 5% 60px;
  padding-top: 60px;
}
.voice.inner {
  display: inline-block;
  padding: 50px 0;
  width: 80%;
  margin: 0 auto;
}
.voice ul {
  list-style: none;
  margin-top: 50px;
}
.voice ul li {
  padding: 20px;
  margin-bottom: 30px;
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid #5f5f5f;
}
.voice h3 {
  margin: 20px;
  text-align: left;
  line-height: 2;
  width: 100%;
}
.voice p {
  text-align: left;
  font-size: 1.2rem;
  margin-top: 10px;
}
.img_sub {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
}
.container3 {
  display: flex;
}
@media screen and (max-width: 768px) {
  .voice {
    background-size: 200px auto;
    background-position: top 0 right 50%;
  }
}
@media screen and (max-width: 663px) {
  .voice ul li {
    margin-left: 0;
  }
}
@media screen and (max-width: 481px) {
  .container3 {
    display: block;
    margin: 10px auto;
  }
  .voice h3 {
    font-size: 1.4rem;
    margin: 10px 0;
  }
}
