@charset "UTF-8";
/* =========================================================
   谷部内装 — 追加スタイル（SWELL子テーマ）
   ・ページ本文は .tanibe にスコープ
   ・末尾に「ヘッダー/フッター向けの最小限グローバル」を分離して記載
   ========================================================= */

/* ---------------------------------------------------------
   1. デザイントークン（.tanibe スコープ）
   --------------------------------------------------------- */
/* .editor-styles-wrapper はブロックエディタのキャンバス。
   エディタには .has-tanibe が無いため、ここでもトークンを解決させる */
.tanibe,
.has-tanibe,
.editor-styles-wrapper {
  --tnb-bg:        #FAF7F2;
  --tnb-surface:   #FFFFFF;
  --tnb-ink:       #3A3226;
  --tnb-ink-deep:  #2A241B;
  --tnb-sub:       #7A7060;
  --tnb-line:      #E5DDD0;
  --tnb-primary:   #8B6F47;
  --tnb-accent:    #E8A87C;
  --tnb-accent-d:  #D98F5E;

  --tnb-maxw: 1120px;
  --tnb-gutter: 24px;
  --tnb-radius: 12px;
  --tnb-radius-s: 8px;
  --tnb-shadow: 0 2px 12px rgba(0,0,0,.06);
  --tnb-shadow-lg: 0 12px 40px rgba(58,50,38,.12);
  --tnb-shadow-btn: 0 10px 24px rgba(232,168,124,.38);
  --tnb-ease: cubic-bezier(.2,.7,.2,1);

  --tnb-serif: "Noto Serif JP", "Hiragino Mincho ProN", "YuMincho", "Yu Mincho", "MS PMincho", serif;
}

/* ---------------------------------------------------------
   2. ベース
   --------------------------------------------------------- */
.tanibe {
  font-family: var(--tnb-serif);
  color: var(--tnb-ink);
  line-height: 1.8;
}
/* 背景はコンテンツ幅に縛られない全幅ラッパー（#body_wrap）側に置く。
   .tanibe に置くとテーマのコンテンツ幅に収まり、ベージュの帯として見えてしまう */
.has-tanibe { background: var(--tnb-bg); }
.tanibe img { max-width: 100%; height: auto; display: block; }
.tanibe p { margin: 0; }
.tanibe h1, .tanibe h2, .tanibe h3, .tanibe h4 { line-height: 1.4; margin: 0; font-weight: 700; }
/* WPブロックの既定マージンを打ち消し、こちらで制御 */
.tanibe .wp-block-group,
.tanibe .wp-block-columns,
.tanibe .wp-block-image,
.tanibe .wp-block-buttons { margin-block: 0; }

/* テーマ側のコンテンツ幅制限を解除し、幅は .tnb-inner で制御する */
.tanibe .wp-block-group__inner-container {
  max-width: none;
  width: 100%;
  margin-inline: 0;
}
/* .tanibe 自体も全幅で扱う（alignfull セクションが正しく広がるように） */
.tanibe { width: 100%; max-width: none; }

/* .tanibe を含むページはテーマ側の上下余白を詰める（セクションで制御するため）
   ※ SWELL は body ではなくラッパー div に body_class を出力するため .has-tanibe 単独で指定 */
.has-tanibe .l-content.l-container {
  /* SWELL 側の余白指定を確実に打ち消す（セクション側で余白を持つため） */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  /* SWELL の .l-content { margin-bottom: 6em } を打ち消す。
     残しておくとフッターとの間にベージュの帯（約84px）が出る */
  margin-top: 0;
  margin-bottom: 0;
}
.has-tanibe .l-mainContent__inner > .post_content { margin-top: 0; }
/* 固定ページのタイトル見出し・パンくずは本文側（.tnb-pagehero / .tnb-breadcrumb）で
   見せるため非表示。SWELL は固定ページで .c-pageTitle と #breadcrumb を出力する */
.has-tanibe .p-articleThumb,
.has-tanibe .l-articleTitle,
.has-tanibe .c-pageTitle,
.has-tanibe .c-postTitle,
.has-tanibe #breadcrumb.p-breadcrumb { display: none; }

/* カラムの中で「幅広(alignwide)」「全幅(alignfull)」が指定されても、
   カラムの外へはみ出さないようにする。
   ※ エディタで幅設定を触ると隣のカラム（画像など）に重なってしまうため。
     セクション全体の alignfull（.tnb-sec）はカラムの外なので影響しない。 */
