/* =========================================================
   株式会社縁 — Editorial Redesign
   Design tokens follow Tailwind v4 / OKLCH philosophy.
========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Tokens ---------- */
:root {
  /* Color — warm neutrals + deep navy + ochre */
  --bg:        #FAF7F2;          /* warm white */
  --bg-alt:    #F2EDE3;          /* warm beige */
  --ink:       #1B2940;          /* deep navy */
  --ink-soft:  #2D3D5A;
  --paper:     #FFFFFF;
  --text:      #2C2A26;          /* warm near-black */
  --text-mute: #6B6660;
  --line:      #E5DFD3;
  --accent:    #B5895A;          /* refined ochre */
  --accent-dk: #8E6A42;
  --accent-bg: #F1E8D8;

  /* Type */
  --ff-serif:  "Shippori Mincho B1", "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --ff-sans:   "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --ff-en:     "Cormorant Garamond", "Times New Roman", serif;
  --ff-num:    "Inter", "Helvetica Neue", sans-serif;

  /* Layout */
  --container: 1240px;
  --header-h:  84px;

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
html, body { overflow-x: hidden; }
body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
  word-break: break-word;
  overflow-wrap: anywhere;
}
::selection { background: var(--ink); color: var(--bg); }

/* ---------- Helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.serif { font-family: var(--ff-serif); }
.en { font-family: var(--ff-en); font-style: italic; font-weight: 500; letter-spacing: 0.02em; }
.num { font-family: var(--ff-num); letter-spacing: 0.05em; }
.eyebrow {
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 14px;
}
.text-center { text-align: center; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(250, 247, 242, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(250, 247, 242, 0.95); }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.logo { display: flex; align-items: center; gap: 14px; }
.logo__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  position: relative;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 600;
  background: var(--paper);
  transition: transform 0.5s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-12deg); }
.logo__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.5;
}
.logo__name { line-height: 1.2; }
.logo__name strong {
  font-family: var(--ff-serif);
  font-size: 18px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.logo__name small {
  font-family: var(--ff-en);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--text-mute);
  text-transform: uppercase;
  display: block;
  margin-top: 3px;
}

.gnav { display: flex; align-items: center; gap: 40px; }
.gnav__list { display: flex; gap: 36px; align-items: center; }
.gnav__list a {
  font-size: 13px;
  letter-spacing: 0.16em;
  position: relative;
  padding: 8px 2px;
  color: var(--text);
  transition: color 0.3s;
}
.gnav__list a small {
  display: block;
  font-family: var(--ff-en);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  margin-top: 2px;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 500;
}
.gnav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.gnav__list a:hover, .gnav__list a.is-active { color: var(--ink); }
.gnav__list a:hover::after, .gnav__list a.is-active::after { transform: scaleX(1); }

.gnav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper) !important;
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.gnav__cta:hover { background: var(--accent-dk); transform: translateY(-2px); }
.gnav__cta::after { display: none !important; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1px;
  background: var(--ink);
  transition: all 0.4s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 36px;
  font-size: 14px;
  letter-spacing: 0.12em;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "→";
  display: inline-block;
  font-family: var(--ff-en);
  font-style: normal;
  font-size: 16px;
  transition: transform 0.4s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--accent-dk); }
.btn--accent { background: var(--accent); color: var(--paper); }
.btn--accent:hover { background: var(--accent-dk); }
.btn--ghost { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--line { background: #06c755; color: #fff; }
.btn--line:hover { background: #05a848; }
.btn--lg { min-height: 64px; padding: 0 44px; font-size: 15px; }
.btn--full { width: 100%; }

/* ---------- Hero (Top) ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
  background: var(--bg);
}
.hero__layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 40px 0;
}
.hero__copy { position: relative; }
.hero__eyebrow { margin-bottom: 36px; display: inline-flex; align-items: center; }
.hero__title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.32;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 36px;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
  font-family: inherit;
  font-weight: 600;
}
.hero__catchphrase-en {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-top: 24px;
  margin-bottom: 8px;
}
.hero__sub {
  font-size: 16px;
  line-height: 2.2;
  color: var(--text);
  margin-bottom: 48px;
  max-width: 520px;
}
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/hero/hero-en.jpg') center/cover;
  filter: saturate(0.85) contrast(1.05);
}
.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(27, 41, 64, 0.18));
}
.hero__caption {
  position: absolute;
  bottom: 32px;
  right: 32px;
  background: var(--bg);
  padding: 24px 32px;
  z-index: 2;
  border-top: 1px solid var(--accent);
}
.hero__caption-num {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 56px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.hero__caption-num small { font-size: 18px; vertical-align: super; }
.hero__caption-label {
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-en);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollDown 2.4s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Section ---------- */
.section { padding: 140px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--ink); color: var(--bg); }
.section--ink .eyebrow { color: var(--accent); }

