/* COMMON */
:root {
  --main-color: #F4D35E;
  --bg-color: #fcfbf7;
}

body {
  background: var(--bg-color);
}

#wrap {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 7.9rem);
  margin-bottom: 7.9rem;
}

.inner {
  width: 100%;
  padding: 0 2.4rem;
  margin: 0 auto;
}

main {
  margin-top: 9.5rem;
  padding-bottom: 4rem;
}

/* HEADER */
header {
  text-align: center;
  padding: 2rem 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  background: var(--bg-color);
}
header .inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
header .logo {
  display: inline-block;
  width: 5rem;
}
header .logo img {
  width: 100%;
}
header .prev {
  position: absolute;
  top: 50%;
  left: 2.4rem;
  transform: translateY(-50%);
}
header .prev img {
  width: 2.4rem;
}

/* FOOTER */
footer {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
  border-top: 1px solid var(--main-color);
  background: var(--bg-color);
}
footer ul {
  display: flex;
  justify-content: space-evenly;
  gap: 2rem;
}
footer ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  padding: 1.3rem 0;
}
footer ul li a img {
  width: 3rem;
  aspect-ratio: 1 / 1;
}
footer ul li a p {
  font-size: 1.4rem;
  font-weight: 600;
  color: #DDCFA1;
  white-space: nowrap;
}
footer ul li.active a p {
  color: var(--main-color);
}

/* home.php */
.common_search_wrap {
  background: #ECE7DA;
  border-radius: 2.5rem;
  padding: 1.5rem 2.4rem;
}
.common_search_wrap form {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.common_search_wrap input[type="text"] {
  width: 100%;
  font-size: 1.5rem;
  background: none;
  border: 0;
  outline: none;
}
.common_search_wrap button img {
  width: 2.4rem;
}

.common_notice_wrap {
  background: #ECE7DA;
  padding: 1.6rem 0;
  text-align: center;
  margin-top: auto;
}
.common_notice_wrap p {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.8rem;
  color: #737373;
}

.home .quick_wrap {
  margin-top: 3.6rem;
}
.home .quick_wrap ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
}
.home .quick_wrap ul li a {
  display: block;
  width: 100%;
  height: 14rem;
  background: #fff;
  box-shadow: 0px 0px 8px 0px #0000001A;
  border-radius: 1rem;
  padding: 1.6rem;
}
.home .quick_wrap ul li a img {
  width: 3rem;
}
.home .quick_wrap ul li a h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: .8rem 0 1rem;
}
.home .quick_wrap ul li a p {
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: #737373;
}
.home .item_list_wrap {
  margin: 4rem 0;
}
.home .item_list_wrap ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
}
.home .item_list_wrap ul li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  box-shadow: 0px 0px 8px 0px #0000001A;
  border-radius: 1rem;
  padding: 1.8rem;
}
.home .item_list_wrap ul li a img {
  width: 2.4rem;
}
.home .item_list_wrap ul li a h2 {
  font-size: 1.6rem;
  font-weight: 600;
}
.home .link_wrap ul {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.home .link_wrap ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0px 0px 8px 0px #0000001A;
  padding: 2.2rem 1.6rem;
}
.home .link_wrap ul li a img {
  width: 2rem;
}
.home .link_wrap ul li a h2 {
  font-size: 1.6rem;
  font-weight: 600;
}

/* search.php */
.search .filter_wrap {
  margin: 2rem 0 2.4rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.search .filter_wrap .filter {
  display: inline-block;
}
.search .filter_wrap .filter img {
  width: 2.4rem;
}
.search .filter_wrap .filter_swiper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.search .filter_wrap ul {
  align-items: center;
}
.search .filter_wrap ul li {
  width: auto;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 1.6rem;
  font-weight: 600;
  color: #737373;
  border: 1px solid #737373;
  padding: .7rem 1.4rem;
  border-radius: 3rem;
}
.search .filter_list_wrap {
  margin-top: 4rem;
}
.search .filter_list_wrap h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #737373;
  margin-bottom: 1.6rem;
}
.search .filter_list_wrap ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.search .filter_list_wrap ul li {
  font-size: 1.6rem;
  font-weight: 600;
  color: #737373;
  border: 1px solid #737373;
  padding: .7rem 1.4rem;
  border-radius: 3rem;
}
.search .filter_list_wrap ul li.active {
  background: #2f2f2f;
  color: #fff;
  border: 1px solid #2f2f2f;
}

