/*
Theme Name: 岸和田木彫会
Theme URI: https://www.k-mokuchokai.jp/
Description: 地車（だんじり）彫刻・社寺彫刻の彫師が集う「岸和田木彫会」の公式サイト用オリジナルテーマ。彫師はカスタム投稿、作品はギャラリーブロックで管理。
Author: TRIBAL WORKS
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: mokuchokai
*/

/* ---------- 基本 ---------- */
:root {
	/* 大きく表示する写真の粗さを目立たなくする粒子(フィルムのような質感) */
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
	--ink: #0e0c0a;
	--ink-2: #16120e;
	--ink-3: #211b15;
	--wood: #c9945c;
	--wood-l: #e3c49c;
	--paper: #efe6d8;
	--muted: #a59886;
	--line: rgba(239, 230, 216, .14);
	--shu: #b8382a;
	--mincho: "Shippori Mincho B1", "Yu Mincho", "YuMincho", serif;
	--gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
	--en: "Cormorant Garamond", "Times New Roman", serif;
	--wrap: 1200px;
	--ease: cubic-bezier(.22, .61, .36, 1);
	--header-h: 84px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--gothic);
	font-size: 16px;
	line-height: 2;
	letter-spacing: .04em;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body::before {
	/* 和紙のようなざらつき */
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 100;
	opacity: .05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--wood-l); text-underline-offset: .25em; transition: color .3s; }
a:hover { color: var(--paper); }
h1, h2, h3, h4 { font-family: var(--mincho); font-weight: 700; line-height: 1.5; letter-spacing: .08em; }
.container { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.container--narrow { --wrap: 880px; }
.section-pad { padding-block: clamp(64px, 9vw, 120px); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--paper); color: var(--ink); padding: 8px 16px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }

/* ---------- ボタン ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	padding: 16px 30px;
	border: 1px solid var(--wood);
	color: var(--paper);
	text-decoration: none;
	font-family: var(--mincho);
	font-weight: 700;
	letter-spacing: .12em;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: color .4s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--wood); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); z-index: -1; }
.btn::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover::after { width: 40px; }
.btn--wood { background: var(--wood); color: var(--ink); }
.btn--wood::before { background: var(--paper); }
.link-more { font-family: var(--mincho); font-weight: 700; color: var(--paper); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; letter-spacing: .1em; }
.link-more::after { content: ""; width: 44px; height: 1px; background: var(--wood); transition: width .4s var(--ease); }
.link-more:hover::after { width: 64px; }

/* ---------- 見出し ---------- */
.sec-head__en { margin: 0; font-family: var(--en); font-style: italic; font-weight: 500; font-size: clamp(16px, 1.6vw, 20px); color: var(--wood); letter-spacing: .12em; display: flex; align-items: center; gap: 14px; }
.sec-head__en::before { content: ""; width: 32px; height: 1px; background: var(--wood); }
.sec-head__ja { margin: 8px 0 0; font-size: clamp(28px, 3.6vw, 44px); }
.section { padding-block: clamp(80px, 11vw, 160px); position: relative; }
.section__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }

/* ---------- ヘッダー ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 200; transition: background .4s, backdrop-filter .4s, transform .4s var(--ease); }
.site-header.is-scrolled { background: rgba(14, 12, 10, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; padding-inline: clamp(20px, 3vw, 40px); }
.site-logo { margin: 0; line-height: 0; }
.site-logo img { height: 52px; width: auto; }
.header-nav { margin-left: auto; }
.header-nav__list { display: flex; gap: clamp(20px, 2.6vw, 40px); list-style: none; margin: 0; padding: 0; }
.header-nav__list a { color: var(--paper); text-decoration: none; font-family: var(--mincho); font-weight: 700; font-size: 15px; letter-spacing: .14em; position: relative; padding-block: 6px; }
.header-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--wood); transform: scaleX(0); transition: transform .4s var(--ease); }
.header-nav__list a:hover::after, .header-nav__list a[aria-current]::after { transform: scaleX(1); }
.header-nav__list li:last-child a { border: 1px solid var(--wood); padding: 9px 20px; }
.header-nav__list li:last-child a::after { display: none; }
.header-nav__list li:last-child a:hover { background: var(--wood); color: var(--ink); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--paper); cursor: pointer; align-items: center; gap: 10px; padding: 8px; font: 600 12px/1 var(--en); letter-spacing: .2em; }
.menu-btn__lines { width: 28px; height: 10px; position: relative; }
.menu-btn__lines i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn__lines i:first-child { top: 0; }
.menu-btn__lines i:last-child { top: 9px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:first-child { top: 5px; transform: rotate(20deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:last-child { top: 5px; transform: rotate(-20deg); }

.global-menu { position: fixed; inset: 0; z-index: 190; background: rgba(14, 12, 10, .97); overflow-y: auto; padding: calc(var(--header-h) + 24px) 24px 48px; opacity: 0; transition: opacity .4s; }
.global-menu.is-open { opacity: 1; }
.global-menu__inner { max-width: 560px; margin: 0 auto; }
.global-menu__list { list-style: none; margin: 0; padding: 0; }
.global-menu__list a { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--paper); text-decoration: none; }
.global-menu__list .ja { font-family: var(--mincho); font-weight: 700; font-size: 20px; letter-spacing: .12em; }
.global-menu__list .en { order: 2; font: italic 500 14px var(--en); color: var(--wood); letter-spacing: .12em; }
.global-menu__horishi { margin-top: 36px; }
.global-menu__label { font-family: var(--mincho); color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.global-menu__horishi ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.global-menu__horishi a { display: block; padding: 12px 14px; background: var(--ink-3); color: var(--paper); text-decoration: none; font-family: var(--mincho); font-weight: 700; line-height: 1.5; }
.global-menu__horishi small { display: block; font-family: var(--gothic); font-weight: 400; color: var(--muted); font-size: 12px; }

/* ---------- トップ: メインビジュアル ---------- */
.hero { position: relative; min-height: max(640px, 100svh); display: grid; overflow: hidden; background: #000; }
.hero__slides { position: absolute; inset: 0 0 0 auto; width: min(66vw, 1100px); }
.hero__slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.06); transition: transform 7s linear; filter: contrast(1.06) saturate(.9) brightness(.94); }
.hero__slide::after, .page-hero::after, .craft-hero::after, .cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--grain); background-size: 220px; opacity: .36; mix-blend-mode: overlay; }
.hero__slide::before, .craft-hero__art::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 55% 45%, transparent 45%, rgba(0, 0, 0, .55) 100%); }
.hero__slide.is-active img { transform: scale(1.02); }
.hero__slides::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 18%), linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .55) 22%, rgba(0, 0, 0, 0) 55%), linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 30%); }
.hero__body { position: relative; z-index: 3; align-self: center; padding: calc(var(--header-h) + 40px) clamp(24px, 6vw, 96px) 120px; display: grid; grid-template-columns: auto auto; grid-template-rows: auto 1fr; column-gap: clamp(28px, 4vw, 56px); justify-content: start; }
.hero__copy { grid-row: 1 / span 2; writing-mode: vertical-rl; margin: 0; font-family: var(--mincho); font-weight: 800; font-size: clamp(44px, 6.4vw, 92px); line-height: 1.35; letter-spacing: .14em; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.hero__tag { grid-column: 2; writing-mode: vertical-rl; margin: 0; font-family: var(--mincho); font-weight: 700; color: var(--wood); letter-spacing: .3em; font-size: clamp(14px, 1.2vw, 16px); padding-top: .4em; border-right: 1px solid var(--wood); padding-right: 12px; }
.hero__lead { position: absolute; left: clamp(24px, 6vw, 96px); bottom: 40px; margin: 0; font-size: 14px; line-height: 2; color: rgba(239, 230, 216, .82); }
.hero__foot { position: absolute; z-index: 4; right: clamp(24px, 4vw, 56px); bottom: 40px; display: flex; align-items: center; gap: 40px; }
.hero__caption { margin: 0; display: flex; align-items: center; gap: 14px; font-family: var(--mincho); font-weight: 700; letter-spacing: .14em; }
.hero__num { font: 500 18px var(--en); color: var(--wood); }
.hero__bar { width: 80px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hero__bar i { position: absolute; inset: 0; background: var(--wood); transform-origin: left; transform: scaleX(0); }
.hero__bar i.is-run { animation: bar 6s linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.hero__scroll { writing-mode: vertical-rl; font: 600 11px var(--en); letter-spacing: .3em; color: var(--paper); text-decoration: none; padding-bottom: 64px; position: relative; }
.hero__scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 56px; background: linear-gradient(var(--wood) 50%, transparent 50%); background-size: 1px 200%; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* マーキー */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; background: var(--ink-2); }
.marquee__track { display: flex; width: max-content; gap: 56px; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--mincho); font-weight: 800; font-size: clamp(28px, 3.6vw, 48px); white-space: nowrap; letter-spacing: .14em; color: transparent; -webkit-text-stroke: 1px rgba(239, 230, 216, .45); display: flex; align-items: center; gap: 56px; }
.marquee__track span::after { content: ""; width: 10px; height: 10px; background: var(--shu); transform: rotate(45deg); }
.marquee__track .en { font-family: var(--en); font-style: italic; font-weight: 500; color: var(--wood); -webkit-text-stroke: 0; letter-spacing: .04em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 岸和田木彫会について */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.about__statement { font-family: var(--mincho); font-weight: 800; font-size: clamp(28px, 3.2vw, 46px); word-break: keep-all; line-height: 1.6; letter-spacing: .12em; margin: 48px 0 0; }
.about__body p { margin: 0 0 1.6em; color: rgba(239, 230, 216, .88); }
.about__stats { list-style: none; padding: 0; margin: 48px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.about__stats li { padding: 24px 0 0; border-left: 1px solid var(--line); padding-left: 20px; }
.about__stats li:first-child { border-left: 0; padding-left: 0; }
.about__stats b { display: block; font: 500 clamp(36px, 4vw, 56px)/1 var(--en); color: var(--wood); }
.about__stats li:last-child b { font-family: var(--mincho); font-weight: 800; font-size: clamp(28px, 3vw, 40px); }
.about__stats span { font-size: 13px; color: var(--muted); }

/* 彫師カード */
.craftsmen { background: var(--ink-2); }
.horishi-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.horishi-card { display: block; text-decoration: none; color: var(--paper); height: 100%; background: var(--ink); border: 1px solid var(--line); transition: border-color .4s; }
.horishi-card:hover { color: var(--paper); border-color: rgba(201, 148, 92, .6); }
.horishi-card__art { margin: 0; position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: #000; }
.horishi-card__art > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9) brightness(.92); }
.horishi-card:hover .horishi-card__art > img { transform: scale(1.06); filter: none; }
.horishi-card__no { position: absolute; top: 14px; left: 18px; font: italic 500 40px/1 var(--en); color: var(--wood); }
.horishi-card__photo { position: absolute; right: 16px; bottom: 16px; width: clamp(96px, 34%, 132px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid var(--wood); box-shadow: 0 8px 24px rgba(0, 0, 0, .55); z-index: 2; }
.horishi-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.horishi-card__art > img { display: block; }
.horishi-card__body { padding: 22px 24px 26px; }
.horishi-card__mon { display: block; height: 30px; margin-bottom: 10px; }
.horishi-card__mon img { height: 100%; width: auto; filter: invert(1) sepia(.35) brightness(.95); opacity: .9; }
.horishi-card__kobo { margin: 0; font-family: var(--mincho); font-weight: 800; font-size: 22px; letter-spacing: .14em; line-height: 1.5; }
.horishi-card__name { margin: 2px 0 14px; font-size: 14px; color: var(--muted); }
.role { display: inline-block; font-size: 11px; line-height: 1; padding: 4px 8px; margin-right: 10px; background: var(--shu); color: #fff; vertical-align: 2px; letter-spacing: .1em; }
.horishi-card__more { font-size: 13px; color: var(--wood); display: inline-flex; align-items: center; gap: 10px; }
.horishi-card__more::after { content: ""; width: 24px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.horishi-card:hover .horishi-card__more::after { width: 40px; }

/* 作品レール */
.works { overflow: hidden; }
.works__note { margin: 0; color: var(--muted); font-size: 14px; max-width: 420px; }
.works__rail { overflow: hidden; }
.works__track { display: flex; width: max-content; gap: 20px; animation: marquee 90s linear infinite; }
.works__rail:hover .works__track { animation-play-state: paused; }
.works__item { position: relative; display: block; height: clamp(240px, 30vw, 380px); flex: none; overflow: hidden; background: #000; color: var(--paper); text-decoration: none; }
.works__item img { height: 100%; width: auto; max-width: none; transition: transform 1s var(--ease), opacity .4s; }
.works__item:hover img { transform: scale(1.04); opacity: .8; }
.works__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); font-family: var(--mincho); font-weight: 700; font-size: 14px; line-height: 1.6; letter-spacing: .08em; opacity: 0; transform: translateY(8px); transition: .4s var(--ease); }
.works__cap small { display: block; font-family: var(--gothic); font-weight: 400; color: var(--wood-l); font-size: 12px; }
.works__item:hover .works__cap, .works__item:focus-visible .works__cap { opacity: 1; transform: none; }

/* お知らせ */
.news { background: var(--ink-2); }
.news__grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 6vw, 96px); }
.news__grid .link-more { margin-top: 32px; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 112px 1fr auto; gap: 24px; align-items: center; padding: 24px 8px; border-bottom: 1px solid var(--line); color: var(--paper); text-decoration: none; transition: background .3s, padding .4s var(--ease); }
.news-list a:hover { background: rgba(201, 148, 92, .07); padding-left: 16px; }
.news-list time { font: 500 17px var(--en); color: var(--wood); letter-spacing: .08em; }
.news-list__title { font-family: var(--mincho); font-weight: 700; line-height: 1.7; }
.news-list__thumb { width: 72px; height: 72px; overflow: hidden; }
.news-list__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* お問い合わせへの誘導 */
.cta { position: relative; overflow: hidden; padding-block: clamp(96px, 12vw, 180px); text-align: center; background: #000; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; filter: grayscale(.3) blur(1.5px); transform: scale(1.03); }
.cta__inner { position: relative; z-index: 1; }
.cta__en { margin: 0; font: italic 500 clamp(64px, 11vw, 160px)/1 var(--en); color: transparent; -webkit-text-stroke: 1px rgba(201, 148, 92, .45); }
.cta__title { font-size: clamp(24px, 3.4vw, 40px); margin: -0.6em 0 24px; }
.cta__text { margin: 0 auto 40px; max-width: 640px; color: rgba(239, 230, 216, .85); }

/* ---------- 下層の見出し ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) 0 clamp(56px, 7vw, 96px); background: #000; border-bottom: 1px solid var(--line); }
.page-hero__bg { position: absolute; top: 0; right: 0; height: 100%; width: min(60vw, 900px); object-fit: cover; opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); filter: contrast(1.06) saturate(.9) blur(.4px); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__en { margin: 0; font: italic 500 clamp(56px, 9vw, 132px)/1 var(--en); color: transparent; -webkit-text-stroke: 1px rgba(201, 148, 92, .6); letter-spacing: .01em; }
.page-hero__title { margin: 8px 0 0; font-size: clamp(28px, 4vw, 48px); max-width: 900px; }
.page-hero__lead { margin: 20px 0 0; max-width: 620px; color: rgba(239, 230, 216, .85); }
.breadcrumb ol { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.breadcrumb li + li::before { content: "／"; margin-right: 12px; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--paper); }

/* ---------- 本文(ブロック) ---------- */
.entry { width: min(860px, 100% - 48px); margin-inline: auto; padding-block: clamp(64px, 8vw, 112px); }
.entry > * { margin-block: 0; }
.entry > * + * { margin-top: 1.6em; }
.entry .wp-block-column p { margin: .6em 0 0; }
.entry h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 2.6em; padding-bottom: 14px; border-bottom: 1px solid var(--line); position: relative; }
.entry h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 1px; background: var(--wood); }
.entry h3 { font-size: clamp(19px, 2.2vw, 23px); margin-top: 2.2em; color: var(--wood-l); }
.entry .is-style-mk-lead { text-align: center; border: 0; font-size: clamp(26px, 3.4vw, 40px); }
.entry .is-style-mk-lead::after { left: 50%; transform: translateX(-50%); }
.entry .alignwide { width: min(1200px, 100vw - 48px); max-width: none; margin-left: calc(50% - min(600px, 50vw - 24px)); }
.entry .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry .mk-label { font: italic 500 18px var(--en); color: var(--wood); letter-spacing: .12em; margin-top: 4.5em; display: flex; align-items: center; gap: 12px; }
.entry .mk-label::before { content: ""; width: 28px; height: 1px; background: var(--wood); }
.entry > .mk-label:first-child { margin-top: 0; }
.entry .mk-label + h2 { margin-top: .3em; }
.entry blockquote, .entry .wp-block-quote { margin-inline: 0; padding: 28px 32px; border-left: 2px solid var(--wood); background: var(--ink-2); font-family: var(--mincho); }
.entry .wp-block-image figcaption, .entry .wp-element-caption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.entry .has-text-align-center { text-align: center; }
.entry .mk-note { font-size: 13px; color: var(--muted); }
.entry .mk-sign { text-align: right; font-family: var(--mincho); font-weight: 700; letter-spacing: .2em; color: var(--wood-l); }
.entry .wp-block-buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.entry .wp-block-button__link { display: inline-flex; align-items: center; gap: 14px; padding: 16px 30px; border: 1px solid var(--wood); color: var(--paper); background: none; border-radius: 0; text-decoration: none; font-family: var(--mincho); font-weight: 700; letter-spacing: .1em; transition: background .3s, color .3s; }
.entry .wp-block-button__link:hover { background: var(--wood); color: var(--ink); }
.entry .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin-block: 3em; }

