﻿/* =========================================================
   Common CSS — Lumina  (Navy #1a3a5c x White)
   ========================================================= */

/* Custom Properties */
:root {
	--navy-dark:      #122a44;
	--navy-light:     #2a5a8c;
	--navy-pale:      #e8eef5;
	--white:          #ffffff;
	--bg:             #f5f7fa;
	--bg-color:       #ffffff;
	--text:           #333333;
	--muted:          #777777;
	--border:         #dde4ee;
	--radius:         6px;
	--shadow:         0 2px 12px rgba(26,58,92,.1);
	--container-width: 1100px;
	--px:             1.5rem;
	--sidebar-w:      280px;
	--header-h:       68px;
	--ease:           .2s ease;
	--list-mark-color: #1a3a5c;
	--my-font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

/* Accessibility */
.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;
}

/* Base */
html, body { margin: 0; padding: 0; }
/* 管理バーによるずれを補正
   WP コアの admin-bar.css は `html { margin-top: 32px !important; }` を
   要素セレクタ (詳細度 0,0,1) で出力する。読み込み順（本番のCSS結合/
   最適化プラグイン等）に左右されず確実に上書きするため、同じ <html> 要素に
   一致しつつ詳細度が高い `:root` (0,1,0) を使う。 */
:root {
	margin-top: 0 !important;
	padding-top: 0 !important;
}
body {
	font-family: var(--my-font-family);
	color: var(--text);
	background: var(--bg-color);
	overflow-x: hidden;
}

/* Layout */
.container { max-width: var(--container-width); margin: 0 auto; padding-top: 0; padding-bottom: 0; padding-left: var(--px); padding-right: var(--px); }
.site-wrap  { display: flex; flex-direction: column; min-height: 100vh; }
#page.site-wrap {
	margin-top: 0;
	padding-top: 0;
	font-size: 0;
	line-height: 0;
}
#page.site-wrap > * {
	font-size: 1rem;
	line-height: 1.7;
}
.site-content { flex: 1; padding: 3rem 0; }
.content-area {
	display: -webkit-box;
	display: -webkit-flex;
	display: flex;
	gap: 2.5rem;
	align-items: flex-start;
}
.main-content {
	width: 100%;
	-webkit-box-flex: 1;
	-webkit-flex: 1 1 auto;
	flex: 1 1 auto;
	min-width: 0;
}

body:not(.has-sidebar) .sidebar { display: none; }
body:not(.has-sidebar) .main-content { max-width: 100%; }

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

