/* COMMON */
:root {
  --main-color: #2563EB;
  --bg-color: #f8fafc;
}

body {
  background: var(--bg-color);
}

#wrap {
  margin-bottom: 7.9rem;
  min-height: calc(100dvh - 7.9rem);
  display: flex;
  flex-direction: column;
}

.inner {
  width: 100%;
  padding: 0 2.4rem;
  margin: 0 auto;
}

main {
  margin-top: 9.2rem;
  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: space-between;
}
header .logo {
  display: inline-block;
  width: 4.8rem;
}
header .logo img {
  width: 100%;
}
header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  white-space: nowrap;
}

/* 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: #9ba8d0;
  white-space: nowrap;
}
footer ul li.active a p {
  color: var(--main-color);
}

/* COMMON */
.common_search_wrap form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #e2e8f0;
  border-radius: 2.5rem;
  padding: 1.3rem 2.4rem;
}
.common_search_wrap form input[type="text"] {
  width: 100%;
  font-size: 1.5rem;
  outline: none;
  background: none;
}
.common_search_wrap form input[type="text"]::placeholder {
  color: #64748B;
}
.common_search_wrap form button img {
  width: 2.4rem; 
}

.common_filter_wrap {
  margin-top: 2rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.common_filter_wrap a {
  display: inline-block;
}
.common_filter_wrap a img {
  width: 2.4rem; 
}
.common_filter_wrap ul {
  display: flex;
  align-items: center;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.common_filter_wrap ul::-webkit-scrollbar {
  display: none;
}
.common_filter_wrap ul li {
  flex: 0 0 auto;
  font-size: 1.6rem;
  font-weight: 600;
  color: #64748B;
  border: 1px solid #64748B;
  padding: 0;
  border-radius: 3rem;
  cursor: pointer;
  white-space: nowrap;
}
.common_filter_wrap ul li a {
  padding: .7rem 1.4rem;
}
.common_filter_wrap ul li a::after {
  content: "✕";
  font-size: 1.2rem;
  margin-left: .6rem;
}

.common_notice_wrap {
  background: #E2E8F0;
  text-align: center;
  padding: 1.8rem 0;
  margin-top: auto;
}
.common_notice_wrap p {
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.8rem;
  color: #64748B;
}

.state.eta {
  border-top: 1px solid #0EA5E9; 
  border-bottom: 1px solid #0EA5E9; 
  color: #0EA5E9;
}
.state.free {
  border-top: 1px solid #10C455; 
  border-bottom: 1px solid #10C455; 
  color: #10C455;
}
.state.cond {
  border-top: 1px solid #D3A900; 
  border-bottom: 1px solid #D3A900; 
  color: #D3A900;
}
.state.evisa {
  border-top: 1px solid #710EE9; 
  border-bottom: 1px solid #710EE9; 
  color: #710EE9;
}
.state.required {
  border-top: 1px solid #E90E0E; 
  border-bottom: 1px solid #E90E0E; 
  color: #E90E0E;
}
.state.arrival {
  border-top: 1px solid #E97C0E; 
  border-bottom: 1px solid #E97C0E; 
  color: #E97C0E;
}

/* home.php */
.home .popular_wrap {
  margin-top: 3rem;
}
.home .popular_wrap .title_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}
.home .popular_wrap .title_box h2 {
  font-size: 1.6rem;
  font-weight: 600;
}
.home .popular_wrap .title_box .more_btn {
  display: flex;
  align-items: center;
}
.home .popular_wrap .title_box .more_btn span {
  font-size: 1.4rem;
  color: #64748B;
}
.home .popular_wrap .title_box .more_btn img {
  width: 1.6rem;
}
.home .popular_wrap ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.home .popular_wrap ul li a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2.2rem;
  border-radius: 1rem;
  box-shadow: 0px 0px 8px 0px #E2E8F0;
  padding: 2rem 0;
}
.home .popular_wrap ul li a img {
  width: 3rem;
}
.home .popular_wrap ul li a p {
  font-size: 1.6rem;
  font-weight: 600;
}
.home .quick_wrap {
  margin-top: 3rem;
}
.home .quick_wrap h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
}
.home .quick_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.home .quick_wrap ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 1rem;
  box-shadow: 0px 0px 8px 0px #E2E8F0;
  font-size: 1.6rem;
  font-weight: 600;
  padding: 2rem;
}
.home .quick_wrap ul li a img {
  width: 2rem;
}

