/* =========================================================
   株式会社PURE — Corporate Website
   Editorial minimal aesthetic
   ========================================================= */

:root {
  --bg:        #f6f4ef;
  --bg-soft:   #ece8df;
  --bg-warm:   #e4ddce;
  --ink:       #1a1a1a;
  --ink-soft:  #2b2b2b;
  --muted:     #8a857c;
  --line:      #cfc8b9;
  --line-soft: #e3dcce;
  --accent:    #5c5547;
  --beige:     #d4cdbf;
  --paper:     #fbfaf6;
  --mint:      #cfdcd6;  /* 看板の淡いミント色 */
  --mint-soft: #e3ece7;
  --hot:       #c9442f;  /* お見積り無料！の訴求カラー */

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --mono:  "JetBrains Mono", "Menlo", monospace;
  --en:    "Inter", "Helvetica Neue", sans-serif;

  --maxw: 1440px;
  --pad:  clamp(20px, 5vw, 80px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "palt";
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ============== UTILITIES ============== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--muted);
  display: inline-block;
}

.section-num {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 500;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.h-jp {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.h-en {
  font-family: var(--en);
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.fade-up.in {
  opacity: 1;
  transform: none;
}
.fade-up.d1 { transition-delay: .1s; }
.fade-up.d2 { transition-delay: .2s; }
.fade-up.d3 { transition-delay: .3s; }
.fade-up.d4 { transition-delay: .4s; }

/* Image placeholder ------------------------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,.025) 0 1px,
      transparent 1px 14px),
    var(--bg-soft);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 16px 14px 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.ph .ph-tag {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  z-index: 2;
}
.ph.has-photo { background: var(--ink); border-color: transparent; }
.ph.has-photo::after { display: none; }
.ph.has-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .9s var(--ease), filter .6s var(--ease);
}
.ph.has-photo .ph-tag {
  color: #fff;
  background: rgba(0,0,0,.4);
  padding: 4px 10px;
  backdrop-filter: blur(4px);
}
.work:hover .ph.has-photo > img { transform: scale(1.04); }

/* ============== HEADER ============== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(246,244,239,.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom-color: var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark { width: 64px; height: auto; color: var(--ink); }
.brand-text {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  padding-left: 14px;
  border-left: 1px solid var(--line);
  line-height: 1.4;
}
.brand-text strong { color: var(--ink); font-weight: 500; display: block; letter-spacing: 0.18em; }

.nav { display: flex; align-items: center; gap: 38px; }
.nav a {
  font-size: 12px;
  letter-spacing: 0.18em;
  font-family: var(--en);
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav a .ja {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width .35s var(--ease);
}
.nav a:hover::after { width: 100%; }

.nav-cta {
  margin-left: 8px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink);
  background: transparent;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  position: relative;
  padding: 0;
}
.menu-toggle span {
  position: absolute;
  left: 6px; right: 6px;
  height: 1px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .35s var(--ease), top .35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle.open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { top: 18px; transform: rotate(-45deg); }

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(120px, 18vh, 180px) var(--pad) clamp(60px, 8vh, 100px);
  display: grid;
  grid-template-columns: 1fr;
  align-content: end;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(207,220,214,.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(212,205,191,.3) 0%, transparent 65%),
    var(--bg);
}
.hero::before {
  /* Subtle horizontal rule echoing the storefront window */
  content: "";
  position: absolute;
  left: var(--pad); right: var(--pad);
  top: clamp(120px, 18vh, 180px);
  height: 1px;
  background: var(--line);
  opacity: .5;
  z-index: 1;
}

/* Huge background watermark logo — echoes the storefront window logo */
.hero-watermark {
  position: absolute;
  top: 50%;
  right: -4%;
  transform: translateY(-50%);
  width: 60%;
  max-width: 880px;
  color: var(--ink);
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}
.hero-watermark svg { width: 100%; height: auto; display: block; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg .ph {
  position: absolute;
  inset: 0;
  border: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(246,244,239,.55) 0%,
      rgba(246,244,239,.35) 25%,
      rgba(246,244,239,.65) 55%,
      rgba(246,244,239,.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-meta-left {
  max-width: 760px;
}
.hero-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 7.2vw, 108px);
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.hero-headline > span {
  display: block;
}
.hero-headline .small-dot {
  display: inline;
  font-size: 0.42em;
  vertical-align: 0.55em;
  margin-left: 0.04em;
  color: var(--muted);
}
.hero-sub {
  margin-top: 28px;
  max-width: 460px;
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
}

/* Hero category pills — 看板の黒ピル踏襲 */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.hero-pill {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 500;
  white-space: nowrap;
}

/* お見積り無料 — 看板の訴求バッジ */
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 22px 12px 18px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 24px;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.free-badge:hover { transform: translateY(-2px); background: var(--hot); }
.free-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hot);
  display: inline-block;
}
.free-badge:hover .dot { background: var(--bg); }
.free-badge .bang {
  display: inline-block;
  color: var(--hot);
  font-weight: 700;
  transform: translateY(-1px);
}
.free-badge:hover .bang { color: var(--bg); }
.hero-meta-right {
  text-align: right;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  line-height: 1.9;
}
.hero-meta-right strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 11px;
  margin-bottom: 10px;
  letter-spacing: 0.18em;
  font-family: var(--sans);
}
.hero-tel {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 8px;
  transition: color .3s var(--ease);
}
.hero-tel:hover { color: var(--hot); }
.hero-tel-sub {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.hero-scroll {
  margin-top: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--en);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 60px;
  height: 1px;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: 0; left: -30px;
  height: 1px; width: 30px;
  background: var(--ink);
  animation: scrollDot 2.4s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { left: -30px; }
  60%  { left: 60px; }
  100% { left: 60px; }
}

/* Decorative side meta */
.hero-side {
  position: absolute;
  top: 50%;
  left: var(--pad);
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-family: var(--en);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--muted);
  z-index: 2;
}

