/* ===================================================
   Met Reform — design-v2 (renoves.jp 参照版)
   v3 整合 + モーション強化 (2026-04-24 Phase 1.5)
   =================================================== */
:root {
  --c-brand: #0B4F3C;
  --c-brand-dark: #083628;
  --c-brand-light: #E9EFEC;
  --c-action: #D4793A;
  --c-action-hover: #B8632C;
  --c-star: #C49520;
  --c-gold: #E8C894;
  --c-text: #1A1A1A;
  --c-text-sub: #4A4A4A;
  --c-text-mute: #8A8A8A;
  --c-paper: #FBF9F4;
  --c-paper-warm: #F4EFE6;
  --c-surface: #FFFFFF;
  --c-border: #E6E2D8;
  --c-border-soft: #EEEAE0;

  --ff-serif: "Noto Serif JP", "游明朝", "Yu Mincho", serif;
  --ff-sans: "Noto Sans JP", "游ゴシック", "Yu Gothic", sans-serif;
  --ff-en: "Cormorant Garamond", "Georgia", serif;

  --max-w: 1200px;
  --pad-x: clamp(20px, 4vw, 48px);
  --pad-section: clamp(80px, 11vw, 140px);

  --ease-out: cubic-bezier(.2,.7,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-text);
  background: var(--c-paper);
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* subtle paper texture */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(10,10,10,0.018) 1px, transparent 1px);
  background-size: 3px 3px;
}
main, header, footer { position: relative; z-index: 1; }

/* ===== Typography utilities ===== */
.en-label {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--c-brand);
  text-transform: uppercase;
}

/* ===================================================
   Scroll progress bar (top of viewport)
   =================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}
.scroll-progress::before {
  content: "";
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--c-action);
  transition: width .05s linear;
}

/* ===================================================
   Header
   =================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 244, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border-soft);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad-x);
  gap: 20px;
}
.brand {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--c-brand);
  letter-spacing: 0.08em;
  line-height: 1;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.3em;
  font-weight: 400;
  color: var(--c-text-mute);
  margin-top: 6px;
}
.nav-main {
  display: flex; gap: 22px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em;
}
.nav-main a {
  color: var(--c-text-sub);
  transition: color .2s;
  position: relative;
  padding: 4px 0;
}
.nav-main a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--c-brand);
  transition: right .3s var(--ease-out);
}
.nav-main a:hover { color: var(--c-brand); }
.nav-main a:hover::after { right: 0; }

.header-right {
  display: flex; align-items: center; gap: 16px;
  flex-shrink: 0;
}
.header-tel {
  display: flex; flex-direction: column; align-items: flex-end;
  line-height: 1;
  font-family: var(--ff-serif);
}
.header-tel .tel-num {
  font-size: 18px; font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.04em;
}
.header-tel small {
  font-family: var(--ff-sans);
  font-size: 10px;
  color: var(--c-text-mute);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.header-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  background: var(--c-action);
  color: #fff;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition: background .2s;
}
.header-cta:hover { background: var(--c-action-hover); }
.header-cta::after { content: "→"; font-size: 14px; }

@media (max-width: 1080px) {
  .nav-main { gap: 16px; font-size: 12px; }
  .header-tel .tel-num { font-size: 16px; }
}
@media (max-width: 900px) {
  .nav-main { display: none; }
  .header-tel { display: none; }
  .header-cta { padding: 10px 16px; font-size: 12px; }
  .brand { font-size: 18px; }
  .brand small { font-size: 9px; letter-spacing: 0.24em; }
}

/* ===================================================
   Hero (stats内包 / ken-burns / load stagger)
   =================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  padding: clamp(80px, 14vw, 160px) var(--pad-x) clamp(48px, 6vw, 80px);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  filter: brightness(0.68) saturate(0.95);
  z-index: -2;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform, opacity;
  animation: kenBurns 26s ease-in-out infinite alternate, heroFadeA 18s infinite;
}
.hero-slide--b {
  animation: kenBurns 26s ease-in-out infinite alternate, heroFadeB 18s infinite;
}
@keyframes kenBurns {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.13) translate(-2%, -1.6%); }
}
@keyframes heroFadeA {
  0%, 44%   { opacity: 1; }
  56%, 94%  { opacity: 0; }
  100%      { opacity: 1; }
}
@keyframes heroFadeB {
  0%, 44%   { opacity: 0; }
  56%, 94%  { opacity: 1; }
  100%      { opacity: 0; }
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,20,16,0.28) 0%, rgba(8,20,16,0.52) 55%, rgba(8,20,16,0.78) 100%);
  z-index: -1;
}
.hero-inner {
  max-width: var(--max-w);
  width: 100%; margin: 0 auto;
}
.hero-en {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.78);
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.5);
}
.hero-label {
  font-family: var(--ff-serif);
  font-size: clamp(14px, 1.4vw, 17px);
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.88);
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(26px, 4.2vw, 50px);
  line-height: 1.6;
  letter-spacing: 0.05em;
  max-width: 920px;
  margin-bottom: 28px;
}
.hero-lead {
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 2.1;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  margin-bottom: 40px;
  letter-spacing: 0.06em;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 72px; }

/* Hero load stagger (initial state — motion.js flips body.is-loaded) */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
body.is-loaded [data-reveal="1"] { transition-delay: .05s; opacity: 1; transform: translateY(0); }
body.is-loaded [data-reveal="2"] { transition-delay: .20s; opacity: 1; transform: translateY(0); }
body.is-loaded [data-reveal="3"] { transition-delay: .40s; opacity: 1; transform: translateY(0); }
body.is-loaded [data-reveal="4"] { transition-delay: .70s; opacity: 1; transform: translateY(0); }
body.is-loaded [data-reveal="5"] { transition-delay: .95s; opacity: 1; transform: translateY(0); }
body.is-loaded [data-reveal="6"] { transition-delay: 1.15s; opacity: 1; transform: translateY(0); }

