/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul, a {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* 限制內容最大寬度 */
.container {
    max-width: 1200px;
    margin: 0 auto; /* 置中 */
    padding: 0 20px; /* 兩側保留間距 */
}


@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;500;900&display=swap');

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1, a, p {
    font-family: 'Noto Sans TC', sans-serif;
}

ul{
    list-style: none;
}

a{
	text-decoration:none;
}

a:hover{
	text-decoration:none;
}

.logo {
	margin-top: 20px;
	text-align: center;
}

.logo a{
	font-size: 28px;
	font-weight: bold;
	color: #004d73;
}

nav{
	margin-bottom: 15px;
}

.nav-item .nav-link{
    text-decoration:none;	
	color: #000;
	font-size: 16px;
}

.nav-link:focus, .nav-link:hover {
    color: #99cc00;
}

.content{
	background-color: #F4F4DB;
}

.title{
	text-align: center;
    font-size: 26px;
    color: #004d73;
    font-weight: bold;
    margin-bottom: 30px;
    padding-top: 50px;
    letter-spacing: 10px;
}

.about-pic img{
	width: 100%;
}

.about-content img{
	margin-right: 0px;

}

.about-text{
	display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 1px;
    line-height: 30px;
    font-size: 20px;
}

.service-content .title-s{
	margin-bottom:10px;
}

.service-content img{
	margin-bottom:10px;
}

.service-content .service-text{
	margin-bottom:10px;
} 

.service-content .title-s{
	color:#004d73;
	font-weight: bold;
	font-size: 18px;
	text-align: center;
}

.service-content .row img{
	width: 100%;
}

.service-content .service-text{
	color:#333;
	font-size: 16px;
	text-align: center;
}

.service-content .col-12{
	margin-top: 20px;
}

.about-content p a{
	color: #000;
}

.contact-text p{
	padding-top: 10px;
}

footer{
	position: fixed;
	margin-top: 40px;
	background-color: #004d73;
	padding: 5px;
	bottom: 0;
	left: 0;
	width: 100%;
}

footer p{
	color: #fff;
	text-align: center;
	font-size: 10px;
}


 /* --- 頂部導覽列 --- */
 .header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 20px;
	background: white;
}

/* LOGO 樣式 */
.logo img {
	height: 100px;
	transition: transform 0.3s ease;
}

/* 桌面版選單 */
.nav {
	display: flex;
	gap: 20px;
	margin-top: 30px;
}

/* 選單項目 */
.nav a, .mobile-menu a {
	text-decoration: none;
	color: #333;
	font-size: 16px;
	padding: 10px 15px;
	transition: background 0.3s, color 0.3s, transform 0.1s;
	border-radius: 5px;
}

/* 滑過與點擊效果 */
.nav a:hover, .mobile-menu a:hover {
	background: #007bff;
	color: white;
}

.nav a:active, .mobile-menu a:active {
	background: #0056b3;
	color: white;
	transform: scale(0.95);
}

/* --- 漢堡選單（手機版） --- */
.menu-toggle {
	display: none; /* 預設隱藏 */
	font-size: 24px;
	background: none;
	border: none;
	cursor: pointer;
}

/* 漢堡選單選單 */
.mobile-menu {
	display: none; /* 預設隱藏 */
	flex-direction: column;
    position: absolute;
    top: 85px;
    right: 40px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
    width: 200px;
    z-index: 1;
}

/* 顯示手機選單 */
.mobile-menu.active {
	display: flex;
}

/* --- Banner 樣式（滿版） --- */
.banner {
	width: 100vw;
	background: url('banner.jpg') no-repeat center center/cover;
}

/* 響應式設計：小於 768px 顯示漢堡選單 */
@media (max-width: 768px) {
	.nav {
		display: none; /* 隱藏桌面版選單 */
	}
	
	.menu-toggle {
		display: block; /* 顯示漢堡選單按鈕 */
	}
}

/* 產品介紹 */
table {
	width: 100%;
	border-collapse: collapse;
}
th, td {
	border: 1px solid #ddd;
	padding: 8px;
	text-align: center;
}
th {
	background-color: #6B8E23;
	color: white;
}
.category {
	background-color: #8FBC8F;
	color: white;
	font-weight: bold;
}


/* RWD 設計 */
@media screen and (max-width: 768px) {
	table, thead, tbody, th, td, tr {
		display: block;
	}
	thead tr {
		display: none;
	}
	tr {
		margin-bottom: 10px;
		border: 1px solid #ddd;
		padding: 10px;
	}
	td {
		text-align: left;
		padding-left: 50%;
		position: relative;
	}
	td::before {
		content: attr(data-label);
		position: absolute;
		left: 10px;
		font-weight: bold;
	}
}