.search .list_wrap .no_result,
.caution .list_wrap .no_result {
  font-size: 1.6rem;
  line-height: 2.4rem;
  color: #737373;
  text-align: center;
  padding: 6rem 0;
}
.search .list_wrap ul {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.search .list_wrap ul li a {
  display: block;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0px 0px 8px 0px #0000001A;
  padding: 2rem;
}
.search .list_wrap ul li a .title_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.search .list_wrap ul li a .title_wrap h2 {
  font-size: 1.6rem;
  font-weight: 600;
}
.search .list_wrap ul li a .title_wrap img {
  width: 2.4rem;
}
.search .list_wrap ul li a .state {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 600;
  padding: .6rem .5rem;
  margin-bottom: .8rem;
}

.state {
  color: #737373;
  border-top: 1px solid #737373;
  border-bottom: 1px solid #737373;
}
.state.needs {
  color: #D98C2B;
  border-top: 1px solid #D98C2B;
  border-bottom: 1px solid #D98C2B;
}
.state.limit {
  color: #D95F5F;
  border-top: 1px solid #D95F5F;
  border-bottom: 1px solid #D95F5F;
}
.state.must {
  color: #885FD9;
  border-top: 1px solid #885FD9;
  border-bottom: 1px solid #885FD9;
}
.search .list_wrap ul li a p {
  font-size: 1.2rem;
  color: #737373;
}

/* detail.php */
.detail {
  background: #fff;
  padding: 3.6rem 0;
  border-radius: 20px 20px 0 0;
  box-shadow: 0px 0px 8px 0px #0000001A;
}
.detail .title_wrap {
  padding-bottom: 2.4rem;
  border-bottom: 1px solid #ece7da;
}
.detail .title_wrap .title_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.detail .title_wrap .title_box h1 {
  font-size: 2.4rem;
  font-weight: 600;
}
.detail .title_wrap .title_box img {
  width: 3.6rem;
}
.detail .title_wrap p {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}
/* 색상과 테두리는 .state / .state.needs 등에서 처리 */
.detail .title_wrap span {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 600;
  padding: .6rem .5rem;
  margin-bottom: .8rem;
}
.detail .content_wrap {
  padding: 3rem 0;
  border-bottom: 1px solid #ece7da;
}
.detail .content_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.detail .content_wrap ul li h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.detail .content_wrap ul li p {
  font-size: 1.4rem;
  color: #737373;
  line-height: 1.6;
  word-break: keep-all;
}
.detail .check_wrap {
  padding: 3rem 0;
  border-bottom: 1px solid #ece7da;
}
.detail .check_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.detail .check_wrap ul li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.detail .check_wrap ul li input[type="checkbox"] {
  width: 1.8rem;
  aspect-ratio: 1 / 1;
  accent-color: #2f2f2f;
  margin-top: .3rem;
}
.detail .check_wrap ul li label {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 2.5rem;
}
.detail .btn_wrap {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding-top: 4rem;
}
.detail .btn_wrap a {
  display: block;
  width: 100%;
  font-size: 1.8rem;
  font-weight: 700;
  padding: 2rem 0;
  border-radius: 1.6rem;
  text-align: center;
  border: 1px solid #2f2f2f;
}
.detail .btn_wrap a.calc {
  background: var(--main-color);
  border: 0;
}

/* calc.php */
.calc .calc_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.calc .calc_wrap ul li {
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 0 2rem;
  box-shadow: 0px 0px 8px 0px #0000001A;
  border-radius: 1rem;
}
.calc .calc_wrap ul li h2 {
  font-size: 1.6rem;
  font-weight: 600;
  white-space: nowrap;
  min-width: 11rem;
}
.calc .calc_wrap ul li h2 b {
  font-size: 1.4rem;
  font-weight: 500;
  color: #737373;
}
.calc .calc_wrap ul li .value_wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  width: 100%;
}
.calc .calc_wrap ul li .value_wrap select {
  font-size: 1.6rem;
  font-weight: 500;
  appearance: none;
  background: transparent url("../img/icon_arrow_down.png") no-repeat 100% 50% / 2rem;
  padding-right: 2.8rem;
  border: 0;
  outline: none;
  text-align: right;
}
.calc .calc_wrap ul li .value_wrap input[type="tel"] {
  width: 60%;
  height: 3.6rem;
  background: #f5f5f5;
  padding: 0 1.5rem;
  border-radius: .5rem;
  outline: none;
  font-size: 1.4rem;
  text-align: right;
}
.calc .calc_wrap ul li .value_wrap span {
  font-size: 1.6rem;
  font-weight: 300;
}
.calc .calc_wrap ul li.toggle {
  display: block;
  height: auto;
}
.calc .calc_wrap ul li .title_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
  cursor: pointer;
}
.calc .calc_wrap ul li .title_wrap img {
  width: 2rem;
  transition: transform .3s ease;
}
.calc .calc_wrap ul li.toggle.on .title_wrap img {
  transform: rotate(180deg);
}
.calc .calc_wrap ul li .cost_wrap {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding-bottom: 2rem;
}
.calc .calc_wrap ul li .cost_wrap .cost_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calc .calc_wrap ul li .cost_wrap .cost_box h3 {
  font-size: 1.6rem;
  font-weight: 600;
  white-space: nowrap;
  min-width: 11rem;
}
.calc .calc_wrap ul li .cost_wrap .cost_box .value_box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}
.calc .calc_wrap ul li .cost_wrap .cost_box .value_box input[type="tel"] {
  width: 60%;
  height: 3.6rem;
  background: #f5f5f5;
  padding: 0 1.5rem;
  border-radius: .5rem;
  outline: none;
  font-size: 1.4rem;
  text-align: right;
}
.calc .calc_wrap ul li .cost_wrap .cost_box .value_box span {
  font-size: 1.6rem;
  font-weight: 300;
  width: 3rem;
}
.calc .calc_wrap ul li.count span {
  margin-right: 1.8rem;
}
.calc .calc_wrap .calc_btn {
  display: block;
  width: 100%;
  font-size: 1.8rem;
  font-weight: 700;
  padding: 2rem 0;
  border-radius: 1.6rem;
  text-align: center;
  background: var(--main-color);
  margin-top: 4rem;
}

