@charset "UTF-8";
/* ==========================================================================
   栃木Ｒ外構計画｜リニューアル提案デモサイト
   配色は 13_Web構成.md 第5章の指定に準拠（色相は変更していない）
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. トークン
   -------------------------------------------------------------------------- */
:root {
  /* ベース */
  --c-base:        #FFFFFF;
  --c-base-alt:    #F6F5F2;
  /* アクセント（黄） */
  --c-accent:      #F7FF87; /* 面のみ。文字・ボタンには使わない */
  --c-accent-ink:  #5F6B0F; /* 文字・ボタン。#F7FF87 と同色相で明度のみ低下 */
  /* サブ（淡青） */
  --c-sub:         #BFDCEB; /* 図面／パースの地色・FLOWステップ番号の地・事例タグの地 */
  --c-sub-ink:     #275C78; /* 事例カテゴリタグの文字。#2F6E8F の色相のまま明度のみ低下（AA確保のため） */
  /* 文字・罫線 */
  --c-ink:         #1A1A1A;
  --c-ink-muted:   #4A4A4A;
  --c-rule:        #DDDBD5;

  /* 余白 */
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;

  /* レイアウト */
  --wrap: 1120px;
  --gutter: 24px;
  --header-h: 84px;
  --header-h-min: 60px;

  /* 書体 */
  --font-head: "Zen Old Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  /* 速度（150-200ms / 400-700ms / 1000ms以上 の3種のみ） */
  --t-fast: 200ms;
  --t-mid:  600ms;
  --t-slow: 1600ms;
  --e-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --e-in:   cubic-bezier(0.7, 0, 0.84, 0);
}

/* --------------------------------------------------------------------------
   2. リセットと基本
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--c-base);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  font-feature-settings: "palt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.02em;
  margin: 0;
}

p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.4em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

:focus-visible {
  outline: 3px solid var(--c-accent-ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--c-ink);
  color: #fff;
  padding: 12px 20px;
  font-size: 16px;
}
.skip-link:focus { left: 0; }

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

/* --------------------------------------------------------------------------
   3. レイアウト部品
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 800px; }

.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-8); }
.section--alt { background: var(--c-base-alt); }

.section__head { margin-bottom: var(--space-7); }
.section__head--center { text-align: center; }

.eyebrow {
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--c-ink-muted);
  margin: 0 0 var(--space-3);
  text-transform: uppercase;
}

h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }

.lead { font-size: 18px; }

/* 黄はマーカー（面）としてのみ使用 */
.marker {
  background-image: linear-gradient(var(--c-accent), var(--c-accent));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.42em;
  padding-inline: 0.06em;
}

.rule {
  border: 0;
  border-top: 1px solid var(--c-rule);
  margin-block: var(--space-7);
}

.note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-ink-muted);
  margin: var(--space-2) 0 0;
}

.figure { margin: 0; }
.figure > .note { margin-top: 10px; }

/* --------------------------------------------------------------------------
   4. ボタン・リンク
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 28px;
  border: 1px solid var(--c-accent-ink);
  background: var(--c-accent-ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--t-fast) var(--e-out), color var(--t-fast) var(--e-out);
}
.btn:hover { background: #4C560C; border-color: #4C560C; }

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn--ghost:hover { background: var(--c-ink); color: #fff; }

.btn--wide { width: 100%; max-width: 420px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.btn-row--center { justify-content: center; }

/* 本文内リンクの下線（左から右） */
.tlink {
  color: var(--c-accent-ink);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--t-fast) var(--e-out);
}
.tlink:hover, .tlink:focus-visible { background-size: 100% 1px; }