/* トップバー＋ヘッダーをまとめて sticky にするラッパー */
.site-header-wrap {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
/* 管理バー表示時: sticky の貼り付き位置を admin bar 分下げる */
.admin-bar .site-header-wrap {
	top: 32px;
}
@media screen and (max-width: 782px) {
	:root {
		margin-top: 0 !important;
		padding-top: 0 !important;
	}
	.admin-bar .site-header-wrap {
		top: 46px;
	}
}

.site-header {
	display: block;
	margin-top: 0;
	padding-top: 0;
	font-size: 0;
	line-height: 0;
	background: #ffffff;
	color: var(--text);
	border-bottom: 2px solid var(--my-color-main);
	overflow: hidden;
}
.site-header > * { margin-top: 0; line-height: 1.7; }
.site-header * {
	font-size: revert;
	line-height: 1.7;
}
.site-header__inner {
	display: flex; align-items: center;
	justify-content: space-between;
	height: var(--header-h); gap: 1.5rem;
	margin-top: 0; padding-top: 0;
}
.site-branding { flex-shrink: 0; margin-top: 0; }
.site-navigation {
	display: flex;
	align-items: center;
	margin-top: 0;
}
.site-logo img { height: 44px; width: auto; }
.site-title { font-size: 1.25rem; font-weight: 700; letter-spacing: .04em; }
.site-title a { color: var(--my-color-main); }
.site-description { font-size: .7rem; color: var(--muted); margin-top: .125rem; }

.site-navigation .nav-menu { display: flex; align-items: center; gap: .125rem; }
.site-navigation .nav-menu li { text-align: center; }
.site-navigation .nav-menu a {
	display: block; color: var(--my-color-main);
	padding: 8px 16px; border-radius: var(--radius);
	font-size: .875rem; font-weight: 500;
	text-align: center;
	transition: color .2s ease, background .2s ease;
}
.nav-menu__desc,
.nav-menu__desc p {
	display: block;
	font-size: .7em;
	font-weight: 400;
	color: var(--muted);
	margin-top: 2px;
	line-height: 1.2;
	text-align: center;
}
.site-navigation .nav-menu a:hover,
.site-navigation .nav-menu .current-menu-item > a,
.site-navigation .nav-menu .current-menu-ancestor > a {
	color: var(--my-color-main);
	background: color-mix(in srgb, var(--my-color-main) 8%, transparent);
}

/* ナビゲーション＋ヘッダーパーツをまとめるラッパー */
.site-header__right {
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* =========================================================
   Header Parts
   ========================================================= */
.header-parts {
	display: flex;
	align-items: center;
	align-self: center;
	gap: .75rem;
	flex-shrink: 0;
}

.header-parts__area {
	display: flex;
	align-items: center;
	align-self: center;
}

/* ヘッダーパーツエリア内のブロックスペーシング（margin-bottom）を無効化 */
.header-parts * {
	margin-bottom: 0 !important;
}

/* .site-header の font-size:0 / line-height:0 が core ブロック
   （paragraph / button など）に em 経由で漏れ込まないよう、
   セレクタ specificity (0,3,0) で具体値に固定する。
   ※ font-size:revert だと WordPress コアブロックの
     body .wp-block-X (0,1,1) に負けて 0 に引き戻される場合がある。 */
.site-header .header-parts .blog-parts {
	display: flex;
	align-items: center;
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text);
}

.site-header .header-parts .blog-parts > * {
	margin-top: 0;
	margin-bottom: 0;
}

/* ヘッダー内のマイボタン: ナビゲーション項目と縦方向に中央揃え */
.header-parts .wp-block-my-theme-my-button {
	align-self: center;
	margin-top: 0;
	margin-bottom: 0;
}

/* スマホではナビと同様に非表示 */
@media (max-width: 768px) {
	.header-parts {
		display: none;
	}
}

/* =========================================================
   Hamburger Button (CSS Checkbox Hack)
   ========================================================= */

/* チェックボックスは視覚的に非表示（display:none より iOS Safari での :checked 動作が確実） */
.nav-toggle {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}

/* ラベル（ハンバーガーボタン） */
.nav-toggle-label {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	cursor: pointer;
	padding: 4px;
	border-radius: var(--radius);
	transition: background var(--ease);
	flex-shrink: 0;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

/* 3本線 */
.nav-toggle-label__line {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--my-color-main);
	border-radius: 2px;
	-webkit-transition: -webkit-transform 0.3s ease, opacity 0.3s ease;
	transition: transform 0.3s ease, opacity 0.3s ease;
	-webkit-transform-origin: center;
	transform-origin: center;
}

/* チェック時: × アイコン */
.nav-toggle:checked ~ .site-header .nav-toggle-label .nav-toggle-label__line:nth-child(1) {
	-webkit-transform: translateY(7px) rotate(45deg);
	transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked ~ .site-header .nav-toggle-label .nav-toggle-label__line:nth-child(2) {
	opacity: 0;
	-webkit-transform: scaleX(0);
	transform: scaleX(0);
}
.nav-toggle:checked ~ .site-header .nav-toggle-label .nav-toggle-label__line:nth-child(3) {
	-webkit-transform: translateY(-7px) rotate(-45deg);
	transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 768px) {
	.nav-toggle-label {
		display: flex;
	}
}

/* =========================================================
   Mobile Menu
   ========================================================= */
.mobile-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 9999;
	background: #ffffff;
	overflow: hidden;
	max-height: 0;
	-webkit-transition: max-height 0.3s ease;
	transition: max-height 0.3s ease;
	box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.nav-toggle:checked ~ .mobile-menu {
	max-height: 80vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
@media (min-width: 769px) {
	.mobile-menu {
		display: none !important;
	}
}
.mobile-menu__nav .nav-menu {
	display: block;
	list-style: none;
	margin: 0;
	padding: 0;
}
.mobile-menu__nav .nav-menu > li {
	border-bottom: 1px solid var(--border);
}
.mobile-menu__nav .nav-menu a {
	display: block;
	padding: 14px 20px;
	color: var(--my-color-main);
	font-size: .9375rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 0;
	transition: background var(--ease);
}
.mobile-menu__nav .nav-menu a:hover {
	background: var(--navy-pale);
}
.mobile-menu__nav .menu-item-has-children {
	position: relative;
}
.mobile-menu__nav .submenu-toggle {
	position: absolute;
	right: 0;
	top: 0;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--my-color-main);
	font-size: .7rem;
	background: none;
	border: none;
	border-left: 1px solid var(--border);
	padding: 0;
	transition: transform 0.3s ease;
	-webkit-user-select: none;
	user-select: none;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}
.mobile-menu__nav .menu-item-has-children.submenu-open > .submenu-toggle {
	-webkit-transform: rotate(180deg);
	transform: rotate(180deg);
}
.mobile-menu__nav .sub-menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--navy-pale);
}
.mobile-menu__nav .menu-item-has-children.submenu-open > .sub-menu {
	display: block;
}
.mobile-menu__nav .sub-menu a {
	padding-left: 36px;
	font-size: .875rem;
}
.mobile-menu__nav .sub-menu li {
	border-bottom: 1px solid rgba(0,0,0,.05);
}
.mobile-menu__nav .sub-menu li:last-child {
	border-bottom: none;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy-dark); color: var(--white); }
