/*
Theme Name: 祭礼町会連合会
Theme URI: https://sairei-choukai.jp/
Author: TRIBAL WORKS
Description: 一般社団法人 祭礼町会連合会(岸和田祭・地車)の公式サイト用オリジナルテーマ。墨×白の落ち着いた和の雰囲気で、新着情報と22町の紹介を見やすくまとめる。Elementor不要。
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: sairei
*/

/* ==========================================================================
   基本
   ========================================================================== */
:root {
	--ink: #1b1916;
	--ink-2: #2a2723;
	--gray: #6d6760;
	--line: #dcd6cd;
	--paper: #f6f3ee;
	--white: #fff;
	--shu: #b3322a;
	--mincho: "Shippori Mincho B1", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
	--gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
	--en: "Cormorant Garamond", "Times New Roman", serif;
	--w: 1180px;
	--pad: clamp(20px, 5vw, 48px);
	--head-h: 76px;
	--ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--head-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--gothic);
	font-size: 16px;
	line-height: 1.9;
	letter-spacing: .04em;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; }
a:hover { color: var(--shu); }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--mincho); font-weight: 700; line-height: 1.5; letter-spacing: .08em; margin: 0 0 .6em; }
p { margin: 0 0 1.2em; }

.container { width: 100%; max-width: calc(var(--w) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.section-pad { padding-block: clamp(64px, 10vw, 120px); }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--white); padding: 8px 16px; }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 見出し(英字+日本語) */
.sec-head { margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head__en { font-family: var(--en); font-size: 14px; font-weight: 600; letter-spacing: .3em; color: var(--shu); margin: 0 0 6px; display: flex; align-items: center; gap: 12px; }
.sec-head__en::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.sec-head__ja { font-size: clamp(26px, 3.4vw, 36px); margin: 0; }
.sec-head.is-center { text-align: center; }
.sec-head.is-center .sec-head__en { justify-content: center; }
.sec-head.is-center .sec-head__en::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-row .sec-head { margin: 0; }

/* ボタン */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 14px;
	min-width: 220px; padding: 15px 30px;
	border: 1px solid var(--ink); background: transparent; color: var(--ink);
	font-family: var(--mincho); font-size: 15px; font-weight: 700; letter-spacing: .12em; text-decoration: none;
	transition: background .3s var(--ease), color .3s var(--ease);
}
.btn::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.btn:hover { background: var(--ink); color: var(--white); }
.btn:hover::after { transform: translateX(4px); }
.btn--light { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--ink); }
.more { font-family: var(--mincho); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px; border-bottom: 1px solid currentColor; }
.more::after { content: "→"; font-family: var(--gothic); }

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 100; height: var(--head-h);
	color: var(--white);
	transition: background .35s var(--ease), transform .35s var(--ease), height .35s var(--ease);
}
.site-header::before { content: ""; position: absolute; inset: 0 0 -30px; background: linear-gradient(rgba(0,0,0,.45), transparent); pointer-events: none; transition: opacity .35s; }
.site-header.is-scrolled { background: rgba(27,25,22,.94); backdrop-filter: blur(6px); --head-h: 64px; }
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { position: relative; height: 100%; display: flex; align-items: center; gap: 24px; padding-inline: clamp(16px, 3vw, 36px); }
.site-logo { margin: 0; line-height: 0; flex-shrink: 0; }
.site-logo img { width: clamp(170px, 18vw, 230px); height: auto; }
.header-nav { margin-left: auto; }
.header-nav__list { display: flex; gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.header-nav__list a { font-family: var(--mincho); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-decoration: none; color: var(--white); position: relative; padding-block: 6px; }
.header-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.header-nav__list a:hover::after,
.header-nav__list a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.header-nav__list li:last-child a { border: 1px solid rgba(255,255,255,.7); padding: 8px 18px; }
.header-nav__list li:last-child a::after { display: none; }
.header-nav__list li:last-child a:hover { background: var(--white); color: var(--ink); }

.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: transparent; color: inherit; cursor: pointer; position: relative; }
.menu-btn__lines i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn__lines i:first-child { top: 19px; }
.menu-btn__lines i:last-child { top: 28px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:first-child { top: 24px; transform: rotate(30deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:last-child { top: 24px; transform: rotate(-30deg); }

.global-menu { position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--white); overflow-y: auto; opacity: 0; transition: opacity .4s var(--ease); }
.global-menu.is-open { opacity: 1; }
.global-menu__inner { padding: calc(var(--head-h) + 24px) var(--pad) 48px; display: grid; gap: 36px; }
.global-menu__list { list-style: none; margin: 0; padding: 0; }
.global-menu__list a { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); text-decoration: none; color: var(--white); }
.global-menu__list .en { font-family: var(--en); font-size: 12px; letter-spacing: .3em; color: rgba(255,255,255,.55); }
.global-menu__list .ja { font-family: var(--mincho); font-size: 20px; font-weight: 700; }
.global-menu__label { font-family: var(--mincho); font-size: 13px; color: rgba(255,255,255,.6); margin: 18px 0 8px; letter-spacing: .15em; }
.global-menu__towns ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.global-menu__towns a { display: block; padding: 6px 14px; border: 1px solid rgba(255,255,255,.25); font-size: 14px; text-decoration: none; color: var(--white); }

@media (max-width: 900px) {
	:root { --head-h: 64px; }
	.header-nav { display: none; }
	.menu-btn { display: block; }
	body.menu-open .site-header { background: var(--ink); }
}

/* ==========================================================================
   トップ: メインビジュアル
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; color: var(--white); overflow: hidden; background: var(--ink); }
.hero__slides,
.hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 8s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.25), rgba(0,0,0,.55)); }
.hero__inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--head-h) 20px 40px; }
.hero__mon { width: clamp(84px, 10vw, 120px); height: auto; margin-bottom: 18px; filter: drop-shadow(0 2px 12px rgba(0,0,0,.4)); }
.hero__logo { width: clamp(240px, 34vw, 420px); height: auto; filter: drop-shadow(0 2px 12px rgba(0,0,0,.4)); }
.hero__catch { margin: 28px 0 0; font-family: var(--mincho); font-weight: 700; font-size: clamp(17px, 2vw, 22px); letter-spacing: .4em; text-indent: .4em; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero__sub { position: absolute; z-index: 2; left: clamp(16px, 3vw, 36px); bottom: 28px; margin: 0; font-family: var(--en); font-size: 12px; letter-spacing: .4em; writing-mode: vertical-rl; opacity: .8; }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--en); font-size: 11px; letter-spacing: .3em; }
.hero__scroll::after { content: ""; width: 1px; height: 56px; background: linear-gradient(var(--white) 50%, rgba(255,255,255,.25) 50%); background-size: 1px 200%; animation: scrollbar 2.2s var(--ease) infinite; }
@keyframes scrollbar { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* ==========================================================================
   新着情報
   ========================================================================== */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list a { text-decoration: none; display: block; }
.news-list--cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.news-list__thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2); margin-bottom: 14px; }
.news-list__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-list__thumb img.is-mon { object-fit: contain; padding: 28%; opacity: .5; }
.news-list a:hover .news-list__thumb img { transform: scale(1.05); }
.news-list__body { display: block; }
.news-list time { display: block; font-family: var(--en); font-size: 15px; font-weight: 600; letter-spacing: .12em; color: var(--gray); }
.news-list__title { display: block; font-weight: 500; line-height: 1.7; margin-top: 4px; }
.news-list a:hover .news-list__title { color: var(--shu); }
@media (max-width: 900px) { .news-list--cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
	.news-list--cards { grid-template-columns: 1fr; gap: 0; }
	.news-list--cards li { border-bottom: 1px solid var(--line); }
	.news-list--cards a { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 14px 0; align-items: center; }
	.news-list--cards .news-list__thumb { margin: 0; }
	.news-list__title { font-size: 15px; }
}

