/*
 * 神戸海洋博物館 子テーマ カスタムCSS
 * theme.json で管理できないスタイルをここに記述
 */

/* ============================================================
   基本リセット・調整
   ============================================================ */

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

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

strong,
b {
	font-weight: 700;
}

/* ============================================================
   カスタムプロパティ（CSS変数）
   theme.json の値をCSS変数として補足定義
   ============================================================ */

:root {
	--kobe-navy:       #151829;
	--kobe-blue:       #00AAE7;
	--kobe-gray-light: #F3F3F4;
	--kobe-gray-mid:   #A1A3A9;
	--kobe-white:      #FFFFFF;
	--kobe-text:       #1A1A2E;
	--kobe-radius:     4px;
	--kobe-radius-md:  8px;
	--kobe-transition: 0.2s ease-out;
	--kobe-shadow:     0 2px 8px rgba(21, 24, 41, 0.12);
	--kmm-content-max-width: 1240px;
	--kmm-page-sidebar-width: 240px;
}

/* ============================================================
   ヘッダー
   ============================================================ */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: transparent;
	box-shadow: 0 1px 4px rgba(21, 24, 41, 0.06);
	transform: translateY(0);
	transition: transform 0.3s ease;
}


/* 管理バー表示時のオフセット */
.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

/* fixed ヘッダー分の余白（JS で動的にセット） */

.site-header__bar {
	width: 100%;
	max-width: 100%;
	padding: 0 2rem;
	background: var(--kobe-white);
}

.site-header__inner {
	max-width: 1280px;
	margin: 0 auto;
	width: 100%;
	padding: 0.8rem 0;
}

.site-header__right-top {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
}

/* ロゴ */
.site-header__logo img {
	width: 216px;
	height: auto;
}

/* Language 切替 */
.kmm-lang-switcher {
	position: relative;
}

.kmm-lang-btn {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--kobe-text);
	padding: 0.3rem 0.5rem;
	border-radius: var(--kobe-radius);
	transition: color var(--kobe-transition);
	white-space: nowrap;
}

.kmm-lang-btn:hover {
	color: var(--kobe-blue);
}

.kmm-lang-btn svg {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
}

.kmm-lang-btn--drawer {
	color: var(--kobe-white);
}

.kmm-lang-btn--drawer:hover {
	color: rgba(255, 255, 255, 0.7);
}

.kmm-lang-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	background: var(--kobe-white);
	border: 1px solid var(--kobe-gray-light);
	border-radius: var(--kobe-radius-md);
	box-shadow: var(--kobe-shadow);
	min-width: 160px;
	z-index: 200;
	overflow: hidden;
}

.kmm-lang-dropdown.is-open {
	display: block;
}

.kmm-lang-dropdown .gtranslate_wrapper {
	padding: 0.5rem 0;
}

.kmm-lang-dropdown .gtranslate_wrapper a {
	display: block;
	padding: 0.5rem 1rem;
	font-size: 0.85rem;
	color: var(--kobe-text);
	text-decoration: none;
	transition: background var(--kobe-transition);
}

.kmm-lang-dropdown .gtranslate_wrapper a:hover {
	background: var(--kobe-gray-light);
	color: var(--kobe-blue);
}

/* ユーティリティリンク（よくある質問・お問い合わせ） */
.site-header__divider {
	display: inline-block;
	width: 1px;
	height: 14px;
	background: var(--kobe-gray-mid);
	opacity: 0.5;
	flex-shrink: 0;
}

.site-header__utility-link {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--kobe-text);
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--kobe-transition);
	padding: 0.3rem 0.5rem;
}

.site-header__utility-link:hover {
	color: var(--kobe-blue);
}

.site-header__utility-link svg {
	flex-shrink: 0;
}

.site-header__utility-link span {
	margin-top: 0.06rem;
}

/* ナビバー（青帯） */
.site-header__nav-bar {
	background: linear-gradient(to bottom, #00AAE7, #0080b8);
	width: 100%;
}

.site-header__nav-inner {
	max-width: 1280px;
	margin: 0 auto;
	width: 100%;
}

/* グローバルナビ（PC） */
.site-header__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	width: 100%;
}

.site-header__nav-list li {
	flex: 1;
	display: flex;
	align-items: center;
}

.site-header__nav-list li + li::before {
	content: '';
	display: block;
	width: 1px;
	height: 14px;
	background: rgba(255, 255, 255, 0.4);
	flex-shrink: 0;
}

.site-header__nav-list li a {
	flex: 1;
	display: block;
	padding: 0.875rem 1rem;
	font-size: 1rem;
	font-weight: 500;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	text-align: center;
	transition: color var(--kobe-transition);
}

.site-header__nav-list li a:hover {
	color: rgba(255, 255, 255, 0.75);
}

/* ハンバーガーボタン（SP） */
.site-header__hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	width: 40px;
	height: 40px;
}

.site-header__hamburger span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--kobe-navy);
	border-radius: 2px;
	transition: all 0.3s ease;
	transform-origin: center;
}

/* ハンバーガー → × アニメーション */
.site-header__hamburger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.site-header__hamburger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.site-header__hamburger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ドロワーメニュー（旧・SP インライン） */
.site-header__drawer {
	display: none;
	background: var(--kobe-white);
	border-top: 1px solid var(--kobe-gray-light);
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.3s ease;
}

.site-header__drawer.is-open {
	max-height: 400px;
}

.site-header__drawer-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-header__drawer-nav li {
	border-bottom: 1px solid var(--kobe-gray-light);
}

.site-header__drawer-nav a {
	display: block;
	padding: 1rem 1.5rem;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--kobe-text);
	text-decoration: none;
	transition: background var(--kobe-transition), color var(--kobe-transition);
}

.site-header__drawer-nav a:hover {
	background: var(--kobe-gray-light);
	color: var(--kobe-blue);
}

/* ============================================================
   ドロワーメニュー（SP）
   ============================================================ */

.kmm-drawer {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	background: var(--kobe-navy);
	z-index: 1100;
	overflow: hidden;
	transform: translateX(100%);
	transition: transform 0.3s ease;
}

.kmm-drawer.is-open {
	transform: translateX(0);
	overflow-y: auto;
	overscroll-behavior: contain;
}

@media (max-width: 782px) {
	#wpadminbar {
		position: fixed !important;
	}
}

.kmm-drawer__overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1050;
}

.kmm-drawer__overlay.is-open {
	display: block;
}

.kmm-drawer__inner {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 0 1.5rem 4rem;
}


.kmm-drawer__topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 0;
	border-bottom: none;
}

.kmm-drawer__close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: var(--kobe-white);
}

.kmm-drawer__nav {
	padding: 1rem 0;
}

.kmm-drawer__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kmm-drawer__nav-item + .kmm-drawer__nav-item {
	margin-top: 1rem;
}

.kmm-drawer__nav-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 1.25rem 0;
	background: none;
	border: none;
	font-size: 1rem;
	font-weight: 500;
	color: var(--kobe-white);
	cursor: pointer;
	text-align: left;
}

.kmm-drawer__nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 0;
	font-size: 1rem;
	font-weight: 500;
	color: var(--kobe-white);
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.kmm-drawer__arrow {
	flex-shrink: 0;
}

.kmm-drawer__submenu {
	display: block;
	list-style: none;
	margin: 0;
	padding: 1rem 0 0;
	background: transparent;
}

.kmm-drawer__submenu li a {
	display: block;
	padding: 0.5rem 0;
	padding-left: 1rem;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
}

.kmm-drawer__submenu li a::before {
	content: '›';
	margin-right: 0.5rem;
	font-size: 1rem;
	line-height: 1;
}

.kmm-drawer__footer {
	margin-top: auto;
	padding: 1.5rem 0 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.kmm-drawer__footer-links {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: 0.8rem;
}

.kmm-drawer__footer-links a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
}

.kmm-drawer__footer-sns {
	display: flex;
	gap: 0.75rem;
}

.kmm-drawer__footer-sns a {
	display: block;
	width: 40px;
	height: 40px;
}

.kmm-drawer__footer-sns img {
	width: 40px;
	height: 40px;
}

/* ============================================================
   レスポンシブ：ヘッダー
   ============================================================ */

@media (max-width: 1024px) {
	.kmm-drawer {
		display: block;
	}

	/* ナビバーごと非表示 */
	.site-header__nav-bar {
		display: none;
	}

	.site-header__right-top .kmm-lang-switcher,
	.site-header__right-top .site-header__divider,
	.site-header__right-top .site-header__utility-link {
		display: none;
	}

	.site-header__hamburger {
		display: flex;
	}

	.site-header__drawer {
		display: block;
	}

	.site-header__bar {
		padding: 0 1rem;
	}

	.site-header__logo img {
		width: 168px;
	}
}

/* ============================================================
   トップページ メインビジュアル
   ============================================================ */

/* MVキャプション（左下） */
.kmm-hero-caption {
	padding: 1.5rem 2rem;
	background: linear-gradient(to bottom right, rgba(21, 24, 41, 0.6), rgba(50, 8, 38, 0.75));
	margin-left: -1em;
}

.kmm-hero-caption__ja {
	font-size: 1.375rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 0.25rem;
	letter-spacing: 0.08em;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.kmm-hero-caption__en {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* 重要なお知らせバー */
.kmm-urgent-notice {
	background: #1B2B4A;
	width: 100%;
	margin-top: 0 !important;
}

.kmm-urgent-notice__inner {
	max-width: calc(1280px + 4rem);
	margin: 0 auto;
	width: 100%;
	padding: 0 2rem;
}

.kmm-urgent-notice__label {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem;
	flex: 1.5;
	padding: 1.625rem 1.5rem 1.625rem 0;
	color: #ff6b6b;
	background: transparent;
	border-right: 1px solid rgba(255, 255, 255, 0.15);
	white-space: nowrap;
	font-size: 1rem;
	font-weight: 600;
}

.kmm-urgent-notice__query {
	flex: 6;
	min-width: 0;
}

.kmm-urgent-notice__label span {
	margin-top: 1px;
}

.kmm-urgent-notice .wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kmm-urgent-notice__item {
	padding: 0 1.5rem;
	gap: 1.25rem !important;
	height: 100%;
}

.kmm-urgent-notice .wp-block-post-date {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.85);
	white-space: nowrap;
}

.kmm-urgent-notice .wp-block-post-title {
	font-size: 1rem;
}

.kmm-urgent-notice__empty p {
	margin: 0;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.85);
}

.kmm-urgent-notice .wp-block-post-title a {
	color: #fff;
	text-decoration: none;
	transition: color var(--kobe-transition);
}

.kmm-urgent-notice .wp-block-post-title a:hover {
	color: #fff;
	text-decoration: underline;
}

@media (min-width: 769px) {
	.wp-block-cover__image-background[src*="hero-main"] {
		object-position: center 70%;
	}
}

@media (max-width: 1024px) {
	.kmm-hero-caption__ja {
		font-size: 1.125rem;
	}
}

@media (max-width: 768px) {
	.wp-block-cover:has(.wp-block-cover__image-background[src*="hero-main"]) {
		min-height: 230px !important;
	}

	.kmm-hero-caption__ja {
		font-size: 1rem;
	}

	.kmm-hero-caption {
		padding: 0.875rem 1.25rem;
	}

	.kmm-urgent-notice__inner {
		flex-direction: column !important;
		padding: 0;
	}

	.kmm-urgent-notice__label {
		flex: none;
		width: 100%;
		padding: 0.625rem 1.25rem;
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.15);
		justify-content: center;
		font-size: 0.8rem;
		font-weight: 500;
	}

	.kmm-urgent-notice__query {
		flex: none;
		width: 100%;
	}

	.kmm-urgent-notice__item {
		padding: 0.875rem 1.25rem;
	}
}

/* ============================================================
   カスタム投稿タイプ 共通カード
   ============================================================ */

/* セクションヘッダー */
.kmm-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.kmm-section-header__left {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
}

.kmm-section-header__en {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--kobe-blue);
	text-transform: uppercase;
	margin-bottom: 0.375rem;
}

.kmm-section-header__icon {
	width: auto;
	height: 14px;
	display: inline-block;
	margin-top: -5px;
}

.kmm-section-header__ja {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--kobe-navy);
	margin: 0;
}

/* サブページのh2スタイルをリセット */
.kmm-section-header .kmm-section-header__ja {
	background: none;
	border: none;
	padding: 0;
	margin-top: 0;
	margin-bottom: 0;
	font-size: 2.5rem;
}

.kmm-section-header__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 228px;
	height: 55px;
	border: 1.5px solid var(--kobe-blue);
	border-radius: 999px;
	background: #fff;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--kobe-blue);
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color var(--kobe-transition), color var(--kobe-transition), border-color var(--kobe-transition);
}

.kmm-page__main .kmm-section-header__btn {
	transition: background-color var(--kobe-transition), color var(--kobe-transition), border-color var(--kobe-transition);
}

.kmm-section-header__btn:hover {
	background: var(--kobe-blue);
	color: #fff !important;
	text-decoration: none;
}

.kmm-section-header__btn-sp {
	display: none;
}

@media (max-width: 768px) {
	.kmm-section-header .kmm-section-header__btn {
		display: none;
	}

	.kmm-section-header__btn-sp {
		display: flex;
		justify-content: center;
		margin-top: 2rem;
	}

	.kmm-section-header .kmm-section-header__ja {
		font-size: 2.25rem;
	}

	.kmm-section-header__left {
		align-items: flex-start;
	}
}

/* ============================================================
   セクション 2カラムレイアウト（kmm-section-layout）
   ============================================================ */
@media (min-width: 1181px) {
	.kmm-section-layout {
		display: flex;
		gap: 2rem;
		align-items: flex-start;
	}

	.kmm-section-layout > .kmm-section-header {
		width: clamp(280px, calc(19.4vw + 81.5px), 454px);
		flex-shrink: 0;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		margin-bottom: 0;
		gap: 1.25rem;
	}

	.kmm-section-layout > .kmm-section-header .kmm-section-header__btn {
		width: 100%;
		max-width: 200px;
		height: 40px;
		font-size: 0.8125rem;
	}

	.kmm-section-layout .kmm-section-content,
	.kmm-section-layout .kmm-calendar__body {
		flex: 1;
		min-width: 0;
	}
}

/* お知らせ行スタイル */
.kobe-news-item .wp-block-post-title,
.kobe-news-item h2 {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--kobe-text);
}

.kobe-news-item .wp-block-post-title a,
.kobe-news-item h2 a {
	color: var(--kobe-text);
	text-decoration: none;
}

.kobe-news-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 4rem;
	padding: 1.125rem 1.5rem 1.125rem 1.5rem;
	border-bottom: 1px solid var(--kobe-gray-light);
}

.kobe-news-item .wp-block-post-title a::before {
	content: '';
	position: absolute;
	inset: 0;
}

.kobe-news-item::after {
	content: '';
	position: absolute;
	right: 1.5rem;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid var(--kobe-blue);
	border-top: 1.5px solid var(--kobe-blue);
	transform: rotate(45deg);
}

.kobe-news-item:hover .wp-block-post-title a {
	color: var(--kobe-blue);
}

.kobe-news-date {
	color: var(--kobe-gray-mid);
	font-size: 1rem;
	white-space: nowrap;
}

.kobe-news-title a {
	color: var(--kobe-text);
	font-weight: 700;
	text-decoration: none;
	transition: color var(--kobe-transition);
}

.kobe-news-title a:hover {
	color: var(--kobe-blue);
}

/* 展覧会・イベントカード */
.kobe-card {
	position: relative;
	background: var(--kobe-white);
	border-radius: var(--kobe-radius-md);
	overflow: hidden;
	box-shadow: var(--kobe-shadow);
	transition: transform var(--kobe-transition), box-shadow var(--kobe-transition);
}

/* カード全体をリンクエリアにする */
.kobe-card .wp-block-post-title a::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* マウスクリック時のフォーカス枠を非表示（キーボード操作時は維持） */
.kobe-card .wp-block-post-title a:focus:not(:focus-visible) {
	outline: none;
}

.kobe-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(21, 24, 41, 0.16);
}

.kobe-card__img img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.kobe-card__body {
	padding: 1.25rem;
}

.kobe-card__body .wp-block-post-title {
	/* 1024pxで16px、1920pxで22px、それ以上は画面幅に比例して拡大。1024px未満は16pxで下げ止め */
	font-size: max(16px, calc(16px + (100vw - 1024px) / 896px * 6px));
	font-weight: 600;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	color: #000;
}

.kobe-card__body .wp-block-post-title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #000;
	text-decoration: none;
	background: none;
	border: none;
	box-shadow: none;
}

.kobe-card__body .wp-block-post-title a:hover {
	color: var(--kobe-blue);
}

.kobe-card__status {
	display: inline-block;
	background: var(--kobe-blue);
	color: var(--kobe-white);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.2rem 0.6rem;
	border-radius: 2px;
	margin-bottom: 0.5rem;
}

