/* ============================================================
   百瀬断熱 v2 — 生成りの地に、大きな欧文。
   ============================================================ */

:root {
  --bg:        #EBE7E0;   /* 生成り */
  --bg-soft:   #F2EFE9;
  --ink:       #111111;
  --muted:     #6B6760;
  --line:      rgba(17,17,17,0.14);
  --line-soft: rgba(17,17,17,0.08);
  --white:     #FFFFFF;

  --f-en: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --f-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;

  /* 中年〜年配の方も読む前提で、本文 17px を基準にしています。
     小さい文字も 13px より下げていません。 */
  --t-xs:  0.8125rem;   /* 13px 注記・日付 */
  --t-sm:  0.875rem;    /* 14px 補足 */
  --t-cap: 0.9375rem;   /* 15px 説明文・ナビ */
  --t-base:1.0625rem;   /* 17px 本文 */
  --t-md:  1.25rem;     /* 20px リード文 */
  --t-lg:  clamp(1.375rem, 2vw, 1.625rem);
  --t-xl:  clamp(1.875rem, 3.1vw, 2.625rem);
  --t-2xl: clamp(2.25rem, 4.4vw, 3.5rem);
  --t-mega:clamp(3.25rem, 11.5vw, 9.5rem);

  --wrap: 1920px;   /* ほぼ画面幅いっぱい。左右は --gut の余白で決まる */
  --gut: 24px;
  --sec-y: clamp(72px, 8.5vw, 130px);
  --r-img: 10px;
  --r-band: clamp(24px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 0.75, 0.3, 1);
}

@media (min-width: 900px)  { :root { --gut: 56px; } }
@media (min-width: 1200px) { :root { --gut: 80px; } }

/* ── 土台 ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-jp);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 2.1;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
  position: relative;
}

img, svg, video { max-width: 100%; display: block; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--ink); color: var(--bg);
  padding: 10px 18px; font-size: var(--t-cap);
}
.skip-link:focus { top: 12px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── 版面 ─────────────────────────────────────── */
.container {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  position: relative;
  z-index: 2;
}

.section { padding-block: var(--sec-y); }
.section--first { padding-top: clamp(120px, 14vw, 190px); }

/* ── 欧文の見出し ─────────────────────────────── */
.en {
  font-family: var(--f-en);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.sec-head { text-align: center; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head__jp {
  font-family: var(--f-jp);
  font-weight: 700;
  font-size: var(--t-xl);
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--ink);
}
.sec-head__en {
  margin-top: 8px;
  font-family: var(--f-en);
  font-weight: 300;
  font-size: var(--t-sm);
  letter-spacing: 0.26em;
  color: var(--muted);
}

/* ── 丸ボタン ─────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--f-en);
  font-size: var(--t-cap);
  letter-spacing: 0.08em;
  line-height: 1;
  transition: opacity 0.25s var(--ease);
}
.pill:hover { opacity: 0.78; }
.pill--lg { min-height: 64px; padding: 0 56px; font-size: var(--t-md); }
.pill--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.pill--ghost:hover { background: var(--ink); color: var(--bg); opacity: 1; }

/* 矢印つきリンク */
.more {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-en);
  font-size: var(--t-cap);
  letter-spacing: 0.08em;
  color: var(--ink);
}
.more::after {
  content: "";
  width: 52px; height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.more:hover::after { width: 72px; }

/* 文字や写真は下地より前に置く */
.site-header, .hero, .section, .site-footer { position: relative; z-index: 2; }

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-block: 18px;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
/* 下へスクロールしている間は引っ込める（上へ戻すと再び出る） */
.site-header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}
.site-header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo { margin-right: auto; }
.site-logo img { max-height: 40px; width: auto; }
.site-logo__text {
  font-family: var(--f-jp);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.site-logo__en {
  display: block;
  font-family: var(--f-en);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 3px;
}

.site-nav__list { display: flex; align-items: center; gap: 34px; }
.site-nav__list a {
  font-family: var(--f-en);
  font-size: var(--t-cap);
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: opacity 0.2s var(--ease);
}
.site-nav__list a:hover { opacity: 0.5; }
.site-nav__list .current-menu-item > a { color: var(--muted); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
}
.nav-toggle__bar { display: block; width: 26px; height: 1px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
/* 開いている間はドロワー内の × に役目をゆずる */
.nav-toggle.is-open { opacity: 0; pointer-events: none; }

.site-overlay {
  position: fixed; inset: 0;
  background: rgba(17,17,17,0.35);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  z-index: 48;
}
.site-overlay.is-visible { opacity: 1; visibility: visible; }

/* ドロワー内の閉じるボタン */
.nav-close {
  display: none;
  position: absolute;
  top: 22px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  place-items: center;
  color: var(--ink);
  background: transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.nav-close:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.nav-close svg { width: 20px; height: 20px; }

@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .nav-close { display: grid; }
  .site-header__cta { display: none; }
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(340px, 88vw);
    height: 100dvh;
    background: var(--bg-soft);
    padding: 104px 32px 40px;
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition: clip-path 0.4s var(--ease), visibility 0.4s;
    z-index: 49;
    overflow-y: auto;
  }
  .site-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--line-soft); }
  .site-nav__list a { display: block; padding: 20px 0; font-size: var(--t-md); }
}