.tanibe .wp-block-column .alignwide,
.tanibe .wp-block-column .alignfull {
  max-width: 100%;
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

/* 内側コンテナ */
.tanibe .tnb-inner {
  width: 100%;
  max-width: var(--tnb-maxw);
  margin-inline: auto;
  padding-inline: var(--tnb-gutter);
}

/* セクション */
.tanibe .tnb-sec { padding-block: 96px; }
.tanibe .tnb-sec-tight { padding-block: 64px; }
.tanibe .tnb-sec-alt { background: linear-gradient(0deg, rgba(139,111,71,.03), rgba(139,111,71,.03)); }
.tanibe .tnb-sec-white { background: var(--tnb-surface); }

/* ---------------------------------------------------------
   2-b. SWELL テーマCSSの打ち消し（静的サイトと見た目を揃える）
   ※ SWELL は .post_content 内の見出し・本文に独自装飾を当てるため、
     .tanibe の中だけ素の状態に戻してから自前のスタイルを適用する。
   --------------------------------------------------------- */

/* SWELL の見出し装飾（h2のネイビー枠・h3の下線バー等）を無効化
   ※ SWELL は h2 に `background: var(--color_htag); color:#fff` を当てるため、
     color も戻さないと淡い背景の上で見出しが白く飛ぶ（design.md のテキスト色に戻す）。
     暗い背景の上の見出し（.tnb-cta .tnb-h2 / .tnb-hero__title）は
     より詳細度の高い個別指定で #fff を維持している */
.tanibe h1, .tanibe h2, .tanibe h3, .tanibe h4, .tanibe h5, .tanibe h6 {
  padding: 0;
  border: 0;
  background: none;
  text-align: inherit;
  color: var(--tnb-ink);
}
.tanibe h1::before, .tanibe h2::before, .tanibe h3::before,
.tanibe h4::before, .tanibe h5::before, .tanibe h6::before,
.tanibe h1::after, .tanibe h2::after, .tanibe h3::after,
.tanibe h4::after, .tanibe h5::after, .tanibe h6::after {
  content: none !important;
  display: none !important;
}

/* 本文の行間を静的サイト（1.8）に戻す */
.tanibe p, .tanibe li, .tanibe td, .tanibe th, .tanibe dd, .tanibe dt {
  line-height: 1.8;
}

/* 画像は静的サイトと同じく cover で高さを揃える */
.tanibe .wp-block-image img { object-fit: cover; }

/* ヒーローのスライドは拡大表示させない（SWELLのライトボックス対象から外す） */
.tanibe .tnb-hero__slide img { pointer-events: none; }

/* SWELL のヘッダーバー（ネイビー帯）は静的サイトに無いので非表示 */
.l-header__bar { display: none !important; }

/* ---------------------------------------------------------
   3. タイポグラフィ部品
   --------------------------------------------------------- */
.tanibe .tnb-eyebrow {
  font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--tnb-primary); font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.tanibe .tnb-eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--tnb-accent);
  display: inline-block; flex: none;
}
.tanibe .tnb-eyebrow-center { justify-content: center; }

.tanibe .tnb-h1 {
  font-weight: 900; font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.18; letter-spacing: -.02em;
}
.tanibe .tnb-h2 {
  font-weight: 900; font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  line-height: 1.3; letter-spacing: -.01em;
}
/* 静的サイトの .lead と同じ折返し幅。max-width が無いと全幅まで伸びて別物に見える */
.tanibe .tnb-lead { color: var(--tnb-sub); font-size: 1.05rem; line-height: 1.8; margin-top: 16px; max-width: 46em; }
/* 中央寄せで使う箇所は左右 auto で中央に置く */
.tanibe .tnb-center .tnb-lead { margin-inline: auto; }
.tanibe .tnb-center { text-align: center; }
.tanibe .tnb-center .tnb-eyebrow { justify-content: center; }
.tanibe .tnb-lead-center { margin-inline: auto; max-width: 46em; text-align: center; }

/* ---------------------------------------------------------
   4. ボタン（WP標準 wp:buttons を装飾）
   --------------------------------------------------------- */
