/* ==========================================================================
   大幸緑化 — Modern editorial redesign
   ========================================================================== */

:root {
  /* Tweakable accent */
  --accent: oklch(0.42 0.07 145);     /* moss green default */
  --accent-soft: color-mix(in oklch, var(--accent) 14%, var(--paper));
  --accent-ink: color-mix(in oklch, var(--accent) 70%, oklch(0.20 0.01 145));

  /* Tones */
  --paper: oklch(0.97 0.01 85);        /* warm ivory */
  --paper-2: oklch(0.94 0.018 85);     /* soft sand */
  --paper-3: oklch(0.90 0.02 85);
  --ink: oklch(0.20 0.01 145);
  --ink-2: oklch(0.34 0.01 145);
  --ink-3: oklch(0.52 0.01 145);
  --line: oklch(0.86 0.012 85);

  /* Type */
  --serif: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --display: 'Cormorant Garamond', 'Shippori Mincho B1', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Layout */
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1320px;

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

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ----- Type scale ------------------------------------------------------- */
.eyebrow {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 14px;
  margin-bottom: 3px;
}

.kicker {
  font-family: var(--display);
  font-size: clamp(72px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
}
.kicker em {
  font-style: italic;
  color: var(--accent);
}

.h-display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin: 0;
}
.h-section {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin: 0;
}
.h-card {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.04em;
  margin: 0;
}

.lede {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 60ch;
}

.label {
  font-family: var(--display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ink-3);
}

.num {
  font-family: var(--display);
  font-feature-settings: "lnum" 1;
}

/* ----- Layout helpers --------------------------------------------------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-wide { max-width: 1600px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.stack-xs > * + * { margin-top: 8px; }
.stack-sm > * + * { margin-top: 16px; }
.stack-md > * + * { margin-top: 24px; }
.stack-lg > * + * { margin-top: 40px; }

.section {
  padding-top: clamp(80px, 10vw, 160px);
  padding-bottom: clamp(80px, 10vw, 160px);
}
.section-tight {
  padding-top: clamp(56px, 7vw, 112px);
  padding-bottom: clamp(56px, 7vw, 112px);
}

/* ----- Header ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in oklch, var(--line) 50%, transparent);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 32px color-mix(in oklch, var(--ink) 8%, transparent);
}
.site-header.nav-is-open {
  background: var(--paper);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand__mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-self: center;
  display: block;
  object-fit: contain;
  /* Re-tint the green PNG using the live --accent token so the
     mark follows the theme tweak (moss / evergreen / ink). */
  background-color: var(--accent);
  -webkit-mask: url("../img/logo-mark.png") center / contain no-repeat;
          mask: url("../img/logo-mark.png") center / contain no-repeat;
}
.site-footer .brand__mark {
  background-color: #ffffff;
}
.brand__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--ink);
}
.brand__en {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.nav-primary {
  display: flex;
  gap: clamp(14px, 2vw, 32px);
  align-items: center;
  justify-content: center;
}
.nav-primary a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  position: relative;
  padding: 6px 2px;
  transition: color .25s var(--ease);
}
.nav-primary a:hover, .nav-primary a.is-active {
  color: var(--accent);
}
.nav-primary a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .3s var(--ease), left .3s var(--ease);
}
.nav-primary a:hover::after, .nav-primary a.is-active::after {
  width: 100%; left: 0;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.contact-pill:hover { background: var(--ink); color: var(--paper); }
.contact-pill__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 22%, transparent);
}

.menu-toggle { display: none; }