/* Hero stats (inside hero, white-on-dark) */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 32px 0 0;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-stats .stat {
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.12);
  text-align: left;
}
.hero-stats .stat:first-child { padding-left: 0; }
.hero-stats .stat:last-child { border-right: none; }
.hero-stats .stat-val {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1;
  color: #fff;
  letter-spacing: 0.02em;
}
.hero-stats .stat-val small {
  font-size: 0.42em;
  margin-left: 4px;
  letter-spacing: 0.08em;
  color: var(--c-gold);
}
.hero-stats .stat-val .num { display: inline-block; min-width: 2ch; }
.hero-stats .stat-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.55);
  margin-top: 12px;
  font-family: var(--ff-en);
  font-style: italic;
  text-transform: uppercase;
}
.hero-stats .stat-stars {
  color: var(--c-star);
  font-size: 13px;
  margin-top: 4px;
  letter-spacing: 2px;
}

@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 0; padding-top: 24px; }
  .hero-stats .stat {
    padding: 16px 16px 0 16px;
    border-right: 1px solid rgba(255,255,255,0.12);
  }
  .hero-stats .stat:nth-child(2) { border-right: none; }
  .hero-stats .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 20px; }
  .hero-stats .stat:first-child { padding-left: 16px; }
}
@media (max-width: 720px) {
  .hero { min-height: 78vh; padding-top: clamp(100px, 18vw, 150px); }
  .hero h1 { font-size: clamp(22px, 6.5vw, 28px); line-height: 1.55; }
  .hero-lead { font-size: 13px; line-height: 2; }
  .hero-actions { margin-bottom: 52px; }
  .hero-stats .stat-val { font-size: 26px; }
  .hero-stats .stat-label { font-size: 9px; }
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute; right: 32px; bottom: 20px;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.7);
  writing-mode: vertical-rl;
  padding-bottom: 40px;
}
.hero-scroll::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  width: 1px; height: 32px;
  background: rgba(255,255,255,0.7);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.3); transform-origin: top; }
}
@media (max-width: 720px) { .hero-scroll { display: none; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 2px;
  transition: all .25s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn::after { content: "→"; transition: transform .25s; }
.btn:hover::after { transform: translateX(4px); }
.btn-primary { background: var(--c-action); color: #fff; }
.btn-primary:hover { background: var(--c-action-hover); }
.btn-ghost {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.btn-dark { background: var(--c-brand); color: #fff; }
.btn-dark:hover { background: var(--c-brand-dark); }
.btn-outline {
  background: transparent; color: var(--c-brand);
  border-color: var(--c-brand);
}
.btn-outline:hover { background: var(--c-brand); color: #fff; }

/* ===================================================
   Area badge strip (brand-colored horizontal band)
   =================================================== */
.area-strip {
  background: var(--c-brand);
  color: #fff;
  padding: 18px var(--pad-x);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.area-strip strong {
  font-family: var(--ff-serif);
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-right: 18px;
  font-size: 12px;
  color: var(--c-gold);
}
.area-strip span { margin: 0 8px; opacity: 0.92; }
@media (max-width: 720px) {
  .area-strip { font-size: 11px; padding: 14px 16px; line-height: 1.9; }
  .area-strip strong { display: block; margin: 0 0 4px; }
}

/* ===================================================
   Section common
   =================================================== */
.section {
  padding: var(--pad-section) var(--pad-x);
  position: relative;
}
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-head {
  display: flex;
  gap: 48px;
  align-items: flex-end;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head-main { flex: 1 1 480px; }
.section-head-main .en-label { display: block; margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.55;
  letter-spacing: 0.06em;
}
.section-head h2 .sub {
  display: block; font-size: 0.5em;
  color: var(--c-text-sub); letter-spacing: 0.2em;
  margin-top: 14px; font-weight: 400;
}
.section-head-desc {
  flex: 0 1 380px;
  font-size: 14px;
  line-height: 2.1;
  color: var(--c-text-sub);
  padding-bottom: 8px;
}
@media (max-width: 720px) {
  .section-head { margin-bottom: 36px; gap: 16px; }
}

.section--paper { background: var(--c-paper-warm); }
.section--dark { background: var(--c-brand); color: #fff; }
.section--dark h2, .section--dark .en-label { color: #fff; }
.section--dark .en-label { opacity: 0.75; }

/* ===================================================
   Works (施工事例)
   Tag filter bar + 3-card grid with captions below
   =================================================== */
.works-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.works-tag {
  padding: 8px 16px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-sub);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: all .2s;
  border-radius: 2px;
  line-height: 1.4;
}
.works-tag:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}
.works-tag.is-active {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.work {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-paper-warm);
  cursor: pointer;
}
.work img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
  display: block;
}
.work:hover img { transform: scale(1.08); }

.work-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(18px, 2vw, 28px);
  background: linear-gradient(180deg, rgba(8,20,16,0.08) 0%, rgba(8,20,16,0.15) 45%, rgba(8,20,16,0.82) 100%);
  color: #fff;
  transition: background .5s var(--ease-out);
  pointer-events: none;
}
.work:hover .work-overlay {
  background: linear-gradient(180deg, rgba(8,20,16,0.28) 0%, rgba(8,20,16,0.45) 45%, rgba(8,20,16,0.9) 100%);
}
.work-cat {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--c-gold);
}
.work-body { display: flex; flex-direction: column; gap: 8px; }
.work-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0;
}
.work-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.82);
}
.works-more {
  display: flex; justify-content: center; margin-top: 56px;
}
@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid .work:nth-child(3) { grid-column: span 2; max-width: 62%; margin: 0 auto; }
  .work-overlay { padding: 16px; }
}
@media (max-width: 600px) {
  .works-grid { grid-template-columns: 1fr; gap: 14px; }
  .works-grid .work:nth-child(3) { grid-column: span 1; max-width: 100%; }
  .works-tags { gap: 6px; }
  .works-tag { padding: 6px 12px; font-size: 11px; }
  .work-cat { font-size: 10px; letter-spacing: 0.18em; }
  .work-title { font-size: 15px; }
  .work-meta { font-size: 10px; }
}

/* ===================================================
   Voice (お客様の声)
   =================================================== */
.voice-featured {
  background: var(--c-surface);
  padding: clamp(32px, 5vw, 56px);
  margin-bottom: 24px;
  border: 1px solid var(--c-border);
  position: relative;
}
.voice-featured::before {
  content: "“";
  position: absolute; top: 20px; left: 28px;
  font-family: var(--ff-en);
  font-size: 120px; line-height: 1;
  color: var(--c-paper-warm);
  pointer-events: none;
}
.voice-stars {
  color: var(--c-star);
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 20px;
  position: relative;
}
.voice-body {
  font-size: 14.5px;
  line-height: 2.2;
  color: var(--c-text-sub);
  margin-bottom: 24px;
  position: relative;
  letter-spacing: 0.03em;
}
.voice-body strong { color: var(--c-text); font-weight: 700; }
.voice-author {
  font-family: var(--ff-serif);
  font-size: 13px;
  color: var(--c-brand);
  letter-spacing: 0.12em;
  font-weight: 500;
}
.voice-sub {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.voice-card {
  background: var(--c-surface);
  padding: 32px;
  border: 1px solid var(--c-border);
}
.voice-card .voice-body { font-size: 13.5px; line-height: 2.05; }
.voice-links {
  display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap;
}
.voice-links a {
  font-size: 13px; font-weight: 500;
  color: var(--c-brand);
  border-bottom: 1px solid var(--c-brand);
  padding-bottom: 4px;
  letter-spacing: 0.08em;
}
@media (max-width: 720px) {
  .voice-sub { grid-template-columns: 1fr; }
}

/* ===================================================
   Strengths (選ばれる6つの理由)
   =================================================== */
.str-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-border);
  border-left: 1px solid var(--c-border);
}
.str-item {
  padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 36px);
  border-right: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
  transition: background .25s;
  position: relative;
  overflow: hidden;
}
.str-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; width: 0; height: 2px;
  background: var(--c-brand);
  transition: width .5s var(--ease-out);
}
.str-item:hover { background: var(--c-paper); }
.str-item:hover::before { width: 100%; }
.str-num {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 44px;
  font-weight: 400;
  color: var(--c-brand);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.9;
}
.str-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  color: var(--c-text);
}
.str-body {
  font-size: 13.5px;
  line-height: 2;
  color: var(--c-text-sub);
  letter-spacing: 0.03em;
}
.str-more {
  display: flex; justify-content: center; margin-top: 56px;
}
@media (max-width: 900px) {
  .str-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .str-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   Staff (2名)
   =================================================== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 5vw, 60px);
  max-width: 920px;
  margin: 0 auto;
}
.staff-card {
  text-align: left;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: flex-start;
}
.staff-photo-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--c-paper-warm);
  position: relative;
}
.staff-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.85);
  transition: filter .6s var(--ease-out), transform .6s var(--ease-out);
}
.staff-card:hover .staff-photo-wrap img {
  filter: saturate(1.05);
  transform: scale(1.04);
}
.staff-body { padding-top: 12px; }
.staff-name {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.staff-role {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--c-text-mute);
  margin-bottom: 16px;
  line-height: 1.7;
}
.staff-quote {
  font-size: 13.5px;
  line-height: 2;
  color: var(--c-text-sub);
  letter-spacing: 0.03em;
}
.staff-more {
  display: flex; justify-content: center; margin-top: 56px;
}
@media (max-width: 720px) {
  .staff-grid { grid-template-columns: 1fr; }
  .staff-card { grid-template-columns: 120px 1fr; gap: 20px; }
  .staff-name { font-size: 18px; }
}

