/*
Theme Name: 中山建設(Nakayama Construction)
Theme URI: https://nakayama-constr.co.jp/
Description: 中山建設株式会社のオリジナルテーマ。Elementorを使わずに構築(本文はブロックエディタで編集)。
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
Author: TribalWorks
Text Domain: nakayama-constr
*/

/* ==========================================================================
   基本
   ========================================================================== */
:root {
	--navy: #163f8e;
	--navy-d: #0d2a63;
	--blue: #3d6fd6;
	--sky: #e9effa;
	--ink: #0d1322;
	--ink-2: #1b2335;
	--text: #2b3140;
	--muted: #6c7484;
	--line: #e2e5ea;
	--bg: #f4f4f1;
	--white: #fff;
	--font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	--font-en: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
	--font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
	--r-lg: clamp(20px, 2.4vw, 32px);
	--r-md: clamp(14px, 1.6vw, 20px);
	--r-sm: 12px;
	--gutter: clamp(20px, 4vw, 48px);
	--header-h: 76px;
	--ease: cubic-bezier(.22, .61, .36, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.9;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: anywhere;
	letter-spacing: .02em;
}
body.is-menu-open { overflow: hidden; }
img, video, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; }
a { color: var(--navy); text-underline-offset: .22em; }
a:hover { color: var(--navy-d); }
h1, h2, h3, h4 { line-height: 1.45; color: var(--ink); margin: 0; font-weight: 700; }
p { margin: 0 0 1.4em; }
figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 3px; }
::selection { background: var(--navy); color: #fff; }

.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: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip-link:focus { left: 8px; }
.pc { display: inline; }
@media (max-width: 767px) { .pc { display: none; } }

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

.icon { width: 1em; height: 1em; flex-shrink: 0; }
.ext::after {
	content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .35em; vertical-align: -.05em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.4l-9.3 9.3-1.4-1.4L17.6 5H14zM5 5h6v2H5v12h12v-6h2v8H3V5z'/%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='M14 3h7v7h-2V6.4l-9.3 9.3-1.4-1.4L17.6 5H14zM5 5h6v2H5v12h12v-6h2v8H3V5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ピルボタン */
.pill, .btn, .entry .wp-block-button__link {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 54px; padding: 0 10px 0 28px; border-radius: 999px; border: 1px solid transparent;
	font-size: 15px; font-weight: 700; letter-spacing: .06em; line-height: 1.3; text-decoration: none;
	transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s, transform .35s var(--ease);
}
.pill .icon, .btn .icon { width: 36px; height: 36px; padding: 9px; border-radius: 50%; transition: transform .4s var(--ease-out), background-color .3s; }
.pill:hover .icon, .btn:hover .icon { transform: rotate(-45deg); }
.pill--navy, .btn--navy { background: var(--navy); color: #fff; }
.pill--navy .icon, .btn--navy .icon { background: rgba(255, 255, 255, .16); }
.pill--navy:hover, .btn--navy:hover { background: var(--ink); color: #fff; }
.pill--outline { background: transparent; border-color: rgba(13, 19, 34, .2); color: var(--ink); }
.pill--outline .icon { background: var(--ink); color: #fff; }
.pill--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill--outline:hover .icon { background: #fff; color: var(--ink); }
.pill--white, .btn--white { background: #fff; color: var(--ink); }
.pill--white .icon, .btn--white .icon { background: var(--navy); color: #fff; }
.pill--white:hover, .btn--white:hover { background: var(--sky); color: var(--ink); }
.btn { padding-right: 28px; }
.pill:has(.ext) { padding-right: 28px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-en); font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* 見出し部品 */
.eyebrow {
	display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
	font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--navy);
}
.eyebrow span { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 11px; letter-spacing: .04em; }
.eyebrow:not(:has(span))::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.eyebrow--light { color: #9fb7ea; }
.eyebrow--light span { background: #fff; color: var(--ink); }
.sec-head { margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head__title { font-size: clamp(30px, 4.2vw, 56px); font-weight: 900; letter-spacing: .04em; line-height: 1.25; }
.sec-head__lead { max-width: 40em; margin: 20px 0 0; font-size: 15px; line-height: 2; }

/* スクロール表示 */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
	.js .reveal.is-in { opacity: 1; transform: none; }
	.js .reveal-img { clip-path: inset(10% 10% 10% 10% round var(--r-lg)); transition: clip-path 1.4s var(--ease-out); }
	.js .reveal-img img { transform: scale(1.18); transition: transform 1.6s var(--ease-out); }
	.js .reveal-img.is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
	.js .reveal-img.is-in img { transform: none; }
	.js .split { overflow: hidden; }
	.js .split > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
	.js .split.is-in > span { transform: none; }
}

/* ==========================================================================
   ヘッダー(浮かぶカード型)
   ========================================================================== */
.site-header { position: fixed; top: 14px; left: 14px; right: 14px; z-index: 100; transition: transform .5s var(--ease-out); }
.admin-bar .site-header { top: 46px; }
.site-header__inner {
	display: flex; align-items: center; gap: 24px; height: var(--header-h);
	padding: 0 10px 0 24px; border-radius: 20px;
	background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
	box-shadow: 0 10px 40px rgba(13, 19, 34, .08);
	transition: height .4s var(--ease), box-shadow .4s;
}
.site-header.is-scrolled .site-header__inner { height: 64px; box-shadow: 0 10px 40px rgba(13, 19, 34, .14); }
.site-header.is-hidden { transform: translateY(calc(-100% - 24px)); }
.site-logo { margin: 0; font-size: 1em; line-height: 1; flex-shrink: 0; }
.site-logo a { display: block; }
.site-logo img { width: clamp(140px, 13vw, 176px); }
.header-nav { margin-left: auto; }
.header-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.header-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color .3s, color .3s; }
.header-nav a:hover { background: var(--sky); color: var(--navy); }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.header-tel { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--ink); text-decoration: none; font-family: var(--font-en); font-weight: 700; font-size: 17px; }
.header-tel .icon { width: 16px; height: 16px; color: var(--navy); }
.header-contact { min-height: 50px; font-size: 14px; padding-left: 22px; padding-right: 7px; }
.menu-btn { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; transition: background-color .3s; }
.menu-btn:hover { background: var(--navy); }
.burger { position: relative; display: block; width: 20px; height: 10px; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: #fff; transition: transform .45s var(--ease-out), top .45s var(--ease-out), width .3s; }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 8px; width: 65%; }
.menu-btn:hover .burger i:nth-child(2) { width: 100%; }
.is-menu-open .burger i:nth-child(1) { top: 4px; transform: rotate(45deg); }
.is-menu-open .burger i:nth-child(2) { top: 4px; width: 100%; transform: rotate(-45deg); }
.is-menu-open .site-header { transform: none; }

@media (max-width: 1240px) { .header-nav { display: none; } .site-header__actions { margin-left: auto; } }
@media (max-width: 860px) { .header-tel__num { display: none; } .header-tel { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; background: var(--sky); } }
@media (max-width: 600px) {
	:root { --header-h: 62px; }
	.site-header { top: 10px; left: 10px; right: 10px; }
	.site-header__inner { padding-left: 16px; gap: 8px; border-radius: 16px; }
	.site-header.is-scrolled .site-header__inner { height: 58px; }
	.site-logo img { width: 124px; }
	.header-contact { display: none; }
	.menu-btn { width: 46px; height: 46px; }
}

/* 全画面メニュー */
.global-menu {
	position: fixed; inset: 0; z-index: 90; overflow-y: auto;
	padding: 130px 0 48px; background: var(--ink); color: #fff;
	clip-path: circle(0% at calc(100% - 50px) 50px); visibility: hidden;
	transition: clip-path .8s var(--ease-out), visibility 0s .8s;
}
.global-menu[hidden] { display: block; }
.is-menu-open .global-menu { clip-path: circle(150% at calc(100% - 50px) 50px); visibility: visible; transition: clip-path .9s var(--ease-out), visibility 0s; }
.global-menu::before { content: ""; position: fixed; inset: 0; background: radial-gradient(60% 50% at 85% 10%, rgba(61, 111, 214, .35), transparent 70%), radial-gradient(40% 40% at 0% 100%, rgba(22, 63, 142, .5), transparent 70%); pointer-events: none; }
.global-menu__inner { position: relative; display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px 80px; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.global-menu__catch { margin: 0 0 32px; font-family: var(--font-en); font-weight: 800; font-size: clamp(32px, 4vw, 54px); line-height: 1.05; letter-spacing: -.02em; }
.global-menu__tel { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: #fff; text-decoration: none; font-family: var(--font-en); font-size: 26px; font-weight: 700; }
.global-menu__tel .icon { width: 20px; height: 20px; color: #9fb7ea; }
.global-menu__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.global-menu__head { display: flex; flex-direction: column; margin: 0 0 12px; font-family: var(--font-en); font-weight: 800; font-size: 13px; letter-spacing: .16em; color: #9fb7ea; }
.global-menu__head small { font-family: var(--font); letter-spacing: .06em; color: rgba(255, 255, 255, .5); font-weight: 400; }
.global-menu__list { list-style: none; margin: 0; padding: 0; }
.global-menu__list li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.global-menu__list a { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; color: #fff; text-decoration: none; font-size: 17px; font-weight: 700; transition: color .3s, padding .4s var(--ease-out); }
.global-menu__list a::after { content: "→"; font-family: var(--font-en); opacity: .4; transition: opacity .3s, transform .4s var(--ease-out); }
.global-menu__list a:hover { color: #9fb7ea; padding-left: 8px; }
.global-menu__list a:hover::after { opacity: 1; transform: translateX(-4px); }
@media (prefers-reduced-motion: no-preference) {
	.global-menu__inner > * { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
	.is-menu-open .global-menu__inner > * { opacity: 1; transform: none; transition-delay: .3s; }
	.is-menu-open .global-menu__inner > * + * { transition-delay: .42s; }
}
@media (prefers-reduced-motion: reduce) { .global-menu { transition: none; } }
@media (max-width: 860px) {
	.global-menu { padding-top: 100px; }
	.global-menu__inner { grid-template-columns: 1fr; gap: 40px; }
	.global-menu__nav { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   トップ: メインビジュアル
   ========================================================================== */
.hero { padding: 14px; }
.hero__frame { position: relative; display: flex; overflow: hidden; isolation: isolate; height: min(calc(100svh - 28px), 1000px); min-height: 560px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 19, 34, .35) 0%, rgba(13, 19, 34, .05) 35%, rgba(13, 19, 34, .2) 60%, rgba(13, 19, 34, .8) 100%); }
.hero__inner { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; padding: 140px clamp(24px, 4vw, 64px) clamp(28px, 4vw, 56px); }
.hero__since { position: absolute; top: clamp(120px, 14vh, 150px); right: clamp(24px, 4vw, 64px); display: flex; flex-direction: column; align-items: flex-end; margin: 0; font-family: var(--font-en); font-weight: 800; font-size: clamp(28px, 3vw, 44px); line-height: 1; }
.hero__since span { font-size: 11px; font-weight: 700; letter-spacing: .3em; margin-bottom: 8px; opacity: .8; }
.hero__en { margin: 0 0 clamp(20px, 3vw, 40px); font-family: var(--font-en); font-weight: 800; font-size: clamp(46px, 9.2vw, 164px); line-height: .92; letter-spacing: -.04em; overflow-wrap: normal; }
.hero__line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero__line > span { display: inline-block; }
.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: clamp(20px, 3vw, 32px); border-top: 1px solid rgba(255, 255, 255, .35); }
.hero__ja { margin: 0; font-weight: 700; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.8; letter-spacing: .1em; }
.hero__ja .hero__line { display: inline-block; margin-right: .5em; vertical-align: top; }
.hero__scroll { display: flex; align-items: center; gap: 14px; flex-shrink: 0; color: #fff; text-decoration: none; font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: .3em; }
.hero__scroll:hover { color: #fff; }
.hero__scroll::after { content: ""; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14m-6-6 6 6 6-6'/%3E%3C/svg%3E") center 45% / 18px no-repeat; animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 50% { background-position: center 62%; } }
.hero__pause { position: absolute; top: clamp(120px, 14vh, 150px); left: clamp(24px, 4vw, 64px); width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(13, 19, 34, .2); }
.hero__pause::before, .hero__pause::after { content: ""; position: absolute; top: 13px; width: 3px; height: 12px; background: #fff; border-radius: 1px; }
.hero__pause::before { left: 14px; }
.hero__pause::after { right: 14px; }
.hero__pause[aria-pressed="true"]::before { left: 15px; width: 0; height: 0; top: 12px; background: none; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; }
.hero__pause[aria-pressed="true"]::after { display: none; }
@media (prefers-reduced-motion: no-preference) {
	.hero__line > span { transform: translateY(110%); animation: line-up 1.2s var(--ease-out) forwards; animation-delay: calc(.3s + var(--i) * .12s); }
	.hero__media { animation: hero-zoom 2.4s var(--ease-out) both; }
	.hero__bottom { animation: fade-in 1.2s var(--ease) 1s both; }
	.hero__since { animation: fade-in 1.2s var(--ease) 1.2s both; }
}
@media (prefers-reduced-motion: reduce) { .hero__scroll::after { animation: none; } }
@keyframes line-up { to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: none; } }
@media (max-width: 767px) {
	.hero { padding: 10px; }
	.hero__frame { height: min(calc(100svh - 20px), 900px); }
	.hero__en { font-size: 10.4vw; }
	.hero__bottom { flex-direction: column; align-items: flex-start; }
	.hero__ja .hero__line { display: block; }
	.hero__scroll { display: none; }
	.hero__since { top: 96px; }
	.hero__pause { top: auto; bottom: 24px; left: auto; right: 24px; }
}

/* マーキー */
.marquee { overflow: hidden; padding: clamp(18px, 2.4vw, 32px) 0; border-bottom: 1px solid var(--line); }
.marquee__track { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--font-en); font-weight: 800; font-size: clamp(32px, 5vw, 72px); line-height: 1.1; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(13, 19, 34, .35); white-space: nowrap; }
.marquee__track span:nth-of-type(3n+2) { color: var(--navy); -webkit-text-stroke: 0; }
.marquee__track i { width: clamp(14px, 1.6vw, 22px); height: clamp(14px, 1.6vw, 22px); border-radius: 50%; background: var(--navy); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* お知らせ */
.top-news { display: grid; grid-template-columns: 200px 1fr auto; align-items: center; gap: 16px 48px; padding-block: clamp(36px, 4vw, 56px); }
.top-news__title { display: flex; flex-direction: column; font-family: var(--font-en); font-size: 28px; font-weight: 800; line-height: 1.1; }
.top-news__title small { font-family: var(--font); font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: .1em; margin-top: 6px; }
.top-news__list { list-style: none; margin: 0; padding: 0; min-width: 0; }
.top-news__list li + li { border-top: 1px solid var(--line); }
.top-news__list a { display: flex; align-items: center; gap: 28px; padding: 12px 0; color: var(--text); text-decoration: none; font-size: 15px; }
.top-news__list time { flex-shrink: 0; font-family: var(--font-en); font-weight: 700; font-size: 13px; color: var(--navy); }
.top-news__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-news__list .icon { width: 18px; height: 18px; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.top-news__list a:hover .top-news__text { color: var(--navy); }
.top-news__list a:hover .icon { transform: translateX(4px); color: var(--navy); }
@media (max-width: 860px) { .top-news { grid-template-columns: 1fr; } .top-news .link-arrow { justify-self: end; } }

/* ABOUT */
.about { padding: clamp(80px, 10vw, 160px) 0 clamp(80px, 9vw, 140px); background: var(--bg); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.about__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px clamp(40px, 6vw, 120px); align-items: end; }
.about__title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(30px, 4.4vw, 62px); line-height: 1.45; letter-spacing: .06em; }
.about__title .split { display: block; }
.about__body p { font-size: 15px; line-height: 2.1; }
.about__body .pill { margin-top: 12px; }
.about__visual { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: clamp(56px, 7vw, 100px); }
.about__photo { overflow: hidden; border-radius: var(--r-lg); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--a { grid-column: 1 / 8; aspect-ratio: 16 / 10; }
.about__photo--b { grid-column: 8 / 13; aspect-ratio: 4 / 5; margin-top: clamp(60px, 10vw, 160px); }
.stats { grid-column: 1 / 13; position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 75%; list-style: none; margin: clamp(-140px, -9vw, -40px) 0 0; padding: 0; }
.stats li { padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-md); background: #fff; box-shadow: 0 20px 50px rgba(13, 19, 34, .08); }
.stats strong { display: flex; align-items: baseline; gap: 4px; font-family: var(--font-en); font-weight: 800; font-size: clamp(36px, 4vw, 60px); line-height: 1; color: var(--navy); letter-spacing: -.03em; }
.stats em { font-style: normal; font-family: var(--font); font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.stats small { display: block; margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }
@media (max-width: 960px) {
	.about__grid { grid-template-columns: 1fr; }
	.stats { width: 100%; grid-template-columns: repeat(2, 1fr); margin-top: 0; }
}
@media (max-width: 600px) {
	.about__visual { gap: 12px; }
	.about__photo--a { grid-column: 1 / 13; }
	.about__photo--b { grid-column: 5 / 13; margin-top: -80px; aspect-ratio: 1; border: 6px solid var(--bg); }
	.stats { gap: 10px; }
}

/* 事業(ベントーグリッド) */
.business { padding: clamp(80px, 10vw, 150px) 0; background: var(--ink); color: #fff; }
.business .sec-head__title { color: #fff; }
.business .sec-head__lead { color: rgba(255, 255, 255, .7); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(240px, 24vw, 340px); gap: 14px; list-style: none; margin: 0; padding: 0; }
.bento__item { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--ink-2); }
.bento__item a { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 2.4vw, 32px); color: #fff; text-decoration: none; }
.bento__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.bento__item a::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13, 19, 34, .05) 30%, rgba(13, 19, 34, .8) 100%); }
.bento__num, .bento__body, .bento__arrow { position: relative; z-index: 2; }
.bento__num { position: absolute; top: clamp(18px, 2vw, 28px); left: clamp(20px, 2.4vw, 32px); font-family: var(--font-en); font-weight: 700; font-size: 13px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; }
.bento__body { display: flex; flex-direction: column; gap: 4px; padding-right: 64px; }
.bento__en { font-family: var(--font-en); font-weight: 700; font-size: 11px; letter-spacing: .18em; opacity: .75; }
.bento__title { word-break: keep-all; font-size: clamp(20px, 2vw, 28px); font-weight: 900; letter-spacing: .06em; line-height: 1.3; }
.bento__arrow { position: absolute; right: clamp(18px, 2vw, 28px); bottom: clamp(18px, 2vw, 28px); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink); transition: background-color .3s; }
.bento__arrow .icon { width: 20px; height: 20px; transform: rotate(-45deg); transition: transform .5s var(--ease-out); }
.bento__item a:hover .bento__img { transform: scale(1.08); }
.bento__item a:hover .bento__arrow { background: var(--blue); color: #fff; }
.bento__item a:hover .bento__arrow .icon { transform: none; }
.bento__body--row { flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; }
.bento__logo { width: clamp(180px, 18vw, 260px); }
.bento__note { font-family: var(--font-en); font-weight: 600; letter-spacing: .1em; font-size: 13px; opacity: .85; }
.bento__item--lowbuil .bento__body--row { gap: 6px 16px; }
.bento__item--lowbuil .bento__logo { width: clamp(150px, 13vw, 200px); }
@media (max-width: 960px) {
	.bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
}
@media (max-width: 560px) {
	.bento { grid-template-columns: 1fr; grid-auto-rows: 200px; gap: 10px; }
}

/* 施工事例レール */
.top-works { padding: clamp(80px, 10vw, 150px) 0; overflow: hidden; }
.works-rail { overflow: hidden; padding-bottom: 8px; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.works-rail__track { display: flex; align-items: flex-start; gap: 16px; width: max-content; animation: marquee 80s linear infinite; }
.works-rail:hover .works-rail__track { animation-play-state: paused; }
.works-rail__item { position: relative; width: clamp(240px, 26vw, 400px); aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md); }
.works-rail__item:nth-child(even) { margin-top: 48px; }
.works-rail__item img { width: 100%; height: 100%; object-fit: cover; }
.works-rail__item figcaption { position: absolute; left: 14px; bottom: 14px; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 700; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .works-rail { overflow-x: auto; } .works-rail__track { animation: none; } }

/* 会社情報カード */
.top-company { padding: 0 0 clamp(80px, 10vw, 150px); }
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.link-cards a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 16px; color: var(--ink); text-decoration: none; }
.link-cards figure { grid-column: 1 / 3; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md); margin-bottom: 18px; }
.link-cards img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.link-cards__en { grid-column: 1; font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--navy); }
.link-cards__title { grid-column: 1; font-size: clamp(20px, 2vw, 24px); font-weight: 900; }
.link-cards .icon { grid-column: 2; grid-row: 2 / 4; width: 48px; height: 48px; padding: 13px; border: 1px solid var(--line); border-radius: 50%; transition: background-color .3s, color .3s, transform .4s var(--ease-out); }
.link-cards a:hover img { transform: scale(1.06); }
.link-cards a:hover .icon { background: var(--ink); color: #fff; transform: rotate(-45deg); }
@media (max-width: 760px) { .link-cards { grid-template-columns: 1fr; } .link-cards figure { aspect-ratio: 16 / 9; } }

/* 採用カード */
.top-recruit { padding-bottom: clamp(24px, 3vw, 40px); }
.recruit-card { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 40px; padding: clamp(28px, 5vw, 72px); border-radius: var(--r-lg); background: linear-gradient(135deg, var(--navy) 0%, var(--navy-d) 100%); color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; }
.recruit-card::before { content: "RECRUIT"; position: absolute; right: -2%; bottom: -16%; z-index: -1; font-family: var(--font-en); font-weight: 800; font-size: clamp(100px, 16vw, 260px); line-height: 1; letter-spacing: -.05em; color: rgba(255, 255, 255, .06); }
.recruit-card:hover { color: #fff; }
.recruit-card__title { color: #fff; font-size: clamp(24px, 2.8vw, 38px); font-weight: 900; line-height: 1.5; margin-bottom: 20px; }
.recruit-card__text p:not(.eyebrow) { color: rgba(255, 255, 255, .8); font-size: 14px; }
.recruit-card__img { overflow: hidden; border-radius: var(--r-md); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); transform: rotate(2deg); transition: transform .6s var(--ease-out); }
.recruit-card:hover .recruit-card__img { transform: rotate(0) scale(1.02); }
.recruit-card__img img { width: 100%; }
@media (max-width: 900px) { .recruit-card { grid-template-columns: 1fr; } .recruit-card__img { transform: none; } }

/* ==========================================================================
   下層ページ: 見出し
   ========================================================================== */
.page-hero { padding-top: calc(var(--header-h) + 52px); }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 clamp(24px, 4vw, 48px); padding: 0; font-family: var(--font-en); font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .06em; }
.breadcrumb li + li::before { content: ""; display: inline-block; width: 16px; height: 1px; margin: 0 10px; vertical-align: middle; background: currentColor; opacity: .5; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }
.page-hero__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; padding-bottom: clamp(28px, 4vw, 48px); }
.page-hero__en { margin: 0; font-family: var(--font-en); font-weight: 800; font-size: clamp(42px, 8vw, 132px); line-height: .95; letter-spacing: -.045em; color: var(--ink); text-transform: uppercase; overflow-wrap: normal; }
.page-hero__title { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(16px, 1.5vw, 20px); font-weight: 700; letter-spacing: .12em; padding-bottom: .4em; }
.page-hero__title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }
.page-hero__visual { margin: 0 14px; height: clamp(220px, 34vw, 520px); overflow: hidden; border-radius: var(--r-lg); }
.page-hero__visual img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
	.page-hero__en { animation: rise 1.1s var(--ease-out) .1s both; }
	.page-hero__title { animation: rise 1.1s var(--ease-out) .25s both; }
	.page-hero__visual { animation: clip-in 1.4s var(--ease-out) .2s both; }
	.page-hero__visual img { animation: hero-zoom 2s var(--ease-out) .2s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes clip-in { from { clip-path: inset(30% 0 0 0 round var(--r-lg)); } to { clip-path: inset(0 0 0 0 round var(--r-lg)); } }
@media (max-width: 600px) { .page-hero__visual { margin: 0 10px; } .page-hero { padding-top: calc(var(--header-h) + 36px); } }

/* ==========================================================================
   本文(ブロックエディタ)
   ========================================================================== */
.entry { padding: clamp(64px, 8vw, 120px) var(--gutter) clamp(80px, 10vw, 140px); }
.entry > * { max-width: 1040px; margin-inline: auto; }
.entry > .alignwide { max-width: 1240px; }
.entry > * + * { margin-top: 0; }
.entry p { font-size: 15.5px; line-height: 2.1; }
.entry h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 900; letter-spacing: .04em; margin: 2.2em auto 1em; }
.entry h3 { position: relative; font-size: clamp(19px, 2vw, 23px); font-weight: 700; letter-spacing: .04em; margin: 2em auto .8em; padding-left: 18px; }
.entry h3::before { content: ""; position: absolute; left: 0; top: .35em; bottom: .35em; width: 4px; border-radius: 4px; background: var(--navy); }
.entry > *:first-child { margin-top: 0; }
.entry ul, .entry ol { padding-left: 1.4em; font-size: 15px; }
.entry li { margin-bottom: .4em; }
.entry .has-text-align-center { text-align: center; }

/* 見出しスタイル: リード */
.entry .is-style-nk-lead { text-align: center; font-family: var(--font-serif); font-weight: 600; font-size: clamp(26px, 3.6vw, 46px); line-height: 1.55; letter-spacing: .08em; margin-bottom: 1.1em; }
/* 見出しスタイル: 帯 → 下線付きのセクション見出し */
.entry .is-style-nk-band { display: flex; align-items: center; gap: 14px; padding: 0 0 16px; margin-top: 3em; margin-bottom: .6em; font-size: clamp(20px, 2.2vw, 26px); font-weight: 900; letter-spacing: .08em; border-bottom: 2px solid var(--ink); }
.entry h3.is-style-nk-band { padding-left: 0; }
.entry .is-style-nk-band::before { position: static; width: 12px; height: 12px; border-radius: 50%; }

/* 英字ラベル */
.entry .nk-label { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: clamp(80px, 10vw, 140px); margin-bottom: 14px; font-family: var(--font-en); font-size: 13px; font-weight: 800; letter-spacing: .2em; color: var(--navy); }
.entry .nk-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.entry > .nk-label:first-child { margin-top: 0; }
.entry .nk-label + h2 { margin-top: 0; }

/* ボタン */
.entry .wp-block-buttons { gap: 16px; margin-block: 2.6em; }
.entry .wp-block-button__link { background: var(--ink); color: #fff; }
.entry .wp-block-button__link::after {
	content: ""; width: 36px; height: 36px; border-radius: 50%;
	background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13m-5-6 6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
	transition: transform .4s var(--ease-out);
}
.entry .wp-block-button__link:hover { background: var(--navy); color: #fff; }
.entry .wp-block-button__link:hover::after { transform: rotate(-45deg); }
.entry .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border-color: rgba(13, 19, 34, .2); }

/* 画像・ギャラリー */
.entry .wp-block-image { margin-block: 2em; }
.entry .wp-block-image img { display: block; border-radius: var(--r-md); }
.entry .wp-block-gallery.has-nested-images { --wp--style--unstable-gallery-gap: 14px; gap: 14px; margin-block: 3em 0; }
.entry .wp-block-gallery.nk-photos { max-width: 1240px; margin-top: clamp(56px, 7vw, 96px); }
.entry .wp-block-gallery.nk-photos figure.wp-block-image { aspect-ratio: 4 / 3; overflow: hidden; margin: 0; border-radius: var(--r-md); }
.entry .wp-block-gallery.nk-photos figure.wp-block-image img { height: 100%; object-fit: cover; border-radius: 0; transition: transform 1.2s var(--ease-out); }
.entry .wp-block-gallery.nk-photos figure.wp-block-image:hover img { transform: scale(1.05); }
@media (min-width: 782px) { .entry .wp-block-gallery.nk-photos.columns-3 figure.wp-block-image:nth-child(2) { transform: translateY(40px); } .entry .wp-block-gallery.nk-photos.columns-3 { margin-bottom: 40px; } }
.entry .nk-logo { text-align: center; margin: 0 auto 2.4em; }
.entry .nk-logo img { max-width: min(420px, 80%); margin-inline: auto; border-radius: 0; }
.entry .nk-logo.is-small img { max-width: min(220px, 60%); }
.entry .wp-block-columns { gap: clamp(24px, 4vw, 56px); margin-block: 3em; }

/* 表: 会社概要 */
.entry .wp-block-table { margin-block: 1.6em 0; overflow-x: auto; }
.entry .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.9; }
.entry .wp-block-table td, .entry .wp-block-table th { border: 0; padding: 0; }
.entry .is-style-nk-spec { padding: clamp(8px, 1.4vw, 16px) clamp(20px, 3vw, 40px); border-radius: var(--r-md); background: var(--bg); }
.entry .is-style-nk-spec tr + tr { border-top: 1px solid rgba(13, 19, 34, .08); }
.entry .is-style-nk-spec td { padding: 20px 12px; vertical-align: top; }
.entry .is-style-nk-spec td:first-child { width: 28%; font-weight: 700; color: var(--ink); }
.entry .is-style-nk-spec.is-wide-label td:first-child { width: 44%; }
@media (max-width: 600px) {
	.entry .is-style-nk-spec tr { display: block; padding: 14px 0; }
	.entry .is-style-nk-spec td { display: block; width: auto !important; padding: 2px 0; }
	.entry .is-style-nk-spec td:first-child { color: var(--navy); font-size: 14px; }
}

/* 表: 沿革(タイムライン) */
.entry .is-style-nk-history table { max-width: 900px; margin-inline: auto; }
.entry .is-style-nk-history td { vertical-align: top; padding: 0 0 40px; }
.entry .is-style-nk-history td:first-child { position: relative; width: 170px; padding-right: 56px; text-align: right; font-family: var(--font-en); font-weight: 800; font-size: 30px; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); transition: color .3s; }
.entry .is-style-nk-history td:first-child::before { content: ""; position: absolute; right: 19px; top: 8px; bottom: -8px; width: 2px; background: linear-gradient(var(--navy), #cfd9ef); }
.entry .is-style-nk-history tr:last-child td:first-child::before { display: none; }
.entry .is-style-nk-history td:first-child::after { content: ""; position: absolute; right: 12px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--navy); }
.entry .is-style-nk-history td:last-child { padding-top: 4px; }
.entry .is-style-nk-history tr:hover td:first-child { color: var(--navy); }
@media (max-width: 600px) {
	.entry .is-style-nk-history td:first-child { width: 96px; padding-right: 36px; font-size: 20px; }
	.entry .is-style-nk-history td:first-child::before { right: 11px; top: 6px; }
	.entry .is-style-nk-history td:first-child::after { right: 4px; top: 4px; }
	.entry .is-style-nk-history td { font-size: 14px; }
}

/* 代表挨拶 */
.entry .nk-greeting { max-width: 1240px; margin-top: 0; border-radius: var(--r-lg); overflow: hidden; }
.entry .nk-greeting.wp-block-cover { min-height: clamp(380px, 42vw, 580px); padding: 0; align-items: flex-end; justify-content: flex-start; }
.entry .nk-greeting .wp-block-cover__inner-container { width: auto; max-width: none; margin: 0 0 clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px); padding: clamp(20px, 2.6vw, 36px) clamp(24px, 3vw, 44px); color: var(--ink); border-radius: var(--r-md); background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.entry .nk-greeting .wp-block-cover__image-background { object-position: 70% center; }
.entry .nk-greeting p { margin: 0; line-height: 1.6; }
.entry .nk-greeting .nk-greeting__company { font-size: 14px; font-weight: 700; }
.entry .nk-greeting .nk-greeting__role { font-size: 13px; margin-top: 10px; color: var(--muted); }
.entry .nk-greeting .nk-greeting__name { font-size: clamp(28px, 3.2vw, 42px); font-weight: 600; letter-spacing: .16em; font-family: var(--font-serif); }
.entry .nk-greeting .nk-greeting__en { font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--navy); }
@media (max-width: 767px) {
	.entry .nk-greeting.wp-block-cover { min-height: 440px; }
	.entry .nk-greeting .wp-block-cover__image-background { object-position: 80% center; }
	.entry .nk-greeting .wp-block-cover__inner-container { margin: 0 12px 12px; }
}
.entry .nk-message-title { font-family: var(--font-serif); font-weight: 600; text-align: center; font-size: clamp(26px, 3.4vw, 42px); letter-spacing: .1em; line-height: 1.7; margin: clamp(64px, 8vw, 110px) auto 1.2em; }
.entry .nk-message { font-size: 15.5px; line-height: 2.3; max-width: 820px; }

.entry .wp-block-separator { border: 0; height: 1px; background: var(--line); margin-block: 3em; }
.entry .nk-box { background: var(--bg); padding: clamp(24px, 4vw, 40px); border-radius: var(--r-md); }
.entry .nk-box p:last-child { margin-bottom: 0; }

.entry--post { padding-top: 40px; }
.entry--post > * { max-width: 860px; }
.entry--post .wp-block-image { margin-block: 2.4em; }

/* ==========================================================================
   事業ページ: ほかの事業
   ========================================================================== */
.other-services { padding: clamp(80px, 10vw, 140px) 0; background: var(--bg); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.other-services__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.other-services__list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 10px 10px 14px; border-radius: var(--r-md); background: #fff; color: var(--ink); text-decoration: none; transition: box-shadow .4s, transform .4s var(--ease-out); }
.other-services__list figure { grid-column: 1 / 4; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; margin-bottom: 8px; }
.other-services__list img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.other-services__num { font-family: var(--font-en); font-weight: 700; font-size: 12px; color: var(--navy); padding-left: 6px; }
.other-services__title { font-weight: 700; font-size: 15px; }
.other-services__list .icon { width: 18px; height: 18px; margin-right: 6px; transition: transform .3s var(--ease); }
.other-services__list a:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(13, 19, 34, .08); }
.other-services__list a:hover img { transform: scale(1.06); }
.other-services__list .is-current a { background: var(--ink); color: #fff; }
.other-services__list .is-current .other-services__num { color: #9fb7ea; }
@media (max-width: 960px) { .other-services__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .other-services__list { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ==========================================================================
   施工事例
   ========================================================================== */
.works { padding: clamp(56px, 7vw, 96px) 0 clamp(80px, 10vw, 140px); }
.works__lead { font-size: 15px; max-width: 46em; }
.works-filter { position: sticky; top: 104px; z-index: 20; display: flex; flex-wrap: wrap; gap: 6px; width: fit-content; max-width: 100%; margin: 28px 0 40px; padding: 6px; border-radius: 999px; background: rgba(244, 244, 241, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.works-filter__btn { padding: 10px 22px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font-size: 14px; font-weight: 700; transition: background-color .3s, color .3s; }
.works-filter__btn:hover { color: var(--navy); background: #fff; }
.works-filter__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 700px) { .works-filter { position: static; border-radius: var(--r-md); } .works-filter__btn { padding: 8px 14px; font-size: 13px; } }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.works-grid__item[hidden] { display: none; }
.works-grid__link { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md); background: var(--bg); }
.works-grid__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.works-grid__cap { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.5; }
.works-grid__cap small { font-size: 11px; color: var(--navy); }
.works-grid__link:hover img { transform: scale(1.06); }
.works-grid__link::after { content: ""; position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 18px no-repeat; opacity: 0; transform: scale(.6) rotate(-90deg); transition: opacity .3s, transform .5s var(--ease-out); }
.works-grid__link:hover::after, .works-grid__link:focus-visible::after { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) { .works-grid__item.is-entering { animation: rise .6s var(--ease-out) both; } }
@media (max-width: 960px) { .works-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 480px) { .works-grid { gap: 8px; } .works-grid__cap { left: 8px; bottom: 8px; padding: 3px 10px; font-size: 11px; } }

.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 64px 80px; background: rgba(8, 11, 20, .94); }
.lightbox[hidden] { display: none; }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.lightbox__img { max-width: min(1200px, 100%); max-height: calc(100vh - 170px); object-fit: contain; border-radius: var(--r-md); }
.lightbox__cap { margin-top: 16px; color: #fff; font-size: 14px; letter-spacing: .06em; text-align: center; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: transparent; color: #fff; transition: background-color .3s; }
.lightbox button:hover { background: rgba(255, 255, 255, .15); }
.lightbox button .icon { width: 24px; height: 24px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
	.lightbox { padding: 64px 12px 96px; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
	.lightbox__prev { left: calc(50% - 68px); }
	.lightbox__next { right: calc(50% - 68px); }
}

/* ==========================================================================
   お知らせ
   ========================================================================== */
.news-archive { padding-block: clamp(56px, 7vw, 96px) clamp(80px, 10vw, 140px); }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li + li { margin-top: 10px; }
.news-list a { display: flex; align-items: center; gap: 32px; padding: 26px 28px; border-radius: var(--r-md); background: var(--bg); color: var(--text); text-decoration: none; transition: background-color .3s, transform .4s var(--ease-out); }
.news-list a:hover { background: var(--sky); transform: translateX(6px); }
.news-list time { flex-shrink: 0; font-family: var(--font-en); font-weight: 700; color: var(--navy); }
.news-list__title { flex: 1; font-weight: 700; }
.news-list .icon { width: 40px; height: 40px; padding: 11px; border-radius: 50%; background: #fff; color: var(--ink); }
@media (max-width: 600px) { .news-list a { flex-wrap: wrap; gap: 4px 16px; padding: 20px; } .news-list__title { flex-basis: calc(100% - 56px); } }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; background: var(--bg); color: var(--text); text-decoration: none; font-family: var(--font-en); font-weight: 700; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--ink); color: #fff; }
.post__head { padding-top: clamp(56px, 7vw, 88px); }
.post__head time { font-family: var(--font-en); font-weight: 700; color: var(--navy); }
.post__title { margin-top: 8px; padding-bottom: 28px; border-bottom: 1px solid var(--line); font-size: clamp(24px, 3vw, 36px); font-weight: 900; }
.post__nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-bottom: clamp(80px, 10vw, 140px); font-size: 14px; }
.post__nav div:last-child { text-align: right; }
.empty, .notfound { padding-block: 24px 80px; text-align: center; }
.notfound { padding-top: 64px; }

/* ==========================================================================
   お問い合わせ(Contact Form 7)
   ========================================================================== */
.page-contact .entry > .wpcf7 { max-width: 920px; padding: clamp(24px, 4vw, 56px); border-radius: var(--r-lg); background: var(--bg); }
.wpcf7 .hidden-fields-container { display: none; border: 0; margin: 0; padding: 0; }
.nk-tel-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; max-width: 920px; padding: clamp(24px, 3vw, 36px) clamp(24px, 4vw, 48px); margin-block: 2em 24px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.entry .nk-tel-box p { margin: 0; font-weight: 700; }
.nk-tel-box a { font-family: var(--font-en); font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -.01em; }
.nk-tel-box a:hover { color: #9fb7ea; }
.form-row { display: grid; grid-template-columns: 220px 1fr; gap: 10px 28px; padding: 20px 0; }
.form-row + .form-row { border-top: 1px solid rgba(13, 19, 34, .08); }
.form-row > label { padding-top: 14px; font-weight: 700; font-size: 15px; color: var(--ink); }
.form-row .req, .form-row .opt { display: inline-block; margin-left: 10px; padding: 1px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: 2px; color: #fff; background: var(--navy); }
.form-row .opt { background: #a6adb9; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 select, .wpcf7 textarea {
	width: 100%; padding: 15px 18px; border: 1px solid transparent; border-radius: var(--r-sm); background: #fff;
	font: inherit; font-size: 16px; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.wpcf7 select { max-width: 280px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 44px; }
.wpcf7 textarea { min-height: 220px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(22, 63, 142, .14); }
.wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; color: #c0392b; }
.form-agree { margin: 28px 0 8px; text-align: center; font-size: 14px; }
.form-submit { text-align: center; margin-top: 24px; }
.wpcf7 .wpcf7-submit { min-width: 300px; min-height: 64px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .1em; cursor: pointer; transition: background-color .3s, transform .3s var(--ease); }
.wpcf7 .wpcf7-submit:hover { background: var(--navy); transform: translateY(-2px); }
.wpcf7 .wpcf7-spinner { display: block; margin: 12px auto 0; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 16px 20px; border-width: 1px; border-radius: var(--r-sm); font-size: 14px; }
@media (max-width: 767px) {
	.form-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
	.form-row > label { padding-top: 0; }
	.wpcf7 .wpcf7-submit { width: 100%; min-width: 0; }
}

/* ==========================================================================
   CTA・フッター
   ========================================================================== */
.cta { padding: clamp(24px, 3vw, 40px) 0 14px; }
.cta__card { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; padding: clamp(32px, 6vw, 88px); border-radius: var(--r-lg); background: var(--sky); overflow: hidden; isolation: isolate; }
.cta__card::before { content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; right: -18%; top: -60%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(61, 111, 214, .28), transparent 65%); }
.cta__title { font-family: var(--font-en); font-weight: 800; font-size: clamp(40px, 6vw, 92px); line-height: .98; letter-spacing: -.045em; margin-bottom: 24px; }
.cta__text p:last-child { margin: 0; font-size: 15px; }
.cta__text .eyebrow { color: var(--navy); }
.cta__actions { display: grid; gap: 12px; }
.cta__tel, .cta__form { position: relative; display: flex; flex-direction: column; padding: 22px 28px; border-radius: var(--r-md); text-decoration: none; transition: transform .4s var(--ease-out), background-color .3s; }
.cta__tel { background: #fff; color: var(--ink); }
.cta__form { background: var(--ink); color: #fff; }
.cta__tel small, .cta__form small { font-size: 12px; font-weight: 400; opacity: .7; }
.cta__tel strong { display: flex; align-items: center; gap: 10px; font-family: var(--font-en); font-weight: 800; font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.01em; }
.cta__tel .icon { width: 22px; height: 22px; color: var(--navy); }
.cta__form strong { font-size: 18px; font-weight: 700; }
.cta__form-arrow { position: absolute; right: 20px; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: #fff; color: var(--ink); transition: transform .4s var(--ease-out); }
.cta__form-arrow .icon { width: 20px; height: 20px; }
.cta__tel:hover, .cta__form:hover { transform: translateY(-3px); }
.cta__tel:hover { color: var(--ink); }
.cta__form:hover { color: #fff; background: var(--navy); }
.cta__form:hover .cta__form-arrow { transform: rotate(-45deg); }
@media (max-width: 900px) { .cta__card { grid-template-columns: 1fr; } }

.site-footer { position: relative; margin: 0 14px 14px; padding-top: clamp(56px, 7vw, 96px); border-radius: var(--r-lg); background: var(--ink); color: #fff; overflow: hidden; }
.site-footer__top { display: grid; grid-template-columns: 1fr 1.2fr 1.1fr; gap: 48px; }
.site-footer__logo img { width: 200px; }
.site-footer__brand address { margin-top: 24px; font-size: 14px; line-height: 2; color: rgba(255, 255, 255, .75); }
.site-footer__brand address a { color: #fff; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.site-footer__head { margin: 0 0 14px; font-family: var(--font-en); font-weight: 800; font-size: 12px; letter-spacing: .18em; color: #9fb7ea; }
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list a { display: inline-block; padding: 5px 0; color: rgba(255, 255, 255, .85); font-size: 14px; text-decoration: none; transition: color .3s, transform .3s var(--ease); }
.site-footer__list a:hover { color: #fff; transform: translateX(4px); }
.site-footer__map { min-height: 240px; border-radius: var(--r-md); overflow: hidden; background: var(--ink-2); }
.site-footer__map iframe { display: block; width: 100%; height: 100%; min-height: 240px; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }
.site-footer__word { margin: clamp(48px, 6vw, 80px) 0 0; padding: 0 var(--gutter); font-family: var(--font-en); font-weight: 800; font-size: clamp(30px, 8vw, 148px); line-height: .9; letter-spacing: -.05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22); text-align: center; overflow: hidden; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 24px 28px; margin-top: clamp(20px, 3vw, 32px); border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: rgba(255, 255, 255, .6); }
.site-footer__bottom a { color: rgba(255, 255, 255, .6); text-decoration: none; }
.site-footer__bottom a:hover { color: #fff; }
@media (max-width: 1000px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__map { grid-column: 1 / 3; } }
@media (max-width: 640px) { .site-footer { margin: 0 10px 10px; } .site-footer__top { grid-template-columns: 1fr; } .site-footer__map { grid-column: auto; } }

.pagetop { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(13, 19, 34, .2); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, visibility .3s, transform .4s var(--ease-out), background-color .3s; }
.pagetop .icon { width: 20px; height: 20px; transform: rotate(-90deg); }
.pagetop.is-show { opacity: 1; visibility: visible; transform: none; }
.pagetop:hover { background: var(--navy); color: #fff; }
