@charset "utf-8";
/* CSS Document */
@import url("reset.css");
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;600&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans TC', '微軟正黑體', sans-serif;
    font-size: 17px;
    color: #333333;
    -webkit-text-size-adjust: none;
    image-rendering: -webkit-optimize-contrast;
}

a {
    color: #333333;
}

.webout {
    position: relative;
    max-width: 2000px;
    margin: 0 auto;
}

article {
    overflow: clip;
}

.out {
    max-width: 1000px;
    position: relative;
    padding: 0 20px;
    margin: 0 auto;
}

input,
select,
textarea {
    font-family: 'Noto Sans TC', '微軟正黑體', sans-serif;
    font-size: 17px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    appearance: textfield;
}

/*HOME-----------------------------------------*/

/*HOME_S1-----------------*/
.home .s1 .grey_tb .td {
    width: 20%;
}

.home .s1 .grey_tb .td:first-child {
    text-align: left;
}

.home .s1 .ps {
    line-height: 1.7em;
    margin: 2em 0;
}

/*HOME_S2-----------------*/
.home .s2 .box {
    position: relative;
    display: flex;
    justify-content: space-between;
    border: #C3C3C3 1px solid;
    padding: 45px 45px 90px 45px;
    border-radius: 15px;
    margin: 90px 0;
    font-weight: 600;
}

.home .s2 .box:before {
    content: "";
    position: absolute;
    left: 45px;
    bottom: 45px;
    z-index: 1;
    height: 3px;
    width: 205px;
    background: #009FE8;
    border-right: #FFFFFF 2px solid;
}

.home .s2 .box:after {
    content: "";
    position: absolute;
    left: 45px;
    bottom: 45px;
    right: 45px;
    height: 3px;
    background: #C8C9C9;
}

.home .s2 .left {
    font-size: 30px;
    line-height: 1.3em;
}

.home .s2 .left li {
    margin-bottom: 0.2em;
}

.home .s2 .left li:last-child {
    margin-bottom: 0;
}

.home .s2 .right ul {
    display: flex;
    margin-bottom: 1em;
}

.home .s2 .right li {
    font-size: 22px;
    color: #036EB7;
}

.home .s2 .right li:after {
    content: "|";
    padding: 0 0.5em;
}

.home .s2 .right li:last-child:after {
    display: none;
}

.home .s2 .right div {
    font-size: 22px;
}

.home .s2 .right div span {
    font-size: 32px;
    color: #6e9521;
}

/*NEWS-----------------------------------------*/
.news .edit,
.route .edit {
    padding: 50px 0;
    line-height: 1.5em;
    min-height: 100px;
}

/*STEP-----------------------------------------*/
form .nofill:before,
form .format:before {
    position: absolute;
    top: -2px;
    left: 5px;
    color: #FFFFFF;
    padding: 8px 10px;
    background: #396AB5;
    border-radius: 5px 5px 0px 0px;
    font-size: 12px;
    line-height: 1em;
    white-space: nowrap;
    pointer-events: none;
}

form .nofill:before {
    content: "此欄為必填";
}

form .format:before {
    content: "格式錯誤";
}

form .nofill,
form .format {
    position: relative;
    padding-top: 25px !important;
}

form .checks.nofill span,
form .nofill select,
form .nofill input,
form .format input,
form .nofill textarea {
    border: #396AB5 1px solid !important;
    box-shadow: 0px 0px 5px #396AB5;
}

form .checks.nofill:before {
    top: -10px;
    left: 0;
    border-radius: 5px;
}

/*STEP_TOP-----------------*/
.step .top {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.step .top li {
    position: relative;
    font-size: 24px;
    color: #009FE8;
    padding-right: 110px;
}

.step .top li:last-child {
    padding-right: 0;
}

.step .top li:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 38px;
    width: 34px;
    height: 1px;
    background: #C8C9C9;
}

.step .top li:last-child:after {
    display: none;
}

.step .top li span {
    color: #727171;
    margin-left: 0.5em;
}

.step .top li.active span {
    color: #E95514;
    font-weight: 600;
}

/*STEP_S1-----------------*/
.step .s1 .list {
    padding: 50px 0;
    border-bottom: #DBDBDB 1px solid;
}

.step .s1 .list .t2 {
    font-weight: 600;
    margin-bottom: 2em;
}

.step .s1 .list ul {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
}

.step .s1 .c2,
.step .s1 .go,
.step .s1 .after,
.step .s1 .c3 {
    display: none;
}

.step .s1 li.view {
    display: block;
}

.step .s1 .checks {
    gap: 30px;
}

