/* =========================================================
   Gutenberg / SWELL ブロック互換レイヤー
   コアブロック(group/columns/heading/paragraph/image/cover/
   table/buttons/list)に、既存デザインCSS(theme.css)を
   適用させるための調整。ページ本文は .nk-page でスコープ。
   ========================================================= */

/* ---- SWELL標準の記事幅(900px)制限を解除（nk-pageは画面幅いっぱいのデザインが前提） ----
   SWELLはheader.phpでbody_class()を呼ばない（キャッシュ対策のため）ので、
   PHP側のbody classではなくCSSの:has()でnk-pageを含むページを直接判定する */
#main_content:has(.nk-page) {
  max-width: none;
  width: 100%;
}

/* ---- 下層ページ共通：SWELLデフォルトのページタイトル(見出しバナー)とパンくずリストを非表示 ----
   タイトルテキストだけでなくコンテナごと非表示にすることで、
   コンテンツ上部に余白が残らないようにする（全ページ共通適用） */
#top_title_area,
#breadcrumb {
  display: none !important;
}

#content.l-content {
  padding-top: 0 !important;
}

/* ---- ページ最上部の余白を除去 ----。 */
.post_content:has(.nk-page) {
  margin-top: 0;
}

/* ---- レガシー形式のGroupブロックの余分なラッパーをレイアウト上透過にする ---- */
.nk-page .wp-block-group__inner-container {
  display: contents
}

/* ---- SWELL標準の見出し装飾（背景ボックス・下線・左ボーダー等）をリセット ---- */
.nk-page h1,
.nk-page h2,
.nk-page h3,
.nk-page h4,
.nk-page h5,
.nk-page h6,
.editor-styles-wrapper .nk-page h1,
.editor-styles-wrapper .nk-page h2,
.editor-styles-wrapper .nk-page h3,
.editor-styles-wrapper .nk-page h4,
.editor-styles-wrapper .nk-page h5,
.editor-styles-wrapper .nk-page h6 {
  background: none !important;
  padding: 0 !important;
  border: 0 !important;
}

.nk-page h1::before,
.nk-page h2::before,
.nk-page h3::before,
.nk-page h4::before,
.nk-page h5::before,
.nk-page h6::before,
.nk-page h1::after,
.nk-page h2::after,
.nk-page h3::after,
.nk-page h4::after,
.nk-page h5::after,
.nk-page h6::after {
  content: none !important;
}

/* ---- WP管理画面ブロックエディタのプレビュー(editor-styles-wrapper)専用：
   SWELLのエディタ用見出しスタイル(白文字+上下罫線)がtheme.css側の文字色指定に
   詳細度で勝ってしまうため、!important付きで個別に上書きする ---- */
.editor-styles-wrapper .nk-page .intro h2 {
  color: var(--blue) !important
}

.editor-styles-wrapper .nk-page .sec-head .tt h2 {
  color: var(--ink) !important
}

.editor-styles-wrapper .nk-page .reasons h3 {
  color: var(--blue) !important
}

.editor-styles-wrapper .nk-page .biz h3 {
  color: var(--blue) !important
}

.editor-styles-wrapper .nk-page .voice h4 {
  color: var(--blue) !important
}

.editor-styles-wrapper .nk-page .works-intro h2 {
  color: var(--blue) !important
}

.editor-styles-wrapper .nk-page .msg-block h2 {
  color: var(--blue) !important
}

.editor-styles-wrapper .nk-page .kenchiku-hero-txt h3 {
  color: var(--blue) !important
}

.editor-styles-wrapper .nk-page .aidx-lead-row h3 {
  color: var(--blue) !important
}

.editor-styles-wrapper .nk-page .svc-lead h3,
.editor-styles-wrapper .nk-page .svc-card h4 {
  color: #2d2d2d !important
}

.editor-styles-wrapper .nk-page .case-card h3 {
  color: var(--ink) !important
}

.editor-styles-wrapper .nk-page .message h2,
.editor-styles-wrapper .nk-page .contact h2,
.editor-styles-wrapper .nk-page .svc-cta-band h2 {
  color: #fff !important
}

