/* 홈 화면과 사이트 안내(푸터). main.css 는 빌드된 파일이라 새 클래스는 여기에 쓴다. PC 전용 값은 맨 아래 @media 에 둔다 */

.home_body {background: #F4F6F5;}
.home_main {margin-top: 7.2rem;}
.home_brand {display: flex; align-items: center; gap: .8rem; font-size: 1.8rem; font-weight: 700; color: #087F5B;}
.home_brand span {color: inherit;}
.home_top_search {display: none;}

/* 히어로 */
.home_hero {background: linear-gradient(rgba(8, 32, 26, .72), rgba(8, 32, 26, .5) 35%, rgba(8, 32, 26, .15) 70%), url(../img/main-img.webp) center 60% / cover no-repeat;}
.home_hero_in {max-width: 96rem; margin: 0 auto; padding: 3.2rem 1.6rem;}
.home_hero h1 {font-size: 2.6rem; line-height: 3.4rem; font-weight: 700; text-align: center; color: #FFF; text-shadow: 0 1px 8px rgba(0, 0, 0, .35);}
.home_hero_sub {margin-top: .8rem; font-size: 1.3rem; line-height: 2rem; text-align: center; color: #FFF; text-shadow: 0 1px 6px rgba(0, 0, 0, .4);}

.home_panel_wrap {margin-top: 2rem;}
.home_deal {display: flex; gap: .4rem; padding: 0 1.2rem;}
.home_deal a {display: block; min-width: 8rem; padding: 1.1rem 1.6rem; border-radius: 1rem 1rem 0 0; background: rgba(255, 255, 255, .9); font-size: 1.4rem; font-weight: 600; text-align: center;}
.home_deal a.on {background: #087F5B; color: #FFF;}
.home_panel {padding: 1.6rem; border-radius: 1.6rem; background: #FFF; box-shadow: 0 8px 24px rgba(18, 48, 42, .14);}
.home_search {display: flex; gap: .8rem;}
.home_search input[type="search"] {flex: 1; min-width: 0; height: 4.8rem; padding: 0 1.4rem; border: 2px solid #087F5B; border-radius: 1rem; background: #FFF; font-size: 1.4rem;}
.home_search button {flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 4.8rem; height: 4.8rem; border-radius: 1rem; background: #087F5B;}
.home_search button svg {width: 2.4rem; height: 2.4rem;}

.home_types {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: 1.2rem;}
.home_types a {display: flex; flex-direction: column; align-items: center; gap: .6rem; height: 100%; padding: 1.2rem .4rem; border: 1px solid #E5EBE7; border-radius: 1rem; font-size: 1.1rem; line-height: 1.5rem; font-weight: 500; text-align: center; transition: border-color .15s;}
.home_types img {width: 3.6rem;}
.home_types span {color: inherit;}
.home_types a:hover {border-color: #087F5B;}

.home_regions {display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.6rem;}
.home_regions a {display: block; padding: .7rem 1.2rem; border-radius: 9999px; background: #FFF; font-size: 1.2rem; font-weight: 500; box-shadow: 0 1px 3px rgba(18, 48, 42, .12);}
.home_regions a.on {background: #087F5B; color: #FFF; font-weight: 600;}
.home_regions a:hover {color: #087F5B;}
.home_regions a.on:hover {color: #FFF;}

/* 본문 */
.home_body_in {max-width: 96rem; margin: 0 auto; padding: 1.6rem 1.6rem 4rem;}
.home_card {display: block; padding: 1.6rem; border: 1px solid #E5EBE7; border-radius: 1.4rem; background: #FFF;}
a.home_card {height: 100%; transition: border-color .15s;}
a.home_card:hover {border-color: #087F5B;}
a.home_card strong {display: block; font-size: 1.5rem; font-weight: 700;}
a.home_card span {display: block; margin-top: .6rem; font-size: 1.2rem; line-height: 1.7rem; color: #718078;}

.home_features {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem;}
.home_features i {display: flex; align-items: center; justify-content: center; width: 3.6rem; height: 3.6rem; margin-bottom: 1.2rem; border-radius: 1rem;}
.home_features svg {width: 2rem; height: 2rem;}

.home_grid {display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; margin-top: 1.2rem;}
.home_head {display: flex; align-items: center; justify-content: space-between; gap: .8rem;}
.home_head h2 {min-width: 0; font-size: 1.7rem; font-weight: 700;}
.home_head h2 small {margin-left: .4rem; font-size: 1.1rem; font-weight: 400; color: #718078;}
.home_head a {flex-shrink: 0; font-size: 1.2rem; font-weight: 600; color: #087F5B;}
.home_chips {display: flex; gap: .6rem; margin-top: 1.2rem; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;}
.home_chips::-webkit-scrollbar {display: none;}
.home_chips li {flex-shrink: 0;}
.home_chips a {display: block; padding: .8rem 1.4rem; border: 1px solid #E5EBE7; border-radius: 9999px; font-size: 1.2rem; font-weight: 600; white-space: nowrap;}
.home_chips a.on {border-color: #087F5B; background: #087F5B; color: #FFF;}
.home_empty {display: block; margin-top: 1.2rem; padding: 3.2rem 1rem; font-size: 1.2rem; line-height: 1.8rem; text-align: center; color: #718078;}
.home_note {margin-top: 1.2rem; font-size: 1.1rem; line-height: 1.6rem; color: #718078;}

.home_table {display: none;}
.home_deals {margin-top: .4rem;}
.home_deals a {padding: 1.4rem 0;}
.home_deals li + li {border-top: 1px solid #E5EBE7;}

.home_stats {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1.2rem;}
.home_stats p {padding: 1.2rem 1.4rem; border-radius: 1rem;}
.home_stats span {display: block; font-size: 1.2rem; color: #4F5C55;}
.home_stats b {display: block; margin-top: .6rem; font-size: 2rem; font-weight: 700;}
.home_stats .red {background: #FFF1F1;}
.home_stats .red b {color: #EA5252;}
.home_stats .green {background: #F1FDF5;}
.home_stats .green b {color: #087F5B;}

.home_sub_list {margin-top: .4rem;}
.home_sub_list li + li {border-top: 1px solid #E5EBE7;}
.home_sub_list li > a {padding: 1.4rem 3.6rem 1.4rem 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none !important;}
.home_sub_list .js-sub-bookmark {top: 1.2rem; right: 0;}

.home_links {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1.2rem;}

/* 사이트 안내 */
.site_info {border-top: 1px solid #E5EBE7; background: #FFF;}
.site_info_in {display: flex; flex-direction: column; gap: 1rem; max-width: 96rem; margin: 0 auto; padding: 2.4rem 1.6rem;}
.site_info_brand {display: flex; align-items: center; gap: .6rem; font-size: 1.5rem; font-weight: 700; color: #087F5B;}
.site_info_brand img {width: 2.4rem;}
.site_info_brand span {color: inherit;}
.site_info p {font-size: 1.1rem; line-height: 1.7rem; color: #718078;}
.site_info a.site_info_link {font-size: 1.2rem; font-weight: 600;}
.site_info_pc {display: none;}

@media (min-width: 1024px) {
  .home_main {margin-top: 6rem;}
  .home_brand {display: none;}
  .home_top_search {display: flex;}
  .home_chips {flex-wrap: wrap; overflow-x: visible;}

  .home_hero {background-position: center 62%;}
  .home_hero_in {max-width: 76rem; padding: 4.8rem 2.4rem 4rem;}
  .home_hero h1 {font-size: 3.6rem; line-height: 4.6rem;}
  .home_hero_sub {font-size: 1.4rem;}
  .home_panel {padding: 2rem;}
  .home_deal a {min-width: 9.6rem;}
  .home_search input[type="search"] {height: 5rem; padding: 0 1.8rem; font-size: 1.4rem;}
  .home_search button {width: 5.4rem; height: 5rem;}
  .home_types {grid-template-columns: repeat(8, minmax(0, 1fr));}
  .home_types a {font-size: 1.1rem;}
  .home_types img {width: 3.8rem;}

  .home_body_in {max-width: 102rem; padding: 2.4rem 2.4rem 4.8rem;}
  .home_features {grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.2rem;}
  .home_grid {grid-template-columns: minmax(0, 1fr) 26rem; align-items: start; gap: 1.6rem; margin-top: 1.6rem;}
  .home_card {padding: 2rem;}
  .home_head h2 {font-size: 1.8rem;}
  .home_head h2 small {font-size: 1.1rem;}

  .home_table {display: table; width: 100%; margin-top: 1.4rem; font-size: 1.2rem;}
  .home_table th {padding: 1rem .8rem; border-bottom: 1px solid #E5EBE7; background: #F7F9F8; font-weight: 500; text-align: left; color: #718078;}
  .home_table td {padding: 1.2rem .8rem; border-bottom: 1px solid #EEF2F0; vertical-align: middle;}
  .home_table tbody tr:hover {background: #F7FBF8;}
  .home_table .r {text-align: right; white-space: nowrap;}
  .home_table .sub {color: #718078;}
  .home_table td.sub:first-child {white-space: nowrap;}
  .home_table .name {font-weight: 600;}
  .home_table .name a:hover {color: #087F5B; text-decoration: underline;}
  .home_table .price {font-weight: 700; color: #087F5B;}
  .home_deals {display: none;}

  .home_links {grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.6rem;}

  .site_info_pc {display: block;}
  .site_info_in {position: relative; max-width: 102rem; padding: 2.8rem 2.4rem;}
  .site_info a.site_info_link {position: absolute; top: 2.8rem; right: 2.4rem;}
}
