/* テンプレート：corporate
   白と薄い灰色の面に、会社の色（--main。site.yaml の theme.color）を1色だけ。影・グラデーションは使わない。
   書体（--font-heading・--font-body・--font-en・--font-catch）は site.yaml の theme.fonts から <html> に入る。
   動きは html.motion のときだけ付ける（JavaScript がない・動きを減らす設定でも、内容はすべて見える） */

:root {
  --white: #fff;
  --tint: #f5f5f3;
  --ink: #222;
  --ink-soft: #6b6b6b;
  --line: #e2e2df;
  --dark: #2e3136;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  --callbar-h: 64px;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.06em;
  padding-bottom: var(--callbar-h);
}

main {
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 960px;
}

.section {
  padding: 80px 0;
}

.section--tint {
  background: var(--tint);
}

.pending {
  color: var(--ink-soft);
  font-size: 0.9em;
}

.empty,
.note {
  color: var(--ink-soft);
  text-align: center;
}

.note {
  margin-top: 40px;
  font-size: 14px;
}

/* ── デモ用の帯 ── */
.demo-banner {
  position: relative;
  z-index: 40;
  background: #fff4c2;
  color: #5c4a00;
  font-size: 12px;
  text-align: center;
  padding: 6px 16px;
  line-height: 1.6;
}

.demo-banner__date {
  white-space: nowrap;
}

/* ── 写真とダミー枠 ── */
.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: #e9e9e6;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
  padding: 16px;
}

/* ── 記号（電話・メールなど） ── */
.mark {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── 見出し：英字の小さなラベルと日本語 ── */
.head {
  margin-bottom: 48px;
}

.head__en {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--main);
  line-height: 1.6;
}

.head__ja {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.head__lead {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

.head--center {
  text-align: center;
}

.head--center .head__ja::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  margin: 20px auto 0;
  background: var(--ink);
}

/* ── ボタン：細い枠と長い矢印 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 260px;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn__arrow {
  position: relative;
  width: 32px;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}

.btn__arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 1px;
  background: currentColor;
  transform: rotate(35deg);
  transform-origin: right center;
}

.btn:hover {
  background: var(--ink);
  color: var(--white);
}

.btn:hover .btn__arrow {
  transform: translateX(6px);
}

.btn--solid {
  background: var(--main);
  border-color: var(--main);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.more {
  margin-top: 48px;
}

.more--center {
  text-align: center;
}

.tag {
  display: inline-block;
  padding: 0 10px;
  background: var(--main);
  color: var(--white);
  font-size: 11px;
  line-height: 22px;
  letter-spacing: 0.06em;
}

.tag--line {
  background: none;
  color: var(--main);
  border: 1px solid var(--main);
  line-height: 20px;
}

/* ── ふわっと表示 ── */
.motion .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: calc(var(--i, 0) * 0.06s);
}

.motion .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ── ヘッダー ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.is-scrolled .site-header {
  border-bottom-color: var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  padding: 0 0 0 var(--gutter);
}

.site-header__name {
  margin-right: auto;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
}

.gnav {
  display: none;
}

.site-header__actions {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.site-header__tel {
  display: none;
}

.site-header__btn {
  display: none;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: var(--header-h);
  height: 100%;
  border: 0;
  background: var(--main);
  color: var(--white);
  cursor: pointer;
}

.menu-btn__lines,
.menu-btn__lines::before,
.menu-btn__lines::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), background 0.3s;
}

.menu-btn__lines {
  position: relative;
  margin: 7px 0 6px;
}

.menu-btn__lines::before,
.menu-btn__lines::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-btn__lines::before { top: -7px; }
.menu-btn__lines::after { top: 7px; }

.menu-btn__text {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.1em;
}

.is-menu-open .menu-btn__lines { background: transparent; }
.is-menu-open .menu-btn__lines::before { transform: translateY(7px) rotate(45deg); }
.is-menu-open .menu-btn__lines::after { transform: translateY(-7px) rotate(-45deg); }

/* メニュー（ヘッダーのすぐ下に広がる白い面。デモの帯があってもヘッダーに重ならないよう、ヘッダーに付ける） */
.drawer {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  z-index: 29;
  padding: 24px var(--gutter) 48px;
  background: var(--white);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s;
}