.editor-styles-wrapper .nk-page .svc-title {
  color: var(--blue) !important
}

/* ---- 同・WP管理画面 編集画面専用：コラージュ（AI/DXの .photos、建築・施工の .collage）----
   figure を position:absolute ＋ %指定で重ねているが、編集画面ではブロックのラッパーが
   挟まって親（aspect-ratio指定）の高さが出ず、画像が消える／極端に小さくなる。
   編集画面だけ絶対配置をやめて縦に並べ、中身が見える状態にする（フロント表示には影響しない）。
   !important は theme.css のSPブロック側 .photos figure{width:31%!important} を打ち消すため */
.editor-styles-wrapper .aidx-lead-row .photos,
.editor-styles-wrapper .kenchiku-hero-row .collage {
  position: static;
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  overflow: visible
}

.editor-styles-wrapper .aidx-lead-row .photos figure,
.editor-styles-wrapper .kenchiku-hero-row .collage figure {
  position: static;
  top: auto;
  left: auto;
  width: auto !important;
  height: auto !important;
  flex: none;
  box-shadow: none
}

.editor-styles-wrapper .aidx-lead-row .photos img,
.editor-styles-wrapper .kenchiku-hero-row .collage img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto
}

/* ---- svc-title：SWELLの見出し色指定（白）にフロント側でも負けるため個別に上書き ---- */
.nk-page .svc-title {
  color: var(--blue) !important
}

/* ---- コアブロック構造フォールバック（コアCSSに依存せず成立させる） ---- */
.wp-block-cover {
  z-index: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background-size: cover;
  background-position: center
}

.wp-block-cover .wp-block-cover__image-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.wp-block-cover .wp-block-cover__inner-container {
  position: relative;
  z-index: 3;
  width: 100%
}

.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 0
}

.wp-block-columns .wp-block-column {
  flex: 1 1 0;
  min-width: 0
}

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap
}

.wp-block-image img {
  max-width: 100%
}

.wp-block-list {
  margin: 0;
  padding-left: 1.2em
}

/* ---- ページ全体ラッパ：コアの余白・幅制約をリセット ---- */
.nk-page {
  color: var(--ink);
  line-height: 1.9
}

.nk-page :where(.wp-block-group) {
  margin-block: 0
}

.nk-page :where(h1, h2, h3, h4, p, figure, ul, ol, .wp-block-buttons, .wp-block-columns, .wp-block-table) {
  margin-top: 0;
  margin-bottom: 0
}

.nk-page .wp-block-group.wrap>* {
  max-width: none
}

.nk-page .wp-block-group.is-layout-constrained> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none;
  margin-left: 0;
  margin-right: 0
}

.nk-page figure.wp-block-image {
  margin: 0
}

.nk-page figure.wp-block-image img {
  border-radius: inherit
}

.nk-page .thumb img,
.nk-page .ach-photo img,
.nk-page .fimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit
}

/* ---- カバー(cover)＝ヒーロー/バナー ---- */
.wp-block-cover.hero,
.wp-block-cover.page-hero {
  background: none
}

.wp-block-cover.hero {
  min-height: 608px
}

.wp-block-cover.page-hero {
  min-height: 280px
}

.wp-block-cover.hero>.wp-block-cover__image-background,
.wp-block-cover.page-hero>.wp-block-cover__image-background {
  object-fit: cover;
  z-index: 0
}

.wp-block-cover.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #1F99D9 0%, rgba(31, 153, 217, 0) 50.481%),
    linear-gradient(90deg, #020202 0%, rgba(0, 0, 0, 0) 43.269%)
}

.wp-block-cover.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #1F99D9 0%, rgba(31, 153, 217, 0) 100%),
    linear-gradient(90deg, #020202 0%, rgba(2, 2, 2, 0) 100%)
}