@media (max-width: 960px) {
  /* 4-column explicit grid: brand | space | contact-icon | hamburger */
  .site-header__inner { grid-template-columns: auto 1fr auto auto; gap: 12px; }

  /* Full-screen dark overlay — header z:50 floats above it */
  .nav-primary {
    position: fixed;
    inset: 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(80px, 14vh, 140px) clamp(28px, 8vw, 80px) clamp(40px, 6vh, 80px);
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transform: none;
    transition: opacity .38s var(--ease);
    border-top: none;
    z-index: 49;
    overflow-y: auto;
    counter-reset: nav-count;
  }
  .nav-primary.is-open {
    opacity: 1;
    pointer-events: all;
  }

  /* Links: large serif, ivory on dark, numbered */
  .nav-primary a {
    font-family: var(--serif);
    font-size: clamp(26px, 5.5vw, 44px);
    padding: 13px 0;
    width: 100%;
    max-width: 520px;
    border-bottom: 1px solid color-mix(in oklch, var(--paper) 10%, transparent);
    color: color-mix(in oklch, var(--paper) 75%, transparent);
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    counter-increment: nav-count;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .38s var(--ease), transform .38s var(--ease), color .22s var(--ease);
  }
  /* Auto-number each link */
  .nav-primary a::before {
    content: "0" counter(nav-count);
    font-family: var(--display);
    font-style: italic;
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--accent);
    opacity: 0.9;
    min-width: 26px;
    flex-shrink: 0;
  }
  /* Remove desktop underline animation inside overlay */
  .nav-primary a::after { display: none; }
  .nav-primary a:hover,
  .nav-primary a.is-active { color: var(--paper); }
  .nav-primary a.is-active { color: var(--accent); }

  /* Staggered entrance */
  .nav-primary.is-open a { opacity: 1; transform: none; }
  .nav-primary.is-open a:nth-child(1) { transition-delay: 0.06s; }
  .nav-primary.is-open a:nth-child(2) { transition-delay: 0.11s; }
  .nav-primary.is-open a:nth-child(3) { transition-delay: 0.16s; }
  .nav-primary.is-open a:nth-child(4) { transition-delay: 0.21s; }
  .nav-primary.is-open a:nth-child(5) { transition-delay: 0.26s; }
  .nav-primary.is-open a:nth-child(6) { transition-delay: 0.31s; }
  .nav-primary.is-open a:nth-child(7) { transition-delay: 0.36s; }

  /* Hamburger button */
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    grid-column: 4;
    transition: border-color .3s var(--ease);
  }
  .menu-toggle__bar {
    width: 18px; height: 1px; background: var(--ink);
    position: relative;
    transition: background .3s var(--ease);
  }
  .menu-toggle__bar::before,
  .menu-toggle__bar::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: var(--ink);
    transition: transform .35s var(--ease);
  }
  .menu-toggle__bar::before { top: -6px; }
  .menu-toggle__bar::after  { top: 6px; }

  /* Morph to × when open */
  .menu-toggle.is-open .menu-toggle__bar { background: transparent; }
  .menu-toggle.is-open .menu-toggle__bar::before { transform: rotate(45deg) translate(0, 6px); }
  .menu-toggle.is-open .menu-toggle__bar::after  { transform: rotate(-45deg) translate(0, -6px); }

  .contact-pill__text { display: none; }
  .contact-pill { padding: 10px; grid-column: 3; }
  .hero__lede br { display: none; }
}

/* ----- Hero (home) ------------------------------------------------------ */
.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--paper);
  overflow: hidden;
}
.hero__copy {
  position: relative;
  padding: clamp(40px, 7vw, 110px) clamp(28px, 5vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}
.hero__since {
  position: absolute;
  top: clamp(28px, 4vw, 60px);
  left: clamp(28px, 5vw, 90px);
  display: flex;
  gap: 16px;
  align-items: center;
}
.hero__since-line { width: 80px; height: 1px; background: var(--ink-3); }
.hero__since-text {
  font-family: var(--display); font-style: italic;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 12px; color: var(--ink-3);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6.2vw, 96px);
  line-height: 1.18;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--ink);
}
.hero__title .accent { color: var(--accent); font-style: normal; }
.hero__title .stroke {
  -webkit-text-stroke: 1px var(--ink);
  color: transparent;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
}

.hero__lede { margin-top: 36px; }

.hero__meta {
  margin-top: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(18px, 3vw, 48px);
  align-items: end;
}
.hero__meta dt {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.hero__meta dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero__meta dd .unit { font-size: 0.55em; color: var(--ink-3); margin-left: 4px; letter-spacing: 0.1em; }

/* License text: slightly smaller than other hero meta numbers for visual alignment */
.hero__meta--license dd {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  line-height: 1.25;
}

.hero__media {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 50%;
  animation: heroPan 24s ease-in-out infinite alternate;
  will-change: transform, object-position;
}
@keyframes heroPan {
  0%   { object-position: 0% 50%;   transform: scale(1.08); }
  50%  { object-position: 50% 50%;  transform: scale(1.04); }
  100% { object-position: 100% 50%; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none; }
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 60%, color-mix(in oklch, var(--ink) 35%, transparent));
  pointer-events: none;
}
.hero__caption {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: var(--paper);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  z-index: 2;
}

