/* ============================================
   CONSTRUCTION REFORM TEMPLATE
   リフォーム・住宅 — 白 × ライトグレージュ × セージグリーン
   細いゴシックと広い余白、北欧の部屋のような静けさ
============================================ */

:root {
  --white: #fbfaf7; /* 背景（すこし温かい白） */
  --greige: #eeeae3; /* ライトグレージュ */
  --greige-deep: #dcd5ca;
  --sage: #8e9f88; /* セージグリーン（メイン） */
  --sage-deep: #5f7259;
  --sage-pale: #e5eae1;
  --ink: #3f413c; /* 本文（真っ黒にしない） */
  --muted: #84837b;
  --line: #ddd8cf;
  --font-title: "Zen Kaku Gothic New", sans-serif; /* 見出し */
  --font-body: "Noto Sans JP", sans-serif; /* 本文（300/400） */
  --font-num: "Jost", sans-serif; /* 数字だけ */
  --container: 1160px;
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* ゆっくり止まる */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 2.05;
  letter-spacing: 0.06em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

main,
.footer {
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

strong,
b {
  font-weight: 500;
}

.num {
  font-family: var(--font-num);
  font-weight: 300;
  letter-spacing: 0.04em;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pc-only {
  display: inline;
}

/* ---------- スキップリンク／フォーカス ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 1000;
  padding: 8px 16px;
  color: #fff;
  background: var(--sage-deep);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 34px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition:
    background 0.4s var(--ease),
    color 0.4s var(--ease);
}

.btn--sage {
  color: #fff;
  background: var(--sage-deep);
}

.btn--sage:hover {
  background: #4c5d46;
}

.btn--line {
  color: var(--sage-deep);
  background: transparent;
  border-color: var(--sage);
}

.btn--line:hover {
  background: var(--sage-pale);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s;
}

.text-link:hover {
  border-color: var(--sage-deep);
}

/* ============================================
   ヘッダー
============================================ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
}

/* ぼかしは疑似要素に（ヘッダー本体に付けるとモバイルメニューが閉じ込められるため） */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 250, 247, 0);
  border-bottom: 1px solid transparent;
  transition:
    background 0.4s,
    border-color 0.4s;
}

.header.is-scrolled::before {
  background: rgba(251, 250, 247, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.header__inner {
  position: relative;
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__mark {
  width: 34px;
  height: 34px;
  color: var(--sage-deep);
}

.logo__text {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 1px;
  background: var(--sage-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link--cta {
  margin-left: 12px;
  padding: 0 22px;
  color: #fff;
  background: var(--sage-deep);
  border-radius: 2px;
}

.nav__link--cta::after {
  display: none;
}

.nav__foot {
  display: none;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 3;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.4s var(--ease);
}

.nav-toggle span:nth-child(1) {
  top: 20px;
}
.nav-toggle span:nth-child(2) {
  top: 28px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(30deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4px) rotate(-30deg);
}

/* ============================================
   セクション共通
============================================ */
.section {
  padding: 140px 0;
}

.sec-head {
  margin-bottom: 64px;
}

.sec-head--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}

.sec-head__no {
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--sage-deep);
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 番号の横に細い線 */
.sec-head__no::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--sage);
}

.sec-head__title {
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: 0.1em;
}

.sec-head__lead {
  margin-top: 14px;
  color: var(--muted);
}

.sec-head--row .sec-head__lead {
  margin-top: 0;
}

.sub-title {
  font-size: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

/* ---------- リビール（JSが動いたときだけ隠す。ゆっくり浮かぶ） ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 40px) 0 0;
}

/* 右上にグレージュの面を敷く */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 78%;
  background: var(--greige);
  z-index: -1;
}

.hero__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.hero__inner > * {
  min-width: 0;
}

.hero__text {
  padding-left: 6%;
}

.hero__eyebrow {
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--sage-deep);
}

.hero__title {
  margin: 28px 0 32px;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.12em;
}

.hero__line {
  display: block;
}

/* ヒーローの文字：JSタイマーで .is-ready を付けて出す（アニメが止まる環境でも必ず表示） */
.js .hero__line,
.js .hero__lead,
.js .hero__cta,
.js .hero__visual img {
  opacity: 0;
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.js .hero__line {
  transform: translateY(12px);
}

.js .hero__line:nth-child(2) {
  transition-delay: 0.12s;
}

.js .hero__lead {
  transition-delay: 0.24s;
}

.js .hero__cta {
  transition-delay: 0.36s;
}

/* 写真はフェードしながら、ごくゆっくり 1.04 → 1 に */
.js .hero__visual img {
  transform: scale(1.04);
  transition:
    opacity 1.2s var(--ease),
    transform 1.8s var(--ease);
}

.js .hero.is-ready .hero__line,
.js .hero.is-ready .hero__lead,
.js .hero.is-ready .hero__cta,
.js .hero.is-ready .hero__visual img {
  opacity: 1;
  transform: none;
}

.hero__lead {
  font-size: 15px;
  color: var(--ink);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  margin-top: 44px;
}

.hero__visual {
  position: relative;
  overflow: hidden;
}

.hero__visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero__visual figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 16px 22px;
  font-size: 13px;
  line-height: 1.7;
  background: var(--white);
}

.hero__visual figcaption span {
  display: block;
  font-weight: 400;
  color: var(--sage-deep);
}

.hero__numbers {
  max-width: 1320px;
  margin: 64px auto 0;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero__numbers div {
  padding: 22px 28px;
  border-left: 1px solid var(--line);
}

.hero__numbers div:last-child {
  border-right: 1px solid var(--line);
}

.hero__numbers dt {
  font-size: 13px;
  color: var(--muted);
}

.hero__numbers dd {
  font-size: 14px;
}

.hero__numbers .num {
  font-size: 34px;
  margin-right: 4px;
  color: var(--sage-deep);
}

/* ---------- お知らせ ---------- */
.news {
  padding: 56px 0 0;
}

.news__inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.news__title {
  font-size: 16px;
  letter-spacing: 0.16em;
}

.news__list li {
  display: flex;
  gap: 28px;
  padding: 6px 0;
  font-size: 14px;
}

.news__list time {
  flex-shrink: 0;
  font-family: var(--font-num);
  color: var(--muted);
}

.news__list a {
  transition: color 0.3s;
}

.news__list a:hover {
  color: var(--sage-deep);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

/* ============================================
   ビフォー/アフター
============================================ */
.ba-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.ba {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 14 / 8.6;
  background: var(--greige);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y; /* 縦スクロールはそのまま、横のドラッグだけ受け取る */
  cursor: ew-resize;
}

.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

/* ビフォーは「くすんだ古い台所」に見えるよう加工（実際の写真に差し替えたら外す） */
.ba__img--aged {
  filter: grayscale(0.75) sepia(0.4) brightness(0.78) contrast(0.85);
}

.ba.is-switching .ba__img {
  opacity: 0;
}

/* ビフォーは左側だけ見せる */
.ba__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba__label {
  position: absolute;
  top: 18px;
  padding: 4px 14px;
  font-family: var(--font-num);
  font-size: 14px;
  letter-spacing: 0.16em;
  background: rgba(251, 250, 247, 0.9);
  pointer-events: none;
}

.ba__label--before {
  left: 18px;
}

.ba__label--after {
  right: 18px;
  color: #fff;
  background: rgba(95, 114, 89, 0.9);
}

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 48px;
  margin-left: -24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
}

/* 境目の細い線 */
.ba__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}

.ba__knob {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--sage-deep);
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s var(--ease);
}

.ba__knob svg {
  width: 22px;
  height: 22px;
}

.ba__handle:hover .ba__knob,
.ba.is-dragging .ba__knob {
  transform: scale(1.03);
}

.ba__handle:focus-visible {
  outline: none;
}

.ba__handle:focus-visible .ba__knob {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

.ba-cases {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.ba-case {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 4px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.3s;
}

.ba-case::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition:
    background 0.3s,
    border-color 0.3s;
}

.ba-case:hover {
  color: var(--ink);
}

.ba-case.is-active {
  color: var(--ink);
  font-weight: 400;
}

.ba-case.is-active::after {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}

.ba-info {
  margin-top: 30px;
  transition: opacity 0.4s;
}

.ba-info.is-switching {
  opacity: 0;
}

.ba-info__title {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.ba-info__dl div {
  display: grid;
  grid-template-columns: 3.5em 1fr;
  gap: 12px;
  font-size: 14px;
  line-height: 2;
}

.ba-info__dl dt {
  color: var(--muted);
}

.ba-info__note {
  margin-top: 18px;
  padding-top: 18px;
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.ba-info__note span {
  display: block;
  color: var(--muted);
}

/* 事例リスト：2列の静かなリスト */
.case-list {
  margin-top: 88px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
  border-top: 1px solid var(--line);
}

.case {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.case img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case__cat {
  font-size: 13px;
  color: var(--sage-deep);
  letter-spacing: 0.12em;
}

.case h3 {
  font-size: 16px;
  line-height: 1.7;
  margin: 4px 0;
}

.case__meta {
  font-size: 14px;
  color: var(--muted);
}

/* ============================================
   場所別メニュー
============================================ */
.section--menu {
  background: var(--greige);
}

.menu__tabs {
  display: flex;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--greige-deep);
}

.menu__tab {
  position: relative;
  min-height: 56px;
  padding: 0 32px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.3s;
}

.menu__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--sage-deep);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}

.menu__tab:hover {
  color: var(--ink);
}

.menu__tab[aria-selected="true"] {
  color: var(--ink);
  font-weight: 400;
}

.menu__tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.menu__panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

/* JSなし：4か所を縦に並べる。JSあり：選んだ1か所だけ */
.menu__panel + .menu__panel {
  margin-top: 80px;
}

.js-tabs .menu__panel {
  display: none;
  margin-top: 0;
}

.js-tabs .menu__panel.is-active {
  display: grid;
  animation: panelIn 0.4s var(--ease);
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.menu__img img {
  width: 100%;
  aspect-ratio: 9 / 7;
  object-fit: cover;
}

.menu__name {
  font-size: 26px;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.price-table {
  width: 100%;
  margin-top: 30px;
  border-collapse: collapse;
  font-size: 14px;
}

.price-table th,
.price-table td {
  padding: 14px 8px;
  text-align: left;
  border-bottom: 1px solid var(--greige-deep);
}

.price-table thead th {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  border-bottom-color: var(--ink);
}

.price-table td:nth-child(2) {
  font-weight: 400;
  color: var(--sage-deep);
  white-space: nowrap;
}

.price-table td:nth-child(3) {
  white-space: nowrap;
  color: var(--muted);
}

/* ============================================
   補助金
============================================ */
.subsidy {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.subsidy__head {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.subsidy__head .sec-head__title {
  margin-bottom: 24px;
}

.subsidy__update {
  margin-top: 20px;
  padding-left: 14px;
  font-size: 14px;
  color: var(--muted);
  border-left: 2px solid var(--sage);
}

.subsidy__list {
  counter-reset: sub;
}

.subsidy__list li {
  position: relative;
  padding: 36px 0 36px 72px;
  border-top: 1px solid var(--line);
  counter-increment: sub;
}

.subsidy__list li:last-child {
  border-bottom: 1px solid var(--line);
}

.subsidy__list li::before {
  content: counter(sub, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 34px;
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 300;
  color: var(--sage);
}

.subsidy__kind {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--sage-deep);
}

.subsidy__list h3 {
  font-size: 19px;
  margin: 4px 0 10px;
}

.subsidy__amount {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 400;
  background: var(--sage-pale);
}

/* ============================================
   流れ
============================================ */
.section--flow {
  padding-top: 40px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
}

.flow__step {
  position: relative;
  padding: 36px 20px 0 0;
}

/* 上の線の上にのる小さな丸 */
.flow__step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--white);
  border: 1px solid var(--sage-deep);
  border-radius: 50%;
}

.flow__num {
  font-family: var(--font-num);
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  color: var(--sage);
}

.flow__step h3 {
  margin: 14px 0 8px;
  font-size: 16px;
  line-height: 1.6;
}

.flow__step p {
  font-size: 14px;
  color: var(--muted);
}

/* ============================================
   お客さまの声
============================================ */
.section--voice {
  background: var(--sage-pale);
}

.voice-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 96px;
  align-items: center;
}

.voice-img img {
  width: 100%;
  aspect-ratio: 9 / 11;
  object-fit: cover;
}

.voice-list .sec-head__title {
  margin-bottom: 40px;
}

.voice {
  position: relative;
  padding: 0 0 32px 34px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(95, 114, 89, 0.25);
}

.voice:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

/* 細い縦線の引用 */
.voice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 40px;
  width: 1px;
  background: var(--sage-deep);
}

.voice p {
  font-family: var(--font-title);
  font-size: 17px;
  line-height: 2.1;
}

.voice footer {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ============================================
   安全・品質
============================================ */
.quality {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.quality__item {
  padding: 36px 32px 40px 0;
}

.quality__item + .quality__item {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.quality__num {
  font-size: 14px;
  color: var(--muted);
}

.quality__num .num {
  font-size: 52px;
  line-height: 1.2;
  margin-right: 4px;
  color: var(--sage-deep);
}

.quality__item h3 {
  font-size: 18px;
  margin: 8px 0 10px;
}

.quality__item p:not(.quality__num) {
  font-size: 14px;
}

.quality__rules {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
  padding: 32px 40px;
  background: var(--greige);
}

.quality__rules li {
  position: relative;
  padding: 10px 0 10px 26px;
  font-size: 14px;
}

.quality__rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 12px;
  height: 1px;
  background: var(--sage-deep);
}

/* ============================================
   会社案内
============================================ */
.section--company {
  background: var(--greige);
}

.company {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
  align-items: start;
}

.company__img {
  margin: 36px 0 24px;
}

.company__img img {
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

.company__msg {
  font-family: var(--font-title);
  font-size: 15px;
  line-height: 2.1;
}

.company__msg span {
  display: block;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  text-align: right;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-top: 1px solid var(--ink);
}

.info-table th,
.info-table td {
  padding: 16px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--greige-deep);
}

.info-table th {
  width: 9em;
  font-weight: 400;
  color: var(--sage-deep);
  white-space: nowrap;
}

.history {
  margin-top: 64px;
}

.history__title {
  font-size: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.12em;
}

.history__list div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--greige-deep);
  font-size: 14px;
}

.history__list dt {
  font-size: 20px;
  line-height: 1.5;
  color: var(--sage-deep);
}

/* ============================================
   採用
============================================ */
.table-wrap--scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scroll-hint {
  display: none;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 800px) {
  .scroll-hint {
    display: block;
  }
}

.job-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
  border-top: 1px solid var(--ink);
}

.job-table th,
.job-table td {
  padding: 18px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.job-table thead th {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 500;
  background: var(--greige);
}

.job-table thead th:first-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.job-table tbody th {
  width: 7.5em;
  font-weight: 400;
  color: var(--sage-deep);
  white-space: nowrap;
}

.recruit-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  margin-top: 96px;
}

.senpai {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.senpai__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  font-weight: 400;
}

.senpai__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--sage-deep);
  background: var(--sage-pale);
  border-radius: 50%;
}

