@charset "UTF-8";
*,body{
    font-family:"WenQuanYi Zen Hei", "PingFang","Microsoft JhengHei","Microsoft YaHei",Arial,sans-serif;
}
body {
    overflow-x: hidden;
    overflow-y: scroll;
    width: 100%;
    /* min-width: 1200px; */
    height: 100%; 
    background: #ffffff; 
}
body.indexbody{
    background: #cdc9c6;
}
/* main{
    height: calc( 100vh - 45px);
    position: relative;
    z-index: 1;
} */
.mainbg{
    background: url(../../images/main/mainbg.png) 0 0 repeat-y;
    background-size: 100% auto;

    min-height: calc( 100vh - 45px);
    padding-top: 60px;
}
.container {
    position: relative;
    max-width: 480px;
    padding: 0;
}
.container-fluid {
    padding-left: 0px;
    padding-right: 0px;
}
article{
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
}

select {
    width: 170px;
    height: 35px;
    color: #959595;
    font-size: 12px;
    padding: 0 10px;
    border: #dfdfdf 1px solid;
}


/* 去除 Firefox 和 Google Chrome 上的虛線 */

input[type="email"],
input[type="button"],
input[type="submit"],
input[type="text"],
textarea,
button {
    -webkit-appearance: none;
}
textarea {
  resize : none;
}
a,
button {
    outline: none!important;
    outline: medium none!important;
    text-decoration: none!important;
    -moz-transition: all 0.4s ease-in;
    -o-transition: all 0.4s ease-in;
    -webkit-transition: all 0.4s ease-in;
    transition: all 0.4s ease-in;
}


/* Remove controls from Firefox */

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


/* Re-applies the controls on :hover and :focus */

input[type="number"]:hover,
input[type="number"]:focus {
    -moz-appearance: number-input;
}

input[type='number'] {
    -moz-appearance: textfield;
}

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

*:focus {
    outline: none;
}

textarea:focus {
    outline: none;
}

.pull-right {
    float: right!important;
}

.pull-left {
    float: left!important;
}


/* 使格線系統無間距 Class Rules */

.row.no-gutters {
    margin-right: 0;
    margin-left: 0;
}

.row.no-gutters > [class^="col-"],
.row.no-gutters > [class*=" col-"] {
    padding-right: 0;
    padding-left: 0;
}


/* 特殊格線 */

.col-xs-1-5,
.col-sm-1-5,
.col-md-1-5,
.col-lg-1-5 {
    position: relative;
    min-height: 1px;
    padding-right: 10px;
    padding-left: 10px;
}

.col-xs-1-5 {
    width: 20%;
    float: left;
}

@media (min-width: 768px) {
    .col-sm-1-5 {
        width: 20%;
        float: left;
    }
}

@media (min-width: 992px) {
    .col-md-1-5 {
        width: 20%;
        float: left;
    }
}

@media (min-width: 1200px) {
    .col-lg-1-5 {
        width: 20%;
        float: left;
    }
}


/* 滿12格線位移 */

[class*="col-"] {}

@media (min-width: 768px) and (max-width: 979px) {
    .row.reorder-sm {
        -webkit-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        -o-transform: rotate(180deg);
        transform: rotate(180deg);
        direction: rtl;
    }
    .row.reorder-sm > [class*="col-"] {
        -webkit-transform: rotate(-180deg);
        -moz-transform: rotate(-180deg);
        -ms-transform: rotate(-180deg);
        -o-transform: rotate(-180deg);
        transform: rotate(-180deg);
        direction: ltr;
    }
}

@media (min-width: 1px) and (max-width: 767px) {
    .row.reorder-xs {
        -webkit-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        -o-transform: rotate(180deg);
        transform: rotate(180deg);
        direction: rtl;
    }
    .row.reorder-xs > [class*="col-"] {
        -webkit-transform: rotate(-180deg);
        -moz-transform: rotate(-180deg);
        -ms-transform: rotate(-180deg);
        -o-transform: rotate(-180deg);
        transform: rotate(-180deg);
        direction: ltr;
    }
}


/* apple ipad/iphone樣式去除 */

input[type="button"],
input[type="submit"],
input[type="reset"],
select {
    -webkit-appearance: none;
}

textarea {
    -webkit-appearance: none;
}