/* .ghost / .watermark を .hero / .page-hero 自体を基準に絶対配置させるため、
   inner-container の position:relative を解除して包含ブロックにしない。
   重なり順は中身の .inner / .ghost / .watermark 側の z-index で確保する。 */
.wp-block-cover.hero>.wp-block-cover__inner-container,
.wp-block-cover.page-hero>.wp-block-cover__inner-container {
  position: static;
  width: 100%;
  color: #fff
}

/* ---- 見出し・段落の色/行間はデザインCSS側クラスで指定。ここは既定値 ---- */
.nk-page p {
  margin: 0
}

.nk-page small {
  opacity: 1
}

.nk-page .wp-block-columns {
  gap: 0
}

/* ---- ボタン（コア button ブロックを流用） ---- */
.nk-page .wp-block-buttons {
  gap: 0;
  display: flex;
  flex-wrap: wrap
}

.nk-btn-outline .wp-block-button__link,
.nk-btn-fill .wp-block-button__link,
.nk-btn-ghost .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border-radius: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .1em;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  line-height: 1.4;
  padding: 14px 28px
}

.nk-btn-outline .wp-block-button__link {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue)
}

.nk-btn-outline .wp-block-button__link::after {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--blue);
  display: inline-block
}

.nk-btn-fill .wp-block-button__link {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 16px 32px
}

.nk-btn-fill .wp-block-button__link::after {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--blue);
  display: inline-block
}

.nk-btn-ghost .wp-block-button__link {
  background: rgba(255, 255, 255, .05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .9);
  padding: 17px 32px
}

.nk-btn-ghost .wp-block-button__link::after {
  content: "";
  width: 46px;
  height: 1px;
  background: #fff;
  display: inline-block
}

/* 送信完了ページの「トップページへ戻る」 */
.nk-btn-solid .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 318px;
  max-width: 100%;
  min-height: 50px;
  padding: 0 30px;
  border: 0;
  border-radius: 0;
  background: var(--blue);
  color: #fff;
  line-height: 1.4;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 700;
  letter-spacing: .1em
}

/* CTAバンド上の白ボタン */
.contact .wp-block-button__link {
  background: #fff;
  color: var(--blue);
  border: 1px solid #fff
}

/* ---- ボタンのホバー：左から右へ配色が反転する（離すと右から左へ戻る） ---- */
.nk-btn-outline .wp-block-button__link,
.nk-btn-fill .wp-block-button__link,
.nk-btn-ghost .wp-block-button__link,
.nk-btn-solid .wp-block-button__link {
  background-repeat: no-repeat;
  background-origin: border-box;
  background-clip: border-box;
  background-position: left center;
  background-size: 0 100%;
  transition: background-size .3s ease-out, color .3s ease-out
}

.nk-btn-outline .wp-block-button__link:hover,
.nk-btn-fill .wp-block-button__link:hover,
.nk-btn-ghost .wp-block-button__link:hover,
.nk-btn-solid .wp-block-button__link:hover {
  background-size: 100% 100%
}

.nk-btn-outline .wp-block-button__link::after,
.nk-btn-fill .wp-block-button__link::after,
.nk-btn-ghost .wp-block-button__link::after {
  transition: background .3s ease-out
}

/* outline / fill：透明地＋青文字 → 青ベタ＋白文字 */
.nk-btn-outline .wp-block-button__link,
.nk-btn-fill .wp-block-button__link {
  background-image: linear-gradient(var(--blue), var(--blue))
}

.nk-btn-outline .wp-block-button__link:hover,
.nk-btn-fill .wp-block-button__link:hover {
  color: #fff
}

.nk-btn-outline .wp-block-button__link:hover::after,
.nk-btn-fill .wp-block-button__link:hover::after {
  background: #fff
}

