:root {
	--mst-text: #1f2937;
	--mst-text-soft: #4b5563;
	--mst-text-muted: #5b6472;
	--mst-bg: #ffffff;
	--mst-bg-soft: #f7f8fa;
	--mst-line: #d9dee7;
	--mst-heading: #111827;
	--mst-accent: #0f3d75;
	--mst-accent-soft: #eef4fb;
	--mst-max: 1120px;
	--mst-radius: 14px;
	--mst-radius-lg: 18px;
	--mst-shadow: 0 10px 30px rgba( 0, 0, 0, 0.05 );
	--mst-shadow-sm: 0 10px 24px rgba( 0, 0, 0, 0.05 );
}

/* ========================================
Base
======================================== */

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

html {
	font-size: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var( --mst-text );
	background: var( --mst-bg );
	font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
	font-size: 17px;
	line-height: 1.9;
	font-weight: 400;
	letter-spacing: 0.01em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

p,
ul,
ol {
	margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-top: 0;
	color: var( --mst-heading );
	line-height: 1.45;
	font-weight: 700;
	letter-spacing: 0.01em;
}

strong,
b {
	font-weight: 700;
}

/* ========================================
Layout
======================================== */

.container {
	width: min( calc( 100% - 32px ), var( --mst-max ) );
	margin-inline: auto;
}

.container--content {
	padding-top: 40px;
	padding-bottom: 72px;
}

.site-main {
	min-height: 60vh;
}

/* ========================================
Header
======================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba( 255, 255, 255, 0.94 );
	border-bottom: 1px solid var( --mst-line );
	backdrop-filter: blur( 10px );
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min( calc( 100% - 32px ), var( --mst-max ) );
	margin-inline: auto;
	padding: 16px 0;
}

/* ===== ブランド ===== */

.site-header__brand {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	flex: 1 1 auto;
}

.site-header__logo img {
	width: auto;
	max-height: 52px;
}

.site-header__title-group {
	min-width: 0;
	flex: 1 1 auto;
}

.site-title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.4;
	font-weight: 700;
}

.site-title a {
	display: inline-block;
	max-width: 100%;
}

