/* home.php */
section + section { margin-top: 3rem;}
section .sc-title { margin-bottom:  1rem;}
section .sc-title .mainTitle { font-size: 2.2rem; font-weight: 700; line-height: 1.4;}

.sc-busfetch{ background-color: #f4f4f4; padding: 2rem; border-radius: 0.8rem;}
.sc-busfetch .busflow_wrap { display: flex; align-items: center; margin-bottom: 1.6rem;}
.sc-busfetch .busflow_wrap .busflow_btn { position: relative; font-size: 1.6rem; color: #999; }
.sc-busfetch .busflow_wrap .busflow_btn.active { color: var(--brand-color);}
.sc-busfetch .busflow_wrap .busflow_btn + .busflow_btn { padding-left: 1rem; margin-left: 1rem; }
.sc-busfetch .busflow_wrap .busflow_btn + .busflow_btn:after { content: ''; position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 1px; height: 1rem; background-color: #ccc;}
.sc-busfetch .station { display: flex; align-items: center; gap: 1rem;}
.sc-busfetch .station input { border: 1px solid #ccc; border-radius: 0.5rem; text-align: center; padding: 1rem 0; font-size: 1.6rem; flex: 1; min-width: 0; padding: 1rem 0.8rem;}
.sc-busfetch .station input::placeholder { color: #999;}
.sc-busfetch .station #switchBtn img { width: 2rem; }
.sc-busfetch .tripdate { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem;}
.sc-busfetch .tripdate .input-btn { display: flex; align-items: center; border: 1px solid #ccc; border-radius: 0.5rem; padding: 1rem 2rem; font-size: 1.6rem; background-color: #fff; position: relative; overflow: hidden; cursor: pointer;}
.sc-busfetch .tripdate .input-btn input[type="date"] { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 10; left: 0; top: 0; margin: 0; padding: 0; border: none; background: transparent; pointer-events: auto; -webkit-appearance: none; appearance: none;}
.sc-busfetch .tripdate .input-btn p { font-size: inherit; flex-shrink: 0; color: #999; position: relative; z-index: 1; pointer-events: none;}
.sc-busfetch .tripdate .input_box { display: flex; align-items: center; font-size: inherit; flex: 1; min-width: 0; padding-left: 1.6rem; margin-left: 1.6rem; position: relative; z-index: 1; pointer-events: none;}
.sc-busfetch .tripdate .input_box:after { content: ''; position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 0.1px; height: 1rem; background-color: #ccc; pointer-events: none;}
.sc-busfetch .tripdate .input_box input { flex: 1; min-width: 0; background-color: transparent; padding-right: 1rem; pointer-events: none;}
.sc-busfetch .tripdate .input_box img { flex-shrink: 0; width: 0.8rem; pointer-events: none;}
.sc-busfetch .fetch_button { margin-top: 1.6rem;}
.sc-busfetch .fetch_button.active { background-color: var(--brand-color);}

.homeWrap .sc-banner .banner-item { border-radius: 0.5rem; overflow: hidden; padding: 2rem; display: block;}
.homeWrap .sc-banner .banner1 p { color: #fff; font-size: 1.4rem; line-height: 1.4; font-weight: 300;}
.homeWrap .sc-banner .banner1 h3 { color: #fff; font-size: 1.8rem; line-height: 1.4; font-weight: 600; }

.homeWrap .sc1 .sc-contents { display: flex; align-items: normal; gap: 1rem;}
.homeWrap .sc1 .sc-contents .menu-item { flex: 1; min-width: 0; padding: 1.6rem; background-color: #e6f1ff; display: flex; flex-direction: column; align-items: end; justify-content: space-between; gap: 0.8rem; border-radius: 0.5rem;}
.homeWrap .sc1 .sc-contents .menu-item p { font-size: 1.6rem; line-height: 1.2; font-weight: 700; width: 100%;}
.homeWrap .sc1 .sc-contents .menu-item img { width: 2rem; float: right;}

.homeWrap .sc2 .sc-contents { display: flex; flex-direction: column; gap: 1.6rem;}
.homeWrap .sc2 .sc-contents .link-item { background-color: #f4f4f4; border-radius: 0.5rem; display: flex; align-items: center; justify-content: space-between; padding: 1.6rem;}
.homeWrap .sc2 .sc-contents .link-item .text_box { display: flex; align-items: center; gap: 1rem;}
.homeWrap .sc2 .sc-contents .link-item .text_box h4 { font-size: 1.5rem;}
.homeWrap .sc2 .sc-contents .link-item .text_box img { width: 2.4rem;}
.homeWrap .sc2 .sc-contents .link-item p{ display: flex; align-items: center; font-size: 1.5rem; color: #999; gap: 0.8rem;}




/* subpage */
.subpage-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 2rem; margin-top: 1rem;}

.subpage-search { display: flex; border: 1px solid #ccc; border-radius: 0.5rem; margin-bottom: 2rem; overflow: hidden;}
.subpage-search input { flex: 1; min-width: 0; font-size: 1.6rem; padding: 1.6rem 1.6rem;}
.subpage-search input::placeholder { color: #999; font-weight: 300;}
.subpage-search button { padding-right: 1.6rem;}
.subpage-search button img { width: 2rem;}

.subpage-list { display: flex; flex-direction: column; gap: 1.6rem;}
.subpage-list .list-item { display: flex;   border: 1px solid #ccc; padding: 2rem 1.6rem; border-radius: 0.5rem; gap: 0.8rem;}
.subpage-list .list-item.default-img { align-items: baseline; gap: 0.6rem;}
.subpage-list .list-item .mark { flex-shrink: 0;}
.subpage-list .list-item .mark img { width: 3rem;}
.subpage-list .list-item.default-img .mark img { width: 1rem;}
.subpage-list .list-item .item_text { flex: 1; min-width: 0;}
.subpage-list .list-item .item_text pre { font-size: 1.5rem; line-height: 1.5; color: #666; font-weight: 300;}

.subpage-list2 { display: flex; flex-direction: column; gap: 1.6rem;}
.subpage-list2 .list-item { border: 1px solid #ccc; border-radius: 0.5rem; padding: 1.8rem;}
.subpage-list2 .list-item .item_header { display: flex; align-items: flex-start; justify-content: space-between;}
.subpage-list2 .list-item .name { font-size: 1.6rem; font-weight: 600;}
.subpage-list2 .list-item .company { font-size: 1.6rem; color: #999; font-weight: 300;}
.subpage-list2 .list-item .item_box { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem;}
.subpage-list2 .list-item .item_box .text_box { display: flex; align-items: center; gap: 1rem;}
.subpage-list2 .list-item .item_box .text_box i { border-radius: 100%; background-color: #f4f4f4; display: flex; align-items: center; justify-content: center; width: 3.2rem; aspect-ratio: 1/1; flex-shrink: 0; }
.subpage-list2 .list-item .item_box .text_box p { font-size: 1.6rem; color: #999; font-weight: 300; line-height: 1.4; flex: 1; min-width: 0; word-break: break-all;}

.alertMessage { color: #999; font-size: 1.8rem; font-weight: 300; margin-top: 8rem; text-align: center;}
.btn-p1 { background-color: var(--brand-color); color: #fff; text-align: center; border-radius: 0.5rem; display: block; padding: 1.2rem 0; width: 100%; font-size: 1.6rem; flex: 1; min-width: 0;} 


/* schedule.php */
.scheduleWrap .sc-schedule table { border-collapse: collapse; table-layout: fixed; width: 100%;}
.scheduleWrap .sc-schedule table thead th { border-left: 1px solid #ccc; border-right: 1px solid #ccc; background-color: #f4f4f4;}
.scheduleWrap .sc-schedule table thead tr{  border-top: 1px solid #333; border-bottom: 1px solid #333;}

.scheduleWrap .sc-schedule table tbody tr:first-child td { border-top: none;}
.scheduleWrap .sc-schedule table tbody td { border: 1px solid #ccc;}
.scheduleWrap .sc-schedule table thead th:first-child,
.scheduleWrap .sc-schedule table tbody td:first-child { border-left: none;}
.scheduleWrap .sc-schedule table thead th:last-child,
.scheduleWrap .sc-schedule table tbody td:last-child { border-right: none;}

.scheduleWrap .sc-schedule table thead th,
.scheduleWrap .sc-schedule table tbody td { font-size: 1.4rem; padding: 1rem 0; text-align: center;}
.scheduleWrap .sc-schedule table tbody td { color: #999; font-weight: 300;}

td.tdMessage { text-align: center; padding: 4rem !important; color: #999; line-height: 1.4; font-size: 1.6rem !important; }


/* qna.php */
.qnaWrap .qna_list { display: flex; flex-direction: column; gap: 1.6rem;}
.qnaWrap .qna_item { border: 1px solid #ccc; border-radius: 0.5rem;}
.qnaWrap .qna_item .qna_header { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.6rem;}
.qnaWrap .qna_item .qna_header h3 { font-size: 1.5rem; flex: 1; min-width: 0; padding-right: 1rem; text-align: left; line-height: 1.4;}
.qnaWrap .qna_item .qna_header img { width: 1.8rem; transition: all 0.2s;}
.qnaWrap .qna_item .qna_body { border-top: 1px solid #eee; background-color: #e6f1ff; padding: 2rem 1.6rem; display: none;}
.qnaWrap .qna_item .qna_body pre { font-size: 1.5rem; line-height: 1.4; color: #666; font-weight: 300;}
.qnaWrap .qna_item.active .qna_header img { transform: rotate(180deg);}
.qnaWrap .qna_item.active .qna_body { display: block;}

/* rule.php */



/* pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1.6rem; margin-top: 4rem;}
.pagination .page-link.current { color: #333; font-weight: 700;}
.pagination .page-link { color: #666; font-size: 1.8rem;}


/* modal */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; background-color: rgba(0, 0, 0, 0.5); display: none;}
.modal.active { display: block;}
.modal .modal-container { position: relative; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%;}
.modal .modal-header { background-color: var(--brand-color); display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem;}
.modal .modal-header h3 { color: #fff; font-size: 1.6rem;}
.modal .modal-header .modal-close { width: 2rem ; aspect-ratio: 1/1;}

.modal .modal-body { background-color: #fff; padding: 2rem; max-height: 80dvh; overflow-y: auto;}
.modal .modal-body .modal-section:nth-child(n+2) { margin-top: 2rem;}
.modal .modal-body .modal-title { font-size: 1.6rem; margin-bottom: 1rem;}

.modal .modal-body .search-wrap { display: flex; align-items: center; justify-content: space-between; border: 1px solid #ccc; border-radius: 0.5rem;}
.modal .modal-body .search-wrap input { background-color: transparent; flex: 1; min-width: 0; font-size: 1.6rem; padding: 1rem 1.6rem;}
.modal .modal-body .search-wrap .search-submit { width: 1.6rem; aspect-ratio: 1/1; flex-shrink: 0; padding-right: 1.6rem; box-sizing:initial}
.modal .modal-body .region-wrap { display: flex; gap: 0; border: solid #666; border-width: 1px 0 1px 0; height: 20rem;}
.modal .modal-body .region-wrap .region-column { flex: 0 0 12rem; border-right: 1px solid #ccc; overflow-y: auto; height: 100%; }
.modal .modal-body .alertMessage1 { font-size: 1.4rem; line-height: 1.4; text-align: center; color: #999; padding: 2rem 0;}
.modal .modal-body .region-wrap .region-label { background-color: #f4f4f4; padding: 1rem 1.6rem; width: 100%; text-align: left; font-size: 1.4rem; color: #999; border-bottom: 1px solid #ccc; display: block; }
.modal .modal-body .region-wrap .region-label:last-child { border-bottom: none;}
.modal .modal-body .region-wrap .region-label.active {  color: #333;}

.modal .modal-body .region-wrap .terminal-column { flex: 1; min-width: 0; overflow-y: auto; height: 100%;}
.modal .modal-body .region-wrap .terminal-column .sub-item { display: flex; flex-direction: column; width: 100%;}
.modal .modal-body .region-wrap .terminal-column .sub-item button { padding: 1rem 1.6rem; text-align: left; font-size: 1.4rem; color: #999; border-bottom: 1px solid #ccc; background-color: #fff;}
.modal .modal-body .region-wrap .terminal-column .sub-item button.selected { color: #333; }
.modal .modal-body .submit-btn { margin-top: 3rem; }
.modal .modal-body .region-wrap .terminal-column .alertMessage { font-size: 1.4rem; line-height: 1.3;}

.modal .modal-body .terminal-list { display: flex; align-items: center; gap: 0.4rem; overflow-x: auto;}
/* Chrome, Edge, Safari */
.modal .modal-body .terminal-list::-webkit-scrollbar { display: none;}
/* Firefox */
.modal .modal-body .terminal-list { scrollbar-width: none;}
/* IE, Edge (구버전) */
.modal .modal-body .terminal-list { -ms-overflow-style: none;}
.modal .modal-body .terminal-item { font-size: 1.4rem; border-radius: 100px; border: 1px solid #ccc; background-color: #f4f4f4; color: #999; padding: 0.8rem 1.6rem; }
.modal .modal-body .terminal-item.selected { color: #333; border: 1px solid #666; background-color: #fff;}
.modal .modal-body .searchMessage { font-size: 1.4rem; text-align: center; font-weight: 300; color: #999;}