/* ============================================================
   ヒーロー
   ============================================================ */
.hero { position: relative; padding-top: clamp(104px, 13vw, 150px); }

.hero__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  position: relative;
  z-index: 2;
}

/* 屋号を大きく置く */
.hero__mark { text-align: right; }
.hero__mark-jp {
  display: block;
  font-family: var(--f-jp);
  font-weight: 700;
  font-size: var(--t-mega);
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.hero__mark-en {
  display: block;
  font-family: var(--f-en);
  font-weight: 300;
  font-size: clamp(0.875rem, 1.6vw, 1.25rem);
  letter-spacing: 0.4em;
  color: var(--muted);
  margin-top: 10px;
  padding-right: 0.4em;
}

.hero__copy { max-width: 36em; padding-top: clamp(16px, 3vw, 40px); }
.hero__jp {
  font-size: var(--t-md);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.9;
  margin-bottom: 10px;
}
.hero__sub {
  font-size: var(--t-cap);
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* 下に続く全面写真 */
.hero__band {
  margin-top: clamp(24px, 4vw, 48px);
  overflow: hidden;
  position: relative;
  /* 上端は地の色に溶かし、下に向かって写真が現れる */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.35) 14%, #000 42%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.35) 14%, #000 42%);
}
.hero__band img {
  width: 100%;
  height: clamp(320px, 52vw, 680px);
  object-fit: cover;
}
/* 白文字を読ませるための薄い覆い */
.hero__band::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(to top, rgba(17,17,17,0.55), rgba(17,17,17,0));
  pointer-events: none;
}

.hero__band-note {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(20px, 4vw, 48px);
  max-width: 34em;
  font-size: var(--t-sm);
  line-height: 2;
  color: var(--white);
}

/* ============================================================
   散らした写真
   ============================================================ */
.scatter {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: start;
}
.scatter__item { border-radius: var(--r-img); overflow: hidden; }
.scatter__item img { width: 100%; object-fit: cover; }

.scatter__item--a { grid-column: 1 / span 5; aspect-ratio: 4/3; margin-top: clamp(40px, 6vw, 96px); }
.scatter__item--b { grid-column: 6 / span 3; aspect-ratio: 3/4; }
.scatter__item--c { grid-column: 9 / span 4; aspect-ratio: 4/3; margin-top: clamp(24px, 4vw, 56px); }
.scatter__item--a img, .scatter__item--b img, .scatter__item--c img { height: 100%; }