/* ===================================================
   Services (リフォームメニュー)
   =================================================== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}
.svc-card {
  display: block;
  transition: opacity .25s;
}
.svc-card:hover { opacity: 0.92; }
.svc-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--c-paper-warm);
  position: relative;
}
.svc-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.svc-card:hover .svc-img-wrap img { transform: scale(1.05); }
.svc-tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.svc-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-brand);
  background: var(--c-brand-light);
  padding: 4px 10px;
}
.svc-tag.-subsidy { background: var(--c-action); color: #fff; }
.svc-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.svc-body {
  font-size: 13.5px;
  line-height: 2;
  color: var(--c-text-sub);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.svc-link {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-brand);
  border-bottom: 1px solid var(--c-brand);
  padding-bottom: 3px;
}
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   Subsidy banner
   =================================================== */
.subsidy-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 4vw, 48px);
  background: var(--c-brand);
  color: #fff;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  transition: background .25s;
}
.subsidy-banner:hover { background: var(--c-brand-dark); }
.subsidy-banner::before {
  content: "SUBSIDY";
  position: absolute;
  right: -10px; bottom: -30px;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 140px;
  color: rgba(255,255,255,0.05);
  pointer-events: none;
  line-height: 1;
}
.subsidy-text { flex: 1 1 360px; position: relative; }
.subsidy-text .en-label { color: rgba(255,255,255,0.7); display: block; margin-bottom: 10px; }
.subsidy-text h3 {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.subsidy-text p {
  font-size: 13px;
  margin-top: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
}

/* ===================================================
   Flow (リフォームの流れ)
   Horizontal timeline with SVG connector drawn on scroll
   =================================================== */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  color: var(--c-brand);
}
.flow-line {
  position: absolute;
  top: 26px;
  left: 10%; right: 10%; width: 80%;
  height: 2px;
  color: var(--c-brand);
  opacity: 0.35;
  z-index: 0;
}
.flow-line line { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2s var(--ease-out); }
.flow.is-in .flow-line line { stroke-dashoffset: 0; }

