/* efoo 2026 トップページのスタイル。カラートークンと動きの定義 */

:root {
	--accent: #15803D;
	--ink: #14201A;
	--muted: #44504A;
	--subtle: #6B776F;
	--line: #E2E7E3;
	--line2: #C6CEC9;
	--ground: #FAFAF7;
	--band: #F1F4F0;
	--surface: #FFFFFF;
	/* 追従ヘッダーの位置と高さ。アンカーの着地位置（scroll-padding-top）もこれから決める */
	--header-top: 16px;
	--header-h: 66px;
	/* セクションの左右の余白。スマホ幅で詰める */
	--gutter: 32px;
	/* 記事詳細の幅。見出し帯の内側・アイキャッチ・記事の終わりと、本文（17px で 1 行 42 字） */
	--entry-w: 880px;
	--prose-w: 720px;
}

/* アンカーの着地位置を追従ヘッダーの下にする（ページ内リンク・送信後の #wpzf-… など全ページ共通） */
html { scroll-padding-top: calc(var(--header-top) + var(--header-h) + 16px); }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: 'Noto Sans JP', sans-serif; }
a { color: var(--muted); text-decoration: none; }
a:hover { color: var(--ink); }

.en { font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif; }
.mono { font-family: 'JetBrains Mono', monospace; }

.nav-link { font-size: 14px; letter-spacing: 0.08em; padding: 8px 4px; }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--ground); font-weight: 700; font-size: 15px; padding: 16px 32px; border-radius: 8px; transition: transform .25s ease, box-shadow .25s ease; }
.btn-primary:hover { color: var(--ground); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(21, 128, 61, 0.25); }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line2); color: var(--ink); font-weight: 500; font-size: 15px; padding: 16px 32px; border-radius: 8px; transition: border-color .25s ease, transform .25s ease; }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

.card { --card-transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; transition: var(--card-transition); }
.card:hover { transform: translateY(-8px); border-color: var(--accent) !important; box-shadow: 0 20px 48px rgba(20, 32, 26, 0.12); }
.card:hover .card-arrow { background: var(--accent); color: var(--ground); }
.card-arrow { transition: background .35s ease, color .35s ease, transform .35s ease; }
.card:hover .card-arrow { transform: translate(3px, -3px); }
.news-row { transition: background .25s ease; }
.news-row:hover { background: var(--band); }