.section__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 80px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 40px;
}
.section__head-main { max-width: 720px; }
.section__num {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 14px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.section__title {
  font-family: var(--ff-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-top: 20px;
}
.section--ink .section__title { color: var(--bg); }
.section__title-en {
  display: block;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 0.45em;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.section__lede {
  font-size: 16px;
  line-height: 2.1;
  color: var(--text);
  max-width: 380px;
}
.section--ink .section__lede { color: rgba(250, 247, 242, 0.78); }

/* ---------- Service grid ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.svc-cell {
  padding: 56px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  transition: background 0.4s var(--ease);
}
.svc-cell:hover { background: var(--bg); }
.svc-cell__num {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.svc-cell__icon { width: 40px; height: 40px; color: var(--ink); margin-bottom: 24px; }
.svc-cell__title {
  font-family: var(--ff-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 12px;
}
.svc-cell__title-en {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 14px;
  color: var(--text-mute);
  margin-bottom: 24px;
  letter-spacing: 0.06em;
}
.svc-cell__desc { font-size: 14.5px; line-height: 2; color: var(--text); }
.svc-cell--main { background: linear-gradient(180deg, var(--accent-bg) 0%, var(--paper) 100%); }
.svc-cell--main .svc-cell__num { color: var(--accent-dk); font-weight: 700; }
.svc-cell--main .svc-cell__icon { color: var(--accent-dk); }
.svc-row--main .svc-row__num { color: var(--accent-dk); font-style: normal; font-weight: 600; }

/* Other services grid */
.other-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.other-cell {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.other-cell:hover { border-color: var(--accent); transform: translateY(-3px); }
.other-cell .svc-cell__icon { margin: 0 auto 20px; }
.other-cell__title {
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.6;
}
.other-cell__desc { font-size: 13.5px; line-height: 1.95; color: var(--text); }
@media (max-width: 1024px) {
  .other-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 480px) {
  .other-grid { grid-template-columns: 1fr; }
  .other-cell { padding: 28px 24px; }
}

/* Merged cell (5th service + CTA block) */
.svc-merged {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.svc-merged__inner { padding: 56px 48px; background: var(--paper); border-right: 1px solid var(--line); }
.svc-merged__cta {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink);
  color: var(--bg);
}
.svc-merged__cta-eyebrow { color: var(--accent) !important; margin-bottom: 24px; display: inline-block; }
.svc-merged__cta-title {
  font-family: var(--ff-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--bg);
  margin-bottom: 28px;
}
.svc-merged__cta .btn { align-self: flex-start; }

/* ---------- Reasons ---------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}
.reasons--four { grid-template-columns: repeat(4, 1fr); gap: 48px; }
@media (max-width: 1280px) {
  .reasons--four { grid-template-columns: repeat(2, 1fr); gap: 56px 40px; }
}
@media (max-width: 1024px) {
  .reasons--four { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
}
@media (max-width: 768px) {
  .reasons--four { grid-template-columns: 1fr; gap: 48px; }
}
.reason { position: relative; }
.reason__num {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 80px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 24px;
  font-weight: 500;
}
.reason__title {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.reason__desc { font-size: 14.5px; line-height: 2; color: var(--text); }
.section--ink .reason__title { color: var(--bg); border-bottom-color: rgba(250,247,242,0.18); }
.section--ink .reason__desc { color: rgba(250, 247, 242, 0.78); }

/* ---------- Works grid ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 32px;
}
.works--two { grid-template-columns: repeat(2, 1fr); gap: 56px 40px; }
.work {
  display: block;
  cursor: pointer;
  position: relative;
}
.work__thumb {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
  background: var(--bg-alt);
}
.work__thumb::after {
  content: "View Case  →";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 31, 51, 0);
  color: var(--bg);
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.22em;
  opacity: 0;
  transition: background 0.5s var(--ease), opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.work:hover .work__thumb::after {
  background: rgba(15, 31, 51, 0.55);
  opacity: 1;
}
.work__title {
  position: relative;
  padding-right: 28px;
}
.work__title::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 22px;
  opacity: 0.55;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.work:hover .work__title::after {
  opacity: 1;
  transform: translateY(-50%) translateX(6px);
}
.work--placeholder .work__thumb::after,
.work--placeholder .work__title::after { display: none; }
.work__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
  transition: transform 1.2s var(--ease);
}
.work:hover .work__thumb img { transform: scale(1.06); }
.work__num {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 18px;
  color: var(--paper);
  z-index: 1;
}
.work__cat {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--paper);
  text-transform: uppercase;
  background: rgba(27, 41, 64, 0.85);
  padding: 8px 14px;
  z-index: 1;
}
.work__title {
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.6;
  transition: color 0.3s;
}
.work:hover .work__title { color: var(--accent); }
.work__meta {
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  text-transform: uppercase;
  display: flex;
  gap: 16px;
}
.work--placeholder { cursor: default; pointer-events: none; opacity: 0.7; }
.work__thumb--placeholder {
  background: linear-gradient(135deg, var(--bg-alt), var(--line));
  display: flex;
  align-items: center;
  justify-content: center;
}
.work__thumb--placeholder::before {
  content: "—";
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 48px;
  color: var(--text-mute);
  opacity: 0.5;
}
.work--placeholder .work__cat { background: rgba(107, 102, 96, 0.92); }

/* ---------- About preview (Top) ---------- */
.about-preview { display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; align-items: center; }
.about-preview__visual {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
}
.about-preview__visual img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) contrast(1.04);
}
.about-preview__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  pointer-events: none;
  transform: translate(20px, 20px);
}
.about-preview__copy h2 {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--ink);
  margin: 24px 0 32px;
}
.about-preview__copy p {
  font-size: 15.5px;
  line-height: 2.1;
  margin-bottom: 24px;
  color: var(--text);
}
.about-preview__cta { margin-top: 40px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.about-preview__ig {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  transition: color 0.3s var(--ease);
}
.about-preview__ig:hover { color: var(--accent-dk); }
.about-preview__ig svg { width: 18px; height: 18px; color: var(--accent); }
.about-preview__ig small { font-family: var(--ff-num); font-style: normal; letter-spacing: 0.04em; opacity: 0.7; }
.section__more { text-align: center; margin-top: 80px; }
@media (max-width: 768px) {
  .section__more { margin-top: 48px; }
  .about-preview__cta { margin-top: 32px; }
}

/* ---------- CTA Section ---------- */
.cta {
  padding: 140px 0;
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 137, 90, 0.18), transparent 60%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; text-align: center; }
.cta__lead {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.cta__title {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--bg);
  margin-bottom: 32px;
}
.cta__sub { font-size: 15px; line-height: 2; color: rgba(250,247,242,0.75); margin-bottom: 56px; }
.cta__btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.cta__btns .btn--ghost { border-color: var(--bg); color: var(--bg); }
.cta__btns .btn--ghost:hover { background: var(--bg); color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(250,247,242,0.72); padding: 100px 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 80px; padding-bottom: 56px; border-bottom: 1px solid rgba(250,247,242,0.14); }
.footer__brand { font-family: var(--ff-serif); font-size: 22px; letter-spacing: 0.18em; color: var(--bg); margin-bottom: 12px; font-weight: 500; }
.footer__brand-en { font-family: var(--ff-en); font-style: italic; font-size: 13px; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 28px; }
.footer__addr { font-size: 13px; line-height: 2; color: rgba(250,247,242,0.7); }
.footer__nav-title { font-family: var(--ff-en); font-style: italic; font-size: 12px; letter-spacing: 0.24em; color: var(--accent); margin-bottom: 24px; text-transform: uppercase; font-weight: 500; }
.footer__nav-list li { margin-bottom: 12px; font-size: 13px; }
.footer__nav-list a { transition: color 0.3s; }
.footer__nav-list a:hover { color: var(--accent); }
.footer__bottom { padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--ff-num); font-size: 11px; letter-spacing: 0.18em; color: rgba(250,247,242,0.4); text-transform: uppercase; }