.hero__scroll {
  position: absolute;
  left: clamp(28px, 5vw, 90px);
  bottom: clamp(24px, 3vw, 48px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  z-index: 3;
}
.hero__scroll-line {
  width: 60px; height: 1px;
  background: var(--ink-3);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute; left: -60%; top: 0; height: 100%; width: 60%;
  background: var(--ink);
  animation: scrollIndicator 2.4s var(--ease) infinite;
}
@keyframes scrollIndicator {
  0% { left: -60%; }
  60% { left: 100%; }
  100% { left: 100%; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__copy { padding: 100px 24px 56px; min-height: 80vh; }
  .hero__media { aspect-ratio: 4/3; }
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero__meta--license { grid-column: 1 / -1; }
}

/* ----- Marquee (decorative) -------------------------------------------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  padding: 26px 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 64px;
  animation: marquee 50s linear infinite;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--ink-2);
  letter-spacing: 0.05em;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee__track span::after {
  content: "✦";
  color: var(--accent);
  font-size: 0.75em;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ----- Reveal animation ------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal-stagger.is-in > * {
  opacity: 1;
  transform: none;
}
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 400ms; }

/* ----- Section header --------------------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head__num {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 18px; }
}

/* ----- Services list (home) -------------------------------------------- */
.services { background: var(--paper); }

.svc-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.1fr 220px;
  gap: clamp(20px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: padding .4s var(--ease);
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row__num {
  font-family: var(--display);
  font-style: italic;
  color: var(--ink-3);
  font-size: 18px;
  letter-spacing: 0.1em;
}
.svc-row__title {
  display: flex; flex-direction: column; gap: 6px;
}
.svc-row__title h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.2;
  transition: color .35s var(--ease), transform .5s var(--ease);
}
.svc-row__title .en {
  font-family: var(--display);
  font-style: italic;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}
.svc-row__desc {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.85;
}
.svc-row__thumb {
  width: 220px; height: 140px;
  overflow: hidden;
  position: relative;
  border-radius: 2px;
  filter: grayscale(0.15);
  transition: filter .5s var(--ease), transform .5s var(--ease);
}
.svc-row__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.svc-row__arrow {
  position: absolute;
  right: clamp(20px, 3vw, 48px);
  top: 50%;
  transform: translate(40px, -50%);
  font-family: var(--display); font-style: italic;
  font-size: 14px; letter-spacing: 0.18em;
  color: var(--accent);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
  pointer-events: none;
}

.svc-row:hover .svc-row__title h3 { color: var(--accent); transform: translateX(8px); }
.svc-row:hover .svc-row__thumb { filter: grayscale(0); }
.svc-row:hover .svc-row__thumb img { transform: scale(1.06); }

@media (max-width: 900px) {
  .svc-row {
    grid-template-columns: 40px 1fr;
    grid-template-areas:
      "num title"
      ".   thumb"
      ".   desc";
    gap: 16px 20px;
  }
  .svc-row__num { grid-area: num; align-self: start; padding-top: 8px; }
  .svc-row__title { grid-area: title; }
  .svc-row__thumb { grid-area: thumb; width: 100%; height: 200px; }
  .svc-row__desc { grid-area: desc; }
}

/* ----- Customer Voice --------------------------------------------------- */
.voice { background: var(--paper-2); }
.voice__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 72px);
}
.voice__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
}
.voice__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.voice__media:hover img { transform: scale(1.03); }
.voice__body {
  position: relative;
  padding: clamp(24px, 3vw, 48px) 0;
}
.voice__mark {
  font-family: var(--display);
  font-size: clamp(80px, 10vw, 140px);
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.18;
  position: absolute;
  top: 0;
  left: -10px;
  pointer-events: none;
  user-select: none;
}
.voice__quote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0;
  position: relative;
}
.voice__attr {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--ink-3);
}
.voice__attr-line { width: 40px; height: 1px; background: var(--accent); flex-shrink: 0; }