.kobe-card__status--ended {
	background: var(--kobe-navy);
}

.kobe-card__date {
	font-size: 1rem;
	color: var(--kobe-gray-mid);
	margin-top: 0.5rem;
}

/* ============================================================
   セクション共通
   ============================================================ */

.kobe-section-title {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.kobe-section-title__ja {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--kobe-navy);
}

.kobe-section-title__en {
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--kobe-blue);
	text-transform: uppercase;
}

/* ============================================================
   ボタン
   ============================================================ */

.wp-block-button.is-style-kobe-outline .wp-block-button__link {
	color: var(--kobe-navy);
	border: 2px solid var(--kobe-navy);
	transition: background-color var(--kobe-transition), color var(--kobe-transition), border-color var(--kobe-transition);
}

.wp-block-button.is-style-kobe-outline .wp-block-button__link:not(.has-background),
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background) {
	background: #fff;
	transition: background-color var(--kobe-transition), color var(--kobe-transition), border-color var(--kobe-transition);
}

.wp-block-button.is-style-kobe-outline .wp-block-button__link:hover {
	background: var(--kobe-navy);
	color: var(--kobe-white);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--kobe-blue);
	color: var(--kobe-blue) !important;
	transition: background-color var(--kobe-transition), color var(--kobe-transition), border-color var(--kobe-transition);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--kobe-blue);
	background: var(--kobe-blue);
	color: var(--kobe-white) !important;
}

/* ============================================================
   フッター
   ============================================================ */

.site-footer {
	background: var(--kobe-navy);
	color: var(--kobe-white);
}

/* メインエリア */
.site-footer__main {
	padding: 4rem 2rem;
}

.site-footer__inner {
	max-width: var(--kmm-content-max-width);
	margin: 0 auto;
}

.site-footer__nav-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3rem;
}

/* セクション見出し */
.site-footer__nav-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	margin-bottom: 1rem;
	position: relative;
}

/* リンクを含む見出しのみポインターカーソルにする（「ご利用案内」等の非リンク見出しは対象外） */
.site-footer__nav-heading:has(a) {
	cursor: pointer;
}

/* 見出し全体をクリック可能にする（テキスト以外の余白・矢印アイコン上でも反応） */
.site-footer__nav-heading a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.site-footer__nav-col .site-footer__nav-heading + .site-footer__nav-heading {
	margin-top: 1.75rem;
}

.site-footer__nav-heading--archive {
	padding-top: 12px;
}

.site-footer__nav-heading a,
.site-footer__nav-heading span {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--kobe-white);
	text-decoration: none;
	transition: color var(--kobe-transition);
}

.site-footer__nav-heading a:hover {
	color: var(--kobe-blue);
}

.site-footer__nav-heading svg {
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.5);
}

/* サブリンク */
.site-footer__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.site-footer__nav-list li a {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.825rem;
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	transition: color var(--kobe-transition);
}

.site-footer__nav-list li a::before {
	content: '›';
	font-size: 1.1rem;
	line-height: 1;
	flex-shrink: 0;
}

.site-footer__nav-list li a:hover {
	color: var(--kobe-blue);
}

/* フッターサブ（外部サイトバナー） */
.site-footer__sub {
	padding: 0 2rem 2rem;
}

.site-footer__sub-inner {
	max-width: var(--kmm-content-max-width);
	margin: 0 auto;
	display: flex;
	justify-content: flex-end;
}

.site-footer__banner {
	display: block;
}

.site-footer__banner img {
	display: block;
	width: 15vw;
	height: auto;
	border-radius: 4px;
	transition: opacity var(--kobe-transition);
}

.site-footer__banner:hover img {
	opacity: 0.85;
}

/* ボトムバー */
.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1.25rem 2rem;
}

.site-footer__bottom-inner {
	max-width: var(--kmm-content-max-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-footer__copyright {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
	margin: 0;
}

.site-footer__bottom-links {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.75rem;
}

.site-footer__bottom-links a {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	transition: color var(--kobe-transition);
}

.site-footer__bottom-links a:hover {
	color: var(--kobe-white);
}

.site-footer__bottom-links span {
	color: rgba(255, 255, 255, 0.3);
}

/* フッター レスポンシブ */
@media (max-width: 768px) {
	.site-footer__nav-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.site-footer__nav-col {
		padding-bottom: 1.5rem;
		margin-bottom: 1.5rem;
	}

	.site-footer__nav-col:last-child {
		padding-bottom: 0;
		margin-bottom: 0;
	}

	.site-footer__sub-inner {
		justify-content: center;
	}

	.site-footer__banner img {
		width: 80%;
	}

	.site-footer__bottom {
		padding: 4rem 2rem;
	}

	.site-footer__bottom-inner {
		flex-direction: column-reverse;
		align-items: center;
		gap: 0.75rem;
	}

	.site-footer__copyright {
		text-align: center;
	}

	.site-footer__copyright-break {
		display: block;
	}
}

/* ============================================================
   下層ページ レイアウト
   ============================================================ */

/* ページヒーロー */
.kmm-page-hero {
	background: var(--kobe-blue);
	position: relative;
	overflow: hidden;
	padding: 3.2rem 0;
}

.kmm-page-hero__inner {
	max-width: calc(var(--kmm-content-max-width) + 4rem);
	margin: 0 auto;
	padding: 0 2rem;
	position: relative;
}

.kmm-page-hero__title {
	font-size: 3rem;
	font-weight: 500;
	color: var(--kobe-white);
	margin: 0 0 0.4rem;
	line-height: 1.3;
}

.kmm-page-hero__en {
	font-size: 0.8rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.9);
	letter-spacing: 0.08em;
	margin: 0;
}

.kmm-page-hero__date {
	max-width: calc(var(--kmm-content-max-width) + 4rem);
	margin: 0 auto;
	padding: 0 2rem 16px;
	font-size: 16px;
	color: rgba(21, 24, 41, 0.65);
}

.kmm-page-hero p:empty,
.kmm-main > p:empty {
	display: none;
}

.kmm-page-hero__deco {
	position: absolute;
	right: 2rem;
	top: 60%;
	transform: translateY(-50%);
	width: 355px;
	height: 355px;
	pointer-events: none;
}

.kmm-page-hero__deco svg {
	width: 100%;
	height: 100%;
	opacity: 0.25;
}

/* お知らせ詳細ページのヒーロー */
.single-news .kmm-page-hero {
	background: #DDF3FA;
}

.single-news .kmm-page-hero__title,
.single-news .kmm-page-hero__title.wp-block-post-title {
	color: var(--kobe-navy);
}

.single-news .kmm-page-hero__en {
	display: none;
}

.single-news .kmm-page-hero__deco svg {
	opacity: 0.15;
}

/* パンくず */
.kmm-breadcrumb-wrap {
	background: #F4FBFD;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.kmm-breadcrumb-inner {
	max-width: calc(var(--kmm-content-max-width) + 4rem);
	margin: 0 auto;
	padding: 0.5rem 2rem;
	display: flex;
	justify-content: flex-end;
}

.kmm-breadcrumb {
	font-size: 0.8rem;
}

.kmm-breadcrumb__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0;
	min-width: 0;
}

.kmm-breadcrumb__item {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	color: var(--kobe-gray-mid);
}

/* タイトルが長い場合は折り返さず末尾を省略表示にする（段落ち防止） */
.kmm-breadcrumb__item.is-current {
	display: block;
	flex-shrink: 1;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.kmm-breadcrumb__item + .kmm-breadcrumb__item::before {
	content: '>';
	margin: 0 0.5rem;
	color: var(--kobe-gray-mid);
	font-size: 0.7rem;
}

.kmm-breadcrumb__item a {
	color: var(--kobe-gray-mid);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color var(--kobe-transition);
}

.kmm-breadcrumb__item a:hover {
	color: var(--kobe-blue);
}

.kmm-breadcrumb__item.is-current {
	color: var(--kobe-text);
}

/* ページラッパー */
.kmm-page {
	padding: 3rem 2rem 6rem;
	overflow-x: clip;
}

.kmm-page__inner {
	width: 100%;
	max-width: var(--kmm-content-max-width);
	margin: 0 auto;
}

/* 2カラム */
.kmm-page__body {
	display: flex;
	gap: 3rem;
	align-items: flex-start;
}

.kmm-page__main {
	flex: 1;
	min-width: 0;
	overflow-wrap: break-word;
}

.kmm-page__sidebar {
	width: var(--kmm-page-sidebar-width);
	flex-shrink: 0;
	margin-top: 0;
	margin-right: 0;
	margin-left: 0;
	padding-right: 0;
	padding-left: 0;
}

@media (min-width: 1025px) {
	.kmm-page__body > .wp-block-template-part {
		flex: 0 0 var(--kmm-page-sidebar-width);
		width: var(--kmm-page-sidebar-width);
		margin-right: 0;
		margin-left: 0;
		padding-right: 0;
		padding-left: 0;
	}

}

.kmm-page__main > :first-child,
.kmm-page__main > .wp-block-post-content > :first-child,
.kmm-page__sidebar > :first-child {
	margin-top: 0 !important;
	margin-block-start: 0 !important;
}

/* 404 */
.kmm-error-page__message {
	margin: 0 0 2rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.8;
}

.kmm-error-page__search {
	width: 100%;
	margin: 0;
}

.kmm-error-page__search .wp-block-search__inside-wrapper {
	display: flex;
	gap: 1rem;
	padding: 0;
	border: 0;
}

.kmm-error-page__search .wp-block-search__input {
	min-width: 0;
	height: 3.5rem;
	padding: 0 1.5rem;
	border: 1px solid var(--kobe-navy);
	border-radius: 999px;
	background: var(--kobe-white);
	color: var(--kobe-text);
	font: inherit;
}

.kmm-error-page__search .wp-block-search__button {
	flex: 0 0 auto;
	min-width: 5.5rem;
	height: 3.5rem;
	margin: 0;
	padding: 0 1.5rem;
	border: 1px solid var(--kobe-navy);
	border-radius: 999px;
	background: var(--kobe-navy);
	color: var(--kobe-white);
	font-size: 1rem;
	font-weight: 700;
	transition: background-color var(--kobe-transition), border-color var(--kobe-transition);
}

.kmm-error-page__search .wp-block-search__button:hover {
	border-color: var(--kobe-blue);
	background: var(--kobe-blue);
	color: var(--kobe-white);
}

/* ============================================================
   ※リスト カスタムブロックスタイル
   ============================================================ */

/* PDFリンク */
.kmm-pdf-link,
.kmm-page__main .kmm-pdf-link {
	display: inline-flex;
	align-items: center;
	gap: 0.375em;
	color: var(--kobe-blue);
	font-weight: 500;
	text-decoration: none;
	transition: color var(--kobe-transition);
}

.kmm-pdf-link:hover,
.kmm-page__main .kmm-pdf-link:hover {
	color: var(--kobe-navy) !important;
	text-decoration: none;
}

.kmm-pdf-icon {
	width: 15px;
	height: 18px;
	flex-shrink: 0;
}

.kmm-pdf-size {
	font-size: 0.8em;
	color: var(--kobe-gray-mid);
	margin-left: 0.2em;
}

/* ============================================================
   ボタン（塗りつぶし / 輪郭）共通パディング
   ============================================================ */

.wp-block-buttons {
	gap: 0.75rem !important;
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.wp-block-button:not(.is-style-text-link-internal):not(.is-style-text-link-external) .wp-block-button__link {
	padding: 0.75em 1.5em;
	text-decoration: none;
}

.wp-block-button.is-style-fill .wp-block-button__link,
.wp-block-button:not(.is-style-outline):not(.is-style-text-link-internal):not(.is-style-text-link-external) .wp-block-button__link {
	color: #fff !important;
}

/* ============================================================
   ギャラリースライダー（Splide）
   ============================================================ */

.wp-block-gallery.is-style-slider {
	display: block;
}

.kmm-gallery-splide .splide__slide img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* 矢印ボタン */
.kmm-gallery-splide {
	position: relative;
}

.kmm-gallery-splide .splide__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	background: var(--kobe-blue);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	transition: opacity var(--kobe-transition);
}

.kmm-gallery-splide .splide__arrow--prev {
	left: 1rem;
}

.kmm-gallery-splide .splide__arrow--next {
	right: 1rem;
}

.kmm-gallery-splide .splide__arrow:hover {
	opacity: 0.75;
}

.kmm-gallery-splide .splide__arrow svg {
	fill: #fff;
	width: 1rem;
	height: 1rem;
}

.kmm-gallery-splide .splide__arrow--prev svg {
	transform: scaleX(-1);
}

/* ドットインジケーター */
.kmm-gallery-splide .splide__pagination {
	position: absolute;
	bottom: 0.25rem;
	right: 1rem;
	left: auto;
	width: auto;
	z-index: 10;
	gap: 0.375rem;
}

.kmm-gallery-splide .splide__pagination__page {
	background: var(--kobe-gray-mid);
	border-radius: 50%;
	border: none;
	box-shadow: none;
	opacity: 1;
	width: 8px;
	height: 8px;
	padding: 0;
	flex-shrink: 0;
	transition: background var(--kobe-transition);
}

.kmm-gallery-splide .splide__pagination__page.is-active {
	background: var(--kobe-blue);
	transform: none;
}

/* ============================================================
   セパレーター
   ============================================================ */

.wp-block-separator.has-alpha-channel-opacity {
	border-color: #EDF7FA;
	color: #EDF7FA;
}

/* ============================================================
   テーブル デフォルト（境界線補完）
   ============================================================ */

.wp-block-table:not(.is-style-table-filled):not(.is-style-table-plain) td,
.wp-block-table:not(.is-style-table-filled):not(.is-style-table-plain) th {
	border: 1px solid #d4d4d4;
	font-size: 18px;
}

/* ============================================================
   テーブル 共通リセット
   ============================================================ */

.wp-block-table.is-style-table-filled table,
.wp-block-table.is-style-table-plain table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table.is-style-table-filled td,
.wp-block-table.is-style-table-filled th,
.wp-block-table.is-style-table-plain td,
.wp-block-table.is-style-table-plain th {
	padding: 1.88rem 1rem;
	vertical-align: middle;
	border: none;
	border-bottom: 1px solid #e0e0e0;
	line-height: 1.7;
	font-size: 18px;
}

/* ============================================================
   テーブル 塗りあり
   ============================================================ */

.wp-block-table.is-style-table-filled td,
.wp-block-table.is-style-table-filled th {
	border-bottom-color: #EAF6FB;
}

.wp-block-table.is-style-table-filled tr:first-child td,
.wp-block-table.is-style-table-filled tr:first-child th {
	border-top: 1px solid #EAF6FB;
}

.wp-block-table.is-style-table-filled td:first-child,
.wp-block-table.is-style-table-filled th:first-child {
	background: #EAF6FB;
	font-weight: 600;
	width: 22%;
	white-space: nowrap;
	color: #005574;
	border-bottom-color: #fff;
}

.wp-block-table.is-style-table-filled td:last-child,
.wp-block-table.is-style-table-filled th:last-child {
	background: #fff;
}

/* ============================================================
   テーブル 塗りなし
   ============================================================ */

.wp-block-table.is-style-table-plain td,
.wp-block-table.is-style-table-plain th {
	background: transparent !important;
	border: none !important;
	border-bottom: 1px dotted #CADEE5 !important;
}

.wp-block-table.is-style-table-plain tr:first-child td,
.wp-block-table.is-style-table-plain tr:first-child th {
	border-top: 1px dotted #CADEE5 !important;
}

.wp-block-table.is-style-table-plain td:first-child,
.wp-block-table.is-style-table-plain th:first-child {
	font-weight: 600;
	width: 22%;
	white-space: nowrap;
}

/* ============================================================
   テキストリンクボタン（内部 / 外部）
   ============================================================ */

.wp-block-button.is-style-text-link-internal .wp-block-button__link,
.wp-block-button.is-style-text-link-external .wp-block-button__link {
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	color: var(--kobe-blue) !important;
	font-weight: 500;
	font-size: inherit;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	text-decoration: none;
	transition: opacity var(--kobe-transition);
}

.wp-block-button.is-style-text-link-internal .wp-block-button__link:hover,
.wp-block-button.is-style-text-link-external .wp-block-button__link:hover {
	opacity: 0.75;
}

.wp-block-button.is-style-text-link-internal .wp-block-button__link::after {
	content: '';
	display: inline-block;
	width: 20px;
	height: 20px;
	background-image: url('../images/icon-link-internal.svg');
	background-size: contain;
	background-repeat: no-repeat;
	flex-shrink: 0;
}

.wp-block-button.is-style-text-link-external .wp-block-button__link::after {
	content: '';
	display: inline-block;
	width: 12px;
	height: 12px;
	background-image: url('../images/icon-link-external.svg');
	background-size: contain;
	background-repeat: no-repeat;
	flex-shrink: 0;
}

/* 外部リンクマーク（共通ヘッダー／フッターのテキストリンク用） */
.kmm-external-icon {
	display: inline-block;
	margin-left: 0.35em;
	vertical-align: -0.1em;
	flex-shrink: 0;
}

.is-style-kome-list,
.kmm-page__main .is-style-kome-list,
.is-style-circle-list,
.kmm-page__main .is-style-circle-list,
.is-style-square-list,
.kmm-page__main .is-style-square-list {
	list-style: none;
	padding-left: 0;
}

.is-style-kome-list li {
	position: relative;
	padding-left: 1.75em;
}

.is-style-kome-list li::before {
	content: '※';
	position: absolute;
	left: 0.125rem;
	color: var(--kobe-text);
}

.is-style-circle-list li {
	position: relative;
	padding-left: 1.5em;
}

.is-style-circle-list li::before {
	content: '';
	position: absolute;
	left: 0.3125rem;
	top: 0.5em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #00AAE7;
}

.is-style-square-list li {
	position: relative;
	padding-left: 1.5em;
}

.is-style-square-list li::before {
	content: '';
	position: absolute;
	left: 0.3125rem;
	top: 0.5rem;
	width: 8px;
	height: 8px;
	background-color: var(--kobe-text);
}

/* ============================================================
   コンテンツ モジュール（.kmm-page__main 内）
   ============================================================ */

.kmm-page__main h2,
.kmm-page__main h3,
.kmm-page__main h4,
.kmm-page__main h5,
.kmm-page__main h6 {
	margin-top: 3.25rem;
	margin-bottom: 1.5rem;
}

.kmm-page__main h2 ~ h2 {
	margin-top: 5rem;
}


.kmm-page__main h2 {
	font-size: 1.625rem;
	font-weight: 600;
	color: var(--kobe-navy);
	background: #F4FBFD;
	border-top: 3px solid var(--kobe-blue);
	border-bottom: 3px solid var(--kobe-blue);
	padding: 1.125rem 0.875rem;
}

.kmm-page__main h3 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--kobe-navy);
	position: relative;
	padding-bottom: 1.125rem;
	padding-left: 0.75rem;
}