.site-footer__widgets { padding: 3rem 0 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-widget-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.site-footer .widget { color: rgba(255,255,255,.7); font-size: .875rem; line-height: 1.8; background: none; border: none; padding: 0; }
.site-footer .widget-title { color: var(--white); border-bottom-color: rgba(255,255,255,.25); font-size: .85rem; letter-spacing: .06em; }
.site-footer .widget a { color: rgba(255,255,255,.7); transition: color var(--ease); }
.site-footer .widget a:hover { color: var(--white); }
.site-footer__bottom { padding: 1.25rem 0; text-align: center; }
.site-footer__bottom .copyright { font-size: .78rem; opacity: .5; }

/* =========================================================
   Top Bar
   ========================================================= */
.top-bar {
	background: var(--my-color-main);
	border-bottom: 1px solid rgba(255,255,255,.1);
	height: 40px;
	overflow: hidden;
	font-size: 0;
	line-height: 0;
}
.top-bar * {
	font-size: revert;
	line-height: 1.5;
}
.top-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 40px;
	gap: 1rem;
}
.top-bar__tagline {
	font-size: .75rem;
	color: rgba(255,255,255,.75);
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex-shrink: 1;
	min-width: 0;
}
.top-bar__right {
	display: flex;
	align-items: center;
	gap: .625rem;
	flex-shrink: 0;
}

/* Search form in topbar
   get_search_form() が出力する標準マークアップ:
   <form class="search-form">
     <label>
       <span class="screen-reader-text">...</span>
       <input type="search" class="search-field" ... />
     </label>
     <input type="submit" class="search-submit" ... />
   </form>
   input[type="search"] は <label> に包まれているため、
   label 側も flex アイテムとして明示し、横並びを固定する。 */