@media (max-width: 900px) {
  .voice__card { grid-template-columns: 1fr; }
  .voice__media { aspect-ratio: 16/9; }
}

/* ----- Process ---------------------------------------------------------- */
.process {
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.process__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process__step {
  padding: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 28px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  background: var(--paper-2);
  transition: background .3s var(--ease);
}
.process__step:last-child { border-right: none; }
.process__step:hover { background: var(--paper); }

.process__num {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.process__step h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.4;
}
.process__step p {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.85;
}
.process__step .icon {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  margin-top: auto;
  color: var(--ink);
}
@media (max-width: 1100px) {
  .process__grid { grid-template-columns: repeat(3, 1fr); }
  .process__step:nth-child(3n) { border-right: none; }
  .process__step:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .process__grid { grid-template-columns: 1fr 1fr; }
  .process__step { border-right: 1px solid var(--line); }
  .process__step:nth-child(2n) { border-right: none; }
  .process__step:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
}

/* ----- Works gallery ---------------------------------------------------- */
.works { background: var(--paper); }
.works__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 80px;
  gap: 16px;
}
.works__item {
  position: relative;
  overflow: hidden;
  background: var(--paper-3);
}
.works__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter .5s var(--ease);
  filter: saturate(0.9);
}
.works__item:hover img { transform: scale(1.04); filter: saturate(1.1); }
.works__item__caption {
  position: absolute;
  left: 18px; bottom: 18px; right: 18px;
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: end;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.works__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in oklch, var(--ink) 70%, transparent), transparent 55%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.works__item:hover::after { opacity: 1; }
.works__item:hover .works__item__caption { opacity: 1; transform: none; }
.works__item__caption strong {
  font-family: var(--serif); font-weight: 500;
  font-size: 16px; letter-spacing: 0.04em;
}
.works__item__caption .label { color: color-mix(in oklch, var(--paper) 70%, transparent); }

/* size patterns */
.works__item--lg { grid-column: span 7; grid-row: span 6; }
.works__item--md { grid-column: span 5; grid-row: span 4; }
.works__item--sm { grid-column: span 5; grid-row: span 2; }
.works__item--wide { grid-column: span 6; grid-row: span 4; }
.works__item--tall { grid-column: span 4; grid-row: span 5; }
.works__item--mid { grid-column: span 4; grid-row: span 3; }

@media (max-width: 800px) {
  .works__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 8px; }
  .works__item--lg, .works__item--md, .works__item--sm, .works__item--wide, .works__item--tall, .works__item--mid {
    grid-column: span 1; grid-row: span 2;
  }
}

/* ----- Manifesto -------------------------------------------------------- */
.manifesto {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.manifesto__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.manifesto__media {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}
.manifesto__media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.85) contrast(1.05);
  animation: heroPan 32s ease-in-out infinite alternate;
  will-change: transform, object-position;
}
@media (prefers-reduced-motion: reduce) {
  .page-hero img,
  .manifesto__media img { animation: none; }
}
.manifesto__quote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin: 0;
}
.manifesto__quote .accent { color: var(--accent); }
.manifesto__attr {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--display);
  font-style: italic;
  letter-spacing: 0.12em;
  color: color-mix(in oklch, var(--paper) 65%, transparent);
  font-size: 13px;
}
.manifesto__attr-line { width: 40px; height: 1px; background: var(--accent); }

@media (max-width: 900px) {
  .manifesto__inner { grid-template-columns: 1fr; }
  .manifesto__media { aspect-ratio: 4/3; }
}

