/**
 * AI最適化ページ用スタイル
 * Google AI概要に拾われやすい構造化ページのデザイン
 */

/* ========================================
   ページヘッダー（画像背景）
   ======================================== */
.ai-seo-pageHeader {
	position: relative;
	width: 100%;
	min-height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #f5f5f5;
	margin-bottom: 60px;
}

.ai-seo-pageHeader__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.15);
	z-index: 1;
}

.ai-seo-pageHeader__inner {
	position: relative;
	z-index: 2;
	padding: 40px 20px;
	text-align: center;
	max-width: 1200px;
	margin: 0 auto;
}

.ai-seo-pageHeader__title {
	color: #fff;
	font-size: 36px;
	font-weight: bold;
	line-height: 1.5;
	margin: 0;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
	.ai-seo-pageHeader {
		min-height: 250px;
		margin-bottom: 40px;
	}

	.ai-seo-pageHeader__title {
		font-size: 26px;
		padding: 0 15px;
	}

	.ai-seo-pageHeader__inner {
		padding: 30px 15px;
	}
}

/* ========================================
   セクション共通スタイル
   ======================================== */
.ai-seo-content {
	max-width: 100%;
}

.ai-seo-section {
	margin-bottom: 60px;
	padding-bottom: 40px;
	border-bottom: 1px solid #e8e8e8;
}

.ai-seo-section:last-child {
	border-bottom: none;
}

/* h2見出し（主要セクション） */
.ai-seo-section h2 {
	font-size: 28px;
	font-weight: bold;
	color: #333;
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 3px solid #4a90e2;
	line-height: 1.5;
}

/* h3見出し（サブセクション） */
.ai-seo-section h3 {
	font-size: 22px;
	font-weight: bold;
	color: #444;
	margin-top: 32px;
	margin-bottom: 16px;
	padding-left: 12px;
	border-left: 4px solid #4a90e2;
	line-height: 1.5;
}

.ai-seo-section h3:first-of-type {
	margin-top: 0;
}

/* テキストコンテンツ */
.ai-seo-content__text {
	line-height: 1.9;
	color: #555;
}

.ai-seo-content__text p {
	margin-bottom: 20px;
}

.ai-seo-content__text ul,
.ai-seo-content__text ol {
	margin: 20px 0 20px 24px;
	padding: 0;
}

.ai-seo-content__text li {
	margin-bottom: 12px;
	line-height: 1.8;
}

.ai-seo-content__text strong {
	font-weight: bold;
	color: #333;
}

/* ========================================
   コース一覧セクション
   ======================================== */
.ai-seo-course {
	background: #f9f9f9;
	padding: 24px;
	margin-bottom: 24px;
	border-radius: 8px;
	transition: box-shadow 0.3s ease;
}

.ai-seo-course:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ai-seo-course h3 {
	margin-top: 0;
	border-left-color: #e67e22;
}

.ai-seo-course p {
	margin-bottom: 16px;
	color: #555;
	line-height: 1.8;
}

/* コース詳細リンク */
.ai-seo-course__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #c4d600;
	text-decoration: none;
	font-weight: bold;
	font-size: 15px;
	transition: all 0.3s ease;
	padding: 8px 16px;
	border-radius: 4px;
	background: #fff;
	border: 1px solid #c4d600;
}

.ai-seo-course__link:hover {
	background: #c4d600;
	color: #333;
	transform: translateX(4px);
}

.ai-seo-course__link::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.3s ease;
}

.ai-seo-course__link:hover::after {
	transform: rotate(45deg) translateX(2px);
}

/* ========================================
   特徴セクション
   ======================================== */
.ai-seo-feature {
	background: #fff;
	padding: 24px;
	margin-bottom: 24px;
	border: 2px solid #e8e8e8;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.ai-seo-feature:hover {
	border-color: #4a90e2;
	box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.ai-seo-feature h3 {
	margin-top: 0;
	border-left-color: #27ae60;
}

.ai-seo-feature p {
	margin-bottom: 0;
	color: #555;
	line-height: 1.8;
}

/* ========================================
   FAQセクション
   ======================================== */
.ai-seo-faq h2 {
	border-bottom-color: #9b59b6;
}

.ai-seo-faq__item {
	background: #f5f3ff;
	padding: 24px;
	margin-bottom: 20px;
	border-radius: 8px;
	border-left: 4px solid #9b59b6;
}

.ai-seo-faq__item h3 {
	margin-top: 0;
	margin-bottom: 12px;
	font-size: 20px;
	color: #5a2d82;
	border-left: none;
	padding-left: 0;
}

.ai-seo-faq__item h3::before {
	content: "Q. ";
	font-weight: bold;
	color: #9b59b6;
}

.ai-seo-faq__item p {
	margin-bottom: 0;
	color: #555;
	line-height: 1.8;
	padding-left: 20px;
}

.ai-seo-faq__item p::before {
	content: "A. ";
	font-weight: bold;
	color: #9b59b6;
	margin-left: -20px;
	margin-right: 8px;
}

/* ========================================
   CTAセクション
   ======================================== */
.ai-seo-cta {
	background: linear-gradient(135deg, #a8b5f5 0%, #b89bd9 100%);
	color: #fff;
	padding: 40px;
	border-radius: 12px;
	text-align: center;
	border-bottom: none;
}

.ai-seo-cta h2 {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.3);
	font-size: 26px;
}

.ai-seo-cta .ai-seo-content__text p {
	color: rgba(255, 255, 255, 0.95);
	font-size: 16px;
}

.ai-seo-cta__buttons {
	display: flex;
	gap: 20px;
	justify-content: center;
	margin-top: 32px;
	flex-wrap: wrap;
}

.ai-seo-cta__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 32px;
	background: #fff;
	color: #7a8cf5;
	font-size: 18px;
	font-weight: bold;
	border-radius: 50px;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ai-seo-cta__button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
	color: #9b8bc9;
}

.ai-seo-cta__button .icon {
	font-size: 24px;
}

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (max-width: 768px) {
	.ai-seo-section h2 {
		font-size: 24px;
		margin-bottom: 20px;
	}

	.ai-seo-section h3 {
		font-size: 20px;
		margin-top: 24px;
		margin-bottom: 12px;
	}

	.ai-seo-course,
	.ai-seo-feature {
		padding: 20px;
	}

	.ai-seo-course__link {
		font-size: 14px;
		padding: 6px 12px;
	}

	.ai-seo-faq__item {
		padding: 20px;
	}

	.ai-seo-faq__item h3 {
		font-size: 18px;
	}

	.ai-seo-cta {
		padding: 32px 20px;
	}

	.ai-seo-cta__buttons {
		flex-direction: column;
		gap: 16px;
	}

	.ai-seo-cta__button {
		width: 100%;
		justify-content: center;
		padding: 14px 24px;
		font-size: 16px;
	}

	.ai-seo-content__text ul,
	.ai-seo-content__text ol {
		margin-left: 16px;
	}
}

/* ========================================
   印刷対応
   ======================================== */
@media print {
	.ai-seo-section {
		page-break-inside: avoid;
	}

	.ai-seo-cta__buttons {
		display: none;
	}
}
