/* 
 * SEO Area Manager - Frontend Styles (Mobile First)
 * Theme: Gentle Blue
 */

:root {
	--seo-primary: #4F86F7; /* 優しいブルー */
	--seo-primary-light: #EBF2FF;
	--seo-secondary: #FF8F00; /* アクセントオレンジ */
	--seo-text-main: #334155;
	--seo-text-light: #64748B;
	--seo-bg-gray: #F8FAFC;
	--seo-border: #E2E8F0;
	--seo-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	--seo-shadow-hover: 0 10px 25px rgba(79, 134, 247, 0.15);
	--seo-radius: 12px;
}

/* =========================================
   Base Typography & Content Area
   ========================================= */
.seo-area-content {
	color: var(--seo-text-main);
	line-height: 1.8;
	font-size: 16px;
	word-break: break-word;
}

.seo-area-content p {
	margin-bottom: 1.5em;
}

.seo-area-content h2 {
	font-size: 1.4rem;
	font-weight: 700;
	margin: 2.5em 0 1em;
	padding: 12px 16px;
	background-color: var(--seo-primary-light);
	border-left: 5px solid var(--seo-primary);
	border-radius: 0 8px 8px 0;
	color: var(--seo-primary);
	line-height: 1.4;
}

.seo-area-content h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 2em 0 1em;
	padding-bottom: 8px;
	border-bottom: 2px dashed var(--seo-primary-light);
	color: var(--seo-text-main);
}

.seo-area-content h4 {
	font-size: 1.1rem;
	font-weight: bold;
	margin: 1.5em 0 1em;
	color: var(--seo-text-main);
}

.seo-area-content ul:not(.seo-area-breadcrumbs) {
	margin: 1em 0 1.5em;
	padding-left: 1.5em;
	list-style-type: none;
}

.seo-area-content ul:not(.seo-area-breadcrumbs) li {
	position: relative;
	margin-bottom: 0.5em;
	padding-left: 1.2em;
}

.seo-area-content ul:not(.seo-area-breadcrumbs) li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--seo-primary);
	font-weight: bold;
}

.seo-area-content ol {
	margin: 1em 0 1.5em;
	padding-left: 1.5em;
}

.seo-area-content ol li {
	margin-bottom: 0.5em;
}

.seo-area-content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5em;
	font-size: 0.95em;
}

.seo-area-content table th,
.seo-area-content table td {
	border: 1px solid var(--seo-border);
	padding: 12px;
	text-align: left;
}

.seo-area-content table th {
	background-color: var(--seo-primary-light);
	color: var(--seo-primary);
	font-weight: bold;
}

/* =========================================
   Breadcrumbs
   ========================================= */
.seo-area-breadcrumbs-container {
	margin-bottom: 24px;
	overflow-x: auto;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 5px; /* for scrollbar */
}

.seo-area-breadcrumbs {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex;
	align-items: center;
	font-size: 13px;
	color: var(--seo-text-light);
}

.seo-area-breadcrumbs li {
	display: flex;
	align-items: center;
	margin-bottom: 0 !important;
	padding-left: 0 !important;
}

.seo-area-breadcrumbs li::before {
	content: none !important; /* リストの装飾を消す */
}

.seo-area-breadcrumbs a {
	color: var(--seo-primary);
	text-decoration: none;
}

.seo-area-breadcrumbs a:hover {
	text-decoration: underline;
}

.seo-breadcrumb-sep {
	margin: 0 8px;
	color: #94A3B8;
	font-size: 10px;
}

/* =========================================
   Ranking Shortcode
   ========================================= */
.seo-ranking-list {
	margin: 2em 0;
}

.seo-ranking-item {
	background: #fff;
	border: 1px solid var(--seo-border);
	border-radius: var(--seo-radius);
	box-shadow: var(--seo-shadow);
	padding: 20px;
	margin-bottom: 40px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.seo-ranking-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--seo-shadow-hover);
}

.seo-ranking-header {
	margin-top: 0;
	padding-bottom: 15px;
	border-bottom: 2px solid var(--seo-primary-light);
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	font-size: 1.3rem;
	font-weight: bold;
}

.seo-ranking-badge {
	background: var(--seo-primary);
	color: #fff;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.85em;
	margin-right: 12px;
	display: inline-block;
	white-space: nowrap;
}

