@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@300;400;500;600;700&display=swap');
@import url("https://pro.fontawesome.com/releases/v5.10.0/css/all.css");

*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 1px;
    /* border: 1px solid #000; */
}
.wrapper{
    background-image: url("../images/bg.jpg");
    background-size: center;
    background-repeat: repeat-y;
}
.container{
    max-width: 1200px;
    margin: 0 auto;
}
.img-fluid{
    max-width: 100%;
    height: auto;
}

/* $header */
.header{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
    display: flex;
    justify-content: flex-start;
    background-image: url("../images/bg.png");
    background-position: bottom;
    background-repeat: no-repeat;
}
@media (max-width: 991px){
	.navbar--collapse{
		margin-right: -16px;
		margin-left: -16px;
	}
}
.navbar__nav{
	float: right;
}
.nav__menu{
	float: left;
}
.nav__menu li{
	float: left;
}
.nav__menu .menu__item{
	display: block;
	padding: 24px;
	color: #000;
	font-size: 1.25rem;
	transition: all 0.3s;    
}
.nav__menu .menu__item:hover{
	color: #231815;
}
.nav__icon-group{
	padding: 16px;
    display: flex;
    justify-content: center;
}
.nav__icon-group .icon-btn{
	margin-right: 16px;
}
.nav__icon-group a{
    color: #000;
    font-size: 1.5rem;
    padding: 0 8px;
    font-weight: 700;
}
.nav__icon-group .icon-btn:last-child{
	margin: 0;
}

/* menu-toggle */
.menu-toggle{
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	display: inline-block;
	padding: 12px;
    margin: 16px;
}
@media (min-width: 992px){
	.menu-toggle{
		display: none;
	}
}
.menu-toggle span{
	display: block;
	width: 100%;
	height: 3px;
	background-color: #72291B;
	margin-bottom: 8px;
}
/* popup-nav */
@media (max-width: 991px){
	.popup-nav{
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-image: url("../images/bg_top.jpg");
        background-position: center 0;
		opacity: 0;
		visibility: hidden;
		transition: all 0.3s;
	}
	#overlay:target{
		opacity: 1;
		visibility: visible;
	}
	.popup-nav .nav__menu{
		float: none;
		padding-top: 56px;
	}
	.popup-nav .nav__menu li{
		float: none;
        color: #000;
	}
	.popup-nav .menu__item{
		text-align: center;
		padding: 24px;
        font-size: 1.5rem;
	}
	.popup-nav .nav__icon-group{
		float: none;
		text-align: center;
		padding: 16px;
	}
    .nav__icon-group a{
        color: #72291B;
        font-size: 1.5rem;
        padding: 0 16px;
        font-weight: 700;
    }
	/* popup-close */
	.popup-close{
		position: absolute;
		top: 0;
		right: 0;
		width: 56px;
		height: 56px;
		display: inline-block;
		padding: 12px;
		padding-top: 16px;
	}
	.popup-close span{
		height: 3px;
		width: 32px;
		background-color: #72291B;
		position: absolute;
		top: 50%;
	}
	.popup-close span:nth-child(1){
		transform: translateY(-50%) rotate(45deg);
	}
	.popup-close span:nth-child(2){
		transform: translateY(-50%) rotate(-45deg);
	}
}
.icon{
	display: inline-block;
	vertical-align: middle;
	font-size: 1.5rem;
}
.icon-btn{
	display: inline-block;
	vertical-align: top;
	transition: all 0.3s;
}
.icon-btn:hover{
	transform: translateY(-20%);
}
@media (max-width: 991px){
    .icon{
        font-size: 2rem;
    }
}

