/* フォントの定義 */
/* 中華フォント使用でわざと不自然な書体にする */
@font-face {
	font-family: "NotoSansTC-Regular";
	src: url("fonts/NotoSansTC-Regular.otf");
}

section {
	background-color: white;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 5px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
}

body {
	font-family: "NotoSansTC-Regular", sans-serif;
	margin: 0;
	background-color: #f5f5f5;
}

header {
	background-color: white;
	padding: 10px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ナビゲーションのスタイル */
nav ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: flex-end;
}

nav ul li {
	margin-left: 20px;
}

nav ul li:first-child {
	margin-left: 0;
}

nav ul li a {
	text-decoration: none;
	color: #333;
	font-weight: bold;
}

nav ul li a:hover {
	color: #f44336;
}

main {
	padding: 2em;
}

/* 商品情報のスタイル */
.product {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.product img {
	max-width: 100%;
	height: auto;
	margin-bottom: 20px;
	border-radius: 5px;
}

.product-information {
	text-align: center;
	margin-bottom: 20px;
}

/* 購入ボタン */
.purchase-button {
	background-color: #f44336;
	color: #fff;
	border: none;
	padding: 10px;
	border-radius: 5px;
	cursor: pointer;
	width: 100%;
	font-weight: bold;
}

.purchase-button:hover {
	background-color: #d32f2f;
}

/* 評価 */
.rating {
	margin-bottom: 10px;
	color: #eba700;
	font-size: 2em;
}

.rating span {
	margin-right: 5px;
}

.reviews {
	margin-top: 20px;
}

/* レビュー */
.review {
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 10px;
	margin-bottom: 10px;
}

/* 割引 */
span.del {
	text-decoration-line: line-through;
	text-decoration-style: solid;
	text-decoration-color: red;
}

/* 価格 */
.price {
	font-size: 2em;
	color: red;
	font-weight: bold;
}

/* テキスト赤指定 */
.t_red {
	color: red;
}

footer {
	background-color: white;
	text-align: center;
	padding: 20px;
	box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.logo>*>img {
	height: 3em;
}

.popup {
	position: fixed;
	top: 10px;
	right: 10px;
	background-color: #f44336;
	color: #fff;
	padding: 10px;
	border-radius: 5px;
	display: none;
}

/* スマホの場合 */
@media screen and (max-width: 767px) {
	.product {
		align-items: center;
	}

	.purchase-button {
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
	}
}

/* PCの場合 */
@media screen and (min-width: 768px) {
	.product {
		flex-direction: row;
		align-items: flex-start;
	}

	.product img {
		margin-right: 20px;
		margin-bottom: 0;
	}

	.purchase-button {
		width: 100%;
	}
}


/*購入ボタン*/
/* CSSファイルに記述する場合は以下のようになります */
.buy-form {
	position: fixed;
	top: 0;
	left: 0;
	display: none;
	background-color: white;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 5px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
	width: 100%;
	height: 100%;
}

.buy-form h2 {
	margin-bottom: 20px;
	text-align: center;
}

.buy-form form {
	display: flex;
	flex-direction: column;
}

.buy-form label {
	margin-bottom: 5px;
}

.buy-form input[type="text"],
.buy-form input[type="email"] {
	margin-bottom: 10px;
	padding: 5px;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.buy-form input[type="submit"] {
	background-color: #f44336;
	color: #fff;
	border: none;
	padding: 10px;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
}

.buy-form input[type="submit"]:hover {
	background-color: #d32f2f;
}

.close-button {
	position: fixed;
	top: 0;
	right: 0;
	margin: 10px;
	font-size: 24px;
	line-height: 1;
	padding: 5px 10px;
	background: none;
	border: none;
	cursor: pointer;
}