@charset "utf-8";
/* CSS Document */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Noto+Serif+TC:wght@200..900&family=Roboto:wdth,wght@75..100,100..900&display=swap');

html {
    scroll-behavior: smooth !important;
}

/* CSS Reset */
html,
body,
div,
span,
applet,
object,
iframe,
form,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
em,
img,
q,
strong,
sub,
sup,
dl,
dt,
dd,
ol,
ul,
li {
    margin: 0;
    padding: 0;
}

img {
    border: 0;
    vertical-align: top;
}

ul,
ol {
    list-style: none;
}

body {
    /*line-height: 1;*/
    -webkit-text-size-adjust: none;
    background: #f2f2f2
        /*url(../images/index_bg.jpg) repeat*/
    ;
    background-color: transparent;
}

table {
    border-collapse: collapse;
}

p {
    line-height: 160%;
    /*padding: 5px 0;*/
    font-size: 1em;
}

select {
    padding: 0;
}

select,
input {
    vertical-align: middle;
}

input[type="button"],
input[type="submit"],
input[type="reset"] {
    padding: 1px 4px;
    *padding: 0 4px;
    *overflow: visible;
}

/* Remove IE7 Extra Width & Padding */
input[type="text"],
textarea {
    padding: 2px;
}

input[type="checkbox"],
input[type="radio"] {
    margin: 0 3px;
    padding: 0;
}

input[type="button"],
input[type="submit"],
input[type="reset"],
select {
    cursor: pointer;
    *cursor: hand;
}

input[type="text"]:disabled {
    background: #eee;
}

/*ios樣式清除*/
input[type="button"],
input[type="submit"],
input[type="reset"],
button {
    background-color: transparent;
    border: none;
    margin: 0px;
    border-radius: 0px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 100%);
    /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffffff', endColorstr='#00ffffff', GradientType=1);
    /* IE6-8 */
}

/*字型設定*/
body {
    font-size: 1em;
    -webkit-text-size-adjust: none;
    -webkit-overflow-scrolling: touch;
}

body,
input,
textarea,
select {
    font-family: 'Noto Sans TC', 'Roboto', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Sans TC', 'Roboto', sans-serif;
    /*line-height: 200%;
    font-weight: 500;*/
}

/* 共用 */
a {
    color: #c3935c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    /*border-bottom: 1px solid #c9caca;*/
    color: #d2b793;
}

.inner {
    max-width: 1280px;
    margin: 0 auto;
}

#Wrap {
    background-image: url(../images/bg1.png), url(../images/bg2.png), url(../images/bg3.png), url(../images/bg4.jpg);
    background-repeat: no-repeat, no-repeat, no-repeat, repeat;
    background-position: top -100px left -150px, top -150px right -50px, bottom center, top left ;
    background-size: 60% auto, 60% auto, 100% auto, auto;
}

