/* template generic title */

.p-template__mv {
  margin-top: 100px;
  width: 100%;
}

.p-template__mv__inner {
  position: relative;
}

.p-template__mv__inner__image {
  position: relative;
}

.p-template__mv__inner__image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #000000;
  opacity: 0.3;
}

.p-template__mv__inner__text {
  text-align: center;
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

.p-template__mv__inner__text * {
  color: #fff;
}

.p-template__mv__inner__text h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 70px;
  font-size: 4.375rem;
}

.p-template__mv__inner__text h3 {
  font-size: 17px;
  font-size: 1.0625rem;
}

/* template generic color */

.p-template__instructor,
.p-template__instructor:after,
.p-template__guidance .p-template__guidance__inner a,
.p-template__class,
.p-template__schedule .p-template__schedule__inner .area dl dt,
.p-template__envelope{
  background:#bdad59;
}

/* gray */

.p-template__guidance,
.p-template__schedule,
.p-template__schedule:after{
  background: #f4f2e9;
}

/* template generic section title */

.p-template .c-section-title h2{
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  color:#fff;
}

/* template generic instructor */

.p-template__instructor {
  padding: 80px 0;
  position: relative;
}

.p-template__instructor:after{
  content: "";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 80px;
  height: 80px;
}

.p-template__instructor h2{
  color: #fff;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size:44px;
}

.p-template__instructor h3 {
  color: #fff;
  text-align: center;
  font-size:20px;
}