/* ============== SECTION SHELL ============== */
section {
  position: relative;
  padding: clamp(80px, 14vh, 180px) 0;
}
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  margin-bottom: 80px;
}
.section-head-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 10px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.03em;
}
.section-head h2 .en {
  display: block;
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 22px;
  text-transform: uppercase;
}

/* ============== ABOUT ============== */
.about {
  background: var(--bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 100px;
  align-items: start;
}
.about-text {
  padding-top: 10px;
}
.about-quote {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: 56px 48px 48px;
  position: sticky;
  top: 120px;
}
.quote-mark {
  font-family: var(--serif);
  font-size: 88px;
  line-height: 0.7;
  color: var(--muted);
  opacity: .45;
  margin-bottom: 8px;
  font-weight: 500;
}
.quote-body {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.7;
  letter-spacing: 0.06em;
  margin: 0 0 48px;
  font-weight: 500;
  color: var(--ink);
}
.about-text .lead {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.85;
  letter-spacing: 0.06em;
  margin-bottom: 40px;
  font-weight: 500;
}
.about-text p {
  font-size: 14.5px;
  line-height: 2.1;
  margin: 0 0 22px;
  color: var(--ink-soft);
}
.about-sig {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.about-sig-line { width: 50px; height: 1px; background: var(--ink); }
.about-sig-text { font-size: 13px; letter-spacing: 0.1em; }
.about-sig-text strong { font-family: var(--serif); font-weight: 500; font-size: 16px; display: block; margin-bottom: 2px; }
.about-sig-text span { color: var(--muted); font-size: 11px; letter-spacing: 0.16em; }

/* ============== SERVICES ============== */
.services {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.service {
  padding: 56px 48px;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  align-items: start;
  background: var(--paper);
  transition: background .5s var(--ease);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.service:nth-child(2n) { border-right: none; }
.service:hover { background: var(--bg-soft); }
.service:hover .service-num { color: var(--ink); }
.service-num {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 500;
  padding-top: 6px;
  transition: color .35s var(--ease);
}
.service-body h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.service-body .en-name {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-bottom: 18px;
  display: block;
  text-transform: uppercase;
}
.service-body p {
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,.4);
  border-radius: 999px;
}

/* ============== WORKS ============== */
.works {
  background: var(--bg);
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  row-gap: 32px;
}

.work-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: 40px 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: default;
  transition: background .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease);
  overflow: hidden;
  min-height: 320px;
}
.work-card::before {
  /* Subtle architectural blueprint line pattern */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 48px 100%,
    linear-gradient(0deg,  var(--line-soft) 1px, transparent 1px) 0 0 / 100% 48px;
  opacity: 0.5;
  pointer-events: none;
}
.work-card > * { position: relative; z-index: 1; }

.work-card:hover { background: var(--bg-soft); border-color: var(--line); transform: translateY(-2px); }

.wc-num {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 28px;
}
.wc-cat {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.wc-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin: 0 0 32px;
  color: var(--ink);
  flex-grow: 1;
}
.wc-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--en);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

