/* Theme Name: STUDY FOR TWO
Theme URI: http://studyfortwo.org
Description: STUDY FOR TWOのオリジナルテーマ
Version: 1.0
Author: Futurize
Author URI: https://futurize.jp
 */




/***********************************
Hero
************************************/
.hero {
  position: relative;
}

.hero video {
  width: 100%;
}

.hero:before {
  content: '';
  width: 100%;
  height: 56.3vw;
  background: rgba(0,0,0,.25);
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

video::-webkit-media-controls-overlay-play-button { 
  display: none; 
} 

.hero h1 {
  position: absolute;
  top: 36%;
  left: 4.5%;
  color: white;
  font-size: 58px;
  margin: 0;
  font-family: "Noto Serif JP", serif, "游明朝";
  pointer-events: none;
}

.introduction {
  margin-top: 90px;
}

.introduction p {
  text-align: center;
  margin: 0 auto;
  line-height: 50px;
  font-size: 20px;
  font-weight: 500;
}

.introduction:after {
  content: 'STUDY FOR TWO';
  font-size: 8vw;
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-family: 'Lora', serif;
  font-weight: 700;
  color: #EDEFEF;
  margin-top: -75px;
  position: relative;
  z-index: -1;
}

.about {
  margin-top: 180px;
  position: relative;
  background: linear-gradient(180deg,white 0%,white 100px,#F3F4F4 100px,#F3F4F4 100%);
  z-index: 99;
}

.about__img {
  width: 56%;
  position: absolute;
  top: -100px;
  left: 0;
  z-index: -1;
}

.about__text {
  width: 56%;
  margin: 0 0 0 auto;
  background-color: white;
  padding: 5% 6% 7% 5%;
}



/***********************************
Flow
************************************/

.flow{
  padding-top: 90px;
  background: linear-gradient(180deg,#F3F4F4 62%,#F3F4F4 100px,white 100px,white 100%);
  padding: 90px 5% 0;
}

.flow__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.flow__block {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  margin-bottom: 0;
}

.flow__item {
  width: 30%;
  position: relative;
}

.flow__itemNumber {
  font-size: 50px;
  font-family: "Noto Serif JP", serif, "游明朝";
  font-weight: 600;
  text-align: center;
  color: #0B5A7D;
  margin: 0;
  background-color: #F3F4F4;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  line-height: 90px;
  position: absolute;
  top: -12%;
  left: -12%;
  letter-spacing: 3px;
}







/***********************************
News
************************************/

.news__block {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
}

.newsCard {
  width: 28%;
  background-color: #F3F4F4;
  border-radius: 5px;
  padding: 2%;
}

.newsCard__category {
  background-color: rgba(48,83,99,.36);
  border-radius: 14px;
  color: white;
  line-height: 28px;
  font-size: 12px;
  text-align: center;
  width: max-content;
  width: fit-content;
  padding: 0 12px;
}

.newsCard__info {
  display: flex;
  justify-content: space-between;
}

.newsCard__title {
  font-size: 15px;
  font-weight: 500;
}

.newsCard__date {
  font-size: 12px;
}



/***********************************
message
************************************/

.message {
  background-color: #F3F4F4;
  padding: 1px 0 80px;
  margin-top: 100px;
}

.message__inner {
  margin: 0 16px;
}

.message__block {
  display: flex;
  justify-content: space-between;
  background-color: white;
  border-radius: 5px;
  padding: 3%;
  max-width: 1080px;
  margin: 0 auto;
}

.message .message__img {
  background-color: #CACED7;
  margin-right: 5%;
  width: 35%;
  object-fit: cover;
  font-family: 'object-fit: cover';
  max-height: 500px;
}

.message__text {
  width: 65%;
}

.messageBlock__title {
  font-size: 20px;
}

.messageBlock__name {
  font-size: 18px;
}


/***********************************
support
************************************/

.support {
  margin-top: 220px;
}

.support__block {
  position: relative;
}

.support__text {
  width: 56%;
  background-color: white;
  padding: 5% 6%;
  margin-top: 100px;
}

.support__img {
  position: absolute;
  top: -100px;
  right: 0;
  z-index: -1;
  width: 60%;
}

.support__img img {
  width: 100%;
}


/***********************************
FAQ
************************************/

.FAQ {
  margin-top: 100px;
}

.FAQ__block {
  max-width: 700px;
  margin: 0 auto;
}

.FAQ__block dl {
  margin: 24px 0;
}

.FAQ__block dt {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  line-height: 27px;
}

.FAQ__block dt:before {
  content: 'Q';
  background-color: #025378;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  text-align: center;
  line-height: 46px;
  color: white;
  display: inline-block;
  margin-right: 12px;
}

.FAQ__block dt:after {
  content: '+';
  margin-left: 20px;
  position: absolute;
  right: 0;
  top: 10px;
}


.FAQ__block dd:before {
  content: 'A';
  border: 1px solid rgba(2,83,120,.6);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  text-align: center;
  line-height: 46px;
  color: rgba(2,83,120,.6);
  display: inline-block;
  margin-right: 12px;
}

.FAQ__block dd {
  font-size: 14px;
  color: rgba(2,83,120,.6);
  animation: openDetail 800ms ease;
  margin-top: 15px;
  line-height: 22px;
  margin-left: 0;
  display: flex;
  align-items: baseline;
}

.FAQ__block dt.active:after {
  transform: rotate(45deg);
  transition: 300ms;
}

.FAQ__text {
  width: calc(100% - 73px);
}

.FAQ__answer {
  display: none;
}





/*************************************************************************
Tablet
*************************************************************************/

@media screen and (max-width: 1024px) {
  /*** hero ***/
  .hero h1 {
    font-size: 34px;
  }

  .hero:before {
    height: 99%;
  }

  .introduction {
    margin-top: 60px;
  }

  .introduction p {
    font-size: 14px;
    line-height: 30px;
  }

  .introduction:after {
    margin-top: -50px;
  }



  /*** about ***/

  .about {
    margin-top: 290px;
  }

  .about__img {
    width: 90%;
    top: -240px;
  }

  .about__text {
    width: 70%;
  }

  /*** flow ***/
  .flow__itemNumber {
    font-size: 32px;
    width: 70px;
    height: 70px;
    line-height: 70px;
  }

  .flow {
    padding-top: 50px;
  }


  /*** news ***/
  .news {
    margin-top: 60px;
  }



  /*** message ***/

  .message__block {
    margin: 0 32px;
    flex-direction: column;
    padding: 5%
  }

  .message .message__img {
    width: 100%;
  }


  .message__text {
    width: 100%;
    margin-top: 20px;
  }

  .message {
    margin-top: 60px;
  }


/*** support ***/

  .support {
    margin-top: 180px;
  }

  .support__block {
    margin-top: 0;
  }

  .support__img {
    width: 90%;
    top: -240px;
  }

  .support__text {
    width: 70%;
  }


  /*** FAQ ***/
  .FAQ {
    margin-top: 60px;
  }

  .FAQ__block dt {
    font-size: 14px;
  }

  .FAQ__block dt:before {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }

  .FAQ__block dt:after {
    font-size: 20px;
    top: 8px;
  }

  .FAQ__block dd {
    font-size: 13px;
  }

  .FAQ__block dd:before {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }


}



/********************************************************************
SP
********************************************************************/


@media screen and (max-width: 559px) {

  /*** hero ***/

  .hero video {
    width: 200%;
    margin-left: -50%;
  }

  .hero h1 {
    top: 30%;
    left: 6%;
    line-height: 54px;
  }

  .introduction {
    margin: 50px 16px 0;
  }

  .introduction:after {
    font-size: 10vw;
    margin-top: -30px;
  }


  /*** about ***/

  .about {
    margin-top: 200px;
  }

  .about__img {
    top: -150px;
    width: 94%;
   }

  .about__text {
    width: 94%;
    padding: 7%;
  }


  /*** flow ***/

  .flow {
    padding-top: 30px;
  }

  .flow__block {
    flex-direction: column;
  }

  .flow__item {
    width: 86%;
    margin: 0 auto;
  }

  .flow__item:not(:last-child) {
    margin-bottom: 60px;
  }


  .flow {
    background: linear-gradient(180deg,#F3F4F4 78%,#F3F4F4 100px,white 100px,white 100%);
  }

  /*** message ***/

  .message__inner {
    margin: 0;
  }

  .message__block {
    margin: 0 16px;
  }

  .messageBlock__title {
    font-size: 18px;
  }


  .messageBlock__name {
    font-size: 14px;
    font-weight: 600;
  }


  .message__block {
    padding: 10% 5%;
  }


  /*** support ***/

  .support__block {
    margin-top: 200px;
  }

  .support__text {
    width: 94%;
  }

  .support__img {
    top: -130px;
  }

  .support__logoBlock {
    margin-top: 30px;
  }


  /*** FAQ ***/
  .FAQ__block {
    margin: 0 16px;
  }

  .FAQ__block dt {
    line-height: 24px;
  }

  .FAQ__block dd {
    margin-top: 10px;
  }
}
