/* ==========================================================
   見出し・本文サイズの統一ルール（サイト全体共通）
   ========================================================== */
h1 {
	font-size: 2.5rem;
	line-height: 1.3;
}

h2 {
	font-size: 1.8rem;
	line-height: 1.4;
}

h3 {
	font-size: 1.25rem;
	line-height: 1.4;
}

p, li {
	font-size: 1rem;
	line-height: 1.7;
}

/* ページ本文の見出し上の余白を詰める */
.wp-block-post-content > :first-child,
.entry-content > :first-child {
	margin-top: 0 !important;
}

.entry-content, .wp-block-post-content {
	padding-top: 0 !important;
}

/* サブページの本文見出し（テーマ側の巨大化を抑え、統一ルールに揃える） */
.entry-content h1:first-of-type,
.wp-block-post-content h1:first-of-type {
	font-size: 2.5rem !important;
	line-height: 1.3 !important;
	margin-top: .5em !important;
}

.entry-content h2,
.wp-block-post-content h2 {
	font-size: 1.8rem !important;
	margin-top: 0 !important;
}

.entry-content section,
.wp-block-post-content section {
	padding: 0 !important;
}

.profile-section {
	margin-top: 24px !important;
}

/* ==========================================================
   業務案内・サービスブロック
   ========================================================== */
.services {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.service-block {
	background: #F1F5F3;
	border-left: 4px solid #1E3A5F;
	border-radius: 6px;
	padding: 24px 28px;
	display: flex;
	gap: 20px;
	align-items: flex-start;
	transition: transform .25s ease, box-shadow .25s ease;
}

.service-block:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(30, 58, 95, 0.15);
}

.service-icon {
	font-size: 32px;
	line-height: 1;
	flex-shrink: 0;
}

.service-block h3 {
	margin: 0 0 8px;
	color: #1E3A5F;
}

.service-block h3 a {
	color: inherit;
	text-decoration: none;
}

.service-block h3 a:hover {
	text-decoration: underline;
}

.service-block p {
	margin: 0;
}

/* ==========================================================
   プロフィール・情報カード
   ========================================================== */
.profile-intro p {
	margin-bottom: 16px;
	line-height: 1.8;
}

.info-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 16px;
}

.info-card {
	background: #F1F5F3;
	border-left: 4px solid #1E3A5F;
	border-radius: 6px;
	padding: 16px 20px;
	display: flex;
	gap: 12px;
	align-items: center;
	flex: 1 1 45%;
	min-width: 220px;
}

.info-icon {
	font-size: 24px;
}

.info-card h4 {
	margin: 0;
	font-size: .875rem;
	color: #666;
}

.info-card h4:empty {
	display: none;
}

.info-card p {
	margin: 2px 0 0;
	font-weight: bold;
}

.profile-photo-area {
	text-align: center;
	margin: 24px 0;
}

.profile-photo {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #F1F5F3;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ==========================================================
   来訪案内・フロー・FAQ・強み・特徴カード
   ========================================================== */
.visit-note {
	background: #F1F5F3;
	border-left: 4px solid #2F5D50;
	border-radius: 6px;
	padding: 20px 24px;
	margin-top: 16px;
}

.visit-note p {
	margin: 0 0 8px;
}

.visit-note p:last-child {
	margin-bottom: 0;
}

.flow-steps {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 16px;
}

.flow-step {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: #F1F5F3;
	border-radius: 6px;
	padding: 16px 20px;
}

.flow-number {
	background: #1E3A5F;
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	flex-shrink: 0;
}

.flow-step h4 {
	margin: 0 0 4px;
	color: #1E3A5F;
}

.flow-step p {
	margin: 0;
}

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 16px;
}

.faq-item {
	border-left: 4px solid #2F5D50;
	background: #F1F5F3;
	border-radius: 6px;
	padding: 16px 20px;
}

.faq-question {
	font-weight: bold;
	color: #1E3A5F;
	margin-bottom: 6px;
}

.faq-answer {
	margin: 0;
}

.strength-banner {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: #F1F5F3;
	border-left: 4px solid #2F5D50;
	border-radius: 6px;
	padding: 20px 24px;
	margin: 16px 0 24px;
}