/*----------------------------------------------------------------------*/
/* 表單 */
.FormGroup {
    border: 1px solid #e5e3e1;
    background-color: #fff;
    padding: 25px 22px;
    margin: 30px 0;
    position: relative;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

fieldset.FormGroup {
    max-width: 100%;
    box-sizing: border-box;
}

.FormGroup .FormGroupTitle {
    position: absolute;
    left: 15px;
    top: -1.125em;
}

.FormGroup .FormGroupTitle span {
    background: #ef646a;
    padding: 0 15px;
    display: inline-block;
    border: 1px solid #e5e3e1;
    color: #fff;
    font-size: 1em;
    line-height: 2em;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.FormGroup legend.FormGroupTitle {
    margin: 0;
    padding: 0;
    display: block;
}

.FormGroup > *:last-child {
    margin-bottom: 0;
}

.FormGroup fieldset {
    border: 1px solid #dfdfdf;
    margin: 0 0 30px 0;
    padding: 19px;
}

.FormGroup fieldset legend {
    padding: 0 10px;
    font-size: 0.875em;
    font-weight: bold;
}

.FormTable {
    width: 100%;
    margin-bottom: 20px;
    color: #444;
}

.FormTable > tbody > tr > th,
.FormTable > tbody > tr > td {
    font-size: 1em;
}

.FormTable > tbody > tr > th {
    font-weight: 400;
    line-height: 28px;
    position: relative;
}

.FormTable > tbody > tr > th span {
    font-weight: bold;
    color: #ec407a;
}

.FormTable > tbody > tr > td {
    line-height: 38px;
}

/* 表單內按鈕 */
.FormElmt input.check_btn {
    background: #f7931e;
    color: #fff;
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.FormElmt input.check_btn:hover {
    background: #e82d34;
}

/* 表單元件 */
.FormElmt input[type="text"],
.FormElmt input[type="password"],
.FormElmt input[type="file"],
.FormElmt input[type="number"],
.FormElmt input[type="date"],
.FormElmt input[type="month"],
.FormElmt input[type="week"],
.FormElmt input[type="time"],
.FormElmt input[type="datetime-local"],
.FormElmt input[type="email"],
.FormElmt input[type="search"],
.FormElmt input[type="tel"],
.FormElmt input[type="url"] {
    line-height: 35px;
    height: 35px;
}

.FormElmt input[type="text"],
.FormElmt input[type="password"],
.FormElmt input[type="file"],
.FormElmt input[type="number"],
.FormElmt input[type="date"],
.FormElmt input[type="month"],
.FormElmt input[type="week"],
.FormElmt input[type="time"],
.FormElmt input[type="datetime-local"],
.FormElmt input[type="email"],
.FormElmt input[type="search"],
.FormElmt input[type="tel"],
.FormElmt input[type="url"],
.FormElmt select,
.FormElmt textarea {
    margin-bottom: 6px;
    vertical-align: top;
}

.FormElmt input[type="text"],
.FormElmt input[type="password"],
.FormElmt input[type="number"],
.FormElmt input[type="date"],
.FormElmt input[type="month"],
.FormElmt input[type="week"],
.FormElmt input[type="time"],
.FormElmt input[type="datetime-local"],
.FormElmt input[type="email"],
.FormElmt input[type="search"],
.FormElmt input[type="tel"],
.FormElmt input[type="url"],
.FormElmt textarea,
.FormElmt select {
    /*border: 1px solid #ccc;*/
    font-size: 1em;
    box-sizing: border-box;
    background-color: #fff;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.FormElmt input[type="text"],
.FormElmt input[type="password"],
.FormElmt input[type="file"],
.FormElmt input[type="number"],
.FormElmt input[type="date"],
.FormElmt input[type="month"],
.FormElmt input[type="week"],
.FormElmt input[type="time"],
.FormElmt input[type="datetime-local"],
.FormElmt input[type="email"],
.FormElmt input[type="search"],
.FormElmt input[type="tel"],
.FormElmt input[type="url"] {
    padding: 0 8px;
    -webkit-box-shadow: inset 1px 1px 5px rgba(0, 0, 0, .2);
    -moz-box-shadow: inset 1px 1px 5px rgba(0, 0, 0, .2);
    box-shadow: inset 1px 1px 5px rgba(0, 0, 0, .2);
}

.FormElmt textarea {
    padding: 5px 8px;
    -webkit-box-shadow: inset 1px 1px 5px rgba(0, 0, 0, .2);
    -moz-box-shadow: inset 1px 1px 5px rgba(0, 0, 0, .2);
    box-shadow: inset 1px 1px 5px rgba(0, 0, 0, .2);
}

.FormElmt select {
    line-height: 20px;
    background-color: #fff;
    padding: 5px 5px 4px;
    height: 35px;
    -webkit-box-shadow: inset 1px 1px 5px rgba(0, 0, 0, .2);
    -moz-box-shadow: inset 1px 1px 5px rgba(0, 0, 0, .2);
    box-shadow: inset 1px 1px 5px rgba(0, 0, 0, .2);
}

.FormElmt input[type="text"]:focus,
.FormElmt input[type="password"]:focus,
.FormElmt input[type="file"]:focus,
.FormElmt input[type="number"]:focus,
.FormElmt input[type="date"]:focus,
.FormElmt input[type="month"]:focus,
.FormElmt input[type="week"]:focus,
.FormElmt input[type="time"]:focus,
.FormElmt input[type="datetime-local"]:focus,
.FormElmt input[type="email"]:focus,
.FormElmt input[type="search"]:focus,
.FormElmt input[type="tel"]:focus,
.FormElmt input[type="url"]:focus,
.FormElmt textarea:focus,
.FormElmt select:focus {
    outline: 0;
    border: 1px solid #ef646a;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.FormElmt hr {
    margin: 25px 0;
}

.FormElmt input.addr {
    margin-top: 8px;
    display: block;
}

.FormElmt .gender {
    display: inline-block;
}

.FormElmt .gender input[type="radio"] {
    margin-left: 25px;
}

.FormElmt .w40 {
    width: 40px;
}

.FormElmt .w60 {
    width: 60px;
}

.FormElmt .w80 {
    width: 80px;
}

.FormElmt .w100 {
    width: 100px;
}

.FormElmt .w200 {
    width: 100%;
    max-width: 200px;
}

.FormElmt .w260 {
    width: 100%;
    max-width: 260px;
}

.FormElmt .w300 {
    width: 100%;
    max-width: 300px;
}

.FormElmt .w400 {
    width: 100%;
    max-width: 400px;
}

.FormElmt .w500 {
    width: 100%;
    max-width: 500px;
}

.FormElmt .fullwidth {
    width: 100%;
}

.FormElmt .dev-calendar {
    width: 100%;
    max-width: 150px;
}

.FormElmt .note {
    color: #e60000;
    line-height: 160%;
    font-size: 92.85%;
}

.FormElmt .desc {
    font-size: 0.875em;
    line-height: 160%;
    vertical-align: middle;
}

.input_group > span {
    display: inline-block;
    white-space: nowrap;
    margin-right: 8px;
}

.input_group .fullwidth {
    margin-right: 0;
}

.input_table {
    overflow: hidden;
    border-top: 1px solid #e0d9cf;
    border-left: 1px solid #e0d9cf;
}

.input_table li {
    float: left;
    padding: 10px;
    border-bottom: 1px solid #e0d9cf;
    border-right: 1px solid #e0d9cf;
    box-sizing: border-box;
    font-size: 87.5%;
    color: #707070;
    line-height: 150%;
}

.input_table li a {
    display: block;
    color: #707070;
    text-decoration: none;
}

.input_table li a span {
    margin: 0 5px;
    color: #ff4c11;
}

.input_table li a:hover {
    color: #ff4c11;
}

/* 驗證碼 */
.FormElmt .randomcode::after {
    content: '';
    display: block;
    clear: both;
}

.FormElmt .randomcode > div {
    float: left;
    margin-right: 8px;
}

.FormElmt .randomcode .input input[type="text"] {
    width: 100px !important;
}

.FormElmt .randomcode .img img {
    height: 30px;
    margin-top: 2px;
}

.FormElmt .randomcode div.btn {
    padding: 0;
    border: 0;
}

.FormElmt .randomcode div.btn input {
    background: url("../images/icon_randomcode.png") no-repeat;
    border: 0;
    margin: 2px 0 0 0;
    padding: 0 10px 0 20px;
    font-size: 0.9375em;
    height: 30px;
    line-height: 30px;
    color: #777;
    text-decoration: none;
}

.FormElmt .randomcode div.btn input:hover {
    color: #000;
}

.FormElmt .randomcode div.btn input.refresh {
    background-position: 5px 0;
}

.FormElmt .randomcode div.btn input.refresh:hover {
    background-position: 5px -30px;
}

/* 按鈕 */
.BtnCommon {
    clear: both;
    text-align: center;
}

.BtnCommon.tl {
    text-align: left;
}

.BtnCommon.tr {
    text-align: right;
}

.BtnCommon span,
.BtnCommon a,
.BtnCommon input {
    display: block;
    color: #DBD1C1;
}

.BtnCommon.large a,
.BtnCommon.large input {
    height: 45px;
    line-height: 45px;
}

.BtnCommon.mid a,
.BtnCommon.mid input {
    height: 40px;
    line-height: 40px;
}

.BtnCommon.small a,
.BtnCommon.small input {
    height: 35px;
    line-height: 35px;
}

.BtnCommon span:hover,
.BtnCommon a:hover,
.BtnCommon input:hover {
    display: block;
    color: #fdfcf9;
}

.BtnCommon div {
    display: inline-block;
    margin-left: 5px;
}

.BtnCommon div:first-child {
    margin-left: 0;
}

.BtnCommon span {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    color: #fff;
    background-color: #333434;
    /*font-weight: bold;*/
    box-sizing: border-box;
    border: 0;
    margin: 0 0 0 5px;
    padding: 0 10px;
    height: 32px;
    line-height: 32px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.BtnCommon div[class] span:before {
    display: block;
    position: absolute;
    top: 50%;
    left: 15px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    content: '';
    background: url("../images/icon_btn_common.png") no-repeat;
}

.BtnCommon span:after {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: '';
}

.BtnCommon a,
.BtnCommon input {
    color: #fdfcf9;
    font-weight: 400;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.BtnCommon.large a,
.BtnCommon.large input {
    padding-left: 40px;
    padding-right: 40px;
    font-size: 1.125em;
}

.BtnCommon.mid a,
.BtnCommon.mid input {
    padding-left: 35px;
    padding-right: 35px;
    font-size: 1.125em;
}

.BtnCommon.small a,
.BtnCommon.small input {
    padding-left: 25px;
    padding-right: 25px;
    font-size: 1em;
}

.BtnCommon.large div[class] a,
.BtnCommon.large div[class] input {
    padding-left: 45px;
}

.BtnCommon.mid div[class] a,
.BtnCommon.mid div[class] input {
    padding-left: 40px;
}

.BtnCommon.small div[class] a,
.BtnCommon.small div[class] input {
    padding-left: 25px;
}

.BtnCommon span a {
    text-decoration: none;
}

.BtnCommon span input {
    border: 0;
    background-color: transparent;
    margin: 0;
}

.BtnCommon div.submit span:before {
    background-position: 0 -60px;
}

.BtnCommon div.reset span:before {
    background-position: 0 -80px;
}

.BtnCommon.mid div[class] span:before {
    left: 15px;
}

.BtnCommon div:hover span {
    background-color: #767779;
}

.BtnCommon.btn_form {
    margin-top: 15px;
    margin-bottom: 15px;
}

.BtnCommon.btn_form div {
    margin: 10px;
}

.BtnCommon div.reset span {
    background-color: #fdfcf9;
}

.BtnCommon div.reset:hover span {
    background-color: #fdfcf9;
}

/* 條款 */
.member_terms_wrap {
    color: #444;
}

.member_terms_wrap h3 {
    font-size: 125%;
    font-weight: normal;
    padding-top: 10px;
}

.member_terms {
    height: 210px;
    padding: 15px;
    margin-top: 25px;
    margin-bottom: 15px;
    border: 1px solid #dfdfdf;
    background-color: #fff;
    overflow-y: scroll;
}

.member_terms > *:first-child {
    padding-top: 0;
    margin-top: 0;
}

.member_terms > *:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

.member_terms h4 {
    padding-top: 10px;
    font-size: 107.14%;
}

.member_terms p,
.member_terms ol {
    padding: 5px 0 10px;
    line-height: 180%;
}

.member_terms p + ol {
    margin-top: -10px;
}

.member_terms .level1 {}

.member_terms .level2 {
    margin-left: 59px;
}

.member_terms .li_level1 {
    margin-left: 32px;
    text-indent: -32px;
}

.member_terms .li_level2 {
    margin-left: 46px;
    list-style-type: decimal;
}

.member_terms_agree {
    overflow: hidden;
}

.member_terms_agree div {
    float: left;
    width: 33.33%;
}

.member_terms_agree div span {
    font-weight: bold;
    color: #e00000;
}

.terms_agree {
    font-size: 18px;
}

.member_terms_wrap.lecturelew {
    margin-bottom: 15px;
}

.member_terms_wrap.lecturelew .member_terms {
    margin-top: 10px;
}


/*----------------------------------------------------------------------*/
/* datepicker共通設定 */
.ui-datepicker {
    background-color: #fff;
    padding: 15px 8px 7px 8px;
    margin-top: 5px;
    position: relative;
    display: none;
    -webkit-box-shadow: 0 0 5px #b2b2b2;
    -moz-box-shadow: 0 0 5px #b2b2b2;
    box-shadow: 0 0 5px #b2b2b2;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    display: block;
    position: absolute;
    top: 25px;
    width: 12px;
    height: 12px;
    background: url("../images/icon_datepicker.png") no-repeat;
    text-indent: -10000px;
    cursor: pointer;
}

.ui-datepicker-prev {
    left: 12px;
    background-position: 0 0;
}

.ui-datepicker-next {
    right: 12px;
    background-position: 0 -12px;
}

.ui-datepicker-prev:hover {
    background-position: -12px 0;
}

.ui-datepicker-next:hover {
    background-position: -12px -12px;
}

.ui-datepicker-title {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    line-height: 30px;
}

.ui-datepicker-title select {
    height: 30px;
    padding: 4px 0 5px;
    border: 1px solid #ddd;
}

.ui-datepicker-title select.ui-datepicker-year {
    margin-right: 6px;
}

.ui-datepicker-title select.ui-datepicker-month {
    margin-left: 6px;
}

.ui-datepicker-calendar {
    margin-top: 5px;
}

.ui-datepicker-calendar th,
.ui-datepicker-calendar td {
    width: 27px;
    padding: 0;
    /*font-family: 'Noto Sans TC', '微軟正黑體', sans-serif;*/
    text-align: center;
}

.ui-datepicker-calendar th {
    font-size: 14px;
    font-weight: bold;
}

.ui-datepicker-calendar td {
    font-size: 12px;
}

.ui-datepicker-calendar th span,
.ui-datepicker-calendar td span,
.ui-datepicker-calendar td a {
    display: block;
    padding: 5px 0 5px;
}

.ui-datepicker-calendar td a {
    text-decoration: none;
    color: #333;
}

.ui-datepicker-unselectable {
    color: #cfcfcf;
}

.ui-datepicker-today {
    background-color: #e60012;
}

.ui-datepicker-calendar td.ui-datepicker-today a {
    color: #fff !important;
}

.ui-datepicker-unselectable.ui-datepicker-today {
    background-color: #f0f0f0;
}

.ui-datepicker-calendar td a.ui-state-default:hover {
    color: #e60012
}

.ui-datepicker-current-day a {
    border: 1px solid #21293c;
}

/*----------------------------------------------------------------------*/
/*tinyscrollbar*/
.tableWrap {
    /*    width:251px;
    margin:0 0 10px;*/
}

.tableWrap .viewport {
    /*    width:236px;
    height:125px;*/
    overflow: hidden;
    position: relative;
    margin: 0;
}

.tableWrap .overview {
    list-style: none;
    /*    width:1416px;*/
    padding: 0;
    margin: 0;
    /*    position:absolute;*/
    left: 0;
    top: 0;
    margin: 0;
}

/*.tableWrap .overview img
{
    float:left;
}*/

.tableWrap .scrollbar {
    /*background:transparent url(../images/bg-scrollbar-track-x.png) no-repeat 0 0;*/
    position: relative;
    margin: 0 0 5px;
    clear: both;
    height: 4px;
}

.tableWrap .track {
    /*background:transparent url(../images/bg-scrollbar-trackend-x.png) no-repeat 100% 0;*/
    background-color: #dbdbdb;
    width: 100%;
    height: 4px;
    position: relative;
    margin: 0;
}

.tableWrap .thumb {
    /*background:transparent url(../images/bg-scrollbar-thumb-x.png) no-repeat 100% 50%;*/
    background-color: #656565;
    height: 8px;
    cursor: pointer;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: -2px;
    margin: 0;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.tableWrap .thumb .end {
    /*background:transparent url(../images/bg-scrollbar-thumb-x.png) no-repeat 0 50%;*/
    overflow: hidden;
    height: 8px;
    width: 5px;
    margin: 0;
}

.tableWrap .disable {
    display: none;
}

.noSelect {
    user-select: none;
    -o-user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
}

/*----------------------------------------------------------------------*/
/* modal_box */
.modal_box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    display: none;
    -webkit-animation: fadeIn .3s;
    animation: fadeIn .3s;
}

.modal_box.open {
    opacity: 1;
    visibility: visible;
    display: block;
}

.modal_box .modal_wrap {
    background-color: #fff;
    position: relative;
    box-sizing: border-box;
    max-height: calc(100vh - 80px);
    left: 50%;
    top: 50%;
    padding: 20px;
    border-radius: 4px;
    -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.modal_box .modal_wrap > div {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

.modal_box .modal_wrap > div::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
}

.modal_box .modal_wrap > div::-webkit-scrollbar-thumb {
    border-radius: 8px;
    border: 3px solid #fff;
    background-color: rgba(0, 0, 0, .3);
}

.modal_box .modal_wrap > div::-webkit-scrollbar-thumb:hover {
    background-color: #000;
}

.modal_box .close {
    position: absolute;
    cursor: pointer;
    z-index: 10000;
    text-align: center;
    top: -35px;
    right: -14px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal_box .close::before {
    content: '';
    width: 30px;
    height: 30px;
    background: url(../images/icon_close.svg) center;
    display: block;
    filter: invert(41%) sepia(2%) saturate(98%) hue-rotate(314deg) brightness(92%) contrast(86%);
}

.modal_box .close:hover {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%);
}

@media screen and (max-width: 639px) {
    .modal_box .modal_wrap {
        width: 90vw;
        height: 90vh;
        margin: -45vh 0 0 -45vw;
    }
}

@media screen and (min-width: 640px) and (max-width: 1280px) {
    .modal_box .modal_wrap {
        width: 80vw;
        height: 80vh;
        margin: -40vh 0 0 -40vw;
    }
}

@media screen and (min-width: 1280px) {
    .modal_box .modal_wrap {
        padding: 30px;
    }

    .modal_box .close::before {
        font-size: 30px;
    }

    .modal_wrap {
        width: 960px;
        height: 80vh;
        margin: -40vh 0 0 -480px;
        -webkit-transition: all 0.4s ease;
        -moz-transition: all 0.4s ease;
        transition: all 0.4s ease;
    }

    .modal_box.large .modal_wrap {
        width: 86vw;
        height: 80vh;
        margin: -40vh 0 0 -43vw;
    }

    .modal_box.small .modal_wrap {
        width: 680px;
        height: 340px;
        margin: -170px 0 0 -340px;
    }
}

#boardBox.modal_box {
    display: flex;
    justify-content: center;
    align-items: center;
}

#boardBox.modal_box .modal_wrap {
    padding: 0;
    -webkit-box-flex: 0;
    flex: 0 1 auto;
    position: relative;
    width: 80%;
    max-width: 438px;
    max-height: 100%;
    left: auto;
    top: auto;
    height: auto;
    margin: auto;
    background-color: transparent;
    box-shadow: none;
}

.modal_img img {
    max-width: 100%;
    max-height: 100%;
}

/* 16:9 的iframe */
.media_wrap {
    padding-bottom: 56.25%;
    position: relative;
}

.media_wrap iframe,
.media_wrap object,
.media_wrap embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
}

#iframeBox.modal_box {
    display: flex;
    justify-content: center;
    align-items: center;
}

#iframeBox.modal_box .modal_wrap {
    padding: 12px;
    -webkit-box-flex: 0;
    flex: 0 1 auto;
    position: relative;
    width: auto;
    max-width: 600px;
    max-height: 100%;
    left: auto;
    top: auto;
    height: auto;
    margin: auto;
}

#iframeBox .modal_iframe {
    max-width: 100%;
}

@media screen and (max-width: 959px) {
    #iframeBox.modal_box .modal_wrap {
        max-width: 80%;
    }
}