/* ghost（TOPヒーロー）：青ベタ＋白文字 → 白ベタ＋青文字 */
.nk-btn-ghost .wp-block-button__link {
  background-image: linear-gradient(#fff, #fff)
}

.nk-btn-ghost .wp-block-button__link:hover {
  color: var(--blue)
}

.nk-btn-ghost .wp-block-button__link:hover::after {
  background: var(--blue)
}

/* solid（送信完了）：青ベタ＋白文字 → 白ベタ＋青文字。 */
.nk-btn-solid .wp-block-button__link {
  background-image: linear-gradient(#fff, #fff);
  outline: 1px solid transparent;
  outline-offset: -1px;
  transition: background-size .3s ease-out, color .3s ease-out, outline-color .3s ease-out
}

.nk-btn-solid .wp-block-button__link:hover {
  color: var(--blue);
  outline-color: var(--blue)
}

/* ---- チップ（対応内容など：ボタンブロックを流用） ---- */
.nk-page .wp-block-buttons.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 27px 14px;
  justify-content: center;
  margin: 0 auto 60px;
  max-width: 1016px
}

.nk-page .wp-block-buttons.chip-row.kenchiku-cols-5 {
  max-width: 855px
}

.nk-page .maintenance .wp-block-buttons.chip-row {
  max-width: 680px;
}

.chip-row .wp-block-button__link {
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .1em;
  padding: 10px 10px;
  min-width: 157px;
  min-height: 54px;
  text-align: center;
  line-height: 1.5
}

.chip-row.wide .wp-block-button__link {
  min-width: 497px
}

.chip-row.wide+.sub-label {
  margin-top: 100px
}

/* ---- テーブル（企業情報 / 社長の1日） ---- */
.nk-page .wp-block-table {
  margin: 0
}

.nk-page .wp-block-table.info-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px
}

.nk-page .wp-block-table.info-table td {
  border: 0;
  border-top: 1px solid rgba(45, 45, 45, .3);
  padding: 20px 0;
  vertical-align: top;
  line-height: 1.4;
  text-align: left
}

.nk-page .wp-block-table.info-table tr td:first-child {
  width: 207px;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: .1em
}

.nk-page .wp-block-table.info-table tr td:last-child {
  color: #2d2d2d;
  font-weight: 500;
  letter-spacing: .05em
}

/* 比較表（社長の1日）：
   罫線は列区切りの縦線2本だけで、外枠と行の横罫線は無い。
   ヘッダは青帯(48px)＋白文字16px、本文は14px・左寄せ・行送り37px。
   3列目を一律青にすると「現場」まで青くなるため、色は .new を付けたセルのみ */
/* .nk-page .wp-block-table{margin:0}（0,2,0）に負けて中央寄せが効かないため詳細度を上げる */
.nk-page .wp-block-table.sched {
  margin-inline: auto
}

.nk-page .wp-block-table.sched table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  max-width: 771px;
  margin: 0 auto;
  table-layout: fixed
}

.nk-page .wp-block-table.sched th,
.nk-page .wp-block-table.sched td {
  border: 0;
  padding: 4px 10px 4px 29px;
  text-align: left;
  line-height: 2.1;
  font-weight: 500;
  letter-spacing: .15em;
  vertical-align: middle
}

.nk-page .wp-block-table.sched tr>*:nth-child(1) {
  width: 20.9%
}

.nk-page .wp-block-table.sched tr>*:nth-child(2) {
  width: 33.6%
}

.nk-page .wp-block-table.sched tr>*:nth-child(3) {
  width: 45.5%
}

.nk-page .wp-block-table.sched thead th {
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  line-height: 3;
  padding-top: 0;
  padding-bottom: 0
}

.nk-page .wp-block-table.sched thead th+th {
  border-left: 1px solid rgba(255, 255, 255, .7)
}

.nk-page .wp-block-table.sched tbody td {
  color: #000
}

.nk-page .wp-block-table.sched tbody td+td {
  border-left: 1px solid #343434
}

.nk-page .wp-block-table.sched td.new {
  color: var(--blue)
}

.nk-page .wp-block-table.sched td.warn {
  color: #e0322f
}

/* ---- 装飾アイコン（背景色付きの角丸ボックス＋透過アイコン画像） ---- */
.ic {
  width: 56px;
  height: 56px;
  flex: none
}

.ic figure {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%
}

