/*
Theme Name: Smile Cars Yamasan
Theme URI: https://smile-cars-yamasan.net/
Author: FLAT
Description: スマイルカーズ大東門真店専用の1ページ型WordPressテーマです。
Version: 1.0.0
Text Domain: smilecars-yamasan
*/

:root {
	--smile-red: #ff2425;
	--smile-navy: #050c25;
	--smile-ink: #111111;
	--smile-muted: #5d6672;
	--smile-pale: #edf5f8;
	--smile-line: #d8e0e5;
}

.p-mv {
	position: relative;
}

.p-mv-blog-link {
	position: absolute;
	z-index: 5;
	top: 30px;
	right: max(30px, calc((100vw - 1180px) / 2));
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 8px 24px;
	border: 2px solid #fff;
	border-radius: 4px;
	background: rgba(5, 12, 37, 0.86);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.p-mv-blog-link:hover {
	background: #fff;
	color: var(--smile-navy);
}

.blog-site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--smile-line);
	background: #fff;
}

.blog-site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(1180px, calc(100% - 48px));
	min-height: 92px;
	margin: 0 auto;
}

.blog-site-logo {
	display: block;
	width: 230px;
}

.blog-site-logo img {
	display: block;
	width: 100%;
	height: auto;
}

.blog-site-nav {
	display: flex;
	align-items: center;
	gap: 10px;
}

.blog-site-nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 18px;
	border-radius: 4px;
	color: var(--smile-navy);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.blog-site-nav a:hover,
.blog-site-nav a.is-current {
	background: var(--smile-red);
	color: #fff;
}

.blog-hero {
	position: relative;
	display: grid;
	min-height: 300px;
	place-items: center;
	overflow: hidden;
	background: url("assets/images/top/bg_mv.jpg") center 46% / cover no-repeat;
	color: #fff;
	text-align: center;
}

.blog-hero::before {
	position: absolute;
	inset: 0;
	content: "";
	background: rgba(5, 12, 37, 0.66);
}

.blog-hero-inner {
	position: relative;
	z-index: 1;
	width: min(960px, calc(100% - 40px));
}

.blog-hero-eyebrow {
	margin: 0 0 12px;
	color: #fff;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0;
}

.blog-hero h1 {
	margin: 0;
	color: #fff;
	font-size: 40px;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0;
}

.blog-breadcrumb {
	display: flex;
	align-items: center;
	gap: 10px;
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto;
	padding: 18px 0;
	overflow: hidden;
	color: var(--smile-muted);
	font-size: 13px;
	white-space: nowrap;
}

.blog-breadcrumb a {
	color: var(--smile-red);
	text-decoration: none;
}

.blog-breadcrumb span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
}

.blog-main {
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto;
	padding: 58px 0 100px;
}

.blog-index-heading {
	max-width: 760px;
	margin: 0 auto 38px;
	text-align: center;
}

.blog-section-label {
	margin: 0 0 8px;
	color: var(--smile-red);
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
}

.blog-index-heading h2 {
	margin: 0 0 18px;
	color: var(--smile-navy);
	font-size: 32px;
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: 0;
}

.blog-index-heading > p:last-child,
.blog-archive-description {
	margin: 0;
	color: var(--smile-muted);
	font-size: 15px;
	line-height: 1.9;
}

.blog-archive-description p {
	margin: 0;
}

.blog-category-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 42px;
}

.blog-category-nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 20px;
	border: 1px solid var(--smile-line);
	border-radius: 4px;
	background: #fff;
	color: var(--smile-navy);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.blog-category-nav a:hover,
.blog-category-nav a.is-current {
	border-color: var(--smile-red);
	background: var(--smile-red);
	color: #fff;
}

.blog-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.blog-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--smile-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(5, 12, 37, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(5, 12, 37, 0.12);
}

.blog-card-link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.blog-card-media {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--smile-pale);
}

.blog-card-media > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-media > img {
	transform: scale(1.03);
}