/* 表(項目/内容) */
.entry .wp-block-table { margin-inline: 0; overflow-x: auto; }
.entry table { width: 100%; border-collapse: collapse; }
.entry table { border-top: 1px solid var(--line); }
.entry .wp-block-table td, .entry .wp-block-table th, .entry td, .entry th { padding: 18px 20px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry .is-style-mk-spec td:first-child { width: 30%; font-family: var(--mincho); font-weight: 700; color: var(--wood-l); white-space: nowrap; }

/* 年表(歩み) */
.entry .is-style-mk-history { list-style: none; padding: 0; border-left: 1px solid var(--line); margin-left: 6px; }
.entry .is-style-mk-history li { position: relative; padding: 0 0 22px 28px; line-height: 1.8; }
.entry .is-style-mk-history li::before { content: ""; position: absolute; left: -5px; top: .6em; width: 9px; height: 9px; background: var(--ink); border: 1px solid var(--wood); transform: rotate(45deg); }
.entry .is-style-mk-history strong { display: block; font-family: var(--mincho); color: var(--wood-l); letter-spacing: .1em; }

/* カード(カラム) */
.entry .wp-block-columns { display: flex; gap: 24px; flex-wrap: wrap; }
.entry .wp-block-column { flex: 1 1 0; min-width: 220px; }
.entry .is-style-mk-cards .wp-block-column { background: var(--ink-2); border: 1px solid var(--line); padding: 28px; }
.entry .is-style-mk-cards h3 { margin-top: 0; font-size: 20px; }
.entry .is-style-mk-cards .mk-num { font: italic 500 40px/1 var(--en); color: var(--wood); }

/* ギャラリー(作品) */
.entry .wp-block-gallery { display: grid !important; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 10px; margin-block: 2em; padding: 0; }
.entry .wp-block-gallery.columns-2 { --cols: 2; }
.entry .wp-block-gallery.columns-3 { --cols: 3; }
.entry .wp-block-gallery figure { margin: 0 !important; width: auto !important; position: relative; overflow: hidden; background: #000; aspect-ratio: 1; }
.entry .wp-block-gallery figure a { display: block; height: 100%; }
.entry .wp-block-gallery img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .9s var(--ease), opacity .4s; }
.entry .wp-block-gallery figure:hover img { transform: scale(1.06); opacity: .75; }
.entry .wp-block-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 32px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: var(--paper); font-size: 12px; line-height: 1.5; text-align: left; opacity: 0; transition: opacity .4s; pointer-events: none; }
.entry .wp-block-gallery figure:hover figcaption { opacity: 1; }
.entry .wp-block-gallery.mk-photos figure { aspect-ratio: 4 / 3; }
.entry .wp-block-gallery a { cursor: zoom-in; }

