/* ========== 1) 共通コンポーネント ========== */
/* ミニ目次 */
.section-links {
	font-size: .9rem;
	color: #555;
	text-align: center;
	margin: .5rem 0 1.5rem;
}

.section-links a {
	color: #2c7a7b;
	text-decoration: none;
	padding: 0 .25rem;
	transition: color .2s ease;
}

.section-links a:hover {
	color: #174e4f;
	text-decoration: underline;
}

/* CTAボタン */
.cta-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 2rem 0;
	align-items: center;
	justify-content: center;
}

.cta-buttons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .75rem 1.5rem;
	border-radius: 9999px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all .25s ease;
	line-height: 1.1;
	font-size: 1rem;
}

.cta-buttons .cta-main {
	background-color: #2c7a7b !important;
	color: #fff !important;
	border: 2px solid #2c7a7b !important;
	box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.cta-buttons .cta-main:hover,
.cta-buttons .cta-main:focus-visible {
	background-color: #285e61 !important;
	border-color: #285e61 !important;
}

.cta-buttons .cta-sub {
	background: #fff !important;
	color: #2c7a7b !important;
	border: 2px solid #2c7a7b !important;
}

.cta-buttons .cta-sub:hover,
.cta-buttons .cta-sub:focus-visible {
	background: #e6fffa !important;
}

.cta-buttons a:focus-visible {
	outline: 3px solid #9ec5ff;
	outline-offset: 2px;
	text-decoration: none !important;
}

@media (max-width: 600px) {
	.cta-buttons {
		gap: .8rem;
		margin: 1.5rem 0 2rem;
	}
	
	.cta-buttons a {
		width: 100%;
		max-width: 520px;
	}
}

/* パンくず */
.breadcrumb {
	font-size: .85rem;
	color: #666;
	margin: 0 0 1rem;
}

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

.breadcrumb a:hover {
	text-decoration: underline;
}

.breadcrumb ol {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.breadcrumb li::after {
	content: "›";
	margin-left: .5rem;
}

.breadcrumb li:last-child::after {
	content: "";
}

/* ========== 2) 画像・キャプション ========== */
.wp-block-image figcaption {
	display: block;
	text-align: center;
	font-size: .85em;
	line-height: 1.4;
	color: #555;
	margin-top: .4em;
	margin-bottom: 0;
	word-break: break-word;
}

@media (max-width: 600px) {
	.wp-block-image figcaption {
		font-size: .78em;
		line-height: 1.3;
		margin-top: .3em;
	}
}

/* 丸型カード画像（is-style-rounded） */
figure.wp-block-image.is-style-rounded a {
	display: inline-block;
	position: relative;
	border-radius: 9999px;
	overflow: hidden;
	text-decoration: none;
	cursor: pointer;
}

figure.wp-block-image.is-style-rounded img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 9999px;
	transition: transform .28s ease, filter .28s ease, box-shadow .28s ease;
}

figure.wp-block-image.is-style-rounded a:hover img,
figure.wp-block-image.is-style-rounded a:focus-visible img {
	transform: scale(1.02);
	filter: saturate(1.06);
	box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

figure.wp-block-image.is-style-rounded a::after {
	content: "→";
	position: absolute;
	right: 10%;
	bottom: 10%;
	transform: translate(30%, 30%);
	font-size: 20px;
	line-height: 1;
	opacity: 0;
	transition: opacity .28s ease, transform .28s ease;
	background: rgba(255,255,255,.85);
	padding: .2em .5em;
	border-radius: 9999px;
}

figure.wp-block-image.is-style-rounded a:hover::after,
figure.wp-block-image.is-style-rounded a:focus-visible::after {
	opacity: 1;
	transform: translate(0,0);
}

figure.wp-block-image.is-style-rounded .wp-element-caption {
	text-align: center;
	margin-top: .6em;
	font-size: .95rem;
	color: #333;
}

figure.wp-block-image.is-style-rounded .wp-element-caption a {
	text-decoration: underline;
	text-underline-offset: .18em;
	font-weight: 700;
	color: #1a4fb0;
	transition: color .2s ease;
}

figure.wp-block-image.is-style-rounded .wp-element-caption a::after {
	content: " →";
	font-weight: 400;
}

figure.wp-block-image.is-style-rounded .wp-element-caption a:hover,
figure.wp-block-image.is-style-rounded .wp-element-caption a:focus-visible {
	color: #0c316f;
}

figure.wp-block-image.is-style-rounded a:focus-visible {
	outline: 3px solid #9ec5ff;
	outline-offset: 4px;
	border-radius: 9999px;
}

/* モバイルでキャプションが崩れるのを防ぐ */
@media (max-width: 768px) {
	.wp-block-image {
		display: block !important;
		float: none !important;
		clear: both !important;
		text-align: center;
	}
	
	.wp-block-image img {
		display: block !important;
		margin: 0 auto !important;
		max-width: 100% !important;
		height: auto !important;
	}
	
	.wp-block-image figcaption,
										  .wp-block-image figcaption * {
		white-space: normal !important;
		word-break: break-word !important;
		width: 100% !important;
		max-width: none !important;
		float: none !important;
		display: block !important;
		text-align: center !important;
		margin: .35em 0 0 !important;
		letter-spacing: normal !important;
	}
}

/* ========== 3) ナビ ========== */
/* モバイルメニューの可読性 */
.wp-block-navigation__responsive-container,
.wp-block-navigation__responsive-dialog {
	color: #000 !important;
}

.wp-block-navigation__responsive-container a,
.wp-block-navigation__responsive-dialog a,
.wp-block-navigation__responsive-container .wp-block-navigation-item__content,
.wp-block-navigation__responsive-dialog .wp-block-navigation-item__content {
	color: #000 !important;
	font-weight: 600 !important;
	opacity: 1 !important;
	text-decoration: none;
}

.wp-block-navigation__submenu-icon,
.wp-block-navigation__submenu-icon svg {
	color: #000 !important;
	fill: #000 !important;
	stroke: #000 !important;
}

.wp-block-navigation__submenu-icon {
	padding: .5em !important;
	font-size: 1.2em !important;
}

.wp-block-navigation__responsive-dialog a:focus-visible {
	outline: 2px solid #000 !important;
	outline-offset: 2px;
}

/* PCヘッダーナビ */
.site-header .main-navigation ul.menu > li > a {
	padding: .45rem .8rem;
	border-radius: 999px;
	font-weight: 700;
	line-height: 1;
	color: #111;
	letter-spacing: .01em;
}

.site-header .main-navigation ul.menu > li:last-child > a {
	background: #111;
	color: #fff;
}

.site-header .main-navigation ul.menu > li:nth-last-child(2) > a,
.site-header .main-navigation ul.menu > li:nth-last-child(3) > a {
	border: 1px solid #ddd;
}

@media (min-width: 1024px) {
	.site-header .main-navigation ul.menu {
		gap: .25rem;
	}
}

/* ========== 4) ホーム・一覧 ========== */
.site-title,
.wp-block-site-title {
	margin-bottom: .5rem;
}

/* Veniのトップ3カード画像 */
.home .featured-pages img,
.home .home-featured img {
	aspect-ratio: 16/9;
	object-fit: cover;
	width: 100%;
	height: auto;
}

/* 英語行を少しだけサブ扱いに */
.en {
	opacity: .7;
	font-size: .95em;
}

/* ホーム一覧 */
.home .entry-meta,
.home .byline,
.home .posted-on,
.home .cat-links,
.home .tags-links {
	display: none !important;
}

.home .entry-title {
	font-size: clamp(20px, 2.6vw, 28px);
	line-height: 1.35;
	margin-bottom: .4rem;
}

.home article {
	padding: 1rem 0 1.2rem;
	border-bottom: 1px solid #eee;
}

.home .post-thumbnail img,
.blog .post-thumbnail img,
.archive .post-thumbnail img,
.wp-block-post-featured-image img {
	aspect-ratio: 4/3;
	object-fit: cover;
	width: 100%;
	border-radius: 12px;
}

/* 続きを読む */
.more-link,
.wp-block-read-more {
	display: inline-block;
	margin-top: .5rem;
	padding: .35rem .65rem;
	border: 1px solid #ddd;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
}

.more-link:hover,
.wp-block-read-more:hover {
	border-color: #111;
}

/* ページネーション */
.nav-links,
.pagination {
	margin: 1.5rem 0;
}

.nav-links a,
.pagination a {
	padding: .45rem .8rem;
	border: 1px solid #ddd;
	border-radius: 999px;
	text-decoration: none;
}

/* ========== 5) お知らせ・展示ページ用 ========== */
.yn-news {
	max-width: 780px;
	margin: 6rem auto 4rem;
	padding: 0 1.2rem;
	font-feature-settings: palt;
}

.yn-hero h1 {
	font-size: clamp(28px, 3.5vw, 40px);
	letter-spacing: .02em;
	margin: 0;
}

.yn-updated {
	color: #666;
	margin: .4rem 0 2rem;
}

.yn-feature {
	border: 1px solid #eee;
	border-radius: 18px;
	padding: 1.6rem;
	margin-bottom: 1.2rem;
	background: #fafafa;
}

.yn-feature h2 {
	font-size: clamp(18px, 2.2vw, 22px);
	margin: .2rem 0 1rem;
}

.yn-meta {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
	color: #333;
}

.yn-meta li {
	margin: .1rem 0;
}

.yn-btn {
	display: inline-block;
	padding: .65rem 1rem;
	border-radius: 999px;
	border: 1px solid #111;
	text-decoration: none;
	color: #111;
	background: #fff;
	transition: all .3s ease;
}

.yn-btn:hover {
	background: #111;
	color: #fff;
}

.yn-foot {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin-top: 1.6rem;
}

.yn-pill {
	display: inline-block;
	padding: .5rem .9rem;
	border: 1px solid #ddd;
	border-radius: 999px;
	text-decoration: none;
	color: #333;
}

.yn-exhibit {
	max-width: 900px;
	margin: 2.5rem auto;
	padding: 0 1.2rem;
}

.yn-ex-hero h1 {
	font-size: clamp(24px, 3vw, 36px);
	margin: 0 0 .3rem;
	letter-spacing: .01em;
}

.yn-sub {
	margin: .2rem 0 1rem;
	color: #444;
}

.yn-exhibit h2 {
	font-size: clamp(18px, 2.2vw, 22px);
	margin: 1.6rem 0 .6rem;
}

.yn-exhibit ul {
	padding-left: 1.2em;
}

.yn-cta {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin: 1rem 0 2rem;
}

.yn-ex-gallery .yn-tip {
	color: #666;
	font-size: .95rem;
}

/* ========== 6) SNS・リンク補助 ========== */
.wp-block-social-links.is-style-logos-only {
	display: flex !important;
	justify-content: center;
	gap: 1rem;
	list-style: none;
	padding: 0;
	margin: 1rem 0;
}

.wp-block-social-links.is-style-logos-only li {
	display: inline-flex;
	align-items: center;
}

.wp-block-social-links.is-style-logos-only a {
	text-decoration: none;
	font-weight: 600;
	color: #333;
	transition: color .2s ease;
}

.wp-block-social-links.is-style-logos-only a:hover {
	color: #2c7a7b;
}

.link-arrow::before {
	content: "\25B6";
	display: inline-block;
	margin-right: .35em;
	font-size: .95em;
	line-height: 1;
	transform: translateY(-0.02em);
	font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Segoe UI Symbol", sans-serif;
	font-weight: 600;
}

.link-arrow:hover::before {
	transform: translateY(-0.02em) translateX(1px);
}

@media (min-width: 768px) {
	.link-arrow::before {
		content: "→";
		font-weight: 700;
	}
}

/* ========== 7) フッター・ニュースレター ========== */
.site-footer .footer-widgets {
	display: grid;
	gap: 1rem;
}

@media (min-width: 860px) {
	.site-footer .footer-widgets {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

.site-footer .social-icons {
	gap: .5rem;
}

.site-footer .wp-block-jetpack-subscriptions,
.site-footer .wp-block-subscriptions {
	padding: .75rem 1rem;
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 12px;
}

.site-footer .wp-block-jetpack-subscriptions h2,
.site-footer .wp-block-subscriptions h2 {
	margin-top: 0;
	margin-bottom: .25rem;
	font-size: 1.1rem;
}

.site-footer .wp-block-jetpack-subscriptions p,
.site-footer .wp-block-subscriptions p {
	margin: .25rem 0 .75rem;
	line-height: 1.7;
}

.site-footer .wp-block-jetpack-subscriptions input[type="email"],
.site-footer .wp-block-subscriptions input[type="email"] {
	width: 100%;
	max-width: 100%;
	padding: .6rem .8rem;
	border: 1px solid #ddd;
	border-radius: 999px;
	outline: none;
}

@media (min-width: 680px) {
	.site-footer .wp-block-jetpack-subscriptions form,
										  .site-footer .wp-block-subscriptions form {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: .5rem;
	}
}

.site-footer .wp-block-jetpack-subscriptions button[type="submit"],
.site-footer .wp-block-subscriptions button[type="submit"] {
	padding: .6rem .9rem;
	border: none;
	border-radius: 999px;
	font-weight: 700;
	background: #111;
	color: #fff;
	cursor: pointer;
}

.site-footer .wp-block-jetpack-subscriptions button[type="submit"]:hover,
.site-footer .wp-block-subscriptions button[type="submit"]:hover {
	opacity: .95;
}

.site-footer .en {
	opacity: .75;
	font-size: .95em;
	display: block;
	margin-top: .25rem;
}

.home .entry-meta,
.home .byline,
.home .posted-on,
.home .cat-links,
.home .tags-links,
.home .wp-block-post-date,
.home .wp-block-post-terms {
	display: none !important;
}

/* =========================================
   VENI ホームの「続きを読む」対策・最終版
   上の3カード + 下の投稿一覧の抜粋末尾を消す
   ========================================= */
/* 1) Featured Pages（上の3カード）の末尾行を消す */
.home .featured-pages .entry-summary p:last-child,
.home .home-featured .entry-summary p:last-child,
.home .front-block.featured-page .entry-summary p:last-child {
	display: none !important;
}

/* 2) 上の3カードに出る more-link 系を消す */
.home .featured-pages .more-link,
.home .home-featured .more-link,
.home .front-block.featured-page .more-link,
.home .featured-pages .more-link-container,
.home .home-featured .more-link-container,
.home .front-block.featured-page .more-link-container,
.home .featured-pages a.more-link,
.home .home-featured a.more-link,
.home .front-block.featured-page a.more-link {
	display: none !important;
}

/* 3) 下の投稿一覧の末尾行を消す
   「続きを読む」やタグ列が最後の段落に出る想定 */
.home .posts .entry-summary p:last-child,
.home .post .entry-summary p:last-child,
.home article .entry-summary p:last-child,
.home .entry-content p:last-child {
	display: none !important;
}

/* 4) 下の投稿一覧の more-link 系を消す */
.home .posts .more-link,
.home .post .more-link,
.home article .more-link,
.home .posts .more-link-container,
.home .post .more-link-container,
.home article .more-link-container,
.home .posts a.more-link,
.home .post a.more-link,
.home article a.more-link {
	display: none !important;
}

/* 5) もし「Read in English」がカード抜粋の先頭に出る場合の保険
   冒頭の右寄せ段落をホームカード内では非表示 */
.home .featured-pages .entry-summary p.has-text-align-right,
.home .home-featured .entry-summary p.has-text-align-right,
.home .front-block.featured-page .entry-summary p.has-text-align-right {
	display: none !important;
}