.strength-icon {
	font-size: 32px;
	flex-shrink: 0;
}

.strength-banner h4 {
	margin: 0 0 6px;
	color: #1E3A5F;
}

.strength-banner p {
	margin: 0;
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-top: 16px;
}

.feature-card {
	background: #F1F5F3;
	border-radius: 6px;
	padding: 20px;
	border-top: 4px solid #1E3A5F;
	transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(30, 58, 95, 0.15);
}

.feature-icon {
	font-size: 28px;
	margin-bottom: 8px;
}

.feature-card h4 {
	margin: 0 0 8px;
	color: #1E3A5F;
}

.feature-card p {
	margin: 0;
}

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

/* ==========================================================
   料金表（汎用）
   ========================================================== */
.price-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 16px;
}

.price-table th, .price-table td {
	border: 1px solid #ddd;
	padding: 12px 16px;
	text-align: left;
}

.price-table th {
	background: #1E3A5F;
	color: #fff;
}

.price-table tr:nth-child(even) {
	background: #F1F5F3;
}

.price-note {
	font-size: .875rem;
	color: #666;
	margin-top: 12px;
}

@media (max-width: 600px) {
	.price-table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}
	
	.price-table th, .price-table td {
		white-space: normal;
		min-width: 110px;
	}
}

/* ==========================================================
   ヘッダー・ナビゲーション
   ========================================================== */
.wp-block-template-part.wp-block-group.header,
header.wp-block-group {
	border-bottom: 3px solid #1E3A5F;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.site-title, .wp-block-site-title {
	letter-spacing: .03em;
}

.wp-block-navigation-item__content {
	position: relative;
	padding-bottom: 4px !important;
	transition: color .2s ease;
}

.wp-block-navigation-item__content:hover {
	color: #1E3A5F !important;
}

.wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: #2F5D50;
	transition: width .25s ease;
}

.wp-block-navigation-item__content:hover::after {
	width: 100%;
}

/* ==========================================================
   ヒーローエリア（トップページ）
   ========================================================== */
.hero {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 2rem;
	padding-bottom: 2.5rem;
}

.hero-logo {
	max-width: 260px;
	width: 100%;
	height: auto;
	margin: 0 auto .5rem;
	display: block;
}

.hero-location {
	font-size: 1.1rem;
	font-weight: 700;
	color: #FFFFFF;
	background: #2F5D50;
	display: inline-block;
	padding: .35rem 1rem;
	border-radius: 20px;
	letter-spacing: .05em;
	margin: 0 0 1rem;
}

/* ボタンのホバー演出 */
.btn {
	transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(30, 58, 95, 0.25);
}

/* ==========================================================
   コラム記事
   ========================================================== */
.column-post h2 {
	color: #1E3A5F;
	border-left: 4px solid #2F5D50;
	padding-left: .75rem;
	margin-top: 2.5rem;
}

.column-post .column-lead {
	font-size: 1.1rem;
	font-weight: 600;
	color: #2F5D50;
}

.column-post blockquote.column-example {
	background: #F7F5F0;
	border-left: 4px solid #2F5D50;
	padding: 1rem 1.25rem;
	margin: 1.5rem 0;
}

.column-post blockquote.column-example p {
	margin: .4rem 0;
}

.column-post .column-note {
	font-size: .875rem;
	color: #555;
	background: #F0F4F2;
	border-left: 3px solid #1E3A5F;
	padding: .6rem 1rem;
}

.column-post ul {
	padding-left: 1.5rem;
}

/* ==========================================================
   トップページ：コラム誘導セクション（単発カード）
   ========================================================== */
.column-teaser {
	max-width: 900px;
	margin: 3rem auto;
	padding: 0 1rem;
}

.column-teaser-label {
	font-size: .875rem;
	font-weight: 700;
	color: #2F5D50;
	margin-bottom: .75rem;
}

.column-teaser-card {
	display: flex;
	align-items: stretch;
	text-decoration: none;
	background: #F7F5F0;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #E3DFD6;
	transition: transform .25s ease, box-shadow .25s ease;
}