.flow-step { text-align: center; position: relative; padding: 0 8px; z-index: 1; }
.flow-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--c-paper);
  border: 1px solid var(--c-brand);
  color: var(--c-brand);
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  position: relative;
  transition: transform .4s var(--ease-out), background .4s, color .4s;
}
.section--paper .flow-num { background: var(--c-paper-warm); }
.flow-step:hover .flow-num {
  background: var(--c-brand);
  color: #fff;
  transform: scale(1.08);
}
.flow-step h3 {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--c-text);
}
.flow-step p {
  font-size: 12px;
  color: var(--c-text-mute);
  line-height: 1.8;
}
.flow-more {
  display: flex; justify-content: center; margin-top: 56px;
}
@media (max-width: 720px) {
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow-line { display: none; }
}

/* ===================================================
   FAQ
   =================================================== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--c-border);
  padding: 28px 0;
}
.faq-item:first-child { border-top: 1px solid var(--c-border); }
.faq-q {
  font-family: var(--ff-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-left: 44px;
  position: relative;
  margin-bottom: 14px;
  line-height: 1.7;
}
.faq-q::before {
  content: "Q.";
  font-family: var(--ff-en);
  font-style: italic;
  font-weight: 400;
  color: var(--c-brand);
  position: absolute; left: 0; top: -2px;
  font-size: 22px;
}
.faq-a {
  padding-left: 44px;
  font-size: 14px;
  line-height: 2.05;
  color: var(--c-text-sub);
  position: relative;
  letter-spacing: 0.03em;
}
.faq-a::before {
  content: "A.";
  font-family: var(--ff-en);
  font-style: italic;
  color: var(--c-action);
  position: absolute; left: 0; top: -2px;
  font-size: 22px;
}
.faq-a a { color: var(--c-brand); border-bottom: 1px solid currentColor; }

/* ===================================================
   CTA section (final) — with ken-burns on bg
   =================================================== */