.kmm-page__main h3::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(to right, var(--kobe-blue) 20%, #EDF6F8 20%);
}

.kmm-page__main h4 {
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--kobe-navy);
	position: relative;
	padding-left: 1.1875rem;
}

.kmm-page__main h4::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 5px;
	height: 37px;
	background: var(--kobe-blue);
	border-radius: 999px;
}

.kmm-page__main h5 {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--kobe-text);
	background: #F4FBFD;
	padding: 0.75rem;
}

.kmm-page__main h6 {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--kobe-text);
	border-bottom: 2px dotted #00AAE7;
	padding-bottom: 0.875rem;
	padding-left: 0.75rem;
}

.kmm-page__main p {
	line-height: 1.9;
	margin-bottom: 1rem;
	overflow-wrap: break-word;
	word-break: break-word;
}

/* h3 / h6 は左に 0.75rem のインデントを持つため、直後の本文もインデントを揃える */
.kmm-page__main h3 + p,
.kmm-page__main h6 + p {
	padding-left: 0.75rem;
}

.kmm-page__main p:has(> strong:only-child),
.kmm-page__main p:has(> b:only-child) {
	margin-top: 3.25rem;
}

.kmm-page__main figure + p:has(> strong:only-child),
.kmm-page__main figure + p:has(> b:only-child) {
	margin-top: 1rem;
}

.kmm-page__main ul,
.kmm-page__main ol {
	padding-left: 1.5rem;
	margin-bottom: 1rem;
	line-height: 1.8;
}

.kmm-page__main .wp-block-query ul,
.kmm-page__main .wp-block-query ol {
	padding-left: 0;
	margin-bottom: 0;
}

/* 一覧のカードグリッドとページネーションの間隔（ページネーションの margin-top と同値） */
.kmm-page__main .wp-block-query ul.wp-block-post-template {
	margin-bottom: 2.5rem;
}

.kmm-page__main li {
	margin-bottom: 0.3rem;
}

.kmm-page__main a {
	color: var(--kobe-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color var(--kobe-transition);
}

.kmm-page__main a:hover {
	color: var(--kobe-navy);
}

/* テーブル */
.kmm-page__main table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}

.kmm-page__main th,
.kmm-page__main td {
	padding: 1.75rem 1rem;
	border: 1px solid var(--kobe-gray-light);
	text-align: left;
	vertical-align: top;
}

.kmm-page__main th {
	background: var(--kobe-navy);
	color: var(--kobe-white);
	font-weight: 600;
}

.kmm-page__main tr:nth-child(even) td {
	background: var(--kobe-gray-light);
}

/* 画像 */
.kmm-page__main figure {
	margin: 1.5rem 0;
}

.kmm-page__main figcaption {
	font-size: 0.8rem;
	color: var(--kobe-gray-mid);
	margin-top: 0.4rem;
	text-align: center;
}

/* ============================================================
   投稿ナビ（前の記事へ ｜ 一覧へ ｜ 次の記事へ）
   ============================================================ */
.kmm-post-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1rem;
	margin-top: var(--wp--preset--spacing--70, 4rem);
	padding-top: var(--wp--preset--spacing--50, 2rem);
	border-top: 1px solid #F3F3F4;
	font-size: 0.95rem;
	text-align: center;
}

.kmm-post-nav__item a {
	color: var(--kobe-blue);
	text-decoration: none;
	transition: color var(--kobe-transition);
}

.kmm-post-nav__item a:hover {
	color: var(--kobe-navy);
}

.kmm-post-nav__home a {
	font-weight: 600;
}

.kmm-post-nav__sep {
	color: #A1A3A9;
	user-select: none;
}

/* ============================================================
   下層ページ レスポンシブ
   ============================================================ */

@media (max-width: 1024px) {
	.kmm-page__body {
		flex-direction: column;
		gap: 2rem;
		width: 100%;
	}

	.kmm-page__body:has(.kmm-page__sidebar > *) {
		gap: 5rem;
	}

	.kmm-page__main {
		width: 100%;
	}

	.kmm-page__body > .wp-block-template-part {
		width: 100%;
	}

	.kmm-page__sidebar {
		width: 100%;
		margin-top: 0;
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
		max-width: 512px;
		margin-right: auto;
		margin-left: auto;
	}

	.kmm-page__sidebar > *,
	.kmm-page__sidebar img {
		width: 100%;
		max-width: none;
		height: auto;
	}
}

@media (max-width: 768px) {
	.kmm-page__sidebar {
		grid-template-columns: 1fr;
		align-items: center;
		gap: 0;
		max-width: none;
		margin-right: 0;
		margin-left: 0;
	}
}

@media (max-width: 768px) {
	.kmm-page-hero {
		padding: 2rem 0;
	}

	.kmm-page-hero__inner,
	.kmm-page-hero__date {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	.kmm-page-hero__title {
		font-size: 1.875rem;
	}

	.kmm-page-hero__en {
		font-size: 1rem;
	}

	.kmm-page-hero__deco {
		width: 245px;
		height: 245px;
		right: -1rem;
		top: 50%;
	}

	.kmm-breadcrumb-inner {
		padding: 0.4rem 1.25rem;
		justify-content: flex-start;
		overflow: hidden;
	}

	.kmm-breadcrumb,
	.kmm-breadcrumb__list {
		width: 100%;
		min-width: 0;
	}

	.kmm-page {
		padding: 2rem 1.25rem 3rem;
	}

	.kmm-page__body {
		flex-direction: column;
		gap: 2rem;
	}

	.kmm-page__main {
		width: 100%;
	}

	.kmm-page__sidebar {
		width: 100%;
		margin-top: 0;
	}

	.kmm-page__main h2 {
		font-size: 1.375rem;
	}

	.kmm-page__main h3 {
		font-size: 1.25rem;
	}

	.kmm-page__main h4 {
		font-size: 1.125rem;
	}

	.kmm-page__main h5 {
		font-size: 1rem;
	}

	.kmm-page__main h6 {
		font-size: 1rem;
	}

	.kmm-gallery-splide .splide__arrow {
		width: 2rem;
		height: 2rem;
	}

	.wp-block-columns p:has(> strong:only-child) {
		margin-top: 0;
	}
}

/* ============================================================
   アクセシビリティ
   ============================================================ */

:focus-visible {
	outline: 3px solid var(--kobe-blue);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ============================================================
   レスポンシブ調整
   ============================================================ */

@media (max-width: 768px) {
	.kobe-news-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
		padding-left: 0;
	}

	.kobe-news-item::after {
		right: 0;
		top: 50%;
		transform: translateY(-50%) rotate(45deg);
	}
}

@media (max-width: 768px) {
	.wp-block-table:not(.is-style-table-filled):not(.is-style-table-plain) td,
	.wp-block-table:not(.is-style-table-filled):not(.is-style-table-plain) th {
		font-size: 16px;
	}

	.wp-block-table.is-style-table-filled table,
	.wp-block-table.is-style-table-plain table,
	.wp-block-table.is-style-table-filled tbody,
	.wp-block-table.is-style-table-plain tbody,
	.wp-block-table.is-style-table-filled tr,
	.wp-block-table.is-style-table-plain tr {
		display: block;
		width: 100%;
	}

	.wp-block-table.is-style-table-filled td,
	.wp-block-table.is-style-table-filled th,
	.wp-block-table.is-style-table-plain td,
	.wp-block-table.is-style-table-plain th {
		display: block;
		width: 100%;
		box-sizing: border-box;
		white-space: normal;
		border-bottom: none !important;
		font-size: 16px;
	}

	.wp-block-table.is-style-table-filled td:first-child,
	.wp-block-table.is-style-table-filled th:first-child,
	.wp-block-table.is-style-table-plain td:first-child,
	.wp-block-table.is-style-table-plain th:first-child {
		width: 100%;
	}

	.wp-block-table.is-style-table-plain tbody {
		border-top: 1px dotted #CADEE5;
		border-bottom: 1px dotted #CADEE5;
	}

	.wp-block-table.is-style-table-plain tr + tr {
		border-top: 1px dotted #CADEE5;
	}

	.wp-block-table.is-style-table-plain tr:first-child td,
	.wp-block-table.is-style-table-plain tr:first-child th {
		border-top: none !important;
	}

	.wp-block-table.is-style-table-plain td + td {
		padding-top: 0;
	}
}

/* ============================================================
   Contact Form 7 カスタムスタイル
   ============================================================ */

/* ========== フォーム全体 ========== */
.cf7-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 80, 150, 0.06);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: #333;
}

/* ========== 各行 ========== */
.cf7-row {
  display: flex;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px dashed #d9e6f2;
}

.cf7-row:last-of-type {
  border-bottom: none;
}

/* ========== ラベル部分 ========== */
.cf7-label {
  width: 220px;
  flex-shrink: 0;
  padding-top: 12px;
}

.cf7-label label {
  font-weight: 600;
  font-size: 15px;
  color: #2a5d8f;
  display: inline-block;
}

/* 必須タグ（やわらかい青ベース） */
.required-tag {
  display: inline-block;
  background: #dc3232;
  color: #fff;
  border-radius: 12px;
  font-size: 11px;
  padding: 2px 10px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

/* 文字数注意書き */
.limit-note {
  color: #7a9bbd;
  font-size: 12px;
  margin: 6px 0 0;
  font-weight: normal;
}

/* ========== チェックボックス（複数選択） ========== */
/* ========== 入力フィールド ========== */
.cf7-field {
  flex: 1;
}

.cf7-field input[type="text"],
.cf7-field input[type="tel"],
.cf7-field input[type="email"],
.cf7-field textarea,
.cf7-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d9e6f2;
  border-radius: 10px;
  font-size: 15px;
  background: #f7fbfd;
  box-sizing: border-box;
  transition: all 0.2s ease;
  font-family: inherit;
  color: #333;
}

/* プレースホルダーをやわらかい色に */
.cf7-field input::placeholder,
.cf7-field textarea::placeholder {
  color: #b0c4d8;
}

/* フォーカス時：海らしい青で柔らかく */
.cf7-field input:focus,
.cf7-field textarea:focus,
.cf7-field select:focus {
  outline: none;
  border-color: #5ba8d6;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91, 168, 214, 0.15);
}

.cf7-field textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.7;
}

/* ========== 住所欄（ラジオ＋セレクト） ========== */
.address-field {
  display: flex;
  gap: 16px;
  align-items: center;
}

.address-field .wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.address-field .wpcf7-radio .wpcf7-list-item {
  margin: 0;
  display: block;
}

.address-field .wpcf7-radio label {
  font-weight: normal;
  font-size: 16px;
  color: #555;
  cursor: pointer;
}

.address-field .wpcf7-select {
  flex: 1;
}

/* ラジオボタン：カスタムデザイン（選択時に中心へ白い点） */
.cf7-field input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #5ba8d6;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cf7-field input[type="radio"]:checked {
  background: #5ba8d6;
  box-shadow: inset 0 0 0 4px #fff;
}

.cf7-field input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 168, 214, 0.2);
}

.cf7-field input[type="radio"]:checked:focus {
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 3px rgba(91, 168, 214, 0.2);
}

/* ========== 同意チェックボックス ========== */
.cf7-acceptance {
  text-align: center;
  padding: 30px 0 20px;
  font-size: 16px;
  color: #555;
}

.cf7-acceptance a {
  color: #2a8ac0;
  text-decoration: underline;
}

.cf7-acceptance a:hover {
  color: #1a6ea0;
}

.cf7-acceptance input[type="checkbox"] {
  accent-color: #5ba8d6;
  margin-right: 8px;
  transform: scale(1.2);
  vertical-align: middle;
}

/* ========== 送信ボタン ========== */
.cf7-submit {
  text-align: center;
  padding: 10px 0 20px;
}

.cf7-submit input[type="submit"] {
  background: linear-gradient(135deg, #5ba8d6 0%, #2a8ac0 100%);
  color: #fff;
  border: none;
  padding: 14px 80px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 2px;
  box-shadow: 0 4px 15px rgba(42, 138, 192, 0.3);
  transition: all 0.25s ease;
}

.cf7-submit input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 138, 192, 0.4);
  opacity: 0.95;
}

.cf7-submit input[type="submit"]:active {
  transform: translateY(0);
}

/* ========== CF7のメッセージ系の調整 ========== */
.wpcf7-not-valid-tip {
  color: #e88c8c !important;
  background: none !important;
  font-size: 12px !important;
  margin-top: 6px;
}

.wpcf7-response-output {
  border-radius: 10px !important;
  border: 1px solid #d9e6f2 !important;
  background: #f7fbfd;
  padding: 15px 20px !important;
  margin: 20px 0 0 !important;
  font-size: 16px;
}

/* ========== スマホ対応 ========== */
@media (max-width: 600px) {
  .cf7-form {
    padding: 25px 18px;
    border-radius: 12px;
  }
  .cf7-row {
    flex-direction: column;
    padding: 15px 0;
  }
  .cf7-label {
    width: 100%;
    margin-bottom: 10px;
    padding-top: 0;
  }
  .address-field {
    flex-direction: column;
    align-items: stretch;
  }
  .cf7-submit input[type="submit"] {
    width: 100%;
    padding: 14px 0;
  }
}

/* ========== チェックボックス（複数選択） ========== */
.cf7-field .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-top: 10px;
}

.cf7-field .wpcf7-checkbox .wpcf7-list-item {
  margin: 0;
}

.cf7-field .wpcf7-checkbox label {
  font-weight: normal;
  font-size: 16px;
  color: #444;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #f7fbfd;
  border: 1px solid #d9e6f2;
  border-radius: 30px;
  transition: all 0.2s ease;
}

.cf7-field .wpcf7-checkbox label:hover {
  background: #eaf4fa;
  border-color: #5ba8d6;
}

.cf7-field input[type="checkbox"] {
  accent-color: #5ba8d6;
  margin-right: 6px;
  transform: scale(1.1);
}

/* スマホ対応（チェックボックス用追加） */
@media (max-width: 768px) {
  .cf7-field .wpcf7-checkbox {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============================================================
   Contact Form 7 - デフォルトマークアップ用スタイル
   （CF7 エディタに独自クラスを書かない素のフォーム向け。
   　サイトのカラー変数に合わせたお問い合わせフォーム共通デザイン）
   ============================================================ */

/* フォーム全体（外枠なし・ページと一体化） */
.wpcf7 {
  max-width: 980px;
  margin: 0 auto;
}

.wpcf7 .wpcf7-form {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  color: var(--kobe-text);
}

/* 各項目（CF7 は通常 <p> で1項目を包む） */
.wpcf7 .wpcf7-form > p {
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.wpcf7 .wpcf7-form > p:last-of-type {
  margin-bottom: 0;
}

.wpcf7-form-control-wrap {
  padding-left: 0;
  padding-right: 0;
}

/* ラベル（<label> もしくは太字テキスト想定） */
.wpcf7 .wpcf7-form label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--kobe-navy);
}

/* 必須項目の「（必須）」テキストだけを赤文字に
   使い方: CF7のラベル内で「（必須）」を
     <span class="required-text">（必須）</span> で囲む */
.wpcf7 .wpcf7-form label .required-text {
  color: #df231d;
}

/* 文字数などの赤キャプション
   使い方: CF7のラベル内に
     <span class="limit-note">○○文字以内で入力ください</span> を入れる */
.wpcf7 .wpcf7-form .limit-note {
  display: block;
  color: #df231d;
  font-size: 12px;
  font-weight: normal;
  margin-top: 6px;
}

/* 必須マーク（海遊館サイト準拠：赤い角丸ピル＋白文字）
   使い方: ラベル内に <span class="required">必須</span> を入れる */
.wpcf7 .wpcf7-form .required,
.wpcf7 .wpcf7-form .wpcf7-required-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 20px;
  background: #df231d;
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  margin-left: 0.5em;
  vertical-align: middle;
  flex-shrink: 0;
}