.footer__social {
  padding: 28px 0;
  margin-top: 8px;
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  border-bottom: 1px solid rgba(250, 247, 242, 0.1);
  margin-bottom: 28px;
}
.footer__social-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__social-label {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 500;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border: 1px solid rgba(250, 247, 242, 0.18);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(250, 247, 242, 0.88);
  transition: all 0.35s var(--ease);
}
.footer__social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
}
.footer__social-link svg { width: 18px; height: 18px; }
.footer__social-link small { opacity: 0.7; font-family: var(--ff-num); letter-spacing: 0.04em; margin-left: 4px; }
@media (max-width: 768px) {
  .footer__social-row { gap: 12px; }
  .footer__social-link { padding: 10px 16px; font-size: 12px; }
}

/* ---------- Page Hero (Subpages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 100px) 0 100px;
  overflow: hidden;
  background: var(--bg-alt);
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: var(--bg);
  z-index: 0;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.page-hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-top: 24px;
}
.page-hero__title-en {
  display: block;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 0.34em;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.page-hero__visual {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}
.page-hero__visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.04); }
.page-hero__visual::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--accent); transform: translate(16px, 16px); pointer-events: none; }

.crumb {
  display: flex;
  gap: 12px;
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 0;
}
.crumb a:hover { color: var(--accent); }

/* ---------- About: Greeting ---------- */
.greeting { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 100px; align-items: start; }
.greeting__photo {
  aspect-ratio: 3 / 4;
  position: relative;
  background: var(--bg-alt);
  overflow: hidden;
}
.greeting__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(0.92) contrast(1.04);
  display: block;
}
.greeting__photo:not(:has(img))::before {
  content: "PHOTO\AComing soon";
  white-space: pre;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 16px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.6;
}
.greeting__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  transform: translate(16px, 16px);
}
.greeting__title {
  font-family: var(--ff-serif);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 40px;
}
.greeting__body { font-size: 15.5px; line-height: 2.2; color: var(--text); }
.greeting__body p + p { margin-top: 24px; }
.greeting__sign { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; align-items: baseline; gap: 24px; }
.greeting__sign small { font-family: var(--ff-en); font-style: italic; font-size: 13px; color: var(--text-mute); }
.greeting__sign strong { font-family: var(--ff-serif); font-size: 22px; color: var(--ink); letter-spacing: 0.18em; font-weight: 500; }

/* ---------- Info table ---------- */
.info-table { width: 100%; border-top: 1px solid var(--line); }
.info-table th, .info-table td { padding: 28px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.85; }
.info-table th { width: 240px; font-family: var(--ff-num); font-size: 11px; letter-spacing: 0.24em; color: var(--accent); text-transform: uppercase; font-weight: 500; padding-right: 32px; }
.info-table td { color: var(--text); }
.info-table td small { display: block; font-family: var(--ff-en); font-style: italic; font-size: 12px; color: var(--text-mute); margin-top: 4px; }

/* ---------- Map ---------- */
.map-wrap {
  aspect-ratio: 21 / 9;
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.9) contrast(1.02);
}

