body, button, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, input, select, textarea {
    font-family: "Helvetica Neue", Helvetica, Arial, "微軟正黑體", "微软雅黑", "メイリオ", "맑은 고딕", sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

body {
    line-height: 1.5;
    font-size: 1rem;
    color: #212121;
    background: #c70b16 url(../images/bg-all.gif) repeat;
}

ul {
    padding-inline-start: 0;
}

li {
    list-style: none;
}

a, a:link, a:visited, a:hover, a:active {
    text-decoration: none;
}

.content-fluid {
    /* container-fluid */
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.contentbox {
    /* container */
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.contentbox_main {
    position: relative;
    padding: 50px 10px;
    text-align: center;
}

@media screen and (min-width: 576px) {
    .contentbox {
        max-width: 540px;
    }
}

@media screen and (min-width: 768px) {
    .contentbox {
        max-width: 720px;
    }
    .contentbox_main {
        padding-right: 0;
        padding-left: 0;
    }
}

@media screen and (min-width: 992px) {
    .contentbox {
        max-width: 960px;
    }
}

@media screen and (min-width: 1200px) {
    .contentbox {
        max-width: 1140px;
    }
}

.rowline {
    /* row */
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

/*-------------------- 共用樣式 --------------------*/

:root {
    --txt-y: #fffc8a;
    --deep-red: #85070e;
    --transition-com: all 0.3s ease;
}

/*-- 標題字級 --*/

h1, h3 {
    font-weight: 600;
}

h1 {
    --w-number: 507px;
    --h-ratio: calc(var(--w-number) * 183 / 507);
    display: inline-block;
    background: url(../images/title-bg.png) no-repeat;
    background-size: contain;
    width: var(--w-number);
    height: var(--h-ratio);
    line-height: var(--h-ratio);
    color: #ffffff;
    padding-top: 1rem;
    white-space: nowrap;
}

h1>i {
    font-size: 2.5rem;
    margin-right: 12px;
}

h1>b {
    font-size: 1.75rem;
    border-bottom: 3px solid #f0c15e;
}

h3 {
    color: var(--txt-y);
    line-height: 1.5;
}

@media screen and (max-width: 991px) {
    h1 {
        --w-number: 450px;
        padding-top: 0.8rem;
    }
    h1, h1>i {
        font-size: 2.25rem;
        margin-right: 10px;
    }
    h1>b {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    h4 {
        font-size: 1.375rem;
    }
}

@media screen and (max-width: 767px) {
    h1 {
        --w-number: 350px;
        padding-top: 0.6rem;
    }
    h1, h1>i {
        font-size: 1.625rem;
    }
    h1>b {
        font-size: 1.125rem;
        border-bottom-width: 2px;
    }
    h3 {
        font-size: 1.25rem;
    }
    h4 {
        font-size: 1rem;
    }
    h5 {
        font-size: 1rem;
    }
}

/*-- 按鈕 --*/

.btn-warning {
    border-color: #ffe092;
    background: #ffdd78;
    background: -moz-linear-gradient(top, #ffdd78 15%, #e8ae35 81%, #e8ae35 81%);
    background: -webkit-linear-gradient(top, #ffdd78 15%, #e8ae35 81%, #e8ae35 81%);
    background: linear-gradient(to bottom, #ffdd78 15%, #e8ae35 81%, #e8ae35 81%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffdd78', endColorstr='#e8ae35', GradientType=0);
    transition: var(--transition-com);
}

.btn-warning, .btn-danger {
    position: relative;
    font-weight: 600;
}

.btn-warning::before, .btn-warning::after, .btn-danger::before, .btn-danger::after {
    content: '';
    position: absolute;
    width: 52px;
    height: 0;
    padding-bottom: 20%;
    background: url(../images/icon-btn.png) no-repeat center/contain;
    transition: var(--transition-com);
}

.soldout .btn-warning::before, .soldout .btn-warning::after {
    display: none;
}

.btn-warning::before, .btn-danger::before {
    top: 50%;
    left: 10px;
    transform: translate(-50%, -50%);
}

.btn-warning::after, .btn-danger::after {
    top: 50%;
    right: 10px;
    transform: translate(50%, -50%);
}

.btn-warning:hover {
    box-shadow: 0 0 10px var(--txt-y);
    /* background: #f0c23a; 
        background: -moz-linear-gradient(top,  #f0c23a 15%, #d69100 78%); 
        background: -webkit-linear-gradient(top,  #f0c23a 15%,#d69100 78%); 
        background: linear-gradient(to bottom,  #f0c23a 15%,#d69100 78%); 
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f0c23a', endColorstr='#d69100',GradientType=0 ); */
}

.btn-warning:hover::before, .btn-danger:hover::before {
    transform: translate(-20%, -50%);
}

.btn-warning:hover::after, .btn-danger:hover::after {
    transform: translate(20%, -50%);
}

p {
    text-align: center;
}

.btn-lg {
    padding: 1rem 4rem;
}

@media screen and (min-width: 992px) {
    .btn-lg {
        font-size: 1.5rem;
    }
}

@media screen and (max-width:767px) {
    .btn-lg {
        padding: 0.8rem 2.2rem;
        font-size: 1.125rem;
    }
}

/*-------------------- 金牛賀喜_新春獻禮 #opening --------------------*/

#opening>.contentbox_main {
    padding-top: 2rem;
}

#opening .contentbox_main {
    background: url(../images/sec1-bg-l.png) no-repeat left bottom/40%, url(../images/sec1-bg-r.png) no-repeat right bottom/40%;
}

@media screen and (max-width:992px) {
    #opening .contentbox_main {
        background-size: 46%;
    }
}

@media screen and (max-width:767px) {
    #opening .contentbox_main {
        background: url(../images/sec1-bg-ma.png) no-repeat center bottom/90%;
    }
}

.app_area {
    border-radius: 20px;
    padding: 3rem 0.5rem 0;
    border: 4px solid #f0c15e;
    margin-top: -4rem;
    background: none;
}

.calendar {
    background: url(../images/icon-cloud.png) no-repeat 85% 30px/18%, url(../images/icon-cloud.png) no-repeat 20px 50%/15%, url(../images/icon-cloud.png) no-repeat 95% bottom/25%, url(../images/icon-ray.png) no-repeat center/70%;
}

.calendar img[src*='ez_calendar'] {
    width: 85%;
    height: auto;
    margin: 0 auto;
    transform: rotate(-6deg);
}

.app_area>h4, .app_area>p, #ny_note h4 {
    color: var(--txt-y);
}

.app_area>p strong {
    font-size: 1.5rem;
}

.app_area>h4::before, #ny_note h4::before {
    content: url(../images/icon-title2.png);
    margin-right: 10px;
}

.app_area>h4::after, #ny_note h4::after {
    content: url(../images/icon-title2.png);
    margin-left: 10px;
}

@media screen and (max-width:767px) {
    .app_area>h4::before, #ny_note h4::before, .app_area>h4::after, #ny_note h4::after {
        display: none;
    }
}

