@charset "big5";
/* CSS Document */
body { min-width: 1200px; color: #333; font: 13px/1.6em "Century Gothic", Arial, 'Microsoft JhengHei', "蘋果儷中黑", "儷黑 Pro", "新細明體", "sans-serif";}
a { display: block;  text-decoration: none; transition: .3s ease-in-out;}
:focus { outline: none;}
i { font-style: normal;}
.header, .footer {text-align: center; background: #fff;}
.display_pc {display: block}
.display_m {display: none}

/* ================================================
- 商品區塊
================================================ */
.group {position: relative; box-sizing: border-box; max-width: 1116px; width: 100%; margin: 0 auto;clear: both;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;}
.group::before {
    content: '';
    width: 1118px;
    height: 534px;
    position: absolute;
    top: 86px;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: -2;
	background: url(../images/coupon_bg.png)no-repeat center top;}

.tit_01 {position: relative;
    text-align: center;
    margin: auto;}
.tit_rule {position: absolute; top: 60px; right: 74px;}
.tit_rule a:hover {transform: scale(0.96); filter: brightness(110%);}

/** 商品 **/
.ProductList {position: relative; width: 100%;flex-shrink: 0; overflow: hidden;}
.item {position: relative; margin: 10px 20px;;}
.ProductList .item > a .ProductImg img {-webkit-transition-duration: 0.3s; transition-duration: 0.3s;}
.ProductList .item > a:hover .ProductImg img {transform: scale(0.96); filter: brightness(110%);}
p.ProductImg {filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, .7));}

/* ================================================
- 頁籤效果
================================================ */
.tab-content {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    padding: 10px 20px;
}
.tab-wrapper {
    margin: auto;
    padding: 55px 0;
    text-align: center;
    position: relative;}
.tab-wrapper > input {
    margin: 0;
    padding: 0;
    position: absolute;
    opacity: 0;}
.tab-wrapper > input + label {
    position: relative;
    z-index: 6;
    transition: all 0.3s;
    cursor: pointer;
    
    display: inline-block;
    text-align: center;
	width: 18%;
    margin: 4px 4px;
    border-radius: 0.8em;
    
    color: white;
    font-size: 2.2em; 
    line-height: 2.2em;
    font-weight: bold;
    background: #fbdda1;
    color: #272727;
    /*box-shadow: inset 0 -5px 0 #1a2c4c;*/}
.tab p span {
    font-size: 0.7em;}

.tab-wrapper > label.tab-item-01:hover, .tab-wrapper > input:checked + label.tab-item-01,
.tab-wrapper > label.tab-item-02:hover, .tab-wrapper > input:checked + label.tab-item-02,
.tab-wrapper > label.tab-item-03:hover, .tab-wrapper > input:checked + label.tab-item-03,
.tab-wrapper > label.tab-item-04:hover, .tab-wrapper > input:checked + label.tab-item-04,
.tab-wrapper > label.tab-item-05:hover, .tab-wrapper > input:checked + label.tab-item-05{
    background: #e0761f;
    color: #fff;
    box-shadow: inset 0 -5px 0 #1a2c4c;}


/*其他tab不見*/
.tab-content-wrap > .tab-content {
    opacity: 0;
    display: none;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 20px;
    visibility: hidden;
    transition: all 0.3s;
    position: absolute;}
#tab-1:checked ~ .tab-content-wrap #group_1, 
#tab-2:checked ~ .tab-content-wrap #group_2,
#tab-3:checked ~ .tab-content-wrap #group_3, 
#tab-4:checked ~ .tab-content-wrap #group_4,
#tab-5:checked ~ .tab-content-wrap #group_5 {
  position: relative; opacity: 1;
    display: flex; justify-content: center;
    visibility: visible;  
    pointer-events: auto; 
    height: auto;}

/*已搶購完畢*/
#item_1:before, #item_2:before, #item_3:before,
#item_4:before, #item_5:before, #item_6:before,
#item_7:before, #item_8:before, #item_9:before,
#item_10:before, #item_11:before, #item_12:before,
#item_13:before, #item_14:before, #item_15:before {
    position: absolute; top: 0; left: 0; right: 0; margin: auto; width: 285px; height: 328px; z-index: 99;}