.ic img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.biz .ic img,
.dx-boost .bh .ic img {
  width: 83%;
  height: 83%
}

/* DX ステップ番号ボックス：背景色付きボックス＋透過アイコン画像 */
.step .num figure {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%
}

.step .num img {
  width: 83%;
  height: 83%;
  object-fit: contain
}


/* 施工ページ before/after 画像・カード画像の高さ調整 */
.ba {
  display: flex;
  align-items: flex-start;
  gap: 26px
}

.ba-col {
  display: block
}

.nk-page .ba-label {
  margin: 0;
  font-size: 16px;
  line-height: 29px;
  color: #343434;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 400
}

.nk-page .ba-arrow {
  margin: 112px 0 0;
  width: 14px;
  height: 30px;
  flex: none;
  font-size: 0;
  line-height: 0;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='30'%20viewBox='0%200%2014%2030'%3E%3Cpath%20d='M1%201L13%2015L1%2029'%20fill='none'%20stroke='%23343434'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/14px 30px
}

.ba-img {
  margin: 0;
  border-radius: 10px
}

.ba-img img {
  object-fit: cover;
  display: block
}

.ba-img.before img {
  width: 173px;
  height: 196px
}

.ba-img.after img {
  width: 284px;
  height: 196px
}

.ba .attr {
  margin: 10px 0 0
}

.svc-card-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 46px;
  align-items: center
}

.svc-card-img {
  border-radius: 0
}

.svc-card-img img {
  width: 324px;
  aspect-ratio: 324/256;
  object-fit: cover
}

.svc-card-img-col .svc-card-img img {
  aspect-ratio: 324/196
}

.svc-card-tx p {
  text-align: left
}

.sub-label.lft {
  text-align: left
}

.sub-label.lft.kenchiku-sub {
  margin-top: 20px;
  margin-bottom: 0 !important
}

.center-cta {
  display: flex;
  justify-content: center
}

.center-cta .wp-block-buttons {
  justify-content: center
}

.aidx-lead-tx .sub2 {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: .4em;
  margin: 0 0 22px
}

.aidx-lead-tx .sub2::after {
  content: "";
  flex: 1;
  max-width: 102px;
  height: 1px;
  background: #343434
}

.aidx-lead-tx h3 {
  margin: 0 0 21px;
  color: var(--blue);
  font-weight: 700;
  font-size: clamp(22px, 2.22vw, 32px);
  letter-spacing: .15em;
  line-height: 1.5
}

.aidx-lead-tx p:not(.kicker):not(.sub2) {
  margin: 0;
  font-size: clamp(14px, 1.11vw, 16px);
  line-height: 2;
  color: #2d2d2d
}

.aidx-lead-tx .kicker-inner {
  width: fit-content
}

@media(max-width:860px) {
  .aidx-lead-tx .kicker-inner {
    width: auto
  }
}

.stat-callout .l1 .big {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  font-family: "Inter", sans-serif
}

.stat-callout .l2 .mid {
  font-size: clamp(30px, 3.61vw, 52px)
}

.sub-label.nk-mt2 {
  margin-top: 35px;
  margin-bottom: 6px !important;
  max-width: 771px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  letter-spacing: .15em;
  text-align: left;
  color: #000
}

.tool-card .tlbl {
  display: block;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 11px 10px;
  border-radius: 0;
  margin-bottom: 18px;
  letter-spacing: .04em;
  text-align: center;
  line-height: 1.2
}

.tool-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink);
  text-align: left
}

/* 導入ツールのバッジ */
.case-tool .tb {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.24;
  padding: 10px 18px;
  border-radius: 0;
  letter-spacing: .1em;
  display: inline-block;
  margin: 0
}

.case-tool {
  display: flex;
  align-items: center;
  gap: 33px;
  margin-bottom: 34px
}

.case-tool .tn {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: normal;
  margin: 0
}

/* 出典キャプション */
.case-card .cap {
  font-size: 16px;
  color: var(--ink);
  margin-top: 10px;
  text-align: left;
}