/*----------------------------------------------------------------------*/
/*
    ColorBox Core Style:
    The following CSS is consistent between example themes and should not be altered.
*/
#colorbox,
#cboxOverlay,
#cboxWrapper {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
}

#cboxOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
}

#cboxMiddleLeft,
#cboxBottomLeft {
    clear: left;
}

#cboxContent {
    position: relative;
    font-size: 13px;
}

#cboxLoadedContent {
    overflow: auto;
    padding: 50px 20px;
}

#cboxTitle {
    margin: 0;
}

#cboxLoadingOverlay,
#cboxLoadingGraphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#cboxPrevious,
#cboxNext,
#cboxClose,
#cboxSlideshow {
    cursor: pointer;
}

.cboxPhoto {
    float: left;
    margin: auto;
    border: 0;
    display: block;
    max-width: none;
}

.cboxIframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

#colorbox,
#cboxContent,
#cboxLoadedContent {
    box-sizing: content-box;
}

#colorbox_thum:after {
    content: "";
    display: block;
    clear: both;
}

#colorbox_thum {
    /*padding-top: 10px;
    margin-top: -130px;
    margin-bottom: 30px;*/
    overflow: hidden;
    margin: -95px auto 0;
    text-align: center;
    /*padding: 0 0 100px 0;*/
}