/* ----- Stats ribbon ---------------------------------------------------- */
.stats {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats__item {
  padding: clamp(36px, 4vw, 64px) clamp(20px, 2.5vw, 40px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stats__item:last-child { border-right: none; }
.stats__num {
  font-family: var(--display);
  font-size: clamp(48px, 5.6vw, 88px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 6px;
}
.stats__num .unit {
  font-size: 0.4em; color: var(--ink-3); letter-spacing: 0.08em;
}
.stats__label {
  font-family: var(--display);
  font-style: italic;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ink-3);
}
.stats__sub {
  font-size: 13px;
  color: var(--ink-2);
}
@media (max-width: 800px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stats__item { border-right: 1px solid var(--line); }
  .stats__item:nth-child(2n) { border-right: none; }
  .stats__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ----- News ------------------------------------------------------------ */
.news { background: var(--paper); }
.news__list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
}
.news__item {
  display: grid;
  grid-template-columns: 160px 120px 1fr 24px;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .3s var(--ease);
}
.news__item:hover { padding-left: 12px; }
.news__date {
  font-family: var(--display);
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-size: 14px;
}
.news__tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-family: var(--display);
  width: fit-content;
}
.news__title {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.news__arrow {
  color: var(--ink-3);
  font-family: var(--display);
  font-size: 14px;
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.news__item:hover .news__arrow { transform: translateX(6px); color: var(--accent); }

@media (max-width: 700px) {
  .news__item { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .news__arrow { display: none; }
}

/* ----- CTA ribbon ------------------------------------------------------ */
.cta {
  background: var(--accent);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta__inner {
  padding: clamp(64px, 8vw, 120px) 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.cta h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.3;
  letter-spacing: 0.03em;
  margin: 0;
}
.cta__actions { display: flex; flex-direction: column; gap: 14px; }
.cta__phone {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: 0.02em;
  line-height: 1;
}
.cta__phone .label { display: block; font-size: 12px; color: #fff; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.cta__buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
  text-transform: none;
}
.btn--inverse { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--inverse:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ghost-light:hover { background: var(--paper); color: var(--accent); }

@media (max-width: 800px) {
  .cta__inner { grid-template-columns: 1fr; }
}

/* ----- Footer --------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: color-mix(in oklch, var(--paper) 80%, transparent);
  padding: clamp(64px, 7vw, 96px) 0 32px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 64px;
  border-bottom: 1px solid color-mix(in oklch, var(--paper) 18%, transparent);
}
.site-footer h5 {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--paper) 55%, transparent);
  margin: 0 0 18px;
  font-weight: 400;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: color-mix(in oklch, var(--paper) 80%, transparent); transition: color .25s var(--ease); }
.site-footer a:hover { color: var(--accent); }
.site-footer__brand .brand__name { color: var(--paper); }
.site-footer__brand .brand__en { color: color-mix(in oklch, var(--paper) 50%, transparent); }
.ig-link { display: inline-flex; align-items: center; gap: 8px; }
.ig-icon { width: 16px; height: 16px; flex: 0 0 auto; display: block; }
.site-footer__addr {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.9;
  color: color-mix(in oklch, var(--paper) 70%, transparent);
}
.site-footer__addr strong { color: var(--paper); font-weight: 500; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--paper) 50%, transparent);
}
@media (max-width: 800px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* ----- Page hero (interior pages) -------------------------------------- */
.page-hero {
  position: relative;
  height: clamp(380px, 56vh, 560px);
  overflow: hidden;
  background: var(--ink);
}
.page-hero img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.9) brightness(0.9);
  animation: heroPan 28s ease-in-out infinite alternate;
  will-change: transform, object-position;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in oklch, var(--ink) 18%, transparent), color-mix(in oklch, var(--ink) 50%, transparent));
}
.page-hero__inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(40px, 5vw, 80px) var(--gutter);
  max-width: 1600px;
  margin: 0 auto;
  color: var(--paper);
}
.page-hero__crumb {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--paper) 70%, transparent);
  margin-bottom: 14px;
  display: flex; gap: 8px;
}
.page-hero__crumb a { color: inherit; }
.page-hero__crumb a:hover { color: var(--paper); }
.page-hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin: 0;
}
.page-hero__en {
  margin-top: 12px;
  font-family: var(--display);
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 14px;
  color: color-mix(in oklch, var(--paper) 70%, transparent);
}

/* ----- Project gallery (service pages) -------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}
.project-card figure { margin: 0; }
.project-card__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--paper-3);
  position: relative;
}
.project-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card figcaption {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.project-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.project-card__num {
  font-family: var(--display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
@media (max-width: 800px) {
  .project-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* ----- Spec table (company / saiyo) ------------------------------------ */
