/*
Theme Name: SEO Area Theme
Theme URI: http://localhost/rseo/
Author: Antigravity
Author URI: http://localhost/rseo/
Description: 地域量産型SEOメディア専用テーマ。seo-area-managerプラグインと連携して地域別ページを高速出力します。
Version: 1.0.0
Text Domain: seo-area-theme
*/

/* 基本リセットや変数はここから */
:root {
	--primary-color: #0056b3;
	--text-color: #333333;
	--bg-color: #f4f6f8;
}

body {
	margin: 0;
	font-family: "Inter", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	color: var(--text-color);
	background-color: var(--bg-color);
	line-height: 1.6;
}

/* サイト全体のレイアウト（PC幅800px・中央寄せ） */
#page {
	max-width: 800px;
	margin: 0 auto;
	background-color: #ffffff; /* コンテンツエリアの背景を白に */
	padding: 20px 30px; /* PCでの余白 */
	min-height: 100vh;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.03); /* ほんの少しだけ浮き上がらせてリッチに */
	box-sizing: border-box;
}

/* スマホ用の余白調整 */
@media (max-width: 768px) {
	#page {
		padding: 15px;
	}
}

/* ヘッダーエリアのスタイル */
.site-header {
	text-align: center;
	padding: 20px 0;
	margin-bottom: 20px;
	border-bottom: 1px solid #eaeaea;
}