.top-bar__search {
	display: flex;
	align-items: center;
}
.top-bar .search-form {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	box-sizing: border-box;
}
.top-bar .search-form label {
	display: flex;
	align-items: center;
	margin: 0;
	flex-shrink: 0;
}
.top-bar .search-form input[type="search"],
.top-bar .search-field {
	display: block;
	box-sizing: border-box;
	width: 130px;
	height: 26px;
	padding: 0 .5rem;
	margin: 0;
	border: none;
	border-radius: var(--radius) 0 0 var(--radius);
	font-size: .72rem;
	background: rgba(255,255,255,.15);
	color: var(--white);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: background var(--ease), width var(--ease);
	flex-shrink: 0;
}
.top-bar .search-form input[type="search"]::placeholder,
.top-bar .search-field::placeholder { color: rgba(255,255,255,.5); }
.top-bar .search-form input[type="search"]:focus,
.top-bar .search-field:focus {
	background: rgba(255,255,255,.22);
	width: 170px;
}
.top-bar .search-form button[type="submit"],
.top-bar .search-form input[type="submit"],
.top-bar .search-submit {
	display: block;
	box-sizing: border-box;
	width: auto;
	height: 26px;
	padding: 0 .625rem;
	margin: 0;
	border: none;
	border-radius: 0 var(--radius) var(--radius) 0;
	background: rgba(255,255,255,.2);
	color: var(--white);
	font-size: .72rem;
	line-height: 26px;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background var(--ease);
}
.top-bar .search-form button[type="submit"]:hover,
.top-bar .search-form input[type="submit"]:hover,
.top-bar .search-submit:hover { background: rgba(255,255,255,.32); }

/* SNS icons in topbar */
.top-bar__sns {
	display: flex;
	align-items: center;
	gap: .3rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.top-bar__sns-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	color: rgba(255,255,255,.8);
	background: rgba(255,255,255,.1);
	transition: background var(--ease), color var(--ease);
}
.top-bar__sns-link:hover {
	background: rgba(255,255,255,.25);
	color: var(--white);
}
.top-bar__sns-link svg {
	display: block;
	width: 14px;
	height: 14px;
}

/* Mobile */
@media (max-width: 600px) {
	.top-bar__search { display: none; }
	.top-bar__tagline { font-size: .7rem; }
}
@media (max-width: 375px) {
	.top-bar__tagline { display: none; }
}

/* SNS links */
.sns-links { display: flex; justify-content: center; align-items: center; gap: .75rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.sns-links__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: var(--white);
	background: rgba(255,255,255,.12);
	transition: background var(--ease), color var(--ease);
}
.sns-links__link:hover { background: var(--white); color: var(--my-color-main); }
.sns-links__link svg { display: block; }

/* =========================================================
   Sidebar / Widgets
   ========================================================= */
.sidebar { width: var(--sidebar-w); flex-shrink: 0; }
.widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.widget-title { font-size: .875rem; font-weight: 700; color: var(--my-color-main); padding-bottom: .5rem; border-bottom: 2px solid var(--my-color-main); margin-bottom: .875rem; letter-spacing: .04em; }
.widget ul li { padding: .3rem 0; border-bottom: 1px solid var(--border); font-size: .875rem; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a:hover { color: var(--my-color-main); }

/* =========================================================
   Archive / Blog
   ========================================================= */
.archive-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border); }
.archive-title { font-size: 1.5rem; font-weight: 700; color: var(--my-color-main); }
.archive-description { color: var(--muted); margin-top: .5rem; font-size: .9rem; }

