@charset "UTF-8";

/* =========================================================
   TAMOO — main stylesheet
   ページ全体は「紙の上の墨と黄色」。白地 × 黒線 × 黄色一点。
   ========================================================= */

:root {
	--paper:  #FAFAF7;
	--ground: #EFEDE6;
	--ink:    #18181A;
	--ink-2:  #3F3E3A;
	--muted:  #5E5D58;
	--line:   #D9D7CF;
	--yellow: #F2C200;
	--red: #D7372B; /* 電話番号だけに使う */

	--jp:   'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Noto Sans JP', sans-serif;
	--disp: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
	--mono: 'IBM Plex Mono', Menlo, Consolas, monospace;

	--gutter: clamp(16px, 4vw, 40px);
	--maxw: 1440px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--jp);
	font-size: 16px;
	line-height: 1.9;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-weight: 900; text-wrap: balance; font-feature-settings: "palt"; letter-spacing: .02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* 固定ヘッダーの下にアンカー先が潜り込まないように */
[id] { scroll-margin-top: 96px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--ink); color: var(--paper); padding: 10px 18px;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.branch__card--accent :focus-visible,
.cta-band :focus-visible { outline-color: var(--ink); }
.btn--solid:focus-visible { outline-offset: 3px; }

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal][data-reveal-delay="1"] { transition-delay: .12s; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 52px; padding: 0 24px;
	font-size: 14px; font-weight: 700; text-decoration: none;
	border: 2px solid var(--ink);
	transition: background-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.btn::after {
	content: ""; flex: 0 0 auto; width: 16px; height: 16px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .18s;
}
.btn:hover::after { transform: translateX(4px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid::after { background-color: var(--yellow); }
.btn--solid:hover { background: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--yellow); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 13px; }
.btn--sm::after { width: 13px; height: 13px; }
.btn--lg { min-height: 58px; padding: 0 28px; font-size: 15px; }
.btn--tel { gap: 10px; }
.btn--tel::after { display: none; }
.btn small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.btn--outline:hover small { color: rgba(250, 250, 247, .75); }
.cta-band .btn--solid:hover { box-shadow: 4px 4px 0 var(--paper); }

/* ---------- section titles ---------- */
.sec-title {
	display: flex; flex-direction: column; gap: 10px;
	font-size: clamp(26px, 4vw, 40px); margin-bottom: clamp(28px, 4vw, 48px);
	letter-spacing: .03em;
}
.sec-title__en {
	display: flex; align-items: center; gap: 10px;
	font-family: var(--mono); font-size: 12px; font-weight: 500;
	letter-spacing: .2em; color: var(--muted);
}
.sec-title__en::before { content: ""; width: 10px; height: 10px; background: var(--yellow); flex: 0 0 auto; }

/* =========================================================
   header
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 40;
	background: color-mix(in srgb, var(--paper) 92%, transparent);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid transparent;
}
.site-header__inner {
	max-width: var(--maxw); margin-inline: auto;
	min-height: 76px; padding-inline: var(--gutter);
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header__logo { flex: 0 0 auto; }
.site-header__logo img { width: auto; height: 38px; }

.site-nav { display: none; }
.site-nav__list { display: flex; align-items: center; gap: 26px; font-size: 13.5px; font-weight: 700; }
.site-nav__list a { text-decoration: none; white-space: nowrap; }
@media (max-width: 1199px) {
	.site-nav__list { gap: 16px; font-size: 12.5px; }
	.site-header__tel-hours { display: none; }
}
.site-nav__list a:hover { color: var(--muted); }

.site-header__contact { display: flex; align-items: center; gap: 14px; }
.site-header__tel { display: none; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1.35; }
.site-header__tel-num { font-family: var(--mono); font-size: 16px; letter-spacing: .03em; }
.site-header__tel-hours { font-size: 10.5px; color: var(--muted); white-space: nowrap; }

.nav-toggle {
	width: 44px; height: 44px; padding: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	background: transparent; border: 2px solid var(--ink); cursor: pointer;
}
.nav-toggle__bar { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { transform: translateY(-4px) rotate(-45deg); }

.drawer {
	position: fixed; inset: 76px 0 0; z-index: 39;
	background: var(--paper); padding: 28px var(--gutter) 40px;
	overflow-y: auto;
}
.drawer__list { display: flex; flex-direction: column; gap: 4px; font-size: 19px; font-weight: 900; }
.drawer__list a { display: block; padding: 14px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer__contact { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }

@media (min-width: 1024px) {
	.site-nav { display: block; }
	.site-header__tel { display: flex; }
	.nav-toggle { display: none; }
	.drawer { display: none !important; }
}

/* =========================================================
   FV
   ========================================================= */
.fv { background: var(--paper); overflow: hidden; }
.fv__inner {
	position: relative;
	max-width: var(--maxw); margin-inline: auto;
	--fv-giant: clamp(64px, 18.6vw, 190px);
	--fv-h1: min(8.1vw, 47px);
}

.fv__giant {
	font-family: var(--disp); font-weight: 900;
	font-size: var(--fv-giant);
	line-height: .78; letter-spacing: -.012em; white-space: nowrap;
	color: transparent; -webkit-text-stroke: 2px rgba(24, 24, 26, .26);
	margin: 0; pointer-events: none; user-select: none;
}

/* --- slider --- */
.fv__slider {
	position: relative; overflow: hidden;
	aspect-ratio: 4 / 3;
	border: 2px solid var(--ink);
	background: linear-gradient(118deg, #8F8C85 0%, #64615B 52%, #3A3936 100%);
	box-shadow: 10px 10px 0 var(--ink);
}

.fv__slide {
	position: absolute; inset: 0; z-index: 1;
	opacity: 0; visibility: hidden; transition: opacity .6s ease;
	text-decoration: none; color: #FAFAF7;
}
.fv__slide.is-current { opacity: 1; visibility: visible; }
.fv__slide .fv__photo { width: 100%; height: 100%; object-fit: cover; }
.fv__slide::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(20, 20, 22, .1) 0%, rgba(20, 20, 22, 0) 45%, rgba(20, 20, 22, .6) 100%);
}
.fv__slide--empty { background: transparent; }
.fv__slide--empty::before {
	content: ""; position: absolute; inset: 0;
	background: repeating-linear-gradient(135deg, rgba(250, 250, 247, .06) 0 2px, transparent 2px 18px);
}
.fv__caption-admin { color: rgba(250, 250, 247, .55); font-size: 10px; }

.fv__caption {
	position: absolute; right: 20px; bottom: 18px; z-index: 2;
	display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right;
	font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: #FAFAF7;
}
.fv__caption b { color: var(--yellow); font-weight: 500; }

.fv__controls {
	position: absolute; right: 20px; top: 16px; z-index: 3;
	display: flex; align-items: center; gap: 12px; color: #FAFAF7;
}
.fv__count { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }
.fv__dots { display: flex; gap: 4px; }
.fv__dot {
	width: 40px; height: 4px; padding: 0; border: 0; cursor: pointer;
	background: rgba(250, 250, 247, .32);
}
.fv__dot.is-current { background: var(--yellow); }

/* --- copy --- */
.fv__copy { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 22px); }
.fv__eyebrow { font-size: clamp(15px, 1.6vw, 22px); font-weight: 900; letter-spacing: .06em; }
.fv__headline { font-size: var(--fv-h1); line-height: 1.34; white-space: nowrap; letter-spacing: .01em; }
.fv__headline-top { display: block; margin-bottom: .22em; font-size: 1.04em; line-height: 1.2; } /* 「デザイン、看板のこと、」は約11.4em。2行目と同じくらいの幅に収める */
.fv__headline-line { display: inline-flex; align-items: center; } /* 文字をロゴの字面の高さに寄せる */
.fv__headline-line img {
	width: auto; height: 2.05em;
	margin-right: .08em;
}
.fv__lead { font-size: clamp(15px, 1.2vw, 17px); font-weight: 500; line-height: 1.9; color: var(--ink); word-break: auto-phrase; }
.fv__lead-row { display: flex; align-items: center; gap: 12px; }
.fv picture { display: contents; }
.fv__actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
/* FVは電話を主役に。フォームはその下に控えめに1つ */
/* 白背景の上（FV・問い合わせページ）では黄色い台紙に白いパネルを載せて、下段のCTA帯と同じ見え方にする */
.cta-tel.cta-tel--fv {
	min-width: 0; padding: 0 10px 10px;
	background: var(--yellow); box-shadow: 6px 6px 0 var(--ink);
}
.cta-tel.cta-tel--fv:hover { box-shadow: 8px 8px 0 var(--ink); }
.cta-tel.cta-tel--fv .cta-tel__tag { padding: 10px 12px 9px; background: transparent; border: 0; font-size: clamp(14px, 1.3vw, 16px); }
.cta-tel__panel { display: flex; flex-direction: column; background: #FFF; border: 2px solid var(--ink); }
.cta-tel.cta-tel--fv .cta-tel__num { padding: 12px 16px; font-size: clamp(32px, 3.3vw, 46px); }
.cta-tel.cta-tel--fv .cta-tel__hours { padding-top: 9px; font-size: 13px; }
.fv__form { width: 100%; min-height: 52px; font-size: 14px; }

/* --- illust / band --- */
.fv__illust--sp { display: none; }
.fv__band { display: none; }

/* ---------- PC: 上段＝コピー｜写真、下段＝巨大英字（イラストが乗る） ---------- */
@media (min-width: 1024px) {
	.fv__inner {
		--fv-pad: clamp(24px, 2.6vw, 40px);
		--fv-gap: clamp(24px, 2.6vw, 40px);
		--fv-band-w: 56px;
		--fv-copy-w: clamp(360px, 38vw, 548px); /* 残り幅は全部写真へ */
		--fv-illust-w: clamp(150px, 13vw, 190px);
		--fv-giant: clamp(104px, 11.6vw, 168px);
		--fv-h1: min(calc(var(--fv-copy-w) / 11.8), 50px); /* 2行目（ロゴ＋「に、たのもー。」）は約11.4em。コピー列に収まる最大 */
		--fv-row-gap: 14px; /* スライダーの影の分 */
		/* 写真列の幅（1fr の実寸）。写真の高さの基準にする */
		--fv-photo-w: calc(min(100vw, var(--maxw)) - var(--fv-pad) - var(--fv-copy-w) - var(--fv-gap) * 2 - var(--fv-band-w));

		display: grid;
		grid-template-columns: var(--fv-copy-w) minmax(0, 1fr) var(--fv-band-w);
		grid-template-rows: auto auto;
		column-gap: var(--fv-gap);
		row-gap: var(--fv-row-gap);
		padding: 0 0 clamp(24px, 2.4vw, 36px) var(--fv-pad);
	}

	/* 下段：写真とコピーの下に1語まるごと。先頭はイラスト分だけ空ける */
	/* 下段：イラスト分の高さを確保し、その右に英字を1語まるごと */
	.fv__inner > .fv__giant {
		grid-column: 1 / 3; grid-row: 2;
		align-self: end;
		display: flex; align-items: flex-end;
		min-height: calc(var(--fv-illust-w) * 1.087 - 8px);
		padding-left: calc(var(--fv-illust-w) + 20px);
		position: relative; z-index: 0;
	}

	.fv__slider {
		grid-column: 2; grid-row: 1;
		/* 4:3 を基本に、左列の方が高いときは行の高さまで伸ばす（はみ出さないよう aspect-ratio は外す） */
		aspect-ratio: auto; align-self: stretch;
		min-height: calc(var(--fv-photo-w) * .75);
		z-index: 1;
	}

	.fv__copy {
		grid-column: 1; grid-row: 1;
		padding-top: clamp(16px, 2.2vw, 32px);
	}
	.fv__lead { max-width: none; }

	/* 下段の左端に置く（コピー列の高さには影響させない） */
	.fv__illust {
		position: absolute; z-index: 2;
		left: var(--fv-pad); bottom: clamp(24px, 2.4vw, 36px);
		width: var(--fv-illust-w);
	}

	.fv__band {
		grid-column: 3; grid-row: 1 / 3;
		display: flex; align-items: center; justify-content: center;
		width: var(--fv-band-w); background: var(--yellow);
		position: relative; z-index: 3; margin: 0;
	}
	.fv__band span {
		writing-mode: vertical-rl;
		font-family: var(--mono); font-size: 11px; letter-spacing: .3em; white-space: nowrap;
	}
}

/* ---------- SP/タブレット: 英字 → 写真 → 見出し → 電話 → リード の縦積み（写真と電話を1画面目に） ---------- */
@media (max-width: 1023px) {
	.fv__inner {
		display: flex; flex-direction: column;
		padding: 8px var(--gutter) 40px;
	}
	.fv__inner > .fv__giant { order: 0; margin: 0 0 10px -.03em; }
	.fv__slider { order: 1; }
	.fv__copy { order: 2; gap: 14px; margin-top: 26px; }
	.fv__copy .fv__actions { order: 3; margin-top: 4px; }
	.fv__copy .fv__lead-row { order: 4; margin-top: 8px; }
	.fv__lead { font-size: 15px; max-width: 34em; }
	.fv__illust { display: none; }
	/* イラストは切らずに全体を、リード文の下に */
	.fv__lead-row { flex-direction: column; align-items: stretch; gap: 16px; }
	.fv__illust--sp {
		display: block; align-self: center;
		width: min(78%, 320px); height: auto;
	}
	.fv__actions { flex-direction: column; align-items: stretch; }
	.fv__actions .btn { width: 100%; }
}

/* =========================================================
   branch
   ========================================================= */
.branch { padding-block: clamp(56px, 8vw, 110px); background: var(--ground); }
.branch__grid { display: grid; gap: 2px; background: var(--line); border: 2px solid var(--ink); }
.branch__card {
	--card-pad: clamp(28px, 4vw, 48px);
	background: var(--paper); padding: var(--card-pad);
	display: flex; flex-direction: column; gap: 16px;
}
.branch__card--accent { background: var(--yellow); }
.branch__num {
	font-family: var(--disp); font-weight: 900; font-size: clamp(64px, 11vw, 130px);
	line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(24, 24, 26, .35);
}
.branch__card h3 { font-size: clamp(24px, 3.2vw, 34px); }
.branch__tags { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); line-height: 1.8; }
.branch__card--accent .branch__tags { color: var(--ink-2); }
.branch__link {
	margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line);
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	font-size: 16px; font-weight: 700; text-decoration: none;
}
.branch__card--accent .branch__link { border-top-color: rgba(24, 24, 26, .25); }
.branch__arrow {
	flex: 0 0 auto; width: 54px; height: 54px; background: var(--ink); position: relative;
}
.branch__arrow::before, .branch__arrow::after { content: ""; position: absolute; }
.branch__arrow::before { left: 16px; top: 26px; width: 22px; height: 2px; background: var(--yellow); }
.branch__arrow::after {
	right: 17px; top: 21px; width: 11px; height: 11px; background: transparent;
	border-top: 2px solid var(--yellow); border-right: 2px solid var(--yellow);
	transform: rotate(45deg);
}
.branch__arrow { transition: background-color .18s; }
.branch__link:hover .branch__arrow { background: var(--yellow); }
.branch__link:hover .branch__arrow::before { background: var(--ink); }
.branch__link:hover .branch__arrow::after { border-color: var(--ink); }
.branch__card--accent .branch__link:hover .branch__arrow { background: var(--paper); }