/* --------------------------------------------------------------------------
   5. ヘッダー
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-base);
  border-bottom: 1px solid var(--c-rule);
  transition: background var(--t-fast) var(--e-out), border-color var(--t-fast) var(--e-out);
}
.header.is-shrunk {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: var(--header-h);
  transition: height var(--t-fast) var(--e-out);
}
.header.is-shrunk .header__inner { height: var(--header-h-min); }

.brand {
  font-family: var(--font-head);
  font-size: 21px;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-ink-muted);
  line-height: 1.4;
}
.header.is-shrunk .brand small { display: none; }

.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--c-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast) var(--e-out);
}
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header .btn { min-height: 44px; padding: 8px 18px; font-size: 15px; }

.nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   6. ファーストビュー
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--c-base-alt); }
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  height: clamp(420px, 62vh, 620px);
  object-fit: cover;
  object-position: center 58%;
}
.hero__body {
  position: relative;
  margin-top: -120px;
  z-index: 2;
}
.hero__panel {
  background: var(--c-base);
  padding: var(--space-7) var(--space-7) var(--space-6);
  max-width: 760px;
}
.hero h1 { font-size: clamp(30px, 4.2vw, 44px); margin-bottom: var(--space-4); }
.hero__sub { font-size: 17px; margin-bottom: 6px; }
.hero__cred {
  font-size: 15px;
  color: var(--c-ink-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-6);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-ink-muted);
}
.scroll-cue__arrow {
  width: 1px;
  height: 40px;
  background: var(--c-ink-muted);
  animation: cue var(--t-slow) ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50%      { transform: translateY(10px); opacity: 1; }
}

/* 下層ページのヘッダー */
.pagehead { background: var(--c-base-alt); padding-block: var(--space-8) var(--space-7); }
.pagehead h1 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: var(--space-4); }
.pagehead p { max-width: 640px; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   7. 主役層：ドラッグ比較
   -------------------------------------------------------------------------- */
.compare {
  position: relative;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.compare__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-base-alt);
  cursor: ew-resize;
}
.compare__layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
/* 完成写真：常に全面。上に手描きパース側を重ねて切る */
.compare__layer--photo { z-index: 1; }
.compare__layer--sketch { z-index: 2; background: var(--c-sub); }
.compare__layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
/* 図面側だけに淡青の地色を重ねて質感の差を出す */
.compare__tint {
  position: absolute;
  inset: 0;
  background: var(--c-sub);
  opacity: 0.22;
  pointer-events: none;
}
.compare__divider {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--c-base);
  z-index: 3;
  pointer-events: none;
}
.compare__handle {
  position: absolute;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  padding: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--c-base);
  border: 1px solid var(--c-ink);
  border-radius: 0;
  cursor: ew-resize;
}
.compare__handle span {
  display: block;
  width: 0; height: 0;
  border-block: 6px solid transparent;
}
.compare__handle span:first-child { border-right: 8px solid var(--c-ink); }
.compare__handle span:last-child  { border-left: 8px solid var(--c-ink); }

.compare__label {
  position: absolute;
  bottom: 16px;
  z-index: 3;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--c-rule);
  font-size: 14px;
  letter-spacing: 0.06em;
  pointer-events: none;
}
.compare__label--left  { left: 16px; }
.compare__label--right { right: 16px; }

.compare-block { display: grid; gap: var(--space-6); }
@media (min-width: 900px) {
  .compare-block { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-8); }
}

/* --------------------------------------------------------------------------
   8. カード
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--c-base);
  border: 1px solid var(--c-rule);
  text-decoration: none;
  height: 100%;
  will-change: transform;
}
.card__media { position: relative; overflow: hidden; }
.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  will-change: transform;
}
.card__body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1 1 auto; }
.card__title { font-size: 20px; margin-bottom: 10px; }
.card__text { font-size: 15px; line-height: 1.85; color: var(--c-ink-muted); margin-bottom: 0; }
.card__more {
  margin-top: var(--space-4);
  font-size: 15px;
  color: var(--c-accent-ink);
  font-weight: 500;
}

/* 事例カテゴリタグ：面＝淡青／文字＝淡青の濃色。黄は使わない */
.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--c-sub);
  color: var(--c-sub-ink);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin-bottom: 10px;
  align-self: flex-start;
}

/* 相談の入口カード */
.entry {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-rule);
  background: var(--c-base);
  text-decoration: none;
  height: 100%;
}
.entry__media { overflow: hidden; }
.entry__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.entry__body { padding: var(--space-5); flex: 1 1 auto; display: flex; flex-direction: column; }
.entry__title { font-size: 19px; line-height: 1.6; margin-bottom: 10px; }
.entry__cta { margin-top: auto; padding-top: var(--space-4); font-size: 15px; color: var(--c-accent-ink); font-weight: 500; }

/* 写真のホバーズーム用の枠 */
.zoom { overflow: hidden; }
.zoom img { will-change: transform; }

/* --------------------------------------------------------------------------
   9. 表札・帯・素材
   -------------------------------------------------------------------------- */
.band { position: relative; }
.band img {
  width: 100%;
  height: clamp(200px, 26vw, 320px);
  object-fit: cover;
}

.split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .split--media-right .split__media { order: 2; }
}

