/*============================================================================================================
	education
============================================================================================================*/

/*------------------------------------------
	#intro
------------------------------------------*/

#intro {
  padding: 430px 0 554px;
  position: relative;
  background: url("../img/education/bg_intro01.png") no-repeat center 124px, url("../img/education/bg_intro02.png") no-repeat center bottom 90px;
}

#intro .inner {
  position: relative;
  z-index: 2;
}

#intro .lead {
  display: table;
  text-align: center;
  font-size: 33px;
  letter-spacing: 6px;
  padding: 31px 72px 12px 72px;
  margin: 0 auto 32px;
  position: relative;
}

#intro .lead:before, #intro .lead:after {
  content: "";
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
}

#intro .lead:before {
  width: 38px;
  height: 43px;
  background-image: url("../img/ico/ico_kira01.svg");
  bottom: 0;
  left: 0;
}

#intro .lead:after {
  width: 72px;
  height: 86px;
  background-image: url("../img/ico/ico_kira02.svg");
  top: 0;
  right: 0;
}

#intro .txt {
  text-align: center;
}

#intro .txt+.txt {
  margin-top: 32px;
}

#intro .bgImg {
  position: absolute;
}

#intro .bgImg01 {
  top: 173px;
  left: calc(50% - 632px);
}

#intro .bgImg02 {
  top: 167px;
  left: calc(50% + 362px);
}

#intro .bgImg03 {
  bottom: 238px;
  left: calc(50% - 874px);
}

#intro .bgImg04 {
  bottom: 163px;
  left: calc(50% + 248px);
}

@media screen and (max-width: 768px) {
  #intro {
    padding: 57% 0 67px;
    background: url("../img/education/bg_intro01.png") no-repeat center 16%;
    background-size: 200%;
  }
  #intro .lead {
    display: block;
    font-size: 18px;
    letter-spacing: 4px;
    padding: 33px 0 34px;
    margin-bottom: 8px;
  }
  #intro .lead:before {
    width: 26px;
    height: 36px;
    left: -11px;
  }
  #intro .lead:after {
    width: 31px;
    height: 39px;
    right: -12px;
  }
  #intro .txt+.txt {
    margin-top: 24px;
  }
  #intro .bgImg01 {
    bottom: auto;
    top: 21.5%;
    width: 38%;
    left: 3%;
  }
  #intro .bgImg02 {
    bottom: auto;
    top: 12.5%;
    left: auto;
    right: 3%;
    width: 47%;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  #intro .bgImg01 {
    left: calc(50% - 472px);
    width: 32%;
  }
  #intro .bgImg02 {
    left: calc(50% - -150px);
    width: 32%;
  }
  #intro .bgImg03 {
    left: calc(50% - 460px);
    width: 32%;
  }
  #intro .bgImg04 {
    left: calc(50% - -120px);
    width: 32%;
    bottom: 240px;
  }
}

/*------------------------------------------
	#topic
------------------------------------------*/

#topic {
  padding: 155px 0 100px;
}

#topic .topicBox {
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
}

#topic .topicBox .topicBoxIn {
  position: relative;
  z-index: 2;
  padding: 0 30px;
}

#topic .topicBox:nth-of-type(odd) .top .imgBox {
  left: calc(50% - 320px);
}

#topic .topicBox:nth-of-type(odd) .top .txtBox {
  margin: 49px auto 0 -11px;
  -webkit-transform: rotate(359deg);
  -ms-transform: rotate(359deg);
  transform: rotate(359deg);
}

#topic .topicBox:nth-of-type(odd) .top .txtBox .in {
  -webkit-transform: rotate(-359deg);
  -ms-transform: rotate(-359deg);
  transform: rotate(-359deg);
}

#topic .topicBox:nth-of-type(even) .top .imgBox {
  right: calc(50% - 307px);
}

#topic .topicBox:nth-of-type(even) .top .txtBox {
  margin: 75px -4px 0 auto;
  -webkit-transform: rotate(-359deg);
  -ms-transform: rotate(-359deg);
  transform: rotate(-359deg);
}

#topic .topicBox:nth-of-type(even) .top .txtBox .in {
  -webkit-transform: rotate(359deg);
  -ms-transform: rotate(359deg);
  transform: rotate(359deg);
}

#topic .topicBox:nth-of-type(1) {
  margin-bottom: 217px;
}