/* calc_result.php */
.result .result_wrap {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0px 0px 8px 0px #0000001A;
  padding: 2.4rem 2rem;
}
.result .result_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  padding-bottom: 2.4rem;
}
.result .result_wrap ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.result .result_wrap ul li h2 {
  font-size: 1.6rem;
  font-weight: 600;
  white-space: nowrap;
}
.result .result_wrap ul li .value_wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.result .result_wrap ul li .value_wrap p {
  font-size: 1.6rem;
  font-weight: 500;
  word-break: break-all;
}
.result .result_wrap ul li .value_wrap span {
  width: 3rem;
  flex-shrink: 0;
}
.result .result_wrap ul li .value_wrap span,
.result .result_wrap ul li .value_wrap i {
  font-size: 1.6rem;
  font-weight: 300;
}
.result .result_wrap ul li .value_wrap .exchage_wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.result .cost_wrap {
  padding: 2.4rem 0 0;
  border-top: 1px solid #ECE7DA;
}
.result .cost_wrap .cost_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.result .cost_wrap .cost_box h3 {
  font-size: 1.8rem;
  font-weight: 600;
}
.result .cost_wrap .cost_box .value_wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.result .cost_wrap .cost_box .value_wrap p {
  font-size: 2rem;
  font-weight: 500;
}
.result .cost_wrap .cost_box .value_wrap span {
  font-size: 1.6rem;
  font-weight: 300;
  width: 3rem;
  flex-shrink: 0;
}
.result .cost_wrap .notice_wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem ;
  margin-top: 2rem;
}
.result .cost_wrap .notice {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
}
.result .cost_wrap .notice span,
.result .cost_wrap .notice i {
  color: #737373;
  line-height: 1.5rem;
}
.result .btn_wrap {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding-top: 4rem;
}
.result .btn_wrap a {
  display: block;
  width: 100%;
  font-size: 1.8rem;
  font-weight: 700;
  padding: 2rem 0;
  border-radius: 1.6rem;
  text-align: center;
  border: 1px solid #2f2f2f;
}
.result .btn_wrap a.calc {
  background: var(--main-color);
  border: 0;
}