/* --------------------------------------------------------------------------
   10. 進め方（ステップ）
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: var(--space-6); counter-reset: step; }
.steps--row { grid-template-columns: repeat(6, 1fr); gap: var(--space-4); }
.steps--stack { gap: 0; }

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--c-sub);
  color: var(--c-ink);
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1;
  margin-bottom: var(--space-3);
}
.step__title { font-size: 18px; margin-bottom: 8px; }
.step__text { font-size: 15px; line-height: 1.85; color: var(--c-ink-muted); margin-bottom: 0; }

.steps--stack .step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--c-rule);
}
.steps--stack .step:last-child { border-bottom: 1px solid var(--c-rule); }
.steps--stack .step__num { margin-bottom: 0; }
.steps--stack .step__title { font-size: 21px; }
.steps--stack .step__text { font-size: 17px; line-height: 1.9; color: var(--c-ink); }

.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--c-rule);
}
.icon-item { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--c-ink-muted); }
.icon-item img { width: 26px; height: 26px; opacity: 0.85; }

/* --------------------------------------------------------------------------
   11. タブ（施工事例）
   -------------------------------------------------------------------------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  border-bottom: 1px solid var(--c-rule);
  margin-bottom: var(--space-7);
}
.tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 16px;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--c-ink-muted);
  cursor: pointer;
  transition: color var(--t-fast) var(--e-out), border-color var(--t-fast) var(--e-out);
}
.tab:hover { color: var(--c-ink); }
.tab[aria-selected="true"] {
  color: var(--c-ink);
  border-bottom-color: var(--c-ink);
  font-weight: 500;
}
.tabpanel { transition: opacity 150ms var(--e-out); }
.tabpanel.is-fading { opacity: 0; }

.works-count { font-size: 15px; color: var(--c-ink-muted); margin-bottom: var(--space-5); }

/* 事例カード（詳細つき） */
.work {
  display: grid;
  border: 1px solid var(--c-rule);
  background: var(--c-base);
  overflow: hidden;
}
@media (min-width: 780px) {
  .work { grid-template-columns: 42% 1fr; }
}
.work__media { overflow: hidden; }
.work__media img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.work__body { padding: var(--space-6); }
.work__title { font-size: 24px; margin-bottom: 6px; }
.work__place { font-size: 14px; letter-spacing: 0.08em; color: var(--c-ink-muted); margin-bottom: var(--space-4); }
.work__desc { font-size: 16px; line-height: 1.9; margin-bottom: var(--space-4); }
.work__desc p { margin-bottom: 0.7em; }
.work__spec {
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--c-rule);
  font-size: 15px;
  line-height: 1.85;
}
.work__spec div { display: grid; grid-template-columns: 5.2em 1fr; gap: 10px; margin-bottom: 6px; }
.work__spec dt { color: var(--c-ink-muted); }
.work__spec dd { margin: 0; }

.work-list { display: grid; gap: var(--space-6); }

/* ギャラリー */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { font-size: 13px; line-height: 1.7; color: var(--c-ink-muted); margin-top: 8px; }

/* --------------------------------------------------------------------------
   12. アコーディオン（Q&A）
   -------------------------------------------------------------------------- */
.qa { border-top: 1px solid var(--c-rule); }
.qa__item { border-bottom: 1px solid var(--c-rule); }
.qa__btn {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.6;
  color: var(--c-ink);
  cursor: pointer;
}
.qa__q {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1;
}
.qa__label { flex: 1 1 auto; }
.qa__mark {
  flex: 0 0 auto;
  width: 16px; height: 16px;
  position: relative;
  margin-top: 12px;
}
.qa__mark::before, .qa__mark::after {
  content: "";
  position: absolute;
  background: var(--c-ink);
  transition: transform var(--t-fast) var(--e-out), opacity var(--t-fast) var(--e-out);
}
.qa__mark::before { top: 7px; left: 0; width: 16px; height: 2px; }
.qa__mark::after  { top: 0; left: 7px; width: 2px; height: 16px; }
.qa__btn[aria-expanded="true"] .qa__mark::after { transform: scaleY(0); opacity: 0; }

.qa__panel { overflow: hidden; }
.qa__panel[hidden] { display: none; }
.qa__inner {
  display: flex;
  gap: var(--space-4);
  padding: 0 0 var(--space-6);
}
.qa__a {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-rule);
  font-size: 15px;
  line-height: 1;
}
.qa__body { flex: 1 1 auto; font-size: 17px; line-height: 1.9; }
.qa__body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   13. お問い合わせ
   -------------------------------------------------------------------------- */