/* ================================================
- 壓字
================================================ */
.mask {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    color: #fff;
    text-align: center;
    border-radius: 15px;
}

.mask p{
    font-size: 30px;
    line-height: 35px;
    font-weight: bold;
    color: #fff;
    padding: 15px 20px;
    border: 1px solid #fff;
    border-radius: 20px;
    transform:rotate(-15deg);
}

.mask.before{
    background-color: rgba(30, 30, 30, 1);
}

.mask.before p{
    font-size: 25px;
    line-height: 28px;
}

.mask.before p span{
    font-size: 50px;
    line-height: 50px;
}


/* ================================================
- 至適應
================================================ */
@media screen and (max-width: 1024px) {
body {width: 100vw; min-width: inherit;}
* {box-sizing: border-box;}	
.ProductList {min-height: auto; /*padding-bottom: 15px;*/}
.group_sale {padding-bottom: 0; overflow: hidden;}

    .group::before {
        width: 100vw;
        height: auto;
        top: 7vw;
        bottom: 0;
        right: 0;
        left: 0;
        background: #355999;
        border-top: solid 8vw #163e9c;}
	
.group_tit {width: 83vw;}
.group_tit img {width: 100%;}	
	
.tit_rule {width: 22vw; top: 6vw; right: 1vw;}
.tit_rule img {width: 100%;}
	
.tab-wrapper {width: 100%; padding: 30px 0;}
.ProductList .item, .item {
        box-sizing: border-box;
        width: 30%;
        min-width: initial;
        margin: 1.5%;}
.item img {width: 100%;}
.item > a:hover, .item > a:focus, .item > a:active {transform: translateY(0);}

#item_1:before, #item_2:before, #item_3:before,
#item_4:before, #item_5:before, #item_6:before,
#item_7:before, #item_8:before, #item_9:before,
#item_10:before, #item_11:before, #item_12:before,
#item_13:before, #item_14:before, #item_15:before {
	top: 0; left: 0; background-size: 110% !important; width: 100%; height: 100%;}
    
.mask {border-radius: 1.7vw;}
}

@media screen and (max-width: 768px) {	
.tab-content-wrap > .tab-content {padding: 5px 10px;}
.tab-wrapper > input + label {
    width: 18%;
    margin: 4px 0;
    padding: 10px 0;
    border-radius: 0.8em;
    font-size: 1.3em;
    line-height: 1em;}
    
p.ProductImg {filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, .7));}

.group_sale {padding-bottom: 0;}

.tab-wrapper {width: 100%; padding: 20px 0;}	
img.group_tit_clock {width: 17vw;}	
	
.tab-wrapper > label.tab-item-01:hover, .tab-wrapper > input:checked + label.tab-item-01,
.tab-wrapper > label.tab-item-02:hover, .tab-wrapper > input:checked + label.tab-item-02,
.tab-wrapper > label.tab-item-03:hover, .tab-wrapper > input:checked + label.tab-item-03,
.tab-wrapper > label.tab-item-04:hover, .tab-wrapper > input:checked + label.tab-item-04,
.tab-wrapper > label.tab-item-05:hover, .tab-wrapper > input:checked + label.tab-item-05{
    box-shadow: inset 0 -4px 0 #1a2c4c;}
	
}

@media screen and (max-width: 576px) {
.tab-wrapper {padding: 10px 0;}	
.tab p span {
    display: block;}
    
.mask p {
    font-size: 16px;
    line-height: 20px;
    padding: 10px 15px;
    border-radius: 10px;}
.mask.before p {
    font-size: 14px;
    line-height: 16px;
    padding: 4px 7px;}
.mask.before p span {
    font-size: 25px;
    line-height: 30px;}
}

@media screen and (max-width: 375px) {


}

@media screen and (max-width: 320px) {
.tab-wrapper > input + label {font-size: 1.2em;}

}