.senpai p:not(.senpai__head) {
  font-size: 14px;
}

.day__list {
  position: relative;
  padding-left: 24px;
  border-left: 1px solid var(--sage);
}

.day__list li {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 9px 0;
  font-size: 14px;
}

.day__list li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 21px;
  width: 7px;
  height: 7px;
  background: var(--white);
  border: 1px solid var(--sage-deep);
  border-radius: 50%;
}

.day__list time {
  flex-shrink: 0;
  width: 3.4em;
  font-family: var(--font-num);
  color: var(--sage-deep);
}

/* ---------- フォーム ---------- */
.form {
  padding: 56px 64px;
  background: #fff;
  border: 1px solid var(--line);
}

.form--entry {
  margin-top: 96px;
}

.form__title {
  font-size: 24px;
  letter-spacing: 0.12em;
}

.form__lead {
  margin: 8px 0 32px;
  font-size: 14px;
  color: var(--muted);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 28px;
  margin-bottom: 36px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  border: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 14px;
  font-weight: 400;
  padding: 0;
}

.field__label em {
  margin-left: 10px;
  font-size: 12px;
  font-style: normal;
  color: var(--sage-deep);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.3s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage-deep);
}

.is-invalid {
  border-color: #b4775f !important;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-row.is-invalid {
  padding: 6px;
  border: 1px solid;
}

