@charset "UTF-8";

:root {
	--ms-navy: #002378;
	--ms-blue: #075ca8;
	--ms-orange: #f7931e;
	--ms-ink: #172033;
	--ms-muted: #687386;
	--ms-line: #e5e9f0;
	--ms-bg: #f5f7fa;
	--ms-white: #fff;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body.ms-blog-page {
	margin: 0;
	background: var(--ms-bg);
	color: var(--ms-ink);
	font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
	font-size: 16px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}

.ms-blog-page img {
	max-width: 100%;
	height: auto;
}

.ms-blog-page a {
	transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.ms-blog-container {
	width: min(1180px, calc(100% - 48px));
	margin-inline: auto;
}

.ms-blog-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid rgba(0, 35, 120, 0.09);
	box-shadow: 0 4px 20px rgba(17, 32, 59, 0.05);
	backdrop-filter: blur(12px);
}

.admin-bar .ms-blog-header {
	top: 32px;
}

.ms-blog-header__inner {
	display: flex;
	min-height: 82px;
	align-items: center;
	gap: 28px;
}

.ms-blog-header__logo {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
}

.ms-blog-header__logo img {
	display: block;
	width: 210px;
	max-height: 52px;
	object-fit: contain;
}

.ms-blog-header__nav {
	display: flex;
	margin-left: auto;
	align-items: center;
	gap: 24px;
}

.ms-blog-header__nav a {
	color: #344054;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.ms-blog-header__nav a:hover {
	color: var(--ms-orange);
}

.ms-blog-header__actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ms-blog-header__phone {
	display: flex;
	color: var(--ms-navy);
	flex-direction: column;
	line-height: 1.25;
	text-align: right;
	text-decoration: none;
	white-space: nowrap;
}

.ms-blog-header__phone span {
	color: var(--ms-muted);
	font-size: 11px;
}

.ms-blog-header__phone strong {
	font-size: 18px;
	letter-spacing: 0.03em;
}

.ms-button {
	display: inline-flex;
	min-height: 50px;
	padding: 12px 24px;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f9a13d, var(--ms-orange));
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(247, 147, 30, 0.22);
	color: var(--ms-white);
	font-weight: 700;
	text-decoration: none;
}

.ms-button:hover {
	opacity: 0.88;
	transform: translateY(-2px);
}

.ms-button--small {
	min-height: 42px;
	padding: 9px 20px;
	font-size: 14px;
}

.ms-blog-main {
	padding: 26px 0 90px;
}

.ms-breadcrumb {
	display: flex;
	min-width: 0;
	margin-bottom: 24px;
	align-items: center;
	gap: 10px;
	color: var(--ms-muted);
	font-size: 13px;
	white-space: nowrap;
}

.ms-breadcrumb a {
	color: var(--ms-blue);
	text-decoration: none;
}

.ms-breadcrumb__current {
	overflow: hidden;
	text-overflow: ellipsis;
}

.ms-blog-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
	gap: 36px;
}

.ms-article {
	overflow: hidden;
	background: var(--ms-white);
	border: 1px solid rgba(0, 35, 120, 0.07);
	border-radius: 20px;
	box-shadow: 0 12px 40px rgba(28, 45, 77, 0.08);
}

.ms-article__header {
	padding: 54px 64px 42px;
	background:
		radial-gradient(circle at 100% 0, rgba(247, 147, 30, 0.12), transparent 34%),
		linear-gradient(180deg, #fff 0%, #fbfcff 100%);
	border-bottom: 1px solid var(--ms-line);
}

.ms-article__eyebrow {
	margin: 0 0 14px;
	color: var(--ms-orange);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
}

.ms-article__header h1 {
	margin: 0;
	color: var(--ms-navy);
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.45;
}

.ms-article__meta {
	display: flex;
	margin-top: 24px;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 18px;
	color: var(--ms-muted);
	font-size: 13px;
}

.ms-article__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.ms-article__categories a {
	display: inline-flex;
	padding: 4px 11px;
	background: #edf4ff;
	border-radius: 999px;
	color: var(--ms-blue);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.ms-article__body {
	padding: 52px 64px 24px;
	color: #293348;
	font-size: 17px;
	letter-spacing: 0.02em;
	line-height: 2;
}

.ms-article__body > *:first-child {
	margin-top: 0;
}

.ms-article__body p {
	margin: 0 0 1.8em;
}

.ms-article__body h2 {
	position: relative;
	margin: 2.6em 0 1.1em;
	padding: 16px 20px 16px 25px;
	background: #f3f7fd;
	border-radius: 0 10px 10px 0;
	color: var(--ms-navy);
	font-size: 25px;
	line-height: 1.55;
}

.ms-article__body h2::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 5px;
	background: linear-gradient(var(--ms-navy), var(--ms-blue));
	border-radius: 6px;
	content: "";
}

.ms-article__body h3 {
	margin: 2.2em 0 0.9em;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--ms-line);
	color: var(--ms-navy);
	font-size: 21px;
	line-height: 1.55;
}