/* layout patterns — same widths as before */
.work-card.w-7 { grid-column: span 7; }
.work-card.w-5 { grid-column: span 5; }
.work-card.w-4 { grid-column: span 4; }
.work-card.w-8 { grid-column: span 8; }
.work-card.w-6 { grid-column: span 6; }

.works-note {
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
}
.works-note-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hot);
  display: inline-block;
}
.works-more {
  margin-top: 32px;
  text-align: center;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 36px;
  border: 1px solid var(--ink);
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--ink);
  background: transparent;
  text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), padding .35s var(--ease);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); padding-right: 40px; }
.btn-ghost svg { transition: transform .35s var(--ease); }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ============== STRENGTHS ============== */
.strengths {
  background: var(--ink);
  color: var(--bg);
}
.strengths .eyebrow { color: rgba(255,255,255,.55); }
.strengths .eyebrow::before { background: rgba(255,255,255,.4); }
.strengths .section-head h2 { color: var(--bg); }
.strengths .section-head h2 .en { color: rgba(255,255,255,.5); }
.strengths .section-num { color: rgba(255,255,255,.4); }

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.strength {
  padding: 48px 0 0;
  border-top: 1px solid rgba(255,255,255,.18);
  position: relative;
}
.strength-num {
  font-family: var(--en);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,.4);
  margin-bottom: 28px;
  font-weight: 500;
}
.strength h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  color: var(--bg);
}
.strength p {
  font-size: 13.5px;
  line-height: 2;
  color: rgba(255,255,255,.7);
}
.strength-icon {
  position: absolute;
  top: 32px; right: 0;
  font-family: var(--en);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,.4);
}

/* ============== FLOW ============== */
.flow {
  background: var(--bg);
}
.flow-list {
  position: relative;
  padding-left: 40px;
}
.flow-list::before {
  content: "";
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.flow-step {
  display: grid;
  grid-template-columns: 1fr 2fr 1.5fr;
  gap: 60px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  align-items: start;
}
.flow-step:last-child { border-bottom: none; }
.flow-step::before {
  content: "";
  position: absolute;
  left: -40px; top: 56px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--ink);
}
.flow-step:hover::before { background: var(--ink); }
.flow-num {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
  padding-top: 8px;
}
.flow-num strong {
  font-family: var(--serif);
  display: block;
  font-size: 36px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-top: 6px;
}
.flow-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.flow-title .en {
  display: block;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 8px;
  text-transform: uppercase;
}
.flow-desc {
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-soft);
  padding-top: 10px;
}

/* ============== COMPANY ============== */
.company {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
}
.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.company-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line-soft);
}
.company-table tr {
  border-bottom: 1px solid var(--line-soft);
}
.company-table th,
.company-table td {
  text-align: left;
  vertical-align: top;
  padding: 22px 0;
  font-size: 13.5px;
  line-height: 1.85;
}
.company-table th {
  width: 32%;
  font-weight: 500;
  color: var(--muted);
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-right: 24px;
  padding-top: 26px;
}
.company-table th .ja {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin-top: 4px;
  text-transform: none;
  font-weight: 500;
}
.company-table td strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.company-map {
  position: relative;
}
.company-map .ph {
  aspect-ratio: 4 / 5;
  width: 100%;
}
.company-map iframe {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-soft);
  display: block;
  filter: grayscale(0.4) contrast(0.95);
  transition: filter .5s var(--ease);
}
.company-map iframe:hover { filter: none; }
.map-pin {
  position: absolute;
  top: 38%;
  left: 48%;
  width: 28px; height: 28px;
  margin: -14px;
  border-radius: 50%;
  background: rgba(26,26,26,.08);
  display: grid;
  place-items: center;
}
.map-pin::before, .map-pin::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.map-pin::before {
  width: 10px; height: 10px;
  background: var(--ink);
}
.map-pin::after {
  width: 28px; height: 28px;
  border: 1px solid var(--ink);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ============== CONTACT ============== */
.contact {
  background: var(--ink);
  color: var(--bg);
}
.contact .section-head h2 { color: var(--bg); }
.contact .section-head h2 .en { color: rgba(255,255,255,.5); }
.contact .eyebrow { color: rgba(255,255,255,.55); }
.contact .eyebrow::before { background: rgba(255,255,255,.4); }
.contact .section-num { color: rgba(255,255,255,.4); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
}
.contact-lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--bg);
  margin-bottom: 40px;
  font-weight: 500;
}
.contact-channels {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}
.channel {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.18);
  align-items: center;
}
.channel:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.channel-label {
  font-family: var(--en);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
}
.channel-value {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--bg);
}
.channel-sub {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.5);
  display: block;
  margin-top: 4px;
  font-family: var(--en);
}