.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 18px;
  font-size: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.choice input:checked + span {
  color: #fff;
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--sage-deep);
  outline-offset: 2px;
}

.form__msg {
  min-height: 1.8em;
  margin-top: 16px;
  font-size: 14px;
  color: var(--sage-deep);
}

/* ============================================
   お問い合わせ
============================================ */
.section--contact {
  background: var(--sage-pale);
}

.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.contact__head .sec-head__title {
  margin-bottom: 24px;
}

.contact__tel {
  margin: 36px 0 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(95, 114, 89, 0.3);
  border-bottom: 1px solid rgba(95, 114, 89, 0.3);
}

.contact__tel p {
  font-size: 13px;
  color: var(--muted);
}

.contact__tel a {
  display: inline-block;
  font-size: 34px;
  color: var(--sage-deep);
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.contact__small {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* ============================================
   アクセス
============================================ */
.access {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: center;
}

.access__title {
  font-size: 22px;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.access__dl div {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.access__dl dt {
  color: var(--sage-deep);
}

.access__map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  filter: grayscale(0.5);
}

/* ============================================
   フッター
============================================ */
.footer {
  padding: 72px 0 28px;
  background: var(--greige);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer__brand p {
  font-size: 14px;
  color: var(--muted);
}

.footer__name {
  margin-bottom: 10px;
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--ink) !important;
  letter-spacing: 0.12em;
}

.footer__license {
  margin-top: 10px;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0 40px;
  align-content: start;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}

.footer__nav a:hover {
  color: var(--sage-deep);
}

.footer__copy {
  margin-top: 48px;
  font-family: var(--font-num);
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}

/* ============================================
   レスポンシブ
============================================ */
@media (max-width: 1080px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 40px 40px;
    background: var(--white);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-16px);
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0.3s;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    /* 開くときは visibility をすぐ切り替える */
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0s;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  .nav__link {
    width: 100%;
    min-height: 56px;
    padding: 0 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }

  .nav__link::after {
    display: none;
  }

  .nav__link--cta {
    margin: 28px 0 0;
    justify-content: center;
    border-bottom: 0;
  }

  .nav__foot {
    display: block;
    max-width: 420px;
    width: 100%;
    margin: 28px auto 0;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
  }

  .nav__tel {
    font-family: var(--font-num);
    font-size: 26px;
    color: var(--sage-deep);
  }
}

@media (max-width: 960px) {
  .container,
  .hero__inner,
  .hero__numbers,
  .header__inner {
    padding-left: 28px;
    padding-right: 28px;
  }

  .section {
    padding: 100px 0;
  }

  .sec-head--row,
  .hero__inner,
  .ba-wrap,
  .menu__panel,
  .subsidy,
  .voice-wrap,
  .company,
  .recruit-grid,
  .contact,
  .access {
    grid-template-columns: 1fr;
  }

  .sec-head--row {
    gap: 14px;
  }

  .hero::before {
    width: 70%;
    height: 50%;
    top: auto;
    bottom: 120px;
  }

  .hero__text {
    padding-left: 0;
  }

  .hero__visual {
    max-width: 620px;
  }

  .ba-wrap {
    gap: 28px;
  }

  .ba-cases {
    flex-direction: row;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .ba-case {
    flex: 1;
    justify-content: center;
    border-bottom: 0;
  }

  .ba-case::after {
    display: none;
  }

  .ba-case.is-active {
    box-shadow: inset 0 -2px 0 var(--sage-deep);
  }

  .case-list {
    grid-template-columns: 1fr;
  }

  .menu__tabs {
    overflow-x: auto;
  }

  .menu__tab {
    flex-shrink: 0;
    padding: 0 22px;
  }

  .menu__panel {
    gap: 32px;
  }

  .subsidy {
    gap: 40px;
  }

  .subsidy__head {
    position: static;
  }

  .flow {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 48px;
  }

  .voice-wrap {
    gap: 48px;
  }

  .voice-img {
    max-width: 480px;
  }

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

  .quality__item,
  .quality__item + .quality__item {
    padding: 28px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .quality__rules {
    grid-template-columns: 1fr;
    margin-top: 32px;
    padding: 24px 28px;
  }

  .company {
    gap: 48px;
  }

  .recruit-grid {
    gap: 56px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 15px;
    line-height: 1.95;
  }

  .pc-only {
    display: none;
  }

  .container,
  .hero__inner,
  .hero__numbers,
  .header__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .logo__text {
    font-size: 16px;
    letter-spacing: 0.1em;
  }

  .section {
    padding: 80px 0;
  }

  .sec-head {
    margin-bottom: 40px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 24px);
  }

  .hero::before {
    display: none;
  }

  .hero__inner {
    gap: 40px;
  }

  .hero__title {
    margin: 18px 0 22px;
    font-size: 32px;
  }

  .hero__cta {
    margin-top: 32px;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero__numbers {
    margin-top: 40px;
    grid-template-columns: 1fr;
  }

  .hero__numbers div,
  .hero__numbers div:last-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero__numbers .num {
    font-size: 28px;
  }

  .news__inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .news__list li {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .ba {
    aspect-ratio: 4 / 3.4;
  }

  .ba__label {
    top: 12px;
    font-size: 13px;
    padding: 2px 10px;
  }

  .ba__label--before {
    left: 12px;
  }

  .ba__label--after {
    right: 12px;
  }

  .case {
    grid-template-columns: 104px 1fr;
    gap: 16px;
    padding: 20px 0;
  }

  .case h3 {
    font-size: 15px;
  }

  /* スマホでは4つのタブを2×2に */
  .menu__tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 32px;
    overflow: visible;
    border-bottom: 0;
    border-top: 1px solid var(--greige-deep);
  }

  .menu__tab {
    padding: 0 8px;
    font-size: 14px;
    border-bottom: 1px solid var(--greige-deep);
  }

  .menu__tab:nth-child(odd) {
    border-right: 1px solid var(--greige-deep);
  }

  .menu__name {
    font-size: 22px;
  }

  /* 価格表はスマホで縦積み */
  .price-table thead {
    display: none;
  }

  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td {
    display: block;
    width: 100%;
  }

  .price-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--greige-deep);
  }

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

  .price-table td {
    padding: 0;
    border: 0;
  }

  .price-table td:nth-child(2),
  .price-table td:nth-child(3) {
    display: inline;
    width: auto;
  }

  .price-table td:nth-child(3)::before {
    content: "　工期 ";
  }

  .subsidy__list li {
    padding: 28px 0 28px 52px;
  }

  .subsidy__list li::before {
    font-size: 22px;
    top: 28px;
  }

  .flow {
    grid-template-columns: 1fr;
    row-gap: 0;
    border-top: 0;
    border-left: 1px solid var(--line);
    margin-left: 4px;
  }

  .flow__step {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 8px;
    padding: 0 0 28px 22px;
  }

  .flow__step::before {
    top: 10px;
    left: -5px;
  }

  .flow__num {
    grid-row: span 2;
    font-size: 30px;
    padding-top: 4px;
  }

  .flow__step h3 {
    margin: 0 0 4px;
  }

  .voice p {
    font-size: 16px;
  }

  .quality__num .num {
    font-size: 44px;
  }

  .quality__rules {
    padding: 20px;
  }

  /* 会社概要の表はスマホで縦積み */
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    padding: 14px 0 2px;
    border-bottom: 0;
  }

  .info-table td {
    padding: 0 0 14px;
  }

  .history__list div {
    grid-template-columns: 64px 1fr;
    gap: 10px;
  }

  .history__list dt {
    font-size: 18px;
  }

  .form {
    padding: 32px 20px;
  }

  .form__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form .btn {
    width: 100%;
  }

  .contact__tel a {
    font-size: 30px;
  }

  .contact__head .btn {
    width: 100%;
  }

  .access__dl div {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .access__map iframe {
    height: 300px;
  }

  .footer__nav {
    gap: 0 24px;
  }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal],
  .js .hero__line,
  .js .hero__lead,
  .js .hero__cta,
  .js .hero__visual img {
    opacity: 1;
    transform: none;
  }
}