@media (max-width: 767px) {
  .scatter { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .scatter__item--a { grid-column: 1 / span 4; margin-top: 40px; }
  .scatter__item--b { grid-column: 5 / span 2; }
  .scatter__item--c { grid-column: 2 / span 5; margin-top: 16px; }
}

/* ============================================================
   事業内容（3列・高さをずらす）
   ============================================================ */
.works3 { display: grid; gap: clamp(32px, 4vw, 48px); }
/* 文字を大きくしたぶん、1列あたりの幅が狭くならないよう段階的に増やす */
@media (min-width: 700px)  { .works3 { grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: start; } }
@media (min-width: 1040px) { .works3 { grid-template-columns: repeat(3, 1fr); } }

.work3__num {
  font-family: var(--f-en);
  font-size: var(--t-sm);
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.work3__title {
  font-family: var(--f-jp);
  font-weight: 700;
  font-size: var(--t-lg);
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-bottom: 20px;
}
.work3__en {
  display: block;
  font-family: var(--f-en);
  font-size: var(--t-sm);
  font-weight: 300;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-top: 5px;
}
.work3__figure { border-radius: var(--r-img); overflow: hidden; margin-bottom: 24px; }
.work3__figure img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.work3__text { font-size: var(--t-cap); line-height: 2.1; color: var(--ink); max-width: 30em; margin-bottom: 28px; }
.work3__foot { display: flex; justify-content: center; }

@media (min-width: 1040px) {
  .works3 > :nth-child(2) { margin-top: -48px; }
  .works3 > :nth-child(3) { margin-top: 24px; }
}

/* ============================================================
   施工実績
   ============================================================ */
.works-grid { display: grid; gap: clamp(28px, 3.5vw, 44px); }
@media (min-width: 680px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .works-grid { grid-template-columns: repeat(3, 1fr); } }

.work-card__thumb { border-radius: var(--r-img); overflow: hidden; margin-bottom: 18px; background: var(--bg-soft); }
.work-card__thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.7s var(--ease); }
.work-card__link:hover .work-card__thumb img { transform: scale(1.04); }
.work-card__thumb--placeholder {
  aspect-ratio: 4/3; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted); font-size: var(--t-sm); letter-spacing: 0.1em;
}
.work-card__meta { display: flex; gap: 14px; font-size: var(--t-xs); letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.work-card__date { font-family: var(--f-en); }
.work-card__title { font-size: var(--t-base); font-weight: 500; line-height: 1.8; margin-bottom: 8px; }
.work-card__link:hover .work-card__title { opacity: 0.6; }
.work-card__desc { font-size: var(--t-cap); line-height: 2; color: var(--muted); margin-bottom: 8px; }
.work-card__location { font-size: var(--t-xs); color: var(--muted); }

.works-empty { border: 1px solid var(--line); border-radius: var(--r-img); padding: 64px 24px; text-align: center; color: var(--muted); font-size: var(--t-cap); line-height: 2; }
.works-empty a { color: var(--ink); text-underline-offset: 4px; }
.works-empty small { display: inline-block; margin-top: 10px; font-size: var(--t-xs); opacity: .8; }

.works-filter { margin-bottom: clamp(32px, 4vw, 52px); display: flex; justify-content: center; }
.works-filter__list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.works-filter__link {
  display: inline-block; padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--line); font-size: var(--t-sm); color: var(--muted);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.works-filter__link:hover { border-color: var(--ink); color: var(--ink); }
.works-filter__link.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.works-filter__count { margin-left: 6px; font-family: var(--f-en); font-size: var(--t-xs); }

/* 実績詳細 */
.work-single__head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.work-single__meta { display: flex; justify-content: center; gap: 16px; font-size: var(--t-sm); color: var(--muted); margin-bottom: 14px; }
.work-single__title { font-size: var(--t-xl); font-weight: 500; line-height: 1.6; }
.work-single__figure { border-radius: var(--r-band); overflow: hidden; margin-bottom: clamp(40px, 5vw, 64px); }
.work-single__figure img { width: 100%; object-fit: cover; }
.work-single__layout { display: grid; gap: 48px; }
@media (min-width: 900px) { .work-single__layout { grid-template-columns: minmax(0,7fr) minmax(0,4fr); gap: 72px; } }

.work-body { font-size: var(--t-base); line-height: 2.1; }
.work-body > * + * { margin-top: 1.5em; }

.work-data { border-top: 1px solid var(--ink); }
.work-data__row { display: grid; grid-template-columns: 7em minmax(0,1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: var(--t-cap); }
.work-data__row dt { color: var(--muted); }

.ba-grid { display: grid; gap: 20px; margin-top: 44px; }
@media (min-width: 680px) { .ba-grid { grid-template-columns: 1fr 1fr; } }
.ba-item figcaption { font-family: var(--f-en); font-size: var(--t-sm); letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.ba-item img, .ba-item > :not(figcaption) { border-radius: var(--r-img); overflow: hidden; }

.pagination, .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.page-numbers {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding-inline: 10px;
  border: 1px solid var(--line); border-radius: 999px; font-family: var(--f-en); font-size: var(--t-cap); color: var(--muted);
}
.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.post-navigation { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; gap: 20px; margin-top: 0; }
@media (min-width: 720px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a { font-size: var(--t-cap); line-height: 1.8; }
.post-navigation a:hover { opacity: 0.6; }
.post-navigation span { display: block; font-family: var(--f-en); font-size: var(--t-xs); color: var(--muted); margin-bottom: 4px; }
.nav-next { text-align: right; }

/* ============================================================
   本文・会社情報
   ============================================================ */
.measure { max-width: 34em; }
.center-measure { max-width: 40em; margin-inline: auto; text-align: center; }

.lead { font-size: var(--t-md); line-height: 2.1; }
.note { font-size: var(--t-cap); color: var(--muted); }

.message-body { max-width: 34em; margin-inline: auto; }
.message-body > p + p { margin-top: 1.6em; }
.message-sign { margin-top: 2.6em !important; font-size: var(--t-cap); color: var(--muted); }
.message-sign strong { font-size: 1.15em; color: var(--ink); font-weight: 500; }

.profile-table { border-top: 1px solid var(--ink); max-width: 760px; margin-inline: auto; }
.profile-table th, .profile-table td {
  text-align: left; vertical-align: top; padding: 18px 0;
  border-bottom: 1px solid var(--line-soft); font-size: var(--t-cap); line-height: 2;
}
.profile-table th { width: 11em; font-weight: 400; color: var(--muted); padding-right: 24px; }
.profile-table a { border-bottom: 1px solid var(--line); }
.profile-table a:hover { opacity: 0.6; }
@media (max-width: 599px) {
  .profile-table th, .profile-table td { display: block; width: auto; padding-right: 0; }
  .profile-table th { border-bottom: none; padding-bottom: 0; }
  .profile-table td { padding-top: 4px; }
}

/* 施工の流れ */
.flow { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.flow__item { display: grid; gap: 4px 32px; padding: 26px 0; border-bottom: 1px solid var(--line-soft); }
@media (min-width: 760px) { .flow__item { grid-template-columns: 4em minmax(0,1fr); align-items: baseline; } }
.flow__num { font-family: var(--f-en); font-size: var(--t-sm); letter-spacing: 0.1em; color: var(--muted); }
.flow__title { font-size: var(--t-md); font-weight: 500; line-height: 1.7; margin-bottom: 6px; }
.flow__text { font-size: var(--t-cap); line-height: 2.05; color: var(--muted); }

/* ============================================================
   お問い合わせ
   ============================================================ */
.contact-center { text-align: center; }
.contact-center__lead { font-size: var(--t-cap); line-height: 2.1; color: var(--muted); margin-bottom: 40px; }
.contact-center__tel {
  display: block;
  width: fit-content;
  margin-inline: auto;
  font-family: var(--f-en);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-top: 36px;
}
.contact-center__tel:hover { opacity: 0.6; }
.contact-center__tel-label { display: block; font-size: var(--t-sm); letter-spacing: 0.2em; color: var(--muted); margin-bottom: 8px; }

.contact-grid { display: grid; gap: clamp(44px, 6vw, 72px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0,4fr) minmax(0,7fr); gap: 72px; } }

.contact-info { border-top: 1px solid var(--ink); }
.contact-info__item { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.contact-info__label { font-family: var(--f-en); font-size: var(--t-xs); letter-spacing: 0.14em; color: var(--muted); margin-bottom: 6px; }
.contact-info__tel { display: block; font-family: var(--f-en); font-size: 1.625rem; line-height: 1.3; }
.contact-info__tel:hover, .contact-info__email:hover { opacity: 0.6; }
.contact-info__email { font-size: var(--t-base); border-bottom: 1px solid var(--line); }
.contact-info__note { font-size: var(--t-xs); color: var(--muted); margin-top: 6px; }
.contact-info__address { font-size: var(--t-cap); }

.form-group { margin-bottom: 26px; }
.form-label { display: flex; align-items: center; gap: 10px; font-size: var(--t-cap); margin-bottom: 8px; }
.required { font-family: var(--f-en); font-size: var(--t-xs); letter-spacing: 0.08em; color: var(--bg); background: var(--ink); border-radius: 999px; padding: 2px 10px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 15px 18px;
  font-family: var(--f-jp); font-size: var(--t-base); line-height: 1.8; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-img);
  transition: border-color 0.2s var(--ease);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--ink); }
.form-textarea { resize: vertical; min-height: 170px; }
.form-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form-checkbox { display: flex; align-items: center; gap: 10px; font-size: var(--t-cap); cursor: pointer; }
.form-checkbox input { width: 18px; height: 18px; accent-color: var(--ink); }
.form-group--privacy { padding: 18px 0; border-block: 1px solid var(--line-soft); }
.form-submit { margin-top: 30px; display: flex; justify-content: center; }
.contact-form__note { font-size: var(--t-xs); color: var(--muted); margin-top: 18px; text-align: center; }

/* ============================================================
   固定ページ本文
   ============================================================ */
.page-body, .entry-content { max-width: 34em; margin-inline: auto; font-size: var(--t-base); line-height: 2.1; }
.page-body > * + *, .entry-content > * + * { margin-top: 1.6em; }
.page-body h2, .entry-content h2 { font-size: var(--t-lg); font-weight: 500; margin-top: 2.2em; }
.page-body h3, .entry-content h3 { font-size: var(--t-md); font-weight: 500; margin-top: 2em; }
.page-body ul, .entry-content ul { padding-left: 1.3em; list-style: disc; }
.page-body a, .entry-content a { border-bottom: 1px solid var(--line); }

.page-title { text-align: center; font-size: var(--t-xl); font-weight: 500; line-height: 1.5; margin-bottom: clamp(40px, 5vw, 64px); }

.breadcrumb { margin-bottom: 28px; }
.breadcrumb__list { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--t-xs); color: var(--muted); justify-content: center; }
.breadcrumb__list li + li::before { content: "/"; margin-right: 10px; }
.breadcrumb__list a:hover { opacity: 0.6; }

.posts-grid { display: grid; gap: clamp(28px, 3.5vw, 44px); }
@media (min-width: 680px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card__thumb { display: block; border-radius: var(--r-img); overflow: hidden; margin-bottom: 16px; }
.post-card__thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.post-card__date { display: block; font-family: var(--f-en); font-size: var(--t-xs); color: var(--muted); margin-bottom: 8px; }
.post-card__title { font-size: var(--t-base); font-weight: 500; line-height: 1.8; margin-bottom: 8px; }
.post-card__excerpt { font-size: var(--t-cap); color: var(--muted); }
.single-post__header { text-align: center; margin-bottom: 28px; }
.single-post__date { font-family: var(--f-en); font-size: var(--t-sm); color: var(--muted); }
.single-post__thumb { border-radius: var(--r-band); overflow: hidden; margin-bottom: 40px; }

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(60px, 8vw, 120px);
  border-radius: var(--r-band) var(--r-band) 0 0;
  overflow: hidden;
  background: var(--bg-soft);
  isolation: isolate;
}
.site-footer__bg {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.22;
}
.site-footer__top { padding-block: clamp(56px, 8vw, 96px); }
.site-footer__grid { display: grid; gap: 44px; }
@media (min-width: 840px) { .site-footer__grid { grid-template-columns: minmax(0,1fr) auto; gap: 72px; align-items: start; } }

.site-footer__logo-text { font-family: var(--f-jp); font-weight: 700; font-size: 1.375rem; letter-spacing: 0.14em; }
.site-footer__logo-en { display: block; font-family: var(--f-en); font-weight: 300; font-size: var(--t-xs); letter-spacing: 0.3em; color: var(--muted); margin-top: 4px; }
.site-footer__logo img { max-height: 44px; width: auto; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.site-footer__nav a { font-family: var(--f-en); font-size: var(--t-cap); letter-spacing: 0.06em; }
.site-footer__nav a:hover { opacity: 0.6; }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end;
  padding-bottom: clamp(32px, 4vw, 48px);
}
.site-footer__address { font-size: var(--t-sm); line-height: 1.95; color: var(--muted); }
.site-footer__address strong { display: block; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.site-footer__address a:hover { opacity: 0.6; }
.site-footer__copy { font-family: var(--f-en); font-size: var(--t-xs); letter-spacing: 0.06em; color: var(--muted); }

/* ============================================================
   読み込み時にひと息で出す（控えめに一度だけ）
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__mark, .js .hero__copy, .js .hero__band {
    opacity: 0;
    transform: translateY(14px);
  }
  .js .hero.is-ready .hero__mark,
  .js .hero.is-ready .hero__copy,
  .js .hero.is-ready .hero__band {
    opacity: 1;
    transform: none;
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  .js .hero.is-ready .hero__copy { transition-delay: 0.14s; }
  .js .hero.is-ready .hero__band { transition-delay: 0.26s; }
}

/* ============================================================
   施工実績：横に送るカルーセル
   ------------------------------------------------------------
   .pipe__track が横に流れる帯。
   横スクロールとスナップで、1枚ずつ送れるようにしています。
   ============================================================ */
.pipe {
  position: relative;
}

.pipe__track {
  display: flex;
  gap: clamp(18px, 2.4vw, 32px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pipe__track::-webkit-scrollbar { display: none; }

.pipe__track > * {
  flex: 0 0 clamp(236px, 28vw, 310px);
  scroll-snap-align: start;
}

/* 送りボタン */
.pipe-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.pipe-btn {
  width: 48px; height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
}
.pipe-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pipe-btn[disabled] { opacity: 0.3; cursor: default; }
.pipe-btn[disabled]:hover { background: var(--bg-soft); border-color: var(--line); color: var(--ink); }
.pipe-btn svg { width: 18px; height: 18px; }

.pipe-hint {
  text-align: center;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .pipe__track { scroll-behavior: auto; }
}

/* ============================================================
   温度計：カルーセルをどこまで送ったかを示す
   ------------------------------------------------------------
   右へ伸びる液柱が送った量。カルーセルを戻せば液柱も戻ります。
   ============================================================ */
:root {
  --thermo-warm: #C2501F;
  --thermo-hot:  #E8A33C;
}

.thermo {
  display: flex;
  align-items: center;
  margin-top: clamp(28px, 3.5vw, 40px);
}

/* 管 */
.thermo__tube {
  position: relative;
  flex: 1;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #D3CDC2, #E4DFD5 55%, #DAD4C9);
  box-shadow:
    inset 0 1px 2px rgba(17,17,17,0.18),
    inset 0 -1px 0 rgba(255,255,255,0.7);
  overflow: hidden;
}

/* 液柱：--p（0〜1）で伸び縮みする */
.thermo__fluid {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% * var(--p, 0));
  border-radius: 999px;
  background: linear-gradient(to right, var(--thermo-warm), var(--thermo-hot));
  box-shadow: inset 0 -1px 1px rgba(17,17,17,0.2);
  transition: width 0.28s var(--ease);
}

/* 目盛り */
.thermo__ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to right,
    rgba(17,17,17,0.26) 0 1px,
    transparent 1px 10%
  );
  background-position: left center;
  mix-blend-mode: multiply;
  opacity: 0.55;
}

@media (max-width: 599px) {
  .thermo__tube { height: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .thermo__fluid { transition: none; }
}

/* ============================================================
   画面下部に固定する相談バー
   ------------------------------------------------------------
   画面幅いっぱいを等分し、電話とお問い合わせフォームに分けています。
   右上の小さなボタンはページ先頭へ戻ります。
   ============================================================ */
.cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  transition: opacity 0.25s var(--ease), visibility 0.25s, transform 0.25s var(--ease);
}

.cta-bar__row {
  display: flex;
  background: var(--ink);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.cta-bar__item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 16px;
  color: var(--bg);
  font-size: var(--t-cap);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-align: center;
  transition: background-color 0.25s var(--ease);
}
.cta-bar__item + .cta-bar__item { border-left: 1px solid rgba(235,231,224,0.18); }
.cta-bar__item:hover { background: rgba(255,255,255,0.08); }
.cta-bar__item svg { width: 17px; height: 17px; flex: none; opacity: 0.85; }

.cta-bar__num {
  font-family: var(--f-en);
  font-size: var(--t-base);
  letter-spacing: 0.02em;
}

/* お問い合わせフォーム側だけ色を変えて目を向ける */
.cta-bar__item--accent {
  background: var(--thermo-warm);
  border-left-color: transparent !important;
}
.cta-bar__item--accent:hover { background: #A8431A; }

/* 先頭へ戻るボタン */
.cta-bar__top {
  position: absolute;
  right: 16px;
  bottom: calc(100% + 14px);
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(17,17,17,0.10);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.cta-bar__top:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cta-bar__top svg { width: 18px; height: 18px; }

@media (max-width: 599px) {
  .cta-bar__item { min-height: 58px; gap: 7px; font-size: var(--t-sm); padding-inline: 10px; }
  .cta-bar__item svg { width: 15px; height: 15px; }
  .cta-bar__num { display: none; }      /* 幅が足りないので番号は省く */
  .cta-bar__top { width: 40px; height: 40px; right: 12px; bottom: calc(100% + 10px); }
}

/* メニューを開いている間は引っ込める */
.cta-bar.is-off {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

/* バーのぶんの余白はフッターに持たせる。
   body に付けるとフッターの下に地の色の帯ができてしまうため。 */
.site-footer { padding-bottom: 86px; }
@media (max-width: 599px) { .site-footer { padding-bottom: 76px; } }

@media print {
  .cta-bar { display: none; }
  .site-footer { padding-bottom: 0; }
}

/* ------------------------------------------------------------
   プラグインが出す「ページ先頭へ戻る」ボタンを隠す
   ------------------------------------------------------------
   テーマ側のボタン（.cta-bar__top）と二重に出てしまうため。
   VK All in One Expansion Unit（ExUnit）などで使われる名前を並べています。
   確実なのはプラグイン側の設定でオフにすることです。
   名前が違って消えない場合は、実際のクラス名を調べて追記してください。
   ------------------------------------------------------------ */
.veu_pageTop,
.page_top_btn,
#page_top,
#page-top,
.pagetop,
.page-top-btn { display: none !important; }