@media (min-width: 900px) { .branch__grid { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   services
   ========================================================= */
.services { padding-block: clamp(56px, 8vw, 110px); }
.services__list { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.services__list li {
	--card-pad: clamp(24px, 3vw, 36px);
	background: var(--paper); padding: var(--card-pad);
	display: flex; flex-direction: column; gap: 8px;
}
.services__num {
	font-family: var(--disp); font-weight: 900; font-size: 40px; line-height: 1;
	color: var(--yellow); -webkit-text-stroke: 1px var(--ink); margin-bottom: 4px;
}
.services__list h3 { font-size: 20px; }
.services__list p { font-size: 14px; line-height: 1.95; color: var(--ink-2); }
@media (min-width: 720px) { .services__list { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   works
   ========================================================= */
.works { padding-block: clamp(56px, 8vw, 110px); background: var(--ground); }
.works__grid { display: grid; gap: clamp(18px, 2.4vw, 28px) clamp(14px, 2vw, 28px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .works__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.works__card a { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.works__card img, .works__noimg {
	width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
	border: 2px solid var(--ink); background: #CFCCC2; display: block;
	transition: transform .18s, box-shadow .18s;
}
.works__card a:hover img { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--yellow); }
.works__card h3 { font-size: 17px; }
.works__cat { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.works__more { margin-top: clamp(28px, 4vw, 44px); }

/* トップの施工事例はポップアップで開く */
.works__open {
	display: flex; flex-direction: column; gap: 8px; width: 100%;
	padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: zoom-in;
}
.works__thumb { position: relative; display: block; margin-bottom: 4px; }
.works__open:hover img { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--yellow); }
.works__count {
	position: absolute; right: 8px; bottom: 8px; padding: 3px 8px;
	background: var(--ink); color: var(--paper);
	font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
}
/* 設置場所はピン付きの小さなラベル */
.works__place {
	display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
	padding: 2px 8px 2px 6px; background: var(--ink); color: var(--paper);
	font-size: 11.5px; font-weight: 700; letter-spacing: .04em; line-height: 1.6;
}
.works__place::before {
	content: ""; width: 10px; height: 12px; flex: 0 0 auto; background-color: var(--yellow);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M10 0a8 8 0 0 0-8 8c0 6 8 16 8 16s8-10 8-16a8 8 0 0 0-8-8zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M10 0a8 8 0 0 0-8 8c0 6 8 16 8 16s8-10 8-16a8 8 0 0 0-8-8zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.page-head .works__place { margin-bottom: 6px; }
.lightbox__place { font-size: 12.5px; font-weight: 700; color: var(--yellow); }
.works__title { font-size: 17px; font-weight: 900; line-height: 1.5; font-feature-settings: "palt"; }
@media (max-width: 599px) { .works__title, .works__card h3 { font-size: 14.5px; } }

/* 写真ポップアップ */
.lightbox {
	width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
	background: rgba(20, 20, 22, .94); color: var(--paper);
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lightbox::backdrop { background: rgba(20, 20, 22, .6); }
.is-lightbox body { overflow: hidden; }
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; max-width: min(1100px, 100vw - 32px); }
.lightbox__img {
	display: block; width: auto; height: auto;
	max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain;
	border: 2px solid var(--paper); background: #2A2A2C;
}
.lightbox__nav {
	position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; padding: 0; cursor: pointer;
	background: var(--ink); border: 2px solid var(--paper);
}
.lightbox__nav::before {
	content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px;
	border-top: 2px solid var(--yellow); border-right: 2px solid var(--yellow);
}
.lightbox__nav--prev { left: -24px; }
.lightbox__nav--prev::before { transform: translateX(2px) rotate(-135deg); }
.lightbox__nav--next { right: -24px; }
.lightbox__nav--next::before { transform: translateX(-2px) rotate(45deg); }
.lightbox__nav:hover { background: var(--yellow); }
.lightbox__nav:hover::before { border-color: var(--ink); }
.lightbox__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 16px; padding-inline: 16px; text-align: center; }
.lightbox__title { font-weight: 900; font-size: 15px; }
.lightbox__cat, .lightbox__count { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: rgba(250, 250, 247, .7); }
.lightbox__count { color: var(--yellow); }
.lightbox__close {
	position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; padding: 0; cursor: pointer;
	background: var(--yellow); border: 2px solid var(--ink);
}
.lightbox__close::before, .lightbox__close::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; margin: -1px 0 0 -11px; background: var(--ink);
}
.lightbox__close::before { transform: rotate(45deg); }
.lightbox__close::after { transform: rotate(-45deg); }
.lightbox :focus-visible { outline-color: var(--yellow); }
@media (max-width: 599px) {
	.lightbox__nav { top: auto; bottom: -62px; margin: 0; }
	.lightbox__nav--prev { left: 0; }
	.lightbox__nav--next { right: 0; }
	.lightbox__meta { margin-top: 56px; }
}

/* =========================================================
   area
   ========================================================= */
.area { padding-block: clamp(56px, 8vw, 110px); background: var(--paper); border-top: 2px solid var(--ink); }
.area__grid { display: grid; gap: 40px; }
.area__lead { font-size: clamp(16px, 1.3vw, 17px); font-weight: 700; line-height: 1.9; max-width: 44em; color: var(--ink); }
.area__addr { margin-top: 18px; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
.area__names {
	display: flex; flex-direction: column; border-top: 2px solid var(--ink); align-self: end;
	list-style: none; padding: 0; margin: 0;
}
.area__names > li {
	display: flex; align-items: baseline; gap: 20px;
	padding: 20px 0; border-bottom: 1px solid var(--line);
}
.area__idx { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.area__names b { font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.2; letter-spacing: .04em; }
.area__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.area__cities { display: flex; flex-wrap: wrap; gap: 8px; }
.area__cities li {
	padding: 6px 12px; font-size: 13.5px; font-weight: 700; line-height: 1.4;
	background: var(--paper); border: 1px solid var(--ink);
}
.area__cities li { background: #FFF; }
.area__cities li.is-hq { background: var(--yellow); }
.area__cities small { margin-left: .4em; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; }
.area__note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.area__names { margin-top: 32px; }

/* 地図風イラスト */
.area__map { margin: 0; }
.area__map svg {
	display: block; width: 100%; height: auto;
	background: #FFF; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--yellow);
	font-family: inherit;
}
.area__map figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-top: 14px; font-size: 13px; font-weight: 700; }
.area__map figcaption span { display: inline-flex; align-items: center; gap: 8px; }
.area__map figcaption small { font-size: 10.5px; font-weight: 400; color: var(--muted); }
.area__map-key { display: inline-block; width: 14px; height: 14px; background: var(--yellow); border: 1px solid var(--ink); }
.area__map-sea { fill: #EEF1F2; }
.area__map-muni path { fill: #E2DFD7; stroke: #FFF; stroke-width: 1.4; stroke-linejoin: round; }
.area__map-muni path.is-active { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.4; }
.area__map-labels text {
	font-size: 15px; font-weight: 900; letter-spacing: .06em; fill: var(--ink);
	paint-order: stroke; stroke: #FFF; stroke-width: 4px; stroke-linejoin: round;
}
.area__map-labels text.is-muted { font-size: 12px; font-weight: 700; fill: #9A978F; stroke: none; }
.area__map-hq circle { fill: var(--red); stroke: #FFF; stroke-width: 2.5; }
.area__map-hq text { font-size: 12px; font-weight: 900; fill: var(--red); paint-order: stroke; stroke: #FFF; stroke-width: 4px; }
@media (max-width: 599px) {
	.area__map-labels text { font-size: 20px; }
	.area__map-labels text.is-muted { font-size: 15px; }
	.area__map-hq text { font-size: 16px; }
}
@media (min-width: 900px) {
	.area__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: start; }
	.area__map { position: sticky; top: 100px; }
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-band { background: var(--yellow); padding-block: clamp(48px, 7vw, 88px); }
.cta-band__inner {
	max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter);
	display: flex; flex-direction: column; gap: 32px; align-items: center; text-align: center;
}
.cta-band__catch { width: clamp(220px, 40vw, 330px); }
.cta-band__body { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.cta-band__lead { font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; line-height: 1.8; max-width: 30em; color: var(--ink); word-break: auto-phrase; text-wrap: pretty; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-band .btn--outline { border-color: var(--ink); }
.cta-band .btn--outline small { color: var(--ink-2); }

/* 電話は急ぎの人向けに一番目立たせる */
.cta-tel {
	display: inline-flex; flex-direction: column; align-items: stretch;
	min-width: min(100%, 420px);
	background: #FFF; color: var(--ink); text-decoration: none;
	border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
	transition: transform .18s, box-shadow .18s;
}
.cta-tel:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
/* 箱の上部の見出し帯 */
.cta-tel__tag {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 9px 20px; background: #FDF3D0; color: var(--ink); border-bottom: 1px solid rgba(24, 24, 26, .15);
	font-size: clamp(14px, 1.4vw, 16px); font-weight: 900; letter-spacing: .06em; white-space: nowrap;
}
.cta-tel__tag::before {
	content: "!"; display: inline-grid; place-items: center; flex: 0 0 auto;
	width: 1.35em; height: 1.35em; border-radius: 50%;
	background: var(--red); color: #FFF; font-size: .85em; line-height: 1;
}
.cta-tel__num {
	display: flex; align-items: center; justify-content: center; gap: .25em;
	padding: 14px clamp(20px, 3vw, 32px) 16px;
	font-family: var(--disp); font-weight: 900; font-size: clamp(36px, 5.4vw, 56px);
	line-height: 1.1; letter-spacing: .02em; color: var(--red); white-space: nowrap;
}
.cta-tel__icon {
	width: .72em; height: .72em; flex: 0 0 auto; background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cta-tel:hover .cta-tel__icon { animation: cta-tel-ring .5s ease-in-out 2; }
@keyframes cta-tel-ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .cta-tel:hover .cta-tel__icon { animation: none; } }
.cta-tel-wrap { display: flex; flex-direction: column; gap: 12px; }
.cta-tel-wrap .cta-tel { width: 100%; }
.cta-tel__hours { margin: 0; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--ink); }
.cta-band .cta-tel-wrap { align-self: stretch; max-width: 500px; }
@media (min-width: 900px) { .cta-band .cta-tel-wrap { align-self: flex-start; } }
@media (min-width: 900px) {
	.cta-band__inner { flex-direction: row; text-align: left; gap: 56px; }
	.cta-band__body { align-items: flex-start; }
	.cta-band__actions { justify-content: flex-start; }
}

/* =========================================================
   footer
   ========================================================= */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(48px, 6vw, 80px) 28px; }
.site-footer__inner {
	max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter);
	display: flex; flex-direction: column; gap: 40px;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 28px; }
.site-footer__brand img { width: clamp(200px, 30vw, 260px); }
.site-footer__info { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.site-footer__info > div { display: flex; gap: 16px; }
.site-footer__info dt { flex: 0 0 5.5em; color: #A3A19A; font-size: 12px; letter-spacing: .06em; }
.site-footer__info dd { margin: 0; }
.site-footer__list { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13.5px; }
.site-footer__list a { text-decoration: none; }
.site-footer__list a:hover { color: var(--yellow); }
.site-footer__copy {
	max-width: 1240px; margin: 36px auto 0; padding-inline: var(--gutter);
	font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: #A3A19A;
}
/* 黒地だとペン画の線が沈むので、紙色の台紙に載せてステッカー風に */
.site-footer__side { display: flex; flex-direction: column; gap: 32px; }
.site-footer__illust {
	display: block; align-self: flex-end; width: clamp(170px, 45vw, 230px);
	padding: 12px 14px 6px; background: var(--paper);
	border: 2px solid var(--paper); box-shadow: 6px 6px 0 var(--yellow);
	transform: rotate(-3deg);
}
.site-footer__illust img { display: block; width: 100%; height: auto; }
@media (min-width: 900px) {
	.site-footer__inner { flex-direction: row; justify-content: space-between; }
	.site-footer__side { align-items: flex-end; justify-content: space-between; }
}

/* =========================================================
   下層ページ（今後の増築用のベース）
   ========================================================= */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.page-head__en { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--muted); display: block; margin-bottom: 10px; }
.page-head h1 { font-size: clamp(26px, 4vw, 40px); }

/* ---------- contact ---------- */
.page-head--contact { position: relative; overflow: hidden; border-bottom: 0; padding-bottom: 0; }
.page-head__giant {
	position: absolute; right: -.04em; top: 0; margin: 0;
	font-family: var(--disp); font-weight: 900; font-size: clamp(96px, 14vw, 200px);
	line-height: .8; white-space: nowrap;
	color: transparent; -webkit-text-stroke: 2px rgba(24, 24, 26, .16);
	pointer-events: none; user-select: none;
}
.page-head--contact > *:not(.page-head__giant) { position: relative; }
.page-head__lead { margin-top: 14px; font-size: 15px; line-height: 2; max-width: 40em; color: var(--ink-2); }

.contact-layout { display: grid; gap: 40px; padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.entry--contact { padding-block: 0; }

.contact-aside { display: flex; flex-direction: column; gap: 24px; }
.contact-aside .cta-tel { width: 100%; }
.contact-aside .cta-tel__tag { font-size: 14px; }
.contact-aside .cta-tel.cta-tel--fv .cta-tel__num { font-size: clamp(30px, 8vw, 36px); padding-inline: 10px; }
@media (min-width: 1024px) { .contact-aside .cta-tel.cta-tel--fv .cta-tel__num { font-size: 32px; } }
/* SPでは電話をフォームより先に出す（サイドバーをほどいて並べ替え） */
@media (max-width: 1023px) {
	.contact-aside { display: contents; }
	.contact-aside .cta-tel { order: -1; }
}

.contact-steps { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.contact-steps li {
	display: grid; grid-template-columns: 44px 1fr; gap: 2px 12px;
	padding: 16px 0; border-bottom: 1px solid var(--line);
}
.contact-steps b {
	grid-row: span 2; font-family: var(--disp); font-weight: 900; font-size: 36px; line-height: 1;
	color: var(--yellow); -webkit-text-stroke: 1px var(--ink);
}
.contact-steps span { font-weight: 700; font-size: 15px; }
.contact-steps small { font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }

@media (min-width: 1024px) {
	.contact-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: start; }
	.contact-aside { position: sticky; top: 100px; }
}

.entry { padding-block: clamp(36px, 5vw, 64px) clamp(56px, 8vw, 96px); }
.entry__body { max-width: 46em; }
.entry__body > * + * { margin-top: 1.4em; }
.entry__body h2 { font-size: clamp(21px, 2.6vw, 28px); margin-top: 2.2em; padding-bottom: .4em; border-bottom: 2px solid var(--ink); }
.entry__body h3 { font-size: 18px; margin-top: 1.8em; }
.entry__body p { font-size: 15px; line-height: 2.05; }
.entry__body ul { list-style: disc; padding-left: 1.4em; }
.entry__body ol { padding-left: 1.4em; }
.entry__body li + li { margin-top: .5em; }
.entry__body a { color: var(--ink); }
.entry__body img { border: 2px solid var(--ink); }
/* 施工事例のギャラリー（ブロック用CSSは読み込んでいないので自前で組む） */
.entry__body .wp-block-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 16px); margin-inline: 0; }
@media (min-width: 900px) { .entry__body .wp-block-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.entry__body .wp-block-gallery figure { margin: 0; }
.entry__body .wp-block-gallery img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.entry__body > .wp-post-image { width: 100%; height: auto; display: block; }
.entry__body blockquote { border-left: 4px solid var(--yellow); padding-left: 1.2em; color: var(--ink-2); }

.archive-grid { display: grid; gap: clamp(18px, 2.4vw, 28px) clamp(14px, 2vw, 28px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.archive-grid .works__card h2 { font-size: clamp(14.5px, 1.4vw, 17px); }

.pagination { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	min-width: 44px; min-height: 44px; padding: 0 12px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 2px solid var(--ink); font-family: var(--mono); font-size: 13px; text-decoration: none;
}
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); }

.notfound { padding-block: clamp(64px, 10vw, 140px); text-align: center; }
.notfound__code { font-family: var(--disp); font-weight: 900; font-size: clamp(90px, 20vw, 220px); line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(24, 24, 26, .3); }
.notfound__illust { width: clamp(160px, 28vw, 260px); margin: 24px auto 0; }

/* =========================================================
   Contact Form 7
   ========================================================= */
.wpcf7 { max-width: 44em; }
.wpcf7 p { display: block; margin-bottom: 26px; font-size: 14px; font-weight: 700; }
.wpcf7 label { display: block; }
.wpcf7 label br { display: none; }
.wpcf7 .req {
	display: inline-block; margin-left: .6em; padding: 2px 8px;
	background: var(--yellow); color: var(--ink);
	font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em;
	vertical-align: 1px;
}
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 10px; font-weight: 400; }
.wpcf7 .wpcf7-form-control-wrap + .wpcf7-form-control-wrap { margin-top: 8px; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%; padding: 14px 16px; font: inherit; font-weight: 400;
	background: #FFF; color: var(--ink);
	border: 2px solid var(--ink); border-radius: 0;
}
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder { color: #8F8E88; }
.wpcf7 textarea { min-height: 200px; resize: vertical; }

.wpcf7 select {
	appearance: none; -webkit-appearance: none; padding-right: 44px;
	background: #FFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181A' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}

.wpcf7 input[type="file"] {
	width: 100%; padding: 12px 14px; font: inherit; font-size: 13px; font-weight: 400;
	background: #FFF; border: 2px dashed var(--line);
}
.wpcf7 input[type="file"]::file-selector-button {
	margin-right: 12px; padding: 8px 14px; border: 0; cursor: pointer;
	background: var(--ink); color: var(--paper);
	font: inherit; font-weight: 700; font-size: 12.5px;
}

.wpcf7 input:focus-visible, .wpcf7 select:focus-visible, .wpcf7 textarea:focus-visible {
	outline: 3px solid var(--yellow); outline-offset: 0;
}
.wpcf7 .wpcf7-not-valid { border-color: #C0392B; }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; color: #C0392B; font-size: 12.5px; font-weight: 500; }

.wpcf7 input[type="submit"] {
	width: 100%; min-height: 58px; padding: 0 32px; font: inherit; font-weight: 700; font-size: 15px;
	background: var(--ink); color: var(--paper); border: 2px solid var(--ink); cursor: pointer;
	transition: background-color .18s;
}
.wpcf7 input[type="submit"]:hover { background: var(--ink-2); }
@media (min-width: 720px) { .wpcf7 input[type="submit"] { width: auto; min-width: 320px; } }

.wpcf7-response-output { border: 2px solid var(--ink) !important; padding: 14px 18px !important; margin: 24px 0 0 !important; font-size: 14px; }
.wpcf7-form.sent .wpcf7-response-output { background: var(--yellow); }
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output { border-color: #C0392B !important; }

/* 各カード上部の施工写真（カードの余白を打ち消して全幅に敷く） */
.sec-photo {
	display: block; width: calc(100% + var(--card-pad) * 2); max-width: none; height: auto;
	margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) 6px;
	aspect-ratio: 16 / 9; object-fit: cover;
	border-bottom: 2px solid var(--ink);
}
.services__list .sec-photo { aspect-ratio: 16 / 8; }