#topic .topicBox:nth-of-type(1) .topicBoxIn {
  background: url("../img/education/ico_topic01.svg") no-repeat right calc(50% - 437px) bottom 72px;
}

#topic .topicBox:nth-of-type(1) .top .txtBox:before {
  width: 219px;
  height: 76px;
  background-image: url("../img/ico/ico_tape04.png");
  left: 0;
  right: 0;
  top: -42px;
  margin: auto;
}

#topic .topicBox:nth-of-type(2) {
  margin-bottom: 150px;
  position: relative;
}

#topic .topicBox:nth-of-type(2):before {
  content: "";
  display: block;
  background: url("../img/education/bg_topic02.png") no-repeat center;
  width: 1920px;
  height: 476px;
  position: absolute;
  top: -345px;
  left: 50%;
  margin-left: -960px;
}

#topic .topicBox:nth-of-type(2) .topicBoxIn {
  background: url("../img/education/ico_topic02.svg") no-repeat right calc(50% - 328px) bottom 82px;
}

#topic .topicBox:nth-of-type(2) .top .txtBox:before, #topic .topicBox:nth-of-type(2) .top .txtBox:after {
  width: 65px;
  height: 92px;
  background-image: url("../img/ico/ico_tape03.png");
  top: -30px;
}

#topic .topicBox:nth-of-type(2) .top .txtBox:before {
  right: 15px;
}

#topic .topicBox:nth-of-type(2) .top .txtBox:after {
  left: 15px;
  -webkit-transform: scale(-1, 1);
  -ms-transform: scale(-1, 1);
  transform: scale(-1, 1);
}

#topic .topicBox:nth-of-type(2) .top .txtBox .tit .en {
  margin: 8px 0 0 -20px;
}

#topic .topicBox:nth-of-type(3) {
  position: relative;
}

#topic .topicBox:nth-of-type(3):before {
  content: "";
  display: block;
  background: url("../img/education/bg_topic03.png") no-repeat center;
  width: 1920px;
  height: 476px;
  position: absolute;
  top: -201px;
  left: 50%;
  margin-left: -960px;
}

#topic .topicBox:nth-of-type(3) .top .txtBox:before {
  width: 160px;
  height: 94px;
  left: -45px;
  top: 11px;
  background-image: url("../img/ico/ico_tape06.png");
}

#topic .topicBox:nth-of-type(3) .top .txtBox:after {
  width: 164px;
  height: 68px;
  background-image: url("../img/ico/ico_tape07.png");
  top: -45px;
  right: -31px;
}

#topic .topicBox:nth-of-type(3) .top .txtBox .tit .en {
  margin: 5px 0 0 -15px;
}

#topic .topicBox .top {
  height: 630px;
  margin: 0 auto 90px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
}

#topic .topicBox .top .imgBox {
  height: 630px;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
}

#topic .topicBox .top .imgBox .img {
  max-width: none;
  height: 630px;
}

#topic .topicBox .top .txtBox {
  width: 50%;
  max-width: 626px;
  background: -moz-linear-gradient(top, #f1efef 0%, #fff 20%);
  background: -webkit-linear-gradient(top, #f1efef 0%, #fff 20%);
  background: -webkit-gradient(linear, left top, left bottom, from(#f1efef), color-stop(20%, #fff));
  background: -o-linear-gradient(top, #f1efef 0%, #fff 20%);
  background: linear-gradient(to bottom, #f1efef 0%, #fff 20%);
  -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

#topic .topicBox .top .txtBox:before, #topic .topicBox .top .txtBox:after {
  content: "";
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
}

#topic .topicBox .top .txtBox .in {
  padding: 90px 80px 85px;
}

#topic .topicBox .top .txtBox .tit {
  font-size: 14px;
  margin-bottom: 15px;
}

#topic .topicBox .top .txtBox .tit .ja {
  margin: 0 0 5px 14px;
}

#topic .topicBox .top .txtBox .tit .en {
  display: block;
  max-height: 91px;
}

#topic .topicBox .list {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

#topic .topicBox .list .item {
  width: 31.5%;
  margin: 0 2.75% 44px 0;
}

#topic .topicBox .list .item:nth-of-type(3n) {
  margin-right: 0;
}