/* ==========================================================================
   トップ: 祭礼町会連合会とは
   ========================================================================== */
.top-about { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--paper); }
.top-about__img { min-height: 420px; position: relative; }
.top-about__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.top-about__body { padding: clamp(48px, 7vw, 100px) clamp(24px, 6vw, 88px); align-self: center; max-width: 620px; }
.top-about__name { font-family: var(--mincho); font-size: clamp(18px, 2vw, 21px); font-weight: 700; border-left: 3px solid var(--shu); padding-left: 14px; line-height: 1.5; }
.top-about__body p:not(.top-about__name):not(.sec-head__en) { line-height: 2.1; }
@media (max-width: 900px) {
	.top-about { grid-template-columns: 1fr; }
	.top-about__img { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   各町
   ========================================================================== */
.top-towns__count { margin: 0; font-family: var(--mincho); font-weight: 700; }
.top-towns__count b { font-family: var(--en); font-size: 44px; line-height: 1; margin-right: 4px; color: var(--shu); }
.town-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.town-tabs button { flex-shrink: 0; border: 0; background: none; cursor: pointer; padding: 14px 22px; font-family: var(--mincho); font-size: 16px; font-weight: 700; letter-spacing: .1em; color: var(--gray); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.town-tabs button small { font-family: var(--gothic); font-size: 12px; font-weight: 500; margin-left: 8px; }
.town-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--shu); }
.town-panel__label { font-size: 14px; color: var(--gray); margin-bottom: 16px; }
.town-grid { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
.town-card a { display: block; text-decoration: none; }
.town-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-2); }
.town-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .6s; }
.town-card a:hover .town-card__img img { transform: scale(1.06); }
.town-card__name { font-size: 19px; margin: 12px 0 2px; display: flex; align-items: center; gap: 10px; }
.town-card__name::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.town-card a:hover .town-card__name { color: var(--shu); }
.town-card__meta { display: grid; gap: 1px; font-size: 13px; line-height: 1.6; color: var(--gray); }
.town-card__meta b { font-weight: 700; color: var(--ink); margin-right: 8px; }
@media (max-width: 900px) { .town-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
	.town-grid { grid-template-columns: repeat(2, 1fr); }
	.town-card__name { font-size: 16px; }
	.town-card__meta { display: none; }
	.town-tabs button { padding: 12px 12px; font-size: 14px; }
	.town-tabs button small { margin-left: 4px; }
}