.tanibe .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.tanibe .wp-block-button__link {
  font-family: var(--tnb-serif); font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: var(--tnb-radius-s);
  border: 2px solid transparent; text-decoration: none; display: inline-block;
  transition: background-color .2s ease, transform .22s var(--tnb-ease),
              border-color .2s ease, color .2s ease, box-shadow .22s ease;
}
/* 塗り（アクセント） */
.tanibe .tnb-btn-primary .wp-block-button__link {
  background: var(--tnb-accent); color: #402813;
}
.tanibe .tnb-btn-primary .wp-block-button__link:hover { background: var(--tnb-accent-d); color: #402813; }
/* 枠線 */
.tanibe .tnb-btn-ghost .wp-block-button__link {
  background: transparent; color: var(--tnb-ink); border-color: var(--tnb-line);
}
.tanibe .tnb-btn-ghost .wp-block-button__link:hover { border-color: var(--tnb-primary); color: var(--tnb-primary); }
/* 暗背景上の枠線 */
.tanibe .tnb-btn-onDark .wp-block-button__link {
  background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.55);
}
.tanibe .tnb-btn-onDark .wp-block-button__link:hover { background: rgba(255,255,255,.2); border-color: #fff; color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .tanibe .wp-block-button__link:hover { transform: translateY(-2px) scale(1.04); }
  .tanibe .tnb-btn-primary .wp-block-button__link:hover { box-shadow: var(--tnb-shadow-btn); }
  .tanibe .wp-block-button__link:active { transform: translateY(0) scale(.98); }
}

/* ---------------------------------------------------------
   5. ヒーロー（トップ）：スライドショー
   --------------------------------------------------------- */
.tanibe .tnb-hero {
  position: relative; overflow: hidden;
  min-height: clamp(560px, 88vh, 820px);
  display: flex; align-items: center;
  background: linear-gradient(120deg, #241d14 0%, #3c3122 60%, #2a2318 100%);
}
.tanibe .tnb-hero__slides { position: absolute; inset: 0; z-index: 0; }
.tanibe .tnb-hero__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 1.2s var(--tnb-ease);
}
.tanibe .tnb-hero__slide.is-active { opacity: 1; }
.tanibe .tnb-hero__slide img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 0; transform: scale(1.02);
}
.tanibe .tnb-hero::after { /* 可読性のためのオーバーレイ */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(22,17,10,.86) 0%, rgba(22,17,10,.6) 40%, rgba(22,17,10,.12) 72%, rgba(22,17,10,.3) 100%),
    linear-gradient(0deg, rgba(22,17,10,.5) 0%, transparent 30%);
}
.tanibe .tnb-hero__inner { position: relative; z-index: 3; color: #fff; padding-block: 48px; }
.tanibe .tnb-hero__eyebrow {
  font-size: .78rem; letter-spacing: .22em; color: var(--tnb-accent);
  font-weight: 600; margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.tanibe .tnb-hero__eyebrow::before {
  content: ""; width: 30px; height: 2px; background: var(--tnb-accent); display: inline-block; flex: none;
}
.tanibe .tnb-hero__title {
  font-weight: 900; font-size: clamp(3rem, 8vw, 6rem); line-height: 1.06;
  letter-spacing: .06em; margin-bottom: 20px; color: #fff;
  text-shadow: 0 6px 34px rgba(0,0,0,.4);
}
.tanibe .tnb-hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.45rem); font-weight: 500; line-height: 1.85;
  margin-bottom: 34px; max-width: 30em; color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.tanibe .tnb-hero .wp-block-buttons { margin-top: 0; }

/* JSが差し込むUI */
.tanibe .tnb-hero__phase {
  position: absolute; top: 26px; right: 28px; z-index: 4;
  font-size: .7rem; letter-spacing: .22em; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px; padding: 6px 15px;
}
.tanibe .tnb-hero__dots { position: absolute; right: 28px; bottom: 26px; z-index: 4; display: flex; gap: 10px; }
.tanibe .tnb-hero__dots button {
  width: 11px; height: 11px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(255,255,255,.75); background: transparent;
  transition: background-color .25s var(--tnb-ease), transform .25s var(--tnb-ease), border-color .25s;
}
.tanibe .tnb-hero__dots button[aria-selected="true"] {
  background: var(--tnb-accent); border-color: var(--tnb-accent); transform: scale(1.25);
}
.tanibe .tnb-hero__scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 4;
  color: rgba(255,255,255,.82); font-size: .68rem; letter-spacing: .22em;
}
.tanibe .tnb-hero__scroll::after {
  content: ""; display: block; width: 1px; height: 30px; margin: 8px auto 0;
  background: rgba(255,255,255,.65); transform-origin: top;
}
@media (prefers-reduced-motion: no-preference) {
  .tanibe .tnb-hero__slide.is-active img { animation: tnbKenburns 7s ease-out forwards; }
  .tanibe .tnb-hero__scroll::after { animation: tnbScrollLine 1.8s ease-in-out infinite; }
}
@keyframes tnbKenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@keyframes tnbScrollLine { 0%,100% { transform: scaleY(.35); opacity:.35; } 50% { transform: scaleY(1); opacity:1; } }

/* ---------------------------------------------------------
   6. 下層ページのヘッダー帯
   --------------------------------------------------------- */