/* list.php */
.list .list_wrap {
  margin-top: 2.4rem;
}
.list .list_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.list .list_wrap ul li a {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0px 0px 8px 0px #E2E8F0;
}
.list .list_wrap ul li a .title_wrap .title_box {
  display: flex;
  align-items: center;
  margin-bottom: 1.8rem;
}
.list .list_wrap ul li a .title_wrap .title_box h2 {
  font-size: 2rem;
  font-weight: 600;
  white-space: nowrap;
}
.list .list_wrap ul li a .title_wrap .title_box img {
  width: 2rem;
}
.list .list_wrap ul li a .title_wrap p {
  font-size: 1.4rem;
  font-weight: 600;
  color: #64748B;
  word-break: keep-all;
  line-height: 1.4;
  margin-right: 1.5rem;
}
.list .list_wrap ul li a .state_wrap .state {
  font-size: 1.4rem;
  font-weight: 600;
  padding: .8rem .6rem;
  white-space: nowrap;
}
.list .list_wrap .empty {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.5;
  color: #64748B;
  text-align: center;
  padding: 6rem 0;
}

/* filter.php */
.filter .filter_wrap {
  margin-top: 2rem;
}
.filter .filter_wrap .filter_box:nth-of-type(1) {
  margin-bottom: 4rem;
}
.filter .filter_wrap .filter_box h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 1.6rem;
}
.filter .filter_wrap .filter_box ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.filter .filter_wrap .filter_box ul li {
  font-size: 1.6rem;
  font-weight: 600;
  color: #64748B;
  border: 1px solid #64748B;
  padding: 0;
  border-radius: 3rem;
  cursor: pointer;
}
.filter .filter_wrap .filter_box ul li a {
  display: block;
  padding: .7rem 1.4rem;
}
.filter .filter_wrap .filter_box ul li.active {
  color: #fff;
  background: #1E293B;
  border: 1px solid #1E293B;
}
.filter .btn_wrap {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 4rem;
}
.filter .btn_wrap a {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  padding: 2rem 0;
  text-align: center;
  border-radius: 1.6rem;
  border: 1px solid #1e293b;
}
.filter .btn_wrap a.fill {
  color: #fff;
  background: var(--main-color);
  border: 1px solid var(--main-color);
}

