/* =========================================================
   manasys-revival 記事詳細 レイアウト（自前実装・Themify非依存）
   2026-06-12  ※突き破りを廃止し、中央カラムに統一して確実に中央寄せ
   ========================================================= */

/* ====== ヒーロー（全幅・中央寄せ） ====== */
.ms-hero {
	position: relative;
	width: 100%;
	min-height: 480px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-size: cover;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	padding: 70px 20px;
	box-sizing: border-box;
}
.ms-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.ms-hero__inner { position: relative; z-index: 1; width: 100%; }
.ms-hero__en {
	margin: 0; color: #fff;
	font-family: "open-sans", "altivo", sans-serif; font-weight: 600;
	font-size: clamp(3rem, 7vw, 6rem); line-height: 1.05; letter-spacing: 0.04em;
}
.ms-hero__ja { margin: 14px 0 0; color: #fff; font-size: clamp(0.95rem, 1.4vw, 1.15rem); letter-spacing: 0.25em; }
@media (max-width: 768px) { .ms-hero { min-height: 300px; padding: 56px 16px; } }

/* ====== 記事カラム（中央寄せ・1カラム） ====== */
.single-post #content .article-wrap {
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}
/* 日付・タイトルは中央寄せ */
.single-post .post-content > .post-date {
	text-align: center;
	color: #666;
	margin: 8px 0 6px;
}
.single-post .post-content > .post-title {
	text-align: center;
	margin: 0 0 28px;
	line-height: 1.5;
}
/* 本文内画像レスポンシブ */
.single-post .entry-content img { max-width: 100%; height: auto; }
.single-post .entry-content img.alignnone,
.single-post .entry-content img.aligncenter,
.single-post .entry-content p > img:only-child {
	display: block; margin-left: auto; margin-right: auto;
}

/* ====== 工事概要テーブル（中央・整形） ====== */
.single-post .entry-content table {
	width: 100%;
	max-width: 640px;
	margin: 32px auto;
	border-collapse: collapse;
}
.single-post .entry-content table td {
	padding: 14px 12px;
	border-bottom: 1px solid #e3e3e3;
	vertical-align: top;
	text-align: left;
	line-height: 1.7;
}
.single-post .entry-content table td:first-child {
	width: 120px;
	color: #0a64b4;
	font-weight: 700;
	white-space: nowrap;
}

/* ====== 戻るボタン ====== */
.single-post .news-back-wrap { display: flex; justify-content: center; margin: 48px 0 64px; }
.single-post .news-back {
	display: inline-flex; align-items: center; justify-content: center;
	gap: 12px; white-space: nowrap; padding: 14px 30px;
	border: 1px solid #0a64b4; border-radius: 999px;
	color: #0a64b4; font-size: 15px; line-height: 1.2; text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.single-post .news-back:hover { background-color: #0a64b4; color: #fff; }

/* ====== 施工実績ギャラリー（自前スライダー／中央・突き破りなし） ====== */
/* ギャラリーを囲む Themify の入れ子を素直に全幅化（カラム内で 100%） */
.single-post .entry-content .themify_builder_content,
.single-post .entry-content .module_row,
.single-post .entry-content .row_inner,
.single-post .entry-content .module_column,
.single-post .entry-content .tb-column-inner,
.single-post .entry-content .module-gallery {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	float: none !important;
	transform: none !important;
}
.single-post .article-wrap .module-gallery { margin: 0 auto 8px !important; }

/* スライダー本体（カラム幅いっぱい＝中央。画像は大きく・カバー） */
.ms-slider { width: 100%; margin: 0 auto; }
.ms-slider__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	max-height: 620px;
	overflow: hidden;
	background: #000;
}
.ms-slider__main {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center center !important;
	display: block !important;
	margin: 0 !important;
}
.ms-slider__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px; border: none; border-radius: 50%;
	background: rgba(0, 0, 0, .45); color: #fff; font-size: 28px; line-height: 1;
	cursor: pointer; z-index: 2; transition: background-color .2s ease;
}
.ms-slider__nav:hover { background: rgba(0, 0, 0, .7); }
.ms-slider__nav.ms-prev { left: 16px; }
.ms-slider__nav.ms-next { right: 16px; }
.ms-slider__thumbs {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
	margin: 12px auto 0; padding: 0; box-sizing: border-box;
}
.ms-slider__thumbs button {
	width: 96px; height: 70px; padding: 0; border: 2px solid transparent;
	border-radius: 4px; background: none; cursor: pointer; overflow: hidden; line-height: 0;
}
.ms-slider__thumbs button.is-active { border-color: #0a64b4; }
.ms-slider__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 768px) {
	.single-post #content .article-wrap { padding-left: 16px; padding-right: 16px; }
	.ms-slider__stage { aspect-ratio: 4 / 3; }
	.ms-slider__thumbs button { width: 64px; height: 48px; }
	.ms-slider__nav { width: 40px; height: 40px; font-size: 24px; }
}