.site-branding {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.custom-header-logo img {
	max-height: 60px; /* スマホやPCでも大きすぎないサイズ */
	width: auto;
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: bold;
}

.site-title a {
	color: var(--text-color);
	text-decoration: none;
}

/* スライダーエリアのスタイル */
.seo-area-main-visual {
	margin-bottom: 30px;
	border-radius: 8px;
	overflow: hidden;
}

/* フッターエリアのスタイル */
.site-footer {
	text-align: center;
	padding: 40px 20px;
	margin-top: 60px;
	background-color: var(--seo-bg-gray, #F8FAFC);
	border-top: 1px solid var(--seo-border, #E2E8F0);
}

.footer-logo img {
	max-height: 50px;
	width: auto;
	margin-bottom: 15px;
}

.footer-site-name a {
	font-size: 1.2rem;
	font-weight: bold;
	color: var(--text-color, #333);
	text-decoration: none;
}

.footer-copyright {
	margin-top: 15px;
	font-size: 0.85rem;
	color: var(--seo-text-light, #64748B);
}

/* =========================================
   Top Page Custom Styles
   ========================================= */
.section-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--seo-primary-light, #EBF2FF);
	color: var(--seo-text-main, #334155);
	text-align: center;
}

/* 新着記事リスト */
.top-news-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.news-item {
	display: flex;
	align-items: center;
	padding: 15px;
	border-bottom: 1px dashed var(--seo-border, #E2E8F0);
	gap: 15px;
}

.news-date {
	font-size: 0.85rem;
	color: var(--seo-text-light, #64748B);
	white-space: nowrap;
}

.news-cat {
	background: var(--seo-primary, #4F86F7);
	color: #fff;
	font-size: 0.75rem;
	padding: 3px 8px;
	border-radius: 4px;
	white-space: nowrap;
}

.news-thumb {
	flex-shrink: 0;
	width: 80px;
	height: 60px;
	border-radius: 6px;
	overflow: hidden;
}

.news-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.news-no-thumb {
	width: 100%;
	height: 100%;
	background: var(--seo-bg-gray, #F8FAFC);
	border: 1px solid var(--seo-border, #E2E8F0);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.news-no-thumb::after {
	content: "NO IMAGE";
	font-size: 0.6rem;
	color: var(--seo-text-light, #64748B);
}

.news-title {
	color: var(--seo-text-main, #334155);
	text-decoration: none;
	font-weight: bold;
	flex-grow: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}

.news-title:hover {
	color: var(--seo-primary, #4F86F7);
	text-decoration: underline;
}

@media (max-width: 600px) {
	.news-item {
		flex-wrap: wrap;
		gap: 8px;
	}
	.news-title {
		width: 100%;
		-webkit-line-clamp: 2;
	}
}

/* FAQアコーディオン */
.faq-accordion {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.faq-item {
	border: 1px solid var(--seo-border, #E2E8F0);
	border-radius: var(--seo-radius, 12px);
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.faq-question {
	width: 100%;
	background: #fff;
	border: none;
	padding: 18px 20px;
	font-size: 1.05rem;
	font-weight: bold;
	color: var(--seo-text-main, #334155);
	text-align: left;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background 0.2s ease;
}

.faq-question:hover {
	background: #F8FAFC;
}

.faq-icon {
	width: 14px;
	height: 14px;
	position: relative;
	flex-shrink: 0;
	margin-left: 15px;
}

.faq-icon::before,
.faq-icon::after {
	content: '';
	position: absolute;
	background: var(--seo-primary, #4F86F7);
	transition: transform 0.3s ease;
}

.faq-icon::before {
	top: 6px;
	left: 0;
	width: 14px;
	height: 2px;
}

.faq-icon::after {
	top: 0;
	left: 6px;
	width: 2px;
	height: 14px;
}

.faq-item.active .faq-icon::after {
	transform: rotate(90deg);
}
.faq-item.active .faq-icon::before {
	transform: rotate(180deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, padding 0.3s ease;
	background: var(--seo-primary-light, #EBF2FF);
}

.faq-item.active .faq-answer {
	max-height: 500px; /* 十分な高さを確保 */
	padding: 20px;
}

.faq-answer p {
	margin: 0;
	line-height: 1.6;
	color: var(--seo-text-main, #334155);
}

/* =========================================
   Bottom Widget Area
   ========================================= */
.seo-area-bottom-widgets {
	max-width: 800px;
	margin: 50px auto 0;
	padding: 20px;
	border-top: 1px solid var(--seo-border, #E2E8F0);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
}

.seo-area-bottom-widgets .widget {
	margin-bottom: 20px;
}

.seo-area-bottom-widgets .widget-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 15px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--seo-primary-light, #EBF2FF);
	color: var(--seo-text-main, #334155);
}

.seo-area-bottom-widgets ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.seo-area-bottom-widgets ul li {
	margin-bottom: 10px;
	border-bottom: 1px dashed var(--seo-border, #E2E8F0);
	padding-bottom: 10px;
}

.seo-area-bottom-widgets ul li:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.seo-area-bottom-widgets a {
	color: var(--seo-text-main, #334155);
	text-decoration: none;
}

.seo-area-bottom-widgets a:hover {
	color: var(--seo-primary, #4F86F7);
	text-decoration: underline;
}

/* =========================================
   Blog & Article Pages
   ========================================= */
/* TOC (自動目次) */
.seo-toc {
	background: #F8FAFC;
	border: 1px solid var(--seo-border, #E2E8F0);
	border-radius: 8px;
	padding: 20px;
	margin: 30px 0;
	box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.seo-toc-title {
	font-size: 1.1rem;
	font-weight: bold;
	margin-bottom: 15px;
	color: var(--seo-text-main, #334155);
	text-align: center;
	border-bottom: 2px solid var(--seo-primary, #4F86F7);
	display: inline-block;
	padding-bottom: 5px;
}

.seo-toc ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.seo-toc li {
	margin-bottom: 8px;
}

.seo-toc li a {
	color: var(--seo-text-main, #334155);
	text-decoration: none;
	display: block;
	padding-left: 15px;
	position: relative;
}

.seo-toc li a::before {
	content: "・";
	position: absolute;
	left: 0;
	color: var(--seo-primary, #4F86F7);
}

.seo-toc li a:hover {
	color: var(--seo-primary, #4F86F7);
	text-decoration: underline;
}

.seo-toc ul ul {
	padding-left: 20px;
	margin-top: 5px;
	font-size: 0.95em;
}

.seo-toc ul ul li a::before {
	content: "-";
}

/* 記事本文のデザイン */
.seo-article-content h2 {
	font-size: 1.5rem;
	border-left: 5px solid var(--seo-primary, #4F86F7);
	padding-left: 15px;
	margin-top: 40px;
	margin-bottom: 20px;
}

.seo-article-content h3 {
	font-size: 1.3rem;
	border-bottom: 1px dashed var(--seo-border, #E2E8F0);
	padding-bottom: 10px;
	margin-top: 30px;
	margin-bottom: 15px;
}

.seo-article-content p {
	margin-bottom: 20px;
}

.seo-article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin-bottom: 20px;
}

/* ページネーション */
.seo-pagination {
	margin-top: 40px;
	text-align: center;
}

.seo-pagination .nav-links {
	display: inline-flex;
	gap: 5px;
}

.seo-pagination .page-numbers {
	display: inline-block;
	padding: 8px 15px;
	background: #fff;
	border: 1px solid var(--seo-border, #E2E8F0);
	border-radius: 4px;
	color: var(--seo-text-main, #334155);
	text-decoration: none;
	transition: all 0.2s;
}

.seo-pagination .page-numbers:hover,
.seo-pagination .page-numbers.current {
	background: var(--seo-primary, #4F86F7);
	color: #fff;
	border-color: var(--seo-primary, #4F86F7);
}

/* =========================================
   Navigation Menus
   ========================================= */
.main-navigation ul,
.footer-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
}

.main-navigation li a,
.footer-navigation li a {
	display: block;
	padding: 10px;
	color: var(--seo-text-main, #334155);
	text-decoration: none;
	font-weight: bold;
	transition: color 0.2s;
}

.footer-navigation li a {
	color: #fff;
}

.main-navigation li a:hover,
.footer-navigation li a:hover {
	color: var(--seo-primary, #4F86F7);
}

/* スマホ等でメニューが折り返した時の余白調整 */
@media (max-width: 600px) {
	.main-navigation ul,
	.footer-navigation ul {
		gap: 10px;
	}
	.main-navigation li a,
	.footer-navigation li a {
		padding: 5px 10px;
		font-size: 0.9rem;
	}
}

/* =========================================
   プロフィールボックス (seo-profile-box)
   ========================================= */
.seo-profile-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 30px;
	margin-top: 50px;
	margin-bottom: 40px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.seo-profile-header {
	font-size: 1.2rem;
	font-weight: bold;
	color: var(--seo-primary, #4F86F7);
	margin-bottom: 20px;
	border-bottom: 2px solid var(--seo-primary-light, #EBF2FF);
	padding-bottom: 10px;
}

.seo-profile-body {
	display: flex;
	gap: 25px;
	align-items: flex-start;
}

.seo-profile-thumb-wrap {
	flex-shrink: 0;
	width: 100px;
	height: 100px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid #fff;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.seo-profile-avatar,
.seo-profile-avatar-default {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.seo-profile-info {
	flex-grow: 1;
}

.seo-profile-name {
	font-size: 1.3rem;
	margin: 0 0 10px 0;
	color: var(--seo-text-main, #334155);
}

.seo-profile-bio {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--seo-text-light, #64748B);
}

.seo-profile-bio p {
	margin: 0 0 10px 0;
}
.seo-profile-bio p:last-child {
	margin-bottom: 0;
}

@media (max-width: 600px) {
	.seo-profile-body {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.seo-profile-thumb-wrap {
		width: 80px;
		height: 80px;
	}
}

/* =========================================
   エリア×キーワード 絞り込み検索
   ========================================= */
.seo-area-search-container {
	background: #fff;
	border: 1px solid var(--seo-border, #E2E8F0);
	border-radius: 12px;
	padding: 25px;
	margin-bottom: 40px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.seo-area-search-title {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 1.3rem;
	color: var(--seo-primary, #4F86F7);
	text-align: center;
	font-weight: bold;
}

.seo-search-fields {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.seo-search-field-group {
	flex: 1;
	min-width: 200px;
	display: flex;
	flex-direction: column;
}

.seo-search-field-group label {
	font-size: 0.9rem;
	font-weight: bold;
	color: var(--seo-text-main, #334155);
	margin-bottom: 8px;
}

.seo-search-field-group select,
.seo-search-field-group input {
	padding: 12px;
	border: 1px solid var(--seo-border, #E2E8F0);
	border-radius: 6px;
	font-size: 1rem;
	background-color: #f8fafc;
	color: var(--seo-text-main, #334155);
	transition: all 0.2s;
}

.seo-search-field-group select:focus,
.seo-search-field-group input:focus {
	outline: none;
	border-color: var(--seo-primary, #4F86F7);
	background-color: #fff;
	box-shadow: 0 0 0 3px rgba(79, 134, 247, 0.1);
}

.seo-search-field-group select:disabled {
	background-color: #e2e8f0;
	color: #94a3b8;
	cursor: not-allowed;
}

.seo-search-submit-group {
	text-align: center;
}

.seo-search-submit-btn {
	background-color: var(--seo-primary, #4F86F7);
	color: #fff;
	border: none;
	border-radius: 30px;
	padding: 15px 40px;
	font-size: 1.1rem;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 4px 6px rgba(79, 134, 247, 0.3);
}

.seo-search-submit-btn:hover {
	background-color: #3b6bce;
	transform: translateY(-2px);
	box-shadow: 0 6px 8px rgba(79, 134, 247, 0.4);
}

@media (max-width: 768px) {
	.seo-search-fields {
		flex-direction: column;
		gap: 15px;
	}
	.seo-search-submit-btn {
		width: 100%;
	}
}
