/**
 * 固定ページ（page）用スタイル
 * single.css をベースに、固定ページのクラス名に対応
 *
 * @package Toyama_SFJ
 */

/* ========================================
   レイアウト
   ======================================== */

.page .content-area {
	width: 100%;
}

/* ========================================
   WordPress ブロック（Gutenberg）用スタイル
   ======================================== */

.page .entry-content .wp-block-paragraph {
	margin: 0 0 1.2em 0;
}

.page .entry-content .wp-block-heading {
	font-weight: 700;
	color: #333333;
	margin: 1.8em 0 0.5em 0;
}

.page .entry-content .wp-block-heading:first-child {
	margin-top: 0;
}

.page .entry-content h2.wp-block-heading,
.page .entry-content .wp-block-heading h2 {
	font-size: 22px;
	padding-bottom: 8px;
	border-bottom: 2px solid #3A8D78;
	margin: 2em 0 0.6em 0;
}

.page .entry-content h3.wp-block-heading,
.page .entry-content .wp-block-heading h3 {
	font-size: 18px;
	font-weight: 600;
	margin: 1.8em 0 0.5em 0;
}

.page .entry-content h4.wp-block-heading,
.page .entry-content .wp-block-heading h4 {
	font-size: 16px;
	font-weight: 600;
	margin: 1.5em 0 0.4em 0;
}

.page .entry-content .wp-block-list {
	margin: 1em 0;
	padding-left: 1.5em;
}

.page .entry-content .wp-block-list li {
	margin-bottom: 0.4em;
}

.page .entry-content .wp-block-quote {
	margin: 1.5em 0;
	padding: 16px 24px;
	border-left: 4px solid #3A8D78;
	background: #f0f7f5;
	color: #333333;
	font-style: normal;
}

.page .entry-content .wp-block-quote p:last-child {
	margin-bottom: 0;
}

.page .entry-content .wp-block-quote cite {
	display: block;
	font-size: 14px;
	color: #666666;
	margin-top: 8px;
}

.page .entry-content .wp-block-image {
	margin: 1.5em 0;
}

.page .entry-content .wp-block-image img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

.page .entry-content .wp-block-image figcaption {
	font-size: 14px;
	color: #666666;
	margin-top: 8px;
	text-align: center;
}

.page .entry-content .wp-block-gallery {
	display: grid;
	gap: 16px;
	margin: 1.5em 0;
	list-style: none;
	padding: 0;
}

.page .entry-content .wp-block-gallery.columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.page .entry-content .wp-block-gallery.columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.page .entry-content .wp-block-gallery .wp-block-image img,
.page .entry-content .wp-block-gallery figure img {
	border-radius: 8px;
}

.page .entry-content .wp-block-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 1.5em 0;
}

.page .entry-content .wp-block-column {
	flex: 1;
	min-width: 0;
}

.page .entry-content .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 1.5em 0;
}

.page .entry-content .wp-block-button__link {
	display: inline-block;
	padding: 10px 24px;
	background: #3A8D78;
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	transition: opacity 0.2s;
}

.page .entry-content .wp-block-button__link:hover {
	opacity: 0.9;
	color: #ffffff;
}

.page .entry-content .wp-block-table {
	width: 100%;
	margin: 1.5em 0;
	border-collapse: collapse;
	font-size: 15px;
	overflow-x: auto;
	display: block;
}

.page .entry-content .wp-block-table table {
	width: 100%;
	min-width: 280px;
	border-collapse: collapse;
}

.page .entry-content .wp-block-table th,
.page .entry-content .wp-block-table td {
	padding: 12px 16px;
	border: 1px solid #e0e0e0;
	text-align: left;
}

.page .entry-content .wp-block-table th {
	background: #f0f7f5;
	color: #333333;
	font-weight: 600;
}

.page .entry-content .wp-block-table tr:nth-child(even) td {
	background: #fafafa;
}

.page .entry-content .wp-block-separator {
	border: none;
	border-top: 2px solid #e8e8e8;
	margin: 2em 0;
}

.page .entry-content .wp-block-separator.is-style-wide {
	width: 100%;
}

.page .entry-content .wp-block-code {
	margin: 1.5em 0;
	padding: 20px 24px;
	background: #2d2d2d;
	color: #e0e0e0;
	font-size: 14px;
	line-height: 1.6;
	border-radius: 8px;
	overflow-x: auto;
}

.page .entry-content .wp-block-code code {
	background: none;
	padding: 0;
	color: inherit;
	font-family: inherit;
}

.page .entry-content .wp-block-embed {
	margin: 1.5em 0;
}

.page .entry-content .wp-block-embed iframe {
	max-width: 100%;
	display: block;
}

.page .entry-content .wp-block-group {
	margin: 1.5em 0;
}

.page .entry-content .wp-block-group__inner-container {
	padding: 24px;
	background: #f8f9f8;
	border-radius: 8px;
	border: 1px solid #e8e8e8;
}

.page .entry-content .wp-block-file {
	margin: 0.8em 0;
}

/* レスポンシブ */
@media (max-width: 768px) {
	.page .entry-header,
	.page .entry-content {
		padding: 24px 20px;
	}

	.page .entry-title {
		font-size: 22px;
	}

	.page .entry-content {
		font-size: 15px;
	}

	.page .entry-content h2,
	.page .entry-content h2.wp-block-heading {
		font-size: 20px;
	}

	/* ブロック：カラム・ギャラリーを縦並びに */
	.page .entry-content .wp-block-columns {
		flex-direction: column;
	}

	.page .entry-content .wp-block-gallery.columns-2,
	.page .entry-content .wp-block-gallery.columns-3 {
		grid-template-columns: 1fr;
	}
}

/* ========================================
   WP Sitemap Page
   ======================================== */

.wsp-container {
	max-width: 980px;
	margin: 0 auto;
	padding: 0 22px;
}

.wsp-container h2 {
	font-size: 18px;
	font-weight: 700;
	color: #333333;
	padding-bottom: 8px;
	border-bottom: 2px solid #3A8D78;
	margin: 32px 0 16px 0;
}

.wsp-container h2:first-child {
	margin-top: 0;
}

.wsp-container ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
}

.wsp-container li {
	border-bottom: 1px solid #e8e8e8;
}

.wsp-container li a {
	display: block;
	padding: 12px 16px;
	color: #333333;
	text-decoration: none;
	font-size: 15px;
	transition: background 0.2s ease, color 0.2s ease;
}

.wsp-container li a:hover {
	background: #f0f7f5;
	color: #3A8D78;
}

@media (max-width: 768px) {
	.wsp-container h2 {
		font-size: 16px;
	}

	.wsp-container li a {
		font-size: 14px;
		padding: 10px 12px;
	}
}
/*fontスタイル追記*/
h4.wp-block-heading {
    margin-bottom: 1rem;
}
h5.wp-block-heading {
    color: #999;
    border-left: 0.5rem solid;
    padding-left: 0.5rem;
    margin: 0.5rem 0;
}