#colorbox_thum a {
    display: inline-block;
    /*float: left;*/
    width: calc(33.333% - 10px);
    margin: 10px 5px;
    text-align: center;
    vertical-align: middle;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    transition: all 0.5s ease;
    /*margin: 0 8px 16px;*/
    filter: grayscale(80%);
}

#colorbox_thum a:hover {
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    transition: all 0.5s ease;
    /*transform: scale(1.02);*/
    border-radius: 50%;
    filter: grayscale(10%);
}

#colorbox_thum a span {
    display: block;
    padding-bottom: 100%;
}

/*#colorbox_thum { overflow:hidden; padding-top:10px; margin-top:0; margin-bottom:30px; }
#colorbox_thum a { 
	display:block; float:left;
	text-align:center; vertical-align:middle; 
	border:2px solid #e7e7e7; padding:8px;
	-webkit-transition: border 0.5s ease, box-shadow 0.5s ease;
	-moz-transition: border 0.5s ease, box-shadow 0.5s ease;
	-o-transition: border 0.5s ease, box-shadow 0.5s ease;
	transition: border 0.5s ease, box-shadow 0.5s ease;
	}
#colorbox_thum a:hover { 
	border:2px solid #e60012; 
	-moz-box-shadow: 0 0 8px rgba(0,0,0,0.3);
	-webkit-box-shadow: 0 0 8px rgba(0,0,0,0.3);
	box-shadow: 0 0 8px rgba(0,0,0,0.3);
	}
#colorbox_thum a *{ vertical-align:middle; }
#colorbox_thum a span { display:inline-block; height:100%; }
#colorbox_thum a img { max-width:100%; max-height:100%; }*/