.cta-final {
  position: relative;
  padding: clamp(100px, 13vw, 180px) var(--pad-x);
  color: #fff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-final-bg {
  position: absolute; inset: 0;
  background-image: url("../images/cases/kominka-02.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(0.48);
  z-index: -2;
  animation: kenBurns 32s ease-in-out infinite alternate;
  will-change: transform;
}
.cta-final::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,20,16,0.6), rgba(8,20,16,0.85));
  z-index: -1;
}
.cta-final .en-label { color: rgba(255,255,255,0.7); display: inline-block; margin-bottom: 20px; }
.cta-final h2 {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.7;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.cta-final p {
  font-size: 14px;
  line-height: 2.1;
  color: rgba(255,255,255,0.8);
  max-width: 620px;
  margin: 0 auto 44px;
  letter-spacing: 0.04em;
}
.cta-final .cta-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.cta-tel {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 14px 26px;
  color: #fff;
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 2px;
  transition: background .2s;
}
.cta-tel:hover { background: rgba(255,255,255,0.08); }
.cta-tel small { font-family: var(--ff-sans); font-size: 11px; font-weight: 400; letter-spacing: 0.1em; opacity: 0.7; }
.cta-note {
  font-size: 11px; color: rgba(255,255,255,0.55);
  margin-top: 24px; letter-spacing: 0.1em;
}

/* ===================================================
   Footer
   =================================================== */
.site-footer {
  background: #141614;
  color: rgba(255,255,255,0.62);
  padding: clamp(60px, 8vw, 100px) var(--pad-x) 32px;
}
.footer-top {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer-brand small {
  display: block;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.3em;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
}
.footer-address {
  font-size: 12.5px;
  line-height: 2;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}
.footer-col h4 {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--c-gold);
  margin-bottom: 18px;
  font-weight: 400;
}
.footer-col a {
  display: block;
  font-size: 12.5px;
  padding: 5px 0;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.04em;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding-top: 24px;
  font-size: 11px;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.08em;
  text-align: center;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ===================================================
   Sticky bottom bar (mobile) — auto-hide on scroll
   =================================================== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--c-brand);
  padding: 10px 16px;
  z-index: 40;
  display: none;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.18);
  transform: translateY(0);
  transition: transform .4s var(--ease-out), opacity .3s;
  opacity: 1;
}
.sticky-cta.is-hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.sticky-cta-inner {
  max-width: 720px; margin: 0 auto;
  display: flex; gap: 10px;
}
.sticky-cta a {
  flex: 1;
  padding: 12px 10px;
  text-align: center;
  color: #fff;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 2px;
}
.sticky-cta .sticky-tel { background: rgba(255,255,255,0.12); }
.sticky-cta .sticky-form { background: var(--c-action); }
@media (max-width: 720px) {
  .sticky-cta { display: block; }
  .site-footer { padding-bottom: 80px; }
}

/* ===================================================
   Fade-in on scroll (for .reveal)
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* stagger children when a reveal container has .reveal-stagger */
.reveal-stagger.is-visible > * { animation: riseIn .8s var(--ease-out) both; }
.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: .05s; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: .12s; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: .19s; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: .26s; }
.reveal-stagger.is-visible > *:nth-child(5) { animation-delay: .33s; }
.reveal-stagger.is-visible > *:nth-child(6) { animation-delay: .40s; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   Reduced motion fallback
   =================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-slide, .cta-final-bg { animation: none !important; opacity: 1 !important; }
  .hero-slide--b { opacity: 0 !important; }
  .reveal, [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-scroll::after { animation: none !important; }
  .flow-line line { stroke-dashoffset: 0 !important; }
}

/* mobile: disable ken-burns to avoid jank */
@media (max-width: 720px) {
  .hero-slide { animation: heroFadeA 18s infinite; }
  .hero-slide--b { animation: heroFadeB 18s infinite; }
  .cta-final-bg { animation: none; }
}
