/* General Reset */
body {
	margin: 0;
	font-family: "Noto Serif JP", serif;
	line-height: 1.6;
	background-color: #fff;
	color: #333;
	letter-spacing: 0.2rem;
}
.fade-item {
	opacity: 0; /* 預設不可見 */
	transform: translateY(20px); /* 初始位置：向下偏移 */
	transition: opacity 1s ease-out, transform 1s ease-out; /* 定義淡入與位移過渡效果 */
}
.fade-item.visible {
	opacity: 1; /* 淡入 */
	transform: translateY(0); /* 恢復到原位 */
}
/* Hero Section */
.hero {
	position: relative;
	text-align: center;
}
.hero-image {
	width: 100%;
	height: auto;
}
.logo img {
	width: 70px;
	position: absolute;
	top: 4%;
	left: 50%;
}
.hero-text h1 {
	position: absolute;
	top: 50%;
	left: 50.8%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 1.3rem;
	font-weight: 400;
	letter-spacing: 0.3rem;
	text-align: justify;
	line-height: 2rem;
}
/* Description Section */
.description {
	text-align: left;
	padding: 6rem 2rem;
	font-size: 1rem;
	display: block;
	margin: 0 auto;
	letter-spacing: 0.2rem;
	line-height: 2rem;
	font-weight: 500;
}
.description p{
width: 100%;
    height: 450px;
    overflow: hidden;
    word-wrap: break-word;
    box-sizing: border-box;	
}
/* Products Section */
.products {
	text-align: center;
}
.products h2 {
	margin-bottom: 1rem;
}
.product-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	padding: 0 2rem;
}
.product-item {
	position: relative;
	background-color: #000;
	overflow: hidden;
	cursor: pointer;
}
.product-image {
	width: 100%;
	height: auto;
	object-fit: contain;
}
.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.product-item:hover .overlay {
	opacity: 1;
}
.modal.fade .modal-dialog {
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
	margin-top: 0px;
}
/* Footer */
footer {
	text-align: center;
	padding: 10rem 0 2rem 0;
}
.footer-logo img {
	width: 100px;
	height: auto;
	margin-bottom: 3rem;
}
.footer-item {
	display: flex;
	align-items: center;
	flex-direction: row;
	justify-content: center;
}
.footer-item p {
	font-family: "Roboto", serif;
	letter-spacing: 0.1rem;
	font-weight: 300;
}
.footer-item-logo {
	margin: 0px 40px;
}
.footer-item img {
	width: 15px;
	height: 15px;
	margin-bottom: 1rem;
}
.banner {
	position: relative;
	text-align: center;
	padding: 20px;
}
.banner img {
	width: 100%;
	height: auto;
}
.banner .logo {
	position: absolute;
	top: 20px;
	left: 20px;
	background-color: rgba(255, 255, 255, 0.8);
	padding: 10px;
	border-radius: 5px;
}
.products {
}
.products-item {
	display: flex;
	flex-wrap: wrap;
	gap: 0px;
	justify-content: center;
}
.products-tittle h1 {
	font-weight: 500;
	letter-spacing: 0.5rem;
	margin-bottom: 60px;
}
.product {
	position: relative;
	width: 30%;
	overflow: hidden;
}
.product img {
	width: 100%;
	height: auto;
	display: block;
}
.product .overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgb(255 255 255 / 50%);
	color: #000000;
	display: flex;
	opacity: 0;
	transition: opacity 0.3s ease;
	flex-direction: column;
	align-items: flex-end;
	padding-bottom: 20%;
	cursor: pointer;
}
.product:hover .overlay {
	opacity: 1;
}
.product .overlay h3, h4 {
	margin: 0 5px;
}
.text-straight {
	-webkit-writing-mode: vertical-rl;
	writing-mode: vertical-rl
}
.modal-content {
	border: 0px solid rgba(0, 0, 0, .2);
	border-radius: 0rem;
}
.modal-body {
	display: flex;
	align-items: flex-start;
	padding: 0 0 2rem 0;
	justify-content: space-evenly;
	flex-direction: row-reverse;
}
.modal-header {
	border-bottom: 0px solid #dee2e6;
	padding: 3rem 2rem 1rem 1rem
}
.popup-container {
	display: flex;
	flex-direction: row;
	overflow: hidden;
	width: 80%;
	max-width: 1200px;
}
.popup-image {
	flex: 1;
	overflow: hidden;
	width: calc(100% / 4);
}
.popup-image img {
	height: auto;
	width: 100%;
	aspect-ratio: 8/10;
	object-fit: cover;
}
.popup-content {
	flex: 1;
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-start;
	position: relative;
}
.popup-title {
	font-weight: bold;
	margin-bottom: 10px;
	writing-mode: vertical-rl;
	text-orientation: upright;
	padding-top: 1rem;
	display: flex;
	flex-direction: row;
	align-items: center;
}
.popup-title h3 {
	margin: 0px;
	font-size: 2rem;
}
.popup-subtitle {
	font-size: 1.2rem;
	margin-bottom: 20px;
	writing-mode: vertical-rl;
	text-orientation: upright;
	padding-top: 2rem;
}
.popup-description {
	line-height: 1.6;
	text-align: justify;
	padding: 10rem 7rem 3rem 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	letter-spacing: 0.1rem;
}
.popup-logo {
	width: 45px;
	height: 45px;
}
.d-md-block {
	display: block;
}
.d-md-none {
	display: none;
}
.fixed-box {
	width: 100%;
	height: 450px;
	overflow: hidden;
	word-wrap: break-word;
	box-sizing: border-box;
}