.column-teaser-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(30, 58, 95, 0.15);
}

.column-teaser-thumb {
	width: 240px;
	min-width: 240px;
	object-fit: cover;
}

.column-teaser-body {
	padding: 1.25rem 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.column-teaser-cat {
	font-size: .875rem;
	color: #2F5D50;
	margin: 0 0 .4rem;
}

.column-teaser-title {
	font-size: 1.15rem;
	color: #1E3A5F;
	margin: 0 0 .5rem;
}

.column-teaser-lead {
	font-size: .9rem;
	color: #555;
	margin: 0 0 .75rem;
}

.column-teaser-link {
	font-size: .9rem;
	font-weight: 600;
	color: #2F5D50;
}

@media (max-width: 640px) {
	.column-teaser-card {
		flex-direction: column;
	}
	
	.column-teaser-thumb {
		width: 100%;
		min-width: 0;
		height: 180px;
	}
}

/* ==========================================================
   トップページ：最新記事スライド風リスト
   ========================================================== */
.column-slider-wrap {
	max-width: 900px;
	margin: 3rem auto;
	padding: 0 1rem;
}

.column-slider.wp-block-latest-posts.is-grid.columns-3 {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 1rem;
	padding-bottom: .75rem;
	grid-template-columns: none;
}

.column-slider.wp-block-latest-posts.is-grid.columns-3 > li {
	flex: 0 0 260px;
	scroll-snap-align: start;
	list-style: none;
	background: #F7F5F0;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #E3DFD6;
	transition: transform .25s ease, box-shadow .25s ease;
}

.column-slider.wp-block-latest-posts.is-grid.columns-3 > li:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(30, 58, 95, 0.15);
}

.column-slider .wp-block-latest-posts__featured-image img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	margin: 0;
}

.column-slider li > a {
	display: block;
	padding: .9rem 1rem .3rem;
	color: #1E3A5F;
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none;
}

.column-slider .wp-block-latest-posts__post-date {
	display: block;
	padding: 0 1rem 1rem;
	font-size: .875rem;
	color: #2F5D50;
}

/* ==========================================================
   固定ページ：コラム一覧（latest-postsグリッド）
   ========================================================== */
.column-index-grid li {
	transition: transform .25s ease, box-shadow .25s ease;
}

.column-index-grid li:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(30, 58, 95, 0.15);
}

/* ==========================================================
   障害福祉コンサル料金表
   ========================================================== */
.fee-table-section {
	max-width: 900px;
	margin: 3rem auto;
	padding: 0 1rem;
}

.fee-table-section h2 {
	color: #1E3A5F;
}

.fee-table-lead {
	color: #555;
	margin-bottom: 1.5rem;
}

.fee-table-wrap {
	overflow-x: auto;
	border-radius: 12px;
	border: 1px solid #E3DFD6;
}

.fee-table {
	width: 100%;
	border-collapse: collapse;
	background: #FFFFFF;
}

.fee-table thead th {
	background: #1E3A5F;
	color: #FFFFFF;
	text-align: left;
	padding: .9rem 1.1rem;
	font-size: .95rem;
}

.fee-table tbody td {
	padding: .9rem 1.1rem;
	border-top: 1px solid #E3DFD6;
	font-size: .9rem;
	color: #333333;
	vertical-align: top;
}

.fee-table tbody tr:nth-child(even) {
	background: #F7F5F0;
}

.fee-price {
	color: #2F5D50;
	font-weight: 700;
	white-space: nowrap;
}

.fee-free {
	color: #2F5D50;
}

.fee-table-note {
	font-size: .875rem;
	color: #777;
	margin-top: 1rem;
}

@media (max-width: 640px) {
	.fee-table thead {
		display: none;
	}
	
	.fee-table, .fee-table tbody, .fee-table tr, .fee-table td {
		display: block;
		width: 100%;
	}
	
	.fee-table tbody tr {
		border-top: 1px solid #E3DFD6;
		padding: .75rem 1rem;
	}
	
	.fee-table td {
		border-top: none;
		padding: .25rem 0;
	}
	
	.fee-table td::before {
		content: attr(data-label);
		display: block;
		font-size: .75rem;
		color: #2F5D50;
		font-weight: 600;
	}
}

