/* COMMON */
:root {
  --main-color: #C94B4B;
  --bg-color: #faf9f7;
}

body {
  background: var(--bg-color);
}

#wrap {
  margin-bottom: 7.9rem;
}

.inner {
  width: 100%;
  padding: 0 2.4rem;
  margin: 0 auto;
}

main {
  margin-top: 10.5rem;
  padding-bottom: 2.5rem;
}

/* HEADER */
header {
  padding: 2rem 0 2.4rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  background: var(--bg-color);
}
header h1 {
  font-family: 'Moneygraphy';
  font-size: 3.6rem;
  color: var(--main-color);
}
header p {
  font-family: 'Moneygraphy';
  font-size: 1.6rem;
  color: #A97872;
  margin-top: .5rem;
}

/* FOOTER */
footer {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
  border-top: 1px solid #E5E2E0;
  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: #777373;
  white-space: nowrap;
}
footer ul li.active a p {
  color: var(--main-color);
}

/* 공통 요소 */
.notice_container {
  margin-top: 4rem;
  text-align: center;
}
.notice_container p {
  font-size: 1.2rem;
  color: #777373;
  line-height: 1.8rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.common_list_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.common_list_wrap ul li {
  padding: 1.6rem;
  border-radius: 1rem;
  box-shadow: 0px 0px 8px 0px #E5E2E0;
}
.common_list_wrap ul li.end {
  opacity: 0.3;
  pointer-events: none;
}
.common_list_wrap ul li .train_box {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.common_list_wrap ul li .train_box img {
  width: 1.8rem;
}
.common_list_wrap ul li .train_box span {
  font-size: 1.4rem;
  color: #777373;
}
.common_list_wrap ul li .info_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.common_list_wrap ul li .info_wrap .time_box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 1.6rem;
}
.common_list_wrap ul li .info_wrap .time_box .time span {
  display: block;
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.common_list_wrap ul li .info_wrap .time_box .time p {
  font-size: 1.2rem;
}
.common_list_wrap ul li .info_wrap .time_box .time.end p {
  text-align: right;
}
.common_list_wrap ul li .info_wrap .time_box .distance {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.common_list_wrap ul li .info_wrap .time_box .distance span {
  display: block;
  font-size: 1rem;
  color: #777373;
}
.common_list_wrap ul li .info_wrap .time_box .distance img {
  width: 100%;
}
.common_list_wrap ul li .info_wrap .fee_box {
  padding-left: 1.6rem;
  border-left: 1px solid #e5e2e0;
}
.common_list_wrap ul li .info_wrap .fee_box p {
  font-size: 1.2rem;
  white-space: nowrap;
  margin-bottom: .5rem;
}
.common_list_wrap ul li .info_wrap .fee_box span {
  display: block;
  font-size: 1.2rem;
  white-space: nowrap;
}
.view .common_list_wrap ul li {
  cursor: pointer;
}
.common_list_wrap ul li.open .link_btn {
  display: block;
}
.common_list_wrap ul li .link_btn {
  display: none;
  width: 100%;
  color: var(--main-color);
  border: 1px solid var(--main-color);
  text-align: center;
  padding: 1rem 0;
  border-radius: 1rem;
  font-size: 1.4rem;
  margin-top: 1.6rem;
}
.common_list_wrap .more_btn {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--main-color);
  border: 1px solid var(--main-color);
  padding: 1.7rem 0;
  border-radius: 1rem;
  font-size: 2rem;
  font-weight: 600;
  margin-top: 1.6rem;
}

.color_ktx { filter: brightness(0) saturate(100%) invert(20%) sepia(85%) saturate(3015%) hue-rotate(218deg) brightness(97%) contrast(93%); }
.color_srt { filter: brightness(0) saturate(100%) invert(20%) sepia(88%) saturate(2852%) hue-rotate(314deg) brightness(92%) contrast(98%); }
.color_mugung { filter: brightness(0) saturate(100%) invert(51%) sepia(87%) saturate(2135%) hue-rotate(349deg) brightness(92%) contrast(89%); }

/* home.php */
.home .time_wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.home .time_wrap h2 {
  font-family: 'Moneygraphy';
  font-size: 2rem;
}
.home .time_wrap .round_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  border: 1px solid #e5e2e0;
  box-shadow: 0px 0px 8px 0px #E5E2E0;
  border-radius: 1rem;
  padding: 2rem 1.6rem;
}
.home .time_wrap .round_wrap .round_box {
  width: 100%;
}
.home .time_wrap .round_wrap .round_box .select_box {
  display: flex;
  align-items: center;
  width: 100%;
}
.home .time_wrap .round_wrap .round_box .select_box img {
  width: 1.8rem;
  margin-right: 1.6rem;
}
.home .time_wrap .round_wrap .round_box .select_box:first-of-type {
  padding-bottom: 2rem;
  border-bottom: 1px solid #E5E2E0;
}
.home .time_wrap .round_wrap .round_box .select_box:last-of-type {
  padding-top: 2rem;
}
.home .time_wrap .round_wrap .round_box .select_box select {
  width: 100%;
  font-size: 1.5rem;
  background: transparent url("../img/icon_arrow_down.png") no-repeat 100% 50% / 1.6rem;
}
.home .time_wrap .round_wrap .switch_btn img {
  width: 1.6rem;
}
.home .time_wrap .date_wrap,
.home .time_wrap .train_wrap {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  border: 1px solid #e5e2e0;
  box-shadow: 0px 0px 8px 0px #E5E2E0;
  border-radius: 1rem;
  padding: 2rem 1.6rem;
}
.home .time_wrap .date_wrap img,
.home .time_wrap .train_wrap img {
  width: 1.8rem;
}
.home .time_wrap .date_wrap input {
  position: relative;
  width: 100%;
  min-height: 1.8rem;
  font-family: inherit;
  font-size: 1.5rem;
  color: #000;
  text-align: left;
  line-height: normal;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent url("../img/icon_calendar2.png") no-repeat 100% 50% / 1.6rem;
  -webkit-appearance: none;
  appearance: none;
}
.home .time_wrap .date_wrap input::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
}
.home .time_wrap .date_wrap input::-webkit-datetime-edit {
  padding: 0;
}
.home .time_wrap .date_wrap input::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.home .time_wrap .train_wrap select {
  width: 100%;
  font-size: 1.5rem;
  background: transparent url("../img/icon_arrow_down.png") no-repeat 100% 50% / 1.6rem;
}
.home .time_wrap .check_btn {
  display: block;
  width: 100%;
  background: var(--main-color);
  color: #FAF9F7;
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  border-radius: 1rem;
  padding: 1.8rem 0;
  margin-top: 1rem;
}
.home .result_wrap {
  display: none;
  margin-top: 4rem;
}
.home .result_wrap.on {
  display: block;
}
.home .result_wrap .empty_text {
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: #777373;
  text-align: center;
  word-break: keep-all;
  padding: 4rem 0;
}
.home .result_wrap .title_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.home .result_wrap .title_box h2 {
  font-family: 'Moneygraphy';
  font-size: 2rem;
}
.home .result_wrap .title_box span {
  font-size: 1.2rem;
  color: #777373;
}
.home .result_wrap .title_box select {
  font-size: 1.2rem;
  color: #777373;
  padding-right: 1.8rem;
  background: transparent url("../img/icon_arrow_down.png") no-repeat 100% 60% / 1.5rem;
  text-align: right;
}
.home .quick_wrap {
  margin-top: 4rem;
}
.home .quick_wrap h2 {
  font-family: 'Moneygraphy';
  font-size: 2rem;
  margin-bottom: 1rem;
}
.home .quick_wrap ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
}
.home .quick_wrap ul li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0px 0px 8px 0px #E5E2E0;
  border-radius: 1rem;
  padding: 2rem 1.6rem;
}
.home .quick_wrap ul li a img {
  width: 1.8rem;
}
.home .quick_wrap ul li a .text_wrap p {
  font-size: 1.6rem;
  font-weight: 600;
}

/* more.php */
.more ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.more ul li {
  box-shadow: 0px 0px 8px 0px #E5E2E0;
  border-radius: 1.6rem;
  padding: 2.4rem 2rem;
}
.more ul li .title_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.more ul li .title_wrap h2 {
  font-size: 2rem;
  font-weight: 600;
}
.more ul li .title_wrap img {
  width: 2.4rem;
}
.more ul li .title_wrap {
  cursor: pointer;
}
.more ul li .title_wrap img {
  transition: transform .2s;
}
.more ul li.open .title_wrap img {
  transform: rotate(180deg);
}
.more ul li .content_wrap {
  display: none;
  margin-top: 2rem;
}
.more ul li .content_wrap p {
  font-size: 1.4rem;
  line-height: 2rem;
  color: #777373;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.more ul li .content_wrap p b {
  font-weight: 600;
}
.more ul li .content_wrap .btn_wrap {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 2rem;
}
.more ul li .content_wrap .btn_wrap a {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--main-color);
  border-radius: 1rem;
  color: #fff;
  font-size: 1.4rem;
  padding: 1.2rem 0;
}

/* view.php */
.view {
  margin-top: 8rem;
}