/* ---------- Service detail (services.html) ---------- */
.svc-detail { display: flex; flex-direction: column; gap: 140px; }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.svc-row:nth-child(even) { direction: rtl; }
.svc-row:nth-child(even) > * { direction: ltr; }
.svc-row__visual { aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.svc-row__visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.04); }
.svc-row__visual::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--accent); transform: translate(16px, 16px); pointer-events: none; }

.svc-row__visual--ba {
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  overflow: visible;
}
.svc-row__visual--ba::after { display: none; }
.svc-row__visual--ba .ba-shot {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.svc-row__visual--ba .ba-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}
.svc-row__visual--ba .ba-shot figcaption {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 20, 20, 0.62);
  padding: 6px 12px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.svc-row__visual--ba .ba-shot--after::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  transform: translate(10px, 10px);
  pointer-events: none;
}
@media (max-width: 720px) {
  .svc-row__visual--ba { gap: 10px; }
  .svc-row__visual--ba .ba-shot figcaption { font-size: 10px; padding: 4px 8px; top: 8px; left: 8px; }
}

.svc-row__visual--illust {
  background: linear-gradient(135deg, var(--bg-alt) 0%, #ece5d8 100%);
  display: grid;
  place-items: center;
  color: var(--accent-dk, var(--accent));
}
.svc-row__visual--illust .svc-illust {
  width: 58%;
  height: auto;
  max-width: 240px;
  opacity: 0.78;
}
.svc-row__visual--illust .svc-row__visual-note {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.svc-row__visual--coming {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--line) 100%);
  display: grid;
  place-items: center;
}
.svc-row__visual--coming::before {
  content: "Photo Coming Soon";
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  text-transform: uppercase;
  text-align: center;
  padding: 0 24px;
  z-index: 1;
}
.svc-row__visual--coming .svc-row__visual-note {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  font-family: var(--ff-sans);
  z-index: 1;
}
.svc-row__num {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 80px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 24px;
}
.svc-row__num small { font-family: var(--ff-num); font-style: normal; font-size: 12px; letter-spacing: 0.24em; color: var(--text-mute); display: block; margin-top: 8px; }
.svc-row__title {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 28px;
}
.svc-row__desc { font-size: 15.5px; line-height: 2.1; color: var(--text); margin-bottom: 32px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tags span {
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-dk);
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}

/* ---------- Flow ---------- */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.flow--five { grid-template-columns: repeat(5, 1fr); }
.flow::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--line);
}
.flow-step { text-align: center; position: relative; }
.flow-step__num {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.flow-step__title { font-family: var(--ff-serif); font-size: 16px; font-weight: 500; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 8px; }
.flow-step__desc { font-size: 12px; line-height: 1.85; color: var(--text-mute); padding: 0 8px; }

/* ---------- Case detail ---------- */
.case-hero {
  position: relative;
  height: 90vh;
  min-height: 640px;
  margin-top: var(--header-h);
  overflow: hidden;
}
.case-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) contrast(1.05);
}
.case-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(15, 31, 51, 0.25) 0%,
    rgba(15, 31, 51, 0.12) 40%,
    rgba(15, 31, 51, 0.85) 100%);
}
.case-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  color: var(--bg);
}
.case-hero__category {
  font-family: var(--ff-num);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--accent);
  margin-bottom: 24px;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}
.case-hero__category::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--accent);
  margin-right: 14px;
}
.case-hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--bg);
  margin-bottom: 32px;
  max-width: 900px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}
.case-hero__meta {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.85);
}
.case-hero__meta strong {
  display: block;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  color: var(--bg);
  letter-spacing: 0.04em;
  text-transform: none;
  margin-top: 6px;
}

.case-spec {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.case-spec__lede {
  font-family: var(--ff-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 36px;
}
.case-spec__desc { font-size: 15.5px; line-height: 2.1; }
.case-spec__desc p + p { margin-top: 20px; }
.case-spec__table { width: 100%; border-top: 1px solid var(--line); }
.case-spec__table tr { border-bottom: 1px solid var(--line); }
.case-spec__table th, .case-spec__table td { padding: 20px 0; text-align: left; vertical-align: top; }
.case-spec__table th {
  width: 130px;
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 500;
  padding-right: 24px;
}
.case-spec__table td { font-size: 14.5px; color: var(--text); line-height: 1.85; }

/* Before/After comparison */
.compare-section { background: var(--bg-alt); }
.compare-grid {
  display: grid;
  gap: 40px;
}
.compare-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare-item { position: relative; }
.compare-item__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--line);
}
.compare-item__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 31, 51, 0.92);
  color: var(--bg);
  padding: 8px 16px;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.22em;
  z-index: 2;
}
.compare-item__tag--after {
  background: var(--accent);
  color: var(--bg);
}
.compare-item__caption {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 14px;
  letter-spacing: 0.04em;
  font-family: var(--ff-num);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* Arrow between pairs (optional decorative) */
.compare-arrow {
  text-align: center;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--accent);
  padding: 16px 0;
  text-transform: uppercase;
}