.spec {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-top: 1px solid var(--line);
}
.spec__row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  align-items: start;
}
.spec__row dt {
  font-family: var(--display);
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 4px;
}
.spec__row dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.03em;
  line-height: 1.85;
  color: var(--ink);
}
.spec__row dd small { display: block; font-family: var(--sans); font-size: 13.5px; color: var(--ink-2); margin-top: 4px; letter-spacing: 0.02em; }
@media (max-width: 720px) {
  .spec { grid-template-columns: 1fr; }
  .spec__row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
}

/* ----- Service intro panel (interior pages) --------------------------- */
.service-intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.service-intro__num {
  font-family: var(--display);
  font-size: clamp(80px, 9vw, 140px);
  line-height: 0.9;
  color: var(--accent);
  font-style: italic;
}
.service-intro__sub {
  margin-top: 14px;
  font-family: var(--display);
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ink-3);
}
@media (max-width: 800px) {
  .service-intro { grid-template-columns: 1fr; }
}

.feature-list {
  list-style: none; padding: 0; margin: 24px 0 0;
}
.feature-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.feature-list li::before {
  content: "—";
  color: var(--accent);
  font-family: var(--display);
  font-size: 18px;
}

/* ----- Form (contact) -------------------------------------------------- */
.contact-form {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(20px, 3vw, 48px) clamp(32px, 4vw, 64px);
}
.contact-form__row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  padding-top: 24px;
}
.contact-form__row:first-of-type { border-top: 1px solid var(--line); }
.contact-form__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form__label .ja {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.04em;
}
.contact-form__label .en {
  font-family: var(--display);
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--ink-3);
}
.contact-form__label .req {
  display: inline-block;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--display);
  font-size: 10px;
  padding: 2px 8px;
  letter-spacing: 0.18em;
  width: fit-content;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper-2);
}
.contact-form .row-double {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.contact-form .options {
  display: flex; flex-wrap: wrap; gap: 16px;
}
.contact-form .options label {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 15px;
}
.contact-form__submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: end;
  margin-top: 24px;
}
.btn-submit {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 20px 48px;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background .3s var(--ease);
  display: inline-flex; align-items: center; gap: 14px;
}
.btn-submit:hover { background: var(--accent); }
.btn-submit::after {
  content: "→";
  font-family: var(--display);
}
@media (max-width: 720px) {
  .contact-form { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; gap: 14px; }
}

/* ----- Tweaks panel (mini) -------------------------------------------- */
.tweaks-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 18px 60px -20px rgba(0,0,0,0.25);
  font-family: var(--sans);
  font-size: 13px;
  display: none;
  flex-direction: column;
  gap: 14px;
  min-width: 240px;
}
.tweaks-panel.is-open { display: flex; }
.tweaks-panel header { display: flex; justify-content: space-between; align-items: center; }
.tweaks-panel header h6 {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--ink-3);
}
.tweaks-panel__close {
  background: none; border: none; cursor: pointer; color: var(--ink-3);
  font-family: var(--display); font-size: 18px;
}
.tweaks-row {
  display: flex; flex-direction: column; gap: 8px;
}
.tweaks-row label {
  font-family: var(--display);
  font-style: italic;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--ink-3);
}
.swatches { display: flex; gap: 10px; }
.swatch {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: transform .25s var(--ease);
}
.swatch:hover { transform: scale(1.06); }
.swatch.is-active::after {
  content: ""; position: absolute; inset: -5px;
  border: 1px solid var(--ink); border-radius: 50%;
}

/* ----- Page top button ------------------------------------------------- */
.pagetop {
  position: fixed; right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  background: var(--ink); color: var(--paper);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 14px;
  text-decoration: none;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 30;
}
.pagetop.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* ==========================================================================
   Mobile responsiveness — refinements for tablet and phone
   ========================================================================== */

/* --- Tablet / large phone (≤960px) refinements on top of existing rules --- */
@media (max-width: 960px) {
  /* Tighten hero copy: 80vh is excessive when content is stacked */
  .hero__copy { min-height: auto; padding-top: 88px; padding-bottom: 56px; }
  .hero__since { top: 22px; left: 24px; }
  .hero__scroll { left: 24px; bottom: 24px; }

  /* Give the sticky header a tighter height */
  .site-header__inner { padding-top: 14px; padding-bottom: 14px; }
  /* nav-primary top offset: 44px mark + 14px×2 padding = 72px header here */
}