/* 説明文（2行制限） */
.site-description {
	margin: 6px 0 0;
	color: var( --mst-text-soft );
	font-size: 0.9rem;
	line-height: 1.5;
	min-width: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* ===== ナビ ===== */

.global-nav {
	flex: 0 0 auto;
}

.global-nav__menu,
.footer-nav__menu {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.global-nav__menu a,
.footer-nav__menu a {
	display: inline-block;
	padding: 8px 0;
	font-size: 1rem;
	line-height: 1.5;
	font-weight: 700;
}

.global-nav__menu a:hover,
.footer-nav__menu a:hover {
	opacity: 0.7;
}

/* ===== ハンバーガー ===== */

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.nav-toggle__line {
	display: block;
	width: 22px;
	height: 2px;
	margin-inline: auto;
	background: var( --mst-heading );
}

/* ===== モバイル ===== */

@media ( max-width: 768px ) {

	.site-description {
		display: none;
	}

}

/* ========================================
Hero
======================================== */

.hero {
	padding: 72px 0 56px;
	background: linear-gradient( 180deg, var( --mst-accent-soft ) 0%, #ffffff 100% );
	border-bottom: 1px solid var( --mst-line );
}

.hero__inner {
	width: min( calc( 100% - 32px ), var( --mst-max ) );
	margin-inline: auto;
}

.hero__content {
	max-width: 760px;
}

.hero__lead {
	margin-bottom: 12px;
	color: var( --mst-accent );
	font-size: 1.05rem;
	font-weight: 700;
}

.hero__title {
	margin-bottom: 20px;
	font-size: clamp( 2.2rem, 5vw, 3.8rem );
	line-height: 1.25;
	font-weight: 700;
}

.hero__text {
	max-width: 38em;
	color: var( --mst-text-soft );
	font-size: 1.125rem;
	line-height: 1.9;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

/* ========================================
Buttons / Links
======================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 1rem;
	line-height: 1.4;
	font-weight: 700;
	transition: 0.2s ease;
}

.btn:hover {
	transform: translateY( -1px );
}

.btn--primary {
	color: #ffffff;
	background: var( --mst-accent );
	border-color: var( --mst-accent );
}

.btn--ghost {
	color: var( --mst-accent );
	background: #ffffff;
	border-color: var( --mst-line );
}

.text-link {
	color: var( --mst-accent );
	font-weight: 700;
}

/* ========================================
Top Sections
======================================== */

.top-section {
	padding: 56px 0;
}
.top-section--full {
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	width: 100vw;
	padding: 56px 0;
	background: var( --mst-bg-soft );
}

.top-section--news {
	background: var( --mst-bg-soft );
	border-top: 1px solid var( --mst-line );
	border-bottom: 1px solid var( --mst-line );
}

.section-heading {
	margin-bottom: 24px;
}

.section-heading h2 {
	margin: 0 0 10px;
	padding-bottom: 0;
	border-bottom: 0;
	font-size: clamp( 1.6rem, 3vw, 2rem );
	line-height: 1.4;
	font-weight: 700;
}

.section-heading p {
	margin: 0;
	color: var( --mst-text-soft );
	font-size: 1rem;
	line-height: 1.8;
}

.about-box p {
	margin-top: 14px;
	line-height: 1.8;
}

.btn--sm {
	min-height: 36px;
	padding: 0 14px;
	font-size: 0.9rem;
}

.about-box p.about-box__more {
	margin-top: 26px;
	display: flex;
	justify-content: center;
}

/* ========================================
Generic Cards
======================================== */

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

.card {
	padding: 24px;
	background: #ffffff;
	border: 1px solid var( --mst-line );
	border-radius: var( --mst-radius );
	box-shadow: var( --mst-shadow );
}

.card h3 {
	margin: 0 0 10px;
	padding-bottom: 0;
	border-bottom: 0;
	font-size: 1.2rem;
	line-height: 1.5;
	font-weight: 700;
}

.card p {
	margin: 0;
	color: var( --mst-text-soft );
	font-size: 1rem;
	line-height: 1.85;
}

.card-grid--entry {
	align-items: stretch;
}
.card--entry {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.card--entry .card__link {
	margin-top: auto;
	width: 100%;
	display: flex;
	justify-content: flex-end;
	padding-top: 16px;
}

.top-section--full .hero__actions {
	margin-top: 24px;
}

/* ========================================
Content Layout
======================================== */

.content-layout {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) 280px;
	gap: 40px;
}

.content-layout__main,
.content-layout__sidebar {
	min-width: 0;
}

/* ========================================
Page Header
======================================== */

.page-header {
	margin-bottom: 28px;
	padding-bottom: 18px;
	border-bottom: 1px solid var( --mst-line );
}

.page-header__title {
	margin: 0 0 8px;
	font-size: clamp( 1.9rem, 3vw, 2.5rem );
	line-height: 1.4;
	font-weight: 700;
}

.page-header__description {
	margin: 0;
	color: var( --mst-text-soft );
	font-size: 1rem;
	line-height: 1.8;
}

/* ========================================
Entry
======================================== */

.entry__header {
	margin-bottom: 24px;
}

.entry__meta {
	margin-bottom: 8px;
	color: var( --mst-text-muted );
	font-size: 0.95rem;
	line-height: 1.7;
}

.entry__title {
	margin-bottom: 0;
	font-size: clamp( 2rem, 3vw, 2.7rem );
	line-height: 1.35;
	font-weight: 700;
}

.entry__thumbnail {
	margin-bottom: 28px;
}

.entry__thumbnail img {
	border-radius: var( --mst-radius );
}

.entry__content {
	font-size: 1.06rem;
	line-height: 1.95;
}

.entry__content > * + * {
	margin-top: 1.2em;
}

.entry__content p,
.entry__content li {
	color: var( --mst-text );
}

.entry__content h2 {
	margin-top: 2.2em;
	margin-bottom: 0.8em;
	padding-bottom: 0.45em;
	border-bottom: 1px solid var( --mst-line );
	font-size: 1.6rem;
	line-height: 1.45;
	font-weight: 700;
}

.entry__content h3 {
	margin-top: 1.9em;
	margin-bottom: 0.7em;
	font-size: 1.28rem;
	line-height: 1.5;
	font-weight: 700;
}

/* 本文内のページ導入・コンポーネント見出しは、本文用h2装飾を外す */
.entry__content .page-header h2,
.entry__content .section-heading h2,
.entry__content .card h3,
.entry__content .service-card h2.service-card__title,
.entry__content .service-card h3.service-card__title {
	margin-top: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

/* ========================================
Post List
======================================== */

.post-list {
	display: grid;
	gap: 20px;
}

.post-card {
	background: #ffffff;
	border: 1px solid var( --mst-line );
	border-radius: var( --mst-radius );
	box-shadow: var( --mst-shadow );
	overflow: hidden;
}

.post-card__link {
	display: grid;
	grid-template-columns: 260px minmax( 0, 1fr );
}

.post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__body {
	padding: 20px;
}

.post-card__meta {
	margin-bottom: 8px;
	color: var( --mst-text-muted );
	font-size: 0.95rem;
}

.post-card__title {
	margin-bottom: 10px;
	font-size: 1.25rem;
	line-height: 1.5;
	font-weight: 700;
}

.post-card__excerpt {
	color: var( --mst-text-soft );
	font-size: 1rem;
	line-height: 1.8;
}

/* ========================================
Sidebar
======================================== */

.widget {
	padding: 20px;
	background: #ffffff;
	border: 1px solid var( --mst-line );
	border-radius: var( --mst-radius );
}

.widget + .widget {
	margin-top: 20px;
}

.widget-title {
	margin-bottom: 12px;
	font-size: 1.05rem;
	line-height: 1.5;
	font-weight: 700;
}

/* ========================================
Footer
======================================== */

.site-footer {
	margin-top: 40px;
	background: #fafafa;
	border-top: 1px solid var( --mst-line );
}

.site-footer__inner {
	width: min( calc( 100% - 32px ), var( --mst-max ) );
	margin-inline: auto;
	padding: 32px 0;
}

.site-footer__copy {
	margin-top: 16px;
	text-align: center;
	color: var( --mst-text-muted );
	font-size: 0.95rem;
	line-height: 1.7;
}

/* ========================================
Utilities
======================================== */

.pagination {
	margin-top: 32px;
}

.content-none {
	padding: 24px;
	background: #ffffff;
	border: 1px solid var( --mst-line );
	border-radius: var( --mst-radius );
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}

/* ========================================
Service Page
======================================== */

.service-list {
	padding: 20px 0 56px;
}

.service-grid {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 24px;
}

.service-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 280px;
	background: #ffffff;
	border: 1px solid var( --mst-line );
	border-radius: var( --mst-radius-lg );
	box-shadow: var( --mst-shadow-sm );
	overflow: hidden;
}

.service-card__body {
	padding: 26px 26px 18px;
}

.service-card__footer {
	padding: 0 26px 24px;
	margin-top: auto;
}

.service-card__label {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 10px;
	margin-bottom: 14px;
	border-radius: 999px;
	background: var( --mst-accent-soft );
	color: var( --mst-accent );
	font-size: 0.88rem;
	line-height: 1.4;
	font-weight: 700;
}

.service-card h2.service-card__title,
.service-card h3.service-card__title {
	margin: 0 0 12px;
	padding-bottom: 0;
	border-bottom: 0;
	color: var( --mst-heading );
	font-size: 1.45rem;
	line-height: 1.45;
	font-weight: 700;
}

.service-card__text {
	margin: 0;
	color: var( --mst-text-soft );
	font-size: 1rem;
	line-height: 1.9;
}

.service-card__price {
	margin: 16px 0 0;
	color: var( --mst-heading );
	font-size: 1.05rem;
	line-height: 1.7;
	font-weight: 700;
}

.service-card__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 16px;
	border: 1px solid var( --mst-line );
	border-radius: 999px;
	background: #ffffff;
	color: var( --mst-accent );
	font-size: 0.98rem;
	line-height: 1.4;
	font-weight: 700;
	transition: 0.2s ease;
}

.service-card__link:hover {
	transform: translateY( -1px );
	opacity: 0.92;
}

.service-card__link--primary {
	color: #ffffff;
	background: var( --mst-accent );
	border-color: var( --mst-accent );
}

.service-card--featured {
	background: linear-gradient( 180deg, #ffffff 0%, var( --mst-accent-soft ) 100% );
	border: 2px solid var( --mst-accent );
}

/* サービスページ内の補助セクション */
.entry__content .top-section:first-of-type {
	margin-top: 0;
}

.entry__content .top-section .card-grid {
	margin-top: 0;
}

.entry__content .top-section .hero__actions {
	margin-top: 20px;
}

/* ========================================
Responsive
======================================== */

@media ( max-width: 960px ) {
	.card-grid {
		grid-template-columns: 1fr;
	}

	.content-layout {
		grid-template-columns: 1fr;
	}

	.post-card__link {
		grid-template-columns: 1fr;
	}

	.service-grid {
		grid-template-columns: 1fr;
	}
}

@media ( max-width: 768px ) {
	body {
		font-size: 16px;
		line-height: 1.85;
	}

	.site-header__inner {
		flex-wrap: wrap;
	}

	.site-title {
		font-size: 1.125rem;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.global-nav {
		display: none;
		width: 100%;
		padding-top: 8px;
	}

	.global-nav.is-open {
		display: block;
	}

	.global-nav__menu {
		flex-direction: column;
		gap: 0;
	}

	.global-nav__menu li + li {
		border-top: 1px solid var( --mst-line );
	}

	.global-nav__menu a {
		display: block;
		padding: 14px 0;
	}

	.hero {
		padding: 56px 0 40px;
	}

	.hero__title {
		font-size: clamp( 2rem, 8vw, 2.6rem );
	}

	.hero__text {
		font-size: 1.05rem;
	}

	.entry__content {
		font-size: 1rem;
		line-height: 1.9;
	}

	.section-heading h2 {
		font-size: 1.5rem;
	}

	.post-card__title,
	.card h3 {
		font-size: 1.125rem;
	}

	.top-section {
		padding: 44px 0;
	}

	.service-list {
		padding: 12px 0 44px;
	}

	.service-card {
		min-height: auto;
	}

	.service-card__body {
		padding: 22px 20px 16px;
	}

	.service-card__footer {
		padding: 0 20px 20px;
	}

	.service-card h2.service-card__title,
	.service-card h3.service-card__title {
		font-size: 1.25rem;
	}

	.service-card__text {
		font-size: 0.98rem;
		line-height: 1.85;
	}
}

.works-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding-top: 22px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.works-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: var( --mst-accent );
	border-radius: var( --mst-radius ) var( --mst-radius ) 0 0;
}

.works-card h3 {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.45;
}

.works-card__type {
	display: inline-flex;
	min-height: 30px;
	margin-top: 0;
	font-size: 0.88rem;
	line-height: 1.4;
	font-weight: 700;
}

.works-card__link {
	display: flex;
	justify-content: flex-end;
	margin-top: auto;
	padding-top: 18px;
}

.works-card__link a {
	display: inline-flex	align-items: center;
	gap: 8px;
	color: var( --mst-accent );
	font-weight: 700;
	line-height: 1.5;
}

.works-card__link a::after {
	content: "→";
	font-size: 0.95em;
	line-height: 1;
	transition: transform 0.2s ease;
}

.works-card__link a:hover::after {
	transform: translateX( 2px );
}

.anshin-image {
	margin: 8px auto 0;
	max-width: 640px;
}

.anshin-image img {
	width: 100%;
	height: auto;
	border-radius: var( --mst-radius );
	border: 1px solid var( --mst-line );
}

/* ========================================
Contact Form 7（cf7-form構造）
======================================== */

.contact-form-wrap {
	max-width: 760px;
}

.contact-note {
	margin-top: 18px;
	color: var( --mst-text-soft );
	font-size: 0.95rem;
	line-height: 1.8;
}

.cf7-form {
	display: grid;
	gap: 20px;
}

.cf7-field {
	display: block;
}

.cf7-field label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	color: var( --mst-heading );
	font-size: 1rem;
	line-height: 1.5;
	font-weight: 700;
}

/* 必須・任意 */
.cf7-required,
.cf7-any {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 0 8px;
	border-radius: 999px;
	font-size: 0.78rem;
	line-height: 1.2;
	font-weight: 700;
}

.cf7-required {
	background: rgba( 185, 28, 28, 0.08 );
	color: #b91c1c;
}

.cf7-any {
	background: var( --mst-accent-soft );
	color: var( --mst-accent );
}

/* 入力 */
.cf7-form input[type="text"],
.cf7-form input[type="email"],
.cf7-form input[type="tel"],
.cf7-form select,
.cf7-form textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var( --mst-line );
	border-radius: 12px;
	background: #ffffff;
	color: var( --mst-text );
	font-size: 1rem;
	line-height: 1.6;
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	appearance: none;
}

.cf7-form textarea {
	min-height: 220px;
	resize: vertical;
}

.cf7-form input::placeholder,
.cf7-form textarea::placeholder {
	color: #8a94a6;
}

.cf7-form input:focus,
.cf7-form select:focus,
.cf7-form textarea:focus {
	outline: none;
	border-color: rgba( 15, 61, 117, 0.42 );
	box-shadow: 0 0 0 4px rgba( 15, 61, 117, 0.08 );
}

/* 送信 */
.cf7-submit {
	padding-top: 6px;
}

.cf7-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 22px;
	border: 1px solid var( --mst-accent );
	border-radius: 999px;
	background: var( --mst-accent );
	color: #ffffff;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.cf7-form input[type="submit"]:hover {
	transform: translateY( -1px );
	opacity: 0.96;
}

/* メッセージ */
.wpcf7 form .wpcf7-response-output {
	margin-top: 20px;
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 0.95rem;
	line-height: 1.7;
}

.wpcf7 form.invalid .wpcf7-response-output {
	border: 1px solid rgba( 185, 28, 28, 0.25 );
	background: rgba( 185, 28, 28, 0.04 );
	color: #7f1d1d;
}

.wpcf7 form.sent .wpcf7-response-output {
	border: 1px solid rgba( 22, 101, 52, 0.22 );
	background: rgba( 22, 101, 52, 0.05 );
	color: #166534;
}

.wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 0.88rem;
	color: #b91c1c;
}

/* スマホ */
@media ( max-width: 768px ) {
	.cf7-form {
		gap: 18px;
	}

	.cf7-form input,
	.cf7-form select,
	.cf7-form textarea {
		font-size: 16px;
		padding: 13px 14px;
	}

	.cf7-form textarea {
		min-height: 180px;
	}

	.cf7-form input[type="submit"] {
		width: 100%;
	}
}