/* Process gallery (during construction) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  position: relative;
}
.process-step__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.process-step__num {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-top: 14px;
  text-transform: uppercase;
}
.process-step__title {
  font-family: var(--ff-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin-top: 6px;
}
.process-step__desc { font-size: 13px; color: var(--text-mute); line-height: 1.85; margin-top: 8px; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  display: block;
  overflow: hidden;
  background: var(--line);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item--tall img { aspect-ratio: 4 / 5; }
.gallery-item--wide { grid-column: span 2; }
.gallery-item--wide img { aspect-ratio: 16 / 9; }

/* Case nav (prev/next) */
.case-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.case-nav__link {
  display: block;
  padding: 56px 40px;
  transition: background 0.3s var(--ease);
  position: relative;
}
.case-nav__link:hover { background: var(--bg-alt); }
.case-nav__link + .case-nav__link { border-left: 1px solid var(--line); }
.case-nav__dir {
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.case-nav__title {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.5;
}
.case-nav__link--next { text-align: right; }

@media (max-width: 1024px) {
  .case-hero { height: 70vh; min-height: 520px; }
  .case-hero__inner { padding-bottom: 56px; }
  .case-spec { grid-template-columns: 1fr; gap: 48px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--wide { grid-column: span 2; }
}
@media (max-width: 768px) {
  .case-hero { height: 80vh; min-height: 480px; margin-top: 0; padding-top: var(--header-h); }
  .case-hero__inner { padding-bottom: 40px; }
  .case-hero__title { font-size: 26px; margin-bottom: 24px; }
  .case-hero__meta { gap: 28px; font-size: 10px; }
  .case-hero__meta strong { font-size: 18px; }
  .compare-pair { grid-template-columns: 1fr; gap: 12px; }
  .compare-item__img { aspect-ratio: 4 / 3; }
  .compare-arrow { padding: 8px 0; }
  .process-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
  .case-nav { grid-template-columns: 1fr; }
  .case-nav__link + .case-nav__link { border-left: none; border-top: 1px solid var(--line); }
  .case-nav__link { padding: 36px 24px; }
  .case-nav__link--next { text-align: left; }
  .case-spec__table th { width: 110px; font-size: 10px; padding-right: 14px; }
}

/* ---------- Cleaning Gallery ---------- */
.cleaning-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cleaning-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.cleaning-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 48px rgba(27, 41, 64, 0.08);
}
.cleaning-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}
.cleaning-card figcaption {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cleaning-card__tag {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 4px;
}
.cleaning-card__title {
  font-family: var(--ff-serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.5;
}
.cleaning-card__desc {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.85;
  margin-top: 2px;
}

.cleaning-card--feature {
  grid-column: span 2;
  grid-row: span 2;
}
.cleaning-card--feature img { aspect-ratio: 4 / 4.2; }
.cleaning-card--feature figcaption { padding: 28px 32px 32px; }
.cleaning-card--feature .cleaning-card__title { font-size: 22px; }

/* ---------- Real Work Scenes ---------- */
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.scene-card {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.scene-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 16px 42px rgba(27, 41, 64, 0.08);
}
.scene-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.03);
  transition: transform 1s var(--ease);
}
.scene-card:hover img { transform: scale(1.04); }
.scene-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px 18px;
  color: #fff;
  background: linear-gradient(to top, rgba(20, 26, 36, 0.72) 20%, rgba(20, 26, 36, 0) 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.scene-card__tag {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.72);
}
.scene-card__title {
  font-family: var(--ff-serif);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.55;
}
@media (max-width: 1024px) {
  .scenes-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
  .scenes-grid { grid-template-columns: 1fr; gap: 16px; }
  .scene-card img { aspect-ratio: 4 / 3; }
}
.cleaning-card--feature .cleaning-card__desc { font-size: 14px; }

@media (max-width: 1024px) {
  .cleaning-gallery { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cleaning-card--feature { grid-column: span 2; grid-row: auto; }
  .cleaning-card--feature img { aspect-ratio: 16 / 10; }
}
@media (max-width: 768px) {
  .cleaning-gallery { grid-template-columns: 1fr; gap: 20px; }
  .cleaning-card--feature { grid-column: span 1; }
  .cleaning-card--feature img { aspect-ratio: 4 / 5; }
  .cleaning-card figcaption { padding: 18px 20px 22px; }
}

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; margin-bottom: 80px; }
.filter-btn {
  font-family: var(--ff-num);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 0;
  color: var(--text-mute);
  position: relative;
  transition: color 0.3s;
}
.filter-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.filter-btn:hover, .filter-btn.is-active { color: var(--ink); }
.filter-btn.is-active::after, .filter-btn:hover::after { transform: scaleX(1); }