.is-menu-open .drawer {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s;
}

.drawer__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  text-decoration: none;
}

.drawer__list a[aria-current='page'] {
  color: var(--main);
}

.drawer__en {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.drawer__tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  min-height: 56px;
  background: var(--main);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 20px;
  text-decoration: none;
}

/* ── PC の右端のタブ ── */
.side-tabs {
  display: none;
}

/* ── 最初の画面 ── */
.hero {
  position: relative;
  height: calc(78svh - var(--header-h));
  min-height: 440px;
  overflow: hidden;
  background: var(--tint);
}

.hero__slides,
.hero__slide {
  position: absolute;
  inset: 0;
}

.hero__slide {
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.motion .hero__slide img {
  transform: scale(1.06);
  transition: transform 8s linear;
}

.motion .hero__slide.is-active img {
  transform: scale(1);
}

.hero__text {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 20px;
  z-index: 2;
  padding: 20px 22px;
  background: var(--white);
}

.motion .hero__text {
  animation: hero-in 1.2s var(--ease) 0.3s both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.hero__meta {
  font-size: 12px;
  color: var(--ink-soft);
}

.hero__meta span {
  margin: 0 8px;
  color: var(--line);
}

.hero__catch {
  margin: 6px 0 8px;
  font-family: var(--font-catch);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.hero__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--main);
}

.hero__dots {
  position: absolute;
  right: var(--gutter);
  top: 20px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.hero__dots span {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.4s;
}

.hero__dots .is-active {
  background: var(--white);
}

/* ── 最新のお知らせ（最初の画面のすぐ下） ── */
.news-bar {
  border-bottom: 1px solid var(--line);
}

.news-bar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  font-size: 13px;
}

.news-bar__label {
  flex: none;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--main);
}

.news-bar__item {
  display: flex;
  gap: 16px;
  min-width: 0;
  flex: 1;
  text-decoration: none;
}

.news-bar__item time {
  flex: none;
  color: var(--ink-soft);
}

.news-bar__title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.news-bar__item:hover .news-bar__title {
  text-decoration: underline;
}

.news-bar__more {
  display: none;
}

/* ── 想い ── */
.message__text {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 2.4;
  text-align: center;
}

/* ── 選ばれる理由（トップ：カード） ── */
.feature-cards {
  display: grid;
  gap: 40px;
}

.feature-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.feature-card__num {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--main);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: 0.08em;
}

.feature-card__title {
  margin: 20px 0 8px;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.6;
}

.feature-card__body {
  font-size: 14px;
}

/* ── 選ばれる理由（私たちについて：左右交互） ── */
.feature-rows {
  display: grid;
  gap: 64px;
}

.feature-row {
  display: grid;
  gap: 24px;
}

.feature-row__photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.feature-row__num {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--main);
}

.feature-row__title {
  margin: 8px 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 500;
  line-height: 1.6;
}

/* ── 事業紹介：線のアイコンのタイル ── */
/* 線はタイルごとに引く（数が列で割り切れなくても、空きが灰色にならないように） */
.service-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-tile {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-tile > a,
.service-tile > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  min-height: 160px;
  padding: 24px 12px;
  background: var(--white);
  text-align: center;
  text-decoration: none;
  transition: background 0.3s;
}

.service-tile > a:hover {
  background: var(--tint);
}

.icon {
  width: 56px;
  height: 56px;
  stroke: var(--main);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s var(--ease);
}

.service-tile > a:hover .icon {
  transform: translateY(-4px);
}

.service-tile__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

/* ── 施工事例 ── */
.work-cards {
  display: grid;
  gap: 40px 24px;
}

.work-card__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.work-card__photo img {
  transition: transform 1s var(--ease);
}

.work-card:hover .work-card__photo img {
  transform: scale(1.05);
}

.work-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-soft);
}