/* 各町紹介ページ */
.town-index { padding-bottom: clamp(40px, 6vw, 80px); }
.town-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 clamp(36px, 5vw, 56px); }
.town-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1px solid var(--line); text-decoration: none; font-family: var(--mincho); font-weight: 700; }
.town-jump a:hover { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.town-jump small { font-family: var(--gothic); font-weight: 500; color: var(--gray); }
.town-group { margin-bottom: clamp(32px, 5vw, 56px); }
.town-group__title { background: var(--ink); color: var(--white); font-size: clamp(17px, 2vw, 20px); padding: 14px 22px; margin-bottom: 24px; position: relative; }
.town-group__title::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--shu); }

/* 町のページ */
.town { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 72px); }
.town__photo img { width: 100%; height: auto; display: block; box-shadow: 0 20px 40px -24px rgba(0,0,0,.45); }
.town__group { font-size: 13px; color: var(--gray); margin: 0 0 6px; letter-spacing: .1em; }
.town__body h2 { font-size: clamp(22px, 2.6vw, 28px); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.town__body .wp-block-table { margin: 0; }
@media (max-width: 800px) { .town { grid-template-columns: 1fr; } }

.town-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding-block: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.town-nav a { text-decoration: none; font-family: var(--mincho); font-weight: 700; font-size: 17px; }
.town-nav small { display: block; font-family: var(--gothic); font-weight: 500; font-size: 12px; color: var(--gray); }
.town-nav__next { text-align: right; }
.town-nav__prev small::before { content: "← "; }
.town-nav__next small::after { content: " →"; }
.town-nav__all { border: 1px solid var(--ink); padding: 10px 20px; font-size: 14px !important; }
.town-nav__all:hover { background: var(--ink); color: var(--white); }
.town-same { padding-block: clamp(36px, 5vw, 60px) clamp(48px, 7vw, 88px); }
.town-same__title { font-size: 18px; margin-bottom: 16px; }
.town-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.town-chips a { display: block; padding: 8px 18px; border: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.town-chips a:hover { border-color: var(--ink); color: var(--ink); }
.town-chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (max-width: 560px) {
	.town-nav { grid-template-columns: 1fr 1fr; }
	.town-nav__all { grid-column: 1 / -1; grid-row: 2; text-align: center; }
}

/* ==========================================================================
   トップ: 写真タイル / SNS
   ========================================================================== */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; color: var(--white); text-decoration: none; background: var(--ink); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .8s var(--ease), opacity .5s; }
.tile:hover { color: var(--white); }
.tile:hover img { transform: scale(1.06); opacity: .4; }
.tile__en,
.tile__ja { position: relative; }
.tile__en { font-family: var(--en); font-size: 13px; letter-spacing: .4em; text-indent: .4em; opacity: .85; }
.tile__ja { font-family: var(--mincho); font-weight: 700; font-size: clamp(18px, 2.2vw, 24px); letter-spacing: .12em; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.6); }
@media (max-width: 700px) {
	.tiles { grid-template-columns: 1fr; }
	.tile { aspect-ratio: 16 / 7; }
}