/* 任意マーク（必須と対で使う場合のグレー版。海遊館では未使用） */
.wpcf7 .wpcf7-form .optional {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 20px;
  background: var(--kobe-gray-mid);
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  margin-left: 0.5em;
  vertical-align: middle;
  flex-shrink: 0;
}

/* 入力フィールド共通 */
.wpcf7 .wpcf7-form input[type="text"],
.wpcf7 .wpcf7-form input[type="tel"],
.wpcf7 .wpcf7-form input[type="email"],
.wpcf7 .wpcf7-form input[type="url"],
.wpcf7 .wpcf7-form input[type="number"],
.wpcf7 .wpcf7-form input[type="date"],
.wpcf7 .wpcf7-form select,
.wpcf7 .wpcf7-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--kobe-text);
  background: var(--kobe-gray-light);
  border: 1px solid #dbe7ee;
  border-radius: var(--kobe-radius);
  transition: border-color var(--kobe-transition), background var(--kobe-transition), box-shadow var(--kobe-transition);
}

.wpcf7 .wpcf7-form textarea {
  min-height: 180px;
  line-height: 1.8;
  resize: vertical;
  padding: 15px;
}

.wpcf7 .wpcf7-form input::placeholder,
.wpcf7 .wpcf7-form textarea::placeholder {
  color: var(--kobe-gray-mid);
}

/* フォーカス：サイトのブルーで柔らかく */
.wpcf7 .wpcf7-form input:focus,
.wpcf7 .wpcf7-form select:focus,
.wpcf7 .wpcf7-form textarea:focus {
  outline: none;
  background: var(--kobe-white);
  border-color: var(--kobe-blue);
  box-shadow: 0 0 0 3px rgba(0, 170, 231, 0.18);
}

/* セレクト（矢印を独自描画） */
.wpcf7 .wpcf7-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
}

/* セレクトの矢印はCF7が自動生成するラップ側に付ける
   （selectの中に置くとセレクト自体をtransformすることになり、
   　クリック中に矢印だけ180度回転させられないため） */
.wpcf7-form-control-wrap:has(select) {
  display: block;
  width: 100%;
  position: relative;
}

.wpcf7-form-control-wrap:has(select)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 12px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2300AAE7' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transform: translateY(-50%);
  transition: transform var(--kobe-transition);
  pointer-events: none;
}

.wpcf7-form-control-wrap.is-select-open:has(select)::after {
  transform: translateY(-50%) rotate(180deg);
}

/* ラジオ・チェックボックスのリスト */
.wpcf7 .wpcf7-form .wpcf7-radio,
.wpcf7 .wpcf7-form .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.wpcf7 .wpcf7-form .wpcf7-list-item {
  margin: 0;
}

.wpcf7 .wpcf7-form .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--kobe-text);
  cursor: pointer;
}

.wpcf7 .wpcf7-form input[type="radio"],
.wpcf7 .wpcf7-form input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  cursor: pointer;
}

/* 同意チェックボックス（acceptance） */
.wpcf7 .wpcf7-form .wpcf7-acceptance {
  display: block;
}

.wpcf7 .wpcf7-form .wpcf7-acceptance .wpcf7-list-item label {
  font-size: 0.9rem;
  color: var(--kobe-text);
}

.wpcf7 .wpcf7-form .wpcf7-acceptance a {
  color: var(--kobe-blue);
  text-decoration: underline;
}

/* 送信ボタン */
.wpcf7 .wpcf7-form input[type="submit"] {
  display: block;
  margin: 0.5rem auto 0;
  min-width: 240px;
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--kobe-blue);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 170, 231, 0.3);
  transition: transform var(--kobe-transition), box-shadow var(--kobe-transition), background var(--kobe-transition);
}

.wpcf7 .wpcf7-form input[type="submit"]:hover {
  background: var(--kobe-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(21, 24, 41, 0.25);
}

.wpcf7 .wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
}

/* 送信中スピナー位置調整 */
.wpcf7 .wpcf7-spinner {
  margin: 0.75rem auto 0;
  display: block;
}

/* バリデーションエラー・応答メッセージ */
.wpcf7 .wpcf7-not-valid-tip {
  color: #dc3232;
  background: none !important;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.wpcf7 .wpcf7-form input.wpcf7-not-valid,
.wpcf7 .wpcf7-form textarea.wpcf7-not-valid,
.wpcf7 .wpcf7-form select.wpcf7-not-valid {
  border-color: #dc3232;
  box-shadow: 0 0 0 3px rgba(220, 50, 50, 0.12);
}

.wpcf7 .wpcf7-response-output {
  margin: 1.5rem 0 0 !important;
  padding: 0.9rem 1.25rem !important;
  border-radius: var(--kobe-radius) !important;
  font-size: 0.9rem;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .wpcf7 .wpcf7-form {
    padding: 1.75rem 1.25rem;
  }
  .wpcf7 .wpcf7-form input[type="submit"] {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================================
   お問い合わせフォーム／学校・園来館申込フォーム
   （本番CF7コードのクラス名 form__* / contactform__* にあわせたスタイル）
   ============================================================ */

.contactform__contForm {
  color: var(--kobe-text);
}

.contactform__contForm .confirm_area,
.contactform__contForm .thanks_area {
  display: none;
}

/* ---------- ステップ見出し（学校・園来館申込フォーム） ---------- */
.contactform__contFormTitleB {
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--kobe-blue);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--kobe-navy);
}

/* ---------- 完了画面 ---------- */
.contactform__contRight {
  padding: 2rem 0;
  text-align: center;
}

.contactform__contTitle {
  margin: 0 0 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--kobe-navy);
}

.contactform__contTopText {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--kobe-text);
}

/* ---------- 項目リスト（dl / dt / dd） ---------- */
.form__dl {
  display: grid;
  grid-template-columns: 240px 1fr;
  margin: 0;
  border-top: 1px solid #dbe7ee;
}

.form__dt,
.form__dd {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #dbe7ee;
}

.form__dt {
  display: flex;
  align-items: flex-start;
  background: var(--kobe-gray-light);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--kobe-navy);
}

.form__dd {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  background: var(--kobe-white);
  font-size: 0.95rem;
}

.form__label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}

.form__required {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 20px;
  padding: 0 0.5em;
  background: #df231d;
  border-radius: var(--kobe-radius);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* ---------- 入力欄 ---------- */
.form__input,
.form__select,
.form__textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--kobe-text);
  background: var(--kobe-gray-light);
  border: 1px solid #dbe7ee;
  border-radius: var(--kobe-radius);
  transition: border-color var(--kobe-transition), background var(--kobe-transition), box-shadow var(--kobe-transition);
}

.form__textarea {
  min-height: 180px;
  line-height: 1.8;
  resize: vertical;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--kobe-gray-mid);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  background: var(--kobe-white);
  border-color: var(--kobe-blue);
  box-shadow: 0 0 0 3px rgba(0, 170, 231, 0.18);
}

.form__select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--kobe-white);
  padding-right: 2.5rem;
  cursor: pointer;
}

/* 人数など桁数の少ない数値欄 */
.form__input2 {
  width: 4.5em !important;
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
  text-align: center;
}

.form__input2-w1em {
  width: 3.5em !important;
}

/* ---------- dd内のレイアウト補助 ---------- */
.form__ddInner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
}

.form__radioWrap {
  flex: 1;
  min-width: 200px;
}

.form__radioWrap .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5rem 1rem;
  /* background: var(--kobe-gray-light); */
  /* border: 1px solid #dbe7ee; */
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--kobe-transition), border-color var(--kobe-transition), color var(--kobe-transition);
}

/* .form__radioWrap .wpcf7-list-item label:has(input:checked) {
  background: var(--kobe-blue);
  border-color: var(--kobe-blue);
  color: #fff;
} */

.form__radioWrap .wpcf7-list-item.first label {
  background: none;
}

.form__selectWrap {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem;
  background: none !important;
  border-radius: var(--kobe-radius);
}

.form__ddSupText {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--kobe-gray-mid);
}

/* ---------- 入館予定人数（学校・園来館申込フォーム） ---------- */
.form__ddCol2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 0.5rem;
  width: 100%;
}

.form__ddCol2Col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.form__ddCol2Col p {
  margin: 0;
  font-size: 0.85rem;
}

.form__ddCol2Col-small {
  font-size: 0.8rem;
  color: var(--kobe-gray-mid);
}

/* ---------- 個人情報保護方針への同意エリア ---------- */
.form__confirmArea {
  padding: 2rem 0 1.5rem;
  text-align: center;
}

.form__confirmText {
  margin: 0;
  font-size: 0.95rem;
  color: var(--kobe-text);
}

.linkText {
  color: var(--kobe-blue);
  text-decoration: underline;
}

.linkText:hover {
  color: var(--kobe-navy);
}

/* ---------- 汎用ユーティリティ ---------- */
.tac {
  text-align: center;
}

.mt-40 {
  margin-top: 40px;
}

.pl-30 {
  padding-left: 30px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 0.9rem 2.5rem;
  border: none;
  border-radius: 999px;
  background: var(--kobe-blue);
  box-shadow: 0 4px 14px rgba(0, 170, 231, 0.3);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform var(--kobe-transition), box-shadow var(--kobe-transition), background var(--kobe-transition), opacity var(--kobe-transition);
}

.btn__text {
  pointer-events: none;
}