.ms-article__body h4 {
	margin: 2em 0 0.8em;
	color: var(--ms-ink);
	font-size: 18px;
}

.ms-article__body a {
	color: var(--ms-blue);
	text-decoration-color: rgba(7, 92, 168, 0.35);
	text-underline-offset: 3px;
}

.ms-article__body ul,
.ms-article__body ol {
	margin: 1.5em 0;
	padding: 20px 22px 20px 48px;
	background: #f8fafc;
	border-radius: 12px;
}

.ms-article__body li + li {
	margin-top: 8px;
}

.ms-article__body blockquote {
	margin: 2em 0;
	padding: 24px 28px;
	background: #fff8ef;
	border-left: 4px solid var(--ms-orange);
	border-radius: 0 12px 12px 0;
	color: #4b5565;
}

.ms-article__body img {
	display: block;
	margin: 30px auto;
	border-radius: 12px;
	box-shadow: 0 8px 26px rgba(22, 40, 73, 0.1);
}

.ms-article__body figure {
	max-width: 100%;
	margin: 32px auto;
}

.ms-article__body figure img {
	margin: 0 auto;
}

.ms-article__body figcaption {
	margin-top: 10px;
	color: var(--ms-muted);
	font-size: 13px;
	text-align: center;
}

.ms-article__body iframe,
.ms-article__body video {
	display: block;
	max-width: 100%;
	margin: 30px auto;
	border-radius: 12px;
}

.ms-article__body table {
	display: block;
	max-width: 100%;
	margin: 28px 0;
	overflow-x: auto;
	border-collapse: collapse;
}

.ms-article__body th,
.ms-article__body td {
	padding: 12px 16px;
	border: 1px solid var(--ms-line);
	white-space: nowrap;
}

.ms-article__body th {
	background: #f1f5fb;
	color: var(--ms-navy);
}

.ms-article__cta {
	display: flex;
	margin: 36px 64px 48px;
	padding: 30px 34px;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
	background:
		linear-gradient(135deg, rgba(0, 35, 120, 0.97), rgba(7, 92, 168, 0.92));
	border-radius: 16px;
	color: var(--ms-white);
}

.ms-article__cta-label {
	margin: 0 0 6px;
	color: #dbe8ff;
	font-size: 13px;
}

.ms-article__cta h2 {
	margin: 0;
	font-size: 21px;
	line-height: 1.55;
}

.ms-article__cta-actions {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 10px;
}

.ms-article__cta .ms-button {
	min-width: 160px;
	min-height: 44px;
	padding: 9px 18px;
	font-size: 14px;
}

.ms-button--light {
	background: var(--ms-white);
	box-shadow: none;
	color: var(--ms-navy);
}

