@charset "UTF-8";

.sub_banner {
  width: 100%;
  height: 300px;
  position: relative;
  background-image: url(../img/sub_banner.png);
  background-size: cover;
  background-position: center right;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sub2 {
  background-image: url(../img/sub_banner2.png);
}

.sub_banner_txt {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: #444;
}

.sub_banner_txt h2 {
  font-size: 22px;
}

/* 타이틀 */

.title {
}

.title_box {
  text-align: center;
  padding-bottom: 2rem;
}

.title_box h2 {
  font-size: 35px;
}

.title_box span {
  color: rgb(42, 106, 165);
  font-weight: 700;
  font-size: 15px;
}

.title_sub {
  background: #f5f5f5;
  padding: 1rem;
  font-size: 16px;
  margin-bottom: 3rem;
  text-align: center;
}

.title .box {
  background: #fff !important;
}

.title_box .line {
  height: 1px;
  background: #ddd;
  margin-top: 1rem;
}

.sub_banner_txt .title {
  height: 100px;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid #444;
  border-right: 1px solid #444;
  padding: 0 4rem;
  line-height: 1.2;
  text-align: center;
}

.sub_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 20px;
}


/**서브 타이틀 시작**/
.sub_title {
    background: #f3f3f3;
    border-top: 1px solid #868686;
    border-bottom: 1px solid #ddd;
}

.sub_title_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.sub_title h2 {
    font-size: 22px;
    background: url(../img/dot.jpg) no-repeat;
    background-position: center left;
    padding-left: 20px;
}

.sub_title span {
    font-size: 15px;
    color: #777;
}

/**서브 타이틀 끝//**/


/* service */
.service_box {
  padding: 40px 20px;
}

.service_box .card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .service_box .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .service_box .card-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.service_box .card {
  border: 1px solid #cce4f6;
  border-radius: 16px;
  overflow: hidden;
  background-color: #f9fbff;
  transition: box-shadow 0.3s ease;
}

.service_box .card:hover {
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.service_box .card h3 {
  font-size: 20px;
  color: #1e60a9;
  margin-bottom: 10px;
}

.service_box .card p {
  font-size: 15.5px;
  color: #333333;
  line-height: 1.6;
}
.service_box .card .text {
  padding: 30px 24px;
}
.service_box .card .img {
  height: 150px;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}
.card-grid .card:nth-child(1) .img {
  background-image: url(../img/service_1.jpg);
}
.card-grid .card:nth-child(2) .img {
  background-image: url(../img/service_2.jpg);
}
.card-grid .card:nth-child(3) .img {
  background-image: url(../img/service_3.jpg);
}
.card-grid .card:nth-child(4) .img {
  background-image: url(../img/service_4.jpg);
}
.card-grid .card:nth-child(5) .img {
  background-image: url(../img/service_5.jpg);
}
.card-grid .card:nth-child(6) .img {
  background-image: url(../img/service_6.jpg);
}

/* company_grid */
.company_grid {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  grid-gap: 50px;
  font-size: 20px;
}

.company_grid .side {
  background: url(../img/company.jpg) no-repeat;
}

.company_grid h3 {
  font-size: 35px;
  color: #1ca03d;
  font-weight: 500;
  line-height: 1.2;
}

/* 모바일 없애기 */
.sub_m {
  display: none;
}

/** product_list 시작**/
.product_list {
  padding: 20px 40px;
  border: 4px solid #e6e2df;
  margin-top: 20px;
  background: #fbf4ee;
}

.product_list span {
  width: 20px;
  height: 4px;
  display: block;
  background: #b8beb7;
}

.product_list h2 {
  font-size: 22px;
  color: #74615a;
}

.product_list h2 b {
  color: #df2f2f;
}

.product_list p {
  font-size: 17px;
  color: #666;
  padding-top: 10px;
}

.product_list p b {
  color: #222;
}

/** product_list 끝**/

/**map_box 시작**/
.map_wrap {
  padding: 30px;
  background: #f3f3f3;
  overflow: hidden;
}

.map_wrap .map_box {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  grid-gap: 20px;
}

.map_txt {
  float: left;
}

.map_box h2 {
  font-size: 26px;
}

.map_txt p {
  font-size: 16px;
  padding-top: 8px;
}

.map_txt b {
  font-size: 18px;
  padding-top: 8px;
}

.map_txt em {
  color: #609425;
  font-weight: bold;
}

/**map_box 끝**/
#maparea {
  height: 300px;
}