/* 
    User Style:
    Change the following styles to modify the appearance of ColorBox.  They are
    ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#cboxOverlay {
    background: #3d3b3e;
}

#colorbox {}

#cboxContent {
    margin: 20px auto;
}

.cboxIframe {
    background: #3d3b3e;
}

#cboxError {
    padding: 50px;
    border: 1px solid #ccc;
}

#cboxLoadedContent {
    /*border: 5px solid #000;
    background: #3d3b3e;*/
}

#cboxTitle {
    position: absolute;
    bottom: 20px;
    /**bottom: 20px;*/
    left: 20px;
    color: #fff;
    /*line-height: 18px;*/
}

#cboxCurrent {
    position: absolute;
    top: -20px;
    right: 0px;
    color: #ccc;
    display: none;
    visibility: hidden;
}

#cboxSlideshow {
    position: absolute;
    top: -20px;
    right: 90px;
    color: #fff;
}

#cboxPrevious {
    position: absolute;
    top: 50%;
    left: 5px;
    /*margin-top: -32px;*/
    background: url("../images/left_bg.png") no-repeat 50% 50%;
    width: 50px;
    height: 50px;
    text-indent: -9999px;
}

#cboxPrevious:hover {
    /*background-position: bottom left;*/
    opacity: 0.5;
}