.case-media .cap {
  margin-top: 16px;
}

.case-img {
  border-radius: 10px;
  overflow: hidden;
}

.case-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 306/195;
  object-fit: cover;
  border-radius: 10px
}

.case-img.before-after img {
  aspect-ratio: 309/196
}

.case-img.before img {
  aspect-ratio: 188/196;
}

/* 電話番号 */
.tel-block .tnum {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: .1em
}

.tel-block .tnum a {
  color: inherit;
  text-decoration: none;
  transition: opacity .3s ease-out
}

.tel-block .tnum a:hover {
  opacity: .8
}

.dx-banner .dxb {
  margin: 0;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 44px;
  font-size: clamp(16px, 2.4vw, 24px)
}

.dx-boost .bhb {
  margin: 0;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.7;
  font-size: clamp(18px, 2.2vw, 24px)
}

.ach-result .res-h {
  color: var(--blue);
  font-weight: 500;
  line-height: 1.56;
  letter-spacing: .08em;
  margin: 0 0 12px;
  font-size: 18px
}

.ach-flow .figcap {
  font-size: 16px;
  color: var(--ink);
  letter-spacing: .1em;
  margin: 0;
  text-align: left;
}

.ach-flow .fig {
  margin: 0;
  text-align: center
}

.dx-col h3 small {
  font-size: 16px;
  color: var(--ink);
  letter-spacing: .3em;
  font-weight: 400
}

@media(max-width:700px) {
  .ach-flow .figcap {
    font-size: 14px;
  }
}

/* ---- 建築セクション（kenchiku-intro） ---- */
/* 行レイアウトは theme.css の .aidx-lead-row と共通化済み */
.kenchiku-hero-txt .wp-block-group {
  gap: 0;
  align-items: stretch
}

.kenchiku-hero-row .kenchiku-hero-txt {
  min-width: 0;
  text-align: left
}

.kenchiku-hero-row .kenchiku-hero-txt .cap,
.kenchiku-hero-row .kenchiku-hero-txt h3,
.kenchiku-hero-row .kenchiku-hero-txt .body {
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0
}

.kenchiku-hero-row .kenchiku-hero-txt h3 {
  margin: 23px 0 21px;
  color: var(--blue);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .15em;
}

.kenchiku-hero-row .kenchiku-hero-txt .cap {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  line-height: 1;
  letter-spacing: .4em;
  color: var(--ink)
}

.kenchiku-hero-row .kenchiku-hero-txt .cap::after {
  content: "";
  flex: 1;
  max-width: 102px;
  height: 1px;
  background: #343434
}

.kenchiku-hero-row .kenchiku-hero-txt .body {
  font-size: 16px;
  line-height: 2;
  color: #2d2d2d;
  letter-spacing: normal
}

.kenchiku-hero-row .kicker {
  font-size: 16px;
  line-height: 31px;
  letter-spacing: .2em;
  margin-top: 0;
  margin-bottom: 13px !important
}

.kenchiku-hero-txt .kicker-inner {
  width: fit-content
}

@media(max-width:860px) {
  .kenchiku-hero-txt .kicker-inner {
    width: auto
  }
}

.post_content h2.kenchiku-sec-title {
  text-align: left;
  font-size: clamp(26px, 3.9vw, 42px);
  line-height: 1.15;
  letter-spacing: .05em;
  margin-bottom: 12px;
}

/* ---- 耐震補強工事セクション専用の微調整 ---- */
/* 耐震補強の施工例カード（「大阪 40代」の上余白は .svc-card .attr 側で持つ） */
.svc-card-img-col {
  display: flex;
  flex-direction: column
}

.svc-card-inner:has(.svc-card-img-col) .svc-card-tx {
  padding-bottom: 19px
}

/* group を中央寄せするための軽いユーティリティ */
.nk-center {
  text-align: center
}

.nk-mt {
  margin-top: 40px
}