/* caution.php */
.caution .list_wrap {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2.4rem;
}
.caution .list_wrap .item_box h2 {
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 1.6rem;
}
.caution .list_wrap .item_box ul {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.caution .list_wrap .item_box ul li {
  background: #fff;
  border-radius: 1rem;
  padding: 2.4rem 2rem;
  box-shadow: 0px 0px 8px 0px #0000001A;
}
.caution .list_wrap .item_box ul li .title_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.caution .list_wrap .item_box ul li .title_box h3 {
  font-size: 1.8rem;
  font-weight: 600;
}
.caution .list_wrap .item_box ul li .title_box .state {
  font-size: 1.4rem;
  font-weight: 600;
  padding: .6rem .5rem;
}
.caution .list_wrap .item_box ul li .caution {
  display: block;
  font-size: 1.4rem;
  color: #737373;
  margin-bottom: 1rem;
}
.caution .list_wrap .item_box ul li p {
  font-size: 1.2rem;
  line-height: 1.6rem;
  color: #737373;
  word-break: keep-all;
}
.caution .list_wrap .item_box ul li a {
  display: block;
  width: 100%;
  font-size: 1.6rem;
  font-weight: 500;
  border: 1px solid #2f2f2f;
  border-radius: 1rem;
  text-align: center;
  padding: 1.2rem 0;
  margin-top: 1.6rem;
}

/* more.php */
.more .list_wrap > ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.more .list_wrap > ul > li {
  background: #fff;
  border-radius: 1rem;
  padding: 2.4rem 2rem;
}
.more .list_wrap > ul > li .title_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.more .list_wrap > ul > li .title_wrap h2 {
  font-size: 2rem;
  font-weight: 600;
}
.more .list_wrap > ul > li .title_wrap img {
  width: 2.4rem;
  transition: transform .3s ease;
}
.more .list_wrap > ul > li.on .title_wrap img {
  transform: rotate(180deg);
}
.more .list_wrap > ul > li .content_wrap {
  display: none;
  margin-top: 2rem;
}
.more .list_wrap > ul > li .content_wrap .number_box ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.more .list_wrap > ul > li .content_wrap .number_box ul li h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #737373;
  margin-bottom: .8rem;
}
.more .list_wrap > ul > li .content_wrap .number_box ul li p {
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: #737373;
  word-break: keep-all;
}
.more .list_wrap > ul > li .content_wrap .number_box a {
  display: block;
  width: 100%;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  padding: 1.5rem 0;
  border-radius: 1rem;
  background: var(--main-color);
  margin-top: 2rem;
}
.more .list_wrap > ul > li .content_wrap .number_box a.border {
  background: none;
  border: 1px solid #2f2f2f;
  margin: 0;
}