/* ---------    FONT Style     --------- */ 
@font-face {
	font-family: "PlayfairDisplay-Regular";
	src: url(../webfonts/Playfair_Display/PlayfairDisplay-Regular.ttf);
  }
@font-face {
	font-family: "PlayfairDisplay-Italic";
	src: url(../webfonts/Playfair_Display/PlayfairDisplay-Italic.ttf);
  }
@font-face {
	font-family: "PlayfairDisplay-Bold";
	src: url(../webfonts/Playfair_Display/PlayfairDisplay-Bold.ttf);
  }
/* ---------    END OF FONT Style     --------- */

/* ---------    BASE     --------- */ 
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f7f5ee;
}

header {
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.clearfix::after {
	content: "";
	clear: both;
	display: table;
	}
.centerbox {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 10px;
	}
.parent {
	position: relative;
	}
	
	.child {
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -50px 0 0 -50px;
	}

a {
	cursor: pointer;
    text-decoration: none;
	}

.text-center {
    text-align: center !important;
}

.logo h1, .h1-logo {
    margin: 0;
    font-size: 1.5rem;
    font-family: "PlayfairDisplay-Regular";
    font-weight: bold;
}
.logo-text {
    font-family: "PlayfairDisplay-Regular";
}


header, main, footer {
    max-width: 100%;
    margin: 0 auto;
}

/* Padding */

.p-50 {
	padding:50px;
}
.pl-50 {
	padding-left:50px;
}
.pr-50 {
	padding-right:50px;
}
.pt-50 {
	padding-top:50px;
}
.pb-50 {
	padding-bottom:50px;
}

.p-30 {
	padding:30px;
}
.pl-30 {
	padding-left:30px;
}
.pr-30 {
	padding-right:30px;
}
.pt-30 {
	padding-top:30px;
}
.pb-30 {
	padding-bottom:30px;
}

.p-10 {
	padding:10px;
}
.pl-10 {
	padding-left:10px;
}
.pr-10 {
	padding-right:10px;
}
.pt-10 {
	padding-top:10px;
}
.pb-10 {
	padding-bottom:10px;
}

/* Margin */

.m-10 {
	margin: 10px;
}
.ml-10 {
	margin-left: 10px;
}
.mr-10 {
	margin-right: 10px;
}
.mt-10 {
	margin-top: 10px;
}
.mb-10 {
	margin-bottom: 10px;
}

.m-20 {
	margin: 20px;
}
.ml-20 {
	margin-left: 20px;
}
.mr-20 {
	margin-right: 20px;
}
.mt-20 {
	margin-top: 20px;
}
.mb-20 {
	margin-bottom: 20px;
}

/* line-height */
.lh-10 {
	line-height: 10px;
}
.lh-20 {
	line-height: 20px;
}
.lh-30 {
	line-height: 30px;
}
.lh-40 {
	line-height: 40px;
}
.lh-50 {
	line-height: 50px;
}

/* font-size */
.fpx-10 {
	font-size: 10px;
}
.fpx-12 {
	font-size: 12px;
}
.fpx-16 {
	font-size: 16px;
}
.fpx-20 {
	font-size: 20px;
}
.fpx-22 {
	font-size: 22px;
}
.fpt-10 {
	font-size: 10pt;
}
.fpt-12 {
	font-size: 12pt;
}
.fpt-16 {
	font-size: 16pt;
}
.fpt-20 {
	font-size: 20pt;
}
.fpt-22 {
	font-size: 22pt;
}

.opacity100 {
    opacity: 1;
}
.opacity90 {
    opacity: .9;
}
.opacity50 {
    opacity: .5;
}
.opacity0 {
    opacity: 0;
}

/* --------- End Of BASE  --------- */

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

nav ul.menu li {
    margin-right: 20px;
}

nav ul.menu li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

nav ul.social-icons li {
    margin-left: 10px;
}

nav ul.social-icons li a img {
    width: 16px;
    height: 16px;
}

/* 通用響應式調整 */
img,
video,
canvas {
    max-width: 100%;
    height: auto;
}

table {
    width: 100%;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 漢堡選單按鈕 */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
    z-index: 1001;
}

/* 讓導覽列在窄螢幕更易讀 */
nav ul.menu {
    flex-wrap: wrap;
    gap: 10px;
}

.page-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.page-hero-txt {
    width: 42%;
}
.page-hero-txt .page-hero-wrapper {
    width: 60%;
    margin: 0 auto;
    text-align: left;
}
.page-hero-txt h1 {
    font-size: 5rem;
    font-family: "PlayfairDisplay-Bold";
    font-weight: 700;
}
.page-hero-txt h2 {
    font-size: 1.5rem;
    font-family: "PlayfairDisplay-Italic";
    font-weight: 400;
}
.page-hero-img {
    width: 52%;
}
.page-hero-img img {
    width: 100%;
}


.cta-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #555;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #ffe;
}

form {
    max-width: 500px;
    margin: 0 auto;
}

label, input {
    display: block;
    margin-bottom: 10px;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
}

#document-preview {
    margin-top: 10px;
}

.slideshow {
    position: relative;
    /*width: 100vw; /* 使用視窗寬度 */
    height: 600px;
    overflow: hidden;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

.slide-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 100;
}

.slide-control.left {
    left: 10px;
}

.slide-control.right {
    right: 10px;
}