.sns-cards { list-style: none; margin: 32px auto 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 840px; }
.sns-cards:has(> li:only-child) { max-width: 320px; }
.sns-cards a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 12px; border: 1px solid var(--line); text-decoration: none; transition: border-color .3s, background .3s; }
.sns-cards a:hover { border-color: var(--ink); background: var(--paper); color: var(--ink); }
.sns-cards svg { width: 28px; height: 28px; }
.sns-cards span { font-family: var(--en); font-weight: 600; font-size: 18px; letter-spacing: .1em; }
.sns-cards small { color: var(--gray); font-size: 13px; }
@media (max-width: 560px) {
	.sns-cards { grid-template-columns: 1fr; gap: 10px; }
	.sns-cards a { flex-direction: row; justify-content: center; padding: 16px; gap: 12px; }
}

/* ==========================================================================
   下層ページ
   ========================================================================== */
.page-hero { position: relative; display: flex; align-items: center; min-height: clamp(260px, 34vw, 400px); padding-top: var(--head-h); background: var(--ink); color: var(--white); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: .5; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 60%); }
.page-hero__inner { position: relative; z-index: 1; text-align: center; padding-block: 36px; }
.page-hero__en { font-family: var(--en); font-weight: 600; font-size: 14px; letter-spacing: .4em; text-indent: .4em; margin: 0 0 8px; opacity: .85; }
.page-hero__title { font-size: clamp(26px, 4vw, 40px); letter-spacing: .2em; text-indent: .2em; margin: 0; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.page-hero__lead { margin: 14px 0 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--gray); }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: var(--line); }
.breadcrumb a { text-decoration: none; }