.work-card__title {
  margin-top: 6px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.work-card__note {
  margin-top: 8px;
  font-size: 13px;
}

/* ── 分類のタブ ── */
.tabs {
  display: none;
}

.js .tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.tabs__btn {
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.tabs__btn.is-active {
  background: var(--main);
  border-color: var(--main);
  color: var(--white);
}

/* ── お知らせ ── */
.news-list {
  border-top: 1px solid var(--line);
}

.news-list__item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.news-list__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.news-list__title {
  margin-top: 4px;
  font-weight: 500;
}

.news-list__body {
  margin-top: 8px;
  font-size: 14px;
}

/* ── 会社概要・採用のバナー ── */
.banners {
  display: grid;
  gap: 16px;
}

.banner a {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
}

.banner__photo {
  position: absolute;
  inset: 0;
}

.banner__photo img {
  transition: transform 1s var(--ease);
}

.banner a:hover .banner__photo img {
  transform: scale(1.05);
}

.banner__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 30, 0.42);
}

.banner__text {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
}

.banner__en {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.banner__ja {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
}

.banner__arrow {
  position: absolute;
  right: 0;
  bottom: 12px;
  width: 40px;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}

.banner a:hover .banner__arrow {
  transform: translateX(6px);
}

/* ── アクセス・会社概要の表 ── */
.access {
  display: grid;
  gap: 32px;
}

.map {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
}

.map--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9e9e6;
  color: var(--ink-soft);
  font-size: 13px;
}

.access__info > div,
.table__row {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.access__info dt,
.table__row dt {
  color: var(--ink-soft);
}

.access__info a {
  text-decoration: none;
}

.table {
  border-top: 1px solid var(--ink);
}

.table__row {
  padding: 20px 0;
}

.panel {
  padding: 32px;
  background: var(--tint);
}

/* ── 工事の流れ：番号と線でつなぐ（スマホは縦、PC は横） ── */
.flow {
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow__step {
  position: relative;
  padding: 0 0 32px 28px;
  border-left: 1px solid var(--line);
}

.flow__step:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.flow__step::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--main);
}

