/* AGRESTE HOME — WordPressテーマ スタイル
   デザイン案C「西海岸スタイル・ガレージハウス」(2026-08-05 正式決定)をベースに移植。
   参考: カリフォルニア工務店のトーン&マナー — 白+ベージュの明るい配色、スタイル別の見せ方、開放的なライフスタイル訴求

   ※ Webフォント(Zen Kaku Gothic New / Bebas Neue)は functions.php の wp_enqueue_style で読み込んでいます。
      デザイン案側(design-proposals/c-california/css/style.css)では @import で読み込んでいる点だけが異なります。 */

:root {
	--bg: #f5f5f5;
	--bg-alt: #eceae6;
	--ink: #1f2733;
	--ink-soft: #5b6472;
	--sand: #d8c7a1;
	--sky: #3f7ea3;
	--sky-deep: #22415a;
	--line: #e4dcc9;
	--font-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
	--radius: 6px;
	--shadow: 0 14px 34px rgba(31, 39, 51, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--bg); line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 900; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }

/* スマホのハンバーガーメニュー(画面外に待機している .global-nav)が
   横スクロール範囲に計上されてしまうのを防ぐ */
html, body { overflow-x: hidden; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }
.section { padding: 108px 0; }
.section-alt { background: var(--bg-alt); }
@media (max-width: 640px) { .section { padding: 64px 0; } .container, .container-narrow { padding: 0 20px; } }