#topic .topicBox .list .item .tit {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 3px;
  padding: 3px 40px 10px;
  margin-bottom: 18px;
  background: url("../img/education/bg_topic01.png") no-repeat left bottom;
  background-size: auto 52px;
}

#topic .topicBox .list .item .txt {
  font-size: 15px;
}

@media screen and (max-width: 768px) {
  #topic {
    padding: 57px 0 79px;
  }
  #topic .topicBox:nth-of-type(1) {
    margin-bottom: 35px;
  }
  #topic .topicBox:nth-of-type(1) .topicBoxIn {
    padding-bottom: 120px;
    background-size: 106px;
    background-position: right 21px bottom;
  }
  #topic .topicBox:nth-of-type(1) .top .txtBox:before {
    width: 114px;
    height: 40px;
    top: -23px;
  }
  #topic .topicBox:nth-of-type(1) .top .txtBox .tit .ja {
    margin: 0;
  }
  #topic .topicBox:nth-of-type(2) {
    margin-bottom: 30px;
  }
  #topic .topicBox:nth-of-type(2) .topicBoxIn {
    padding-bottom: 122px;
    background-size: 119px;
    background-position: 20px bottom;
  }
  #topic .topicBox:nth-of-type(2):before {
    height: 198px;
    width: 800px;
    margin-left: -400px;
    top: -165px;
    background-size: contain;
  }
  #topic .topicBox:nth-of-type(2) .top .imgBox {
    margin-bottom: 0;
  }
  #topic .topicBox:nth-of-type(2) .top .txtBox:before, #topic .topicBox:nth-of-type(2) .top .txtBox:after {
    width: 35px;
    height: 48px;
  }
  #topic .topicBox:nth-of-type(2) .top .txtBox:before {
    right: 11px;
  }
  #topic .topicBox:nth-of-type(2) .top .txtBox:after {
    left: 11px;
  }
  #topic .topicBox:nth-of-type(2) .top .txtBox .tit .ja {
    margin: 0 0 0 10px;
  }
  #topic .topicBox:nth-of-type(2) .top .txtBox .tit .en {
    margin: 6px 0 0 -13px;
  }
  #topic .topicBox:nth-of-type(3):before {
    width: 800px;
    height: 198px;
    top: -164px;
    background-image: url("../img/education/bg_topic02.png");
    background-size: contain;
    margin-left: -400px;
  }
  #topic .topicBox:nth-of-type(3) .top .txtBox:before {
    width: 76px;
    height: 45px;
    left: -16px;
    top: -14px;
  }
  #topic .topicBox:nth-of-type(3) .top .txtBox:after {
    width: 78px;
    height: 32px;
    top: -12px;
    right: -14px;
  }
  #topic .topicBox:nth-of-type(3) .top .txtBox .in {
    padding: 30px 40px;
  }
  #topic .topicBox:nth-of-type(3) .top .txtBox .tit .ja {
    margin: 0 0 5px 9px;
  }
  #topic .topicBox:nth-of-type(3) .top .txtBox .tit .en {
    margin: 1px 0 0 -6px;
  }
  #topic .topicBox:nth-of-type(3) .top .imgBox {
    width: 95%;
    margin-bottom: 56px;
  }
  #topic .topicBox .topicBoxIn {
    padding: 0;
  }
  #topic .topicBox .top {
    height: auto;
    display: block;
    margin-bottom: 41px;
  }
  #topic .topicBox .top .imgBox {
    height: auto;
    position: static;
    margin: 0 auto -10px;
  }
  #topic .topicBox .top .imgBox .img {
    height: auto;
    max-width: 100%;
  }
  #topic .topicBox .top .txtBox {
    width: 86%;
    max-width: none;
    margin: 0 auto !important;
  }
  #topic .topicBox .top .txtBox .in {
    padding: 41px 39px 34px;
  }
  #topic .topicBox .top .txtBox .tit {
    font-size: 10px;
    margin-bottom: 10px;
  }
  #topic .topicBox .top .txtBox .tit .en {
    max-height: 45px;
  }
  #topic .topicBox .top .txtBox .txt {
    font-size: 11px;
    line-height: 1.8;
  }
  #topic .topicBox .list {
    display: block;
    padding: 0 20px;
  }
  #topic .topicBox .list .item {
    width: 100%;
    margin: 0 auto 30px !important;
  }
  #topic .topicBox .list .item:last-of-type {
    margin-bottom: 0 !important;
  }
  #topic .topicBox .list .item .tit {
    max-width: 335px;
    font-size: 14px;
    font-weight: bold;
    padding: 12px 16px 10px 40px;
    margin: 0 auto 17px;
  }
  #topic .topicBox .list .item .txt {
    font-size: 12px;
    line-height: 1.8;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  #topic .topicBox:nth-of-type(even) .top .imgBox {
    right: calc(50% - 165px);
  }
  #topic .topicBox .top .imgBox .img {
    height: 480px;
  }
}