.tanibe .tnb-pagehero { border-bottom: 1px solid var(--tnb-line); padding-block: 64px; }
/* 静的サイトの .page-hero .lead に合わせる */
.tanibe .tnb-pagehero .tnb-lead { margin-top: 14px; }
.tanibe .tnb-breadcrumb { font-size: .72rem; letter-spacing: .08em; color: var(--tnb-sub); margin-bottom: 14px; }

/* ---------------------------------------------------------
   7. カード共通（理由／事例／こだわり／対応工事）
   --------------------------------------------------------- */
.tanibe .tnb-card {
  background: var(--tnb-surface); border: 1px solid var(--tnb-line);
  border-radius: var(--tnb-radius); box-shadow: var(--tnb-shadow);
  overflow: hidden; height: 100%;
  transition: transform .28s var(--tnb-ease), box-shadow .28s ease;
}
.tanibe .tnb-card:hover { box-shadow: var(--tnb-shadow-lg); }
.tanibe .tnb-card .wp-block-image { margin: 0; }
.tanibe .tnb-card .wp-block-image img { width: 100%; border-radius: 0; }
.tanibe .tnb-card__body { padding: 24px; }
.tanibe .tnb-card__no { font-size: .8rem; letter-spacing: .1em; color: var(--tnb-accent); font-weight: 700; }
.tanibe .tnb-card__title { font-weight: 900; font-size: 1.2rem; margin: 6px 0 10px; line-height: 1.5; }
.tanibe .tnb-card__text { color: var(--tnb-sub); font-size: .96rem; line-height: 1.8; }
@media (prefers-reduced-motion: no-preference) {
  .tanibe .tnb-card:hover { transform: translateY(-6px); }
  .tanibe .tnb-card .wp-block-image img { transition: transform .5s var(--tnb-ease); }
  .tanibe .tnb-card:hover .wp-block-image img { transform: scale(1.06); }
}
/* columnsを等高に */
.tanibe .wp-block-columns { gap: 24px; }
.tanibe .wp-block-column { display: flex; flex-direction: column; }

/* ---------------------------------------------------------
   8. 対応できる工事・建物
   --------------------------------------------------------- */
.tanibe .tnb-cap {
  background: var(--tnb-surface); border: 1px solid var(--tnb-line);
  border-radius: var(--tnb-radius); padding: 28px 28px 24px; box-shadow: var(--tnb-shadow); height: 100%;
}
.tanibe .tnb-cap__title { font-size: 1.05rem; font-weight: 900; margin-bottom: 16px; }
.tanibe .tnb-cap ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tanibe .tnb-cap li {
  font-size: .9rem; font-weight: 500; color: var(--tnb-ink);
  background: rgba(139,111,71,.07); border: 1px solid var(--tnb-line);
  border-radius: 999px; padding: 7px 14px; margin: 0;
}

/* ---------------------------------------------------------
   9. 施工事例
   --------------------------------------------------------- */
.tanibe .tnb-work { position: relative; }
.tanibe .tnb-work__badge {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: var(--tnb-accent); color: #402813; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; padding: 4px 12px; border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
/* グループブロックの :first-child マージンリセットに勝つよう詳細度を上げる */
.tanibe .tnb-card__body .tnb-work__title,
.tanibe .tnb-work__title {
  font-weight: 900; font-size: 1.02rem; line-height: 1.6;
  margin: 2px 0 6px;
}
.tanibe .tnb-card__body .tnb-work__title { margin-top: 2px !important; }
.tanibe .tnb-work__date {
  font-size: .82rem; color: var(--tnb-sub); letter-spacing: .06em;
  margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--tnb-line);
}
.tanibe .tnb-work.is-hidden,
.tanibe .wp-block-column.is-hidden { display: none; }

/* 絞り込みタブ（wp:buttons を流用） */
.tanibe .tnb-filter.wp-block-buttons { justify-content: center; gap: 10px; margin: 8px 0 40px; }
.tanibe .tnb-filter .wp-block-button__link {
  font-size: .92rem; font-weight: 500; color: var(--tnb-sub); cursor: pointer;
  background: var(--tnb-surface); border: 1px solid var(--tnb-line);
  border-radius: 999px; padding: 9px 20px;
}
.tanibe .tnb-filter .wp-block-button__link:hover { color: var(--tnb-primary); border-color: var(--tnb-primary); }
.tanibe .tnb-filter .wp-block-button.is-active .wp-block-button__link {
  background: var(--tnb-primary); color: #fff; border-color: var(--tnb-primary);
}
@media (prefers-reduced-motion: no-preference) {
  .tanibe .tnb-filter .wp-block-button__link:hover { transform: none; box-shadow: none; }
}
.tanibe .tnb-work-empty { text-align: center; color: var(--tnb-sub); padding: 40px 0; }