.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.24em; color: var(--sky); margin-bottom: 14px; text-transform: uppercase; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 640px) { .section-head.center-mobile { margin-left: auto; margin-right: auto; text-align: center; } }
.section-title { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.4; text-transform: uppercase; letter-spacing: 0.02em; }
.section-lead { margin-top: 18px; color: var(--ink-soft); font-size: 15px; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 32px; border-radius: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border: 2px solid var(--ink); transition: all 0.2s ease; }
.btn-primary { background: var(--sky); color: #fff; border-color: var(--sky); }
.btn-primary:hover { background: var(--sky-deep); border-color: var(--sky-deep); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-lg { padding: 18px 40px; }

/* ---- ヘッダー ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 250, 246, 0.95); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark, .brand .custom-logo { width: 32px; height: 32px; object-fit: contain; }
.brand-name { font-size: 16px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.global-nav { display: flex; align-items: center; gap: 36px; }
.nav-list { display: flex; gap: 28px; }
.nav-list a { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 2px solid transparent; padding-bottom: 4px; }
.nav-list a:hover,
.nav-list a.is-current,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .current-menu-parent > a,
.nav-list .current-menu-ancestor > a { border-color: var(--sky); color: var(--sky-deep); }
.nav-toggle { display: none; background: none; border: 0; width: 30px; height: 22px; position: relative; cursor: pointer; padding: 0; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.global-nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); height: 100vh; background: var(--bg); transform: translateX(100%); transition: transform 0.3s ease; flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px; gap: 0; box-shadow: -10px 0 30px rgba(0,0,0,0.1); overflow-y: auto; }
	.global-nav.is-open { transform: translateX(0); }
	.global-nav .nav-list { flex-direction: column; gap: 24px; }
	.global-nav .nav-list a { font-size: 16px; }
	.global-nav .btn { margin-top: 30px; }
}

/* ---- ヒーロー(短め・中央揃え) ---- */
.hero { position: relative; height: 72vh; min-height: 460px; display: flex; align-items: center; justify-content: center; text-align: center; }
@media (max-width: 640px) { .hero { height: 52vh; min-height: 380px; } }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,14,0.22), rgba(10,12,14,0.36)); }
.hero-inner { position: relative; z-index: 1; max-width: 760px; padding: 0 32px; color: #fff; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.85); margin-bottom: 18px; }
.hero-catch { font-family: 'Bebas Neue', sans-serif; font-size: clamp(44px, 9vw, 96px); line-height: 1.1; color: #fff; letter-spacing: 0.03em; font-weight: 400; }
.hero-sub { margin-top: 18px; font-size: clamp(15px, 2vw, 19px); letter-spacing: 0.08em; color: rgba(255,255,255,0.92); }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- コンセプト(好きを、建てよう / 横スクロールカード) ---- */
.concept-showcase { position: relative; background: var(--bg); padding: 112px 0; }
.concept-showcase .section-title { text-transform: none; }
.concept-showcase .section-lead { margin-top: 16px; }
.concept-showcase .section-head { margin-bottom: 56px; }

/* 自動スクロールは assets/js/main.js が scrollLeft を進めることで実現している。
   こうしておくと、スマホはブラウザ標準の横スワイプ、PCはマウスのドラッグで手動操作できる
   (CSSのtransformアニメーションのままだと手で動かせない)。 */
.concept-marquee {
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain; /* 端まで動かしてもブラウザの「戻る」を誘発させない */
	-webkit-overflow-scrolling: touch;
	scroll-behavior: auto; /* ループの巻き戻しがスムーススクロールされると破綻するため */
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none;
	cursor: grab;
	user-select: none;
}
.concept-marquee::-webkit-scrollbar { display: none; }
.concept-marquee.is-dragging { cursor: grabbing; }
.concept-track { display: flex; gap: 40px; width: max-content; padding: 0 32px; }

.concept-card { position: relative; flex: 0 0 480px; height: 380px; border-radius: 24px; overflow: hidden; box-shadow: 0 18px 46px rgba(43, 38, 34, 0.32); }
.concept-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease; -webkit-user-drag: none; user-drag: none; }
.concept-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(43, 38, 34, 0.9), rgba(43, 38, 34, 0.15) 60%, transparent); }
.concept-card-body { position: absolute; inset: 0; z-index: 1; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; }
.concept-card-heading { transition: transform 0.5s ease; }
.concept-card-title { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.15em; font-size: 28px; color: #fff; text-transform: none; }
.concept-card-sub { font-size: 18px; font-weight: 500; color: #fff; margin-top: 8px; }
.concept-card-desc { font-size: 14px; color: #dddddd; line-height: 1.7; margin-top: 12px; max-width: 260px; opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.5s ease; }
.concept-card-arrow { position: absolute; right: 32px; bottom: 32px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.5s ease; }
/* タッチ端末ではスワイプ後に :hover が残ってしまうため、ホバー演出はマウスのある端末限定にする */
@media (hover: hover) {
	.concept-card:hover img { transform: scale(1.06); filter: brightness(1.05); }
	.concept-card:hover .concept-card-heading { transform: translateY(-12px); }
	.concept-card:hover .concept-card-desc { opacity: 1; transform: translateY(0); }
	.concept-card:hover .concept-card-arrow { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
	.concept-showcase { padding: 72px 0; }
	.concept-track { gap: 20px; padding: 0 20px; }
	.concept-card { flex-basis: 280px; height: 240px; border-radius: 18px; }
	.concept-card-body { padding: 22px; }
	.concept-card-title { font-size: 20px; }
	.concept-card-sub { font-size: 14px; margin-top: 6px; }
}

/* ---- 通常スプリット ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.split-reverse .split-media { order: 2; }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; border-radius: var(--radius); }
.split-body h2 { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.5; margin-bottom: 20px; text-transform: uppercase; }
.split-body p { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.split-logo .split-media img { aspect-ratio: 1/1; object-fit: contain; background: #1c1a18; }
@media (max-width: 900px) { .split, .split-reverse { grid-template-columns: 1fr; gap: 28px; } .split-reverse .split-media { order: 0; } }
/* 代表あいさつのロゴは縦積みにせず、スマホでもPCと同じ横並びを保つ(縦積みだとロゴが巨大になるため) */
@media (max-width: 900px) { .split-logo { grid-template-columns: minmax(92px, 32%) 1fr; gap: 24px; } }
@media (max-width: 900px) { .split-logo .split-body h2 { margin-bottom: 12px; } }

/* ---- 大切にしていること(アイコン+ナンバーのリスト) ---- */
.value-list { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); max-width: 760px; margin: 0 auto; }
.value-item { display: grid; grid-template-columns: 90px 1fr; column-gap: 32px; align-items: start; padding: 36px 0; border-top: 1px solid var(--line); }
.value-icon-num { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.value-icon { width: 30px; height: 30px; color: var(--sky); }
.value-num { font-family: var(--font-sans); font-size: 34px; font-weight: 700; color: var(--sky-deep); line-height: 1; }
.value-item h3 { grid-column: 2; margin-top: 2px; font-size: 19px; text-transform: none; }
.value-item p { grid-column: 2; margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; max-width: 560px; }
@media (max-width: 640px) { .value-item { grid-template-columns: 56px 1fr; column-gap: 18px; } .value-num { font-size: 28px; } }

/* ---- 施工事例(Instagram風・正方形アルバムグリッド) ---- */
.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.works-grid-preview { max-width: 960px; margin: 0 auto; gap: 8px; }
.work-card { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 8px; }
.work-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-card::after { content: ""; position: absolute; inset: 0; background: rgba(63,126,163,0.16); opacity: 0; transition: opacity 0.3s ease; }
/* タッチ端末ではタップ後に :hover が残り、色被せが戻らなくなるためホバー限定にする */
@media (hover: hover) {
	.work-card:hover::after { opacity: 1; }
}
.work-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px 12px; background: linear-gradient(0deg, rgba(15,18,22,0.82), rgba(15,18,22,0)); color: #fff; z-index: 1; }
.work-caption .tag { font-size: 10px; font-weight: 700; color: #a9d3e8; letter-spacing: 0.1em; text-transform: uppercase; }
.work-caption h3 { margin-top: 4px; font-size: 12.5px; text-transform: none; font-weight: 700; color: #fff; line-height: 1.3; }
@media (max-width: 900px) { .works-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
	.works-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
	.works-grid-preview { max-width: none; }
	.work-caption { padding: 10px 10px 8px; }
	.work-caption h3 { font-size: 11px; }
}

/* ---- 施工事例の写真切り替え ----
   カードに写真を2枚重ねて置き、上の1枚(.work-img-hover)をフェードイン/アウトさせる。
   上の写真は施工事例の編集画面「切り替え後の写真」で設定する(未設定なら切り替えなし)。
   - マウスのある端末: ホバー中だけ切り替わる(CSSのみ)
   - タッチ端末: ホバーがないので、タップで .is-swapped が付け外しされる(assets/js/main.js)
   ホバー指定を @media (hover: hover) で囲っているのは、タッチ端末でタップ後に :hover が
   残って切り替えが戻らなくなるのを防ぐため。 */
.work-img-hover { opacity: 0; transition: opacity 0.25s ease; }
@media (hover: hover) {
	.work-card:hover .work-img-hover { opacity: 1; }
}
.work-card.is-swapped .work-img-hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .work-img-hover { transition: none; } }

/* ---- サービス(全幅フォト・アイコン一覧) ---- */
.service-feature { position: relative; background-size: cover; background-position: center; padding: 120px 0; color: #fff; }
.service-feature-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,14,0.4), rgba(10,12,14,0.52)); }
.service-feature .container { position: relative; z-index: 1; }
.service-feature .eyebrow { color: rgba(255,255,255,0.85); }
.service-feature .section-title { color: #fff; }
.service-feature-row { display: flex; justify-content: center; gap: 60px; margin-top: 64px; flex-wrap: wrap; }
.service-feature-item { display: flex; flex-direction: column; align-items: center; text-align: center; width: 200px; }
.service-feature-icon { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--sky-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.service-feature-icon svg { width: 26px; height: 26px; }
.service-feature-item h3 { position: relative; font-size: 16px; color: #fff; text-transform: none; margin-bottom: 10px; padding-top: 24px; }
.service-feature-item h3::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 20px; background: rgba(255,255,255,0.5); transform: translateX(-50%); }
.service-feature-item p { font-size: 13px; color: rgba(255,255,255,0.85); }
@media (max-width: 900px) { .service-feature-row { gap: 36px; } .service-feature-item { width: 140px; } }
@media (max-width: 640px) {
	.service-feature { padding: 56px 0; }
	.service-feature-row { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 8px; margin-top: 36px; }
	.service-feature-item { flex: 1 1 0; width: auto; }
	.service-feature-icon { width: 46px; height: 46px; margin-bottom: 10px; }
	.service-feature-icon svg { width: 20px; height: 20px; }
	.service-feature-item h3 { font-size: 11.5px; line-height: 1.3; padding-top: 14px; margin-bottom: 0; }
	.service-feature-item h3::before { height: 12px; }
	.service-feature-item p { display: none; }
}

.works-note { margin-top: 26px; font-size: 12.5px; color: var(--ink-soft); text-align: center; }
.works-instagram { text-align: center; margin-top: 14px; }
.works-instagram a { display: inline-flex; align-items: center; gap: 6px; color: var(--sky); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.section-more { margin-top: 44px; text-align: center; }

/* ---- お客様の声(引用リスト) ---- */
.voice-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.voice-item { border-top: 1px solid var(--line); padding-top: 24px; }
.voice-mark { font-family: var(--font-sans); font-size: 40px; color: var(--sky); line-height: 1; }
.voice-text { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); }
.voice-meta { margin-top: 16px; font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink); }
@media (max-width: 900px) { .voice-list { grid-template-columns: 1fr; gap: 32px; } }

/* ---- CTA帯 ---- */
.cta-band { position: relative; background: var(--sky-deep); background-size: cover; background-position: center; color: #fff; padding: 90px 0; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34, 65, 90, 0.82), rgba(34, 65, 90, 0.9)); }
.cta-band .container-narrow { position: relative; z-index: 1; }
.cta-band .eyebrow { color: #a9d3e8; }
.cta-band h2 { font-size: clamp(22px, 3.2vw, 32px); line-height: 1.6; color: #fff; text-transform: uppercase; }
.cta-actions { margin-top: 36px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-mail { font-size: 20px; font-weight: 700; color: #fff; }
@media (max-width: 640px) { .cta-band { padding: 56px 0; } .cta-actions { margin-top: 24px; } }

/* ---- フッター(多カラム) ---- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.8); padding: 76px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.14em; color: #fff; text-transform: uppercase; margin-bottom: 18px; }
/* 屋号(.footer-brand-name)を対象から外す。素の `.footer-col p` だとクラス1つの
   `.footer-brand-name` より詳細度が高くなり、屋号の 16px/#fff が打ち消されるため */
.footer-col a, .footer-col p:not(.footer-brand-name) { display: block; font-size: 13.5px; color: rgba(255,255,255,0.72); margin-bottom: 10px; }
.footer-brand-name { font-size: 16px; font-weight: 900; color: #fff; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.copyright { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 11.5px; color: rgba(255,255,255,0.5); text-align: center; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
	/* スマホのフッターは1カラム・中央ぞろえ。MENU/INFO/CONTACT の見出しは省き、
	   メニューは区切り線つきの縦1列にして、タップしやすい高さを確保する */
	.site-footer { padding: 40px 0 18px; text-align: center; }
	.footer-grid { grid-template-columns: 1fr; gap: 0; }
	.footer-col h4 { display: none; }
	.footer-col p:not(.footer-brand-name) { font-size: 12.5px; line-height: 1.7; margin-bottom: 0; }
	/* スマホでは屋号を少し小さく。.footer-col を付けているのはLP版(.footer-lp)の屋号を16pxのまま残すため */
	.footer-col .footer-brand-name { font-size: 15px; margin-bottom: 6px; }
	.footer-grid > .footer-col:first-child { margin-bottom: 22px; }
	.footer-grid > .footer-col:nth-child(2) a,
	.footer-grid > .footer-col:nth-child(3) a { display: block; margin: 0; padding: 13px 0; font-size: 13.5px; line-height: 1.4; border-top: 1px solid rgba(255,255,255,0.12); }
	.footer-grid > .footer-col:nth-child(3) a:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
	.footer-grid > .footer-col:nth-child(4) { margin-top: 22px; }
	.footer-grid > .footer-col:nth-child(4) a { display: inline-block; margin-top: 2px; padding: 11px 6px; font-size: 13px; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
	.copyright { margin-top: 20px; padding-top: 14px; font-size: 11px; }
}

/* ---- 内部ページ ---- */
.page-header { position: relative; background: var(--bg-alt); background-size: cover; background-position: center; padding: 84px 0 56px; text-align: center; }
.page-header-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,25,30,0.5), rgba(20,25,30,0.66)); }
.page-header-photo .eyebrow, .page-header-photo .page-title, .page-header-photo .page-lead { position: relative; z-index: 1; color: #fff; }
.page-header-photo .page-lead { color: rgba(255,255,255,0.85); }
.about-banner { width: 100%; }
.about-banner img { width: 100%; height: auto; display: block; }
.about-banner.about-banner-lp { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 640px) { .about-banner-lp { width: calc(100% + 40px); margin: 0 -20px; border-radius: 0; box-shadow: none; } }
.page-title { font-size: clamp(26px, 3.6vw, 36px); margin-top: 4px; text-transform: uppercase; }
.page-lead { margin-top: 16px; color: var(--ink-soft); font-size: 14.5px; max-width: 560px; margin-left: auto; margin-right: auto; }

.heading-lg { font-size: 20px; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.04em; padding-bottom: 12px; border-bottom: 2px solid var(--sky); display: inline-block; }
@media (max-width: 640px) { #company-info { text-align: center; } }
.entry-content { color: var(--ink-soft); font-size: 15px; }
.entry-content p { margin-bottom: 16px; }

.company-table { width: 100%; border-collapse: collapse; margin-bottom: 64px; }
.company-table th, .company-table td { text-align: left; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 400; }
.company-table th { width: 160px; color: var(--ink-soft); font-weight: 700; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 640px) {
	.company-table, .company-table tbody, .company-table tr, .company-table th, .company-table td { display: block; width: auto; }
	.company-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.company-table th, .company-table td { border: none; padding: 0; }
	.company-table th { margin-bottom: 4px; }
}
.map-placeholder {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 28px 30px;
	background: var(--bg-alt);
	border-radius: var(--radius);
	color: var(--ink);
}
.map-placeholder svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--sky); }
.map-placeholder span { font-size: 14.5px; line-height: 1.8; color: var(--ink-soft); }

/* ---- サービス(写真+テキストの横並びリスト) ---- */
.badge-priority { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; color: #fff; background: var(--sky); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; text-transform: uppercase; }
.service-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 96px; }
.service-row { background: var(--bg); display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; padding: 8px; }
.service-row img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); }
.service-row h3 { font-size: 20px; margin-bottom: 12px; text-transform: none; }
.service-row p { color: var(--ink-soft); font-size: 14.5px; }
.service-row .service-body { padding: 24px 28px 24px 0; }
@media (max-width: 800px) { .service-row { grid-template-columns: 1fr; } .service-row .service-body { padding: 12px 20px 24px; } }
@media (max-width: 560px) { .service-grid-c { grid-template-columns: 1fr; } }

.flow-list { counter-reset: flow; }
.flow-item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.flow-num { font-size: 22px; font-weight: 900; color: var(--sky); }
.flow-item h4 { font-size: 16px; margin-bottom: 8px; text-transform: none; }
.flow-item p { color: var(--ink-soft); font-size: 14px; }

.works-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
@media (max-width: 640px) { .works-filter { justify-content: center; } }
.works-filter a { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 20px; border: 2px solid #eceae6; border-radius: 999px; color: var(--ink-soft); }
.works-filter a.is-active { background: var(--sky); color: #fff; border-color: var(--sky); }

.contact-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 68px; }
.contact-box { background: var(--bg-alt); padding: 34px; border-radius: var(--radius); }
.contact-box h2 { font-size: 13px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-box .contact-value { font-size: 19px; font-weight: 700; color: var(--sky-deep); display: block; margin-bottom: 6px; word-break: break-all; }
.contact-box p.note { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 700px) { .contact-boxes { grid-template-columns: 1fr; } }

.contact-form-placeholder { background: var(--bg-alt); padding: 46px; text-align: center; border-radius: var(--radius); color: var(--ink-soft); font-size: 14px; }
.contact-form-badge { font-size: 10.5px; background: var(--sky); color: #fff; padding: 4px 12px; border-radius: 999px; margin-left: 10px; vertical-align: middle; text-transform: uppercase; }

/* ---- トップへ戻るボタン ---- */
.back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--sky-deep);
	color: #fff;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.25s;
	z-index: 60;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--sky); }
@media (max-width: 640px) { .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* ---- スクロールアニメーション ---- */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; transition: none; } }


/* ======================================================================
   ここから下は WordPress 固有のスタイル。
   デザイン案C(静的HTML)には存在しない、WordPressが出力する要素のためのもの。
   ====================================================================== */

/* --- アクセシビリティ --- */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.icon { width: 1.1em; height: 1.1em; vertical-align: -0.18em; }

/* --- 管理バー表示時、sticky ヘッダーが管理バーに隠れないようにする --- */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* --- フッターメニュー(wp_nav_menu は ul/li を出力するため、案Cの素の <a> と揃える) --- */
.footer-col .nav-list { display: block; }
.footer-col .nav-list li { margin: 0; }
.footer-col .nav-list a { display: block; font-size: 13.5px; color: rgba(255,255,255,0.72); margin-bottom: 10px; letter-spacing: normal; text-transform: none; font-weight: 400; border: 0; padding: 0; }
@media (max-width: 640px) {
	/* スマホでは案Cの素の <a> と同じく、区切り線つきの縦1列にする */
	.footer-col .nav-list a { display: block; margin: 0; padding: 13px 0; font-size: 13.5px; line-height: 1.4; border-top: 1px solid rgba(255,255,255,0.12); }
}

/* --- 記事本文(施工事例・お客様の声の詳細、固定ページの本文) --- */
.entry-media { margin-bottom: 36px; }
.entry-media img, .entry-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.entry-terms { margin-bottom: 20px; }
.entry-terms .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--sky); padding: 4px 14px; border-radius: 999px; margin-right: 8px; }
.entry-content h2 { font-size: 22px; color: var(--ink); margin: 2.2em 0 0.9em; padding-bottom: 10px; border-bottom: 2px solid var(--sky); display: inline-block; text-transform: none; }
.entry-content h3 { font-size: 18px; color: var(--ink); margin: 1.8em 0 0.7em; text-transform: none; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1.2em; list-style: revert; }
.entry-content img { border-radius: var(--radius); }
.entry-content a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.entry-footer { margin-top: 52px; text-align: center; }
.empty-note { color: var(--ink-soft); font-size: 14.5px; text-align: center; padding: 40px 0; }

/* --- 汎用の記事リスト(index.php。ブログは運用しない方針だが、検索結果などの保険として残している) --- */
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-list-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.post-list-item a { display: block; padding: 24px 28px; }
.post-list-item time { font-size: 12.5px; color: var(--ink-soft); }
.post-list-title { font-size: 18px; margin: 6px 0 8px; text-transform: none; }
.post-list-excerpt { font-size: 14px; color: var(--ink-soft); }

/* --- ページネーション --- */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid var(--line);
	color: var(--ink);
	font-size: 14px;
	font-weight: 700;
}
.page-numbers.current { background: var(--sky); border-color: var(--sky); color: #fff; }

/* --- お問い合わせフォーム(テーマ内蔵フォーム / Contact Form 7 の両方に効く) ---
   本番テーマでは Contact Form 7 が同じ役割のフォームを出力するため、
   セレクタは .contact-form-area 配下の素の要素(input/select/textarea)にも効くようにしてある。 */
.form-sample-note { background: #fff6e5; border: 1px solid var(--sand); border-radius: var(--radius); padding: 18px 22px; font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); margin-bottom: 32px; }
.form-sample-note strong { color: var(--ink); }

.contact-form { display: flex; flex-direction: column; gap: 26px; }
/* hidden属性より display:flex が優先されてしまうため、明示的に消す(送信後にフォームを隠す用) */
.contact-form[hidden], .form-thanks[hidden] { display: none; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; display: flex; align-items: center; gap: 10px; }
.form-required { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: #fff; background: #c0552f; padding: 3px 9px; border-radius: 999px; }

.form-control,
.contact-form-area input[type="text"],
.contact-form-area input[type="email"],
.contact-form-area input[type="tel"],
.contact-form-area textarea,
.contact-form-area select {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.7;
	color: var(--ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus,
.contact-form-area input:focus,
.contact-form-area textarea:focus,
.contact-form-area select:focus {
	outline: none;
	border-color: var(--sky);
	box-shadow: 0 0 0 3px rgba(63, 126, 163, 0.18);
}
.form-control::placeholder { color: #a7adb6; }
.form-textarea { resize: vertical; min-height: 160px; }
.form-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 14px) center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 44px; }

.form-hint { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }

/* エラー文は JS が textContent で入れる(HTMLとして解釈させない)。文字が無いときは場所を取らない */
.form-error { font-size: 13px; font-weight: 700; color: #c0552f; line-height: 1.7; }
.form-error:empty { display: none; }
.form-control.is-invalid { border-color: #c0552f; background: #fdf4f1; }
.form-error-summary { background: #fdf4f1; border: 1px solid #e8c3b5; border-radius: var(--radius); padding: 14px 18px; }

/* ボット対策のおとり項目。画面には出さないが display:none は使わない(一部のボットが無視するため) */
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-row-check { gap: 10px; }
.form-check { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.7; cursor: pointer; }
.form-check input[type="checkbox"] { width: 20px; height: 20px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--sky); cursor: pointer; }
.form-check .form-required { margin-left: 10px; }

.form-actions { text-align: center; margin-top: 10px; }
.form-actions .btn { cursor: pointer; font-family: inherit; }

.form-thanks { background: var(--bg-alt); border-radius: var(--radius); padding: 48px 40px; text-align: center; }
.form-thanks-title { font-size: 20px; font-weight: 900; color: var(--sky-deep); margin-bottom: 16px; }
.form-thanks-body { font-size: 15px; line-height: 2; color: var(--ink); margin-bottom: 20px; white-space: pre-line; }
.form-thanks-note { font-size: 13px; color: var(--ink-soft); line-height: 1.9; margin-bottom: 26px; }

/* Contact Form 7 の送信ボタン(クラス指定なしで [submit] を置いた場合の保険) */
.contact-form-area input[type="submit"],
.contact-form-area button[type="submit"]:not(.btn) {
	display: inline-block;
	padding: 18px 40px;
	background: var(--sky);
	color: #fff;
	border: 2px solid var(--sky);
	border-radius: 8px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.2s ease;
}
.contact-form-area input[type="submit"]:hover,
.contact-form-area button[type="submit"]:not(.btn):hover { background: var(--sky-deep); border-color: var(--sky-deep); }

@media (max-width: 640px) {
	.contact-form { gap: 22px; }
	.form-thanks { padding: 36px 24px; }
	.form-actions .btn { width: 100%; justify-content: center; }
	.contact-form-area input[type="submit"] { width: 100%; }
}