.posts-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.post-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--ease), transform var(--ease); }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card__thumb { display: block; overflow: hidden; }
.post-card__thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__thumb--placeholder { aspect-ratio: 16/9; background: var(--navy-pale); }
.post-card__body { padding: 1.125rem; }
.post-card__cat { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--my-color-main); background: var(--navy-pale); padding: .2rem .625rem; border-radius: 20px; margin-bottom: .5rem; }
.post-card__title { font-size: 1rem; font-weight: 700; line-height: 1.5; margin-bottom: .375rem; }
.post-card__title a:hover { color: var(--my-color-main); }
.post-card__meta { font-size: .75rem; color: var(--muted); margin-bottom: .5rem; }
.post-card__excerpt { font-size: .85rem; color: #555; line-height: 1.7; }

/* 投稿リストブロックと同様の、シンプルな1カラムテキストリスト（アーカイブページ用） */
.archive-post-list { list-style: none; margin: 0; padding: 0; }
.archive-post-list__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: .875rem .5rem;
	border-bottom: 1px solid var(--border);
	transition: background-color var(--ease);
}
.archive-post-list__item:first-child { border-top: 1px solid var(--border); }
.archive-post-list__item:hover { background-color: #f5f5f5; }
.archive-post-list__date {
	font-size: .8rem;
	color: var(--muted);
	white-space: nowrap;
	flex-shrink: 0;
	min-width: 6.5em;
	letter-spacing: .02em;
}
.archive-post-list__category {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 100px;
	min-width: 100px;
	flex-shrink: 0;
	box-sizing: border-box;
	padding: .2rem .5rem;
	border-radius: 20px;
	font-size: .75rem;
	font-weight: 700;
	color: var(--my-color-main);
	background: var(--navy-pale);
	white-space: normal;
	word-break: break-all;
	text-align: center;
	line-height: 1.4;
}
.archive-post-list__title { flex: 1; min-width: 0; font-weight: 700; }
.archive-post-list__title a {
	color: inherit;
	text-decoration: none;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.archive-post-list__title a:hover { text-decoration: underline; }

@media (max-width: 767px) {
	.archive-post-list__item { flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 1rem .5rem; }
	.archive-post-list__date { min-width: auto; }
	.archive-post-list__category { width: auto; min-width: auto; }
	.archive-post-list__title { width: 100%; flex-basis: 100%; }
	.archive-post-list__title a { display: block; -webkit-line-clamp: unset; overflow: visible; }
}

/* =========================================================
   Single / Page
   ========================================================= */
.entry { background: var(--white); border-radius: var(--radius); }
.entry-thumbnail { aspect-ratio: 16/6; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.entry-inner { padding: 2rem 2.5rem; }
.entry-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.entry-categories { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .875rem; }
.entry-category { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--my-color-main); background: var(--navy-pale); padding: .2rem .75rem; border-radius: 20px; text-decoration: none; }
.entry-category:hover { text-decoration: underline; }
.entry-title { font-size: 1.75rem; font-weight: 700; line-height: 1.45; color: var(--my-color-main); margin-bottom: 1rem; }
.entry-meta { font-size: .78rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; }
.entry-content { line-height: 1.9; color: var(--text); display: flow-root; }
/* ブロックの基本下余白（インラインスタイルで上書き可） */
.entry-content > * { margin-bottom: 32px; }
.entry-content h2 { font-size: 1.375rem; font-weight: 700; color: var(--my-color-main); margin: 2.5rem 0 1rem; padding-left: .875rem; border-left: 4px solid var(--my-color-main); }
.entry-content h3 { font-size: 1.125rem; font-weight: 700; color: var(--my-color-main); margin: 2rem 0 .75rem; padding-bottom: .375rem; border-bottom: 1px solid var(--border); }
.entry-content h4 { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 .5rem; }

/* 見出しブロック：スタイルバリエーション「装飾なし」
   下線・ボーダー・背景色などの装飾を解除し、文字のみの見出しにする */
.entry-content h1.is-style-plain,
.entry-content h2.is-style-plain,
.entry-content h3.is-style-plain,
.entry-content h4.is-style-plain,
.entry-content h5.is-style-plain,
.entry-content h6.is-style-plain {
	color: var(--text);
	background: none;
	border: none;
	padding: 0;
}
.entry-content p { margin-bottom: 1.375rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.375rem 1.5rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
/* li（core/list-item）はブロック単位の下余白（myThemeSpacing）の対象から
   inc/block-spacing.php 側で除外済みだが、除外前に保存済みの投稿には
   style="margin-bottom:32px" 等のインラインスタイルが既に焼き込まれている
   場合がある。インラインスタイルはどのクラスセレクタより優先されるため、
   !important で確実に上書きする。罫線スタイル（.has-item-border）側も
   !important でこの値を上書きし、詳細度で正しく優先されるようにしている。 */
.entry-content li { margin-bottom: .4em !important; line-height: 1.75; }
.wp-block-list li { margin-bottom: .4em !important; }
.entry-content a { color: var(--my-color-main); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { opacity: .75; }
.entry-content img { max-width: 100%; margin: 1.25rem 0; }
.entry-content img:not(.wp-block-image img) {
	border-radius: var(--radius);
}
.entry-content blockquote { margin: 1.75rem 0; padding: 1rem 1.5rem; background: var(--bg); border-left: 4px solid var(--my-color-main); color: #555; }
.entry-content table { width: 100%; margin-bottom: 1.5rem; font-size: .9rem; border-collapse: collapse; }
.entry-content th { background: var(--my-color-main); color: var(--white); padding: .625rem .875rem; text-align: left; border: 1px solid var(--border); }
.entry-content td { padding: .625rem .875rem; background: #ffffff; border: 1px solid var(--border); }
.entry-content .wp-block-table.is-style-stripes tr:nth-child(odd) td { background: #ffffff; }
.entry-content .wp-block-table.is-style-stripes tr:nth-child(even) td { background: #f0f4f8; }

/* Image alignment (WordPress standard classes) */
.entry-content .alignleft {
	float: left;
	margin: .5em 1.5rem 1rem 0;
}
.entry-content .alignright {
	float: right;
	margin: .5em 0 1rem 1.5rem;
}
.entry-content .aligncenter {
	display: block;
	width: fit-content;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}
.entry-content .alignleft img,
.entry-content .alignright img,
.entry-content .aligncenter img {
	margin: 0;
}
.entry-content .alignfull img {
	border-radius: 0;
}

/* WordPress 画像ブロックの角丸（Border > Radius）は figure(.wp-block-image) の
   inline style="border-radius:...px" として出力されるため、クラスではなく
   属性セレクタで検出して img 側に継承させ、テーマ側の初期値・alignfull の
   リセットより優先させる。 */
.wp-block-image[style*="border-radius"] {
	overflow: hidden;
}
.wp-block-image[style*="border-radius"] img {
	border-radius: inherit !important;
	overflow: hidden;
}
body:not(.has-sidebar) .entry-content .alignwide {
	width: 100vw;
	max-width: var(--container-width);
	margin-left: calc(50% - min(50vw, var(--container-width) / 2));
	margin-right: calc(50% - min(50vw, var(--container-width) / 2));
}
body:not(.has-sidebar) .entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.entry-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }

/* Post nav */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.nav-previous, .nav-next { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; transition: box-shadow var(--ease); }
.nav-previous:hover, .nav-next:hover { box-shadow: var(--shadow); }
.nav-next { text-align: right; }
.nav-label { font-size: .7rem; color: var(--muted); display: block; margin-bottom: .25rem; letter-spacing: .06em; text-transform: uppercase; }
.nav-title { font-size: .9rem; font-weight: 600; color: var(--my-color-main); line-height: 1.4; }

/* Pagination */
.pagination { display: flex; gap: .375rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }
.pagination .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .875rem; color: var(--text); background: var(--white); transition: background var(--ease), color var(--ease), border-color var(--ease); }
.pagination .page-numbers:hover { background: var(--navy-pale); border-color: var(--my-color-main); color: var(--my-color-main); }
.pagination .current { background: var(--my-color-main); color: var(--white); border-color: var(--my-color-main); }
.pagination .dots { border: none; background: none; }

/* 404 / No results */
.page-header { background: var(--my-color-main); color: var(--white); padding: 3rem 0; margin-bottom: 2.5rem; }
.page-header__title { font-size: 2rem; font-weight: 700; }
.error-page { text-align: center; padding: 5rem 0; }
.error-page__code { font-size: 8rem; font-weight: 900; color: var(--my-color-main); opacity: .1; line-height: 1; }
.error-page__title { font-size: 1.75rem; font-weight: 700; color: var(--my-color-main); margin-bottom: .75rem; }
.error-page__text { color: var(--muted); margin-bottom: 2rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--my-color-main); color: var(--white); padding: .75rem 2rem; border-radius: var(--radius); font-weight: 600; font-size: .9375rem; transition: background var(--ease), transform var(--ease); }
.btn:hover { background: var(--navy-light); transform: translateY(-1px); }
.no-results { text-align: center; padding: 4rem 1rem; background: var(--white); border-radius: var(--radius); }
.no-results__title { font-size: 1.25rem; font-weight: 700; color: var(--my-color-main); margin-bottom: .75rem; }
.no-results__text { color: var(--muted); }

/* Responsive */
@media (max-width: 960px) { .posts-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
	:root { --px: 1rem; }
	.site-navigation { display: none; }
	.content-area { flex-direction: column; width: 100%; }
	.main-content { width: 100%; }
	.sidebar { width: 100%; }
	.footer-widget-grid { grid-template-columns: 1fr; gap: 1.5rem; }
	.entry-inner { padding: 1.5rem; }
	.entry-title { font-size: 1.375rem; }
	.post-navigation { grid-template-columns: 1fr; }
	.page-header__title { font-size: 1.5rem; }
	.error-page__code { font-size: 5rem; }
}

/* スマホ表示: 左右余白を最小限にしてコンテンツ幅を確保 */
@media (max-width: 767px) {
	:root { --px: 4px; }
	.container,
	.entry-content,
	.site-content {
		padding-left: 4px;
		padding-right: 4px;
		margin-left: 0;
		margin-right: 0;
	}
	.entry-inner {
		padding-left: 4px;
		padding-right: 4px;
	}
}

/* =========================================================
   List Block: スタイルバリエーションと罫線
   ========================================================= */

/* --- チェックマーク --- */
.entry-content .wp-block-list.is-style-check {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
.entry-content .wp-block-list.is-style-check > li {
  position: relative;
  padding-left: 1.75rem;
}
.entry-content .wp-block-list.is-style-check > li::before {
  content: '';
  display: block;
  width: .6rem;
  height: .35rem;
  border-left: 2px solid var(--list-mark-color, #1a3a5c);
  border-bottom: 2px solid var(--list-mark-color, #1a3a5c);
  transform: rotate(-45deg);
  position: absolute;
  left: .2rem;
  top: .45rem;
}

/* --- 丸印 --- */
.entry-content .wp-block-list.is-style-circle {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
.entry-content .wp-block-list.is-style-circle > li {
  position: relative;
  padding-left: 1.5rem;
}
.entry-content .wp-block-list.is-style-circle > li::before {
  content: '';
  display: block;
  width: .5rem;
  height: .5rem;
  background: var(--list-mark-color, #1a3a5c);
  border-radius: 50%;
  position: absolute;
  left: .125rem;
  top: .625rem;
}

/* --- 数字 --- */
.entry-content .wp-block-list.is-style-number {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
  counter-reset: my-theme-list;
}
.entry-content .wp-block-list.is-style-number > li {
  position: relative;
  padding-left: 2.25rem;
  counter-increment: my-theme-list;
}
.entry-content .wp-block-list.is-style-number > li::before {
  content: counter(my-theme-list);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--list-mark-color, #1a3a5c);
  color: #fff;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  left: 0;
  top: .125rem;
}

/* --- 行間罫線 --- */
.entry-content .wp-block-list.has-item-border > li {
  border-bottom: 1px solid var(--border);
  padding-bottom: .625rem;
  margin-bottom: .625rem !important;
}
.entry-content .wp-block-list.has-item-border > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0 !important;
}

/* =========================================================
   Block Style Variations: ボタンブロック
   ========================================================= */

/* 四角ボタン：border-radius を 0 にして角丸を解除する。
   デフォルト（無選択）の丸みはそのまま維持される。 */
.wp-block-button.is-style-square .wp-block-button__link {
	border-radius: 0;
}

/* =========================================================
   Block Style Variations: 区切りブロック（core/separator）
   ========================================================= */

/* デフォルト：幅を狭めた細線（幅広線とは見た目を変える） */
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	width: 40%;
	margin: 0 auto;
	border: none;
	border-top: 1px solid var(--border);
}

/* 幅広線：幅100%・太さ1〜2pxを維持 */
.wp-block-separator.is-style-wide {
	width: 100%;
	border: none;
	border-top: 2px solid var(--border);
}

/* ドット：WordPress コアのデフォルト表示を維持（上書きなし） */

/* =========================================================
   コンテンツ幅：フル（100%）— カード状にしない
   ========================================================= */
.content-width-full .site-content > .container {
	padding-left: 0;
	padding-right: 0;
}
.content-width-full .entry {
	border-radius: 0;
}

/* =========================================================
   Block Style Variations: カラムブロック（core/column）
   ========================================================= */

/* 実線枠 */
.wp-block-column.is-style-border {
	border: 1px solid #1a3a5c;
	border-radius: 4px;
	padding: 1.5rem;
}

/* シャドウ */
.wp-block-column.is-style-shadow {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
	border-radius: 4px;
	padding: 1.5rem;
}

/* 点線・ステッチ */
.wp-block-column.is-style-dashed {
	border: 2px dashed rgba(26, 58, 92, 0.3);
	border-radius: 4px;
	padding: 1.5rem;
}

/* =========================================================
   Cover Block（core/cover）
   ========================================================= */
.wp-block-cover .wp-block-cover__inner-container {
	padding: 2.5rem 2rem !important;
}

@media (max-width: 767px) {
	.wp-block-cover .wp-block-cover__inner-container {
		padding: 2.5rem 1rem !important;
	}
}

/* =========================================================
   Back to Top Button
   ========================================================= */
.back-to-top {
	position: fixed;
	right: 24px;
	bottom: 32px;
	z-index: 999;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	padding: 0;
	cursor: pointer;

	background: var(--my-color-main, #1a3a5c);
	color: #ffffff;

	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);

	/* 非表示状態（初期値） */
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s ease,
	            filter .2s ease, box-shadow .2s ease;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	filter: brightness(1.18);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.26);
}

.back-to-top:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.85);
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.back-to-top {
		width: 42px;
		height: 42px;
		right: 16px;
		bottom: 24px;
		z-index: 9999;
		/* iOS Safari で position: fixed が正しく描画されない対策 */
		-webkit-transform: translateZ(0);
		transform: translateZ(0);
	}
	.back-to-top svg {
		width: 18px;
		height: 18px;
	}
}

/* =========================================================
   Contact Form 7
   ========================================================= */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.8em 1em;
	line-height: 1.6;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-size: 1rem;
	color: var(--text);
	background: var(--white);
	transition: border-color var(--ease);
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	border-color: var(--my-color-main);
	outline: none;
}

.wpcf7 input[type="submit"],
.wpcf7-submit {
	display: inline-block;
	border: none;
	border-radius: var(--radius);
	padding: 0.8em 3em;
	background: var(--my-color-main);
	color: #ffffff;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.2s ease;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7-submit:hover {
	filter: brightness(1.15);
}