/* $main */
.main{
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.title{
    margin: 0 auto;
    padding-top: 96px;
    padding-bottom: 64px;
    display: flex;
    justify-content: center;
    background-image: 
    url("../images/mo.png"),
    url("../images/mo.png");
    background-repeat: no-repeat;
    background-position: 
    20% 10%,
    90% 100%;
}
.title p{
    color: #7E7164;
    margin: 0 32px;
}
.title img{
    width: 30%;
}
@media screen and (min-width:576px) and (max-width: 991px) {
    .title img{
        width: 40%;
    }
}
@media screen and (max-width: 575px) {
    .title{
        padding-top: 16px 0;
        background-position: 
        -100% 5%,
        180% 110%;
    }
    .title p{
        margin: 0 16px;
    }
    .title img{
        width: 50%;
    }
}

/* $banner */
.banner{
    position: relative;
    padding-top: 90px;
    overflow: hidden;
    width: 100%;
    height: calc(100vh - 90px);
    margin-bottom: 90px;
    background-image: url("../images/bg_top.png");
    background-position: bottom left;
    background-repeat: no-repeat;
}
.banner .logo{
    position: absolute;
    margin-top: -5%;
    padding-left: 8%;
    width: 55%;
}
.banner .banner_pic{
    position: absolute;
    right: 0%;
    width: 70%;
    bottom: -20%;
    animation: pic 3s ease alternate forwards;
}
.banner .time_group{
    position: absolute;
    padding-left: 8%;
    width: 35%;
    bottom: 0;
}
.banner .time_group p{
    font-size: 5.25rem;
    padding-left: 24px;
}
.banner .time_group span{
    font-size: 2.5rem;
    padding-left: 8px;
    font-weight: 700;
}
@keyframes pic {
    0%{
        opacity: 0;
        right: -5%;
    }
    100%{
        opacity: 100;
        right: 0%;
    }
}
@media screen and (min-width: 1920px) {
    .banner .banner_pic{
        bottom: -30%;
    }
}
@media screen and (min-width: 576px) and (max-width: 991px) {
    .banner{
        background-position: bottom center;
    }
    .banner .logo{
        margin-top: -10%;
        padding-left: 5%;
        width: 75%;
    }
    .banner .banner_pic{    
        top: 35%;
        width: 100%;
    }
    .banner .time_group{
        padding-left: 5%;
        width: 43%;
        bottom: 46%;
    }
    .banner .time_group p{
        font-size: 4.5rem;
        padding-left: 12px;
    }
}
@media screen and (max-width: 575px){
    .banner{
        background-position: bottom center;
        padding-top: 90px;
        height: 100vh;
    }
    .banner .logo{
        margin-top: -10%;
        padding-left: 5%;
        width: 95%;
    }
    .banner .banner_pic{
        right: -2%;        
        top: 50%;
        width: 120%;
    }
    .banner .time_group{
        padding-left: 7%;
        width: 60%;
        bottom: 50%;
    }
    .banner .time_group p{
        font-size: 4rem;
        padding-left: 8px;
    }
    .banner .time_group span{
        font-size: 1.5rem;
        padding-left: 8px;
        font-weight: 700;
    }
}
/* $story */
.story_p{
    font-size: 1.75rem;
    text-align: justify;
    color: #72291B;
    max-width: 70%;
    margin: 0 auto;
    line-height: 2;
    padding: 80px 0;
    font-weight: 600;
}
@media screen and (min-width: 576px) and (max-width: 991px) {
    .story_p{
        font-size: 1.5rem;
        max-width: 80%;
        padding: 40px 0;
    }
}
@media screen and (max-width: 575px) {
    .story_p{
        font-size: 1.25rem;
        max-width: 80%;
        padding: 24px 0;
    }  
}

/* $people */
.all_people .people{
    display: flex;
    justify-content: center;
    align-items: center;
}
.all_people .flex_reverse{
    display: flex;
    flex-direction: row-reverse;    
}
.all_people .people .item_text{
    width: 50%;
    padding: 0 32px;
}  
.all_people .people .item_text h3{
    color: #231815;
    font-size: 2.75rem;
    margin-bottom: 8px;
} 
.all_people .people .item_text h3 .name{
    color: #231815;
    font-size: 2rem;
    display: inline;
    font-weight: 700;
}  
.all_people .people .item_text h3 span{
    background-color: #C6A263;
    color: #fff;
    border-radius: 50%;
    font-size: 1.75rem;
    padding: 4px;
    text-align: center;
    margin: 0 8px;
    display: inline-block;
    width: 40px;
    height: 40px;
} 
.all_people .people .item_text p{
    color: #72291B;
    font-size: 1.275rem;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 2px;
}
.all_people .people .item_pic{
    width: 50%;
}
@media screen and (min-width: 576px) and (max-width: 991px) {
    .all_people .people .item_text h3{
        font-size: 2.25rem;
    } 
    .all_people .people .item_text h3 .name{
        font-size: 1.5rem;
    }  
    .all_people .people .item_text h3 span{
        font-size: 1.25rem;
        width: 32px;
        height: 32px;
    } 
}    
@media screen and (max-width: 575px) {
    .all_people .people{
        flex-direction: column;
        padding: 24px 0;
    }
    .all_people .people .item_text{
        width: 80%;
    } 
    .all_people .people .item_pic{
        width: 80%;
    }   
    .all_people .people .item_text h3{
        font-size: 2rem;
    } 
    .all_people .people .item_text h3 .name{
        font-size: 1.5rem;
        font-weight: 700;
    }  
    .all_people .people .item_text h3 span{
        font-size: 1.5rem;
        width: 36px;
        height: 36px;
    } 
    .all_people .people .item_text p{
        color: #72291B;
        font-size: 1.125rem;
        line-height: 1.7;text-align: justify;
    }
}

/* $photo */
.photos{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.photos a{
    margin: 16px;
}
.photos a img{
    border-radius: 3%;
    box-shadow: 0px 0px 10px 5px rgba(35, 24, 21,0.2);
    transition: 0.5s; 
}
.photos a:hover img{
    transform: scale(1.05);
}

/* $footer */
footer p{
    text-align: center;
    padding: 16px;
    font-size: 1.125rem;
    border-top: 1px solid #231815;
}
@media screen and (max-width: 575px) {
    footer p{
        font-size: 1rem;
    }
}

/* $back-to-top */
.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 5%;
    width: 60px;
    height: 60px;
    padding: 20px 15px 15px 20px;
    border: transparent;
    text-align: center;
    background-image: url("../images/ink.svg");
    background-repeat: no-repeat;
    background-size: 105%;
    background-position: 0 -7%;
    transition: 0.5s;
    color: #fff;
}
.back-to-top:active {
    transform: scale(0.9);
}

@media screen and (max-width: 575px) {
    .back-to-top {
        right: 0px;
        padding: 12px 16px 10px 10px;
        background-size: 90%;
        background-position: 0 0;
        font-size: 0.9rem;
    }
}