.contact-band { position: relative; color: #fff; }
.contact-band__bg { position: absolute; inset: 0; z-index: 0; }
.contact-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.72);
}
.contact-band .wrap { position: relative; z-index: 1; }
.contact-band h2 { color: #fff; }
.contact-band p { color: #F1F1EE; }

.contact-cards { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
@media (min-width: 780px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-cards > div { display: grid; }
.contact-card {
  display: block;
  height: 100%;
  padding: var(--space-6);
  border: 1px solid var(--c-rule);
  background: var(--c-base);
  text-decoration: none;
}
.contact-card__label { font-size: 14px; letter-spacing: 0.14em; color: var(--c-ink-muted); margin-bottom: 8px; }
.contact-card__value {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.4;
  word-break: break-all;
  margin-bottom: 6px;
}
.contact-card__note { font-size: 14px; color: var(--c-ink-muted); margin: 0; }

/* フォーム（見た目のみ） */
.form { display: grid; gap: var(--space-5); max-width: 720px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 16px; font-weight: 500; }
.field .hint { font-size: 14px; color: var(--c-ink-muted); }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--c-rule);
  border-radius: 0;
  background: var(--c-base);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid var(--c-accent-ink);
  outline-offset: 2px;
  border-color: var(--c-accent-ink);
}

.info-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.info-table th, .info-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-rule);
  line-height: 1.9;
}
.info-table th { width: 9em; font-weight: 500; color: var(--c-ink-muted); }

/* --------------------------------------------------------------------------
   14. フッター
   -------------------------------------------------------------------------- */
.footer { background: var(--c-ink); color: #fff; padding-block: var(--space-8) var(--space-6); }
.footer a { color: #fff; }
.footer__top { display: grid; gap: var(--space-7); }
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer__brand { font-family: var(--font-head); font-size: 22px; letter-spacing: 0.06em; margin-bottom: var(--space-3); }
.footer__addr { font-size: 15px; line-height: 1.9; color: #C9C9C9; font-style: normal; }
.footer h3 { font-size: 15px; letter-spacing: 0.12em; margin-bottom: var(--space-4); color: #fff; font-family: var(--font-body); font-weight: 500; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 10px; }
.footer__list a { font-size: 15px; text-decoration: none; }
.footer__list a:hover { text-decoration: underline; }
.footer__tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-family: var(--font-head);
  font-size: 24px;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.footer__tel img { width: 20px; height: 20px; filter: invert(1); opacity: 0.9; }
.footer__bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid #3A3A3A;
  display: grid;
  gap: var(--space-4);
}
.footer__demo { font-size: 14px; line-height: 1.9; color: #C9C9C9; margin: 0; }
.footer__copy { font-size: 13px; color: #C9C9C9; margin: 0; }

/* --------------------------------------------------------------------------
   15. 404
   -------------------------------------------------------------------------- */
.error-page { padding-block: var(--space-9); text-align: center; }
.error-page h1 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: var(--space-5); }

/* --------------------------------------------------------------------------
   16. 基礎層（スクロールで出現）
   -------------------------------------------------------------------------- */
.js-reveal { opacity: 0; transform: translateY(28px); }
.no-js .js-reveal, .reveal-off .js-reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   17. レスポンシブ
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps--row { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 899px) {
  :root { --header-h: 68px; --header-h-min: 56px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  .section { padding-block: var(--space-8); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero__body { margin-top: -60px; }
  .hero__panel { padding: var(--space-6) var(--space-5) var(--space-5); }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding: var(--space-5) var(--gutter) var(--space-6);
    background: var(--c-base);
    border-bottom: 1px solid var(--c-rule);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--c-rule); min-height: 48px; }
  .nav__link::after { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--c-rule);
    cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block;
    width: 20px; height: 1.5px;
    background: var(--c-ink);
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after  { top: 6px; }
  .header__actions { display: flex; align-items: center; gap: var(--space-3); }
}

@media (max-width: 639px) {
  :root { --gutter: 18px; }
  body { font-size: 17px; }
  h1 { font-size: 28px; }
  h2 { font-size: 23px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps--row { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .compare__label { font-size: 12px; padding: 4px 10px; bottom: 10px; }
  .compare__label--left { left: 10px; }
  .compare__label--right { right: 10px; }
  .work__spec div { grid-template-columns: 4.6em 1fr; }
  .steps--stack .step { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* --------------------------------------------------------------------------
   18. モーション無効化（prefers-reduced-motion）
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js-reveal { opacity: 1 !important; transform: none !important; }
  .scroll-cue__arrow { animation: none !important; opacity: 0.6; }
}

@media print {
  .header, .footer, .scroll-cue, .compare__handle { display: none; }
}
