/* =========================================================
   施工実績アーカイブ ビフォーアフター版（施工実績カテゴリでのみ読み込み）
   緑 #24722b / 濃緑 #1b5620 / 薄緑 #eaf4ea / クリーム #fbf8f1 / オレンジ #ee7622（文字地は #bf560c）
   ========================================================= */
html, body { overflow-x: clip; }
body { background: #fbf8f1; }

/* 旧タイトル帯・旧見出しは新デザインに置き換え */
.c-pageTitle,
.custom-construct-heading { display: none !important; }
.p-termContent > .p-blogParts { margin-bottom: 0; }

.hba, .hba-card, .hba-point {
	--g: #24722b; --gd: #1b5620; --gl: #eaf4ea; --gm: #cfe0cc; --cream: #fbf8f1;
	--ink: #1f2a1f; --sub: #5a6559; --gray: #3d423d; --or: #ee7622; --ord: #bf560c;
	font-family: 'Zen Maru Gothic', sans-serif;
	color: var(--ink);
}
.hba *, .hba-card *, .hba-point * { box-sizing: border-box; }
.hba h1, .hba h2, .hba h3, .hba p, .hba-card h3, .hba-card p, .hba-point p { margin: 0; padding: 0; border: 0; background: none; }
.hba h1::before, .hba h1::after, .hba h2::before, .hba h2::after, .hba h3::before, .hba h3::after,
.hba-card h3::before, .hba-card h3::after { display: none; content: none; }
.hba button { font-family: inherit; }
.hba img, .hba-card img, .hba-point img { max-width: none; border: 0; }
.hba-en { font-family: 'Outfit', sans-serif; font-weight: 800; }
.hba-ic { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.hba-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hba-c-green { color: var(--g); }
.hba-c-orange { color: var(--or); }
.hba-c-gray { color: var(--sub); }
.hba-label { font-size: 13px; letter-spacing: .24em; color: var(--g); }
.hba-label--light { color: #cfe8c9; }
.hba-h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 900; line-height: 1.35; color: var(--ink); }

/* ---------- 見出し（ヒーロー・絞り込み後） ---------- */
.hba-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: var(--g); line-height: 1.4; }
.hba-eyebrow .hba-en { letter-spacing: .24em; font-size: 14px; }
.hba-eyebrow__line { width: 48px; height: 2px; background: var(--g); }
.hba-head { padding: 28px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.hba-head__title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; line-height: 1.35; color: var(--ink); }

.hba-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 44px; align-items: center; padding: 24px 0 64px; }
.hba-hero__text { display: flex; flex-direction: column; gap: 22px; }
.hba-nw { display: inline-block; }
.hba-hero__title { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.32; font-weight: 900; letter-spacing: .02em; color: var(--ink); }
.hba-marker { background: linear-gradient(transparent 62%, #cfe8c9 62%); }
.hba-hero__lead { font-size: 17px; line-height: 1.9; color: #3c463b; font-weight: 500; }
.hba-hero__stats { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.hba-stat { background: var(--g); color: #fff; border-radius: 22px; padding: 16px 24px; display: flex; align-items: baseline; gap: 8px; font-weight: 700; }
.hba-stat__num { font-size: 44px; line-height: 1; }
.hba-pill { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--gd); background: var(--gl); border-radius: 999px; padding: 10px 16px; }
.hba-pill .hba-ic { color: var(--g); }

.hba-hero__visual { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hba-slider { position: relative; aspect-ratio: 4 / 3; border-radius: 30px; overflow: hidden; background: #dfe6dc; box-shadow: 0 30px 60px -30px rgba(27, 86, 32, .55); }
.hba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hba-slider__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.hba-slider__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; pointer-events: none; }
.hba-slider__knob { position: absolute; top: 50%; left: var(--pos); width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: #fff; color: var(--g); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.hba-slider__knob .hba-ic { width: 28px; height: 28px; }
.hba-slider__tb { position: absolute; top: 18px; left: 18px; }
.hba-slider__ta { position: absolute; top: 18px; right: 18px; }
.hba-slider__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.hba-slider__range:focus-visible + * { outline: none; }
.hba-slider:focus-within { outline: 3px solid var(--or); outline-offset: 3px; }

.hba-tag { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .14em; color: #fff; border-radius: 999px; padding: 8px 16px; pointer-events: none; line-height: 1; }
.hba-tag--before { background: var(--gray); }
.hba-tag--after { background: var(--ord); }
.hba-tag--sm { font-size: 11px; padding: 6px 12px; }

.hba-talk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.hba-talk__item { display: flex; align-items: flex-end; gap: 4px; }
.hba-talk__item--r { flex-direction: row-reverse; }
.hba-talk__item img { height: 130px; width: auto; flex-shrink: 0; }
.hba-bubble { background: #fff; border: 2px solid #c9d2c6; border-radius: 18px; padding: 10px 14px; font-size: 14px; line-height: 1.6; font-weight: 700; color: var(--gray); margin-bottom: 52px !important; }
.hba-bubble .hba-en { display: block; font-size: 11px; letter-spacing: .16em; color: var(--sub); }
.hba-bubble--after { background: #fff3e8; border-color: var(--or); color: #7a3606; }
.hba-bubble--after .hba-en { color: var(--ord); }

.hba-hero__case { display: flex; flex-direction: column; gap: 10px; }
.hba-hero__caseTitle { font-size: 15px; font-weight: 900; color: var(--ink); text-decoration: none; }
.hba-hero__caseTitle:hover { text-decoration: underline; color: var(--ink); }
.hba-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hba-thumb { padding: 0; border: 3px solid transparent; border-radius: 16px; background: none; cursor: pointer; min-height: 44px; transition: transform .2s; }
.hba-thumb:hover { transform: translateY(-3px); }
.hba-thumb[aria-pressed="true"] { border-color: var(--g); }
.hba-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 12px; }

/* ---------- 絞り込み ---------- */
.hba-search { background: #fff; border-radius: 40px; padding: 48px clamp(16px, 3vw, 40px) 40px; display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 90px; }
.hba-search__intro { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.hba-search__intro img { height: 160px; width: auto; }
.hba-search__intro > div { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; flex: 1 1 280px; }
.hba-note { font-size: 15px; font-weight: 700; color: var(--gd); background: var(--gl); border-radius: 14px; padding: 10px 14px !important; align-self: flex-start; }
.hba-panel { background: var(--cream); border: 2px solid #e4ecdf; border-radius: 32px; padding: clamp(18px, 3vw, 32px); display: flex; flex-direction: column; gap: 28px; }
.hba-step { display: flex; flex-direction: column; gap: 14px; }
.hba-step__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hba-step__head h3 { font-size: 20px; font-weight: 900; color: var(--ink); }
.hba-step__num { width: 34px; height: 34px; border-radius: 50%; background: var(--g); color: #fff; display: flex; align-items: center; justify-content: center; }
.hba-step__hint { font-size: 13px; font-weight: 700; color: var(--sub); }
.hba-find { margin-left: auto; display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--gm); border-radius: 999px; padding: 0 16px; min-height: 44px; flex: 0 1 300px; color: var(--g); }
.hba-find input { border: 0 !important; outline: none; background: transparent !important; font-family: inherit; font-size: 15px; width: 100%; min-width: 0; color: var(--ink); padding: 8px 0 !important; box-shadow: none !important; }
.hba-find:focus-within { border-color: var(--g); }

.hba-prefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.hba-pref { min-height: 64px; padding: 0 22px; border-radius: 18px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 2px solid var(--gm); background: #fff; color: var(--gd); font-size: 18px; font-weight: 900; transition: background .2s, color .2s; }
.hba-pref .hba-en { font-size: 15px; }
.hba-pref small { font-family: 'Zen Maru Gothic', sans-serif; font-size: 12px; font-weight: 700; }
.hba-pref:hover { background: var(--gl); }
.hba-pref[aria-pressed="true"] { background: var(--g); border-color: var(--g); color: #fff; box-shadow: 0 10px 22px -12px rgba(27, 86, 32, .7); }

.hba-cities, .hba-genres { display: flex; flex-wrap: wrap; gap: 10px; }
.hba-chip { font-size: 15px; font-weight: 700; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; border: 2px solid var(--gm); background: #fff; color: var(--gd); display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s; line-height: 1.3; }
.hba-chip:hover { background: var(--gl); }
.hba-chip[hidden] { display: none; }
.hba-city { padding-right: 8px; }
.hba-badge { font-size: 12px; border-radius: 999px; padding: 3px 9px; background: var(--gl); color: var(--gd); }
.hba-city[aria-pressed="true"] { background: var(--g); border-color: var(--g); color: #fff; }
.hba-city[aria-pressed="true"] .hba-badge { background: #fff; }
.hba-genre { border-color: #ead9cc; color: #7a3606; }
.hba-genre:hover { background: #fff3e8; }
.hba-genre[aria-pressed="true"] { background: var(--ord); border-color: var(--ord); color: #fff; }
.hba-empty { font-size: 14px; font-weight: 700; color: var(--sub); }
.hba-more { align-self: flex-start; font-size: 15px; font-weight: 900; color: var(--gd); background: none; border: 0; border-bottom: 2px solid var(--g); padding: 6px 2px; min-height: 44px; cursor: pointer; }

.hba-result { background: var(--g); color: #fff; border-radius: 22px; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; box-shadow: 0 16px 30px -18px rgba(27, 86, 32, .8); }
.hba-result__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 340px; }
.hba-result__label { font-size: 13px; font-weight: 700; color: #cfe8c9; }
.hba-result__tag { background: #fff; color: var(--gd); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 900; }
.hba-result__reset { font-size: 13px; font-weight: 700; color: #fff !important; border: 1.5px solid #cfe8c9; border-radius: 999px; padding: 8px 14px; text-decoration: none; }
.hba-result__reset:hover { background: rgba(255, 255, 255, .12); }

.hba-btn { border-radius: 999px; padding: 15px 26px; font-size: 17px; font-weight: 900; display: inline-flex; align-items: center; gap: 8px; text-decoration: none !important; line-height: 1.3; transition: transform .2s, filter .2s; }
.hba-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.hba-btn--orange { background: var(--ord); color: #fff !important; }
.hba-btn--white { background: #fff; color: var(--gd) !important; }

/* ---------- 一覧 ---------- */
.hba-listHead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--g); padding: 56px 0 18px; margin-bottom: 32px; scroll-margin-top: 90px; }
.hba-listHead > div { display: flex; flex-direction: column; gap: 8px; }
.hba-listHead #page-counter { font-size: 14px; color: var(--sub); font-weight: 700; margin: 0; }

.p-postList.-type-construct { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; margin: 0 0 40px !important; padding: 0 !important; list-style: none; }
.p-postList.-type-construct > li { width: auto !important; margin: 0 !important; padding: 0 !important; list-style: none; }
.p-postList.-type-construct > li::before { display: none; }

.hba-card__link { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 26px; overflow: hidden; text-decoration: none !important; color: var(--ink) !important; box-shadow: 0 2px 0 #e4ecdf; transition: transform .25s, box-shadow .25s; }
.hba-card__link:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -18px rgba(27, 86, 32, .45); }
.hba-card__img { position: relative; aspect-ratio: 4 / 3; background: #dfe6dc; overflow: hidden; }
.hba-card__img img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
.hba-card__before { clip-path: polygon(0 0, 55% 0, 45% 100%, 0 100%); }
.hba-card__line { position: absolute; inset: 0; width: 100%; height: 100%; }
.hba-card__line line { stroke: #fff; stroke-width: 4; vector-effect: non-scaling-stroke; }
.hba-card__arrow { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; color: var(--ord); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.hba-card__tb { position: absolute; left: 12px; bottom: 12px; }
.hba-card__ta { position: absolute; right: 12px; bottom: 12px; }
.hba-card__genre { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; color: var(--gd); background: #fff; border-radius: 999px; padding: 6px 12px; line-height: 1.2; }
.hba-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.hba-card__area { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--g); }
.hba-card__title { font-size: 17px !important; font-weight: 900; line-height: 1.5 !important; flex-grow: 1; color: var(--ink); }
.hba-card__more { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--gd); }

.p-postList.-type-construct > li.hba-point { grid-column: 1 / -1; position: relative; background: #24722b; color: #fff; border-radius: 30px; padding: 24px 28px 24px 180px !important; min-height: 120px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.hba-point img { position: absolute; left: 24px; bottom: 0; height: 160px; width: auto; }
.hba-point > div { display: flex; flex-direction: column; gap: 6px; }
.hba-point__title { font-size: 19px; font-weight: 900; line-height: 1.6; color: #fff; }
.hba-point__text { font-size: 15px; font-weight: 500; line-height: 1.7; color: var(--gl); }

/* ページ送り */
.-type-construct + .c-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 24px; }
.-type-construct + .c-pagination .page-numbers { width: 48px; height: 48px; border-radius: 50%; background: #eaf4ea; color: #1b5620; display: flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 800; text-decoration: none; border: 0; padding: 0; margin: 0; }
.-type-construct + .c-pagination .page-numbers.current { background: #24722b; color: #fff; }
.-type-construct + .c-pagination .c-pagination__dot { align-self: center; color: #5a6559; }

/* ---------- 相談CTA ---------- */
.hba-cta { width: 100vw; margin: 40px calc(50% - 50vw) 0; background: #24722b; color: #fff; padding: 0 16px 80px; }
.hba-cta__wave { display: block; width: calc(100% + 32px); height: 64px; margin: 0 -16px 24px; background: #fbf8f1; }
.hba-cta__wave path { fill: #24722b; }
.hba-cta__inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: center; }
.hba-cta__inner > img { height: 270px; width: auto; flex-shrink: 0; }
.hba-cta__body { flex: 1 1 460px; display: flex; flex-direction: column; gap: 18px; }
.hba-cta__title { font-size: clamp(26px, 3.2vw, 40px); font-weight: 900; line-height: 1.4; color: #fff !important; }
.hba-cta__lead { font-size: 16px; line-height: 1.8; color: var(--gl); }
.hba-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hba-cta__tel { color: #fff !important; text-decoration: none !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-weight: 700; }
.hba-cta__num { font-size: 30px; letter-spacing: .04em; }
.hba-cta__time { font-size: 13px; color: var(--gl); font-weight: 500; }

/* ---------- スマホ ---------- */
@media (max-width: 600px) {
	.hba-hero { padding-top: 8px; gap: 28px; }
	.hba-hero__lead { font-size: 15px; }
	.hba-stat__num { font-size: 36px; }
	.hba-talk__item img { height: 96px; }
	.hba-bubble { font-size: 12px; padding: 8px 10px; margin-bottom: 36px !important; }
	.hba-search { border-radius: 28px; padding: 32px 10px 24px; }
	.hba-panel { padding: 16px 12px; border-radius: 24px; gap: 24px; }
	.hba-cities, .hba-genres { gap: 8px; }
	.hba-city { font-size: 13px; padding: 0 6px 0 12px; gap: 6px; }
	.hba-badge { padding: 2px 7px; font-size: 11px; }
	.hba-search__intro img { height: 120px; }
	.hba-find { flex-basis: 100%; margin-left: 0; }
	.hba-pref { min-height: 56px; font-size: 16px; }
	.hba-chip { font-size: 14px; padding: 0 14px; }
	.hba-result { padding: 14px; }
	.hba-result .hba-btn { width: 100%; justify-content: center; }
	.p-postList.-type-construct > li.hba-point { padding: 22px 20px 130px !important; }
	.hba-point img { left: auto; right: 16px; height: 120px; }
	.hba-cta__inner > img { height: 180px; }
	.hba-cta__num { font-size: 26px; }
}