.btn:hover:not(:disabled) {
  background: var(--kobe-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(21, 24, 41, 0.25);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  background: var(--kobe-gray-mid);
  box-shadow: none;
  opacity: 0.7;
  cursor: not-allowed;
}

.back_button {
  background: transparent;
  border: 1px solid var(--kobe-gray-mid);
  box-shadow: none;
  color: var(--kobe-navy);
}

.back_button:hover:not(:disabled) {
  background: var(--kobe-gray-light);
  color: var(--kobe-navy);
  transform: none;
  box-shadow: none;
}

/* ---------- ご利用観光券種「なし」の非表示制御用 ---------- */
.ticket-none-hidden {
  display: none;
}

/* ---------- スマホ対応 ---------- */
@media (max-width: 768px) {
  .form__dl {
    display: block;
    border-top: none;
  }

  .form__dt,
  .form__dd {
    display: block;
    padding: 0.75rem 0;
    border-bottom: none;
  }

  .form__dt {
    padding-bottom: 0.5rem;
    background: transparent;
  }

  .form__dd {
    padding-top: 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #dbe7ee;
  }

  .form__ddInner-spVertical {
    flex-direction: column;
    align-items: stretch;
  }

  .form__ddCol2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.75rem;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .mtsp-20 {
    margin-top: 20px;
  }

  .mtsp-0 {
    margin-top: 0;
  }

  .plsp-0 {
    padding-left: 0;
  }
}

/* ============================================================
   Snow Monkey Blocks - アコーディオン・FAQ 共通デザイン（海遊館風）
   ============================================================ */

/* コンテナリセット */
.smb-faq {
	border-top: none;
}

/* アイテム間の余白 */
.smb-accordion > * + *,
.smb-faq > * + * {
	margin-top: 12px;
}

/* ━━━ 共通：アイテムカード ━━━ */
.smb-accordion__item,
.smb-faq__item {
	background: #f6f6f6;
	border-bottom: none;
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	transition: background 0.3s ease;
}

/* ━━━ 共通：Q バッジ ━━━ */
.smb-accordion__item__title::before,
.smb-faq__item__question__label {
	content: "Q";
	position: absolute;
	left: 16px;
	top: 18px;
	width: 26px;
	height: 26px;
	min-width: unset;
	background: #00aae7;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Fira Sans Condensed", sans-serif;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	margin: 0;
	flex: 0 0 auto;
	flex-shrink: 0;
}

/* ━━━ 共通：A バッジ ━━━ */
.smb-accordion__item__body::before,
.smb-faq__item__answer__label {
	content: "A";
	position: absolute;
	left: 16px;
	top: 0;
	width: 26px;
	height: 26px;
	min-width: unset;
	background: #fff;
	color: #00aae7;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Fira Sans Condensed", sans-serif;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	margin: 0;
	flex: 0 0 auto;
	flex-shrink: 0;
}

/* ━━━ アコーディオン固有 ━━━ */

/* 開いているとき：カード背景を薄い青に */
.smb-accordion__item:has(.smb-accordion__item__control:checked) {
	background: #e7f6ff;
}

/* タイトル（質問） */
.smb-accordion__item__title {
	background: transparent;
	padding: 18px 52px 18px 58px;
	position: relative;
	font-size: 1rem;
	font-weight: 700;
	color: #333;
	line-height: 1.5;
	transition: color 0.3s ease;
	align-items: flex-start;
	min-height: 64px;
}

@media (hover: hover) {
	.smb-accordion__item__title:hover {
		color: #00aae7;
	}
}

/* 開いているとき：タイトル文字色を青に */
.smb-accordion__item__control:checked + .smb-accordion__item__title {
	color: #00aae7;
}

/* デフォルトの回転SVGアイコンを非表示にして独自の +/− に差し替え */
.smb-accordion__item__title__icon {
	display: none;
}

.smb-accordion__item__title__label::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	background:
		linear-gradient(#00aae7, #00aae7) center / 2px 100%,
		linear-gradient(#00aae7, #00aae7) center / 100% 2px;
	background-repeat: no-repeat;
	transition: background 0.2s ease;
}

/* 開いているとき：+ を − に */
.smb-accordion__item__control:checked + .smb-accordion__item__title .smb-accordion__item__title__label::after {
	background: linear-gradient(#00aae7, #00aae7) center / 100% 2px;
	background-repeat: no-repeat;
}

/* 本文（回答） */
.smb-accordion__item__body {
	padding: 4px 24px 20px 58px;
	position: relative;
	font-size: 0.95rem;
	line-height: 1.7;
	color: #333;
}

/* ━━━ FAQ固有 ━━━ */

.smb-faq__item {
	padding: 20px 24px 20px 58px;
}

.smb-faq__item__question__label {
	top: 20px;
	color: #fff !important;
}

.smb-faq__item__answer__label {
	color: #00aae7 !important;
}

.smb-faq__item__question {
	font-weight: 700;
	color: #333;
	margin-bottom: 12px;
}

.smb-faq__item__answer {
	font-size: 0.95rem;
	line-height: 1.7;
	color: #444;
}

/* ============================================================
   アコーディオン・FAQ スマホ対応
   ============================================================ */

@media (max-width: 600px) {
	.smb-accordion__item__title,
	.smb-accordion__item__body,
	.smb-faq__item {
		padding-left: 52px;
	}

	.smb-accordion__item__title::before,
	.smb-accordion__item__body::before,
	.smb-faq__item__question__label,
	.smb-faq__item__answer__label {
		left: 12px;
	}

	.smb-accordion__item__title__label::after {
		right: 12px;
	}
}

/* ============================================================
   WordPress コア Accordion ブロック（海遊館風デザイン）
   .wp-block-accordion / .wp-block-accordion-item
   ============================================================ */

/* アイテム間の余白（テーマのh3 margin-top: 3.25rem も打ち消し） */
.wp-block-accordion > * + * {
	margin-top: 12px;
}

.wp-block-accordion .wp-block-accordion-item {
	margin-top: 0;
}

/* アイテムカード */
.wp-block-accordion-item {
	background: #f6f6f6;
	border-radius: 16px;
	overflow: hidden;
	transition: background 0.3s ease;
}

/* 開いているとき：薄い青に */
.wp-block-accordion-item.is-open {
	background: #e7f6ff;
}

/* 見出し要素のリセット（テーマのh3スタイルを打ち消し） */
.wp-block-accordion-heading {
	margin: 0;
	padding-bottom: 0;
	padding-left: 0;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	position: static;
	background: none;
	border: none;
}

/* テーマのh3::after グラデーションラインを打ち消し */
.wp-block-accordion-heading::after {
	display: none;
}

/* トグルボタン */
.wp-block-accordion-heading__toggle {
	padding: 18px 52px 18px 58px;
	position: relative;
	font-weight: 700;
	font-size: 1rem;
	color: #333;
	line-height: 1.5;
	transition: color 0.3s ease;
	min-height: 64px;
	align-items: flex-start;
}

/* ホバー時 */
@media (hover: hover) {
	.wp-block-accordion-heading__toggle:hover {
		color: #00aae7;
	}

	.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
		text-decoration: none;
	}
}

/* 開いているとき：タイトル文字色を青に */
.wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle {
	color: #00aae7;
}

/* Q バッジ */
.wp-block-accordion-heading__toggle::before {
	content: "Q";
	position: absolute;
	left: 16px;
	top: 18px;
	width: 26px;
	height: 26px;
	background: #00aae7;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Fira Sans Condensed", sans-serif;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	flex-shrink: 0;
}

/* デフォルトのアイコン（回転する＋）を非表示にして独自の +/− に差し替え */
.wp-block-accordion-heading__toggle-icon {
	overflow: visible;
	transform: none !important;
}

.wp-block-accordion-heading__toggle-icon svg {
	display: none;
}

.wp-block-accordion-heading__toggle-icon::after {
	content: "";
	display: block;
	width: 22px;
	height: 22px;
	background:
		linear-gradient(#00aae7, #00aae7) center / 2px 100%,
		linear-gradient(#00aae7, #00aae7) center / 100% 2px;
	background-repeat: no-repeat;
	transition: background 0.2s ease;
}

/* 開いているとき：+ を − に */
.wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon::after {
	background: linear-gradient(#00aae7, #00aae7) center / 100% 2px;
	background-repeat: no-repeat;
}

/* パネル（回答） */
.wp-block-accordion-panel {
	padding: 4px 24px 20px 58px;
	position: relative;
	font-size: 0.95rem;
	line-height: 1.7;
	color: #333;
}

/* A バッジ */
.wp-block-accordion-panel::before {
	content: "A";
	position: absolute;
	left: 16px;
	top: 0;
	width: 26px;
	height: 26px;
	background: #fff;
	color: #00aae7;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Fira Sans Condensed", sans-serif;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	flex-shrink: 0;
}

/* スマホ対応 */
@media (max-width: 600px) {
	.wp-block-accordion-heading__toggle {
		padding-left: 52px;
	}

	.wp-block-accordion-panel {
		padding-left: 52px;
	}

	.wp-block-accordion-heading__toggle::before,
	.wp-block-accordion-panel::before {
		left: 12px;
	}
}

/* ============================================================
 * front-page.html 追加分
 * ============================================================ */

/* ============================================================
   展示会カード: ステータスラベル
   ============================================================ */

.kobe-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: #e8eef2;
}

.kobe-card__media .wp-block-post-featured-image {
	margin: 0;
	display: block;
	height: 100%;
}

.kobe-card__media .wp-block-post-featured-image a {
	display: block;
	height: 100%;
}

.kobe-card__media .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* exhibition_status タクソノミー（「開催中」「近日開催」など）をカード本文・日付の上に配置 */
.kobe-card__status-wrap {
	margin: 0 0 0.5rem;
	display: flex;
	gap: 4px;
}

.kobe-card__status-wrap a {
	display: inline-block;
	background: #F39200;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.3rem 0.875rem;
	border-radius: 4px;
	text-decoration: none;
	letter-spacing: 0.04em;
}

/* 開催中＝ブルー（近日開催はデフォルトのオレンジ #F39200 のまま） */
.kobe-card__status-wrap a[href*="exhibition-status/ongoing"],
.kobe-card__status-wrap a[data-href*="exhibition-status/ongoing"] {
	background: var(--kobe-blue);
}

/* 展覧会・イベント詳細: 開催ステータスの文字サイズ（PC 16px / SP 14px） */
.single-exhibition .kobe-card__status-wrap a,
.single-event .kobe-card__status-wrap a {
	font-size: 14px;
}

@media (min-width: 783px) {
	.single-exhibition .kobe-card__status-wrap a,
	.single-event .kobe-card__status-wrap a {
		font-size: 16px;
	}
}

/* 展覧会一覧: タイトルの行数に関係なくカードの高さを揃える */
.post-type-archive-exhibition .wp-block-post-template > li {
	display: flex;
}

.post-type-archive-exhibition .wp-block-post-template .kobe-card {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.post-type-archive-exhibition .wp-block-post-template .kobe-card__body {
	flex: 1 1 auto;
}

/* 詳細ページ: 開催ステータスはリンクではないためホバーで色を変えない */
.single-exhibition .kobe-card__status-wrap a,
.single-event .kobe-card__status-wrap a {
	color: #fff;
	cursor: default;
}

/* 展覧会一覧: 開催ステータス絞り込みタブ */
.kmm-exhibition-filter {
	margin-bottom: 1.5rem;
}

.kmm-exhibition-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* .kmm-page__main ul の margin-bottom に負けないよう詳細度を上げる */
.kmm-exhibition-filter .kmm-exhibition-filter__list {
	margin-bottom: 5rem;
}

.kmm-exhibition-filter__item a,
.kmm-exhibition-filter__item span {
	display: inline-block;
	padding: 0.65rem 1.1rem;
	border: 1px solid var(--kobe-blue);
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	color: var(--kobe-blue);
	background: var(--kobe-white);
	transition: background-color 0.2s, color 0.2s;
}

@media (min-width: 783px) {
	.kmm-exhibition-filter__item a,
	.kmm-exhibition-filter__item span {
		font-size: 15px;
	}
}

.kmm-exhibition-filter__item a:hover {
	background: var(--kobe-blue);
	color: var(--kobe-white);
}

.kmm-exhibition-filter__item.is-current span {
	background: var(--kobe-blue);
	color: var(--kobe-white);
	cursor: default;
}

.kobe-card__status-wrap a[href*="ended"],
.kobe-card__status-wrap a[href*="closed"],
.kobe-card__status-wrap a[data-href*="ended"],
.kobe-card__status-wrap a[data-href*="closed"] {
	background: var(--kobe-navy);
}

/* ============================================================
   展示記録ページ: 展示記録一覧
   ============================================================ */

.kmm-exhibition-archive {
	margin-top: 3rem;
}

.kmm-exhibition-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.kmm-exhibition-archive__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: inline-block;
	background: var(--kobe-navy);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.3rem 0.875rem;
	border-radius: 4px;
	letter-spacing: 0.04em;
}

@media (max-width: 900px) {
	.kmm-exhibition-archive__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/* イベント一覧: 展覧会カードと同じステータス表示 */
.post-type-archive-event .kobe-news-item {
	gap: 1rem;
}

.post-type-archive-event .kobe-news-item > .wp-block-post-date {
	flex: 0 0 104px;
}

.post-type-archive-event .kmm-event-list__status-column {
	flex: 0 0 96px;
	width: 96px;
}

.post-type-archive-event .kmm-event-list__status {
	position: relative;
	z-index: 1;
	display: block;
	margin: 0;
}

.post-type-archive-event .kmm-event-list__status a {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 29px;
	padding: 0.3rem 0.875rem;
	border-radius: 4px;
	background: #F39200;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.post-type-archive-event .kmm-event-list__status a[href*="exhibition-status/ongoing"] {
	background: var(--kobe-blue);
}

.post-type-archive-event .kmm-event-list__status a[href*="ended"],
.post-type-archive-event .kmm-event-list__status a[href*="closed"] {
	background: var(--kobe-navy);
}

@media (max-width: 768px) {
	.post-type-archive-event .kobe-news-item > .wp-block-post-date {
		flex-basis: auto;
	}

	.post-type-archive-event .kmm-event-list__status-column {
		flex: 0 0 auto;
	}
}

/* ============================================================
   展示会セクション: スライダー
   ============================================================ */

.kmm-exhibition__query > .wp-block-post-template {
	gap: 1.5rem !important;
}

.post-type-archive-exhibition .kmm-page__main .wp-block-post-template {
	gap: 1.5rem !important;
}

.kmm-exhibition__arrows {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin-top: 1.5rem;
}

/* PC 未満では矢印を隠し、スワイプ（横スクロール）で操作 */
@media (max-width: 1024px) {
	.kmm-exhibition__arrows {
		display: none;
	}
}

.kmm-exhibition__arrow {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--kobe-blue);
	border: none;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: opacity var(--kobe-transition), transform var(--kobe-transition);
}

.kmm-exhibition__arrow:hover {
	opacity: 0.85;
}

.kmm-exhibition__arrow:active {
	transform: scale(0.96);
}

/* PC: カードを右側にオーバーフローさせるスライダー */
@media (min-width: 1025px) {
	.kmm-exhibition .kmm-section-content {
		overflow: visible;
		margin-right: 0;
		clip-path: inset(-2rem -100vw -2rem -1.5rem);
	}

	.kmm-exhibition__query > .wp-block-post-template {
		display: flex !important;
		flex-wrap: nowrap !important;
		gap: 1.5rem !important;
		transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
		will-change: transform;
	}

	.kmm-exhibition__query > .wp-block-post-template > li {
		flex: 0 0 clamp(240px, 20.833vw, 400px);
		min-width: 0;
	}

	.kmm-exhibition__arrows {
		justify-content: center;
		margin-top: 1.5rem;
	}
}

/* 一覧ページと同じカードデザイン（画像 3:2 ＋ 本文、高さ揃え） */
.kmm-exhibition__query .wp-block-post-template > li {
	display: flex;
}

.kmm-exhibition__query .kobe-card {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.kmm-exhibition__query .kobe-card__body {
	flex: 1 1 auto;
}

/* スマホ・タブレット: 横スワイプ（横スクロール）スライダー */
@media (max-width: 1024px) {
	.kmm-exhibition .kmm-section-content {
		overflow: visible;
	}

	.kmm-exhibition__query > .wp-block-post-template {
		display: flex !important;
		flex-wrap: nowrap !important;
		gap: 1rem !important;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		padding-bottom: 0.75rem;
		/* JS スライダーの transform が残っても無効化 */
		transform: none !important;
	}

	.kmm-exhibition__query > .wp-block-post-template > li {
		flex: 0 0 80%;
		max-width: 320px;
		min-width: 0;
		scroll-snap-align: start;
	}

}

/* ============================================================
   開館カレンダーセクション
   ============================================================ */

.kmm-calendar__body {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	min-height: 360px;
}

/* ============================================================
   神戸海洋博物館とはセクション
   ============================================================ */

.kmm-about__content {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.kmm-about__intro {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 1.5rem;
}

.kmm-page__main .kmm-about__lead {
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--kobe-blue);
	line-height: 1.5;
	text-decoration: none;
	padding-bottom: 0;
	padding-left: 0;
}

/* h2/h3 共通の下線（::after グラデーション）をこのクラスのみ無効化 */
.kmm-page__main .kmm-about__lead::after {
	content: none;
}

.kmm-about__kawasaki {
	font-size: clamp(0.95rem, 2.4vw, 1.5rem);
	font-weight: 600;
	color: var(--kobe-blue);
	min-width: 0;
	margin-top: 0.5rem;
	margin-right: auto;
	width: fit-content;
	align-self: flex-start;
	text-align: left;
}

.kmm-about__kawasaki img {
	width: 10vw;
	max-width: 160px;
	height: auto;
}

@media (max-width: 768px) {
	.kmm-about__kawasaki img {
		width: 30vw;
		max-width: 140px;
	}
}

.kmm-about__text {
	font-size: 1rem;
	line-height: 1.9;
	color: var(--kobe-text);
}

/* ============================================================
   開館時間・料金セクション（フルブリードの斜めストライプ帯）
   ============================================================ */

.kmm-hours-fee {
	background-color: #fff;
	background-image: repeating-linear-gradient(
		-45deg,
		#EAF6FB 0,
		#EAF6FB 1px,
		transparent 1px,
		transparent 12px
	);
	padding: 4rem 2rem;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.kmm-hours-fee__inner {
	max-width: var(--kmm-content-max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(180px, 1fr) 3fr;
	gap: 3rem;
	align-items: center;
}

.kmm-hours-fee__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
}

.kmm-hours-fee__heading {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--kobe-navy);
	margin: 0;
}

.kmm-hours-fee__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 160px;
	height: 44px;
	border: 1.5px solid var(--kobe-blue);
	border-radius: 999px;
	background: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--kobe-blue);
	text-decoration: none;
	transition: all var(--kobe-transition);
}

.kmm-hours-fee__btn:hover {
	background: var(--kobe-blue);
	color: #fff;
}

.kmm-hours-fee__items {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
}

.kmm-hours-fee__item {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1 0 max-content;
	min-width: max-content;
	white-space: nowrap;
}

.kmm-hours-fee__item-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--kobe-text);
	margin-bottom: 0.25rem;
}

.kmm-hours-fee__item-label svg {
	flex-shrink: 0;
	color: var(--kobe-navy);
}

.kmm-hours-fee__item-main {
	margin: 0;
	color: var(--kobe-navy);
	line-height: 1.1;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex-wrap: nowrap;
}

.kmm-hours-fee__num {
	font-family: "Fira Sans Condensed", "Helvetica Neue", sans-serif;
	font-size: 2.25rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.kmm-hours-fee__sep {
	color: var(--kobe-navy);
	font-weight: 400;
	margin: 0 0.1rem;
	font-size: 1.5rem;
}

.kmm-hours-fee__text {
	font-size: 1.875rem;
	font-weight: 700;
}

.kmm-hours-fee__item-note {
	font-size: 0.75rem;
	color: #F39200;
	font-weight: 700;
	margin: 0;
}

.kmm-hours-fee__price {
	display: inline-flex;
	align-items: baseline;
	gap: 0.3rem;
}

.kmm-hours-fee__price-label {
	font-size: 1rem;
	font-weight: 600;
	color: var(--kobe-text);
	white-space: nowrap;
}

.kmm-hours-fee__unit {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--kobe-text);
}

.kmm-hours-fee__price-sep {
	color: var(--kobe-gray-mid);
	font-weight: 400;
	margin: 0 0.25rem;
	font-size: 1.25rem;
}

/* サイドバー込みで内容幅が不足する狭幅PC〜スマホ */
@media (max-width: 1210px) {
	.kmm-hours-fee__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.kmm-hours-fee__head {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		width: 100%;
	}
}

@media (max-width: 768px) {
	.kmm-hours-fee {
		padding: 2.5rem 1.25rem;
	}

	.kmm-hours-fee__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.kmm-hours-fee__items {
		display: grid;
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.kmm-hours-fee__num {
		font-size: 1.875rem;
	}

	.kmm-hours-fee__text {
		font-size: 1.5rem;
	}

	.kmm-hours-fee__item-main:has(.kmm-hours-fee__price) {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
	}

	.kmm-hours-fee__price-sep {
		display: none;
	}
}

/* ============================================================
   サイドバー: 共通レイアウト
   ============================================================ */

.kmm-page__sidebar {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

@media (max-width: 1024px) {
	.kmm-page__sidebar {
		gap: 1rem;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.kmm-page__body > .wp-block-template-part,
	.kmm-page__sidebar.has-global-padding {
		width: 100%;
		max-width: 512px;
		margin-right: auto !important;
		margin-left: auto !important;
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	.kmm-page__sidebar > *,
	.kmm-page__sidebar > figure > a,
	.kmm-page__sidebar img {
		width: 100% !important;
		max-width: 100% !important;
		height: auto;
	}
}

@media (max-width: 768px) {
	.kmm-page__sidebar {
		gap: 0.875rem !important;
	}

	.kmm-page__sidebar.has-global-padding {
		width: 100%;
		max-width: none;
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	.kmm-page__sidebar > *,
	.kmm-page__sidebar > figure > a,
	.kmm-page__sidebar img {
		width: 100% !important;
		max-width: 100% !important;
		height: auto;
	}
}

/* ============================================================
   サイドバー: 青いボタン（一般団体・学校・貸室・報道）
   ============================================================ */

.kmm-side-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	padding: 1rem 1.25rem;
	background: linear-gradient(135deg, #00AAE7 0%, #0091CC 100%);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 170, 231, 0.25);
	transition: box-shadow var(--kobe-transition);
}

.kmm-side-btn::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.28) 0, rgba(255, 255, 255, 0.28) 6px, transparent 7px),
		radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0.22) 10px, transparent 11px),
		radial-gradient(circle at 22% 82%, rgba(255, 255, 255, 0.20) 0, rgba(255, 255, 255, 0.20) 14px, transparent 15px),
		radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.24) 0, rgba(255, 255, 255, 0.24) 8px, transparent 9px),
		radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0.16) 5px, transparent 6px),
		radial-gradient(circle at 92% 92%, rgba(255, 255, 255, 0.20) 0, rgba(255, 255, 255, 0.20) 7px, transparent 8px),
		radial-gradient(circle at 8% 60%, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0.16) 9px, transparent 10px);
	pointer-events: none;
}

/* .kmm-side-btn:hover {
	box-shadow: 0 4px 14px rgba(0, 170, 231, 0.35);
	color: #fff;
} */