/* --- Small phone (≤720px) ------------------------------------------------- */
@media (max-width: 720px) {
  /* Brand: shrink mark and hide English subtitle to save horizontal space */
  .brand { gap: 10px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 17px; }
  .brand__en { display: none; }

  /* Ensure menu-toggle always sits in the fourth grid column on phone */
  .menu-toggle { grid-column: 4; }

  /* Hero title slightly smaller to breathe on 360px screens */
  .hero__title { font-size: clamp(32px, 9.5vw, 52px); }
  .hero__lede { font-size: 14.5px; line-height: 1.85; }
  /* Line breaks in lede cause awkward blank gaps on narrow screens */
  .hero__lede br { display: none; }
  .hero__meta { gap: 18px 20px; }
  /* Caption: two long spans side-by-side collide on narrow widths — stack them */
  .hero__caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    font-size: 10px;
  }
  .hero__since-line { width: 48px; }
  .hero__scroll-line { width: 40px; }

  /* Marquee: lighter on small screens */
  .marquee { padding: 18px 0; }
  .marquee__track { gap: 40px; font-size: 18px; animation-duration: 40s; }
  .marquee__track span { gap: 40px; }

  /* Section spacing — reduce to feel less cavernous on phones */
  .section { padding-top: clamp(56px, 14vw, 96px); padding-bottom: clamp(56px, 14vw, 96px); }
  .section-tight { padding-top: clamp(40px, 10vw, 72px); padding-bottom: clamp(40px, 10vw, 72px); }
  .section-head { gap: 16px; margin-bottom: clamp(28px, 7vw, 56px); }

  /* Manifesto quote: reduce size and line-height on phones */
  .manifesto__quote { font-size: clamp(20px, 5.8vw, 30px); line-height: 1.5; }
  .manifesto__inner { gap: 32px; }

  /* Page hero: shorter on phones */
  .page-hero { height: clamp(260px, 48vh, 420px); }
  .page-hero__title { font-size: clamp(34px, 8.5vw, 56px); }

  /* CTA: stack phone number + buttons more naturally on narrow screens */
  .cta__phone { font-size: clamp(30px, 8.5vw, 48px); }
  .cta__phone .label { font-size: 11px; }
  .cta__buttons { flex-direction: column; align-items: stretch; }
  .cta__buttons .btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 14px; }

  /* Footer: single column and stacked bottom row */
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 40px; }
  .site-footer__brand { grid-column: 1; }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Pagetop: move up so it clears the tweaks-panel when that opens */
  .pagetop { right: 16px; bottom: 72px; width: 42px; height: 42px; font-size: 13px; }
  /* Tweaks panel: full-width strip at bottom on phones */
  .tweaks-panel { right: 12px; bottom: 12px; left: 12px; min-width: 0; }
}