/* 每頁上方標題 */
.title-group{
    padding-top: 25px;
    padding-bottom: 30px;
    text-align: center;
}
.title{
    position: relative;
    font-size: calc( 50 / 320 * 100vw);
    color: #992c2c;
    line-height: 100%;
    letter-spacing: -4px;
    text-align: center;
    padding: 0 15px 7px 15px;
    text-shadow:0px 5px 0px #c9c7c7;
    display: inline-block;
    width: auto;
}
.title:before{
    position: absolute;
    content: " ";
    z-index: 2;
    width: 100%;
    height: 100%;
    background: url(../../images/main/titlebg.png) 0 0 no-repeat;
    background-size: contain;
}
.title-small{
    display: block;
    font-size: calc( 13 / 320 * 100vw);
    color: #992c2c;
    line-height: 120%;
    text-align: center;
    text-shadow: 5px 0px 5px #c9c7c7;
}
.title-line{
    display: block;
    width: 1px;
    height: calc( 25 / 320 * 100vw);     
    margin: 10px auto 0 auto;
    z-index: 2;
}
.title-line span{
    display: block;
    width: 100%;
    height: 100%;
    background: #7d0000;
    -webkit-animation-name: titleline;
}
@-webkit-keyframes titleline {
    0%    { height: 0; }
    100%  { height: 100%;  }
}

.title-border {
    display: inline-block;
    position: relative;
    width: calc( 135 / 320 * 100vw);
    height: calc( 35 / 320 * 100vw);    
    text-align: center;
    margin-top: -5px;
}
.title-border-xl {
    width: calc( 166 / 320 * 100vw);
    letter-spacing: 2.5px;
}
.title-border:before{
    position: absolute;
    content: " ";
    width: 0;
    height: 0;
    right: 0;
    top: 0;
    border-bottom: calc( 35 / 320 * 100vw) solid rgba(210,210,210,0.5);
	border-left: calc( 135 / 320 * 100vw) solid transparent;
    z-index: -1;
     -webkit-animation-duration: 1s;
    -webkit-animation-iteration-count:1;
    -webkit-animation-timing-function: ease-in-out;
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-name: titleBorder;
    -webkit-animation-delay: 1.7s;
    opacity: 0;
}
@-webkit-keyframes titleBorder {
    0%    { opacity: 0; }
    100%  { opacity: 1; }
}
.l0,.l1,.l2,.l3 {
    position: absolute;
    background: transparent;
    width: 0px;
    height: 0px;
    -webkit-animation-duration: .1s;
    -webkit-animation-iteration-count:1;
    -webkit-animation-timing-function: ease-in-out;
    -webkit-animation-fill-mode: forwards;
}
.l0 {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1px;
    -webkit-animation-name: l4;
    -webkit-animation-delay: 1.2s;
}
.l1 {
    left: 0;
    bottom: 0;
    height: 100%;
    width: 1px;
    -webkit-animation-name: l1;
    -webkit-animation-delay: 1.3s;
}
.l2 {
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    -webkit-animation-name: l2;
    -webkit-animation-delay: 1.4s;
}
.l3 {
    right: 0;
    top: 0;
    height: 100%;
    width: 1px;
    -webkit-animation-name: l3;
    -webkit-animation-delay: 1.5s;
}
@-webkit-keyframes l1 {
    0%    { height: 0; background: #a96b6a; }
    100%  { height: 100%; background: #a96b6a; }
}

@-webkit-keyframes l2 {
    0%    { width: 0; background: #a96b6a; }
    100%  { width: 100%; background: #a96b6a; }
}

@-webkit-keyframes l3 {
    0%    { height: 0; background: #a96b6a; }
    100%  { height: 100%; background: #a96b6a; }
}

@-webkit-keyframes l4 {
    0%    { width: 0; background: #a96b6a; }
    100%  { width: 100%; background: #a96b6a; }
}

@-webkit-keyframes l4 {
    0%    { width: 0; background: #922b29; }
    100%  { width: 100%; background: #922b29; }
}
.title-pagename{
    font-size: calc( 12 / 320 * 100vw);
    font-weight: bold;
    color: #992c2c;
    line-height: 100%;
    display: inline-block;
    padding-top: calc( 11 / 320 * 100vw);
}
@media screen and (min-width: 480px) {
    .title{
        font-size: 75px;
    }
    .title-small{
        font-size: 19px;
    }
    .title-line{
        height: 37px;
    }
    .title-border {
        width: 260px;
        height: 51px;  
    }
    .title-border-xl {
        width: 250px;
    }
    .title-border:before{
        border-bottom: 51px solid rgba(210,210,210,0.5);
        border-left: 198px solid transparent;
    }
    .title-pagename{
        font-size: 18px;
        padding-top: 18px;
    }
}