.app_area>.rowline>.col-12 {
    margin-bottom: 1.2rem;
}

.app-gift {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 8px;
    z-index: 1;
}

.app-gift::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    border-radius: 10px;
    transform: translate(-50%, -50%);
    background: #ffffff;
}

.app-gift::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    border-radius: 10px;
    transform: translate(-50%, -50%) rotate(5deg);
}

.gift-1 .app-gift::before {
    background: #de2626;
}

.gift-2 .app-gift::before {
    background: #fa5c00;
}

.app-gift>img {
    width: 100%;
    margin-bottom: 1rem;
}

.app-gift>p {
    margin-bottom: 0.5rem;
}

/*-- 雙紅包 --*/

.gift-level {
    background: url(../images/icon-cloud.png) no-repeat 85% 30px/18%, url(../images/icon-cloud.png) no-repeat 20px 50%/15%, url(../images/icon-cloud.png) no-repeat right bottom/25%, url(../images/icon-cloud.png) no-repeat center 40%/18%;
}

.gift-level>div {
    position: relative;
    height: 0;
    padding-bottom: 45%;
}

@media screen and (max-width:991px) {
    .gift-level>div {
        padding-bottom: 55%;
    }
}

@media screen and (max-width:767px) {
    .gift-level>div {
        padding-bottom: 90%;
    }
}

.gift-level>div:nth-of-type(1) {
    background: url(../images/envelope-1.png)no-repeat center bottom/contain, url(../images/icon-ray.png) no-repeat center/80%;
}

.gift-level>div:nth-of-type(2) {
    background: url(../images/envelope-2.png)no-repeat center bottom/contain, url(../images/icon-ray.png) no-repeat center/80%;
}

.gift-level .gift-txt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -10%);
    color: var(--txt-y);
    font-size: 1.5rem;
    line-height: 1.2;
    text-shadow: 1px 2px 4px var(--deep-red);
}

.gift-txt p {
    margin-bottom: 0.5rem;
}

.gift-txt>p {
    font-weight: 600;
}

.gift-txt>p>b {
    font-size: 2.6rem;
}

.gift-txt>i {
    color: #ffffff;
    display: inline-block;
    background: var(--deep-red);
    border-radius: 100px;
    padding: 10px 12px;
    text-align: center;
    font-style: normal;
}

@media screen and (max-width:991px) {
    .gift-level .gift-txt {
        font-size: 1.25rem;
    }
    .gift-txt>p>b {
        font-size: 2rem;
    }
    .gift-txt>i {
        padding: 6px 8px;
    }
}

@media screen and (max-width:767px) {
    .gift-level .gift-txt {
        font-size: 1rem;
    }
    .gift-txt>p>b {
        font-size: 1.7rem;
    }
}

/*-------------------- 孝親補助 #elder_promo --------------------*/

#elder_promo .calendar {
    text-align: center;
    background: url(../images/icon-ray.png) no-repeat center/49%;
}

#elder_promo .calendar img[src*='_bn1200'] {
    display: block;
    max-width: 85%;
    margin: 1.5rem auto;
}

#elder_promo .calendar img[src*='_mbn900'] {
    display: none;
}

#elder_promo .btn-sec {
    display: flex;
    justify-content: space-around;
}