.step .s1 .ps {
    max-width: 700px;
    margin: 0 auto;
    margin-top: 0.5em;
    font-size: 15px;
    color: #727171;
    line-height: 1.5em;
}

.step .s1 .checks label {
    cursor: pointer;
}

.step2 .s1 .checks label {
    cursor: default;
}

.step .s1 .checks input {
    display: none;
}

.step .s1 .checks span {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    border: #888888 1px solid;
    margin-right: 10px;
}

.step2 .s1 .checks span {
    border: none;
}

.step .s1 .checks input:checked+span:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 70%;
    height: 30%;
    border-color: #E95514;
    border-style: solid;
    border-width: 0px 0px 3px 3px;
    transform: translate(-50%, -70%) rotate(-45deg);
}

.step .s1 .c2 ul {
    justify-content: space-between;
}

.step .td,
.register .td {
    padding: 10px 0;
}

.step .s1 .c2 .td .t3 {
    width: 80px;
    color: #FFFFFF;
    line-height: 30px;
    text-align: center;
}

.step .s1 .c2 .td:first-child {
    width: 5em;
    max-width: 5em;
}

.step .select_box {
    position: relative;
}

.step .select_box:after {
    content: "";
    border-style: solid;
    border-width: 6px 3px 0 3px;
    border-color: #3E3A39 transparent transparent transparent;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

.step .select_box select {
    width: 200px;
    border: #CDCDCD 1px solid;
    border-radius: 5px;
    padding: 10px 25px 10px 15px;
    color: #333333;
    background: #FFFFFF;
    cursor: pointer;
    box-sizing: border-box;
}

.step .s1 .c2 a {
    display: block;
    width: 115px;
    font-size: 13px;
    line-height: 30px;
    text-align: center;
    border: #009FE8 1px solid;
    border-radius: 20px;
    transition: 0.2s;
}

.step .s1 .c2 a:hover {
    width: 135px;
}

.step .s1 .c4 {
    border-bottom: none;
}

.step .s1 .c4 .total {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    height: 70px;
    margin: 0 auto;
    border: #2EA6DF 1px solid;
    border-radius: 5px;
}

.step .s1 .c4 .total span {
    font-size: 30px;
    color: #C20D23;
    margin: 0 0 10px 5px;
}

/*STEP_S2-----------------*/
.step .s2 .table {
    max-width: 610px;
    margin: 0 auto;
}

.step .s2 .td:first-child {
    width: 7em;
    text-align: right;
    padding-right: 20px;
}

.step .s2 .td:first-child:after {
    content: "";
    padding-right: 0.5em;
}

.step .s2 .rq .td:first-child:after {
    content: "*";
    color: #E95514;
    padding-right: 0;
}

.step .s2 .select_box select {
    width: 100%;
}

.step .s2 input[type="text"],
.register .s1 input[type="text"],
.step .s2 input[type="number"],
.step .s2 textarea {
    width: 100%;
    padding: 10px 15px;
    border: #CDCDCD 1px solid;
    border-radius: 5px;
    box-sizing: border-box;
}

.ui-datepicker select {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
    height: 30px;
    background: #FFFFFF;
}

.step .s2 .ps {
    font-size: 15px;
    color: #727171;
    line-height: 1.5em;
    margin-top: 0.5em;
}

.step .s2 .other .td {
    vertical-align: top;
}

.step .s2 .other textarea {
    height: 120px;
}

.step .s2 .captcha input {
    width: 120px;
}

.step .s2 .captcha img {
    height: 47px;
    vertical-align: middle;
    margin-left: 5px;
}

.step .s2 .bt {
    position: relative;
    width: 150px;
    margin: 60px auto;
    transition: 0.2s;
}

.step .s2 .bt:hover {
    width: 170px;
}

.step .s2 .bt:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    width: 8px;
    height: 8px;
    border-style: solid;
    border-color: #FFFFFF;
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
    margin-top: -5px;
    pointer-events: none;
}

.step .s2 .bt input,
.register .s1 .bt {
    width: 100%;
    height: 40px;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    background: #9bb320;
}

/*STEP2-----------------------------------------*/
.step2 .s1 .c2,
.step2 .s1 .go,
.step2 .s1 .after,
.step2 .s1 .c3 {
    display: block;
}

.step2 .c2 .table {
    min-width: 250px;
}

.step2 .td {
    padding: 20px 0;
}

.step2 .td:last-child {
    border-bottom: #DBDBDB 1px solid;
}

.step2 .c2 .tr:first-child .td,
.step2 .c2 .tr:last-child .td {
    border-bottom: none;
}

.step2 .s2 .other .td:last-child {
    line-height: 1.5em;
}