.cursor { display: inline-block; width: 10px; height: 1.1em; background: var(--accent); vertical-align: text-bottom; margin-left: 6px; animation: blink 1.1s steps(1) infinite; }
.marquee-inner { display: flex; gap: 64px; align-items: center; flex-shrink: 0; animation: marquee 60s linear infinite; }
.marquee-rev { font-size: 22px; font-weight: 700; letter-spacing: 0.24em; animation-duration: 80s; animation-direction: reverse; }
.dot { position: absolute; border-radius: 50%; background: var(--accent); animation: floatY 7s ease-in-out infinite; }
.glow { animation: pulseGlow 6s ease-in-out infinite; }
.ghost { color: transparent; -webkit-text-stroke: 1px #C9D4CE; }
.srv-img { transition: transform .6s cubic-bezier(.22, .9, .3, 1); }
.card:hover .srv-img { transform: scale(1.06); }
.site-header { position: sticky; top: var(--header-top); z-index: 60; padding: 0 24px; }
.float-nav { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; max-width: 1100px; min-height: var(--header-h); margin: 0 auto; padding: 10px 12px 10px 30px; box-sizing: border-box; border-radius: 999px; border: 1px solid rgba(226, 231, 227, 0.8); box-shadow: 0 8px 32px rgba(20, 32, 26, 0.08); backdrop-filter: blur(14px); background: rgba(255, 255, 255, 0.72); }
.site-nav { display: flex; flex-wrap: wrap; gap: 28px; margin-left: auto; align-items: center; }
.nav-toggle { display: none; }
.tphoto { overflow: hidden; border-radius: 16px; }
.tphoto img { transition: transform .6s cubic-bezier(.22, .9, .3, 1); }
.tphoto:hover img { transform: scale(1.05); }
.scroll-line { width: 1px; height: 36px; background: var(--line2); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; top: 0; left: 0; width: 1px; height: 100%; transform: translateY(-100%); background: var(--accent); animation: scrollHint 2.2s ease-in-out infinite; }
.motion-paused .cursor, .motion-paused .live-dot { animation-play-state: paused; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; animation: blink 1.4s steps(1) infinite; }

/* 見出しの文字送りと「前へ」の粒子集合 */
.char { display: inline-block; }
.word-assemble { display: inline-block; color: var(--accent); }
/* 粒子は演出の間だけ見せる。動きを減らす設定に閲覧中に切り替えて演出が止まったときも、残さず隠れる */
.pt { position: absolute; background: var(--accent); border-radius: var(--r, 50%); opacity: 0; }

/* ターミナル（Iceberg 配色） */
.term { background: #161821; border-radius: 16px; padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 56px rgba(22, 24, 33, 0.3); }
.term-head { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #262B3D; padding-bottom: 10px; }
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-body { margin: 0; font-size: min(12px, calc((100vw - 80px) / 27)); line-height: 2; height: 216px; overflow: hidden; color: #C6C8D1; }
.term-line { display: block; white-space: pre; }
.term-cursor { width: 8px; height: 1em; vertical-align: -2px; background: #84A0C6; }

/* 動画の物体検出オーバーレイ */
.cv-box { position: absolute; border: 1.5px solid; box-sizing: border-box; transition: left .22s linear, top .22s linear, width .22s linear, height .22s linear; }
.cv-box.cv-slow { transition-duration: 1s; transition-timing-function: ease-in-out; }
.cv-box.cv-snap { transition: none; }
.cv-tag { position: absolute; top: -17px; left: -1.5px; color: #0D1310; font-size: 9px; font-weight: 500; letter-spacing: 0.05em; padding: 2px 7px; white-space: nowrap; }
.cv-corner { position: absolute; width: 18px; height: 18px; border-color: rgba(139, 240, 174, 0.9); border-style: solid; border-width: 0; }
.cv-chip { position: absolute; left: 38px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; background: rgba(10, 20, 14, 0.72); color: #D7F5E2; font-size: 9px; letter-spacing: 0.12em; padding: 5px 10px; }

/* サービススライダー */
.svc-track { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x proximity; padding: 40px 4px 52px; margin: -36px -4px -32px; scrollbar-width: none; }
.svc-track::-webkit-scrollbar { display: none; }
.nav-btn { transition: border-color .25s ease, color .25s ease, transform .25s ease; }
.nav-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* スマホフレーム（l-shift LP の PhoneFrame と同寸法） */
.phone { --pb: calc(var(--pw) * .024); --pr: calc(var(--pw) * .13); box-sizing: border-box; width: var(--pw); padding: var(--pb); border-radius: calc(var(--pr) + var(--pb)); background: #0B0F12; box-shadow: inset 0 0 0 1px #5A636B, var(--phone-shadow, 0 22px 40px -22px rgba(10, 40, 25, .45)); }
.phone-screen { overflow: hidden; border-radius: var(--pr); background: #FFFFFF; }
.phone-status { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: calc(var(--pw) * .13); color: #10161A; }
.phone-time { justify-self: center; font-weight: 600; font-size: calc(var(--pw) * .042); line-height: 1; letter-spacing: -.01em; }
.phone-island { width: calc(var(--pw) * .3); height: calc(var(--pw) * .088); border-radius: 999px; background: #0B0F12; }
.phone-icons { justify-self: center; display: block; width: calc(var(--pw) * .15); height: auto; }
.phone img { display: block; width: 100%; height: auto; }
.phone-home { display: flex; justify-content: center; align-items: flex-end; height: calc(var(--pw) * .07); padding-bottom: calc(var(--pw) * .022); box-sizing: border-box; }
.phone-home span { width: calc(var(--pw) * .33); height: max(2px, calc(var(--pw) * .012)); border-radius: 999px; background: #10161A; }

/*
 * 出現の演出（ヒーローの文字送り・粒子・スクロール連動の出現）。
 * 初期状態を隠す規則は、動きを減らす設定でないときにだけ適用する。
 * 動きを減らす設定では演出そのものを適用せず、最初から表示しておく。
 * スクロール連動は animation-timeline: view() を使い、未対応ブラウザは JS（.no-sdt と IntersectionObserver）で代替する
 */
@media (prefers-reduced-motion: no-preference) {
	.reveal { opacity: 0; animation: fadeUp .9s cubic-bezier(.22, .9, .3, 1) forwards; }
	.d1 { animation-delay: .1s; } .d2 { animation-delay: .25s; } .d3 { animation-delay: .4s; } .d4 { animation-delay: .55s; } .d5 { animation-delay: .7s; }
	.char { opacity: 0; transform: translateY(0.6em) rotate(3deg); animation: charUp .7s cubic-bezier(.22, .9, .3, 1) forwards; }
	.word-assemble { opacity: 0; filter: blur(10px); transform: scale(1.05); animation: assemble 1s cubic-bezier(.25, .8, .25, 1) 1.5s forwards; }
	.pt { animation: ptForm var(--dur, 1.9s) linear var(--delay, .2s) both; }
	@supports (animation-timeline: view()) {
		html:not(.no-sdt) .sr { opacity: 0; translate: 0 44px; animation: srIn 1ms linear forwards; animation-timeline: view(); animation-range: entry 0% entry 40%; }
		html:not(.no-sdt) .sr2 { animation-range: entry 0% entry 55%; }
		html:not(.no-sdt) .sr3 { animation-range: entry 0% entry 70%; }
	}
	.no-sdt .sr { --sr-transition: opacity .7s ease var(--sr-delay, 0s), translate .7s cubic-bezier(.22, .9, .3, 1) var(--sr-delay, 0s); opacity: 0; translate: 0 44px; transition: var(--sr-transition); }
	.no-sdt .sr2 { --sr-delay: .12s; }
	.no-sdt .sr3 { --sr-delay: .24s; }
	.no-sdt .sr.card { transition: var(--sr-transition), var(--card-transition); }
	.no-sdt .sr.sr-in { opacity: 1; translate: none; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(-26px); opacity: .4; } }
@keyframes pulseGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes charUp { to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes assemble { to { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes ptForm { 0% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.5); animation-timing-function: cubic-bezier(.45, 0, .6, .5); } 12% { opacity: var(--o, .9); } 36% { transform: translate(var(--mx), var(--my)) scale(1.15); animation-timing-function: cubic-bezier(.25, .4, .25, 1); } 62% { opacity: var(--o, .9); transform: translate(0, 0) scale(1); } 84% { opacity: var(--o, .9); transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(0, 0) scale(.9); } }
@keyframes srIn { to { opacity: 1; translate: 0 0; } }
@keyframes scrollHint { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

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

/* ホバーのマイクロインタラクション */
.nav-link { position: relative; transition: color .25s ease; }
.nav-link::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 2px; border-radius: 999px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.22, .9, .3, 1); }
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { transform: scaleX(1); }
.pill-cta { transition: transform .25s ease, box-shadow .25s ease, filter .25s ease; }
.pill-cta:hover { color: #FAFAF7; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(21, 128, 61, .3); filter: brightness(1.06); }
.btn-primary svg { transition: transform .25s ease; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost:hover { color: var(--accent); }
.logo-dot { display: inline-block; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
a:hover .logo-dot { transform: scale(1.5); }
footer nav a { position: relative; transition: color .25s ease, transform .25s ease; display: inline-block; }
footer nav a:hover { color: var(--accent); transform: translateX(3px); }
.sns-btn { color: #44504A; transition: border-color .25s ease, color .25s ease, transform .25s ease; }
.sns-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.news-title { transition: color .25s ease; }
.news-row:hover .news-title { color: var(--accent); }
.cat-chip { font-size: 13px; font-weight: 500; color: #44504A; background: #FFFFFF; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; transition: color .25s ease, border-color .25s ease, transform .25s ease; }
.cat-chip:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.cat-chip.is-active { background: var(--ink); border-color: var(--ink); color: #FAFAF7; }
.cat-chip.is-active:hover { color: #FAFAF7; transform: none; }

/* トップのセクション。幅で変わる指定だけをクラスに持つ（ほかはテンプレートのインライン） */
.hero { position: relative; margin-top: -62px; padding: 140px var(--gutter) 120px; box-sizing: border-box; overflow: hidden; }
.hero-title { font-size: min(84px, 13.5vw); }
.hero-lead { font-size: 18px; }
.sec { max-width: 1240px; margin: 0 auto; padding: 120px var(--gutter) 100px; box-sizing: border-box; display: flex; flex-direction: column; gap: 56px; }
.sec-title { margin: 0; font-size: 44px; font-weight: 900; color: var(--ink); }
.band-inner { max-width: 1240px; margin: 0 auto; padding: 110px var(--gutter); box-sizing: border-box; }
.strength-inner { display: flex; flex-wrap: wrap; gap: 64px; }
.strength-title { margin: 0; font-size: 42px; line-height: 1.4; font-weight: 900; color: var(--ink); }
.strength-item { display: flex; gap: 24px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.svc-card { flex: 0 0 440px; }
.svc-card-body { display: flex; flex-direction: column; gap: 16px; padding: 26px 28px 30px; flex-grow: 1; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.team-photo { display: block; width: 100%; height: 300px; object-fit: cover; }
.cta { position: relative; padding: 140px var(--gutter); box-sizing: border-box; overflow: hidden; }
.cta-title { margin: 0; font-size: 52px; line-height: 1.4; font-weight: 900; color: #FFFFFF; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 64px var(--gutter) 48px; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.footer-copy { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) 40px; box-sizing: border-box; font-size: 12px; color: var(--subtle); letter-spacing: 0.06em; }

/* 下層ページ共通 */
.page-band { padding: 96px var(--gutter) 56px; text-align: center; display: flex; flex-direction: column; gap: 16px; background: linear-gradient(180deg, #F1F4F0, rgba(241, 244, 240, 0)); }
.page-band-label { margin: 0; color: var(--accent); font-size: 13px; font-weight: 500; letter-spacing: .3em; }
.page-band-title { margin: 0; font-size: 44px; font-weight: 900; color: var(--ink); }
.list-wrap { max-width: 1240px; margin: 0 auto; padding: 48px var(--gutter) 110px; box-sizing: border-box; }
/*
 * 記事詳細（single.php）。見出し帯 → 帯の下端にまたがるアイキャッチ → 本文 → 記事の終わり。
 * 見出し帯は追従ヘッダーの裏まで伸ばし、上端に地の色の継ぎ目を出さない
 */
.entry-head { background: var(--band); border-bottom: 1px solid var(--line); margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-top) + var(--header-h) + 96px) var(--gutter) 64px; box-sizing: border-box; }
.entry-head-inner { max-width: var(--entry-w); margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.entry-meta { margin: 0; display: flex; align-items: center; gap: 14px; }
.entry-term { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 4px 12px; transition: background .25s ease, color .25s ease; }
a.entry-term:hover { background: var(--accent); color: var(--ground); }
.entry-date { color: var(--subtle); font-size: 13px; letter-spacing: 0.08em; }
/* 小書きの仮名を行頭に置かず、対応ブラウザでは文節の切れ目で折り返す */
.entry-title { margin: 0; font-size: 40px; line-height: 1.4; font-weight: 900; letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; line-break: strict; word-break: normal; word-break: auto-phrase; overflow-wrap: anywhere; }
.entry-title--long { font-size: 32px; line-height: 1.5; }
/* アイキャッチ。元画像の比によらず 16:9 に切り抜く */
.entry-cover { max-width: calc(var(--entry-w) + 2 * var(--gutter)); margin: -40px auto 0; padding: 0 var(--gutter); box-sizing: border-box; }
.entry-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--surface); box-shadow: 0 24px 56px rgba(20, 32, 26, 0.12); }

/* 本文の組版。記事詳細と固定ページ（会社概要・お問い合わせ）で共用する */
.prose { --h2-size: 24px; max-width: calc(var(--prose-w) + 2 * var(--gutter)); margin: 0 auto; padding: 56px var(--gutter) 72px; box-sizing: border-box; font-size: 17px; line-height: 1.95; color: #2A332E; overflow-wrap: anywhere; }
.entry-cover + .prose { padding-top: 64px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.6em; }
.prose p:empty { display: none; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .25s ease; }
.prose a:hover { color: var(--ink); }
/*
 * 見出し。プレスリリースは h2 の代わりに「太字 1 項目だけの箇条書き」を使うため、その太字を h2 と同じ見た目にする。
 * 太字の後ろに文が続く項目（「おもな材料／…」）は、太字だけが見出しになり、続きは本文の組版のまま残る
 */
.prose h2, .prose ul:has(> li:only-child > strong:only-child) > li > strong:only-child { display: block; padding: 0 0 0 16px; border-left: 3px solid var(--accent); font-size: var(--h2-size); line-height: 1.5; font-weight: 700; color: var(--ink); }
.prose h2 { margin: 2.6em 0 1em; }
.prose h2 strong { font-weight: inherit; color: inherit; }
.prose h2.has-background { background: none; }
.prose ul:has(> li:only-child > strong:only-child) { margin: calc(2.6 * var(--h2-size)) 0 var(--h2-size); padding: 0; list-style: none; }
.prose ul:has(> li:only-child > strong:only-child) > li { margin: 0; }
.prose h3 { margin: 2em 0 .7em; font-size: 20px; line-height: 1.5; font-weight: 700; color: var(--ink); }
/* 箇条書き */
.prose ul, .prose ol { margin: 0 0 1.6em; padding-left: 1.5em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
/*
 * 画像・ギャラリー。本文の直下にあるものは、画面に余裕があれば本文より左右 80px ずつ広く（--entry-w）置く。
 * 広げる量は画面幅から決め、本文の左右の余白（--gutter）より外へは出さない
 */
.prose figure { margin: 2.4em 0; }
.prose > figure, .prose > .wp-block-gallery { margin-left: calc(-1 * clamp(0px, (100vw - var(--prose-w)) / 2 - var(--gutter), (var(--entry-w) - var(--prose-w)) / 2)); margin-right: calc(-1 * clamp(0px, (100vw - var(--prose-w)) / 2 - var(--gutter), (var(--entry-w) - var(--prose-w)) / 2)); }
.prose img { max-width: 100%; height: auto; }
.prose figure img { display: block; margin-left: auto; margin-right: auto; border-radius: 12px; }
.prose figcaption { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--subtle); text-align: left; }
.prose .wp-block-gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.prose .wp-block-gallery > figure { flex: 1 1 calc(50% - 6px); margin: 0; }
.prose .wp-block-gallery > figure:only-child { flex-basis: 100%; }
.prose .wp-block-gallery img { width: 100%; }
.prose .wp-block-gallery.is-cropped > figure:not(:only-child) img { aspect-ratio: 4 / 3; object-fit: cover; }
/* 引用 */
.prose blockquote { margin: 2em 0; padding: 24px 28px; background: var(--band); border-radius: 12px; font-size: 16px; color: var(--muted); }
.prose blockquote p { margin: 0 0 1em; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { font-style: normal; font-size: 13px; color: var(--subtle); }
/* 埋め込み。oEmbed に解決できず URL だけが残った埋め込みは、リンクのカードにする */
.prose .wp-block-embed { margin: 1.6em 0; }
.prose .wp-block-embed__wrapper:not(:has(iframe)) { padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.6; }
.prose iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
/* 表 */
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.6em; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
.prose th { background: var(--band); white-space: nowrap; }
/* 区切り線 */
.prose hr { margin: 3em auto; width: 48px; border: 0; border-top: 2px solid var(--line2); }
.prose input[type="text"], .prose input[type="email"], .prose input[type="tel"], .prose input[type="url"], .prose textarea, .prose select { width: 100%; box-sizing: border-box; border: 1px solid var(--line2); border-radius: 10px; padding: 13px 16px; font: inherit; background: #FFFFFF; transition: border-color .25s ease, box-shadow .25s ease; }
.prose input:focus, .prose textarea:focus, .prose select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21, 128, 61, .12); }
.prose input[type="submit"], .prose button[type="submit"] { display: inline-flex; width: auto; background: var(--accent); color: #FAFAF7; border: 0; border-radius: 999px; font-weight: 700; font-size: 15px; padding: 15px 40px; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.prose input[type="submit"]:hover, .prose button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(21, 128, 61, .3); }
/* 掲載実績。本文は媒体名・掲載日・外部記事へのリンクの 3 行だけなので、カードに収めてリンクをボタンにする */
.entry--media .prose { max-width: calc(var(--entry-w) + 2 * var(--gutter)); padding-bottom: 0; }
.entry--media .prose-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px 36px; }
.entry--media .prose p { margin: 0 0 .5em; font-size: 15px; color: var(--muted); }
.entry--media .prose p:has(> a[target="_blank"]:only-child) { margin: 24px 0 0; }
.entry--media .prose p > a[target="_blank"]:only-child { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; box-sizing: border-box; background: var(--accent); color: var(--ground); font-weight: 700; font-size: 15px; line-height: 1.5; padding: 14px 24px; border-radius: 999px; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.entry--media .prose p > a[target="_blank"]:only-child:hover { color: var(--ground); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(21, 128, 61, .3); }
.entry--media .prose p > a[target="_blank"]:only-child::after { content: ''; flex: 0 0 auto; width: 14px; height: 14px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat; }

/* 記事の終わり。同じ分類のほかの記事と、一覧・お問い合わせへの導線 */
.entry-foot { max-width: calc(var(--entry-w) + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 110px; box-sizing: border-box; }
.entry-foot-rule { border: 0; border-top: 1px solid var(--line); margin: 0 0 40px; }
.entry-more-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.entry-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.entry-more + .entry-nav { margin-top: 40px; }
.entry-nav-contact { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; transition: color .25s ease; }
.entry-nav-contact:hover { color: var(--accent); }

/* サイト内検索（404・検索結果） */
.search-form { display: flex; gap: 10px; max-width: 560px; }
.search-input { flex: 1 1 auto; min-width: 0; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line2); border-radius: 999px; padding: 13px 20px; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .25s ease, box-shadow .25s ease; }
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21, 128, 61, .12); }
.search-submit { flex: 0 0 auto; background: var(--accent); color: var(--ground); border: 0; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; padding: 13px 28px; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.search-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(21, 128, 61, .3); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ページ送り */
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
/* 全体リセットが無いため、枠線と余白を幅・高さに含めて 44×44 の円にする */
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; box-sizing: border-box; padding: 0 10px; border: 1px solid var(--line2); border-radius: 999px; color: var(--ink); font-weight: 500; transition: color .25s ease, border-color .25s ease, transform .25s ease; }
.pagination .page-numbers:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #FAFAF7; }
.pagination .page-numbers.dots { border: 0; }

/* サービススライダーのフルブリード。トラックは画面右端まで伸び、右端のフェードで続きを示す */
.svc-wrap { position: relative; margin-right: calc(50% - 50vw); }
.svc-track { margin-right: 0; padding-right: calc(50vw - 50% + 20px); }
.svc-fade { position: absolute; top: 0; bottom: 20px; right: 0; width: 110px; background: linear-gradient(90deg, rgba(250, 250, 247, 0), #FAFAF7); pointer-events: none; }

/* フッターの特大ロゴ。狭い画面では画面幅に合わせて縮め、はみ出さないようにする（"efoo." は約 2.25em 幅） */
.footer-logo { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; font-size: min(220px, 36vw); font-weight: 700; line-height: 0.85; letter-spacing: -0.05em; color: #EDF1EE; user-select: none; }

/* お問い合わせフォーム（WPZOOM Forms）。カード型のモダンな見た目に整える */
.wpzoom-forms_form { display: block; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 44px 44px 40px; box-shadow: 0 24px 56px rgba(20, 32, 26, 0.08); }
.wpzoom-forms_form .wp-block-column { flex-basis: 100% !important; }
.wpzoom-forms_form label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; margin: 26px 0 10px; }
.wpzoom-forms_form label:first-of-type { margin-top: 0; }
.wpzoom-forms_form label label { display: inline; margin: 0; }
.wpzoom-forms_form .wp-block-wpzoom-forms-required { color: var(--accent); margin-left: 2px; }
.wpzoom-forms_form input[type="text"], .wpzoom-forms_form input[type="email"], .wpzoom-forms_form input[type="tel"], .wpzoom-forms_form input[type="url"], .wpzoom-forms_form textarea, .wpzoom-forms_form select { width: 100%; box-sizing: border-box; background: var(--ground); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.wpzoom-forms_form input:hover, .wpzoom-forms_form textarea:hover { border-color: var(--line2); }
.wpzoom-forms_form input:focus, .wpzoom-forms_form textarea:focus, .wpzoom-forms_form select:focus { outline: none; background: #FFFFFF; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.12); }
.wpzoom-forms_form textarea { min-height: 180px; resize: vertical; }
.wpzoom-forms_form input[type="submit"] { display: inline-flex; width: auto; margin-top: 30px; background: var(--accent); color: #FAFAF7; border: 0; border-radius: 999px; font-weight: 700; font-size: 16px; padding: 18px 56px; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, filter .25s ease; }
.wpzoom-forms_form input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(21, 128, 61, 0.3); filter: brightness(1.05); }
@media (max-width: 640px) { .wpzoom-forms_form { padding: 28px 22px; } }

/* 一覧行のサムネイル */
.news-thumb { flex: 0 0 112px; }
.news-thumb img { display: block; width: 112px; height: 72px; object-fit: cover; border-radius: 10px; transition: transform .45s cubic-bezier(.22, .9, .3, 1); }
.news-row:hover .news-thumb img { transform: scale(1.06); }
.news-thumb { overflow: hidden; border-radius: 10px; }

/*
 * 狭い画面。ブレークポイントは 2 段：
 * 860px 以下 … ヘッダーのナビが 1 行に収まらなくなる幅。ナビを畳んでメニューボタンで開く
 * 640px 以下 … スマホ幅。余白・見出し・カード幅・チームの列数を詰める
 */
@media (max-width: 860px) {
	.float-nav { flex-wrap: nowrap; padding: 10px 10px 10px 24px; }
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid var(--line2); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
	.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
	.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; border-radius: 999px; background: currentColor; transition: transform .25s ease, background .25s ease; }
	.nav-toggle-bars { position: relative; }
	.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
	.nav-toggle-bars::before { top: -6px; }
	.nav-toggle-bars::after { top: 6px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
	.site-nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 4px; margin: 0; padding: 16px; max-height: calc(100vh - var(--header-top) - var(--header-h) - 24px); overflow-y: auto; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 48px rgba(20, 32, 26, 0.14); }
	.site-header.is-open .site-nav { display: flex; }
	.site-nav .nav-link { padding: 12px 8px; font-size: 15px; }
	.site-nav .nav-link::after { left: 8px; right: auto; width: 32px; bottom: 6px; }
	.site-nav .pill-cta { margin-top: 8px; text-align: center; }
}

@media (max-width: 640px) {
	:root { --gutter: 20px; }
	.hero { padding-top: 112px; padding-bottom: 80px; }
	.hero-lead { font-size: 16px; }
	.sec { padding-top: 72px; padding-bottom: 64px; gap: 36px; }
	.sec-title { font-size: 30px; line-height: 1.4; }
	.band-inner { padding-top: 72px; padding-bottom: 72px; }
	.strength-inner { gap: 40px; }
	.strength-title { font-size: 28px; }
	.strength-item { gap: 16px; padding: 22px; }
	/* カードは画面幅から左右の余白と、次のカードの見切れ分（36px）を引いた幅 */
	.svc-track { gap: 16px; }
	.svc-card { flex-basis: calc(100vw - 2 * var(--gutter) - 36px); }
	.svc-card-body { padding: 22px 22px 26px; }
	.svc-fade { width: 48px; }
	.team-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.team-photo { height: auto; aspect-ratio: 3 / 2; }
	.cta { padding-top: 88px; padding-bottom: 88px; }
	.cta-title { font-size: 26px; }
	.footer-inner { padding-top: 48px; padding-bottom: 40px; gap: 32px; }
	.page-band { padding-top: 64px; padding-bottom: 40px; }
	.page-band-title { font-size: 30px; }
	.list-wrap { padding-top: 32px; padding-bottom: 72px; }
	.entry-head { padding-top: calc(var(--header-top) + var(--header-h) + 72px); padding-bottom: 48px; }
	.entry-head-inner { gap: 16px; }
	.entry-title { font-size: 26px; line-height: 1.5; }
	.entry-title--long { font-size: 22px; line-height: 1.6; }
	.entry-cover { margin-top: -20px; }
	.entry-cover img { border-radius: 12px; }
	.prose { --h2-size: 21px; padding: 36px var(--gutter) 56px; font-size: 16px; line-height: 1.9; }
	.entry-cover + .prose { padding-top: 40px; }
	.prose h2 { margin-top: 2.2em; }
	.prose ul:has(> li:only-child > strong:only-child) { margin-top: calc(2.2 * var(--h2-size)); }
	.prose h3 { font-size: 18px; }
	.prose figure { margin: 1.8em 0; }
	.prose .wp-block-gallery > figure { flex-basis: 100%; }
	.prose blockquote { padding: 18px 20px; }
	.prose table { display: block; overflow-x: auto; }
	.entry--media .prose-card { padding: 22px 20px; }
	/* ボタンは幅いっぱい。矢印は右端に固定し、文言が 2 行になっても位置を動かさない */
	.entry--media .prose p > a[target="_blank"]:only-child { display: block; position: relative; padding-right: 48px; text-align: center; }
	.entry--media .prose p > a[target="_blank"]:only-child::after { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
	.entry-foot { padding-top: 32px; padding-bottom: 72px; }
	.entry-foot-rule { margin-bottom: 32px; }
}