/* お知らせ本文 */
.entry--post .entry__date { font: 500 18px var(--en); color: var(--wood); letter-spacing: .1em; }
.entry--post .wp-block-image img { width: 100%; }
.post-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 4em !important; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.post-nav a { color: var(--paper); text-decoration: none; }
.post-nav a:hover { color: var(--wood); }
.pagination, .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); color: var(--paper); text-decoration: none; }
.page-numbers.current { background: var(--wood); color: var(--ink); border-color: var(--wood); }

/* ---------- 彫師の個別ページ ---------- */
.craft-hero { position: relative; min-height: min(86svh, 820px); display: flex; align-items: flex-end; overflow: hidden; background: #000; padding: calc(var(--header-h) + 40px) 0 clamp(48px, 6vw, 80px); }
.craft-hero__art { position: absolute; top: 0; right: 0; bottom: 0; width: min(64vw, 1040px); margin: 0; }
.craft-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; animation: zoomout 2.4s var(--ease) both; filter: contrast(1.06) saturate(.9) brightness(.94); }
.craft-hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .4) 35%, transparent 65%), linear-gradient(0deg, #000, transparent 40%); }
@keyframes zoomout { from { transform: scale(1.1); opacity: 0; } }
.craft-hero__inner { position: relative; z-index: 1; }
.craft-hero .breadcrumb ol { margin: 0 0 48px; }
.craft-hero__no { margin: 0; font: italic 500 18px var(--en); color: var(--wood); letter-spacing: .14em; }
.craft-hero__kobo { margin: 10px 0 0; font-size: clamp(48px, 8vw, 112px); font-weight: 800; letter-spacing: .14em; line-height: 1.2; text-shadow: 0 4px 40px rgba(0, 0, 0, .7); }
.craft-hero__name { margin: 12px 0 0; font-family: var(--mincho); font-weight: 700; font-size: clamp(18px, 2vw, 22px); letter-spacing: .2em; }
.craft-hero__mon { margin: 28px 0 0; }
.craft-hero__mon img { height: 44px; width: auto; filter: invert(1) sepia(.35) brightness(.95); }
.craft-profile { padding-block: clamp(64px, 8vw, 120px); }
.craft-profile__grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.craft-profile__side { position: sticky; top: calc(var(--header-h) + 24px); }
.craft-profile__photo { margin: 0 0 28px; overflow: hidden; }
.craft-profile__photo img { width: 100%; }
.craft-info { margin: 0; display: grid; grid-template-columns: 64px 1fr; font-size: 14px; border-top: 1px solid var(--line); }
.craft-info dt, .craft-info dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; line-height: 1.8; }
.craft-info dt { font-family: var(--mincho); font-weight: 700; color: var(--wood-l); }
.entry--craft { width: auto; margin: 0; padding: 0; min-width: 0; }
.entry--craft .alignwide { width: auto; margin-left: 0; }
.entry--craft .wp-block-gallery.is-style-mk-works { --cols: 3; }
.craft-nav { border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px); background: var(--ink-2); }
.craft-nav__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.craft-nav__item { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 20px; padding: 14px; border: 1px solid var(--line); color: var(--paper); text-decoration: none; font-family: var(--mincho); font-weight: 800; font-size: 20px; letter-spacing: .12em; transition: border-color .4s; }
.craft-nav__item:hover { color: var(--paper); border-color: var(--wood); }
.craft-nav__item img { width: 140px; height: 96px; object-fit: cover; }
.craft-nav__item small { display: block; font: italic 500 14px var(--en); color: var(--wood); letter-spacing: .1em; }
.craft-nav__item--next { grid-template-columns: 1fr 140px; text-align: right; }
.craft-nav__item--next img { order: 2; }
.craft-nav__all { text-align: center; margin: 48px 0 0; }