.step2 .s2 .bm {
    max-width: 600px;
    display: flex;
    justify-content: space-between;
    margin: 60px auto;
}

.step2 .s2 .bm .bt {
    margin: 0;
}

.step2 .s2 .bm .bt:first-child input {
    background: #9E9F9F;
}

.step2 .s2 .bt:first-child:after {
    left: 15px;
    border-width: 0 0 2px 2px;
}

/*STEP3-----------------------------------------*/
.step3 .s1 .text {
    padding: 90px 0;
}

.step3 .s1 h6 {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.step3 .s1 p {
    line-height: 1.7em;
    text-align: center;
    margin: 2em 0 3em;
}

.step3 .s1 .text a {
    display: block;
    width: 150px;
    line-height: 40px;
    border-radius: 30px;
    color: #FFFFFF;
    text-align: center;
    background: #2EA6DF;
    margin: 0 auto;
    transition: 0.2s;
}

.step3 .s1 .text a:hover {
    width: 170px;
}

/*REGISTER-----------------------------------------*/

/*REGISTER_S1-----------------*/
.register .s1 .table {
    width: 450px;
    margin: 60px auto 40px;
}

.register .s1 .td:first-child {
    width: 6em;
    text-align: right;
    padding-right: 20px;
}

.register .s1 .bt {
    display: block;
    width: 150px;
    margin: 0 auto 60px;
    transition: 0.2s;
}

.register .s1 .bt:hover {
    width: 170px;
}

/*REGISTER_TB-----------------*/
.register .tb .ps {
    font-size: 15px;
    line-height: 1.5em;
    margin-top: 50px;
}

.register .tb .table {
    margin: 20px 0 50px;
}

.register .grey_tb input.bt {
    width: 7em;
    border: none;
    padding: 0;
    height: 47px;
}

.register .grey_tb a {
    background-image: url("../images/icon_zoom.svg") !important;
    background-position: right 20px center !important;
    background-repeat: no-repeat !important;
    background-size: 15px auto !important;
}

.register .grey_tb .td div {
    display: inline-block;
    position: relative;
}

.register .grey_tb .td div:has(.cancel):before,
.register .grey_tb .td div:has(.cancel):after {
    content: "";
    position: absolute;
    top: 50%;
    left: 90px;
    width: 2px;
    height: 15px;
    background: #FFFFFF;
    pointer-events: none;
    margin-top: -7px;
    transition: 0.2s;
}

.register .grey_tb .td div:has(.cancel):before {
    transform: rotate(45deg);
}

.register .grey_tb .td div:has(.cancel):after {
    transform: rotate(-45deg);
}

.register .grey_tb .canceled {
    background: #B3B3B3;
    border-bottom: #7B7D7C 3px solid !important;
    pointer-events: none;
}

/*REGISTER_VIEW-----------------*/
.viewmore .s2 .bm {
    justify-content: center;
}

.viewmore .s2 .bm input {
    background: #009FE8 !important;
}

/*COMMON--------------------------------------------------------------------*/

/*HEADER-----------------------------------------*/
header {
    background: url("../images/header_bn.jpg") top center no-repeat;
}

header .out {
    max-width: 1800px;
    height: 536px;
}

header .logo {
    position: absolute;
    top: 45px;
    left: 20px;
    display: block;
    width: 40%;
    max-width: 320px;
}

header .logo img {
    width: 100%;
}

/*STYLES-----------------------------------------*/

/*BACK_HOME*/
.back_home {
    position: relative;
    display: block;
    width: 150px;
    line-height: 40px;
    text-align: center;
    border: #2EA6DF 2px solid;
    border-radius: 30px;
    margin: 15px 0 15px auto;
    transition: 0.2s;
}

.back_home:hover {
    width: 170px;
}

.back_home:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 15px;
    width: 8px;
    height: 8px;
    border-style: solid;
    border-color: #2EA6DF;
    border-width: 0 0 3px 3px;
    transform: rotate(45deg);
    margin-top: -5px;
}

/*TITLE*/
.title {
    position: relative;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3em;
    background: url("../images/icon_school.png") no-repeat;
    background-size: 70px;
    padding: 20px 0 25px 85px;
    border-bottom: #C8C9C9 2px solid;
}

.title:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 230px;
    background: #009FE8;
    border-right: #FFFFFF 2px solid;
}

/*TITLE_SUB*/
.title_sub {
    font-size: 28px;
    font-weight: normal;
    margin: 2em 0 1em;
}

.title_sub:before {
    content: "\2022";
    color: #F29700;
}