/*------------------------------------------
	#message
------------------------------------------*/

#message {
  padding: 184px 0 198px;
  background: url("../img/education/bg_message03.png");
}

#message .box {
  position: relative;
}

#message .box .txtBox {
  padding: 0 37% 100px 7px;
  position: relative;
}

#message .box .txtBox:before, #message .box .txtBox:after {
  content: "";
  display: block;
  position: absolute;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

#message .box .txtBox:before {
  width: 246px;
  height: 89px;
  background-image: url("../img/education/bg_message01.png");
  top: 22px;
  right: 34.5%;
}

#message .box .txtBox:after {
  width: 771px;
  height: 197px;
  background-image: url("../img/education/bg_message02.png");
  bottom: 0;
  left: 0;
}

#message .box .txtBox .secTit, #message .box .txtBox .txt {
  position: relative;
  z-index: 2;
}

#message .box .txtBox .secTit {
  margin-bottom: 26px;
}

#message .box .txtBox .txt {
  margin: 0 0 0 58px;
}

#message .box .txtBox .txt.is-indent {
  text-indent: 1em;
}

#message .box .txtBox .txt+.txt {
  margin-top: 30px;
}

#message .box .imgBox {
  width: 32.2%;
  text-align: center;
  padding: 26px 32px 18px;
  margin: 69px 14px 0 auto;
  border-radius: 5px;
  background: #fff;
  -webkit-transform: rotate(1deg);
  -ms-transform: rotate(1deg);
  transform: rotate(1deg);
  -webkit-box-shadow: 0 0 5px rgba(51, 51, 51, 0.5);
  box-shadow: 0 0 5px rgba(51, 51, 51, 0.5);
  position: absolute;
  top: 0;
  right: 0;
}

#message .box .imgBox:before {
  content: "";
  display: block;
  width: 178px;
  height: 47px;
  background: url("../img/ico/ico_tape08.png") no-repeat center;
  background-size: contain;
  position: absolute;
  left: 0;
  right: 0;
  top: -33px;
  margin: auto;
}

#message .box .imgBox .img, #message .box .imgBox .prof, #message .box .imgBox .name {
  -webkit-transform: rotate(-1deg);
  -ms-transform: rotate(-1deg);
  transform: rotate(-1deg);
}

#message .box .imgBox .img {
  width: 100%;
  margin: 0 auto 23px;
}

#message .box .imgBox .prof {
  font-size: 14px;
  line-height: 1;
  margin-bottom: -3px;
}

#message .box .imgBox .name {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 3px;
}

@media screen and (max-width: 768px) {
  #message {
    padding: 42px 0 57px;
  }
  #message .box .txtBox {
    width: 100%;
    padding: 0;
    margin: 0 auto 50px;
  }
  #message .box .txtBox:before {
    width: 97px;
    height: 35px;
    right: -59px;
    top: 15px;
  }
  #message .box .txtBox:after {
    bottom: -58px;
    width: calc(100% + 80px);
    height: 80px;
    left: -40px;
    background-size: 100% 100%;
  }
  #message .box .txtBox .secTit {
    max-width: 288px;
    margin-bottom: 80px;
  }
  #message .box .txtBox .txt {
    margin: 0 auto;
  }
  #message .box .txtBox .txt+.txt {
    margin-top: 14px;
  }
  #message .box .imgBox {
    width: 100%;
    max-width: 300px;
    padding: 20px 27px 21px;
    margin: 0 auto 27px;
    position: static;
  }
  #message .box .imgBox:before {
    width: 140px;
    height: 37px;
    top: -29px;
  }
  #message .box .imgBox .img {
    margin-bottom: 17px;
  }
  #message .box .imgBox .prof {
    font-size: 11px;
    margin-bottom: 0;
  }
  #message .box .imgBox .name {
    font-size: 19px;
  }
}