/* detail.php */
.detail {
  background: #fff;
  border-radius: 2rem 2rem 0 0;
  padding: 3.6rem 0 4rem;
  box-shadow: 0px 0px 8px 0px #0000001A;
}
.detail .title_wrap {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.detail .title_wrap h2 {
  font-size: 2.4rem;
  font-weight: 600;
}
.detail .title_wrap p {
  font-size: 1.6rem;
  margin-top: 1.6rem;
  color: #2f2f2f;
}
.detail .title_wrap .span_wrap {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-top: 1rem;
}
.detail .title_wrap .span_wrap span {
  display: block;
  font-size: 1.2rem;
  font-weight: 300;
  color: #64748B;
  line-height: 1.5;
  word-break: keep-all;
}
.detail .title_wrap .span_wrap span.warn {
  font-weight: 600;
  color: #E90E0E;
}
.detail .state_wrap {
  padding: 2.4rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.detail .state_wrap ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem;
}
.detail .state_wrap ul li h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.detail .state_wrap ul li p {
  width: fit-content;
  font-size: 1.6rem;
  font-weight: 600;
  color: #64748B;
  border-radius: 3rem;
  border: 1px solid #64748B;
  padding: .6rem 1rem;
}
.detail .state_wrap ul li p.cond {
  color: #D3A900;
  border: 1px solid #D3A900;
}
.detail .state_wrap ul li p.eta {
  color: #0EA5E9;
  border: 1px solid #0EA5E9;
}
.detail .state_wrap ul li p.free {
  color: #10C455;
  border: 1px solid #10C455;
}
.detail .state_wrap ul li p.evisa {
  color: #710EE9;
  border: 1px solid #710EE9;
}
.detail .state_wrap ul li p.required {
  color: #E90E0E;
  border: 1px solid #E90E0E;
}
.detail .state_wrap ul li p.arrival {
  color: #E97C0E;
  border: 1px solid #E97C0E;
}
.detail .check_wrap {
  padding: 2.4rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.detail .check_wrap h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
}
.detail .check_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.detail .check_wrap ul li {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.detail .check_wrap ul li input[type="checkbox"] {
  width: 1.6rem;
  height: 1.6rem;
  accent-color: #64748B;
}
.detail .check_wrap ul li label {
  font-size: 1.6rem;
  font-weight: 500;
  color: #64748B;
}
.detail .goal_wrap {
  padding: 2.4rem 0 0;
}
.detail .goal_wrap h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
}
.detail .goal_wrap ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 1rem;
}
.detail .goal_wrap ul li input[type="radio"] {
  display: none;
}
.detail .goal_wrap ul li label {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  padding: .7rem 1.4rem;
  color: #64748B;
  border: 1px solid #64748B;
  border-radius: 3rem;
  cursor: pointer;
}
.detail .goal_wrap ul li input[type="radio"]:checked + label {
  background: #1e293b;
  color: #fff;
  border: 1px solid #1e293b;
}
.detail .goal_wrap .content_wrap {
  display: none;
  margin-top: 3rem;
}
.detail .goal_wrap .content_wrap.active {
  display: block;
}
.detail .goal_wrap .content_wrap .title_box {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.6rem;
  cursor: pointer;
  transition: margin-bottom .25s;
}
.detail .goal_wrap .content_wrap.close .title_box {
  margin-bottom: 0;
}
.detail .goal_wrap .content_wrap.close .title_box img {
  transform: rotate(0deg);
}
.detail .goal_wrap .content_wrap .title_box h3 {
  font-size: 1.8rem;
  font-weight: 600;
}
.detail .goal_wrap .content_wrap .title_box h3 b {
  font-size: 2rem;
  font-weight: 700;
}
.detail .goal_wrap .content_wrap .title_box img {
  width: 2rem;
  transform: rotate(180deg);
  transition: transform .25s;
}
.detail .goal_wrap .content_wrap .step_wrap {
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 2.4rem;
}
.detail .goal_wrap .content_wrap .step_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.detail .goal_wrap .content_wrap .step_wrap ul li span {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #64748B;
  margin-bottom: .8rem; 
}
.detail .goal_wrap .content_wrap .step_wrap ul li p {
  font-size: 1.4rem;
  color: #64748B;
  line-height: 2.3rem;
  word-break: keep-all;
}
.detail .goal_wrap .content_wrap .step_wrap .notice {
  font-size: 1.3rem;
  font-weight: 300;
  color: #64748B;
  line-height: 1.6;
  word-break: keep-all;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid #e2e8f0;
}
.detail .btn_wrap {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 4rem;
}
.detail .btn_wrap a {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  padding: 2rem 0;
  text-align: center;
  border-radius: 1.6rem;
  border: 1px solid #1e293b;
}
.detail .btn_wrap a.fill {
  color: #fff;
  background: var(--main-color);
  border: 1px solid var(--main-color);
}

/* checklist.php */
.checklist ul {
  display: flex;
  flex-direction: column;
}
.checklist ul li {
  padding: 2rem 0;
  border-top: 1px solid #e2e8f0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.checklist ul li:last-of-type {
  border-bottom: 1px solid #e2e8f0;
}
.checklist ul li input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 1;
  cursor: pointer;
}
.checklist ul li i {
  display: block;
  width: 2rem;
  aspect-ratio: 1 / 1;
  border: 2px solid #64748B;
  border-radius: .5rem;
  position: relative;
}
.checklist ul li label {
  font-size: 1.8rem;
  font-weight: 500;
  color: #64748B;
}
.checklist ul li input[type="checkbox"]:checked + i {
  border: 1px solid var(--main-color);
  background: var(--main-color);
}
.checklist ul li input[type="checkbox"]:checked + i::after {
  content: "";
  width: .4rem;
  height: .8rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.checklist ul li input[type="checkbox"]:checked + i + label {
  color: var(--main-color);
}

/* more.php */
.more .list_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.more .list_wrap ul li {
  background: #fff;
  border-radius: 1.6rem;
}
.more .list_wrap ul li .title_wrap {
  padding: 2rem;
  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;
  transform: rotate(180deg);
  transition: transform .25s;
}
.more .list_wrap ul li.close .title_wrap img {
  transform: rotate(0);
}
.more .list_wrap ul li .content_wrap {
  padding: 2rem;
  padding-top: 0;
}
.more .list_wrap ul li .content_wrap .content_box + .content_box {
  margin-top: 2rem;
}
.more .list_wrap ul li .content_wrap .content_box h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #64748B;
  margin-bottom: .8rem;
}
.more .list_wrap ul li .content_wrap .content_box p {
  font-size: 1.4rem;
  color: #64748B;
  line-height: 2.3rem;
  word-break: keep-all;
}
.more .list_wrap ul li .content_wrap .content_box span {
  display: block;
  font-size: 1.2rem;
  line-height: 2.3rem;
  color: #64748B;
  word-break: keep-all;
}