/* レスポンシブ微調整 */
@media(max-width:1079px) {
  .svc-card-inner {
    display: block
  }

  .svc-card-inner .svc-card-tx {
    margin-top: 24px
  }

  .svc-card-inner:has(.svc-card-img-col) .svc-card-tx {
    padding-bottom: 0
  }

  .svc-card-inner .svc-card-img img {
    width: 100%;
    aspect-ratio: 364/202
  }

  .ba {
    display: grid;
    grid-template-columns: minmax(0, 173fr) 14px minmax(0, 284fr);
    gap: 0 26px
  }

  .ba-col {
    display: contents
  }

  .ba .ba-label {
    grid-row: 1
  }

  .ba .ba-img {
    grid-row: 2
  }

  .ba .attr {
    grid-row: 3
  }

  .ba-col:first-child :is(.ba-label, .ba-img, .attr) {
    grid-column: 1
  }

  .ba-col:last-child :is(.ba-label, .ba-img) {
    grid-column: 3
  }

  .nk-page .ba-arrow {
    grid-area: 2 / 2;
    align-self: center;
    margin: 0
  }

  .ba-img.before img,
  .ba-img.after img {
    width: 100%;
    height: auto
  }

  .ba-img.before img {
    aspect-ratio: 173/196
  }

  .ba-img.after img {
    aspect-ratio: 284/196
  }
}

@media(max-width:860px) {
  .nk-page .wp-block-buttons.chip-row {
    margin-bottom: 50px
  }

  .dx-boost .bhb {
    letter-spacing: .1em;
    max-width: 410px
  }

  .chip-row.wide .wp-block-button {
    width: 100%
  }

  .chip-row.wide .wp-block-button__link {
    min-width: 0;
    width: 100%
  }

  .chip-row.wide+.sub-label {
    margin-top: 32px
  }

  .kenchiku-hero-row .kicker {
    font-size: 14px;
    letter-spacing: .1em
  }

  .nk-btn-outline .wp-block-button__link {
    text-align: left
  }

  .nk-btn-fill .wp-block-button__link {
    padding: 16px 22px;
    text-align: left
  }

  .nk-btn-solid .wp-block-button__link {
    min-width: 250px
  }

  .nk-btn-outline .wp-block-button__link,
  .nk-btn-fill .wp-block-button__link,
  .nk-btn-ghost .wp-block-button__link {
    gap: 14px;
    min-width: 230px
  }

  .nk-btn-outline .wp-block-button__link::after,
  .nk-btn-fill .wp-block-button__link::after {
    width: 28px
  }

  .wp-block-cover.hero {
    min-height: 520px
  }

  .ba {
    gap: 0 10px
  }

  .nk-page .wp-block-table.info-table table,
  .nk-page .wp-block-table.info-table tbody,
  .nk-page .wp-block-table.info-table tr {
    display: block;
    width: 100%
  }

  .nk-page .wp-block-table.info-table tr {
    padding: 14px 0;
    border-top: 1px solid rgba(45, 45, 45, .3)
  }

  .nk-page .wp-block-table.info-table td {
    display: block;
    width: 100%;
    padding: 0;
    border: 0
  }

  .nk-page .wp-block-table.info-table tr td:first-child {
    margin-bottom: 6px
  }

  .nk-page .wp-block-table.sched th,
  .nk-page .wp-block-table.sched td {
    padding: 4px 8px 4px 14px;
    letter-spacing: .04em
  }

  .nk-page .wp-block-table.sched thead th {
    font-size: 13px
  }
}

@media(max-width:420px) {
  .ba {
    gap: 0 5px
  }
}

/* ---- フッター（SWELL標準パーツ）の打ち消し ---- */
.l-footer__foot .copyright>span[lang="en"] {
  display: none
}

.l-footer .c-listMenu a {
  font-size: 14px;
  font-weight: 500;
  color: #343434
}

.l-footer .c-listMenu a::before {
  display: none
}

.l-footer .c-listMenu a {
  padding-left: 0;
  transition: background-color .3s ease-out
}

.l-footer .c-listMenu a:hover {
  padding-left: 0;
  padding-right: 0
}