@media screen and (max-width:575px) {
    #elder_promo .calendar img[src*='_bn1200'] {
        display: none;
    }
    #elder_promo .calendar img[src*='_mbn900'] {
        display: block;
        max-width:95%;
        margin: 0 auto;
    }
    #elder_promo .btn-sec {
        display:block;}
        #elder_promo .btn-sec>.btn:nth-of-type(1){margin-bottom: 1rem;}
}
/*-------------------- 銀行刷卡禮 #ny_bank --------------------*/

#ny_bank {
    background: url(../images/bg-sec2.gif) repeat;
}

#ny_bank>.contentbox>h1, #ny_bank>.contentbox>h4 {
    margin-bottom: 1rem;
}

#ny_bank>.contentbox>h1 {
    background: url(../images/title-bg-bright.png) no-repeat;
    background-size: contain;
}

#ny_bank h4::before {
    content: url(../images/icon-title1.png);
    margin-right: 10px;
}

#ny_bank h4::after {
    content: url(../images/icon-title1.png);
    margin-left: 10px;
}

#ny_bank>.contentbox>.rowline:nth-of-type(2)>div {
    margin-bottom: 1.5rem;
}

@media screen and (max-width:991px) {
    #ny_bank>.contentbox>.rowline>div {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media screen and (max-width:767px) {
    #ny_bank h4::before, #ny_bank h4::after {
        display: none;
    }
}

.prize_pic {
    background: url(../images/gift_pic.jpg) no-repeat center/cover;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.prize_txt {
    background: #ffffff;
    padding: 1.5rem 1.5rem 1.5rem 2.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

@media screen and (min-width:768px) {
    .prize_txt {
        padding: 2rem 1.5rem 2rem 2.5rem;
        min-height: 260px;
    }
}

@media screen and (min-width:1200px) {
    .prize_txt {
        padding: 2rem 1.5rem 2rem 2.5rem;
        min-height: 320px;
    }
}

.prize_txt h2 {
    margin-bottom: 1rem;
}

.prize_txt h2>img {
    max-width: 60%;
}

.prize_txt h4 {
    display: inline-block;
    padding: 0 10px 3px 0;
    border-bottom: 2px solid var(--sec-color);
}

@media screen and (max-width:991px) {
    .prize_txt {
        padding: 1rem 1rem 1rem 1.5rem;
    }
    .prize_txt h4 {
        font-size: 1.375rem;
    }
}

@media screen and (max-width:767px) {
    .prize_pic {
        height: 0;
        padding-bottom: 60%;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
    .prize_txt {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
}

.bank-box {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: #fff7e1;
    box-shadow: 0 0 0 2px #f98700;
}

.bank-box>p {
    display: flex;
    width: 100%;
    height: 95px;
    background: #ffffff;
    border-bottom: 1px solid #ffbf3d;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.bank-box>p>img {
    width: 100%;
    height: auto;
    margin: auto;
}

.bank-box>ul {
    display: block;
    padding: 0 1rem;
}

.bank-box>ul li, .prize_txt li {
    text-indent: -20px;
    margin-inline-start: 20px;
    line-height: 1.4;
    margin-bottom: 5px;
    text-align: left;
}

.bank-box>ul li::before, .prize_txt>ul li::before {
    font-family: 'Font Awesome 5 Free';
    content: '\f005';
    font-weight: 600;
    font-size: 0.875rem;
    color: #e62c0f;
    margin-right: 5px;
}

.btn-sec {
    padding: 2rem 0;
    margin-bottom: 0;
    text-align: center;
}

/*-------------------- 注意事項 #ny_note --------------------*/

#ny_note ul {
    padding-inline-start: 24px;
    margin-bottom: 5px;
}

#ny_note li {
    text-align: left;
    color: #ffffff;
}

#ny_note .contentbox>ul {
    width: 90%;
    margin: 0 auto;
    padding-inline-start: 0;
}

.note_list {
    background: url(../images/note_icon.png) no-repeat left 2px;
    padding-left: 24px;
    margin-bottom: 5px;
}

.note_list_content {
    background: url(../images/note_icon01.png) no-repeat left 6px;
    padding-left: 20px;
}

.note_content_item {
    background: url(../images/note_icon02.png) no-repeat left 7px;
    padding-left: 15px;
    font-size: 0.9375rem;
    margin-bottom: 2px;
}

#btn_app {
    position: fixed;
    right: 5px;
    bottom: calc(60px + 95px + 5px);
    z-index: 999;
}

#btn_top {
    position: fixed;
    right: 5px;
    z-index: 999;
}

@media screen and (max-width:767px) {
    #ny_note .contentbox>ul {
        width: 95%;
    }
    #btn_top, #btn_app {
        right: 0;
    }
}

/*-------------------- 20210107新增BLOG #ny_blog --------------------*/

#ny_blog .app_area{
    border: none;
    padding-left: 0;
    padding-right: 0;
}

#ny_blog .rowline>div{padding: 0 10px 10px;}
@media screen and (max-width:991px) {
    #ny_blog .rowline>div{padding:0 5px 10px;}
}