.ms-post-nav {
	display: grid;
	padding: 0 64px 54px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.ms-post-nav > div:empty {
	display: none;
}

.ms-post-nav a {
	display: flex;
	height: 100%;
	padding: 18px 20px;
	flex-direction: column;
	background: #f7f9fc;
	border: 1px solid var(--ms-line);
	border-radius: 12px;
	color: var(--ms-ink);
	text-decoration: none;
}

.ms-post-nav a:hover {
	background: #eef4fc;
	border-color: #cbdaf0;
}

.ms-post-nav span {
	margin-bottom: 5px;
	color: var(--ms-muted);
	font-size: 12px;
}

.ms-post-nav strong {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ms-post-nav__next {
	text-align: right;
}

.ms-blog-sidebar {
	position: sticky;
	top: 110px;
	display: grid;
	gap: 22px;
}

.admin-bar .ms-blog-sidebar {
	top: 142px;
}

.ms-sidebar-card {
	padding: 24px;
	background: var(--ms-white);
	border: 1px solid rgba(0, 35, 120, 0.07);
	border-radius: 16px;
	box-shadow: 0 8px 28px rgba(28, 45, 77, 0.07);
}

.ms-sidebar-card h2 {
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--ms-navy);
	color: var(--ms-navy);
	font-size: 18px;
}

.ms-sidebar-card--clinic {
	background:
		radial-gradient(circle at 100% 0, rgba(247, 147, 30, 0.12), transparent 36%),
		var(--ms-white);
}

.ms-sidebar-card--clinic > img {
	display: block;
	width: 230px;
	margin: 0 auto 18px;
}

.ms-sidebar-card--clinic > p {
	margin: 0 0 18px;
	color: #536075;
	font-size: 14px;
	line-height: 1.8;
}

.ms-sidebar-card--clinic dl {
	margin: 0;
	font-size: 13px;
}

.ms-sidebar-card--clinic dl div {
	display: grid;
	padding: 9px 0;
	grid-template-columns: 70px 1fr;
	border-top: 1px solid var(--ms-line);
}

.ms-sidebar-card--clinic dt {
	color: var(--ms-muted);
}

.ms-sidebar-card--clinic dd {
	margin: 0;
	font-weight: 600;
}

.ms-recent-posts {
	display: grid;
	gap: 15px;
}

.ms-recent-post {
	display: grid;
	min-width: 0;
	grid-template-columns: 82px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	color: var(--ms-ink);
	text-decoration: none;
}

.ms-recent-post + .ms-recent-post {
	padding-top: 15px;
	border-top: 1px solid var(--ms-line);
}

.ms-recent-post:hover {
	color: var(--ms-blue);
}

.ms-recent-post__image {
	display: flex;
	width: 82px;
	height: 64px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #f4f6f9;
	border-radius: 8px;
}

.ms-recent-post__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ms-recent-post__image img.wp-post-image {
	object-fit: cover;
}

.ms-recent-post__text {
	display: block;
	min-width: 0;
}

.ms-recent-post__text time {
	display: block;
	margin-bottom: 3px;
	color: var(--ms-muted);
	font-size: 11px;
}

.ms-recent-post__text strong {
	display: -webkit-box;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ms-blog-footer {
	padding: 42px 0;
	background: #071b4c;
	color: rgba(255, 255, 255, 0.78);
}

.ms-blog-footer__inner {
	display: grid;
	grid-template-columns: 220px 1fr auto;
	align-items: center;
	gap: 32px;
}

.ms-blog-footer__inner > img {
	padding: 8px;
	background: var(--ms-white);
	border-radius: 8px;
}

.ms-blog-footer p {
	margin: 2px 0;
	font-size: 13px;
}

.ms-blog-footer small {
	font-size: 11px;
}

.ms-mobile-actions {
	display: none;
}

@media (max-width: 1100px) {
	.ms-blog-header__nav {
		display: none;
	}

	.ms-blog-header__actions {
		margin-left: auto;
	}

	.ms-blog-layout {
		grid-template-columns: minmax(0, 1fr) 285px;
		gap: 24px;
	}

	.ms-article__header,
	.ms-article__body {
		padding-right: 42px;
		padding-left: 42px;
	}

	.ms-article__cta {
		margin-right: 42px;
		margin-left: 42px;
	}

	.ms-post-nav {
		padding-right: 42px;
		padding-left: 42px;
	}
}

@media (max-width: 900px) {
	.ms-blog-layout {
		grid-template-columns: 1fr;
	}

	.ms-blog-sidebar {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.admin-bar .ms-blog-header {
		top: 46px;
	}
}

@media (max-width: 700px) {
	.ms-blog-container {
		width: min(100% - 28px, 1180px);
	}

	.ms-blog-header__inner {
		min-height: 68px;
	}

	.ms-blog-header__logo img {
		width: 175px;
	}

	.ms-blog-header__phone,
	.ms-blog-header__actions .ms-button {
		display: none;
	}

	.ms-blog-main {
		padding-top: 18px;
		padding-bottom: 68px;
	}

	.ms-breadcrumb {
		margin-bottom: 16px;
	}

	.ms-article {
		border-radius: 14px;
	}

	.ms-article__header {
		padding: 34px 24px 28px;
	}

	.ms-article__header h1 {
		font-size: clamp(25px, 7vw, 34px);
	}

	.ms-article__meta {
		margin-top: 18px;
	}

	.ms-article__body {
		padding: 34px 24px 10px;
		font-size: 16px;
		line-height: 1.95;
	}

	.ms-article__body h2 {
		font-size: 21px;
	}

	.ms-article__body h3 {
		font-size: 19px;
	}

	.ms-article__cta {
		margin: 30px 20px 38px;
		padding: 26px 22px;
		flex-direction: column;
		align-items: stretch;
	}

	.ms-article__cta-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.ms-article__cta .ms-button {
		min-width: 0;
		padding-inline: 12px;
	}

	.ms-post-nav {
		padding: 0 20px 38px;
		grid-template-columns: 1fr;
	}

	.ms-post-nav__next {
		text-align: left;
	}

	.ms-blog-sidebar {
		grid-template-columns: 1fr;
	}

	.ms-blog-footer {
		padding: 36px 0 92px;
		text-align: center;
	}

	.ms-blog-footer__inner {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 18px;
	}

	.ms-blog-footer__inner > img {
		width: 230px;
	}

	.ms-mobile-actions {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 1100;
		display: grid;
		padding: 8px max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		background: rgba(255, 255, 255, 0.96);
		box-shadow: 0 -5px 20px rgba(20, 35, 65, 0.12);
		backdrop-filter: blur(10px);
	}

	.ms-mobile-actions a {
		display: flex;
		min-height: 46px;
		align-items: center;
		justify-content: center;
		background: var(--ms-navy);
		border-radius: 8px;
		color: var(--ms-white);
		font-size: 14px;
		font-weight: 700;
		text-decoration: none;
	}

	.ms-mobile-actions a:last-child {
		background: var(--ms-orange);
	}
}

@media (max-width: 420px) {
	.ms-article__cta-actions {
		grid-template-columns: 1fr;
	}
}

/* ブログカテゴリ一覧 */
.ms-archive-hero {
	position: relative;
	overflow: hidden;
	margin-bottom: 28px;
	padding: 48px 54px;
	background:
		radial-gradient(circle at 88% 15%, rgba(247, 147, 30, 0.2), transparent 27%),
		linear-gradient(135deg, #002378 0%, #075ca8 100%);
	border-radius: 20px;
	box-shadow: 0 14px 36px rgba(0, 35, 120, 0.16);
	color: var(--ms-white);
}

.ms-archive-hero::after {
	position: absolute;
	right: -50px;
	bottom: -85px;
	width: 260px;
	height: 260px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	content: "";
}

.ms-archive-hero > p {
	margin: 0 0 8px;
	color: #ffd6a7;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
}

.ms-archive-hero h1 {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.4;
}

.ms-archive-hero__description {
	position: relative;
	z-index: 1;
	max-width: 720px;
	margin-top: 14px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 14px;
}

.ms-archive-hero__description p {
	margin: 0;
}

.ms-category-nav {
	display: flex;
	margin-bottom: 32px;
	padding: 18px 22px;
	align-items: center;
	gap: 20px;
	background: var(--ms-white);
	border: 1px solid rgba(0, 35, 120, 0.07);
	border-radius: 14px;
	box-shadow: 0 7px 24px rgba(28, 45, 77, 0.05);
}

.ms-category-nav > p {
	flex: 0 0 auto;
	margin: 0;
	color: var(--ms-muted);
	font-size: 13px;
	font-weight: 600;
}

.ms-category-nav ul {
	display: flex;
	margin: 0;
	padding: 0;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
}

.ms-category-nav li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-category-nav li ul {
	display: contents;
}

.ms-category-nav a {
	display: inline-flex;
	padding: 7px 14px;
	background: #eff4fb;
	border-radius: 999px;
	color: var(--ms-blue);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.ms-category-nav a:hover,
.ms-category-nav .current-cat > a {
	background: var(--ms-navy);
	color: var(--ms-white);
}

.ms-archive-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.ms-archive-card {
	min-width: 0;
	overflow: hidden;
	background: var(--ms-white);
	border: 1px solid rgba(0, 35, 120, 0.07);
	border-radius: 16px;
	box-shadow: 0 8px 28px rgba(28, 45, 77, 0.07);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ms-archive-card:hover {
	box-shadow: 0 15px 38px rgba(28, 45, 77, 0.13);
	transform: translateY(-5px);
}

.ms-archive-card__link {
	display: flex;
	height: 100%;
	color: var(--ms-ink);
	flex-direction: column;
	text-decoration: none;
}

.ms-archive-card__image {
	display: flex;
	height: 220px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #f7f9fc;
}

.ms-archive-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.35s ease;
}

.ms-archive-card__image img.wp-post-image {
	object-fit: cover;
}

.ms-archive-card:hover .ms-archive-card__image img.wp-post-image {
	transform: scale(1.04);
}

.ms-archive-card__body {
	display: flex;
	padding: 24px;
	flex: 1;
	flex-direction: column;
}

.ms-archive-card__meta {
	display: flex;
	margin-bottom: 12px;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--ms-muted);
	font-size: 12px;
}

.ms-archive-card__meta span {
	padding: 3px 9px;
	background: #edf4ff;
	border-radius: 999px;
	color: var(--ms-blue);
	font-weight: 600;
}

.ms-archive-card h2 {
	display: -webkit-box;
	margin: 0 0 12px;
	overflow: hidden;
	color: var(--ms-navy);
	font-size: 20px;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ms-archive-card__body > p {
	display: -webkit-box;
	margin: 0 0 20px;
	overflow: hidden;
	color: #5a6577;
	font-size: 14px;
	line-height: 1.8;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ms-archive-card__more {
	margin-top: auto;
	color: var(--ms-orange);
	font-size: 13px;
	font-weight: 700;
	text-align: right;
}

.ms-pagination {
	margin-top: 44px;
}

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

.ms-pagination .page-numbers {
	display: inline-flex;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	align-items: center;
	justify-content: center;
	background: var(--ms-white);
	border: 1px solid var(--ms-line);
	border-radius: 9px;
	color: var(--ms-blue);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.ms-pagination .page-numbers:hover,
.ms-pagination .page-numbers.current {
	background: var(--ms-navy);
	border-color: var(--ms-navy);
	color: var(--ms-white);
}

.ms-archive-empty {
	padding: 70px 24px;
	background: var(--ms-white);
	border-radius: 16px;
	text-align: center;
}

.ms-archive-empty h2 {
	margin: 0 0 10px;
	color: var(--ms-navy);
}

.ms-archive-empty p {
	margin: 0;
	color: var(--ms-muted);
}

@media (max-width: 900px) {
	.ms-archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.ms-archive-hero {
		margin-bottom: 20px;
		padding: 34px 24px;
		border-radius: 14px;
	}

	.ms-category-nav {
		display: block;
		margin-bottom: 22px;
		padding: 16px;
	}

	.ms-category-nav > p {
		margin-bottom: 10px;
	}

	.ms-archive-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.ms-archive-card__link {
		display: grid;
		grid-template-columns: 38% 62%;
	}

	.ms-archive-card__image {
		height: 100%;
		min-height: 210px;
	}

	.ms-archive-card__body {
		padding: 18px;
	}

	.ms-archive-card h2 {
		font-size: 18px;
	}

	.ms-archive-card__body > p {
		-webkit-line-clamp: 2;
	}
}

@media (max-width: 520px) {
	.ms-archive-card__link {
		display: flex;
	}

	.ms-archive-card__image {
		height: 210px;
		min-height: 0;
	}
}