/* --- Compact phone (≤480px) ----------------------------------------------- */
@media (max-width: 480px) {
  /* Hero title: sensible minimum so it stays readable */
  .hero__title { font-size: clamp(30px, 10vw, 44px); line-height: 1.2; }
  /* Hero meta: three stat blocks side-by-side at 360px → stack vertically */
  .hero__meta { grid-template-columns: 1fr; gap: 14px; }
  .hero__meta dd { font-size: 24px; }
  .hero__since-text { font-size: 10px; letter-spacing: 0.12em; }

  /* Process: 2-col at 6 items creates cramped 3×2 on tiny screens → 1 col */
  .process__grid { grid-template-columns: 1fr; }
  .process__step { border-right: none !important; border-bottom: 1px solid var(--line); }
  .process__step:last-child { border-bottom: none; }
  /* Reset the nth-child rules from wider breakpoints that would re-add borders */
  .process__step:nth-child(3n),
  .process__step:nth-child(2n),
  .process__step:nth-child(-n+3),
  .process__step:nth-child(-n+4) { border-right: none; border-bottom: 1px solid var(--line); }

  /* Stats: 2-col → 1-col */
  .stats__grid { grid-template-columns: 1fr; }
  .stats__item { border-right: none !important; border-bottom: 1px solid var(--line); padding: 28px var(--gutter); }
  .stats__item:last-child { border-bottom: none; }

  /* Works grid: shorter row height on tiny screens */
  .works__grid { grid-auto-rows: 110px; gap: 6px; }

  /* Project gallery: 2-col becomes very narrow → single column */
  .project-grid { grid-template-columns: 1fr; }

  /* News list: tighter */
  .news__title { font-size: 15px; }
  .news__item { padding: 14px 0; }
  .news__date { font-size: 12px; }

  /* Page hero: even tighter height on smallest phones */
  .page-hero { height: clamp(220px, 42vh, 340px); }

  /* Spec table rows: tighten padding */
  .spec__row { padding: 14px 0; }

  /* Display headings: pin a sensible minimum */
  .h-display { font-size: clamp(26px, 7.5vw, 40px); }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0.08 0.01 145 / 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lb-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.lb-inner {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lb-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
  display: block;
  transition: opacity 0.18s var(--ease);
}
.lb-img.is-loading { opacity: 0; }
.lb-caption {
  font-family: var(--display);
  font-style: italic;
  color: oklch(0.82 0.01 85);
  letter-spacing: 0.08em;
  font-size: 15px;
  margin: 0;
}
.lb-counter {
  position: absolute;
  top: -32px;
  right: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: oklch(0.52 0.01 145);
  font-family: var(--mono);
}
.lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid oklch(0.30 0.01 145);
  border-radius: 50%;
  background: none;
  color: oklch(0.80 0.01 85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s;
  z-index: 2001;
}
.lb-close:hover { border-color: var(--accent); color: var(--accent); }
.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid oklch(0.30 0.01 145);
  border-radius: 50%;
  background: none;
  color: oklch(0.80 0.01 85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s;
  z-index: 2001;
}
.lb-arrow:hover { border-color: var(--accent); color: var(--accent); }
.lb-arrow--prev { left: 20px; }
.lb-arrow--next { right: 20px; }
.lb-arrow:disabled { opacity: 0.2; pointer-events: none; }
@media (max-width: 600px) {
  .lb-arrow--prev { left: 8px; }
  .lb-arrow--next { right: 8px; }
  .lb-arrow { width: 40px; height: 40px; font-size: 20px; }
}

/* ==========================================================================
   SEO / customer-attraction additions — residential entry, related, FAQ,
   service area, sub-services, sticky mobile call bar
   ========================================================================== */

/* ----- Residential entry grid (homepage) -------------------------------- */
.resi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.resi-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.resi-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.resi-card__num {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.resi-card strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}
.resi-card span:last-child {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ----- Related services grid (service pages) ---------------------------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.related-card:hover { border-color: var(--accent); }
.related-card__num {
  font-family: var(--display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.related-card strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
}
.related-card span:last-child {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ----- FAQ list --------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
}
.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item dt {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 12px;
  line-height: 1.55;
}
.faq-item dt::before {
  content: "Q. ";
  color: var(--accent);
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  margin-right: 6px;
}
.faq-item dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.85;
}
.faq-item dd a { color: var(--accent); text-decoration: underline; }

/* ----- Service area grid ------------------------------------------------ */
.area__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.area__grid h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.area__grid p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.85;
}

/* ----- Sub-services grid (syokusai.html) -------------------------------- */
.subservice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.subservice {
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  scroll-margin-top: 100px;
}
.subservice h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 12px 0;
  color: var(--ink);
}
.subservice p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.8;
}
.subservice p a { color: var(--accent); text-decoration: underline; }

/* ----- Sticky mobile call bar ------------------------------------------ */
.mobile-call-bar { display: none; }
@media (max-width: 720px) {
  .mobile-call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--accent);
    color: var(--paper);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    padding: 14px 12px;
    text-decoration: none;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
  }
  .mobile-call-bar__label {
    font-family: var(--display);
    font-style: italic;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
  }
  .mobile-call-bar__num {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  .mobile-call-bar__sub {
    font-size: 11.5px;
    opacity: 0.85;
  }
  body { padding-bottom: 70px; }
  .pagetop { bottom: 82px; }
}