.kmm-side-btn__text {
	position: relative;
	z-index: 1;
	line-height: 1.4;
}

/* ============================================================
   サイドバー: SNSカード（Instagram / X）
   ============================================================ */

.kmm-side-sns {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.875rem 1rem;
	border-radius: 8px;
	color: #fff;
	text-decoration: none;
	overflow: hidden;
	transition: transform var(--kobe-transition), box-shadow var(--kobe-transition);
}

.kmm-side-sns--instagram {
	background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
}

.kmm-side-sns--x {
	background: #000;
}

.kmm-side-sns:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	color: #fff;
}

.kmm-side-sns__icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.kmm-side-sns__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.kmm-side-sns__title {
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}

.kmm-side-sns__title small {
	display: block;
	font-size: 0.55rem;
	font-weight: 500;
	opacity: 0.85;
	letter-spacing: 0.04em;
	margin-top: 0.125rem;
}

.kmm-side-sns__link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.95);
}

.kmm-side-sns__link svg {
	flex-shrink: 0;
}
/* ============================================================
   開館カレンダー: WP Simple Booking Calendar カスタマイズ
   （プラグイン管理画面で Title=空欄 / Show legend=ON / Legend position=side を推奨）
   ============================================================ */
 
/* セクション内での配置 */
.kmm-calendar__body {
	max-width: 100%;
	margin: 1rem auto 0;
	min-height: auto;
}

/* プラグインのコンテナ */
.kmm-calendar__body .wpsbc-container {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto;
}
 
/* プラグインが出力する h2 "休館日" を非表示
   （管理画面で Title を空欄にすれば不要だが、保険として残しておく） */
.kmm-calendar__body .wpsbc-container > h2 {
	display: none !important;
}
 
/* カレンダーラッパー: テーブルと凡例を縦並び */
.kmm-calendar__body .wpsbc-calendars-wrapper {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	width: 100%;
}
 
.kmm-calendar__body .wpsbc-calendars {
	flex: 1;
	min-width: 0;
	width: 100%;
	margin-right: 0 !important;
	margin-left: 0 !important;
}
 
/* プラグインの幅と左右マージンを利用可能幅内に収める */
.kmm-calendar__body .wpsbc-calendar {
	float: none !important;
	min-width: 0 !important;
	max-width: 100% !important;
	width: auto !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	box-sizing: border-box !important;
}
 
/* ============================================================
   ヘッダー: 前/次ボタン + 月セレクト
   ============================================================ */
 
.wpsbc-container .wpsbc-calendars .wpsbc-calendar {
	border: none !important;
}

.wpsbc-container .wpsbc-calendar-header,
.kmm-calendar__body .wpsbc-calendar-header {
	/* margin-bottom: 0.75rem; */
	background: #fff !important;
}

.wpsbc-container .wpsbc-calendar-header-navigation,
.kmm-calendar__body .wpsbc-calendar-header-navigation {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 0.5rem 0 !important;
	position: static !important;
	min-height: 0 !important;
}

/* 前/次ボタンを青い丸ボタンに */
.wpsbc-container .wpsbc-prev,
.wpsbc-container .wpsbc-next,
.kmm-calendar__body .wpsbc-prev,
.kmm-calendar__body .wpsbc-next {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	margin-top: 0 !important;
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	background: var(--kobe-blue) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: opacity var(--kobe-transition);
	flex-shrink: 0;
}

.wpsbc-container .wpsbc-prev:hover,
.wpsbc-container .wpsbc-next:hover,
.kmm-calendar__body .wpsbc-prev:hover,
.kmm-calendar__body .wpsbc-next:hover {
	opacity: 0.85;
}

.wpsbc-container .wpsbc-arrow,
.kmm-calendar__body .wpsbc-arrow {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	margin-top: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	display: inline-block !important;
	width: 8px !important;
	height: 8px !important;
	border: none !important;
	border-top: 2px solid #fff !important;
	border-right: 2px solid #fff !important;
	background: none !important;
}

.wpsbc-container .wpsbc-prev .wpsbc-arrow,
.kmm-calendar__body .wpsbc-prev .wpsbc-arrow {
	transform: rotate(-135deg) !important;
	margin-left: 2px !important;
	margin-right: 0 !important;
}

.wpsbc-container .wpsbc-next .wpsbc-arrow,
.kmm-calendar__body .wpsbc-next .wpsbc-arrow {
	transform: rotate(45deg) !important;
	margin-right: 2px !important;
	margin-left: 0 !important;
}

/* 月選択セレクト */
.wpsbc-container .wpsbc-select-container,
.kmm-calendar__body .wpsbc-select-container {
	position: relative;
	min-width: 120px;
}

.wpsbc-container .wpsbc-select-container select,
.kmm-calendar__body .wpsbc-select-container select {
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	color: var(--kobe-navy) !important;
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 0.4rem 0.5rem !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	text-align: center;
	text-align-last: center;
	height: auto !important;
	line-height: normal !important;
	width: auto !important;
}

.wpsbc-container .wpsbc-select-container select:focus,
.kmm-calendar__body .wpsbc-select-container select:focus {
	outline: none;
}
 
/* ============================================================
   テーブル本体
   ============================================================ */
 
.wpsbc-container .wpsbc-calendar-wrapper,
.kmm-calendar__body .wpsbc-calendar-wrapper {
	padding: 0 !important;
	background: transparent;
	min-height: 0 !important;
}

.wpsbc-container .wpsbc-calendar table,
.kmm-calendar__body .wpsbc-calendar table {
	width: 100%;
	border-collapse: separate !important;
	border-spacing: 2px !important;
	table-layout: fixed;
	border: 0 !important;
	background: #fff;
}

/* 曜日ヘッダー: 濃い青背景・白文字 */
.wpsbc-container .wpsbc-calendar thead th,
.kmm-calendar__body .wpsbc-calendar thead th {
	background: var(--kobe-blue) !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	padding: 8px 0 0.6rem !important;
	border: 0 !important;
	text-align: center !important;
	height: auto !important;
}

/* プラグインの padding:0 !important (詳細度0,3,3) を上回るセレクターで padding-top を上書き */
.wpsbc-container .wpsbc-calendars .wpsbc-calendar table thead tr th {
	padding-top: 8px !important;
}

/* ヘッダー土曜: ダークネイビー */
.wpsbc-container .wpsbc-calendar thead th:nth-child(6),
.kmm-calendar__body .wpsbc-calendar thead th:nth-child(6) {
	background: #1a3589 !important;
	color: #fff !important;
}

/* ヘッダー日曜: ダークレッド */
.wpsbc-container .wpsbc-calendar thead th:nth-child(7),
.kmm-calendar__body .wpsbc-calendar thead th:nth-child(7) {
	background: #9c1c1c !important;
	color: #fff !important;
}

/* 日付セル */
.wpsbc-container .wpsbc-calendar tbody td,
.kmm-calendar__body .wpsbc-calendar tbody td {
	border: 0 !important;
	padding: 0 !important;
}

/* プラグインの詳細度が高い padding: 1px !important を上書き */
.wpsbc-container .wpsbc-calendars .wpsbc-calendar table tbody tr td,
.kmm-calendar__body .wpsbc-container .wpsbc-calendars .wpsbc-calendar table tbody tr td {
	padding: 0 !important;
}

.wpsbc-container .wpsbc-date,
.kmm-calendar__body .wpsbc-date {
	background: #dcf2f7;
	color: var(--kobe-text);
	position: relative;
	overflow: hidden;
	height: 88.45px !important;
}

/* 前月・翌月のはみ出し空白 */
.wpsbc-container .wpsbc-date.wpsbc-gap,
.kmm-calendar__body .wpsbc-date.wpsbc-gap {
	background: #fff !important;
}

.wpsbc-container .wpsbc-date.wpsbc-gap .wpsbc-date-inner,
.kmm-calendar__body .wpsbc-date.wpsbc-gap .wpsbc-date-inner {
	background: #fff !important;
	min-height: 48px;
}

/* 日付の内側コンテナ */
.wpsbc-container .wpsbc-date-inner,
.kmm-calendar__body .wpsbc-date-inner {
	padding: 10px 0.5rem 0.5rem 14px !important;
	height: auto !important;
	line-height: 1.2 !important;
	min-height: 48px;
	text-align: left;
	position: relative;
	z-index: 2;
}

.wpsbc-container .wpsbc-date-number,
.kmm-calendar__body .wpsbc-date-number {
	display: block;
	font-family: 'Figtree', sans-serif !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	line-height: 1 !important;
	position: absolute !important;
	top: 10px !important;
	left: 14px !important;
	width: auto !important;
	height: auto !important;
}

/* セル内に絶対配置されている凡例カラーアイコンを非表示
   （凡例エリア内のものは別途表示） */
.wpsbc-container .wpsbc-date .wpsbc-legend-item-icon,
.kmm-calendar__body .wpsbc-date .wpsbc-legend-item-icon {
	display: none !important;
}

/* 凡例アイコン（セル全体を覆うオーバーレイ）の色をプラグインのインラインstyleより優先して上書き */
.wpsbc-container.wpsbc-calendar-1 .wpsbc-legend-item-icon-1 div:first-of-type {
	background-color: #dcf2f7 !important;
}
.wpsbc-container.wpsbc-calendar-1 .wpsbc-legend-item-icon-2 div:first-of-type {
	background-color: #F4A6A9 !important;
}

/* 開館日セル (legend-item-1) — 水色 */
.wpsbc-container .wpsbc-date.wpsbc-legend-item-1,
.kmm-calendar__body .wpsbc-date.wpsbc-legend-item-1 {
	background-color: #dcf2f7 !important;
}

/* プラグインが設定する緑など既定色を水色で統一（休館日・空白セル除く） */
.wpsbc-container .wpsbc-date:not(.wpsbc-legend-item-2):not(.wpsbc-gap),
.kmm-calendar__body .wpsbc-date:not(.wpsbc-legend-item-2):not(.wpsbc-gap) {
	background-color: #dcf2f7 !important;
}
.wpsbc-container .wpsbc-date:not(.wpsbc-legend-item-2):not(.wpsbc-gap) .wpsbc-date-inner,
.kmm-calendar__body .wpsbc-date:not(.wpsbc-legend-item-2):not(.wpsbc-gap) .wpsbc-date-inner {
	background-color: transparent !important;
}
 
/* 休館日 (legend-item-2) — グレー */
.wpsbc-container .wpsbc-date.wpsbc-legend-item-2,
.kmm-calendar__body .wpsbc-date.wpsbc-legend-item-2 {
	background-color: #F4A6A9 !important;
}

/* 土曜の数字を青、日曜の数字を赤 */
.wpsbc-container .wpsbc-calendar tbody td:nth-child(6) .wpsbc-date-number,
.kmm-calendar__body .wpsbc-calendar tbody td:nth-child(6) .wpsbc-date-number {
	color: var(--kobe-blue);
}

.wpsbc-container .wpsbc-calendar tbody td:nth-child(7) .wpsbc-date-number,
.kmm-calendar__body .wpsbc-calendar tbody td:nth-child(7) .wpsbc-date-number {
	color: #E2474A;
}

/* 休日(legend-item-2)は曜日色を打ち消して濃い赤の太字に */
.wpsbc-container .wpsbc-date.wpsbc-legend-item-2 .wpsbc-date-number,
.kmm-calendar__body .wpsbc-date.wpsbc-legend-item-2 .wpsbc-date-number {
	color: #8A1C1F !important;
	font-weight: 700;
}
 
/* ============================================================
   凡例 (Show legend を ON にしたとき)
   ============================================================ */
 
.wpsbc-container .wpsbc-calendar-legend,
.kmm-calendar__body .wpsbc-calendar-legend {
	display: flex;
	flex-direction: row;
	gap: 1.5rem;
	padding-top: 0.75rem;
	justify-content: flex-start;
}

.wpsbc-container .wpsbc-legend-item,
.kmm-calendar__body .wpsbc-legend-item {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--kobe-text);
}

/* 凡例エリア内のカラーアイコン(セル内のものとは別) */
.wpsbc-container .wpsbc-calendar-legend .wpsbc-legend-item-icon,
.kmm-calendar__body .wpsbc-calendar-legend .wpsbc-legend-item-icon {
	display: inline-block !important;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	flex-shrink: 0;
	overflow: hidden;
	position: static;
}

.wpsbc-container .wpsbc-calendar-legend .wpsbc-legend-item-icon-color,
.kmm-calendar__body .wpsbc-calendar-legend .wpsbc-legend-item-icon-color {
	width: 100%;
	height: 100%;
}

/* ============================================================
   カレンダー凡例（キャプション・右下）
   ============================================================ */

.kmm-calendar__legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 1.5rem;
	margin-top: 0.75rem;
}

.kmm-calendar__legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--kobe-text);
}

.kmm-calendar__legend-swatch {
	display: inline-block;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	flex-shrink: 0;
}

.kmm-calendar__legend-swatch--open {
	background-color: #dcf2f7;
}

.kmm-calendar__legend-swatch--closed {
	background-color: #F4A6A9;
}

/* ============================================================
   スマホ対応
   ============================================================ */
 
@media (max-width: 768px) {
	.wpsbc-container .wpsbc-calendars-wrapper,
	.kmm-calendar__body .wpsbc-calendars-wrapper {
		flex-direction: column;
		gap: 1rem;
	}

	.wpsbc-container .wpsbc-calendar-legend,
	.kmm-calendar__body .wpsbc-calendar-legend {
		flex-direction: row;
		justify-content: center;
		padding-top: 0.5rem;
	}

	.kmm-calendar__legend {
		justify-content: center;
		gap: 1.25rem;
	}

	.wpsbc-container .wpsbc-date-inner,
	.kmm-calendar__body .wpsbc-date-inner {
		padding: 0.375rem 0.5rem !important;
		min-height: 40px;
	}

	.wpsbc-container .wpsbc-date-number,
	.kmm-calendar__body .wpsbc-date-number {
		font-size: 13px !important;
	}

	.wpsbc-container .wpsbc-calendar-header-navigation,
	.kmm-calendar__body .wpsbc-calendar-header-navigation {
		gap: 1.5rem;
	}
}
/* ============================================================
   開館カレンダー: セル内イベント名表示
   （JS calendar-events.js で挿入される要素のスタイル）
   ============================================================ */
 
/* セル内のイベント表示エリア */
.kmm-calendar__body .kmm-cal-event {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin-top: 36px;
	width: 100%;
	min-width: 0;
}
 
/* 個別イベントラベル */
.kmm-calendar__body .kmm-cal-event__label {
	display: block;
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--kobe-navy);
	background: rgba(255, 255, 255, 0.85);
	padding: 0.15rem 0.35rem;
	border-radius: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	border-left: 2px solid var(--kobe-blue);
}
 