.blog-card-placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	padding: 28px;
	place-items: center;
}

.blog-card-placeholder img {
	width: min(210px, 72%);
	height: auto;
}

.blog-card-body {
	display: flex;
	flex-direction: column;
	min-height: 280px;
	padding: 24px;
}

.blog-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 14px;
	color: #7a828d;
	font-size: 12px;
}

.blog-card-category {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 4px 10px;
	border-radius: 3px;
	background: var(--smile-pale);
	color: var(--smile-navy);
	font-weight: 700;
}

.blog-card-title {
	margin: 0 0 14px;
	color: var(--smile-navy);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.6;
	letter-spacing: 0;
}

.blog-card-excerpt {
	margin: 0;
	color: var(--smile-muted);
	font-size: 14px;
	line-height: 1.85;
}

.blog-card-more {
	display: block;
	margin-top: auto;
	padding-top: 22px;
	color: var(--smile-red);
	font-size: 13px;
	font-weight: 700;
	text-align: right;
}

.blog-empty {
	padding: 64px 30px;
	border: 1px solid var(--smile-line);
	border-radius: 8px;
	background: var(--smile-pale);
	text-align: center;
}

.blog-empty h2 {
	margin: 0 0 12px;
	color: var(--smile-navy);
	font-size: 24px;
}

.blog-empty p {
	margin: 0;
	color: var(--smile-muted);
	font-size: 15px;
}

.navigation.pagination {
	margin-top: 54px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 6px 12px;
	border: 1px solid var(--smile-line);
	border-radius: 4px;
	background: #fff;
	color: var(--smile-navy);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
	border-color: var(--smile-red);
	background: var(--smile-red);
	color: #fff;
}

.blog-single-main {
	width: min(920px, calc(100% - 48px));
	padding-top: 52px;
}

.blog-article-header {
	margin-bottom: 38px;
}

.blog-article-meta {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 16px;
	color: #7a828d;
	font-size: 13px;
}

.blog-article-meta a {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 12px;
	border-radius: 3px;
	background: var(--smile-red);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.blog-article-header h1 {
	margin: 0;
	color: var(--smile-navy);
	font-size: 38px;
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: 0;
}

.blog-article-featured {
	margin: 0 0 46px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--smile-pale);
}

.blog-article-featured img {
	display: block;
	width: 100%;
	height: auto;
}

.blog-article-content {
	color: #222;
	font-size: 16px;
	line-height: 2;
}

.blog-article-content > *:first-child {
	margin-top: 0;
}

.blog-article-content p {
	margin: 0 0 1.7em;
}

.blog-article-content h2 {
	margin: 2.5em 0 1em;
	padding: 17px 20px;
	border-left: 6px solid var(--smile-red);
	background: var(--smile-pale);
	color: var(--smile-navy);
	font-size: 27px;
	font-weight: 800;
	line-height: 1.55;
	letter-spacing: 0;
}

.blog-article-content h3 {
	margin: 2.2em 0 0.9em;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--smile-red);
	color: var(--smile-navy);
	font-size: 23px;
	font-weight: 800;
	line-height: 1.55;
	letter-spacing: 0;
}

.blog-article-content h4 {
	margin: 2em 0 0.8em;
	color: var(--smile-navy);
	font-size: 19px;
	font-weight: 800;
	letter-spacing: 0;
}

.blog-article-content ul,
.blog-article-content ol {
	margin: 0 0 1.7em;
	padding-left: 1.6em;
}

.blog-article-content li + li {
	margin-top: 0.5em;
}