/* 本文(ブロック) */
.entry { max-width: calc(880px + var(--pad) * 2); margin-inline: auto; padding: clamp(32px, 5vw, 64px) var(--pad) clamp(56px, 8vw, 100px); }
.entry > *:first-child { margin-top: 0; }
.entry h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 2em; }
.entry h3 { font-size: 20px; margin-top: 1.8em; padding-left: 14px; border-left: 3px solid var(--shu); }
.entry a { color: var(--shu); }
.entry .wp-block-image { margin: 1.6em 0; }
.entry .wp-block-image img { display: block; }
.entry figure[data-zoom] img { cursor: zoom-in; }
.entry .wp-block-gallery { margin: 1.6em 0; display: flex; flex-wrap: wrap; gap: 12px; }
.entry .wp-block-gallery > .wp-block-image { margin: 0; flex: 0 0 calc((100% - 12px) / 2); display: flex; }
.entry .wp-block-gallery.columns-3 > .wp-block-image { flex-basis: calc((100% - 24px) / 3); }
.entry .wp-block-gallery.columns-1 > .wp-block-image { flex-basis: 100%; }
.entry .wp-block-gallery > .wp-block-image a { display: block; width: 100%; }
.entry .wp-block-gallery.is-cropped img { width: 100%; height: 100%; object-fit: cover; }
/* 現行サイトの記事(グループのグリッド・カラムで写真を並べたもの) */
.entry .wp-block-group.is-layout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; margin: 1.6em 0; }
.entry .wp-block-group.is-layout-grid > .wp-block-image,
.entry .wp-block-columns .wp-block-image { margin: 0; }
.entry .wp-block-columns { display: flex; gap: 12px; margin: 1.6em 0; }
.entry .wp-block-columns > .wp-block-column { flex: 1 1 0; min-width: 0; }
.entry .wp-block-image.is-resized img,
.entry .wp-block-image img[style*="width"] { max-width: 100%; height: auto; }
@media (max-width: 560px) { .entry .wp-block-columns:not(.sr-about) { flex-direction: column; } }
@media (max-width: 560px) { .entry .wp-block-gallery.columns-3 > .wp-block-image { flex-basis: calc((100% - 12px) / 2); } }
.entry .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; background: var(--paper); }
.entry .wp-block-file a:not(.wp-block-file__button) { font-weight: 700; }
.entry .wp-block-file__button { background: var(--ink); color: var(--white) !important; text-decoration: none; padding: 8px 18px; font-size: 14px; border-radius: 0; }
.has-text-align-right { text-align: right; }

.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table td,
.wp-block-table th { border: 1px solid var(--line); padding: 12px 16px; }
.wp-block-table.is-style-sr-spec td,
.wp-block-table.is-style-sr-spec th { border: 0; border-bottom: 1px solid var(--line); padding: 18px 4px; vertical-align: top; }
.wp-block-table.is-style-sr-spec td:first-child { width: 7.5em; font-family: var(--mincho); font-weight: 700; color: var(--gray); white-space: nowrap; }
.wp-block-table.is-style-sr-spec td:first-child::before { content: "■"; color: var(--shu); font-size: 11px; margin-right: 8px; vertical-align: 2px; }
.town__body .wp-block-table.is-style-sr-spec td:last-child { font-family: var(--mincho); font-size: 19px; font-weight: 700; letter-spacing: .14em; }

/* about */
.sr-about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.sr-about .wp-block-image { margin: 0; }
@media (max-width: 760px) { .sr-about { grid-template-columns: 1fr; } }
.page-about .entry { max-width: calc(var(--w) + var(--pad) * 2); }
.is-style-sr-lead { font-size: clamp(20px, 2.4vw, 24px) !important; border: 0 !important; padding: 0 !important; margin-top: 0 !important; }

/* 投稿 */
.entry--post { max-width: calc(820px + var(--pad) * 2); }
.entry__head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 32px; }
.entry__head time { font-family: var(--en); font-weight: 600; font-size: 16px; letter-spacing: .12em; color: var(--gray); }
.entry__title { font-size: clamp(22px, 3vw, 30px) !important; margin: 6px 0 0 !important; }
.post-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.post-nav span:last-child { text-align: right; }
.post-nav a { color: var(--ink) !important; text-decoration: none; }
.post-nav > a { border: 1px solid var(--ink); padding: 10px 20px; }
.post-nav > a:hover { background: var(--ink); color: var(--white) !important; }

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); text-decoration: none; font-family: var(--en); font-weight: 600; }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* お問い合わせへの帯 */
.contact-band { position: relative; background: var(--ink); color: var(--white); overflow: hidden; text-align: center; }
.contact-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.contact-band__inner { position: relative; padding-block: clamp(64px, 9vw, 110px); }
.contact-band .sec-head__en { color: rgba(255,255,255,.85); justify-content: center; }
.contact-band .sec-head__en::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.contact-band p { margin-bottom: 28px; }