/* リンク化されているとき */
.kmm-calendar__body .kmm-cal-event__link {
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
 
.kmm-calendar__body .kmm-cal-event__link:hover {
	opacity: 0.75;
}
 
.kmm-calendar__body .kmm-cal-event__link.kmm-cal-event__label {
	color: var(--kobe-blue);
}
 
/* 「他N件」表示 */
.kmm-calendar__body .kmm-cal-event__more {
	font-size: 0.65rem;
	color: var(--kobe-gray-mid);
	padding-left: 0.35rem;
	line-height: 1.2;
}
 
/* 休館日(legend-item-2)上のイベント名は背景を強めに */
.kmm-calendar__body .wpsbc-legend-item-2 .kmm-cal-event__label {
	background: rgba(255, 255, 255, 0.95);
}
 
/* セル高さの確保（イベントラベル分のスペース） */
.kmm-calendar__body .wpsbc-date-inner {
	min-height: 56px;
}
 
/* イベントが入ったセルはさらに高さを確保 */
.kmm-calendar__body .wpsbc-date:has(.kmm-cal-event) .wpsbc-date-inner {
	min-height: 70px;
	padding-top: 0.4rem !important;
	padding-bottom: 0.4rem !important;
}
 
/* スマホ対応 */
@media (max-width: 768px) {
	.kmm-calendar__body .kmm-cal-event__label {
		font-size: 0.625rem;
		padding: 0.1rem 0.25rem;
		border-left-width: 2px;
	}

	.kmm-calendar__body .kmm-cal-event__more {
		font-size: 0.6rem;
	}

	.kmm-calendar__body .wpsbc-date-inner {
		min-height: 48px;
	}

	.kmm-calendar__body .wpsbc-date:has(.kmm-cal-event) .wpsbc-date-inner {
		min-height: 60px;
	}
}

/* ============================================================
   イベント期間バー（Googleカレンダー風）
   ============================================================ */

/* バー群コンテナ: .wpsbc-date（position: relative）内に絶対配置 */
.kmm-cal-bars {
	position: absolute;
	left: 0;
	right: 0;
	top: 34px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	z-index: 3;
	pointer-events: none;
}

/* バー本体 */
.kmm-cal-bar {
	height: 18px;
	display: flex;
	align-items: center;
	background-color: var(--bar-color, var(--kobe-blue));
	overflow: hidden;
	white-space: nowrap;
	font-size: 0.62rem;
	font-weight: 700;
	color: var(--kobe-white);
	line-height: 1.4;
	pointer-events: auto;
}

/* 開始日: 左に小さな余白 + 左丸角 + 右はセル端まで伸ばす */
.kmm-cal-bar--start {
	margin-left: 3px;
	margin-right: 0;
	border-radius: 4px 0 0 4px;
	padding-left: 5px;
}

/* 中間日: 左右ともセル端まで伸ばす（色の連続で視覚的に繋がる） */
.kmm-cal-bar--middle {
	margin-left: 0;
	margin-right: 0;
	border-radius: 0;
}

/* 終了日: 左はセル端から + 右に小さな余白 + 右丸角 */
.kmm-cal-bar--end {
	margin-left: 0;
	margin-right: 3px;
	border-radius: 0 4px 4px 0;
}

/* 単日イベント: 両側に小さな余白 + 両丸角 + テキスト表示 */
.kmm-cal-bar--single {
	margin-left: 3px;
	margin-right: 3px;
	border-radius: 4px;
	padding-left: 5px;
}

/* 月をまたぐ継続バー（各月初日のラベル付き）: 角丸は付けず、テキストの左余白のみ付与
   （バーは左端から続いているように見せつつ、タイトルが読めるようにする） */
.kmm-cal-bar--cont {
	padding-left: 5px;
}

/* ラベルテキスト（開始日・単日のみ表示） */
.kmm-cal-bar__label {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: inherit !important;
	text-decoration: none !important;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.kmm-cal-bar__label:hover {
	opacity: 0.85;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

/* スマホ: バーを少し小さく */
@media (max-width: 768px) {
	.kmm-cal-bars {
		top: 28px;
		gap: 1px;
	}

	.kmm-cal-bar {
		height: 14px;
		font-size: 0.55rem;
	}
}
/* ============================================================
   セル背景の高さ統一 - イベントで縦に伸びた行への対応
   （隣接セルの背景が白く残るのを防ぐ）
   ============================================================ */
 
/* td を高さ伝播の基準にする */
.wpsbc-calendar tbody td {
	vertical-align: top !important;
	height: auto;
}
 
/* .wpsbc-date を td の高さいっぱいに広げる */
.wpsbc-date {
	display: flex !important;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}
 
/* インナーが flex の余白を埋めるように */
.wpsbc-date-inner {
	flex: 1 1 auto;
	box-sizing: border-box;
	width: 100%;
}
 
/* gap セル（前月・翌月のはみ出し）も高さ統一 */
.wpsbc-date.wpsbc-gap {
	background: transparent !important;
	height: 100%;
}
 
.wpsbc-date.wpsbc-gap .wpsbc-date-inner {
	min-height: 0;
}
/* ============================================================
   テーブルの行間隙間を解消 - 縦方向の border-spacing を 0 に
   （イベントで縦長になった行の下に白い隙間が出る現象の対処）
   ============================================================ */
 
.wpsbc-calendar table {
	border-spacing: 2px !important;
	border-collapse: separate !important;
}
 
/* 曜日ヘッダーとtbodyの境を視覚的に保つため、
   thead 行の下に少し空きが欲しい場合は thead の th に margin-bottom的な余白を */
.wpsbc-calendar thead th {
	padding-bottom: 0.75rem !important;
}

/* ============================================================
   PC狭幅: サイドバーを維持し、TOPメインのみSP相当にする
   ============================================================ */

@media (min-width: 1025px) and (max-width: 1180px) {
	.kmm-page__main .kmm-section-layout {
		display: block;
	}

	.kmm-page__main .kmm-section-content,
	.kmm-page__main .kmm-calendar__body {
		width: 100%;
		min-width: 0;
	}

	.kmm-page__main .kmm-section-header .kmm-section-header__btn {
		display: none;
	}

	.kmm-page__main .kmm-section-header__btn-sp {
		display: flex;
		justify-content: center;
		margin-top: 2rem;
	}

	.kmm-page__main .kmm-section-header .kmm-section-header__ja {
		font-size: 1.75rem;
	}

	.kmm-page__main .kmm-section-header__left {
		align-items: flex-start;
	}

	.kmm-page__main .kobe-news-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
		padding-left: 0;
	}

	.kmm-page__main .kobe-news-item::after {
		right: 0;
		top: 50%;
		transform: translateY(-50%) rotate(45deg);
	}

	.kmm-page__main .wpsbc-calendars-wrapper,
	.kmm-page__main .kmm-calendar__body .wpsbc-calendars-wrapper {
		flex-direction: column;
		gap: 1rem;
	}

	.kmm-page__main .wpsbc-calendar-legend,
	.kmm-page__main .kmm-calendar__body .wpsbc-calendar-legend {
		flex-direction: row;
		justify-content: center;
		padding-top: 0.5rem;
	}

	.kmm-page__main .wpsbc-calendar-header-navigation,
	.kmm-page__main .kmm-calendar__body .wpsbc-calendar-header-navigation {
		gap: 1.5rem;
	}

	.kmm-page__main .kmm-calendar__body .kmm-cal-event__label {
		font-size: 0.625rem;
		padding: 0.1rem 0.25rem;
		border-left-width: 2px;
	}

	.kmm-page__main .kmm-calendar__body .kmm-cal-event__more {
		font-size: 0.6rem;
	}

	.kmm-page__main .kmm-calendar__body .wpsbc-date-inner {
		min-height: 48px;
		padding: 0.375rem 0.5rem !important;
	}

	.kmm-page__main .kmm-calendar__body .wpsbc-date:has(.kmm-cal-event) .wpsbc-date-inner {
		min-height: 60px;
	}

	.kmm-page__main .kmm-cal-bars {
		top: 28px;
		gap: 1px;
	}

	.kmm-page__main .kmm-cal-bar {
		height: 14px;
		font-size: 0.55rem;
	}
}

/* ============================================================
   PC 左固定サイドバー（ヘッダー代替）
   ============================================================ */

:root {
	--kmm-sidebar-w: 340px;
}

/* ---- PC: ヘッダーをサイドバーに変換 ---- */
@media (min-width: 1025px) {

	/* サイドバーの位置・サイズ・スタイル */
	.site-header {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: auto !important;
		width: var(--kmm-sidebar-w) !important;
		height: 100vh !important;
		box-shadow: 2px 0 16px rgba(0, 0, 0, 0.08) !important;
		display: flex !important;
		flex-direction: column !important;
		overflow: hidden !important;
		transform: none !important;
		z-index: 1000 !important;
	}

	/* テンプレートパーツのラッパーを flex に参加させる */
	.site-header > .wp-block-template-part {
		flex: 1;
		min-height: 0;
		height: 100%;
		display: flex;
		flex-direction: column;
		overflow: hidden;
	}

	/* kmm-sidebar-inner がサイドバー全体を占有（背景色はブロック属性で制御） */
	.kmm-sidebar-inner {
		flex: 1;
		display: flex !important;
		flex-direction: column !important;
		min-height: 0;
		height: 100%;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		overscroll-behavior: contain;
		scrollbar-gutter: stable;
		-webkit-overflow-scrolling: touch;
	}

	.admin-bar .site-header {
		top: 32px !important;
		height: calc(100vh - 32px) !important;
	}

	/* コンテンツをサイドバー幅だけ右へオフセット */
	body {
		padding-left: var(--kmm-sidebar-w) !important;
		padding-top: 0 !important;
	}

	/* 管理バーがある場合は WP コアの 32px padding-top を維持 */
	body.admin-bar {
		/* padding-top: 32px !important; */
	}

	/* alignfull ブロックがサイドバー背後に伸びないよう制限 */
	.alignfull {
		margin-left: 0 !important;
		margin-right: 0 !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	/* ハンバーガーは PC で非表示 */
	.site-header__hamburger {
		display: none !important;
	}
}

/* 右サイドバーに要素が無い場合はスペースを占有させない */
.kmm-page__sidebar:not(:has(*)) {
	width: 0 !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* ---- PC サイドバー: ロゴエリア ---- */
.kmm-sidebar-logo-wrap {
	flex-shrink: 0;
}

.kmm-sidebar-logo-link {
	display: block;
	text-decoration: none;
}

/* iOS Safari 実機で img の画像ドラッグ判定がタップ(click)を潰すのを防ぐ。
   img へのタップは常に親の <a> に素通りさせ、軽いタップでも確実に遷移させる。 */
.kmm-sidebar-logo-link img {
	pointer-events: none;
	-webkit-user-drag: none;
	user-select: none;
}

@media (min-width: 1025px) {
	.kmm-sidebar-logo-wrap {
		display: flex !important;
		justify-content: center;
		padding: 1.25rem 1.5rem 1rem;
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	}

	.kmm-sidebar-logo-wrap .wp-block-site-logo {
		display: flex !important;
		justify-content: center;
	}

	.kmm-sidebar-logo-wrap .wp-block-site-logo img,
	.kmm-sidebar-logo-wrap .wp-block-site-logo a img,
	.kmm-sidebar-logo-wrap .kmm-sidebar-logo {
		width: 160px !important;
		max-width: 160px !important;
		height: auto;
	}
}

@media (max-width: 1024px) {
	.kmm-sidebar-logo-wrap {
		display: flex !important;
		padding: 0 !important;
		border: none !important;
		background: transparent !important;
		align-items: center;
		justify-content: center;
	}

	.kmm-sidebar-inner {
		background: transparent !important;
		flex-direction: row !important;
		justify-content: center !important;
		padding: 0 !important;
	}
}

/* ---- PC サイドバー: ナビゲーション ---- */
.kmm-sidebar-nav {
	display: none;
	width: 100%;
	flex-direction: column;
	/* flex: 1; */
	padding: 40px 36px;
	gap: 0.375rem;
}

@media (min-width: 1025px) {
	.kmm-sidebar-nav {
		display: flex !important;
	}
}

/* ---- wp:button ベースのサイドバーナビボタン ---- */
.kmm-sidebar-nav .wp-block-buttons {
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
	width: 100% !important;
	flex: none !important;
	margin: 0 !important;
}

.kmm-sidebar-nav .wp-block-button.kmm-side-btn {
	display: block !important;
	width: 100% !important;
	background: none !important;
	box-shadow: none !important;
	margin: 0 !important;
}

.kmm-sidebar-nav .wp-block-button.kmm-side-btn > .wp-block-button__link {
	background-image:
		radial-gradient(circle at 90% 18%, rgba(255, 255, 255, 0.45) 0 22px, transparent 23px),
		radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.22) 0 15px, transparent 16px),
		radial-gradient(circle at 96% 56%, rgba(255, 255, 255, 0.28) 0 13px, transparent 14px),
		radial-gradient(circle at 7% 28%, rgba(255, 255, 255, 0.30) 0 11px, transparent 12px),
		radial-gradient(circle at 65% 80%, rgba(255, 255, 255, 0.20) 0 9px, transparent 10px),
		radial-gradient(circle at 30% 88%, rgba(255, 255, 255, 0.18) 0 7px, transparent 8px),
		radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.25) 0 6px, transparent 7px),
		radial-gradient(circle at 18% 65%, rgba(255, 255, 255, 0.18) 0 8px, transparent 9px),
		radial-gradient(circle at 75% 52%, rgba(255, 255, 255, 0.15) 0 5px, transparent 6px),
		linear-gradient(135deg, #00AAE7 0%, #0091CC 100%) !important;
	background-color: transparent !important;
	color: #fff !important;
	border-radius: 8px !important;
	min-height: 64px !important;
	padding: 0rem !important;
	font-size: 1.2rem !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	text-decoration: none !important;
	border: none !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	transform: none !important;
}

.kmm-sidebar-nav .wp-block-button.kmm-side-btn--sidebar-light > .wp-block-button__link {
	background-image:
		radial-gradient(circle at 90% 18%, rgba(255, 255, 255, 0.65) 0 20px, transparent 21px),
		radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.45) 0 14px, transparent 15px),
		radial-gradient(circle at 96% 56%, rgba(255, 255, 255, 0.50) 0 11px, transparent 12px),
		radial-gradient(circle at 7% 28%, rgba(255, 255, 255, 0.45) 0 10px, transparent 11px),
		radial-gradient(circle at 65% 80%, rgba(255, 255, 255, 0.38) 0 8px, transparent 9px),
		radial-gradient(circle at 30% 88%, rgba(255, 255, 255, 0.32) 0 6px, transparent 7px),
		radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.40) 0 5px, transparent 6px),
		radial-gradient(circle at 18% 65%, rgba(255, 255, 255, 0.35) 0 7px, transparent 8px),
		radial-gradient(circle at 75% 52%, rgba(255, 255, 255, 0.30) 0 4px, transparent 5px),
		linear-gradient(135deg, rgba(0, 170, 231, 0.32) 0%, rgba(0, 145, 204, 0.26) 100%) !important;
	background-color: transparent !important;
	color: var(--kobe-navy) !important;
}

/* サイドバー内の kmm-side-btn スタイル上書き（旧 a タグ形式との互換） */
.kmm-sidebar-nav .kmm-side-btn {
	background: none !important;
	box-shadow: none !important;
	border-radius: 8px !important;
	min-height: 64px !important;
	margin-bottom: 0 !important;
	padding: 0rem !important;
	text-align: center !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	color: #fff !important;
	line-height: 1.4 !important;
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transform: none !important;
}

.kmm-sidebar-nav .kmm-side-btn::before {
	background-image:
		radial-gradient(circle at 90% 18%, rgba(255, 255, 255, 0.45) 0 22px, transparent 23px),
		radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.22) 0 15px, transparent 16px),
		radial-gradient(circle at 96% 56%, rgba(255, 255, 255, 0.28) 0 13px, transparent 14px),
		radial-gradient(circle at 7% 28%, rgba(255, 255, 255, 0.30) 0 11px, transparent 12px),
		radial-gradient(circle at 65% 80%, rgba(255, 255, 255, 0.20) 0 9px, transparent 10px),
		radial-gradient(circle at 30% 88%, rgba(255, 255, 255, 0.18) 0 7px, transparent 8px) !important;
}

.kmm-sidebar-nav .kmm-side-btn__text {
	position: relative;
	z-index: 1;
}

/* ライトボタン（常設展示・アーカイブ、神戸海洋博物館について） */
.kmm-sidebar-nav .kmm-side-btn--sidebar-light {
	background: none !important;
	color: var(--kobe-navy) !important;
}

.kmm-sidebar-nav .kmm-side-btn--sidebar-light::before {
	background-image: none !important;
}

/* ---- PC サイドバー: フッター（Language / Contact / FAQ / SNS） ---- */
.kmm-sidebar-footer {
	display: none;
	flex-direction: column;
	padding: 0.625rem 1rem 36px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	gap: 0.375rem;
	flex-shrink: 0;
}

@media (min-width: 1025px) {
	.kmm-sidebar-footer {
		display: flex !important;
	}
}

.kmm-sidebar-footer__links {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.kmm-sidebar-footer__link,
.kmm-sidebar-footer__link-btn {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--kobe-navy);
	text-decoration: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.25rem 0.125rem;
	transition: color var(--kobe-transition);
	white-space: nowrap;
}

.kmm-sidebar-footer__link:hover,
.kmm-sidebar-footer__link-btn:hover {
	color: var(--kobe-blue);
}

.kmm-sidebar-footer__link svg,
.kmm-sidebar-footer__link-btn svg {
	flex-shrink: 0;
	opacity: 0.85;
}

/* サイドバー: gtranslate_wrapper をドロップダウンとして扱う */
.kmm-sidebar-footer .kmm-lang-switcher {
	position: relative;
}

.kmm-sidebar-footer .kmm-lang-switcher .kmm-sidebar-lang {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s ease;
	position: absolute;
	bottom: calc(100% + 4px);
	left: 0;
	right: 0;
	background: var(--kobe-white);
	border-radius: var(--kobe-radius-md);
	box-shadow: var(--kobe-shadow);
	z-index: 200;
	box-sizing: border-box;
}

.kmm-sidebar-footer .kmm-lang-switcher .kmm-sidebar-lang.is-open {
	max-height: 400px;
	overflow-y: auto;
	border: 1px solid var(--kobe-gray-light);
}

/* ===== GTranslate: サイドバードロップダウン内スタイル ===== */

/* gt_switcher コンテナ（GTranslate が注入、固定幅 193px を解除） */
.kmm-sidebar-lang .gt_switcher {
	width: 100% !important;
	overflow: visible !important;
	line-height: normal !important;
	font-size: inherit !important;
}

/* GTranslate 自身のトリガーを非表示（Language ボタンで代替） */
.kmm-sidebar-lang .gt_selected {
	display: none !important;
}