.flow__num {
  margin: 0;
  color: var(--main);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.flow__title {
  margin: 4px 0 8px;
  font-size: 18px;
}

.flow__body {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

/* ── よくある質問 ── */
.faq {
  border-top: 1px solid var(--ink);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 20px 40px 20px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 8px;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.faq__item[open] .faq__q::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq__a {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 0 0 24px;
}

.faq__a p {
  margin: 0;
}

.faq__mark {
  flex: none;
  color: var(--main);
  font-family: var(--font-en);
  font-size: 18px;
}

.faq__mark--a {
  color: var(--ink-soft);
}

/* ── 下のページの見出しとパンくず ── */
.page-head {
  padding: 56px 0;
  background: var(--tint);
}

.page-head__en {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--main);
}

.page-head__ja {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}

.breadcrumb .container {
  display: flex;
  gap: 10px;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ── お問い合わせのページ ── */
.ways {
  display: grid;
  gap: 16px;
}

.way {
  padding: 32px 24px;
  border: 1px solid var(--line);
  text-align: center;
}

.way__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--main);
}

.way__tel {
  display: inline-block;
  font-family: var(--font-en);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.way__note,
.way__text {
  margin: 8px 0 16px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ── ページの最後の相談の帯 ── */
.consult {
  padding: 72px 0;
  background: var(--main);
  color: var(--white);
  text-align: center;
}

.consult__en {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.8;
}

.consult__title {
  margin: 8px 0 32px;
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 500;
  line-height: 1.6;
}

.consult__boxes {
  display: grid;
  gap: 12px;
}

.consult__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.consult__box:hover {
  background: var(--white);
  color: var(--main);
}

.consult__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.consult__tel {
  font-family: var(--font-en);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.consult__big {
  font-size: 17px;
  font-weight: 500;
}

.consult__note {
  font-size: 12px;
  opacity: 0.85;
}

.consult__arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* ── フッター ── */
.site-footer {
  padding: 56px 0 24px;
  background: var(--dark);
  color: #e6e6e6;
  font-size: 13px;
}

.site-footer__top {
  display: grid;
  gap: 32px;
}

.site-footer__name {
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
}

.site-footer__info a {
  text-decoration: none;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 24px;
}

.site-footer__nav a {
  text-decoration: none;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  color: #a8a8a8;
}

.site-footer__top-link {
  text-decoration: none;
}

/* ── スマホ下の電話・地図ボタン ── */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
}

.callbar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.callbar__btn--primary {
  flex: 1.4;
  background: var(--main);
  border-color: var(--main);
  color: var(--white);
}

/* ── タブレット幅から ── */
@media (min-width: 700px) {
  .feature-cards,
  .work-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-tiles {
    grid-template-columns: repeat(3, 1fr);
  }

  .banners {
    grid-template-columns: 1fr 1fr;
  }

  .banners--single {
    grid-template-columns: 1fr;
  }

  .banners--single .banner a {
    aspect-ratio: 32 / 9;
  }

  .consult__boxes {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  }

  .ways {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  }

  .site-footer__nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-bar__more {
    display: block;
    flex: none;
    font-size: 12px;
    color: var(--ink-soft);
  }

  .hero__text {
    right: auto;
    max-width: 620px;
    padding: 32px 40px;
  }
}

/* ── PC幅 ── */
/* ちょうど3件のときは、1件だけ下に残らないよう3列にする */
@media (min-width: 700px) and (max-width: 1099px) {
  .feature-cards:has(> :nth-child(3):last-child),
  .work-cards:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  :root {
    --gutter: 40px;
    --header-h: 88px;
  }

  /* 工事の流れは横に並べ、番号の点を線でつなぐ */
  .flow {
    display: grid;
    grid-template-columns: repeat(var(--n), 1fr);
    gap: 24px;
  }

  .flow__step,
  .flow__step:last-child {
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .flow__step:last-child {
    border-top-color: transparent;
  }

  .flow__step::before {
    top: -6px;
    left: 0;
  }

  body {
    padding-bottom: 0;
  }

  .callbar,
  .menu-btn,
  .drawer {
    display: none;
  }

  .section {
    padding: 120px 0;
  }

  .site-header__bar {
    gap: 32px;
  }

  .site-header__name {
    margin-right: 0;
    font-size: 20px;
  }

  .gnav {
    display: block;
    margin-left: auto;
  }

  .gnav ul {
    display: flex;
    gap: 28px;
  }

  .gnav a {
    position: relative;
    display: block;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
  }

  .gnav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--main);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
  }

  .gnav a:hover::after,
  .gnav a[aria-current='page']::after {
    transform: scaleX(1);
  }

  .site-header__tel {
    display: grid;
    grid-template-columns: auto auto;
    align-content: center;
    column-gap: 6px;
    padding: 0 24px;
    text-decoration: none;
    color: var(--main);
  }

  .site-header__tel .mark {
    align-self: center;
  }

  .site-header__tel-num {
    white-space: nowrap;
    font-family: var(--font-en);
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.3;
  }

  .site-header__tel-hours {
    grid-column: 1 / -1;
    font-size: 11px;
    line-height: 1.4;
    color: var(--ink-soft);
    text-align: right;
  }

  .site-header__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 128px;
    background: var(--main);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
  }

  .site-header__btn:hover {
    background: var(--ink);
  }

  .side-tabs {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 25;
    display: flex;
    flex-direction: column;
    gap: 1px;
    transform: translateY(-50%);
  }

  .side-tabs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 84px;
    min-height: 84px;
    padding: 10px 4px;
    background: var(--main);
    color: var(--white);
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s var(--ease);
  }

  .side-tabs a:hover {
    background: var(--ink);
  }

  .side-tabs .mark {
    width: 22px;
    height: 22px;
  }

  .hero {
    height: calc(100vh - var(--header-h) - 64px);
    min-height: 560px;
  }

  .hero__text {
    left: var(--gutter);
    bottom: 48px;
  }

  .hero__dots {
    top: auto;
    bottom: 48px;
    right: calc(var(--gutter) + 84px);
  }

  .feature-cards,
  .work-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-tiles {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature-row {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 64px;
  }

  .feature-row:nth-child(even) .feature-row__photo {
    order: 2;
  }

  .access {
    grid-template-columns: 1.3fr 1fr;
    gap: 56px;
    align-items: start;
  }

  .site-footer__top {
    grid-template-columns: 1fr 1.4fr;
  }
}

/* PC でも幅が狭いうちは、ヘッダーの電話番号を出さない（長い社名とメニューが折り返さないように。電話は右端のタブと相談の帯にある） */
@media (min-width: 1100px) and (max-width: 1279px) {
  .site-header__tel {
    display: none;
  }
}