/* ---------- Contact channels ---------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.channel {
  background: var(--paper);
  padding: 56px 40px;
  text-align: center;
  border: 1px solid var(--line);
  transition: border-color 0.4s var(--ease);
}
.channel:hover { border-color: var(--accent); }
.channel__icon { width: 36px; height: 36px; margin: 0 auto 28px; color: var(--ink); }
.channel__title { font-family: var(--ff-serif); font-size: 22px; font-weight: 500; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 8px; }
.channel__sub { font-family: var(--ff-en); font-style: italic; font-size: 13px; color: var(--text-mute); margin-bottom: 28px; letter-spacing: 0.04em; }
.channel__main { font-family: var(--ff-en); font-style: italic; font-size: 30px; color: var(--ink); margin-bottom: 24px; line-height: 1.3; }

/* ---------- Form ---------- */
.form { background: var(--paper); padding: 80px; border: 1px solid var(--line); }
.form__row { margin-bottom: 36px; }
.form__row label { display: block; font-family: var(--ff-num); font-size: 11px; letter-spacing: 0.24em; color: var(--accent-dk); text-transform: uppercase; margin-bottom: 12px; }
.form__row label .req { color: var(--accent); margin-left: 8px; font-size: 10px; }
.form__row input, .form__row select, .form__row textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 14px 0;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.3s;
  outline: none;
}
.form__row input:focus, .form__row select:focus, .form__row textarea:focus { border-bottom-color: var(--accent); }
.form__row textarea { min-height: 160px; resize: vertical; line-height: 1.85; }
.form__check { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text); }
.form__check label { display: flex !important; align-items: center; gap: 12px; font-family: var(--ff-sans) !important; font-size: 13px !important; letter-spacing: 0.02em !important; color: var(--text) !important; text-transform: none !important; }
.form__check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent-dk); margin: 0; }
.form__submit { display: flex; justify-content: center; margin-top: 56px; }
.form-note { font-family: var(--ff-en); font-style: italic; font-size: 13px; color: var(--text-mute); text-align: center; margin-top: 24px; letter-spacing: 0.04em; }
.form__hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.form-complete {
  background: var(--paper);
  padding: 96px 80px;
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
}
.form-complete::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  transform: translate(12px, 12px);
  pointer-events: none;
}
.form-complete__eyebrow {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--accent-dk);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.form-complete__title {
  font-family: var(--ff-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.form-complete__desc {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text);
  letter-spacing: 0.04em;
}
.form-complete__desc a { color: var(--accent-dk); border-bottom: 1px solid currentColor; }
@media (max-width: 720px) {
  .form-complete { padding: 56px 24px; }
  .form-complete__desc { font-size: 14px; line-height: 2; }
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(15, 31, 51, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  gap: 10px;
}
.sticky-cta__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--bg);
  transition: transform 0.3s var(--ease), opacity 0.3s;
  text-decoration: none;
}
.sticky-cta__btn--primary {
  background: var(--accent);
}
.sticky-cta__btn--primary:active { transform: translateY(1px); background: var(--accent-dk); }
.sticky-cta__btn--line {
  background: #06c755;
}
.sticky-cta__btn--line:active { transform: translateY(1px); background: #05a848; }
.sticky-cta__btn svg { width: 18px; height: 18px; }

@media (max-width: 1024px) {
  .sticky-cta { display: flex; }
  /* Allow content to flow without being covered */
  body { padding-bottom: 80px; }
  body.menu-open { padding-bottom: 0; }
  .footer { padding-bottom: 88px; }
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive — mobile-first refinements
   xl: 1280+   default
   lg: 1024–1279
   md: 768–1023
   sm: 480–767
   xs: <480
========================================================= */

/* ---------- lg : 1024–1279 (small desktop / large tablet) ---------- */
@media (max-width: 1280px) {
  :root { --container: 100%; }
  .container, .header__inner { padding: 0 40px; }
  .section { padding: 120px 0; }
  .hero__layout { gap: 60px; }
  .reasons { gap: 48px; }
  .works { gap: 48px 24px; }
  .svc-detail { gap: 100px; }
  .svc-row { gap: 60px; }
  .greeting { gap: 64px; }
  .about-preview { gap: 72px; }
  .footer__top { gap: 56px; }
  .form { padding: 56px; }
}

/* ---------- md : 768–1023 (tablet) ---------- */
@media (max-width: 1024px) {
  .container, .header__inner { padding: 0 32px; }
  .section { padding: 100px 0; }

  /* Hero — full-bleed image as background, content overlays */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    color: var(--bg);
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    background:
      linear-gradient(180deg,
        rgba(15, 31, 51, 0.55) 0%,
        rgba(15, 31, 51, 0.18) 28%,
        rgba(15, 31, 51, 0.45) 62%,
        rgba(15, 31, 51, 0.94) 100%
      ),
      linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.32)),
      url('../img/works/case01/after-02-ldk-wide.jpg') center 40% / cover no-repeat;
    background-color: #1B2940;
  }
  .hero .container { width: 100%; }
  .hero__visual { display: none; }
  .hero__layout {
    display: block;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
    padding: calc(var(--header-h) + 80px) 0 72px;
    width: 100%;
  }
  .hero__copy { order: unset; padding: 0; max-width: 720px; position: relative; }

  /* Text colors over dark image */
  .hero__copy { color: var(--bg); }
  .hero__eyebrow .eyebrow { color: var(--accent); }
  .hero__eyebrow .line { background: var(--accent); }
  .hero__title {
    color: var(--bg);
    font-size: clamp(40px, 7vw, 64px);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
  }
  .hero__title em { color: var(--accent); }
  .hero__sub {
    color: rgba(250, 247, 242, 0.94);
    max-width: 560px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  }
  .hero__sub br { display: none; }
  .hero__scroll { display: none; }

  /* Override button styles for dark background */
  .hero .btn--ink {
    background: var(--accent);
    color: var(--bg);
  }
  .hero .btn--ink:hover { background: var(--accent-dk); }
  .hero .btn--ghost {
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--bg);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .hero .btn--ghost:hover {
    background: var(--bg);
    color: var(--ink);
    border-color: var(--bg);
  }

  /* Header adjustments while over dark hero (homepage only) */
  .page-home .header { background: rgba(15, 31, 51, 0.18); border-bottom-color: transparent; }
  .page-home .header.is-scrolled { background: rgba(250, 247, 242, 0.95); border-bottom-color: var(--line); }
  .page-home .header:not(.is-scrolled) .logo__mark {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--bg);
  }
  .page-home .header:not(.is-scrolled) .logo__name strong { color: var(--bg); }
  .page-home .header:not(.is-scrolled) .logo__name small { color: rgba(250, 247, 242, 0.7); }
  .page-home .header:not(.is-scrolled) .menu-toggle span { background: var(--bg); }
  .page-home .header:not(.is-scrolled) .gnav__cta {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .section__head { grid-template-columns: 1fr; gap: 24px; align-items: start; padding-bottom: 32px; margin-bottom: 56px; }
  .section__lede { max-width: none; }

  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-cell { padding: 44px 32px; }
  .svc-merged { grid-template-columns: 1fr; }
  .svc-merged__inner { border-right: none; border-bottom: 1px solid var(--line); padding: 44px 32px; }
  .svc-merged__cta { padding: 48px 32px; }
  .svc-merged__cta-title { font-size: 24px; }

  .reasons { grid-template-columns: 1fr; gap: 56px; }
  .reason__num { font-size: 64px; }

  .works { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }

  .about-preview { grid-template-columns: 1fr; gap: 56px; max-width: 720px; margin: 0 auto; }
  .about-preview__visual { max-width: 480px; }

  .greeting { grid-template-columns: 1fr; gap: 56px; }
  .greeting__photo { max-width: 360px; margin: 0 auto; }

  .svc-row { grid-template-columns: 1fr !important; gap: 40px; direction: ltr !important; }
  .svc-row__visual { max-width: 540px; }

  .page-hero { padding: calc(var(--header-h) + 60px) 0 80px; }
  .page-hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .page-hero::before { display: none; }
  .page-hero__visual { max-width: 540px; }

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

  .channels { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .channel { padding: 40px 24px; }
  .channel__main { font-size: 24px; }

  .form { padding: 48px 32px; }

  .cta { padding: 100px 0; }

  .footer { padding: 80px 0 24px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 48px 56px; }
  .footer__top > div:first-child { grid-column: 1 / -1; }
}

/* ---------- sm : 480–767 (large phone) ---------- */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  body { font-size: 15px; line-height: 1.9; }
  .container, .header__inner { padding: 0 20px; }
  .section { padding: 72px 0; }

  /* Header */
  .gnav__list { display: none; }
  .menu-toggle { display: block; }
  .gnav__cta {
    padding: 8px 14px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .gnav { gap: 8px; }
  .logo__mark { width: 36px; height: 36px; font-size: 18px; }
  .logo__name strong { font-size: 16px; }
  .logo__name small { font-size: 9px; }
  .gnav.is-open .gnav__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    padding: 16px 24px 24px;
    box-shadow: 0 24px 48px rgba(27,41,64,0.08);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .gnav.is-open .gnav__list li { width: 100%; }
  .gnav.is-open .gnav__list a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 12px;
  }
  .gnav.is-open .gnav__list a::after { display: none; }
  .gnav.is-open .gnav__list a small { margin: 0; }

  /* Buttons */
  .btn { min-height: 52px; padding: 0 28px; font-size: 13px; }
  .btn--lg { min-height: 56px; padding: 0 32px; font-size: 14px; }

  /* Hero — tighten copy on smaller phones */
  .hero { background-position: center 35%, center, center 35%; }
  .hero__layout { padding: calc(var(--header-h) + 64px) 0 56px; }
  .hero__title { font-size: clamp(32px, 9vw, 48px); line-height: 1.36; margin-bottom: 28px; }
  .hero__sub { font-size: 14.5px; line-height: 2; margin-bottom: 32px; }
  .hero__sub br { display: none; }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__ctas .btn { width: 100%; }
  .hero__eyebrow { margin-bottom: 24px; }

  /* Sections */
  .section__head { padding-bottom: 24px; margin-bottom: 40px; gap: 20px; }
  .section__title { line-height: 1.5; }
  .section__num { font-size: 12px; }

  /* Service grid */
  .svc-grid { grid-template-columns: 1fr; }
  .svc-cell { padding: 36px 24px; }
  .svc-cell__title { font-size: 22px; }
  .svc-merged__inner { padding: 36px 24px; }
  .svc-merged__cta { padding: 36px 24px; }

  /* Reasons */
  .reasons { gap: 48px; }
  .reason__num { font-size: 56px; }
  .reason__title { font-size: 19px; line-height: 1.65; }

  /* Works */
  .works { grid-template-columns: 1fr; gap: 40px; }
  .work__thumb { aspect-ratio: 4 / 4.5; }

  /* About preview */
  .about-preview__visual::after { transform: translate(12px, 12px); }
  .about-preview__copy h2 { font-size: 26px; line-height: 1.6; }

  /* Page hero */
  .page-hero { padding: calc(var(--header-h) + 40px) 0 64px; }
  .page-hero__inner { gap: 40px; }
  .page-hero__title { font-size: clamp(32px, 9vw, 48px); }
  .page-hero__visual::after { transform: translate(10px, 10px); }

  /* Greeting */
  .greeting__photo::after { transform: translate(12px, 12px); }
  .greeting__title { font-size: 22px; line-height: 1.7; margin-bottom: 28px; }
  .greeting__body { font-size: 14.5px; line-height: 2; }
  .greeting__sign { margin-top: 40px; padding-top: 24px; gap: 16px; }
  .greeting__sign strong { font-size: 18px; }

  /* Info table */
  .info-table th, .info-table td {
    display: block;
    width: 100%;
    border-bottom: none;
    padding: 0;
  }
  .info-table tbody tr {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .info-table th {
    font-size: 10px;
    margin-bottom: 4px;
    padding-right: 0;
  }
  .info-table td { font-size: 14px; }

  /* Map */
  .map-wrap { aspect-ratio: 4 / 3; }

  /* Service detail */
  .svc-detail { gap: 80px; }
  .svc-row { gap: 32px; }
  .svc-row__num { font-size: 56px; }
  .svc-row__title { font-size: 26px; }
  .svc-row__desc { font-size: 14.5px; }
  .svc-row__visual::after { transform: translate(10px, 10px); }

  /* Flow */
  .flow { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
  .flow-step__num { width: 60px; height: 60px; font-size: 20px; margin-bottom: 16px; }
  .flow-step__title { font-size: 14px; }

  /* Filters */
  .filters { gap: 18px 24px; margin-bottom: 56px; }

  /* Channels */
  .channels { grid-template-columns: 1fr; gap: 16px; }
  .channel { padding: 36px 24px; }
  .channel__main { font-size: 26px; }

  /* Form */
  .form { padding: 32px 20px; }
  .form__row { margin-bottom: 28px; }
  .form__row input, .form__row select, .form__row textarea { font-size: 16px; padding: 12px 0; }
  .form__row textarea { min-height: 140px; }
  .form__check { align-items: flex-start; }
  .form__check input[type="checkbox"] { margin-top: 4px; flex-shrink: 0; }
  .form__check label { align-items: flex-start !important; }

  /* CTA */
  .cta { padding: 80px 0; }
  .cta__title { line-height: 1.7; }
  .cta__btns { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta__btns .btn { width: 100%; }
  .cta::before { width: 320px; height: 320px; top: -100px; right: -100px; }

  /* Footer */
  .footer { padding: 64px 0 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .footer__top > div:first-child { grid-column: auto; }
  .footer__bottom { padding-top: 24px; flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- xs : <480 (small phone) ---------- */
@media (max-width: 480px) {
  body { font-size: 14.5px; }
  .container, .header__inner { padding: 0 18px; }
  .section { padding: 60px 0; }

  .gnav__cta { display: none; }
  .menu-toggle { width: 40px; height: 40px; }

  .hero__layout { padding: calc(var(--header-h) + 56px) 0 48px; }
  .hero__title { font-size: clamp(30px, 10vw, 40px); }
  .hero__eyebrow { margin-bottom: 20px; }

  .section__title { font-size: clamp(26px, 7vw, 32px); }
  .section__title-en { font-size: 0.5em; }
  .page-hero__title { font-size: 34px; }

  .svc-cell { padding: 32px 22px; }
  .svc-cell__title { font-size: 20px; }
  .svc-merged__inner, .svc-merged__cta { padding: 32px 22px; }
  .svc-merged__cta-title { font-size: 22px; }

  .reason__num { font-size: 48px; margin-bottom: 16px; }
  .reason__title { font-size: 17px; }

  .work__title { font-size: 16px; }

  .greeting__title { font-size: 20px; }

  .svc-row__num { font-size: 48px; }
  .svc-row__title { font-size: 22px; }

  .flow { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .flow-step__num { width: 52px; height: 52px; font-size: 16px; }

  .channel { padding: 28px 20px; }
  .channel__title { font-size: 18px; }
  .channel__main { font-size: 22px; }

  .form { padding: 24px 16px; }

  .cta { padding: 64px 0; }
  .cta__title { font-size: 22px; }

  .footer__brand { font-size: 18px; }

  /* Tighten tags */
  .svc-tags { gap: 6px; }
  .svc-tags span { padding: 6px 10px; font-size: 10px; }
}

/* ---------- Touch device tweaks (no hover) ---------- */
@media (hover: none) {
  .work:hover .work__thumb img { transform: none; }
  .svc-cell:hover { background: var(--paper); }
}

/* ---------- Privacy Policy ---------- */
.policy {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text);
  letter-spacing: 0.04em;
}
.policy__intro {
  font-size: 15.5px;
  line-height: 2.1;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.policy__h2 {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.08em;
  margin-top: 56px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.policy p { margin-bottom: 16px; }
.policy a {
  color: var(--accent-dk);
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s var(--ease);
}
.policy a:hover { opacity: 0.7; }
.policy__list {
  padding-left: 24px;
  margin-bottom: 16px;
}
.policy__list li {
  list-style: disc;
  margin-bottom: 6px;
  padding-left: 4px;
}
.policy__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14.5px;
}
.policy__table th,
.policy__table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.85;
}
.policy__table th {
  width: 32%;
  font-family: var(--ff-num);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dk);
  font-weight: 500;
}
.policy__date {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 2;
  text-align: right;
  letter-spacing: 0.06em;
}
@media (max-width: 640px) {
  .policy { font-size: 14px; }
  .policy__h2 { font-size: 18px; margin-top: 40px; }
  .policy__table th,
  .policy__table td { padding: 10px 12px; font-size: 13px; }
  .policy__table th { width: 40%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__scroll::after { animation: none; }
}
