@charset "UTF-8";
/*
 * Battiri theme — front-end styles.
 * デザインの方向性は preview/static-demo（制作側の画面見本）を踏襲。先方の最終承認前。
 * 動きは控えめ：スクロール連動のアニメーションは使わず、ホバー時のわずかな変化と、トップのメイン画像（2枚以上のとき）のフェードのみ。
 * 2026-10-01：写真を大きく見せる・余白を広く取る方向に調整（先方が好意的だった参考サイトの雰囲気は参考にするが、
 *   レイアウトの組み方は独自に作る。参考サイトのコード・素材・特徴的な見せ方は使わない）。
 */

/* 英字は Outfit（可変フォント・Latinのみ約32KB・テーマ同梱、SIL OFL 1.1: assets/fonts/OFL-Outfit.txt）。
   和文は游ゴシック（Windows・Mac の標準フォント。ない端末ではヒラギノ・Noto Sans JP など）。
   日本語のWebフォントは読み込まない（約1MBあり、スマートフォンの表示が重くなるため）。2026-10-03 変更（以前は DM Sans・ヒラギノ優先）。 */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   1. Tokens & base
   ========================================================================== */
:root {
	--ink: #172d2b;
	--muted: #5f6a66;
	--paper: #fff;
	--soft: #f3f4ef;
	--line: #dbe0d8;
	--accent: #c6db54;
	--accent-ink: #5d6d12;
	--dark: #183c35;
	--danger: #b3261e;
	/* Windows の「Yu Gothic」は標準の太さだと細くかすれるため、Medium を先に指定する */
	--font: "Outfit", "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
	--font-ja: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
	--wide: min(1280px, calc(100% - 112px));
	--header-h: 90px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	color: var(--ink);
	background: var(--paper);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.9;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: anywhere;
}
body.modal-open, body.menu-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid #7f9626; outline-offset: 4px; }
[hidden] { display: none !important; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: fixed; top: 8px; left: 8px; z-index: 200; padding: 10px 20px;
	background: #fff; border: 2px solid var(--ink); transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.env-banner {
	background: #fff4c2; color: #4b3b00; font-size: 12px; line-height: 1.6;
	padding: 8px 20px; text-align: center; border-bottom: 1px solid #e8d67a;
}

/* ==========================================================================
   2. Shared components
   ========================================================================== */
.shell { width: var(--wide); margin-inline: auto; }
/* 本文だけのページ（会社案内・よくある質問・お問い合わせなど）は、見出しと本文を同じ幅の欄にして画面の中央に置く */
.shell--narrow { width: min(880px, var(--wide)); }
.shell--medium { width: min(1244px, var(--wide)); }
.shell--narrow .entry-content, .shell--medium .entry-content { max-width: none; }
.section { padding-block: 120px; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--dark); color: #fff; }

.eyebrow {
	display: flex; align-items: center; gap: 12px;
	font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.eyebrow--light { color: #d4dfd7; }

.section-heading {
	display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 22px; row-gap: 4px;
	font-size: clamp(36px, 4.4vw, 58px); font-weight: 400; line-height: 1.15; letter-spacing: -.02em;
}
.section-heading small {
	font-family: var(--font-ja); font-size: 14px; font-weight: 600; letter-spacing: .1em; line-height: 1.8;
}
.section--dark .section-heading { display: block; }
.section--dark .section-heading small { display: block; margin-top: 16px; font-size: 15px; font-weight: 500; }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 52px; }
.section-top > div > .section-desc { max-width: none; margin-top: 20px; }
.section-desc { max-width: 420px; color: var(--muted); font-size: 15px; line-height: 2.1; text-wrap: pretty; }
.section-top__side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right; }
.section-more { display: flex; justify-content: flex-end; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }

.arrow {
	display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%;
	font-size: 18px; line-height: 1; transition: background .2s, color .2s, transform .2s;
}
.text-link { display: inline-flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; }
.text-link:hover .arrow { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateX(3px); }
.text-link .arrow--back { order: -1; }
.text-link:hover .arrow--back { transform: translateX(-3px); }
.text-link--small { gap: 14px; font-size: 13px; margin-top: 14px; }
.text-link--small .arrow { width: 34px; height: 34px; font-size: 15px; }
.text-link--light:hover .arrow { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 52px; padding: 12px 28px; border: 1px solid transparent; border-radius: 0;
	font-size: 14px; font-weight: 500; letter-spacing: .04em; line-height: 1.4;
	transition: background .2s, color .2s, border-color .2s;
}
.button--primary { background: var(--ink); color: #fff; }
.button--primary:hover { background: #0e1f1d; }
.button--light { background: rgba(255, 255, 255, .94); color: var(--ink); }
.button--light:hover { background: #fff; }
.button--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.button--ghost:hover { border-color: var(--ink); }

.tag {
	display: inline-block; padding: 2px 10px; border: 1px solid var(--line);
	font-size: 11px; line-height: 1.8; letter-spacing: .04em; color: var(--ink); background: #fff;
}
.tag--large { padding: 6px 16px; font-size: 13px; }
a.tag:hover { border-color: var(--ink); }

.placeholder {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 160px;
	background: repeating-linear-gradient(135deg, #e7eae2 0 12px, #eef0ea 12px 24px);
	color: #5f6a66; font-size: 12px; letter-spacing: .1em;
}
.empty { padding: 48px 0; color: var(--muted); text-align: center; }

/* ==========================================================================
   3. Header & navigation
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	display: flex; align-items: center; gap: 36px;
	height: var(--header-h); padding: 0 44px;
	background: rgba(255, 255, 255, .97); border-bottom: 1px solid rgba(219, 224, 216, .7);
}
.admin-bar .site-header { top: 32px; }
.brand { display: flex; flex-direction: column; flex-shrink: 0; line-height: 1; }
.brand-name { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.brand-sub { margin-top: 7px; font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.brand-logo { align-self: flex-start; width: auto; max-height: 56px; } /* 縦並びの .brand の中で横に引き伸ばされないように */
.global-nav { margin-left: auto; }
.global-nav__list { display: flex; align-items: center; gap: 30px; }
.global-nav__list a { position: relative; font-size: 13px; white-space: nowrap; }
.global-nav__list a::after {
	content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
	background: var(--ink); transition: width .2s;
}
.global-nav__list a:hover::after, .global-nav__list .current-menu-item a::after, .global-nav__list .current-menu-ancestor a::after { width: 100%; }
.header-tel { display: flex; flex-direction: column; font-size: 18px; font-weight: 600; line-height: 1.2; letter-spacing: .02em; white-space: nowrap; }
.header-tel small { font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: .06em; }
.header-contact {
	display: inline-flex; align-items: center; gap: 16px; padding: 13px 22px;
	background: var(--ink); color: #fff; font-size: 13px; white-space: nowrap;
}
.header-contact:hover { background: #0e1f1d; }
.menu-toggle { display: none; margin-left: 4px; padding: 12px 4px; border: 0; background: none; }
.menu-lines { position: relative; display: block; width: 24px; height: 14px; border-top: 1.5px solid; border-bottom: 1.5px solid; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] .menu-lines { height: 0; border-bottom: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { content: ""; position: absolute; left: 0; top: -1.5px; width: 24px; border-top: 1.5px solid; transform: rotate(-90deg); }

.mobile-nav { display: none; }

/* ==========================================================================
   4. Front page
   ========================================================================== */
.hero {
	position: relative; overflow: hidden; color: #fff; background: #202820;
	height: min(860px, calc(100svh - var(--header-h))); min-height: 620px;
}
.hero-image, .hero .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 57%; }
.hero .placeholder { color: #9aa39e; background: repeating-linear-gradient(135deg, #2c3530 0 14px, #313b35 14px 28px); }
.hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(10, 29, 24, .66), rgba(10, 29, 24, .12) 72%), linear-gradient(0deg, rgba(5, 21, 17, .45), transparent 42%);
}
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 100%; padding-block: 56px; }
.hero--has-news .hero-content { padding-bottom: 104px; }
/* キャッチの上に短い黄緑の線 */
.hero-title { display: flex; flex-direction: column; font-size: clamp(34px, 4.4vw, 60px); font-weight: 500; line-height: 1.55; letter-spacing: .12em; text-shadow: 0 2px 24px rgba(10, 34, 23, .35); }
.hero-title::before { content: ""; width: 56px; height: 4px; margin-bottom: 30px; background: var(--accent); }
.hero-title__line { display: block; }
.hero-lead { margin-top: 26px; max-width: 34em; font-size: clamp(17px, 1.35vw, 20px); line-height: 2; word-break: auto-phrase; text-wrap: pretty; letter-spacing: .04em; text-shadow: 0 1px 12px rgba(5, 21, 17, .6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
/* 最新の施工実績：メイン画像の下端の細い帯 */
.hero-news { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: rgba(12, 28, 24, .8); border-top: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.hero-news__inner { display: flex; align-items: center; gap: 22px; min-height: 64px; font-size: 13px; }
.hero-news__label { flex-shrink: 0; padding: 1px 10px; border: 1px solid var(--accent); color: var(--accent); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.hero-news__date { flex-shrink: 0; font-size: 12px; color: rgba(255, 255, 255, .72); }
.hero-news__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-news__place { color: rgba(255, 255, 255, .72); }
.hero-news .arrow { margin-left: auto; width: 36px; height: 36px; font-size: 15px; border-color: rgba(255, 255, 255, .5); }
.hero-news:hover .hero-news__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hero-news:hover .arrow { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.hero-news:focus-visible { outline-offset: -4px; }
/* メイン画像の切り替え（2〜3枚。assets/js/main.js）：フェードだけの控えめな動き。
   JavaScript なしでは1枚目だけ（2枚目以降は表示しないので読み込まれない）。動きを減らす設定では自動で切り替えない。 */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slides .hero-image + .hero-image { display: none; }
.hero-slides.is-ready .hero-image { display: block; opacity: 0; transition: opacity 1.2s ease; }
.hero-slides.is-ready .hero-image.is-prev { opacity: 1; transition: none; }
.hero-slides.is-ready .hero-image.is-active { z-index: 1; opacity: 1; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2; display: flex; justify-content: center; pointer-events: none; } /* 横は中央（2026-10-08 ユーザー指示） */
.hero--has-news .hero-controls { bottom: 84px; }
/* 操作は小さな四角（写真の番号）だけ（一時停止ボタンは 2026-10-08 にやめた）。帯は付けず、明るい写真の上でも見えるよう薄い影を付ける。
   見た目は 8px の四角でも、押せる範囲は 24px 四方（指・マウスで押しやすい大きさ）にする */
.hero-controls__bar { display: flex; align-items: center; pointer-events: auto; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .5)); }
.hero-controls button { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; color: #fff; line-height: 1; }
.hero-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.hero-dot::before { content: ""; width: 8px; height: 8px; background: rgba(255, 255, 255, .6); transition: background .2s; }
.hero-dot:hover::before { background: #fff; }
.hero-dot[aria-current="true"]::before { background: var(--accent); }
/* スマホは文章が下に寄るので右上に */
@media (max-width: 700px) {
	.hero .hero-controls { top: 14px; bottom: auto; }
}
@media print {
	.hero-controls { display: none; }
}

/* 会社紹介：大きな写真に小さな写真を重ね、黄緑の四角と縦書きの英字を添える */
.about { overflow-x: clip; }
.about-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8%; align-items: center; }
.about-main--text { grid-template-columns: 1fr; }
.about-title { margin-top: 28px; font-size: clamp(26px, 2.9vw, 38px); font-weight: 500; line-height: 1.8; letter-spacing: .08em; }
.about-copy { margin-top: 30px; max-width: 34em; }
.about-copy p { margin-bottom: 18px; font-size: 15px; line-height: 2.3; }
.about-copy .text-link { margin-top: 18px; }
.about-photos { position: relative; padding: 0 0 15% 12%; }
.about-photos--single { padding-bottom: 0; }
.about-photos::before { content: ""; position: absolute; top: -28px; right: -28px; width: 36%; aspect-ratio: 1; background: var(--accent); }
.about-photos__main { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; background: #dfe3da; }
.about-photos__sub { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 3; overflow: hidden; border: 10px solid var(--soft); background: #dfe3da; }
.about-photos__main img, .about-photos__main .placeholder, .about-photos__sub img, .about-photos__sub .placeholder { width: 100%; height: 100%; object-fit: cover; }
.about-photos__label { position: absolute; top: 4px; left: 2%; writing-mode: vertical-rl; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }

/* 事業内容：写真（左）と白抜き数字・見出し・説明（右）の行を縦に並べる。写真は横長にして高さを抑える */
.service-list { display: grid; gap: 40px; }
.service-row {
	display: grid; grid-template-columns: minmax(0, .9fr) 76px minmax(0, 1fr); grid-template-areas: "img num body";
	column-gap: 20px; align-items: start;
}
.service-row__num { grid-area: num; font-size: 56px; font-weight: 400; line-height: .9; letter-spacing: -.03em; color: #c4ccc0; }
@supports (-webkit-text-stroke: 1px black) {
	.service-row__num { color: transparent; -webkit-text-stroke: 1px var(--ink); }
}
.service-row__body { grid-area: body; }
.service-row__en { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.service-row__title { margin-top: 2px; font-size: clamp(20px, 1.8vw, 24px); font-weight: 500; line-height: 1.5; letter-spacing: .1em; }
.service-row__text { margin-top: 12px; max-width: 44em; font-size: 15px; line-height: 2; color: var(--muted); }
.service-row .text-link { margin-top: 16px; }
.service-row__img { grid-area: img; aspect-ratio: 2 / 1; margin-right: 28px; overflow: hidden; background: #dfe3da; }
.service-row__img img, .service-row__img .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-row:hover .service-row__img img { transform: scale(1.03); }
.other-services { display: flex; align-items: flex-start; gap: 44px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.other-services h3 { font-size: 14px; font-weight: 500; white-space: nowrap; }
.other-services ul { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 14px; color: var(--muted); }
.other-services li::before { content: "＋"; margin-right: 8px; font-size: 11px; }

.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 28px; }
.work-card__link { display: block; }
.work-card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.work-card__img img, .work-card__img .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work-card__link:hover .work-card__img img { transform: scale(1.03); }
.work-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 18px 0 8px; font-size: 12px; color: var(--muted); }
.work-card__title { font-size: 17px; font-weight: 500; line-height: 1.8; }
.work-card__link:hover .work-card__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.equipment-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 9%; align-items: center; }
.section--dark .section-heading { margin-top: 22px; }
.equipment-intro { margin-top: 30px; font-size: 15px; line-height: 2.1; color: #d7e0d8; }
.equipment-list { margin: 34px 0 36px; }
.equipment-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .19); font-size: 15px; }
.equipment-list dt { color: #dbe6c9; word-break: keep-all; }
.equipment-list dd { color: #e3e8e3; line-height: 2; }
.equipment-image { aspect-ratio: 1.13; overflow: hidden; }
.equipment-image img, .equipment-image .placeholder { width: 100%; height: 100%; object-fit: cover; }
.equipment-image .placeholder { color: #9fb3a6; background: repeating-linear-gradient(135deg, #20463e 0 14px, #244c43 14px 28px); }

.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 10%; }
.faq-grid .text-link { margin-top: 30px; }

.recruit-banner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; background: var(--soft); }
.recruit-banner__img { min-height: 320px; overflow: hidden; }
.recruit-banner__img img, .recruit-banner__img .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.recruit-banner:hover .recruit-banner__img img { transform: scale(1.02); }
.recruit-banner__body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 48px 56px; }
.recruit-banner__body h2 { font-size: 30px; font-weight: 500; }
.recruit-banner__body p { color: var(--muted); font-size: 15px; }
.recruit-banner:hover .arrow { background: var(--ink); color: #fff; }

/* ==========================================================================
   5. CTA & footer
   ========================================================================== */
.cta { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); background: var(--dark); color: #fff; }
.cta--no-photo { grid-template-columns: 1fr; }
/* 上端の縞：工事現場の仮囲いのイメージ */
.cta::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; z-index: 1; height: 8px;
	background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, var(--dark) 12px 24px);
}
.cta-photo { position: relative; min-height: 480px; overflow: hidden; background: #26302c; }
.cta-photo img, .cta-photo .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-panel { display: flex; align-items: center; justify-content: center; padding: 96px 72px 92px; } /* 中身を濃い緑の欄の中央に */
.cta-panel__inner { width: 100%; max-width: 620px; }
.cta--no-photo .cta-panel { padding-inline: 0; }
.cta--no-photo .cta-panel__inner { max-width: none; width: var(--wide); margin-inline: auto; }
.cta-en { margin-bottom: 18px; font-size: clamp(46px, 5.2vw, 76px); font-weight: 400; line-height: 1.05; letter-spacing: -.03em; }
.cta-en::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 10px; background: var(--accent); }
.cta-title { font-size: 20px; font-weight: 500; letter-spacing: .06em; text-wrap: balance; }
.cta-text { margin-top: 14px; font-size: 15px; line-height: 2.1; color: rgba(255, 255, 255, .76); }
.cta-actions { display: grid; gap: 12px; max-width: 480px; margin-top: 36px; }
.cta-button {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	padding: 22px 26px; background: #fff; color: var(--ink); font-size: 15px;
}
.cta-button .arrow { border-color: var(--ink); }
.cta-button:hover .arrow { background: var(--ink); color: #fff; }
.cta-tel { display: grid; gap: 2px; padding: 14px 26px; border: 1px solid rgba(255, 255, 255, .3); }
.cta-tel small { font-size: 11px; color: rgba(255, 255, 255, .74); }
.cta-tel strong { font-size: 24px; font-weight: 600; letter-spacing: .03em; }

.site-footer { padding: 72px 0 40px; background: var(--ink); color: #fff; border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer .brand-sub { color: rgba(255, 255, 255, .66); }
.site-footer .brand-logo { filter: brightness(0) invert(1); } /* 単色ロゴを白抜きで表示 */
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer-area { margin-top: 14px; font-size: 12px; color: rgba(255, 255, 255, .66); }
.footer-info { display: grid; gap: 6px; font-size: 13px; }
.footer-info > div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.footer-info dt { color: rgba(255, 255, 255, .66); font-size: 12px; }
.footer-info small { display: block; font-size: 11px; color: rgba(255, 255, 255, .66); }
.footer-nav { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .16); }
.footer-nav__list { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 13px; }
.footer-nav__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 36px; font-size: 11px; color: rgba(255, 255, 255, .66); }
.back-top { display: inline-flex; align-items: center; gap: 10px; }

/* ==========================================================================
   6. Lower pages & block content
   ========================================================================== */
.page-header { padding: 0 0 56px; border-bottom: 1px solid var(--line); }
.breadcrumbs { padding-block: 26px 44px; font-size: 11px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 12px; color: #a8b1aa; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-title { margin-top: 20px; font-size: clamp(28px, 3.4vw, 46px); font-weight: 500; line-height: 1.6; letter-spacing: .03em; }
.page-lead { margin-top: 16px; max-width: 46em; font-size: 15px; line-height: 2.1; color: var(--muted); }
.page-body { padding-block: 64px 110px; }

.entry-content { max-width: 880px; font-size: 15px; line-height: 2.1; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 {
	margin-top: 2.8em; padding-bottom: 14px; border-bottom: 1px solid var(--line);
	font-size: clamp(22px, 2.3vw, 28px); font-weight: 500; line-height: 1.6; letter-spacing: .03em;
}
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { margin-top: 2.2em; font-size: 19px; font-weight: 500; line-height: 1.7; }
.entry-content h4 { margin-top: 1.8em; font-size: 16px; font-weight: 600; }
.entry-content a:not(.wp-block-button__link) { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: .3em; }
.entry-content strong { font-weight: 600; }
.entry-content .has-small-font-size { font-size: 14px; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.9; }
.entry-content th, .entry-content td { padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content tr:first-child th, .entry-content tr:first-child td { border-top: 1px solid var(--line); }
.entry-content th, .entry-content td:first-child:not(:only-child) { width: 28%; color: var(--muted); font-weight: 500; font-size: 14px; }
.entry-content .wp-block-table figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); }
.entry-content .wp-block-details, .faq-list .wp-block-details { border-bottom: 1px solid var(--line); padding-block: 18px; margin-top: 0; }
.entry-content .wp-block-details:first-of-type, .faq-list .wp-block-details:first-child { border-top: 1px solid var(--line); }
.wp-block-details summary { display: flex; align-items: center; gap: 16px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 500; line-height: 1.8; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::before { content: "Q"; flex-shrink: 0; color: var(--muted); font-size: 14px; }
.wp-block-details summary::after { content: "＋"; flex-shrink: 0; margin-left: auto; font-size: 17px; font-weight: 400; }
.wp-block-details[open] summary::after { content: "−"; }
.wp-block-details > :not(summary) { margin: 14px 0 4px 30px; color: var(--muted); font-size: 15px; }
.entry-content .wp-block-image img { max-width: 100%; height: auto; }
.entry-content .wp-block-image.size-full img, .entry-content .wp-block-image.size-large img, .entry-content .wp-block-image.size-battiri-large img { width: 100%; }
.entry-content figcaption, .entry-content .wp-element-caption { margin-top: 10px; font-size: 12px; color: var(--muted); }
.entry-content .wp-block-separator { margin-block: 3em; border: 0; border-top: 1px solid var(--line); }
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.entry-content .wp-block-button__link { display: inline-block; padding: 14px 28px; background: var(--ink); color: #fff; border-radius: 0; font-size: 14px; text-decoration: none; }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.entry-content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 32px; }
.entry-content .wp-block-column { flex: 1 1 0; min-width: 240px; }
.entry-content .wp-block-group.has-background { padding: 28px 32px; }
.entry-content .is-style-note { padding: 16px 20px; background: #fff8dc; border-left: 4px solid #e2c044; font-size: 13px; }
.entry-content .alignwide { max-width: none; }

/* 会社案内：ページ内の目次 */
.entry-content .page-toc { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 0; list-style: none; }
.entry-content .page-toc li { margin: 0; }
.entry-content .page-toc a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); font-size: 13px; text-decoration: none; }
.entry-content .page-toc a:hover { border-color: var(--ink); }

/* 会社案内：資材置場・保有重機・車両・保有資格（page-company.php。値はカスタマイザー「会社案内ページ」）。写真は並べるだけで自動では動かさない */
.entry-content .yard-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; padding: 0; list-style: none; }
.entry-content .yard-list li { margin: 0; }
.yard { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.yard__photo { aspect-ratio: 3 / 2; margin-bottom: 14px; overflow: hidden; background: var(--soft); }
.yard__photo img, .yard__photo .placeholder { display: flex; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.yard__name { font-size: 15px; font-weight: 500; line-height: 1.8; }
.yard__address { font-size: 14px; line-height: 1.8; color: var(--muted); }
.entry-content .eq-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; padding: 0; list-style: none; }
.entry-content .eq-photos--1, .entry-content .eq-photos--2, .entry-content .eq-photos--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry-content .eq-photos li { margin: 0; }
.eq-photos__link { display: block; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.eq-photos__link img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s; }
.eq-photos__link:hover img { transform: scale(1.02); }
.entry-content .eq-photos figcaption { margin-top: 8px; font-size: 13px; line-height: 1.7; }
.entry-content .qual-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; padding: 0; list-style: none; }
.entry-content .qual-list li { display: flex; align-items: baseline; gap: 14px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.7; }
.entry-content .qual-list li:nth-child(-n+2) { border-top: 1px solid var(--line); }
.qual-list li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; background: var(--accent-ink); transform: translateY(-3px); }

/* 事業案内ページ（page-service.php）：今のサイトの要素（白抜きの番号・黄緑の四角を重ねた写真・濃い緑の帯）で組む */
.service-hero { padding-bottom: 96px; }
.service-hero .breadcrumbs { padding-bottom: 32px; }
.service-hero__inner {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 6%; align-items: center;
	margin-left: calc((100% - var(--wide)) / 2);
}
.service-hero .page-title { margin-top: 18px; }
.service-hero__catch { margin-top: 22px; font-size: clamp(19px, 1.75vw, 24px); font-weight: 500; line-height: 1.7; letter-spacing: .04em; }
.service-hero .page-lead { margin-top: 22px; max-width: 34em; }
.service-hero__photo { position: relative; margin-left: 40px; }
.service-hero__photo::before { content: ""; position: absolute; left: -40px; bottom: -40px; width: 32%; aspect-ratio: 1; background: var(--accent); }
.service-hero__photo img, .service-hero__photo .placeholder { position: relative; display: block; width: 100%; aspect-ratio: 66 / 46; object-fit: cover; }
.service-toc { border-bottom: 1px solid var(--line); }
.service-toc ul { display: flex; flex-wrap: wrap; gap: 8px 10px; padding-block: 32px; }
.service-toc a { display: inline-block; padding: 7px 16px; border: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.service-toc a:hover { border-color: var(--ink); }
.svc-list { display: grid; gap: 120px; }
.svc-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 7%; align-items: center; }
.svc-item--flip { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.svc-item--flip .svc-item__body { order: 2; }
.svc-item__num { display: flex; align-items: center; gap: 18px; }
.svc-item__num .service-row__num { font-size: 64px; font-weight: 300; }
.svc-item__en { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.svc-item__title { margin-top: 16px; font-size: clamp(22px, 2.1vw, 30px); font-weight: 500; line-height: 1.5; letter-spacing: .06em; }
.svc-item__text { margin-top: 16px; max-width: 34em; font-size: 15px; line-height: 2.1; }
.svc-item__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; }
.svc-item__tags-label { font-size: 12px; font-weight: 500; color: var(--muted); }
.svc-item__tags ul { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-item__tags li { padding: 3px 12px; background: var(--soft); font-size: 12px; line-height: 1.8; }
.svc-item .text-link { margin-top: 26px; }
.svc-item__photos { position: relative; padding: 28px 28px 18% 17%; }
.svc-item__photos--single { padding-bottom: 0; }
.svc-item__photos::before { content: ""; position: absolute; top: 0; right: 0; width: 22%; aspect-ratio: 1; background: var(--accent); }
.svc-item__main { position: relative; aspect-ratio: 56 / 40; overflow: hidden; background: #dfe3da; }
.svc-item__sub { position: absolute; left: 0; bottom: 0; width: 42%; aspect-ratio: 28 / 20; overflow: hidden; border: 10px solid #fff; background: #dfe3da; }
.svc-item__main img, .svc-item__main .placeholder, .svc-item__sub img, .svc-item__sub .placeholder { width: 100%; height: 100%; object-fit: cover; }
.svc-item--flip .svc-item__photos { padding: 28px 17% 18% 28px; }
.svc-item--flip .svc-item__photos--single { padding-bottom: 0; }
.svc-item--flip .svc-item__photos::before { right: auto; left: 0; }
.svc-item--flip .svc-item__sub { left: auto; right: 0; }
.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.svc-card { padding: 30px 30px 32px; background: #fff; }
.svc-card__title { display: flex; align-items: baseline; gap: 14px; font-size: 19px; font-weight: 500; line-height: 1.5; letter-spacing: .04em; }
.svc-card__num { font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--accent-ink); }
.svc-card__text { margin-top: 12px; font-size: 15px; line-height: 1.9; color: var(--muted); }
.svc-area { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 8%; align-items: start; }
.svc-area__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.svc-area__list li { padding: 14px 24px; border: 1px solid var(--ink); font-size: 17px; font-weight: 500; line-height: 1.4; }
.svc-estimates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.svc-estimate { padding: 28px 28px 30px; border: 1px solid var(--line); }
.svc-estimate__tag { display: inline-block; padding: 2px 10px; background: var(--accent); font-size: 12px; font-weight: 700; line-height: 1.8; }
.svc-estimate__title { margin-top: 12px; font-size: 17px; font-weight: 500; line-height: 1.6; }
.svc-estimate__text { margin-top: 8px; font-size: 15px; line-height: 1.9; color: var(--muted); }

/* ==========================================================================
   7. Works（施工実績：一覧・個別ページ・パネル・印刷）
   2026-10-07 作り直し（Figma「施工実績 作り直し案 2026-10-06」の基本形）。
   1現場＝1枚のパネル（A4横の比率）。左に施工前・施工後、右に施工中（0〜4枚で分け方が変わる）、下に5行の表。
   ========================================================================== */
.post-type-archive-works .page-header, .page-header--works { border-bottom: 0; }
.page-header.page-header--works { padding-bottom: 32px; }
.page-header--works .breadcrumbs { padding-bottom: 32px; }
.eyebrow__ja { margin-left: 4px; font-family: var(--font-ja); font-weight: 500; letter-spacing: .06em; text-transform: none; color: var(--muted); }
.post-type-archive-works .page-lead { max-width: 52em; }
.works-area { padding-block: 80px 96px; background: var(--soft); }
.works-area--single { padding-top: 56px; }
.works-list { display: grid; gap: 56px; }

/* パネル：1280×905（A4横）の比率。文字が多ければ下に伸びる */
.work-panel {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name more" "photos photos" "rows rows";
	align-content: start; gap: 24px; aspect-ratio: 1280 / 905; padding: 40px 39px; /* 枠線1px＋余白で写真の枠が 1200px（Figma） */
	min-width: 0; /* 比率の指定で、中身の高さに合わせて横に広がらないように（幅は列に合わせ、高さだけ伸ばす） */
	border: 1px solid var(--line); background: #fff;
	-webkit-print-color-adjust: exact; print-color-adjust: exact; /* 写真の札・項目名の背景色も印刷する */
}
/* 一覧のその現場の位置（/works/#work-{ID}）へ移動したとき、固定ヘッダーの下に出す。ヘッダーの分は html の scroll-padding-top、
   ログイン中の管理バーの分をここで足す */
.admin-bar .work-panel { scroll-margin-top: 32px; }
@media (max-width: 782px) { .admin-bar .work-panel { scroll-margin-top: 46px; } }
.work-panel__name { grid-area: name; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.work-panel__place { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; line-height: 1.3; letter-spacing: .06em; }
.work-panel__place::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.work-panel__title { font-size: 26px; font-weight: 500; line-height: 1.35; letter-spacing: .03em; }
.work-panel__more { grid-area: more; align-self: end; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .04em; white-space: nowrap; }
.work-panel__more > span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.work-panel__more:hover > span:first-child { text-decoration-thickness: 2px; }
.work-panel__arrow { font-size: 14px; transition: transform .2s; }
.work-panel__more:hover .work-panel__arrow { transform: translateX(3px); }
.work-panel__brand { display: none; } /* ロゴ・社名・URL は印刷の時だけ */

.work-photos { grid-area: photos; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; aspect-ratio: 1200 / 504; }
.work-photo { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--soft); }
.work-photo--l1 { grid-area: l1; }
.work-photo--l2 { grid-area: l2; }
.work-photo--d1 { grid-area: d1; }
.work-photo--d2 { grid-area: d2; }
.work-photo--d3 { grid-area: d3; }
.work-photo--d4 { grid-area: d4; }
.work-photo__link { display: block; width: 100%; height: 100%; }
.work-photo__img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; } /* 枠に合わせて中央で切り抜く */
.work-photo__link:hover .work-photo__img { transform: scale(1.02); }
.work-photo__label {
	position: absolute; top: 0; left: 0; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 5px 10px;
	background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.25; letter-spacing: .04em; pointer-events: none;
}
.work-photo__label span { color: var(--accent); font-size: 12px; font-weight: 600; }
/* 施工中の枚数（d0〜d4）ごとの並び。左の列は施工前（上）・施工後（下） */
.work-photos--d0 { grid-template-columns: 1fr 1fr; grid-template-areas: "l1 l2" "l1 l2"; }
.work-photos--d1 { grid-template-columns: 372fr 812fr; grid-template-areas: "l1 d1" "l2 d1"; }
.work-photos--d2 { grid-template-columns: 372fr 398fr 398fr; grid-template-areas: "l1 d1 d2" "l2 d1 d2"; }
.work-photos--d3 { grid-template-columns: 372fr 532fr 264fr; grid-template-areas: "l1 d1 d2" "l2 d1 d3"; }
.work-photos--d4 { grid-template-columns: 372fr 398fr 398fr; grid-template-areas: "l1 d1 d2" "l2 d3 d4"; }
/* 以前の投稿で施工前か施工後がない場合：残った1枚を縦いっぱいに／どちらもない場合は施工中だけ */
.work-photos--d0.work-photos--l1 { grid-template-columns: 1fr; grid-template-areas: "l1" "l1"; }
.work-photos--d1.work-photos--l1 { grid-template-areas: "l1 d1" "l1 d1"; }
.work-photos--d2.work-photos--l1 { grid-template-areas: "l1 d1 d2" "l1 d1 d2"; }
.work-photos--d3.work-photos--l1 { grid-template-areas: "l1 d1 d2" "l1 d1 d3"; }
.work-photos--d4.work-photos--l1 { grid-template-areas: "l1 d1 d2" "l1 d3 d4"; }
.work-photos--d1.work-photos--l0 { grid-template-columns: 1fr; grid-template-areas: "d1" "d1"; }
.work-photos--d2.work-photos--l0 { grid-template-columns: 1fr 1fr; grid-template-areas: "d1 d2" "d1 d2"; }
.work-photos--d3.work-photos--l0 { grid-template-columns: 532fr 264fr; grid-template-areas: "d1 d2" "d1 d3"; }
.work-photos--d4.work-photos--l0 { grid-template-columns: 1fr 1fr; grid-template-areas: "d1 d2" "d3 d4"; }

.work-rows { grid-area: rows; border-top: 1px solid var(--ink); }
.work-rows__row { display: flex; align-items: flex-start; gap: 24px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.work-rows dt { flex: 0 0 112px; padding: 4px 12px; background: var(--soft); font-size: 13px; font-weight: 500; line-height: 1.25; letter-spacing: .08em; white-space: nowrap; }
.work-rows dd { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.6; }

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 52px; height: 52px; padding: 0 14px;
	border: 1px solid var(--line); background: #fff; font-size: 15px;
}
.pagination .prev, .pagination .next { padding-inline: 22px; }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--ink); }
.pagination .dots { min-width: 0; padding: 0 4px; border: 0; background: none; }

/* 個別ページ：一覧へ戻る・前後の現場 */
.work-foot { display: flex; flex-direction: column; gap: 32px; margin-top: 32px; }
.work-ops { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.work-ops__back { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .04em; }
.work-ops__text { text-decoration: underline; text-underline-offset: 3px; }
.work-ops__back:hover .work-ops__text { text-decoration-thickness: 2px; }
.work-ops__arrow { font-size: 15px; transition: transform .2s; }
.work-ops__back:hover .work-ops__arrow { transform: translateX(-3px); }
.work-adjacent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.work-adjacent__item { display: flex; align-items: center; gap: 20px; padding: 18px 24px 18px 18px; border: 1px solid var(--line); background: #fff; }
.work-adjacent__item:hover { border-color: var(--ink); }
.work-adjacent__item--prev { grid-column: 1; }
.work-adjacent__item--next { grid-column: 2; flex-direction: row-reverse; padding: 18px 18px 18px 24px; text-align: right; }
.work-adjacent__img { flex: 0 0 120px; height: 90px; overflow: hidden; background: var(--soft); }
.work-adjacent__img img, .work-adjacent__img .placeholder { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.work-adjacent__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.work-adjacent__item--next .work-adjacent__text { align-items: flex-end; }
.work-adjacent__label { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .06em; }
.work-adjacent__place { color: var(--muted); font-size: 12px; line-height: 1.4; }
.work-adjacent__title { font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: .02em; }
.work-protected { padding: 40px; border: 1px solid var(--line); background: #fff; }
.work-protected__title { margin-bottom: 24px; font-size: 26px; font-weight: 500; line-height: 1.4; letter-spacing: .03em; }
.work-protected + .work-ops { margin-top: 32px; }

@media (max-width: 960px) {
	.works-area { padding-block: 64px 80px; }
	.works-list { gap: 40px; }
	.work-panel { gap: 20px; padding: 28px; }
	.work-panel__title { font-size: 22px; }
	.work-photos { gap: 10px; }
	.work-rows__row { gap: 16px; }
	.work-rows dt { flex-basis: 96px; padding-inline: 10px; }
	.work-rows dd { font-size: 14px; }
	.work-adjacent { gap: 16px; }
}

/* スマホ：A4横の比率にはしない。上に施工前・施工後を左右に並べ、その下に施工中、最後に5行（Figma W2 スマホ） */
@media (max-width: 700px) {
	.works-area { padding-block: 28px 64px; }
	.works-area--single { padding-top: 20px; }
	.works-list { gap: 24px; }
	.page-header.page-header--works { padding-bottom: 20px; }
	.page-header--works .breadcrumbs { padding-bottom: 18px; }
	.work-panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "photos" "rows" "more"; gap: 16px; aspect-ratio: auto; padding: 18px 15px; }
	.work-panel__name { gap: 6px; }
	.work-panel__place { gap: 8px; font-size: 12px; }
	.work-panel__title { font-size: 18px; line-height: 1.5; }
	.work-panel__more { justify-self: end; }
	.work-panel:not(:has(> .work-panel__more)) { grid-template-areas: "name" "photos" "rows"; } /* リンクのないパネル（個別ページを使わない一覧・個別ページ）は下の余白を詰める */
	.work-photos { display: flex; flex-wrap: wrap; gap: 8px; aspect-ratio: auto; }
	.work-photo--l1, .work-photo--l2 { order: -1; } /* 施工前・施工後を上に左右で並べる（HTML は時系列） */
	.work-photo { width: calc(50% - 4px); aspect-ratio: 155 / 116; }
	.work-photo.is-wide-sp { width: 100%; aspect-ratio: 318 / 200; }
	.work-photo__label { gap: 4px; padding: 3px 7px; font-size: 11px; }
	.work-photo__label span { font-size: 10px; }
	.work-rows__row { gap: 12px; }
	.work-rows dt { flex-basis: 72px; padding: 3px 6px; font-size: 11px; letter-spacing: .04em; }
	.work-rows dd { font-size: 13px; }
	.pagination { margin-top: 28px; }
	.pagination .nav-links { gap: 8px; }
	.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; font-size: 14px; }
	.pagination .prev, .pagination .next { padding-inline: 16px; }
	.work-foot { gap: 24px; margin-top: 20px; }
	.work-ops { order: 2; justify-content: center; }
	.work-adjacent { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.work-adjacent__item, .work-adjacent__item--next { grid-column: auto; flex-direction: row; gap: 14px; padding: 14px; text-align: left; }
	.work-adjacent__item--next .work-adjacent__text { align-items: flex-start; }
	.work-adjacent__img { flex-basis: 100px; height: 75px; }
	.work-adjacent__title { font-size: 15px; }
	.work-protected { padding: 24px 18px; }
	.work-protected__title { font-size: 20px; }
}

/* 施工実績：印刷（ブラウザの「印刷 → PDFに保存」）。1現場＝A4横1ページ、パネルだけを印刷し、右上はロゴ・社名・URL。
   一覧は1現場ごとに改ページ。印刷のボタンはない（2026-10-08〜。下の方の写真は印刷の開始時に読み込む：assets/js/main.js）。
   文字が長い現場は写真の高さを縮めて1ページに収める。 */
@media print {
	@page { size: A4 landscape; margin: 8mm; }
	.post-type-archive-works .page-header, .post-type-archive-works .pagination, .single-works .page-header, .single-works .work-foot,
	.post-type-archive-works .site-footer, .single-works .site-footer, .post-type-archive-works #wpadminbar, .single-works #wpadminbar, .work-panel__more { display: none !important; }
	.works-area { padding: 0; background: none; }
	.works-area > .shell { width: auto; }
	.works-list { display: block; }
	.work-panel {
		grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "name more" "photos photos" "rows rows";
		align-content: stretch; gap: 20px; height: 192mm; aspect-ratio: auto; padding: 30px 32px; border: 0;
		overflow: hidden; break-inside: avoid; break-after: page;
	}
	.work-panel:last-child { break-after: auto; }
	.work-panel__place { gap: 8px; font-size: 11px; }
	.work-panel__title { font-size: 21px; }
	.work-panel__brand { grid-area: more; align-self: end; display: flex; align-items: center; gap: 10px; }
	.work-panel__logo { width: auto; height: 29px; }
	.work-panel__company { display: flex; flex-direction: column; gap: 2px; font-size: 10px; font-weight: 500; line-height: 1.3; letter-spacing: .04em; }
	.work-panel__company span + span { color: var(--muted); font-size: 9px; font-weight: 400; }
	.work-photos { height: 100%; gap: 13px; aspect-ratio: auto; }
	.work-photo__img { transition: none; }
	.work-photo__label { gap: 5px; padding: 4px 8px; font-size: 10.5px; }
	.work-photo__label span { font-size: 10px; }
	.work-rows__row { gap: 20px; padding: 6px 0; }
	.work-rows dt { flex-basis: 91px; padding: 3px 10px; font-size: 10.5px; }
	.work-rows dd { font-size: 12px; line-height: 1.55; }
}

/* ==========================================================================
   8. Password-protected pages
   ========================================================================== */
/* パスワード保護ページの入力フォーム（WordPress標準のマークアップ。施工実績・固定ページ共通） */
.post-password-form p + p { margin-top: 1.2em; }
.post-password-form label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14px; }
.post-password-form input[type="password"] {
	min-width: min(260px, 100%); padding: 12px 14px; border: 1px solid #7d877f; border-radius: 0; background: #fff; font-size: 16px;
}
.post-password-form input[type="password"]:focus { border-color: var(--ink); outline: 3px solid rgba(127, 150, 38, .55); outline-offset: 0; }
.post-password-form input[type="submit"] {
	min-height: 48px; margin: 8px 0 0 8px; padding: 10px 26px; border: 0; border-radius: 0;
	background: var(--ink); color: #fff; font-size: 14px; cursor: pointer;
}
.post-password-form input[type="submit"]:hover { background: #0e1f1d; }

/* ==========================================================================
   9. Contact form
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; align-items: start; }
.contact-layout--with-side { grid-template-columns: minmax(0, 1fr) 300px; }
.contact-main .entry-content { margin-bottom: 40px; }
.contact-side { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; background: var(--soft); }
.contact-side__label { font-size: 12px; color: var(--muted); }
.contact-side__tel { display: block; margin-top: 6px; font-size: 26px; font-weight: 600; letter-spacing: .02em; }
.contact-side__hours { margin-top: 6px; font-size: 12px; color: var(--muted); }
.form-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.form-steps li { padding: 12px 0; font-size: 13px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.form-steps li span { margin-right: 10px; font-size: 11px; }
.form-steps li[aria-current="step"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.form-notice, .form-errors { margin-bottom: 32px; padding: 18px 22px; border-left: 4px solid var(--danger); background: #fdf1f0; font-size: 15px; }
.form-errors ul { margin-top: 8px; padding-left: 1.2em; list-style: disc; }
.form-errors a { text-decoration: underline; }
.form-errors:focus { outline: 2px solid var(--danger); outline-offset: 2px; }
.form-lead { margin-bottom: 26px; font-size: 15px; }
.field { margin-bottom: 30px; }
.field fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.field-label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 500; }
.badge { display: inline-block; padding: 1px 8px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 400; line-height: 1.7; }
.badge--optional { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
	width: 100%; padding: 13px 15px; border: 1px solid #7d877f; border-radius: 0; background: #fff; font-size: 16px; line-height: 1.7;
}
.field textarea { min-height: 200px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6b756f; }
.field input[type="text"]:focus, .field input[type="email"]:focus, .field input[type="tel"]:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid rgba(127, 150, 38, .55); outline-offset: 0; }
.choices input:focus-visible, .field--privacy input:focus-visible { outline: 3px solid #7f9626; outline-offset: 3px; }
.field-help { margin: -2px 0 10px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); background: #fffafa; }
.field-error { margin-top: 8px; font-size: 13px; color: var(--danger); }
.choices { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }
.choices label, .field--privacy label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.choices input, .field--privacy input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.field--privacy { padding: 22px 0; border-block: 1px solid var(--line); font-size: 15px; }
.field--privacy a { text-decoration: underline; text-underline-offset: 3px; }
.field--hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.form-actions .button { min-width: 220px; }
.form.is-sending .form-actions .button { opacity: .6; cursor: progress; }
.form-confirm { margin-bottom: 20px; }
.form-confirm > div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.form-confirm > div:first-child { border-top: 1px solid var(--line); }
.form-confirm dt { color: var(--muted); font-size: 14px; }
.form-confirm .muted { color: var(--muted); }
.cf-turnstile { margin-top: 26px; }
.form-done { padding: 40px; background: var(--soft); }
.form-done h2 { font-size: 22px; font-weight: 500; margin-bottom: 12px; }

/* ==========================================================================
   10. Lightbox
   ========================================================================== */
.lightbox {
	width: min(1100px, calc(100vw - 48px)); max-width: none; max-height: calc(100svh - 40px);
	padding: 56px 28px 22px; border: 0; background: #152721; color: #fff; box-shadow: 0 15px 100px rgba(0, 0, 0, .3);
}
.lightbox::backdrop { background: rgba(8, 23, 18, .78); }
.lightbox__img { width: 100%; height: min(740px, calc(100svh - 200px)); object-fit: contain; }
.lightbox__caption { margin-top: 14px; font-size: 13px; text-align: center; color: #e2e9df; }
.lightbox__controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 14px; }
.lightbox.is-single .lightbox__controls { display: none; }
.lightbox__controls button, .lightbox__close {
	width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; background: transparent; color: #fff; font-size: 18px; line-height: 1;
}
.lightbox__close { position: absolute; top: 12px; right: 12px; }
.lightbox__count { font-size: 12px; color: #b7cbbd; }

.notfound-links { display: grid; gap: 22px; }

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (min-width: 1600px) {
	:root { --wide: min(1390px, calc(100% - 144px)); }
	.site-header { padding-inline: 64px; }
}

@media (max-width: 1180px) {
	:root { --wide: calc(100% - 72px); }
	.site-header { gap: 22px; padding-inline: 30px; }
	.global-nav__list { gap: 20px; }
	.global-nav__list a { font-size: 12px; }
	.header-tel { font-size: 16px; }
	.header-contact { padding: 12px 16px; }
	.works-grid { gap: 36px 20px; }
	.faq-grid, .equipment-grid { gap: 7%; }
}

/* メニューが6項目（ホーム・保有重機・車両を追加。2026-10-07）でも、ハンバーガーに切り替わる直前の幅で収まるように */
@media (max-width: 1080px) {
	.site-header { gap: 16px; }
	.global-nav__list { gap: 12px; }
}

@media (max-width: 960px) {
	:root { --header-h: 74px; }
	.global-nav, .header-tel { display: none; }
	.header-contact { margin-left: auto; }
	.menu-toggle { display: block; }
	.mobile-nav { display: none; }
	html:not(.js) .menu-toggle { display: none; }
	.js .mobile-nav.is-open {
		display: flex; flex-direction: column; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49;
		padding: 16px 36px 40px; overflow-y: auto; background: #fff; border-top: 1px solid var(--line);
	}
	html:not(.js) .mobile-nav { display: block; padding: 8px 36px 20px; border-bottom: 1px solid var(--line); }
	.mobile-nav__list a { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
	.mobile-nav__list a::after { content: "→"; }
	.mobile-nav__contact { display: block; margin-top: 28px; padding: 16px; background: var(--ink); color: #fff; text-align: center; }
	.mobile-nav__tel { display: block; margin-top: 12px; padding: 14px; border: 1px solid var(--line); text-align: center; font-weight: 600; }
	.section { padding-block: 92px; }
	.hero { height: 680px; min-height: 560px; }
	.equipment-grid, .faq-grid { gap: 6%; }
	.about-main { gap: 6%; }
	.about-photos__label { display: none; }
	.service-list { gap: 32px; }
	.service-row { grid-template-columns: minmax(0, .8fr) 52px minmax(0, 1fr); column-gap: 12px; }
	.service-row__img { margin-right: 16px; }
	.service-row__num { font-size: 40px; }
	.service-row .text-link { gap: 8px; }
	.service-row .text-link > span:first-child { white-space: nowrap; }
	.cta { grid-template-columns: 1fr; }
	.cta-photo { min-height: 300px; }
	.cta-panel { padding: 72px 48px; }
	.works-grid { grid-template-columns: repeat(2, 1fr); }
	.recruit-banner { grid-template-columns: 1fr; }
	.recruit-banner__img { aspect-ratio: 16 / 9; min-height: 0; }
	.contact-layout { grid-template-columns: 1fr; gap: 40px; }
	.contact-side { position: static; order: -1; }
	.service-hero__inner { grid-template-columns: 1fr; gap: 48px; margin-left: 0; }
	.service-hero__text { width: var(--wide); margin-inline: auto; }
	.svc-list { gap: 88px; }
	.svc-item, .svc-item--flip { grid-template-columns: 1fr; gap: 28px; }
	.svc-item__photos { order: -1; max-width: 640px; }
	.svc-item--flip .svc-item__body { order: 0; }
	.svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.svc-area { grid-template-columns: 1fr; gap: 72px; }
}

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

@media (max-width: 700px) {
	:root { --wide: calc(100% - 40px); --header-h: 66px; }
	body { font-size: 15px; }
	.site-header { gap: 12px; padding-inline: 20px; }
	.brand-name { font-size: 19px; }
	.brand-sub { font-size: 9px; margin-top: 5px; }
	.brand-logo { max-height: 42px; }
	.header-contact { padding: 10px 12px; font-size: 11px; gap: 8px; }
	.js .mobile-nav.is-open { padding-inline: 20px; }
	.section { padding-block: 72px; }
	.section-top { display: block; margin-bottom: 34px; }
	.section-desc { margin-top: 20px; max-width: none; font-size: 14px; }
	.section-heading { font-size: 38px; column-gap: 14px; }
	.section-heading small { font-size: 13px; }
	.section-top .text-link { margin-top: 26px; }
	.hero { height: calc(100svh - var(--header-h)); min-height: 560px; max-height: 760px; }
	.hero-image { object-position: 62% 55%; }
	.hero-content { justify-content: flex-end; padding-block: 30px 36px; }
	.hero--has-news .hero-content { padding-bottom: 88px; }
	.hero-title { font-size: 30px; line-height: 1.6; letter-spacing: .08em; }
	.hero-title::before { width: 44px; margin-bottom: 20px; }
	.hero-lead { margin-top: 18px; font-size: 16px; line-height: 1.9; }
	.hero-news__inner { gap: 12px; min-height: 56px; font-size: 12px; }
	.hero-news__date, .hero-news__place { display: none; }
	.hero-actions { width: 100%; margin-top: 24px; }
	.hero-actions .button { flex: 1 1 140px; min-height: 48px; padding-inline: 16px; }
	.equipment-grid, .faq-grid { grid-template-columns: 1fr; gap: 28px; }
	.about-main { grid-template-columns: 1fr; gap: 48px; }
	.about-title { margin-top: 22px; font-size: 26px; letter-spacing: .06em; }
	.about-copy { margin-top: 22px; }
	.about-copy p { font-size: 15px; line-height: 2.2; }
	.about-photos { margin-right: 10px; padding: 0 0 18% 10%; }
	.about-photos::before { top: -14px; right: -10px; }
	.about-photos__sub { border-width: 6px; }
	.service-list { gap: 40px; }
	.service-row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "img img" "num body"; column-gap: 14px; }
	.service-row__img { margin: 0 0 18px; }
	.service-row__num { font-size: 44px; }
	.other-services { display: block; }
	.other-services h3 { margin-bottom: 12px; }
	.works-grid { grid-template-columns: 1fr; gap: 40px; }
	.equipment-list > div { grid-template-columns: 7.5em 1fr; gap: 12px; }
	.equipment-image { aspect-ratio: 4 / 3; }
	.recruit-banner__body { padding: 30px 24px; }
	.cta-photo { min-height: 200px; }
	.cta-panel { padding: 56px 20px 60px; }
	.cta-en { font-size: 52px; }
	.cta-title { font-size: 18px; }
	.cta-button { padding: 22px 24px; }
	.cta-tel { padding: 16px 24px; }
	.site-footer { padding-top: 56px; }
	.footer-top { flex-direction: column; gap: 26px; }
	.footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
	.breadcrumbs { padding-block: 18px 30px; }
	.page-header { padding-bottom: 40px; }
	.page-body { padding-block: 44px 80px; }
	.entry-content { font-size: 15px; }
	.entry-content th, .entry-content td { padding: 12px 10px; }
	.entry-content .is-style-stack th, .entry-content .is-style-stack td { display: block; width: 100%; }
	.entry-content .is-style-stack td:first-child:not(:only-child) { width: 100%; padding-bottom: 0; border-bottom: 0; }
	.entry-content .is-style-stack tr:first-child td + td { border-top: 0; }
	.form-steps li { font-size: 12px; }
	.form-confirm > div { grid-template-columns: 1fr; gap: 4px; }
	.form-actions { flex-direction: column-reverse; }
	.form-actions .button { width: 100%; }
	.lightbox { width: calc(100vw - 20px); padding: 56px 10px 18px; }
	.lightbox__img { height: calc(100svh - 190px); }
	.section-top__side { align-items: flex-start; text-align: left; }
	.service-hero { padding-bottom: 64px; }
	.service-hero__inner { gap: 36px; }
	.service-hero__photo { margin-left: 20px; }
	.service-hero__photo::before { left: -20px; bottom: -24px; width: 34%; }
	.service-toc ul { padding-block: 24px; }
	.svc-list { gap: 64px; }
	.svc-item__num .service-row__num { font-size: 48px; }
	.svc-item__photos { padding: 16px 20px 22% 0; }
	.svc-item--flip .svc-item__photos { padding: 16px 20px 22% 0; }
	.svc-item--flip .svc-item__photos::before { left: auto; right: 0; }
	.svc-item__sub, .svc-item--flip .svc-item__sub { left: auto; right: 0; width: 46%; border-width: 6px; }
	.svc-item__photos--single, .svc-item--flip .svc-item__photos--single { padding-bottom: 0; }
	.svc-cards { grid-template-columns: 1fr; gap: 12px; }
	.svc-card { padding: 20px 20px 22px; }
	.svc-card__title { font-size: 17px; }
	.svc-area { gap: 56px; }
	.svc-area__list li { padding: 12px 18px; font-size: 15px; }
	.svc-estimates { grid-template-columns: 1fr; gap: 14px; }
	.svc-estimate { padding: 22px 22px 24px; }
	.entry-content .yard-list { gap: 20px 12px; }
	.entry-content .eq-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
	.entry-content .eq-photos--1 li, .entry-content .eq-photos--3 li:first-child, .entry-content .eq-photos--5 li:first-child { grid-column: 1 / -1; }
	.entry-content .qual-list { grid-template-columns: 1fr; }
	.entry-content .qual-list li { padding: 13px 0; }
	.entry-content .qual-list li:nth-child(2) { border-top: 0; }
}

@media (max-width: 400px) {
	.site-header { gap: 8px; padding-inline: 14px; }
	.brand { min-width: 0; }
	.brand-name { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.brand-sub { display: none; }
	.header-contact { padding: 9px 10px; }
	.header-contact span { display: none; }
}

@media (max-height: 500px) {
	.lightbox { padding-top: 48px; }
	.lightbox__img { height: calc(100svh - 150px); }
	.lightbox__caption, .lightbox__controls { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
	.site-header, .mobile-nav, .cta, .site-footer nav, .env-banner, .phase-nav, .skip-link { display: none !important; }
	.section { padding-block: 32px; }
}