/* ---------------------------------------------------------
   10. 事業内容（左右交互・背景交互）
   --------------------------------------------------------- */
.tanibe .tnb-svc { padding-block: 88px; background: var(--tnb-surface); }
.tanibe .tnb-svc-tint { background: rgba(232,168,124,.12); }
.tanibe .tnb-svc .wp-block-columns { gap: 56px; align-items: center; }
.tanibe .tnb-svc .wp-block-column { justify-content: center; }
.tanibe .tnb-svc .wp-block-image { margin: 0; }
.tanibe .tnb-svc .wp-block-image img {
  border-radius: var(--tnb-radius-s); box-shadow: var(--tnb-shadow-lg); width: 100%;
}
.tanibe .tnb-svc__no {
  font-size: .8rem; font-weight: 700; letter-spacing: .18em;
  color: var(--tnb-accent); margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.tanibe .tnb-svc__no::after { content: ""; width: 34px; height: 1px; background: var(--tnb-line); display: inline-block; }
.tanibe .tnb-svc__title { font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.45; margin-bottom: 14px; }
.tanibe .tnb-svc__lead { font-weight: 700; font-size: 1.05rem; color: var(--tnb-primary); line-height: 1.8; margin-bottom: 14px; }
.tanibe .tnb-svc__text { color: var(--tnb-sub); font-size: .98rem; }
.tanibe .tnb-svc__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; padding: 0; }
.tanibe .tnb-svc__tags li {
  font-size: .82rem; color: var(--tnb-ink); background: rgba(255,255,255,.75);
  border: 1px solid var(--tnb-line); border-radius: 999px; padding: 5px 13px; margin: 0;
}
/* 画像を右に（交互） */
.tanibe .tnb-svc-rev .wp-block-columns { flex-direction: row-reverse; }

/* ---------------------------------------------------------
   11. お客様の声 / 会社紹介
   --------------------------------------------------------- */
/* 工事種別（誰の、どの現場の声かを先に示す） */
.tanibe .tnb-quote__cat {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tnb-primary); font-weight: 500;
}
/* お客様名：下にアクセントの短い罫線を敷いて見出しとして立てる */
.tanibe .tnb-quote__name {
  position: relative;
  font-weight: 900; font-size: 1.15rem; letter-spacing: .04em;
  color: var(--tnb-ink); margin: 6px 0 0; padding-bottom: 12px;
}
.tanibe .tnb-quote__name::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px; background: var(--tnb-accent);
}
/* 全行の行頭を同じ位置に揃える（text-indent は使わない） */
.tanibe .tnb-quote__text {
  font-size: 1.25rem; font-weight: 700; line-height: 1.9;
  margin: 14px 0 16px; text-indent: 0;
}
.tanibe .tnb-quote__who { color: var(--tnb-sub); font-size: .95rem; }
.tanibe .tnb-media img { border-radius: var(--tnb-radius-s); box-shadow: var(--tnb-shadow-lg); width: 100%; }
.tanibe .tnb-about__list { list-style: none; padding: 0; margin: 22px 0 26px; }
.tanibe .tnb-about__list li {
  margin: 0 0 8px; padding-left: 0; font-weight: 500;
  border-bottom: 1px dashed var(--tnb-line); padding-bottom: 8px;
}

/* ---------------------------------------------------------
   12. CTAバンド
   --------------------------------------------------------- */
