@charset "utf-8";

/* News / Blog responsive styles
--------------------------------------------------*/

/* Mobile-first (default: < 769px) */

/* List pages: main + sidebar layout */
.main_news .container > .clearfix {
  display: flex;
  flex-direction: column;
}

.main_news .short {
  width: 100%;
}

.main_news .side {
  width: 100%;
  margin-top: 30px;
}

/* section_rank (news featured) */
.section_rank {
  margin-bottom: 40px;
}

.section_rank .inner {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.section_rank .box {
  width: 100% !important;
  height: auto !important;
  float: none !important;
  border: 1px solid #ddd1b5;
}

.section_rank .box:first-child {
  margin-bottom: 0;
}

.section_rank .box a {
  display: flex;
  flex-direction: column;
  height: auto;
  padding: 0;
}

.section_rank .box:first-child a {
  padding: 0;
}

.section_rank .box .ph {
  width: 100% !important;
  height: auto !important;
  float: none;
  overflow: hidden;
}

.section_rank .box .ph img {
  width: 100%;
  height: auto;
}

.section_rank .box .txt_box {
  width: 100% !important;
  float: none;
  padding: 12px 15px 15px;
}

.section_rank .box:first-child .txt_box {
  padding: 12px 15px 15px;
}

.section_rank .box .title {
  height: auto;
  font-size: 15px;
  padding: 8px 0 0;
}

.section_rank .box:first-child .title {
  height: auto;
  max-height: none;
  padding: 8px 0 0;
}

.section_rank .box:first-child ul.icon {
  padding: 0 0 10px;
}

.section_rank .box .btn_txt {
  display: none;
}

/* section_last (blog featured) */
.section_last .inner {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.section_last .box_l {
  width: 100%;
}

.section_last .box_l .box {
  width: 100%;
}

.section_last .box_l .box .ph {
  width: 100%;
  height: auto;
}

.section_last .box_r {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section_last .box_r .box {
  width: calc(50% - 5px);
  float: none !important;
  margin-bottom: 0;
}

.section_last .box_r .ph {
  width: 100%;
  height: auto;
}

.section_last .box_r .ph img {
  width: 100%;
  height: auto;
}

.section_last .box_r .box .tit {
  font-size: 13px;
  height: auto;
  max-height: 40px;
}

/* category list (blog) */
.section_last .category_list {
  padding: 12px 15px;
  font-size: 13px;
  margin-bottom: 20px;
}

/* News/Blog grid items */
.short .section .box {
  width: calc(50% - 10px) !important;
  height: auto !important;
  float: none !important;
  margin: 0 !important;
}

.short .section > .clearfix,
.short .section .clearfix {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.short .section .box .ph {
  height: auto;
}

.short .section .box .tit {
  font-size: 13px;
  max-height: 40px;
}

/* Pager */
.main_news .pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.main_news .pager li.next,
.main_news .pager li.before {
  width: 45%;
  max-width: 220px;
}

/* H3 titles */
.main_news h3.tit {
  font-size: 15px;
  padding: 10px 15px;
  margin-bottom: 20px;
}

/* Archive sidebar on mobile */
.main_news .side .archive {
  margin-bottom: 20px;
}

/* Detail pages */
.section_detail .unit {
  display: flex;
  flex-direction: column;
}

.section_detail .unit .ph {
  width: 100% !important;
  height: auto !important;
  float: none;
  padding: 15px 15px 0;
}

.section_detail .unit .txtbox {
  width: 100% !important;
  float: none;
  padding: 15px;
}

.section_detail .cnt_box {
  padding: 15px !important;
}

.section_detail .cnt_box img {
  max-width: 100%;
  height: auto;
}

/* ---- PC (769px+) ---- */
@media screen and (min-width: 769px) {
  .main_news .container > .clearfix {
    flex-direction: row;
  }

  .main_news .short {
    width: 770px;
  }

  .main_news .side {
    width: 210px;
    margin-top: 0;
  }

  /* section_rank */
  .section_rank {
    margin-bottom: 70px;
  }

  .section_rank .inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }

  .section_rank .box {
    width: 487px !important;
    height: 160px !important;
    float: left !important;
  }

  .section_rank .box:first-child {
    width: 100% !important;
    height: 322px !important;
    margin-bottom: 40px;
    float: none !important;
  }

  .section_rank .box:nth-child(2n+1) {
    float: right !important;
  }

  .section_rank .box a {
    flex-direction: row;
    padding: 14px;
    height: 100%;
  }

  .section_rank .box:first-child a {
    padding: 0;
  }

  .section_rank .box .ph {
    width: 200px !important;
    height: 129px !important;
    float: left;
  }

  .section_rank .box:first-child .ph {
    width: 500px !important;
    height: 322px !important;
  }

  .section_rank .box .txt_box {
    width: 240px !important;
    float: right;
    padding: 0;
    height: 100%;
  }

  .section_rank .box:first-child .txt_box {
    width: 462px !important;
    padding-right: 30px;
    padding-top: 30px;
  }

  .section_rank .box .title {
    font-size: 18px;
    height: 60px;
    padding: 10px 0 0;
  }

  .section_rank .box:first-child .title {
    padding: 0 0 20px;
    max-height: 100px;
    height: 46px;
  }

  .section_rank .box:first-child ul.icon {
    padding: 70px 0 18px;
  }

  .section_rank .box .btn_txt {
    display: block;
  }

  .section_rank .box:first-child .btn_txt {
    position: absolute;
    bottom: 15px;
    right: 16px;
  }

  /* section_last (blog) */
  .section_last .inner {
    flex-direction: row;
  }

  .section_last .box_l {
    width: 620px;
  }

  .section_last .box_l .box {
    width: 620px;
  }

  .section_last .box_l .box .ph {
    width: 620px;
    height: 408px;
  }

  .section_last .box_r {
    width: 372px;
  }

  .section_last .box_r .box {
    width: 182px;
    float: left;
    margin-bottom: 20px;
  }

  .section_last .box_r .box:nth-child(2n) {
    float: right;
  }

  .section_last .box_r .ph {
    width: 182px;
    height: 119px;
  }

  .section_last .category_list {
    padding: 20px;
    font-size: 14px;
    margin-bottom: 30px;
  }

  /* Grid items */
  .short .section .box {
    width: 237px !important;
    height: 270px !important;
    float: left !important;
    margin: 0 30px 30px 0 !important;
  }

  .short .section .box:nth-of-type(3n) {
    margin: 0 0 30px 0 !important;
  }

  .short .section > .clearfix,
  .short .section .clearfix {
    display: block;
  }

  .short .section .box .ph {
    height: 153px;
  }

  .short .section .box .tit {
    font-size: 15px;
    max-height: 45px;
  }

  /* H3 titles */
  .main_news h3.tit {
    font-size: 18px;
    padding: 12px 20px;
    margin-bottom: 32px;
  }

  /* Pager */
  .main_news .pager li.next,
  .main_news .pager li.before {
    width: 239px;
    max-width: none;
  }

  /* Detail pages */
  .section_detail .unit {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .section_detail .unit .ph {
    width: 520px !important;
    height: 352px !important;
    float: left;
    padding: 30px 0 0 30px;
  }

  .section_detail .unit .txtbox {
    width: 453px !important;
    float: right;
    padding: 45px 45px 0 0;
  }

  .section_detail .cnt_box {
    padding: 50px !important;
  }
}