#maparea .root_daum_roughmap {
  width: 100% !important;
  height: 100% !important;
}

/* 교육과정 */
.learn_box {
  padding-top: 2rem;
}

.learn_box .title {
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-gap: 20px;
  text-align: center;
  font-size: 1.3em;
  padding-bottom: 3rem;
}

.learn_box .title div {
  display: flex;
  flex-direction: column;
  padding: 2.3rem;
  align-items: flex-start;
  justify-content: center;
}

.learn_box .title div:nth-child(1) {
  background: #b138af;
  align-items: center;
  border-radius: 45% 56% 40% 48%;
  position: relative;
  font-family: "NanumBarunpen";
  color: #fff;
}

.learn_box .title div:nth-child(1)::after {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  border: 1px solid #000;
  border-radius: 51% 60% 56% 60%;
  transform: rotate(-11deg);
}

.learn_box .title b {
  font-size: 1.5em;
}

.learn_box .title strong {
  color: #b138af;
  font-size: 1.4em;
}

/* 교육소개 */
ul.study {
  display: grid;
  grid-template-columns: 70px 1fr;
  border-top: 1px solid #d2d2d2;
  padding-bottom: 2rem;
}

ul.study li {
  list-style: none;
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-bottom: 1px solid #d2d2d2;
  font-size: 1.25em;
  line-height: 1.6;
}

ul.study li.subject {
  line-height: 1.2;
  background: #b138af;
  color: #fff;
  font-weight: 600;
  align-items: center;
  padding: 20px 0px;
  text-align: center;
}

ul.study .age {
  font-family: "NanumBarunpen";
  font-size: 1.5em;
}

/* 강사소개 */
span.name {
  display: block;
  padding-left: 35px;
  background: url(../img/dot.png) no-repeat left center;
  background-size: 25px;
  font-size: 20px;
  padding-top: 2rem;
  padding-bottom: 1rem;
  font-size: 1.8em;
  font-weight: 600;
}

/****************************** sub 갤러리 box 시작 ******************************/
.sub_gall_list {
  margin: -10px -10px 0;
  overflow: hidden;
}

.sub_gall_list .gall_item {
  float: left;
  width: 25%;
  padding: 10px;
}

.sub_gall_list .gall_item a {
  display: block;
  overflow: hidden;
}

.sub_gall_list .gall_item a img {
  transition: all 1.2s;
  transform: scale(1);
  width: 100%;
}

.sub_gall_list .gall_item a:hover img {
  transform: scale(1.085);
}

.sub_gall_list.detail_type .gall_item a {
  position: relative;
}