.blog-article-content a {
	color: var(--smile-red);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.blog-article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.blog-article-content blockquote {
	margin: 2em 0;
	padding: 20px 24px;
	border-left: 5px solid var(--smile-red);
	background: #f7f8fa;
	color: #3d4650;
}

.blog-article-content table {
	display: block;
	width: 100%;
	margin: 2em 0;
	overflow-x: auto;
	border-collapse: collapse;
	white-space: nowrap;
}

.blog-article-content th,
.blog-article-content td {
	padding: 12px 16px;
	border: 1px solid var(--smile-line);
	text-align: left;
}

.blog-article-content th {
	background: var(--smile-pale);
	color: var(--smile-navy);
}

.blog-page-links {
	display: flex;
	gap: 8px;
	margin-top: 36px;
}

.blog-post-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr);
	gap: 14px;
	align-items: stretch;
	margin-top: 72px;
	padding-top: 34px;
	border-top: 1px solid var(--smile-line);
}

.blog-post-nav-side a,
.blog-post-nav-list {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 82px;
	padding: 14px 18px;
	border: 1px solid var(--smile-line);
	border-radius: 6px;
	background: #fff;
	color: var(--smile-navy);
	text-decoration: none;
}

.blog-post-nav-side span {
	display: block;
	margin-bottom: 5px;
	color: var(--smile-red);
	font-size: 12px;
	font-weight: 700;
}

.blog-post-nav-side strong {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.blog-post-nav-side.is-next {
	text-align: right;
}

.blog-post-nav-list {
	align-items: center;
	border-color: var(--smile-red);
	background: var(--smile-red);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.blog-post-nav-side:empty {
	visibility: hidden;
}

@media (max-width: 960px) {
	.blog-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.blog-post-nav {
		grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr);
	}
}

@media (max-width: 700px) {
	.p-mv-blog-link {
		top: 14px;
		right: 14px;
		min-height: 40px;
		padding: 6px 14px;
		font-size: 12px;
	}

	.blog-site-header-inner {
		width: calc(100% - 28px);
		min-height: 72px;
	}

	.blog-site-logo {
		width: min(178px, 47vw);
	}

	.blog-site-nav {
		gap: 2px;
	}

	.blog-site-nav a {
		min-height: 38px;
		padding: 6px 9px;
		font-size: 11px;
	}

	.blog-site-nav a:first-child {
		display: none;
	}

	.blog-hero {
		min-height: 220px;
		background-position: center 48%;
	}

	.blog-hero h1 {
		font-size: 28px;
	}

	.blog-hero-eyebrow {
		font-size: 12px;
	}

	.blog-breadcrumb {
		width: calc(100% - 32px);
		padding: 14px 0;
		font-size: 11px;
	}

	.blog-main,
	.blog-single-main {
		width: calc(100% - 32px);
		padding: 42px 0 72px;
	}

	.blog-index-heading {
		margin-bottom: 28px;
	}

	.blog-index-heading h2 {
		font-size: 25px;
	}

	.blog-index-heading > p:last-child,
	.blog-archive-description {
		font-size: 14px;
		line-height: 1.8;
		text-align: left;
	}

	.blog-category-nav {
		justify-content: flex-start;
		gap: 8px;
		margin-bottom: 30px;
	}

	.blog-category-nav a {
		min-height: 38px;
		padding: 6px 14px;
		font-size: 12px;
	}

	.blog-card-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.blog-card-body {
		min-height: 250px;
		padding: 20px;
	}

	.blog-card-title {
		font-size: 18px;
	}

	.blog-empty {
		padding: 44px 20px;
	}

	.blog-empty h2 {
		font-size: 21px;
	}

	.blog-article-header h1 {
		font-size: 27px;
		line-height: 1.55;
	}

	.blog-article-featured {
		margin-bottom: 34px;
	}

	.blog-article-content {
		font-size: 15px;
		line-height: 1.95;
	}

	.blog-article-content h2 {
		margin-top: 2.2em;
		padding: 14px 16px;
		font-size: 22px;
	}

	.blog-article-content h3 {
		font-size: 20px;
	}

	.blog-post-nav {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 52px;
	}

	.blog-post-nav-list {
		grid-row: 1;
		min-height: 58px;
	}

	.blog-post-nav-side {
		text-align: left;
	}

	.blog-post-nav-side.is-next {
		text-align: left;
	}
}