/*T1*/
.t1 {
    position: relative;
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.5em;
    background: #2EA6DF;
    margin: 60px 0;
    padding: 10px 10px 10px 25px;
    border-radius: 5px;
}

.t1:before {
    content: "";
    position: absolute;
    top: 15px;
    left: 10px;
    width: 5px;
    height: 1em;
    background: #F7B52D;
}

/*GREY_TABLE*/
.grey_tb {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: #F6F7F7;
    border-collapse: collapse;
}

.grey_tb .td {
    padding: 1em;
    border: #C6C6C6 1px solid;
    text-align: center;
}

.grey_tb .tr:first-child .td {
    background: #EEEEEE;
    font-weight: 600;
}

.grey_tb .tr:first-child .td {
    border-top: none;
}

.grey_tb .td:first-child {
    border-left: none;
}

.grey_tb .td:last-child {
    border-right: none;
}

.grey_tb .tr:last-child .td {
    border-bottom: none;
}

.grey_tb .bt {
    display: inline-block;
    width: 7em;
    padding: 0.8em 0;
    color: #FFFFFF;
    text-align: center;
    font-weight: 600;
    background: #9bb320;
    border-bottom: #6e9521 3px solid !important;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
}

.grey_tb .bt:hover {
    background: #DE6105;
    border-color: #AD422E !important;
}

/*TABLE-----------------------------------------*/
.table {
    display: table;
}

.tr {
    display: table-row;
}

.td {
    display: table-cell;
}

/*PAGETOP-----------------------------------------*/
body a.pagetop {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 500;
    background: #9BB320;
    opacity: 0.8;
    position: relative;
    transition: opacity 0.2s;
}

body a.pagetop:hover {
    opacity: 1 !important;
}

body a.pagetop:after {
    content: "";
    border: solid #FFFFFF;
    border-width: 0px 3px 3px 0px;
    padding: 5px;
    display: inline-block;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: rotate(-135deg) translate(-50%, -50%);
    transform-origin: left top;
}

/*FOOTER-----------------------------------------*/
footer .out {
    max-width: 1100px;
}

/*FOOTER_TOP-----------------*/
footer .top {
    padding: 50px 0;
    background: #F6F7F7;
}

footer .top .out {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 100px;
}

footer .top img {
    width: 250px;
}

footer .top ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    line-height: 24px;
    list-style: disc;
}

footer .top li {
    line-height: 1.5;
}

footer .top span {
    font-size: 16px;
    padding-left: 8px;
    display: inline;
    font-weight: normal;
    color: #333333;
}

footer .top li::marker {
    color: #9BB320;
}

@media only screen and (max-width:1050px) and (min-width:1001px) {
    footer .top img {
        width: 160px;
    }
}

/*FOOTER_BM-----------------*/
footer .bm {
    font-size: 15px;
    padding: 1em 0;
    color: #FFFFFF;
    background: #009FE8;
}

footer .bm .out {
    display: flex;
    justify-content: space-between;
}

footer .bm a {
    color: #FFFFFF;
    transition: 0.2s;
}

footer .bm a:hover {
    opacity: 0.8;
}