.p-template__instructor ul {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.p-template__instructor ul li a figure img{
  width:140px;
  height: 240px;
  object-fit: cover;
}

.p-template__instructor ul li a figure figcaption{
  margin-top: 10px;
  text-align: center;
  color: #fff;
  font-size:16px;
}

/* template generic guidance */

.p-template__guidance{
  padding: 80px 0;
}

.p-template__guidance .p-template__guidance__inner{
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.p-template__guidance .p-template__guidance__inner p{
  font-size:22px;
  line-height: 1.8;
}

.p-template__guidance .p-template__guidance__inner a{
  display:block;
  margin:40px auto;
  width:280px;
  color:#fff;
  font-size:42px;
}

/* template generic class */

.p-template__class{
  padding: 80px 0;
}

.p-template__class .p-template__class__inner{
  display: grid;
  grid-template-columns: 70% 27%;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1020px;
  margin:0 auto;
}

.p-template__class .p-template__class__inner .list dl{
  margin-bottom: 30px;
}

.p-template__class .p-template__class__inner .list dl dt{
  font-weight: 700;
  font-size:33px;
  color:#fff;
}

.p-template__class .p-template__class__inner .list dl dd{
  font-size:20px;
  line-height: 1.8;
}

.p-template__class .p-template__class__inner .images{
  width:100%;
}

.p-template__class .p-template__class__inner .images figure img{
  width:100%;
  height: auto;
}

/* template generic schedule */

.p-template__schedule{
  padding: 80px 0;
  position: relative;
}

.p-template__schedule:after{
  content: "";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 80px;
  height: 80px;
}

.p-template__schedule .p-template__schedule__inner{
  max-width: 1000px;
  margin:0 auto;
  position: relative;
  padding-top:40px;
}

.p-template__schedule .p-template__schedule__inner::after{
  content: "";
  position: absolute;
  top: -213px;
  right: 0;
  width:277px;
  height: 253px;
  background-image:url("../img/template/chara01.svg");
  background-size: cover;
  background-repeat: no-repeat;
}

.p-template__schedule .p-template__schedule__inner .area{
  margin-bottom: 80px;
}

.p-template__schedule .p-template__schedule__inner .area .headline{
  display: flex;
  align-items: center;
  gap:20px;
  margin-bottom: 20px;
}

.p-template__schedule .p-template__schedule__inner .area .headline h3{
  font-size:30px;
  font-weight: 700;
}

.p-template__schedule .p-template__schedule__inner .area .headline p{
  font-size:20px;
}

.p-template__schedule .p-template__schedule__inner .area dl{
  margin-bottom: 25px;
  display: flex;
  align-items: stretch;
  gap:10px;
}

.p-template__schedule .p-template__schedule__inner .area dl dt{
  color:#fff;
  padding: 20px 5px;
  font-size:25px;
  width:110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-template__schedule .p-template__schedule__inner .area dl dd{
  width:100%;
}

.p-template__schedule .p-template__schedule__inner .area dl dd ul{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}

.p-template__schedule .p-template__schedule__inner .area dl dd ul li{
  background:#fff;
  font-size:25px;
  text-align: center;
  padding: 20px 5px;
}

/* template generic envelope */

.p-template__envelope{
  padding: 80px 0;
  text-align: center;
}

.p-template__envelope .p-template__envelope__inner{
  max-width: 1000px;
  margin:0 auto;
}

.p-template__envelope .p-template__envelope__inner a{
  display: inline-block;
}

.p-template__envelope .p-template__envelope__inner a img{
  margin-right:-78px;
  margin-bottom:10px;
  max-width: 434px;
}

.p-template__envelope .p-template__envelope__inner a p{
  margin-top: 20px;
  font-size:18px;
  line-height: 1.6;
}

/* template generic price */

.p-template__price{
  padding: 80px 0;
  max-width: 1000px;
  margin:0 auto;
}

.p-template__price .title{
  background: #fff000;
  text-align: center;
  padding: 15px;
  position: relative;
  margin-top:50px;
}

.p-template__price .title::after{
  content: "";
  position: absolute;
  right: 0px;
  bottom: -1px;
  background: no-repeat url(../img/template/chara02.svg);
  background-size: 100%;
  width: 183px;
  height: 134px;
}

.p-template__price .title h2{
  font-size: 27px;
  line-height: 1;
}

.p-template__price .info{
  background: #fff3c2;
  padding: 20px;
}

.p-template__price .info .head{
  width: 255px;
  margin: 0px auto;
  text-align: center;
  padding-bottom: 55px;
  position: relative;
}

.p-template__price .info .head:after {
  content: "";
  position: absolute;
  left: 0px;
  bottom: 0px;
  background: no-repeat url(../img/price/icn_left_01.png);
  background-size: 100%;
  width: 61px;
  height: 52px;
}

.p-template__price .info .head:before {
  content: "";
  position: absolute;
  right: 0px;
  bottom: 0px;
  background: no-repeat url(../img/price/icn_right_01.png);
  background-size: 100%;
  width: 61px;
  height: 52px;
}

.p-template__price .info .head h3 {
  font-size: 21px;
  font-size: 1.3125rem;
  font-weight: normal;
  margin-bottom: 30px;
}

.p-template__price .info .head h3:first-child {
  border-bottom: 2px dashed #000;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.p-template__price .info .head h3:last-child {
  margin-bottom: 0px;
}

.p-template__price .info .table{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;
  gap:20px;
  margin-top:25px;
}

.p-template__price .info .table dl dt{
  background:#251e1c;
  color:#fff;
  text-align: center;
  padding:15px 0;
  font-size:24px;
}

.p-template__price .info .table dl dd{
  font-size:30px;
  background:#fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap:10px;
  width:100%;
  padding: 20px 0;
}

.p-template__price .info .table dl dd img{
  width:23px;
}


/* template generic faq */

.p-template__faqs{
  padding: 80px 0;
  max-width: 1000px;
  margin:0 auto;
}

.p-template__faqs .p-template__faqs__list {
  margin-top:50px;
}

/* ================================
   Media Queries
   ================================ */

@media only screen and (max-width: 1419px) {
  .p-template__mv {
    margin-top: 0;
  }
}

@media only screen and (max-width: 919px) {

  .p-template__mv__inner__text h2 {
    font-size: 35px;
    font-size: 2.1875rem;
  }

  .p-template__mv__inner__text h3 {
    font-size: 14px;
    font-size: 0.875rem;
  }

  .p-template__instructor {
    
  }
  .p-template__instructor h2 {
    font-size: 28px;
  }

  .p-template__instructor h3 {
    font-size: 16px;
  }

  .p-template__instructor ul{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap:10px;
    width:calc(100% - 40px);
    margin: 60px auto 0 auto;
  }

  .p-template__instructor ul li a{
    display: block;
  }

  .p-template__instructor ul li a figure img{
    aspect-ratio: 140 / 240;
    width:100%;
    height: 100%;
  }

  .p-template__guidance .p-template__guidance__inner{
    width:calc(100% - 40px);
  }

  .p-template__guidance .p-template__guidance__inner p {
    font-size: 18px;
  }

  .p-template__guidance .p-template__guidance__inner a {
    font-size: 32px;
    width: 220px;
  }

  .p-template__class .p-template__class__inner {
    grid-template-columns: 1fr;
    width:calc(100% - 40px);
    margin-top:20px;
  }

  .p-template__class .p-template__class__inner .list dl dt {
    font-size: 24px;
  }

  .p-template__class .p-template__class__inner .list dl dd {
    font-size: 16px;
  }

  .p-template__schedule .p-template__schedule__inner{
    width:calc(100% - 40px);
  }

  .p-template__schedule .p-template__schedule__inner::after {
    width: 138.5px;
    height: 126.5px;
    top: -70px;
    right:-10px;
  }

  .p-template__schedule .p-template__schedule__inner .area .headline{
    display: block;
  }

  .p-template__schedule .p-template__schedule__inner .area .headline h3 {
    font-size: 20px;
  }

  .p-template__schedule .p-template__schedule__inner .area .headline p {
    font-size: 16px;
  }
  
  .p-template__schedule .p-template__schedule__inner .area dl{
    display: block;
  }

  .p-template__schedule .p-template__schedule__inner .area dl dt {
    font-size: 18px;
    width: 100%;
    padding: 15px 5px;
    margin-bottom: 10px;
  }

  .p-template__schedule .p-template__schedule__inner .area dl dd ul li {
    font-size: 16px;
    padding: 15px 5px;
  }

  .p-template__envelope .p-template__envelope__inner{
    width:calc(100% - 40px);
  }

  .p-template__envelope .p-template__envelope__inner a img{
    width: 240px;
    margin-right: -40px;
  }

  .p-template__price{
    width:calc(100% - 40px);
  }

  .p-template__price .title::after{
    width: 80px;
    height: 60px;
  }

  .p-template__price .title h2 {
    font-size: 20px;
  }

  .p-template__price .info .head h3 {
    font-size: 16px;
  }

  .p-template__price .info .table dl dt {
    font-size: 18px;
  }

  .p-template__price .info .table dl dd {
    font-size: 18px;
    display: block;
    text-align: center;
  }

}