@media (max-width: 1300px) {
.popup-image img {
	aspect-ratio: 8 / 11;
}
.popup-description {
	padding: 3rem 0.5rem;
}
}

@media (max-width: 1000px) {
.popup-image img {
	aspect-ratio: 6 / 13;
}
.popup-logo {
	width: 35px;
	height: 35px;
}
}

@media (max-width: 768px) {
.d-sm-none {
	display: none;
}
.d-sm-block {
	display: block;
}
.fixed-box {
	height: 450px;
	overflow: auto;
	word-wrap: break-word;
	box-sizing: border-box;
	line-height: 1.5rem;
	margin: 0px;
	font-size: 1rem;
}
.popup-logo {
	width: 25px;
	height: 25px;
}
.popup-container {
	flex-direction: column;
}
.popup-image {
	height: auto;
	width: calc(100% / 1);
}
.popup-image img {
	height: auto;
	width: 100%;
	aspect-ratio: 9 / 12;
	object-fit: cover;
}
.description {
	padding: 5rem 0rem;
}
.product {
	width: 50%;
}
.sm-tittle {
	padding: 20px 10px;
	text-align: left;
}
.sm-tittle h3 {
	font-size: 18px;
	margin-bottom: 5px;
}
.sm-tittle h4 {
	font-size: 14px;
}
.product .overlay {
	display: none;
}
.footer-item-logo {
	margin: 0px 15px;
}
.modal-body {
	align-items: center;
	padding: 2rem 0rem;
	justify-content: center;
}
.popup-image img {
	width: 100%;
}
.popup-content {
	flex-direction: column;
	align-items: flex-end;
}
.popup-description {
	padding: 0;
}
.popup-title {
	flex-direction: column;
	padding-top: 30px;
}
.popup-subtitle {
	font-size: 1rem;
	padding-top: 0rem;
	font-weight: 500;
}
.popup-title {
	align-items: flex-start;
}
.logo img {
	width: 60px;
	top: 3%;
	left: 44%;
}
.hero-text h1 {
	bottom: -13%;
	left: 47%;
	font-size: 1rem;
	letter-spacing: 0.2rem;
}
footer {
	padding: 5rem 0 2rem 0;
}
.modal.fade .modal-dialog {
	align-items: flex-start;
	position: relative;
	    margin: 0px;
}
}

@media (min-width: 576px) {
.modal-dialog {
	max-width: 100%;
	margin: 1.75rem auto;
}
}