.tanibe .tnb-cta { background: var(--tnb-ink-deep); color: var(--tnb-bg); padding-block: 72px; text-align: center; }
.tanibe .tnb-cta .tnb-h2 { color: #fff; }
.tanibe .tnb-cta .tnb-lead { color: rgba(250,247,242,.8); margin: 14px auto 0; max-width: 46em; }
.tanibe .tnb-cta .wp-block-buttons { justify-content: center; }

/* ---------------------------------------------------------
   13. テーブル（会社概要・採用情報）
   --------------------------------------------------------- */
.tanibe .wp-block-table { margin: 0; }
.tanibe .wp-block-table table {
  width: 100%; border-collapse: collapse; background: var(--tnb-surface);
  border: 1px solid var(--tnb-line); border-radius: var(--tnb-radius); overflow: hidden;
  table-layout: fixed;
}
.tanibe .wp-block-table th,
.tanibe .wp-block-table td {
  text-align: left; padding: 18px 22px; border: 0;
  border-bottom: 1px solid var(--tnb-line); vertical-align: top;
}
.tanibe .wp-block-table tr:last-child th,
.tanibe .wp-block-table tr:last-child td { border-bottom: 0; }
.tanibe .wp-block-table th {
  /* table-layout:fixed では1列目の指定幅が全体を決めるため !important で確実に */
  width: 200px !important;
  background: rgba(139,111,71,.05);
  font-weight: 700; color: var(--tnb-ink);
}
.tanibe .wp-block-table td { color: var(--tnb-sub); }

/* 地図プレースホルダ */
.tanibe .tnb-map {
  margin-top: 40px; aspect-ratio: 16 / 6; border-radius: var(--tnb-radius);
  border: 1px dashed var(--tnb-primary);
  background: repeating-linear-gradient(45deg, rgba(139,111,71,.05) 0 10px, transparent 10px 20px);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: var(--tnb-primary); letter-spacing: .06em; text-align: center; padding: 16px;
}

/* ---------------------------------------------------------
   14. お問い合わせ（フォーム枠はプレースホルダ）
   --------------------------------------------------------- */
.tanibe .tnb-panel {
  background: var(--tnb-surface); border: 1px solid var(--tnb-line);
  border-radius: var(--tnb-radius); padding: 32px; box-shadow: var(--tnb-shadow); height: 100%;
}
.tanibe .tnb-panel__title { font-weight: 900; margin-bottom: 6px; }
.tanibe .tnb-tel {
  font-weight: 700; font-size: 1.9rem; color: var(--tnb-primary);
  letter-spacing: .02em; margin: 8px 0; display: block; text-decoration: none;
}
.tanibe .tnb-note { font-size: .82rem; color: var(--tnb-sub); }
.tanibe .tnb-hours { color: var(--tnb-sub); font-size: .92rem; }
.tanibe .tnb-panel hr { border: 0; border-top: 1px solid var(--tnb-line); margin: 22px 0; }

/* ---------------------------------------------------------
   15. スクロール演出 / トップへ戻る（JSが付与）
   --------------------------------------------------------- */
.tanibe-js .tanibe .tnb-reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s var(--tnb-ease), transform .55s var(--tnb-ease); }
.tanibe-js .tanibe .tnb-reveal.is-in { opacity: 1; transform: none; }

