/* 対訳リーダー - Stylesheet */

/* ===== Reset & Base Styles ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	background-color: #f5f5f7;
}

/* ===== Container ===== */
.container {
	max-width: 800px;
	width: 100%;
	margin: 0 auto;
	padding: 20px;
	background-color: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
	.container {
		padding: 16px;
		box-shadow: none;
	}
}

/* ===== Header ===== */
.app-header {
	text-align: center;
	padding: 60px 20px 40px;
	border-bottom: 1px solid #e5e5e7;
	margin-bottom: 40px;
}

.text-ios-app {
	font-size: 14px;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 12px;
}

.app-title {
	font-size: 36px;
	font-weight: 700;
	color: #1d1d1f;
	margin-bottom: 8px;
}

.app-subtitle {
	font-size: 18px;
	color: #666;
	font-weight: 300;
}

@media (max-width: 768px) {
	.app-header {
		padding: 40px 16px 30px;
	}

	.app-title {
		font-size: 28px;
	}

	.app-subtitle {
		font-size: 16px;
	}
}

/* ===== App Store Banner ===== */
.store-banner {
	display: block;
	width: 180px;
	margin: 30px auto;
	transition: opacity 0.3s ease;
}

.store-banner:hover {
	opacity: 0.8;
}

/* ===== Table of Contents ===== */
.table-of-contents {
	background-color: #f9f9f9;
	border: 1px solid #e5e5e7;
	border-radius: 12px;
	padding: 24px 30px;
	margin-bottom: 40px;
}

.table-of-contents h2 {
	font-size: 20px;
	font-weight: 600;
	color: #1d1d1f;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid #007aff;
	background: none;
}

.table-of-contents ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.table-of-contents li {
	margin-bottom: 10px;
}

.table-of-contents a {
	display: block;
	padding: 8px 12px;
	color: #007aff;
	text-decoration: none;
	border-radius: 6px;
	transition: background-color 0.3s ease, color 0.3s ease;
	font-size: 16px;
}

.table-of-contents a:hover {
	background-color: #007aff;
	color: #ffffff;
	text-decoration: none;
}

@media (max-width: 768px) {
	.table-of-contents {
		padding: 20px;
		border-radius: 8px;
	}

	.table-of-contents h2 {
		font-size: 18px;
	}

	.table-of-contents a {
		font-size: 15px;
		padding: 6px 10px;
	}
}

/* ===== Sections ===== */
section {
	margin-bottom: 50px;
	scroll-margin-top: 20px; /* アンカーリンクのスクロール位置調整 */
}

h1 {
	font-size: 36px;
	font-weight: 700;
	color: #1d1d1f;
	margin-bottom: 16px;
}

h2 {
	font-size: 28px;
	font-weight: 600;
	color: #1d1d1f;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 3px solid #007aff;
	background: linear-gradient(transparent 85%, rgba(0, 122, 255, 0.15) 0%);
}

h3 {
	font-size: 20px;
	font-weight: 600;
	color: #1d1d1f;
	margin-top: 30px;
	margin-bottom: 12px;
	padding-bottom: 6px;
	border-bottom: 2px solid #34c759;
	background: linear-gradient(transparent 88%, rgba(52, 199, 89, 0.15) 0%);
}

@media (max-width: 768px) {
	h1 {
		font-size: 28px;
	}

	h2 {
		font-size: 24px;
	}

	h3 {
		font-size: 18px;
	}
}

/* ===== Body Text ===== */
.body {
	font-size: 16px;
	line-height: 1.8;
	color: #333;
	margin-bottom: 16px;
}

.body ul {
	margin-left: 20px;
	margin-top: 12px;
	margin-bottom: 12px;
}

.body li {
	margin-bottom: 8px;
	line-height: 1.6;
}

@media (max-width: 768px) {
	.body {
		font-size: 15px;
	}
}

/* ===== Terms Section ===== */
.terms-section,
.privacy-section {
	background-color: #fafafa;
	padding: 30px;
	border-radius: 12px;
	margin-top: 20px;
}

.terms-section .body,
.privacy-section .body {
	font-size: 15px;
	color: #555;
}

@media (max-width: 768px) {
	.terms-section,
	.privacy-section {
		padding: 20px;
		border-radius: 8px;
	}
}

/* ===== Effective Date ===== */
.effective-date {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #e5e5e7;
	text-align: right;
	font-size: 14px;
	color: #888;
}

/* ===== Developer Info ===== */
.developer-info {
	text-align: center;
	padding: 20px;
	background-color: #fafafa;
	border-radius: 12px;
}

.developer-info p {
	font-size: 18px;
	font-weight: 500;
	color: #1d1d1f;
	margin-bottom: 12px;
}

.developer-links {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.social-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background-color: #007aff;
	color: #ffffff;
	text-decoration: none;
	border-radius: 20px;
	font-size: 14px;
	transition: background-color 0.3s ease;
}

.social-link:hover {
	background-color: #0051d5;
}

/* ===== Links ===== */
a {
	color: #007aff;
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: #0051d5;
	text-decoration: underline;
}

/* ===== Footer ===== */
footer {
	margin-top: 60px;
	padding-top: 30px;
	border-top: 1px solid #e5e5e7;
	text-align: center;
}

.copyright {
	font-size: 14px;
	color: #888;
}

/* ===== Utility Classes ===== */
.text-center {
	text-align: center;
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

/* ===== Print Styles ===== */
@media print {
	body {
		background-color: #ffffff;
	}

	.container {
		box-shadow: none;
		max-width: 100%;
	}

	.store-banner,
	.developer-links {
		display: none;
	}
}