.sub_gall_list.detail_type .gall_desc {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sub_gall_list.detail_type .gall_desc_wrap {
  display: block;
  text-align: center;
}

.sub_gall_list .gall_item p {
  text-align: center;
  font-size: 18px;
  color: #666;
  padding-top: 12px;
}

/****************************** sub 갤러리 box 끝 ******************************/

/*******************************************************************************************************************************
 *** PC ~ 테블릿
*******************************************************************************************************************************/
@media (max-width: 1024px) {
  .sub_container {
    padding: 50px 15px;
  }

  .sub_container .sub_title h2 {
    font-size: 32px;
  }

  .sub_banner,
  .sub_banner_txt {
    height: 320px;
  }

  .sub_banner2 img {
    width: 80px;
  }

  .sub_container .sub_title p {
    font-size: 16px;
    color: #888;
    padding: 5px 0 20px 0;
  }

  .sub_banner_txt h2 {
    font-size: 27px;
  }

  .company_box .company_txt h2 {
    font-size: 26px;
  }

  .company_box .company_txt p {
    font-size: 16px;
  }

  /* sub_com */
  .sub_com li h3 {
    font-size: 38px;
    font-weight: normal;
    line-height: 1.2;
  }

  .sub_com li p {
    font-size: 18px;
    padding-top: 3rem;
  }

  /** product_list 시작**/
  .product_list {
    padding: 20px;
    margin-top: 10px;
  }

  .product_list h2 {
    padding-bottom: 10px;
  }

  .product_list p {
    font-size: 16px;
  }

  /** product_list 끝//**/
}

/*******************************************************************************************************************************
 *** 모바일
*******************************************************************************************************************************/
@media (max-width: 768px) {
  .sub_container {
    padding: 50px 15px;
  }

  .sub_banner {
    height: 280px;
  }

  .sub_banner_txt {
    justify-content: center;
    height: 280px;
    padding-top: 2rem;
  }

  .sub_banner_txt h2 {
    padding-top: 1rem;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
  }

  /**서브 타이틀 시작**/
  .sub_container .sub_title {
    margin-bottom: 20px;
  }

  .sub_container .sub_title h2 {
    font-size: 20px;
  }

  .sub_container .sub_title p {
    font-size: 13px;
    padding: 5px 0 10px 0;
  }

  .sub_container .sub_title span {
    height: 1px;
    background-color: #ddd;
  }

  /**서브 타이틀 끝//**/

  /* company */
  .company_title {
    text-align: center;
    padding-bottom: 1rem;
    font-size: 19px;
  }

  .company_title br {
    display: none;
  }

  /* compnay 슬라이더 */
  .swiper {
    width: 100%;
    max-width: 90vw;
    height: 450px;
  }

  /**company_box 시작**/
  .company_box .company_txt {
    padding-top: 20px;
  }

  .company_txt h2 {
    font-size: 22px;
  }

  .company_txt h2 br {
    display: none;
  }

  .company_txt h3 {
    font-size: 18px;
  }

  .company_txt .medal {
    grid-template-columns: 70px 1fr;
    grid-gap: 20px;
    padding: 1rem 5%;
  }

  .company_txt .medal h4 {
    font-size: 1.3em;
    padding-bottom: 0.7rem;
  }

  .company_txt .award {
    font-size: 1.2em;
  }

  .company_txt P {
    font-size: 18px;
  }

  .company_box .company_txt p span {
    font-size: 13px;
    height: 20px;
    width: 20px;
  }

  .company_txt .cimg {
    flex-direction: column;
  }

  .company_txt .cimg img {
    width: 100%;
  }

  /**company_box 끝**/

  /* 소개 */
  .company_grid {
    grid-template-columns: 1fr;
    font-size: 16.5px;
  }

  .company_grid .side {
    width: 100%;
    height: 250px;
    background-size: cover;
  }

  .company_grid h3 {
    font-size: 28px;
  }

  /* company */
  .company {
    grid-template-columns: 1fr;
  }

  /** product_list 시작**/
  .product_list {
    padding: 10px 20px;
  }

  .product_list h2 {
    padding-bottom: 0;
    font-size: 16px;
  }

  .product_list p {
    font-size: 13px;
  }

  /** product_list 끝//**/

  /**map_box 시작**/
  .map_wrap {
    padding: 20px 10px;
  }

  .map_txt h2 {
    font-size: 16px;
  }

  .map_txt p {
    font-size: 13px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .map_icon img {
    height: 60px;
  }

  /**map_box 끝**/

  /**서브 갤러리 시작**/
  .sub_gall_list .gall_item {
    width: 50%;
  }

  .sub_gall_list .gall_item p {
    font-size: 14px;
    padding-top: 10px;
  }

  /**서브 갤러리 끝//**/

  /* 교육과정 */
  .learn_box .title {
    display: grid;
    grid-template-columns: 1fr;
    margin: auto;
    width: 90%;
  }

  .learn_box .title div:nth-child(1) {
    width: 85%;
    padding: 2rem;
    margin: auto;
  }

  .learn_box .title div {
    padding: 1rem;
    text-align: left;
  }

  ul.study {
    grid-template-columns: 1fr;
  }

  ul.study li {
    font-size: 1.1em;
  }

  ul.study li.subject br {
    display: none;
  }

  ul.study .age {
    font-size: 1.3em;
  }

  .tg .tg-4yvc,
  .tg td {
    font-size: 1em !important;
  }
}

/*******************************************************************************************************************************
 *** 모바일 max-width 480
*******************************************************************************************************************************/
@media (max-width: 480px) {
  .sub_banner,
  .sub_banner_txt {
    height: 220px;
  }

  .sub_banner {
    background-position: top;
    background-size: 300%;
  }

  .sub_banner_txt {
    padding-top: 0;
  }

  /* company */
  .swiper {
    width: 100%;
    max-width: 90vw;
    height: 95vw;
  }

  .mySwiper.swiper {
    height: 50px;
    margin-top: 0;
  }

  .map_wrap .map_box {
    grid-template-columns: 1fr;
  }
}