#cboxNext {
    position: absolute;
    top: 50%;
    right: 5px;
    /*margin-top: -32px;*/
    background: url("../images/right_bg.png") no-repeat 50% 50%;
    width: 50px;
    height: 50px;
    text-indent: -9999px;
}

#cboxNext:hover {
    /*background-position: bottom right;*/
    opacity: 0.5;
}

#cboxLoadingOverlay {
    background: #3d3b3e;
}

#cboxLoadingGraphic {
    background: url("../images/colorbox_loading.gif") no-repeat center center;
}

#cboxClose {
    position: absolute;
    top: 4px;
    right: 4px;
    display: block;
    background: url("../images/close_bg.png") no-repeat 50% 50%;
    width: 50px;
    height: 50px;
    text-indent: -9999px;
}

#cboxClose:hover {
    /*background-position: bottom center;*/
    opacity: 0.5;
}

/*----------------------------------------------------------------------*/
/*測試用menu*/
.ifun_text_menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10006;
}

.ifun_text_menu ul {
    box-sizing: content-box;
}

.ifun_text_menu a {
    display: block;
    text-decoration: none;
}

.ifun_text_menu li:hover > a {
    color: red;
}

.ifun_text_menu > ul > li > a {
    text-indent: -10000px;
    width: 20px;
    height: 20px;
}

.ifun_text_menu > ul ul {
    display: none;
    position: absolute;
    width: 150px;
    border: 1px solid #ccc;
}

.ifun_text_menu ul ul ul ul {
    width: 200px;
}

.ifun_text_menu > ul ul::before {
    content: '';
    display: block;
    position: absolute;
    top: 12px;
    left: -12px;
    width: 5px;
    height: 5px;
    border-left: 1px solid #999;
    border-top: 1px solid #999;
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    transform: rotate(135deg);
}

.ifun_text_menu li:hover > ul::before {
    border-color: red;
}

.ifun_text_menu > ul > li > ul {
    top: 20px;
    left: 0;
}

.ifun_text_menu > ul > li > ul ul {
    top: -1px;
    left: 150px;
}

.ifun_text_menu > ul li:hover > ul {
    display: block;
}

.ifun_text_menu > ul ul li {
    background-color: rgba(255, 255, 255, 0.85);
    position: relative;
}

.ifun_text_menu > ul ul a {
    padding: 6px 10px;
    line-height: 125%;
    font-size: 14px;
    color: #333;
}