.s1l, .s1r {
    left: 0;
    min-width: 50%;
    position: relative;
    top: 0;
    display: inline-block;
}
    .s1l-text{
        clear: both;
        width: 400px;
        margin: auto 0;
    }
        .s1l-title {
            font-family: "PlayfairDisplay-Bold";
            line-height: 1em;
            text-align: left;
            font-size: 72px;
        }
        .s1l-desc {
            font-family: "PlayfairDisplay-Italic";
            line-height: 1em;
            text-align: left;
            font-size: 16px;
            font-weight: 400;
        }

        .sabout {
			background-color: rgb(241, 235, 221);
			/*padding-top: 80px;*/
			padding-bottom: 20px;
		}
			.sabout-cover {
				clear:both;
				display: block;
			}
				.sabout-cover img{
					width: 100%;
				}
			.sabout-about {
				max-width: 60%;
				margin: 0 auto;
                padding: 20px;
			}
				.sabout-about .about-title{
					font-style: italic;
					padding-top: 30px;
					font-size: 2rem;
				}
                .sabout-about p{
					padding-top: 10px;
					padding-bottom: 10px;
					font-size: 13px;
					color:#202020;
				}
			.btncontact {
				width: 120px;
				margin: auto;
				border: 1px solid;
				padding: 10px;
				text-align: center;
				display: block;
			}
				.btntext{
					font-size: 16px;
					color:#000;
				}
			.btncontact:hover {
				background-color: #252525;
				color:#fff;
			}
			.btncontact:hover .btntext{
					font-size: 16px;
					color:#fff;
				}
.page-blog {
    clear: both;
    margin: auto;
    padding: 0;
}

.blog-list {
    clear: both;
    width: 80%;
    max-width: 700px;
    margin: 0 auto;
    color: #252525;
}
.blog-list a {
    color: #000;
    text-decoration: none;
}
.blog-list .blogs {
    width: 100%;
    margin-bottom: 50px;
    position: relative;
}
.blog-list .blogs .blog-cover,
.blog-list .blogs .blog-cover img {
    width: 100%;
    height: auto;
}
.blog-list .blogs .blog-info {
    position: absolute;
    right: 0px;
    bottom: 30px;
    width: 60%;
    padding: 10px;
    background-color: #fff;
    transition: opacity 0.5s ease-in-out;
}
.blog-list .blogs .blog-info h1 {
    font-size: 2rem;
}
.blog-list .blogs .blog-info p {
    font-size: 1rem; 
}

.page-article {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    padding: 20px;
    color: #252525;
}
.page-article .blog-cover {
    width: 100%;
    margin-bottom: 20px;
}
.page-article .blog-cover img {
    width: 100%;
    height: auto;
}
.page-article h2 {
    margin-top: 20px;
}
.page-article a {
    color: #000;
    text-decoration: none;
}
.page-article .highlight-box a.btn-2026NY {
    display: inline-block;
    margin-top: 1rem;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    background-color: #fff202;
    color: #e20c0c;;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

footer {
    display: block;
    min-height: 300px;
    box-shadow: -2px -1px 3px rgba(0, 0, 0, 0.1);
}
    .ftc {
        width: 600px;
    }
    .ficons {
        min-height: 51px;
    }
    .ficons ul {
        list-style: none;
        clear: both;
        width: 400px;
        margin: auto;
        min-height: 60px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    .ficons ul li {
        list-style: none;
        float: left;
    }
    .ficons ul li img {
        width: 51px; 
        height: 51px; 
        object-fit: cover;
    }


/* 平板 (≤ 992px) 調整 */
@media (max-width: 992px) {
    header {
        height: auto;
        padding: 1rem 2rem;
        flex-direction: row; /* 改回橫向 */
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .mobile-nav-toggle {
        display: block; /* 顯示按鈕 */
    }

    nav {
        display: none; /* 預設隱藏選單 */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #f7f5ee;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 1rem;
        z-index: 1000;
    }

    nav.nav-active {
        display: flex; /* 展開時顯示 */
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul.menu, nav ul.social-icons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    nav ul.menu li {
        margin: 10px 0;
    }

    nav ul.social-icons {
        margin-top: 20px;
        flex-direction: row; /* 社群圖示保持橫向 */
        justify-content: center;
    }
    
    nav ul.social-icons li {
        margin: 0 10px;
    }

    .logo h1 {
        font-size: 1.375rem;
    }

    .ftc {
        width: 100%;
        max-width: 640px;
        padding: 0 16px;
    }
}

/* 手機 (≤ 576px) 調整 */
@media (max-width: 576px) {
    header {
        padding: 0.75rem 1rem;
    }

    nav {
        width: 100%;
    }

    nav ul.menu {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    nav ul.menu li {
        margin-right: 0;
    }

    nav ul.menu li a {
        display: block;
        padding: 10px 12px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.6);
    }

    .cta-button {
        width: 100%;
    }

    form {
        max-width: 100%;
        padding: 0 12px;
    }

    .s1l-title {
        font-size: 36px;
    }

    .slideshow {
        height: 300px;
    }

    .slide-control {
        padding: 8px;
    }

    .ficons ul {
        width: 100%;
    }

    .page-hero-txt h1 {
        font-size: 1.5rem;
    }
    .page-hero-txt h2 {
        font-size: 0.8rem;
    }

    .blog-list .blogs .blog-info h1 {
        font-size: 1rem;
    }
    .blog-list .blogs .blog-info p {
        font-size: 0.8rem;
    }

}