/*MOBILE----------------------------------------------------------------------------*/
@media only screen and (max-width:1000px) {
    /*HOME-----------------------------------------*/

    /*HOME_S1-----------------*/
    .home .s1 .table,
    .home .s1 .tr,
    .home .s1 .grey_tb .td,
    .register .tb .table,
    .register .tb .tr,
    .register .tb .grey_tb .td {
        display: block;
        width: auto;
        border: none;
    }

    .home .s1 .tr:first-child,
    .register .tb .tr:first-child {
        display: none;
    }

    .home .s1 .grey_tb,
    .register .tb .grey_tb {
        background: #FFFFFF;
    }

    .home .s1 .tr,
    .register .tb .tr {
        border-radius: 15px;
        overflow: hidden;
        margin-bottom: 30px;
    }

    .home .s1 .grey_tb .td,
    .register .tb .grey_tb .td {
        display: grid;
        grid-template-columns: 8em 1fr;
        box-shadow: inset 0 -1px 0 #C6C6C6;
        background: #F6F7F7;
    }

    .register .tb .grey_tb .td {
        grid-template-columns: 6em 1fr;
        text-align: left;
    }

    .home .s1 .td:before,
    .register .tb .td:before {
        display: flex;
        align-items: center;
        padding: 1em;
        text-align: left;
        background: #EEEEEE;
        font-weight: 600;
        height: 100%;
        margin: -1em 1em -1em -1em;
        box-shadow: inset 0 -1px 0 #C6C6C6;
    }

    .home .s1 .grey_tb .tr .td:last-child,
    .home .s1 .grey_tb .tr .td:last-child:before,
    .register .tb .tr .td:last-child,
    .register .tb .tr .td:last-child:before {
        box-shadow: none;
    }

    .home .s1 .td:nth-child(1):before {
        content: "學期別";
    }

    .register .tb .td:nth-child(1):before {
        content: "學校";
    }

    .home .s1 .td:nth-child(2):before {
        content: "公告查詢";
    }

    .register .tb .td:nth-child(2):before {
        content: "學期別";
    }

    .home .s1 .td:nth-child(3):before {
        content: "路線查詢";
    }

    .register .tb .td:nth-child(3):before {
        content: "訂單狀態";
    }

    .home .s1 .td:nth-child(4):before {
        content: "開放報名";
    }

    .register .tb .td:nth-child(4):before {
        content: "查看明細";
    }

    .home .s1 .td:nth-child(5):before {
        content: "查詢報名資訊";
    }

    .register .tb .td:nth-child(5):before {
        content: "訂單取消";
    }

    .home .s1 .ps {
        margin: 0 0 2em;
    }

    /*HOME_S2-----------------*/
    .home .s2 .box {
        padding: 30px 30px 60px 30px;
        margin: 60px 0;
    }

    .home .s2 .box:before {
        left: 30px;
        bottom: 30px;
        height: 3px;
        width: 30%;
        max-width: 205px;
    }

    .home .s2 .box:after {
        left: 30px;
        bottom: 30px;
        right: 30px;
    }

    .home .s2 .box {
        display: block;
    }

    .home .s2 .left {
        font-size: 26px;
        margin-bottom: 1em;
    }

    .home .s2 .right ul {
        max-width: 260px;
        flex-wrap: wrap;
        margin-bottom: 0;
    }

    .home .s2 .right li {
        font-size: 20px;
        margin-bottom: 1em;
    }

    .home .s2 .right li:nth-child(2):after {
        display: none;
    }

    .home .s2 .right div {
        font-size: 20px;
    }

    .home .s2 .right div span {
        font-size: 26px;
    }

    /*REGISTER-----------------------------------------*/

    /*REGISTER_S1-----------------*/
    .register .s1 .table {
        width: 100%;
    }

    /*STEP-----------------------------------------*/
    form .table,
    form .tr,
    form .td {
        display: block;
    }

    /*STEP_TOP-----------------*/
    .step .top li,
    .step .top li:after {
        display: none;
        padding-right: 0;
    }

    .step .top li.active {
        display: block;
    }

    /*STEP_S1-----------------*/
    .step .s1 .list ul,
    .step .s2 .table {
        max-width: none;
        display: block;
    }

    .step .s1 .checks li {
        margin-bottom: 1em;
    }

    .step .s1 .c2 li {
        margin-bottom: 30px;
    }

    .step .select_box select {
        width: 100%;
    }

    .step .c2 .tr:first-child .td:last-child {
        display: none;
    }

    /*STEP_S2-----------------*/
    .register .s1 .td:first-child,
    .step .s2 .td:first-child {
        width: auto;
        text-align: left;
        padding-right: 0;
    }

    /*STEP2-----------------------------------------*/
    .step2 .c2 .td:first-child,
    .step2 .s2 .td:first-child {
        padding-bottom: 0 !important;
    }

    .step2 .s2 .bm {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    /*STEP3-----------------------------------------*/
    .step3 .s1 .text {
        padding: 50px 0 90px;
    }

    /*COMMON--------------------------------------------------------------------*/

    /*HEADER-----------------------------------------*/
    header {
        background-image: url("../images/header_bn_mb.jpg");
        background-size: auto 100%;
    }

    header .out {
        height: auto;
        aspect-ratio: 5/2;
    }

    header .logo {
        top: 12%;
    }

    /*FOOTER-----------------------------------------*/

    /*FOOTER_TOP-----------------*/
    footer .top {
        padding: 30px 0;
    }

    footer .top .out,
    footer .top ul {
        max-width: 90%;
        display: block;
        text-align: center;
    }

    footer .top ul {
        margin: 1em auto 0 auto;
        padding: 0;
        text-align: center;
        list-style-position: inside;
    }

    footer .top li {
        margin-bottom: 10px;
    }

    footer .top span {
        font-size: 16px;
        display: block;
        padding-left: 0;
        margin-top: 5px;
    }

    footer .top li:last-child {
        margin-top: 5px;
    }

    /*FOOTER_BM-----------------*/
    footer .bm .out {
        display: block;
        text-align: center;
    }

    footer .bm li:first-child {
        margin-bottom: 1em;
    }
}