/* 1~3位は色を変える */
.seo-ranking-badge.rank-1 { background: #FFB300; }
.seo-ranking-badge.rank-2 { background: #9E9E9E; }
.seo-ranking-badge.rank-3 { background: #8D6E63; }

.seo-ranking-image {
	text-align: center;
	margin-bottom: 20px;
}

.seo-ranking-image img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.seo-ranking-rating {
	font-size: 1.3rem;
	font-weight: bold;
	color: #F59E0B; /* Star Yellow */
	margin-bottom: 15px;
	text-align: center;
}

.seo-ranking-desc {
	margin-bottom: 20px;
	font-size: 0.95em;
}

.seo-ranking-pros-cons {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 25px;
}

.seo-ranking-pro,
.seo-ranking-con {
	padding: 15px;
	border-radius: 8px;
}

.seo-ranking-pro {
	background: #F0FDF4; /* Light Green */
	border: 1px solid #BBF7D0;
}

.seo-ranking-con {
	background: #FEF2F2; /* Light Red */
	border: 1px solid #FECACA;
}

.seo-ranking-pro strong {
	color: #166534;
	display: block;
	margin-bottom: 5px;
	font-size: 0.9em;
}

.seo-ranking-con strong {
	color: #991B1B;
	display: block;
	margin-bottom: 5px;
	font-size: 0.9em;
}

.seo-ranking-pro p,
.seo-ranking-con p {
	margin: 0;
	font-size: 0.9em;
	line-height: 1.6;
}

.seo-ranking-action {
	text-align: center;
	margin-top: 10px;
}

.seo-ranking-btn {
	display: inline-block;
	background: var(--seo-secondary);
	color: #fff;
	text-decoration: none;
	padding: 16px 30px;
	border-radius: 30px;
	font-weight: bold;
	font-size: 1.1rem;
	box-shadow: 0 4px 10px rgba(255, 143, 0, 0.3);
	transition: all 0.3s ease;
	width: 100%;
	box-sizing: border-box;
}

.seo-ranking-btn:hover {
	background: #E68100;
	box-shadow: 0 6px 15px rgba(255, 143, 0, 0.4);
	color: #fff;
}

/* =========================================
   Reviews Shortcode (Standalone & in Ranking)
   ========================================= */
.seo-reviews-list {
	margin: 1.5em 0;
}

.seo-review-card {
	background: #fff;
	border: 1px solid var(--seo-border);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.seo-review-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.seo-review-title {
	font-weight: 700;
	font-size: 1.05em;
	color: var(--seo-primary);
}

.seo-review-rating {
	color: #F59E0B;
	font-size: 1em;
	font-weight: bold;
	white-space: nowrap;
}

.seo-review-body {
	font-size: 0.95em;
	margin-bottom: 15px;
	line-height: 1.6;
	color: var(--seo-text-main);
}

.seo-review-meta {
	font-size: 0.85em;
	color: var(--seo-text-light);
	text-align: right;
	border-top: 1px dashed var(--seo-border);
	padding-top: 10px;
}

/* Reviews inside Ranking */
.seo-ranking-reviews-wrapper {
	margin-top: 30px;
	background: var(--seo-primary-light);
	padding: 20px;
	border-radius: 12px;
}

.seo-ranking-reviews-title {
	margin: 0 0 15px 0 !important;
	font-size: 1.1em !important;
	color: var(--seo-primary) !important;
	display: flex;
	align-items: center;
}

.seo-ranking-reviews-title::before {
	content: '💬';
	margin-right: 8px;
}

/* =========================================
   Internal Links
   ========================================= */
.seo-area-internal-links {
	margin-top: 50px;
	padding: 25px 20px;
	background: var(--seo-bg-gray);
	border-radius: var(--seo-radius);
	border-top: 4px solid var(--seo-primary);
}

.seo-area-internal-links h3 {
	margin-top: 0;
	font-size: 1.2em;
	margin-bottom: 20px;
	color: var(--seo-text-main);
	text-align: center;
}

.seo-area-internal-links ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.seo-area-internal-links li {
	margin: 0;
}

.seo-area-internal-link-item {
	display: block;
	background: #fff;
	color: var(--seo-text-main);
	padding: 10px 18px;
	border: 1px solid var(--seo-border);
	border-radius: 30px;
	text-decoration: none;
	font-size: 0.9em;
	transition: all 0.2s ease;
}

.seo-area-internal-link-item:hover,
.seo-area-internal-link-item.current {
	background: var(--seo-primary);
	color: #fff;
	border-color: var(--seo-primary);
}


/* =========================================
   Media Queries (PC Adjustments)
   ========================================= */
@media (min-width: 768px) {
	.seo-ranking-pros-cons {
		flex-direction: row;
	}
	
	.seo-ranking-pro,
	.seo-ranking-con {
		flex: 1;
	}
	
	.seo-ranking-btn {
		width: auto;
		min-width: 300px;
	}
}