/* is-open 時：言語リストを強制表示（GTranslate の display:none / height:0 を上書き） */
.kmm-sidebar-lang.is-open .gt_option {
	display: block !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	width: 100% !important;
	border: none !important;
	background: transparent !important;
	padding: 4px 0 !important;
	box-sizing: border-box !important;
	transition: none !important;
	position: static !important;
}

/* 各言語リンク */
.kmm-sidebar-lang .gt_option a {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 7px 12px !important;
	color: var(--kobe-text) !important;
	font-size: 11px !important;
	width: 100% !important;
	box-sizing: border-box !important;
	text-decoration: none !important;
	transition: background var(--kobe-transition) !important;
}

.kmm-sidebar-lang .gt_option a:hover {
	background: var(--kobe-gray-light) !important;
	color: var(--kobe-navy) !important;
}

/* 現在選択中の言語を非表示 */
.kmm-sidebar-lang .gt_option a.gt_current {
	display: none !important;
}

/* フラグ画像：小さく丸く整形 */
.kmm-sidebar-lang .gt_option a img {
	width: 16px !important;
	height: 16px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	flex-shrink: 0 !important;
	display: inline-block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	opacity: 1 !important;
}

/* スクロールバー */
.kmm-sidebar-lang::-webkit-scrollbar { width: 4px; }
.kmm-sidebar-lang::-webkit-scrollbar-track { background: transparent; }
.kmm-sidebar-lang::-webkit-scrollbar-thumb {
	background: var(--kobe-gray-mid);
	border-radius: 2px;
}

.kmm-sidebar-footer__sns {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.375rem;
	padding-top: 0;
	flex-shrink: 0;
}

.kmm-sidebar-footer__sns a {
	display: flex;
	align-items: center;
	opacity: 1;
	transition: opacity var(--kobe-transition);
}

.kmm-sidebar-footer__sns a:hover {
	opacity: 0.8;
}

.kmm-sidebar-footer__sns img {
	width: 30px;
	height: 30px;
}

/* Language ボタン（独立・大きく） */
.kmm-sidebar-footer__lang-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.625rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--kobe-navy);
	background: none;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background var(--kobe-transition);
	white-space: nowrap;
}

.kmm-sidebar-footer__lang-btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.kmm-sidebar-footer__lang-btn:hover {
	background: none;
}

/* 下段: リンク + SNS 横並び */
.kmm-sidebar-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 5.5rem;
}

.kmm-sidebar-footer__sub-links {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	flex: 1;
}

/* ===== サイドバーナビ カスタムブロック（kmm/sidebar-nav） ===== */
.kmm-sidebar-nav-block {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

/* フロント: SP用サイドバーナビ
   （「神戸海洋博物館とは」と「開館時間・料金」の間／PCサイドバーが消える1024px以下のみ表示） */
.kmm-front-nav {
	display: none;
}

@media (max-width: 1024px) {
	.kmm-front-nav {
		display: block;
		margin-top: var(--wp--preset--spacing--60, 2rem);
		margin-bottom: var(--wp--preset--spacing--60, 2rem);
	}
}

.kmm-nav-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 64px;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	font-weight: 700;
	font-size: 1.2em;
	letter-spacing: 0.06em;
	transition: opacity 0.2s;
	box-sizing: border-box;
}

.kmm-nav-btn:hover {
	opacity: 0.85;
	text-decoration: none;
}

.kmm-nav-btn__bubbles {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.kmm-nav-btn__label {
	position: relative;
	z-index: 1;
	text-align: center;
	/* color はPHPのインラインスタイルで設定（= ボタン背景色） */
	/* 8方向 text-shadow で各文字の外側に白いストロークを生成 */
	text-shadow:
		0    -2px 0 rgba(255, 255, 255, 0.92),
		1.4px -1.4px 0 rgba(255, 255, 255, 0.92),
		2px   0    0 rgba(255, 255, 255, 0.92),
		1.4px  1.4px 0 rgba(255, 255, 255, 0.92),
		0     2px  0 rgba(255, 255, 255, 0.92),
		-1.4px 1.4px 0 rgba(255, 255, 255, 0.92),
		-2px   0    0 rgba(255, 255, 255, 0.92),
		-1.4px -1.4px 0 rgba(255, 255, 255, 0.92);
}

/* 薄い水色ボタンのテキストは、塗り=くすんだ青(#5fb6d5・PHPでインライン指定)＋
   白アウトライン（上のデフォルト text-shadow を継承）。 */

.kmm-nav-btn__comingsoon {
	position: absolute;
	top: -3px;
	left: 12px;
	z-index: 2;
	font-size: 0.9375rem;
	font-weight: 700;
	font-style: italic;
	letter-spacing: 0.02em;
	color: #1A237E;
	pointer-events: none;
	text-shadow:
		0     -2px  0 #fff,
		1.4px -1.4px 0 #fff,
		2px    0    0 #fff,
		1.4px  1.4px 0 #fff,
		0      2px  0 #fff,
		-1.4px 1.4px 0 #fff,
		-2px   0    0 #fff,
		-1.4px -1.4px 0 #fff;
}

/* ---- SP Language ボタン（PC では非表示） ---- */
.kmm-sp-lang-wrap {
	display: none;
}

.kmm-sp-lang-btn {
	display: flex;
}

/* SP ヘッダー: 言語ドロップダウン（下向きに開く） */
.kmm-sp-lang-wrap .kmm-sidebar-lang {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s ease;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 180px;
	background: var(--kobe-white);
	border-radius: var(--kobe-radius-md);
	box-shadow: var(--kobe-shadow);
	z-index: 1200;
	box-sizing: border-box;
}

.kmm-sp-lang-wrap .kmm-sidebar-lang.is-open {
	max-height: 400px;
	overflow-y: auto;
	border: 1px solid var(--kobe-gray-light);
}

/* SP ドロワー内: 言語ドロップダウン（ボタン下に開く） */
.kmm-drawer__lang-wrap {
	position: relative;
}

.kmm-drawer__lang-wrap .kmm-sidebar-lang {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s ease;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 180px;
	background: var(--kobe-white);
	border-radius: var(--kobe-radius-md);
	box-shadow: var(--kobe-shadow);
	z-index: 1300;
	box-sizing: border-box;
}

.kmm-drawer__lang-wrap .kmm-sidebar-lang.is-open {
	max-height: 400px;
	overflow-y: auto;
	border: 1px solid var(--kobe-gray-light);
}

/* ---- ロゴ PC / SP 切り替え ---- */
@media (min-width: 1025px) {
	.kmm-sidebar-logo--sp {
		display: none !important;
	}
}

@media (max-width: 1024px) {
	.kmm-sidebar-logo--pc {
		display: none !important;
	}
}

/* ---- モバイル: ヘッダーを水平バーに ---- */
@media (max-width: 1024px) {

	.site-header {
		display: grid !important;
		grid-template-columns: 1fr auto 1fr !important;
		align-items: center !important;
		background: var(--kobe-white) !important;
		box-shadow: 0 1px 4px rgba(21, 24, 41, 0.08) !important;
		padding: 0.75rem 1rem !important;
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		width: auto !important;
		height: auto !important;
		overflow: visible !important;
	}

	/* SP Language ボタン: 左端 */
	.kmm-sp-lang-wrap {
		display: block !important;
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
		position: relative;
	}

	/* ロゴ（テンプレートパーツ）: 中央 */
	.site-header > .wp-block-template-part {
		grid-column: 2;
		grid-row: 1;
		display: flex;
		justify-content: center;
	}

	/* ハンバーガー: 右端 */
	.site-header__hamburger {
		display: flex !important;
		grid-column: 3 !important;
		grid-row: 1 !important;
		justify-self: end;
	}

	/* モバイルでのロゴサイズ */
	.kmm-sidebar-logo-wrap .wp-block-site-logo img,
	.kmm-sidebar-logo-wrap .wp-block-site-logo a img,
	.kmm-sidebar-logo-wrap .kmm-sidebar-logo {
		width: 120px !important;
		max-width: 120px !important;
		height: auto;
	}

	/* PC専用ナビとフッターは非表示 */
	.kmm-sidebar-nav,
	.kmm-sidebar-footer {
		display: none !important;
	}

}

@media screen and (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px !important;
	}
}
@media screen and (min-width: 783px) and (max-width: 1024px) {
	.admin-bar .site-header {
		top: 32px !important;
	}
}

/* ---- 画面の縦幅が875px以上のときはサイドバーのスクロールバーを非表示 ---- */
@media (min-height: 875px) {
	.site-header > .wp-block-template-part,
	.kmm-sidebar-inner {
		overflow-y: hidden !important;
		scrollbar-gutter: auto !important;
	}
}

/* ============================================================
   FAQ アコーディオン（パターン: kmm-faq）
   ネイティブ <details>/<summary> を使用（JS不要）
   ============================================================ */
.kmm-faq {
	--kmm-faq-q: var(--wp--preset--color--kobe-blue, #00AAE7);
	--kmm-faq-a: var(--wp--preset--color--kobe-navy, #151829);
	--kmm-faq-line: #e3e6ea;
	margin-top: 10px;
}

/* 各項目 */
.kmm-faq .kmm-faq__item {
	margin: 0;
	border: 1px solid var(--kmm-faq-line);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}
.kmm-faq .kmm-faq__item + .kmm-faq__item {
	margin-top: 0.75rem;
}

/* 質問（summary） */
.kmm-faq .kmm-faq__item > summary {
	list-style: none;          /* デフォルトの三角を消す */
	cursor: pointer;
	position: relative;
	padding: 1rem 3rem 1rem calc(1.125rem + 1.875rem + 0.75rem);
	font-weight: 700;
	line-height: 1.5;
	color: var(--kmm-faq-a);
	transition: background-color 0.2s ease;
}
.kmm-faq .kmm-faq__item > summary::-webkit-details-marker {
	display: none;             /* Safari の三角を消す */
}
.kmm-faq .kmm-faq__item > summary:hover {
	background: var(--wp--preset--color--kobe-gray-light, #F3F3F4);
}

/* Q バッジ */
.kmm-faq .kmm-faq__item > summary::before {
	content: "Q";
	position: absolute;
	top: 1rem;
	left: 1.125rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.875rem;
	height: 1.875rem;
	border-radius: 50%;
	background: var(--kmm-faq-q);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
}

/* 開閉トグル（＋ / −） */
.kmm-faq .kmm-faq__item > summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 1.125rem;
	width: 14px;
	height: 14px;
	background-image:
		linear-gradient(var(--kmm-faq-q), var(--kmm-faq-q)),
		linear-gradient(var(--kmm-faq-q), var(--kmm-faq-q));
	background-size: 14px 2px, 2px 14px;
	background-position: center, center;
	background-repeat: no-repeat;
	transform: translateY(-50%);
	transition: transform 0.25s ease, opacity 0.2s ease;
}
/* 開いているときは「−」（縦棒を消す） */
.kmm-faq .kmm-faq__item[open] > summary::after {
	background-size: 14px 2px, 2px 0;
	transform: translateY(-50%) rotate(180deg);
}

/* 回答（answer） */
.kmm-faq .kmm-faq__item .kmm-faq__answer {
	position: relative;
	margin: 0;
	padding: 1rem 1.125rem 1.25rem calc(1.125rem + 1.875rem + 0.75rem);
	background: var(--wp--preset--color--kobe-gray-light, #F3F3F4);
	border-top: 1px solid var(--kmm-faq-line);
	line-height: 1.8;
}
/* A バッジ */
.kmm-faq .kmm-faq__item .kmm-faq__answer::before {
	content: "A";
	position: absolute;
	top: 1rem;
	left: 1.125rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.875rem;
	height: 1.875rem;
	border-radius: 50%;
	background: var(--kmm-faq-a);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
}

/* ============================================================
   学校・園向け入館予約フォーム（/contactform-school/ 相当）
   入力 → 確認 → 完了 の3ステップ構成
   （.cf7-form / .cf7-row / .cf7-label / .cf7-field / .required-tag /
   　.limit-note 等、既存のCF7カスタムスタイルの命名規則に準拠）
   ============================================================ */

/* ステップ切り替え（[hidden] はブラウザ標準で非表示になるため display 指定は不要） */
.cf7-steps {
  position: relative;
}

/* 都道府県 + 市区町村など、1行に複数入力を並べる場合 */
.cf7-inline-fields {
  display: flex;
  gap: 12px;
}

.cf7-inline-fields > * {
  flex: 1;
  min-width: 0;
}

/* 条件付き表示行（下見のご希望日時 など）。
   非表示時は data-hidden-by-condition="true" が付き、確認画面の一覧からも除外される */
.cf7-row[data-conditional] {
  transition: opacity 0.2s ease;
}

/* ご入館予定人数：内訳グリッド */
.cf7-headcount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
}

.cf7-headcount-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cf7-headcount-item .cf7-headcount-label {
  font-size: 14px;
  color: #444;
}

.cf7-headcount-item input[type="number"] {
  width: 90px;
  flex-shrink: 0;
  text-align: right;
}

.cf7-headcount-unit {
  font-size: 14px;
  color: #444;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cf7-headcount-grid {
    grid-template-columns: 1fr;
  }
  .cf7-inline-fields {
    flex-direction: column;
  }
}

/* ステップ下部のボタン行（確認へ進む／内容を修正する） */
.cf7-step-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 10px 0 20px;
  flex-wrap: wrap;
}

.cf7-step-actions .cf7-btn-secondary {
  background: #fff;
  color: #2a8ac0;
  border: 1px solid #5ba8d6;
  padding: 14px 50px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.2s ease;
}

.cf7-step-actions .cf7-btn-secondary:hover {
  background: #f0f8fc;
}

.cf7-step-actions input[type="button"],
.cf7-step-actions input[type="submit"] {
  margin: 0;
}

@media (max-width: 600px) {
  .cf7-step-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .cf7-step-actions .cf7-btn-secondary,
  .cf7-step-actions input[type="submit"] {
    width: 100%;
    padding: 14px 0;
    text-align: center;
  }
}

/* 確認画面：入力内容の読み取り専用リスト */
.cf7-confirm-table .cf7-row {
  align-items: baseline;
}

.cf7-confirm-value {
  flex: 1;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 完了ステップ */
.cf7-complete {
  text-align: center;
  padding: 50px 20px;
}

.cf7-complete__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #5ba8d6;
  color: #fff;
  font-size: 32px;
  margin-bottom: 20px;
}

.cf7-complete__title {
  font-size: 20px;
  font-weight: 700;
  color: #2a5d8f;
  margin: 0 0 12px;
}

.cf7-complete__text {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
}

/* ==========================================================================
   ページネーション（一覧系共通）: 現在ページを青丸で表示
   ========================================================================== */
.wp-block-query-pagination {
	gap: 0.5rem;
}

.wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 0.25rem;
	border-radius: 50%;
	font-weight: 700;
	line-height: 1;
	color: var(--kobe-blue);
	text-decoration: none;
	transition: background var(--kobe-transition), color var(--kobe-transition);
}

.wp-block-query-pagination a.page-numbers:hover,
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
	background: rgba(0, 170, 231, 0.12);
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--kobe-blue);
	color: #fff;
}

.wp-block-query-pagination .page-numbers.dots {
	min-width: auto;
	color: var(--kobe-gray-mid);
}

/* ==========================================================
   タイポグラフィ（kobe-maritime-museum.com に合わせる）
   フォント: Figtree / Zen Kaku Gothic New
   文字間: 0.04em（全体）  行間: 本文180% ・UI/見出し160%
   ========================================================== */
body {
	font-family: Figtree, "Zen Kaku Gothic New", "メイリオ", sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.8;
	letter-spacing: 0.04em;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; letter-spacing: inherit; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.6; letter-spacing: 0.04em; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

.wp-block-navigation, .wp-block-navigation a, .wp-block-button__link {
	line-height: 1.6;
	letter-spacing: 0.04em;
}
.wp-block-navigation { font-size: 18px; font-weight: 500; }
.wp-block-button__link { font-weight: 700; }

small, .has-small-font-size { font-size: 12px; line-height: 1.6; }

@media (max-width: 768px) {
	body { font-size: 14px; }
	h2 { font-size: 24px; }
	h3 { font-size: 16px; }
	h4 { font-size: 16px; }
	.wp-block-navigation { font-size: 16px; }
}

/* お知らせ一覧（トップ・一覧ページ共通）: タイトルと年月日 PC16px / SP14px
   ブロックのインライン指定(0.875rem/0.9rem)を上書きするため !important */
.kobe-news-item .wp-block-post-date,
.kobe-news-item .wp-block-post-date time,
.kobe-news-item .wp-block-post-title,
.kobe-news-item .wp-block-post-title a {
	font-size: 16px !important;
}

@media (max-width: 768px) {
	.kobe-news-item .wp-block-post-date,
	.kobe-news-item .wp-block-post-date time,
	.kobe-news-item .wp-block-post-title,
	.kobe-news-item .wp-block-post-title a {
		font-size: 14px !important;
	}
}