/* ---------- お問い合わせフォーム(CF7) ---------- */
.wpcf7 { margin-top: 2.4em; }
.form__row { margin-bottom: 28px; }
.form__row label, .form__label { display: flex; align-items: center; gap: 10px; font-family: var(--mincho); font-weight: 700; margin-bottom: 8px; letter-spacing: .08em; }
.req, .opt { font-family: var(--gothic); font-size: 11px; line-height: 1; padding: 4px 8px; letter-spacing: .08em; }
.req { background: var(--shu); color: #fff; }
.opt { border: 1px solid var(--line); color: var(--muted); }
.form__2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 select {
	width: 100%; padding: 14px 16px; font: inherit; color: var(--paper); background: var(--ink-2); border: 1px solid var(--line); border-radius: 0; transition: border-color .3s, background .3s;
}
.wpcf7 select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--wood) 50%), linear-gradient(-45deg, transparent 50%, var(--wood) 50%); background-position: right 22px center, right 16px center; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; cursor: pointer; }
.wpcf7 select option { background: var(--ink-2); color: var(--paper); }
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.wpcf7 .hidden-fields-container { display: none; }
.wpcf7 form.init .wpcf7-response-output, .wpcf7 form.resetting .wpcf7-response-output, .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.wpcf7-acceptance input { accent-color: var(--wood); width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--wood); background: var(--ink-3); }
.wpcf7 textarea { min-height: 220px; }
.form__help { font-size: 13px; color: var(--muted); margin: 6px 0 0 !important; }
.form__agree { margin: 32px 0; text-align: center; }
.form__agree a { color: var(--wood-l); }
.form__submit { text-align: center; }
.wpcf7 input[type="submit"] { appearance: none; min-width: 280px; padding: 20px 40px; background: var(--wood); color: var(--ink); border: 0; font: 700 17px var(--mincho); letter-spacing: .2em; cursor: pointer; transition: background .3s; }
.wpcf7 input[type="submit"]:hover { background: var(--paper); }
.wpcf7-not-valid-tip { color: #ff8f80; font-size: 13px; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 16px 20px; border: 1px solid var(--wood); }
.wpcf7-spinner { display: block; margin: 12px auto 0; }

/* ---------- フッター ---------- */
.site-footer { background: #000; border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 100px) 0 0; }
.site-footer__inner { width: min(var(--wrap), 100% - 48px); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.site-footer__brand img { width: 280px; }
.site-footer__brand p { font-size: 13px; color: var(--muted); line-height: 2.1; margin: 24px 0 0; }
.site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.site-footer__list, .site-footer__sub { list-style: none; margin: 0; padding: 0; }
.site-footer__list a { display: flex; flex-direction: column; padding: 8px 0; color: var(--paper); text-decoration: none; line-height: 1.5; }
.site-footer__list .en { order: 2; font: italic 500 13px var(--en); color: var(--wood); letter-spacing: .1em; }
.site-footer__list .ja { font-family: var(--mincho); font-weight: 700; }
.site-footer__sub a { display: block; padding: 6px 0; font-size: 14px; color: var(--muted); text-decoration: none; }
.site-footer__sub a:hover, .site-footer__list a:hover { color: var(--wood-l); }
.site-footer__bottom { width: min(var(--wrap), 100% - 48px); margin: 64px auto 0; padding: 24px 0 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); }
.site-footer__bottom a { color: var(--muted); text-decoration: none; }

/* ---------- 写真の拡大表示 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(0, 0, 0, .94); display: grid; place-items: center; padding: 64px 72px; opacity: 0; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden], .global-menu[hidden] { display: none; }
.lightbox__figure { margin: 0; text-align: center; }
.lightbox__figure img { max-height: calc(100svh - 160px); max-width: 100%; width: auto; }
.lightbox__figure figcaption { margin-top: 14px; font-family: var(--mincho); font-weight: 700; letter-spacing: .08em; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--paper); font-size: 44px; line-height: 1; cursor: pointer; padding: 12px; }
.lightbox__close { top: 12px; right: 16px; }
.lightbox__nav--prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- 表示アニメーション ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1000px) {
	.header-nav { display: none; }
	.menu-btn { display: inline-flex; }
	.horishi-grid { grid-template-columns: repeat(2, 1fr); }
	.about__grid, .news__grid { grid-template-columns: 1fr; }
	.about__statement { margin-top: 32px; }
	.craft-profile__grid { grid-template-columns: 1fr; }
	.craft-profile__side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
	.craft-profile__photo { margin: 0; }
}
@media (max-width: 700px) {
	:root { --header-h: 68px; }
	body { font-size: 15px; }
	.site-logo img { height: 40px; }
	.hero { min-height: 100svh; }
	.hero__slides { width: 100%; }
	.hero__slides::after { background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .3) 45%, rgba(0, 0, 0, .55) 100%); }
	.hero__body { padding: calc(var(--header-h) + 24px) 24px 200px; }
	.hero__copy { font-size: clamp(40px, 12vw, 56px); }
	.hero__lead { bottom: 104px; font-size: 13px; }
	.hero__foot { left: 24px; right: 24px; bottom: 32px; justify-content: space-between; }
	.hero__scroll { display: none; }
	.horishi-grid { grid-template-columns: 1fr; }
	.about__stats { grid-template-columns: 1fr 1fr 1fr; }
	.about__stats li { padding-left: 12px; }
	.news-list a { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 4px; }
	.news-list time { grid-column: 1; }
	.news-list__title { grid-column: 1; }
	.news-list__thumb { grid-column: 2; grid-row: 1 / span 2; width: 64px; height: 64px; }
	.page-hero__bg { width: 100%; opacity: .35; -webkit-mask-image: linear-gradient(0deg, transparent, #000 70%); mask-image: linear-gradient(0deg, transparent, #000 70%); }
	.craft-hero { min-height: 88svh; }
	.craft-hero__art { width: 100%; }
	.craft-hero__art::after { background: linear-gradient(0deg, #000 10%, rgba(0, 0, 0, .3) 60%, rgba(0, 0, 0, .5)); }
	.craft-profile__side { grid-template-columns: 1fr; }
	.entry .wp-block-gallery, .entry--craft .wp-block-gallery.is-style-mk-works { --cols: 2; gap: 6px; }
	.entry .wp-block-gallery figcaption { opacity: 1; font-size: 11px; padding: 24px 8px 6px; }
	.craft-nav__inner { grid-template-columns: 1fr; }
	.craft-nav__item, .craft-nav__item--next { grid-template-columns: 96px 1fr; text-align: left; font-size: 17px; }
	.craft-nav__item--next img { order: 0; }
	.craft-nav__item img { width: 96px; height: 72px; }
	.form__2col { grid-template-columns: 1fr; }
	.site-footer__inner, .site-footer__nav { grid-template-columns: 1fr; }
	.site-footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
	.lightbox { padding: 56px 8px; }
	.lightbox__nav { top: auto !important; bottom: 8px; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.marquee__track, .works__track { animation: none; }
	.works__rail { overflow-x: auto; }
}