/* グループホーム連載コラム：趣旨ページ用スタイル */
.column-post .column-lead {
	font-size: 1.1rem;
	font-weight: 600;
	color: #2F5D50;
}

.column-post h2 {
	color: #1E3A5F;
	border-left: 4px solid #2F5D50;
	padding-left: .75rem;
	margin-top: 2.5rem;
}

.column-post ul {
	padding-left: 1.5rem;
}

.column-post .column-note {
	font-size: .875rem;
	color: #555;
	background: #F0F4F2;
	border-left: 3px solid #1E3A5F;
	padding: .6rem 1rem;
	margin-top: 1rem;
}

.column-post .column-note a {
	color: #1B7A8C;
	font-weight: 600;
}

/* 記事誘導カード（立地編・建物編） */
.column-post .column-teaser-card {
	display: block;
	text-decoration: none;
	background: #F7F5F0;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #E3DFD6;
	transition: transform .25s ease, box-shadow .25s ease;
	margin: 1rem 0;
}

.column-post .column-teaser-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(30, 58, 95, 0.15);
}

.column-post .column-teaser-body {
	padding: 1.25rem 1.5rem;
}

.column-post .column-teaser-cat {
	font-size: .875rem;
	color: #2F5D50;
	margin: 0 0 .4rem;
}

.column-post .column-teaser-title {
	font-size: 1.15rem;
	color: #1E3A5F;
	margin: 0 0 .5rem;
}

.column-post .column-teaser-lead {
	font-size: .9rem;
	color: #555;
	margin: 0 0 .75rem;
}

.column-post .column-teaser-link {
	font-size: .9rem;
	font-weight: 600;
	color: #2F5D50;
}

/* アイキャッチ画像がスマホ幅で見切れる問題の修正（インラインスタイルを上書き） */
.wp-block-latest-posts__featured-image img,
.wp-block-post-featured-image img,
.entry-content img,
.wp-post-image,
figure img {
	max-width: 100% !important;
	width: 100% !important;
	height: auto !important;
	object-fit: contain !important;
	aspect-ratio: auto !important;
}

.wp-block-latest-posts__featured-image,
.wp-block-post-featured-image,
figure.wp-block-post-featured-image {
	max-width: 100% !important;
	width: 100% !important;
	height: auto !important;
	overflow: visible !important;
}

/* 地区計画コラム：共同住宅・寄宿舎の強調表示 */
.gh-highlight {
	color: #1B7A8C;
	background: #E8F4F1;
	padding: .05em .35em;
	border-radius: 4px;
	font-weight: 700;
}

/* コラム一覧・スライダーのサムネイルは固定高さに戻す（汎用画像ルールを上書き） */
.column-index-grid .wp-block-latest-posts__featured-image img,
.column-slider .wp-block-latest-posts__featured-image img {
	height: 160px !important;
	aspect-ratio: auto !important;
	object-fit: cover !important;
	width: 100% !important;
}

/* strength-bannerのスマホ表示崩れを修正 */
@media (max-width: 600px) {
	.strength-banner {
		flex-direction: column;
	}
	
	.strength-icon {
		font-size: 40px;
		text-align: center;
	}
}

/* 資格・登録情報カード内のロゴ画像サイズを固定 */
.info-card img {
	width: 48px !important;
	height: 48px !important;
	object-fit: contain !important;
	object-position: left top !important;
	flex-shrink: 0 !important;
}

/* 絵文字アイコンがスマホで巨大化するのを防ぐ */
.strength-icon,
.feature-icon,
.info-icon,
.service-icon {
	font-size: 32px !important;
	line-height: 1 !important;
	display: inline-block;
}

@media (max-width: 600px) {
	.strength-icon,
			  .feature-icon {
		font-size: 32px !important;
	}
}

/* コラム一覧ページのサムネイル画像を左上基準でクロップ */
.wp-block-latest-posts__featured-image img,
.wp-block-latest-posts__list img {
	object-fit: cover !important;
	object-position: left top !important;
}