.tnb-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: #E8A87C; color: #402813; border: none;
  box-shadow: 0 12px 40px rgba(58,50,38,.12);
  font-size: 1.2rem; line-height: 1;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity .3s, transform .3s, visibility .3s, background-color .2s;
}
.tnb-to-top.show { opacity: 1; visibility: visible; transform: none; }
.tnb-to-top:hover { background: #D98F5E; }

@media (prefers-reduced-motion: reduce) {
  .tanibe-js .tanibe .tnb-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------
   16. レスポンシブ
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .tanibe .tnb-sec { padding-block: 64px; }
  .tanibe .tnb-svc { padding-block: 56px; }
  .tanibe .tnb-svc .wp-block-columns { gap: 28px; }
  .tanibe .tnb-hero { min-height: 78vh; }
  .tanibe .tnb-hero::after {
    background: linear-gradient(0deg, rgba(22,17,10,.85) 0%, rgba(22,17,10,.4) 45%, rgba(22,17,10,.55) 100%);
  }
  /* 1カラム時は画像を常に上へ */
  .tanibe .tnb-svc-rev .wp-block-columns { flex-direction: column; }
}
@media (max-width: 781px) {
  .tanibe .wp-block-columns { gap: 20px; }
  .tanibe .wp-block-table th { width: 120px !important; }
  .tanibe .tnb-hero__dots { right: 16px; bottom: 16px; }
  .tanibe .tnb-hero__phase { top: 16px; right: 16px; }
}

/* =========================================================
   17. ヘッダー/フッター向けの最小限グローバル
   （SWELLが生成する領域のトンマナを本文に合わせる）
   ========================================================= */
/* ※ ここは body ではなく .has-tanibe（フロントの #body_wrap）を起点にする。
   このファイルはブロックエディタにも読み込むため、body を指定すると
   管理画面のUI全体まで明朝になってしまう。ヘッダー/フッターは #body_wrap の内側。 */
.has-tanibe,
.l-header, .l-header a,
.l-footer, .l-footer a,
.c-gnav, .c-gnav a,
.p-spMenu, .p-spMenu a {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "YuMincho", "Yu Mincho", "MS PMincho", serif;
}
.l-header { border-bottom: 1px solid #E5DDD0; }
.c-gnav > li > a:hover,
.l-footer a:hover { color: #8B6F47; }
/* サイトロゴ（テキスト）を本文の見出しと同じ強さに */
.l-header .l-header__logo a { color: #3A3226; letter-spacing: .06em; }

/* ---------------------------------------------------------
   17-a. ヘッダーナビ（静的サイトの .nav に合わせる）
   ・ロゴ横のタグライン（キャッチフレーズ）
   ・カレントページの強調（大きめ＋アクセントの下線）
   ・ナビ末尾のCTAボタン（メニュー項目に tnb-navcta クラスを付与）
   --------------------------------------------------------- */

/* ロゴ横のタグライン＝静的サイトの .brand__tag
   SWELL は既定で社名の下に積む（.-series .l-header__logo .c-catchphrase）ので、
   静的サイトと同じ「社名の右・ベースライン揃え」に組み替える */
.has-tanibe .l-header .l-header__logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.has-tanibe .l-header .l-header__logo .c-catchphrase {
  color: #7A7060;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0;
  margin: 0;
}

/* 下線をネイビー（SWELL既定）からアクセントへ */
.c-gnav > li > a::after { background: #E8A87C; }

/* カレントページの項目だけ下線を出し、少し大きく・ブランド色に */
.c-gnav > li.current-menu-item > a::after { transform: scaleX(1); }
.c-gnav > li.current-menu-item > a { color: #8B6F47; }
.c-gnav > li.current-menu-item > a .ttl { font-size: 1.06em; font-weight: 700; }

/* ナビ末尾のCTAボタン（静的サイトの .nav .btn--primary と同じ） */
.c-gnav > li.tnb-navcta { margin-left: 10px; display: flex; align-items: center; }
.c-gnav > li.tnb-navcta > a {
  background: #E8A87C;
  color: #402813;
  font-weight: 700;
  border-radius: 8px;
  /* SWELL の gnav リンクは height:100% でヘッダー全高に伸びるため解除し、
     内容に合わせた高さにして上下に余白を持たせる */
  height: auto;
  align-self: center;
  padding: 8px 16px;
  font-size: .88rem;
  line-height: 1.6;
  /* 静的サイトの .btn と同じボックスにする（.btn は border:2px solid transparent を持つ） */
  border: 2px solid transparent;
  transition: background-color .2s ease, transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s ease;
}
/* SWELL の gnav リンクは line-height が詰まるため、ボタン内の文字にも明示 */
.c-gnav > li.tnb-navcta > a .ttl { line-height: 1.6; }
.c-gnav > li.tnb-navcta > a:hover { background: #D98F5E; color: #402813; }
/* ボタン項目には下線・文字拡大を出さない */
.c-gnav > li.tnb-navcta > a::after { content: none; }
.c-gnav > li.tnb-navcta.current-menu-item > a { color: #402813; }
.c-gnav > li.tnb-navcta > a .ttl { font-size: inherit; font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .c-gnav > li.tnb-navcta > a:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 24px rgba(232,168,124,.38);
  }
}

/* スマホのドロワーメニュー */
.c-spnav > li.current-menu-item > a { color: #8B6F47; font-weight: 700; }
.c-spnav > li.tnb-navcta > a {
  background: #E8A87C;
  color: #402813;
  font-weight: 700;
  border-radius: 8px;
  margin: 14px 0 0;
  text-align: center;
  justify-content: center;
}
.c-spnav > li.tnb-navcta > a::before { content: none; }

@media (max-width: 1040px) {
  .has-tanibe .l-header .l-header__logo .c-catchphrase { display: none; }
}

/* ---------------------------------------------------------
   17-b. フッター（静的サイトの .site-footer に合わせる）
   ・中身は footer_box1/2/3 のブロックウィジェット
   ・各ウィジェットは .tanibe .tnb-foot で包んでスコープを維持
   --------------------------------------------------------- */
.l-footer { color: rgba(250,247,242,.75); }
.l-footer a { color: rgba(250,247,242,.8); }
.l-footer a:hover { color: #fff; }

/* 3カラム（静的の 1.4fr / 1fr / 1fr）。SWELLのウィジェット行をグリッド化 */
.l-footer .w-footer.-col3 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.l-footer .w-footer__box { width: auto; margin: 0; padding: 0; }
.l-footer .c-widget__title { display: none; }

/* ウィジェット内は .tanibe で包むため、本文用の配色を継がせずフッターの配色に戻す */
.tanibe.tnb-foot { background: none; color: rgba(250,247,242,.75); }
.tanibe.tnb-foot p, .tanibe.tnb-foot li { color: inherit; }
.tanibe .tnb-foot-brand { display: flex; flex-direction: column; gap: 4px; }
.tanibe .tnb-foot-name {
  color: #fff; font-weight: 900; font-size: 1.6rem; letter-spacing: .06em;
}
.tanibe .tnb-foot-tag {
  color: var(--tnb-accent); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}
.tanibe .tnb-foot-desc { margin-top: 14px; font-size: .9rem; line-height: 1.9; }
.tanibe .tnb-foot-strong { color: #fff; }

.tanibe .tnb-foot-h {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tnb-accent); margin-bottom: 14px; font-weight: 500;
}
.tanibe .tnb-foot-nav { list-style: none; margin: 0; padding: 0; }
.tanibe .tnb-foot-nav li { margin: 0; }
.tanibe .tnb-foot-nav a { display: block; padding: 5px 0; font-size: .92rem; }

.tanibe .tnb-foot-tel a { font-size: 1.05rem; letter-spacing: .04em; }
.tanibe .tnb-foot-meta { margin-top: 6px; font-size: .9rem; line-height: 1.9; }

/* フッターメニュー（Pagesと重複するため非表示）と区切り線 */
.l-footer .l-footer__nav { display: none; }
.l-footer .l-footer__foot { border-top: 1px solid rgba(255,255,255,.12); }
.l-footer .copyright {
  font-size: .72rem; letter-spacing: .06em; color: rgba(250,247,242,.5); text-align: center;
}

@media (max-width: 900px) {
  .l-footer .w-footer.-col3 { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================
   18. ブロックエディタ用の調整
   このファイルは functions.php の enqueue_block_editor_assets でも
   読み込まれる。SWELL のエディタCSSより後に当たるため、
   .tanibe の打ち消し（見出し装飾・行間など）がエディタ内でも効く。
   ========================================================= */
/* SWELL は gutenberg.css で `.editor-styles-wrapper.editor-styles-wrapper`
   （詳細度 0,2,0）に背景とフォントを当てているので、同じ詳細度で上書きする */
.editor-styles-wrapper.editor-styles-wrapper {
  background-color: var(--tnb-bg);
  font-family: var(--tnb-serif);
}
/* 本文ルートの .tanibe はエディタでも全幅で扱う */
.editor-styles-wrapper .wp-block-group.tanibe {
  max-width: none;
  background: none;
}
/* 見出しの打ち消し（エディタ用）
   SWELL はエディタ側で `.editor-styles-wrapper h2[data-type="core/heading"] { color:#fff }`
   （詳細度 0,2,1）を当てており、フロント用の `.tanibe h2`（0,1,1）では勝てない。
   ここで同等以上の詳細度で指定し直す。 */
.editor-styles-wrapper .tanibe h1,
.editor-styles-wrapper .tanibe h2,
.editor-styles-wrapper .tanibe h3,
.editor-styles-wrapper .tanibe h4,
.editor-styles-wrapper .tanibe h5,
.editor-styles-wrapper .tanibe h6 {
  color: var(--tnb-ink);
  background: none;
  padding: 0;
  border: 0;
}
/* 暗い背景の上の見出しは白のまま */
.editor-styles-wrapper .tanibe .tnb-cta .tnb-h2,
.editor-styles-wrapper .tanibe .tnb-hero__title { color: #fff; }

/* --- 編集画面と表示画面でスケールを揃える ---
   見出しは clamp(…, vw, …) で画面幅に応じて拡大縮小するため、
   エディタのキャンバス幅（サイドバーの分だけ狭い）では表示側と違う大きさになり、
   結果として改行位置がズレる。エディタでは PC表示時の値（clamp の上限）に固定する。 */
.editor-styles-wrapper .tanibe .tnb-h1          { font-size: 3.5rem; }
.editor-styles-wrapper .tanibe .tnb-h2          { font-size: 2.35rem; }
.editor-styles-wrapper .tanibe .tnb-svc__title  { font-size: 1.9rem; }
.editor-styles-wrapper .tanibe .tnb-hero__title { font-size: 6rem; }
.editor-styles-wrapper .tanibe .tnb-hero__sub   { font-size: 1.45rem; }

/* 本文の横幅も表示側と同じ 1120px に固定（改行位置を一致させる） */
.editor-styles-wrapper .tanibe .tnb-inner {
  max-width: var(--tnb-maxw);
  margin-inline: auto;
  padding-inline: var(--tnb-gutter);
}
/* エディタ側の余分な左右パディングで本文幅が削られないようにする */
.editor-styles-wrapper .tanibe .tnb-sec > .wp-block-group__inner-container { padding-inline: 0; }

/* エディタではセクションの上下余白を詰めて編集しやすくする */
.editor-styles-wrapper .tanibe .tnb-sec { padding-block: 48px; }
.editor-styles-wrapper .tanibe .tnb-sec-tight { padding-block: 32px; }
.editor-styles-wrapper .tanibe .tnb-hero { min-height: 420px; }