/* フォーム(Contact Form 7) */
.wpcf7 fieldset { border: 0; padding: 0; margin: 0; }
.page-introduction .town-index { padding-top: clamp(32px, 5vw, 56px); }
.page-contact .entry { max-width: calc(760px + var(--pad) * 2); }
.form__row { display: grid; gap: 8px; margin-bottom: 24px; }
.form__row label,
.form__label { font-weight: 700; display: flex; align-items: center; gap: 10px; }
.req,
.opt { font-size: 11px; font-weight: 700; padding: 2px 8px; line-height: 1.6; letter-spacing: .08em; }
.req { background: var(--shu); color: var(--white); }
.opt { background: var(--line); color: var(--ink); }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); font: inherit; color: inherit; border-radius: 0; }
.wpcf7 textarea { min-height: 220px; resize: vertical; }
.wpcf7 input:focus,
.wpcf7 textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; background: var(--white); }
.form__agree { text-align: center; margin: 32px 0 24px; }
.form__submit { text-align: center; }
.wpcf7 input[type="submit"] { min-width: 260px; padding: 18px 40px; border: 0; background: var(--ink); color: var(--white); font-family: var(--mincho); font-weight: 700; font-size: 16px; letter-spacing: .2em; cursor: pointer; transition: background .3s; }
.wpcf7 input[type="submit"]:hover { background: var(--shu); }
.wpcf7-not-valid-tip { color: var(--shu); font-size: 13px; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 14px 18px; border-width: 1px; }
.wpcf7-spinner { display: block; margin: 12px auto 0; }

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer { position: relative; background: var(--ink); color: rgba(255,255,255,.85); overflow: hidden; }
.site-footer__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; }
.site-footer__inner { position: relative; max-width: calc(var(--w) + var(--pad) * 2); margin-inline: auto; padding: clamp(56px, 8vw, 90px) var(--pad) 40px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer__brand img { width: 240px; height: auto; margin-bottom: 20px; }
.site-footer address { font-style: normal; font-size: 14px; line-height: 1.9; }
.sns { list-style: none; margin: 20px 0 0; padding: 0; display: flex; gap: 10px; }
.sns a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.3); color: var(--white); transition: background .3s, color .3s; }
.sns a:hover { background: var(--white); color: var(--ink); }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 18px 48px; }
.site-footer__list a { text-decoration: none; color: var(--white); display: flex; flex-direction: column; }
.site-footer__list .en { font-family: var(--en); font-size: 11px; letter-spacing: .3em; opacity: .55; }
.site-footer__list .ja { font-family: var(--mincho); font-weight: 700; }
.site-footer__list a:hover .ja { text-decoration: underline; text-underline-offset: 5px; }
.site-footer__bottom { position: relative; max-width: calc(var(--w) + var(--pad) * 2); margin-inline: auto; padding: 20px var(--pad) 28px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.site-footer__bottom a { text-decoration: none; color: rgba(255,255,255,.75); }

/* ==========================================================================
   写真の拡大表示
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12,11,10,.94); display: grid; place-items: center; padding: 56px 64px; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 112px); object-fit: contain; }
.lightbox__close,
.lightbox__nav { position: absolute; border: 0; background: none; color: var(--white); cursor: pointer; font-size: 40px; line-height: 1; width: 56px; height: 56px; }
.lightbox__close { top: 8px; right: 8px; }
.lightbox__nav--prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 4px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) { .lightbox { padding: 56px 12px; } .lightbox__nav { top: auto; bottom: 4px; transform: none; } }

/* ==========================================================================
   表示アニメーション
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.hero__slide img { transition: none; transform: none; }
	.hero__scroll::after { animation: none; }
}