/* form */
.contact-form {
  display: grid;
  gap: 22px;
}
.field { position: relative; }
.field label {
  display: block;
  font-family: var(--en);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.field label .req {
  display: inline-block;
  margin-left: 8px;
  font-size: 9px;
  color: #e6a87a;
  letter-spacing: 0.12em;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 0;
  letter-spacing: 0.04em;
  transition: border-color .3s var(--ease);
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--bg);
}
.field textarea { min-height: 100px; }
.field select option { color: var(--ink); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field-error {
  margin-top: 6px;
  font-size: 11px;
  color: #e6a87a;
  letter-spacing: 0.04em;
  min-height: 14px;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.field.invalid .field-error { opacity: 1; }
.field.invalid input,
.field.invalid textarea,
.field.invalid select {
  border-bottom-color: #e6a87a;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
}
.consent input { width: auto; appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 16px; height: 16px; border: 1px solid rgba(255,255,255,.4); position: relative; cursor: pointer; padding: 0;
  margin-top: 3px; transition: background .25s var(--ease);
}
.consent input:checked { background: var(--bg); }
.consent input:checked::after {
  content: ""; position: absolute; top: 2px; left: 5px;
  width: 4px; height: 8px;
  border: solid var(--ink);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.consent label {
  margin: 0;
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255,255,255,.7);
  letter-spacing: 0.04em;
  text-transform: none;
  cursor: pointer;
}
.consent a { text-decoration: underline; text-underline-offset: 3px; color: var(--bg); }

.btn-submit {
  margin-top: 12px;
  padding: 22px 0;
  background: var(--bg);
  color: var(--ink);
  border: none;
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background .3s var(--ease), color .3s var(--ease), letter-spacing .35s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
}
.btn-submit:hover { background: var(--beige); letter-spacing: 0.36em; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; letter-spacing: 0.32em; }
.btn-submit.success { background: #8fa088; color: var(--bg); }

/* ============== FOOTER ============== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 0 var(--pad);
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  padding: 100px 0 60px;
}
.footer-brand .brand-mark { color: var(--bg); width: 100px; }
.footer-brand p {
  margin: 22px 0 0;
  font-size: 12px;
  line-height: 2;
  color: rgba(255,255,255,.55);
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 12px;
}
.footer-col a {
  font-size: 13px;
  color: var(--bg);
  letter-spacing: 0.06em;
  transition: color .3s var(--ease);
}
.footer-col a:hover { color: var(--beige); }
.footer-col .sub { font-size: 11px; color: rgba(255,255,255,.5); display: block; margin-top: 2px; letter-spacing: 0.16em; font-family: var(--en); }

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,.4);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 980px) {
  .nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg); flex-direction: column; padding: 100px var(--pad); gap: 32px;
    align-items: flex-start; justify-content: flex-start; z-index: 40;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 22px; font-family: var(--serif); }
  .nav a .ja { font-size: 11px; }
  .nav-cta { margin: 16px 0 0; }
  .menu-toggle { display: block; }

  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 50px; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-visual { position: static; aspect-ratio: 4 / 3; }
  .service-list { grid-template-columns: 1fr; }
  .service { border-right: none !important; padding: 40px 24px; gap: 20px; grid-template-columns: 40px 1fr; }
  .strength-grid { grid-template-columns: 1fr; gap: 32px; }
  .flow-step { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .flow-list { padding-left: 28px; }
  .flow-step::before { left: -28px; top: 40px; }
  .company-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; padding: 60px 0 40px; }

  .works-grid { gap: 16px; row-gap: 20px; }
  .work-card.w-7, .work-card.w-5, .work-card.w-4, .work-card.w-8, .work-card.w-6 { grid-column: span 12; }
  .work-card { min-height: 240px; padding: 32px 24px 24px; }

  .about-quote { position: static; padding: 40px 32px; }

  .hero-side { display: none; }
}

@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-meta-right { text-align: left; }
}
