/* =========================================================
   フナビキ工務店 — Corporate Site
   モノトーン + 朱色アクセント / ゴシック × 英文サンセリフ
   ========================================================= */

:root{
  --bg: #ececef;
  --bg-2: #e2e2e6;
  --ink: #0c0c0c;
  --ink-2: #1a1a1a;
  --ink-3: #2a2a2a;
  --line: #cfcfd4;
  --line-2: #b8b8be;
  --mute: #5e5e63;
  --mute-2: #8a8a90;
  --paper: #ffffff;
  --accent: #c43321;     /* 神戸の朱 — single accent */
  --accent-ink: #8a2113;

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-jp-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-en: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1480px;
  --pad: clamp(20px, 4vw, 56px);
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt";
  line-height: 1.7;
  font-size: 15px;
  letter-spacing: 0.02em;
}
img{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border:0; cursor:pointer; }

.en{ font-family: var(--font-en); letter-spacing: 0.02em; }
.mono{ font-family: var(--font-mono); }
.serif{ font-family: var(--font-jp-serif); }

/* ============== Top Marquee ============== */
.top-marquee{
  background: var(--ink);
  color: #fff;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  overflow: hidden;
  border-bottom: 1px solid #1f1f1f;
}
.top-marquee .track{
  display: inline-flex;
  gap: 48px;
  padding: 9px 0;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
}
.top-marquee .track span{ opacity: .85; }
.top-marquee .track .dot{ opacity: .35; }
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ============== Header / Nav ============== */
.nav{
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.nav.scrolled{
  background: rgba(236,236,239,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav.invert{
  background: var(--ink);
  color: #fff;
  border-bottom-color: #1f1f1f;
}
.nav-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand{
  display:flex; align-items:center;
  flex-shrink: 0;
  min-width: max-content;
}
.brand-logo{
  height: 60px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo img{
  height: 100%;
  width: auto;
  display: block;
  filter: invert(1) brightness(0.05);
  transition: filter .25s ease;
}
.nav.invert .brand-logo img{ filter: none; }
.brand-name{
  display:flex; flex-direction:column; line-height:1.15;
}
.brand-name .jp{ font-size: 15px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.brand-name .en{ font-size: 10px; letter-spacing: .18em; color: var(--mute); margin-top: 4px; font-family: var(--font-en); font-weight: 500; white-space: nowrap; }
.nav.invert .brand-name .en{ color: #b8b8b8; }

.nav-links{
  display:flex; align-items:center;
  justify-content: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
}
.nav-links a{
  position: relative;
  padding: 8px 0;
  display:flex; align-items:baseline; gap:7px;
}
.nav-links a .num{
  font-family: var(--font-en);
  font-size: 10px;
  color: var(--mute);
  letter-spacing: .1em;
  font-weight: 500;
}
.nav.invert .nav-links a .num{ color: #888; }
.nav-links a:hover::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px;
  height: 1px; background: currentColor;
}
.nav-cta{
  display:flex; align-items:center; gap:14px;
}
.nav-cta .tel{
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  display:flex; align-items:center; gap:10px;
}
.nav-cta .tel small{ font-family: var(--font-jp); font-size: 10px; color: var(--mute); letter-spacing: .15em; }
.nav-cta .contact-btn{
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  display:inline-flex; align-items:center; gap:10px;
  transition: background .2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta .contact-btn span{ white-space: nowrap; }
.nav.invert .contact-btn{ background: var(--accent); }
.nav-cta .contact-btn:hover{ background: var(--accent); }
.contact-btn .arr{ font-family: var(--font-en); }

/* ============== Hero ============== */
.hero{
  position: relative;
  height: calc(100vh - 60px);
  min-height: 680px;
  max-height: 900px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-stage{ position: absolute; inset:0; }
.hero-slide{
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.6s ease, transform 1.6s ease;
}
.hero-slide.active{ opacity: 1; transform: scale(1); }
.hero-slide .photo{
  position:absolute; inset:0;
}
.hero-slide .ph-img{
  transition: transform 9s ease-out;
  will-change: transform;
}
.hero-slide.active .ph-img{
  transform: scale(1.14) translate(-1.2%, -1.4%);
}
.hero-slide .photo::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.60) 70%, rgba(0,0,0,.80) 100%);
}
@keyframes heroFlash{
  0%   { opacity: 0; }
  35%  { opacity: .35; }
  100% { opacity: 0; }
}
.hero::before{
  content:"";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  animation: heroFlash 1.4s ease-out;
}
@keyframes heroTextIn{
  0%   { opacity: 0; transform: translateY(28px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.hero-headline > * { animation: heroTextIn 1.2s cubic-bezier(.2,.7,.2,1) both; }
.hero-headline .hero-eyebrow{ animation-delay: 0s; }
.hero-headline h1{ animation-delay: .12s; }
.hero-headline .hero-sub{ animation-delay: .28s; }
.hero-grid{
  position: relative;
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-rows: 1fr auto;
  z-index: 2;
}
.hero-headline{
  align-self: end;
  padding-bottom: 60px;
}
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:14px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: .85;
}
.hero-eyebrow::before{
  content:""; width: 36px; height: 1px; background: currentColor; opacity:.6;
}
.hero h1{
  font-family: var(--font-jp-serif);
  font-weight: 600;
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: 1.08;
  letter-spacing: 0.04em;
  margin: 0;
  text-wrap: pretty;
}
.hero h1 .accent{ color: var(--accent); font-style: normal; }
.hero h1 .stroke{
  -webkit-text-stroke: 1px #fff;
  color: transparent;
}
.hero-sub{
  margin-top: 26px;
  max-width: 540px;
  font-size: 14px;
  line-height: 1.95;
  opacity: .9;
}
.hero-bottom{
  display:grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 36px;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 24px;
}
.hero-meta{
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .75;
  display:flex; gap: 28px; flex-wrap:wrap;
}
.hero-meta b{ color:#fff; opacity:1; font-weight: 500; }
.hero-pager{
  display:flex; gap: 8px; align-items:center;
}
.hero-pager button{
  width: 38px; height: 4px; background: rgba(255,255,255,.25);
  position:relative; overflow:hidden;
  transition: background .2s ease;
}
.hero-pager button.active{ background: rgba(255,255,255,.4); }
.hero-pager button.active::before{
  content:""; position:absolute; inset:0; right:auto;
  background:#fff; width:0;
  animation: pager 6s linear forwards;
}
@keyframes pager{ to{ width: 100%; } }

.hero-counter{
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .15em;
  display:flex; align-items:baseline; gap:8px;
}
.hero-counter .cur{ font-size: 28px; font-weight: 500; }
.hero-counter .of{ opacity: .55; }

.hero-side{
  position:absolute; right: var(--pad); top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .4em;
  text-transform: uppercase;
  opacity: .85;
  z-index: 3;
  color: #fff;
}

.scroll-cue{
  position:absolute;
  left: var(--pad); bottom: 100px;
  z-index: 3;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .35em;
  display:flex; align-items:center; gap:14px;
  color: #fff;
  opacity: .65;
  writing-mode: vertical-rl;
}
.scroll-cue::after{
  content:""; width:1px; height:60px; background:#fff;
  animation: cue 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue{
  0%,100%{ transform: scaleY(0); }
  50%{ transform: scaleY(1); }
}

/* ============== Photo Placeholders (SVG-driven) ============== */
.photo{
  background: #1c1c1c;
  position: relative;
  overflow: hidden;
}
.photo .ph-svg{ position:absolute; inset:0; width:100%; height:100%; }
.photo .ph-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.proj-card:hover .proj-photo .ph-img{ transform: scale(1.04); transition: transform .8s ease; }
.photo .ph-label{
  position:absolute; left: 16px; bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,.55);
  letter-spacing: .15em;
  text-transform: uppercase;
  z-index: 2;
}
.photo .ph-label::before{
  content:""; display:inline-block; width:22px; height:1px;
  background: rgba(255,255,255,.4); margin-right:10px;
  vertical-align: middle;
}

/* ============== Section base ============== */
section{ position: relative; }
.sec-pad{ padding: clamp(80px, 11vh, 140px) var(--pad); }
.sec-inner{ max-width: var(--max); margin: 0 auto; }

.sec-head{
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 48px;
  margin-bottom: 72px;
  align-items: start;
}
.sec-eye{
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--mute);
  display:flex; align-items:center; gap: 14px;
  padding-top: 4px;
}
.sec-eye .num{
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
}
.sec-eye::before{
  content:""; width: 32px; height: 1px; background: var(--accent);
}
.sec-title{
  font-family: var(--font-jp-serif);
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.15;
  margin: 0;
}
.sec-title small{
  display:block;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 400;
  margin-bottom: 18px;
}

/* ============== About / Concept ============== */
.about{
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.concept-grid{
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.concept-text .lead{
  font-family: var(--font-jp-serif);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.85;
  letter-spacing: .06em;
  margin: 0 0 32px;
  font-weight: 500;
}
.concept-text .lead .mark{
  display: inline-block;
  background: linear-gradient(transparent 60%, rgba(196,51,33,.18) 60%);
  padding: 0 2px;
}
.concept-text p{
  font-size: 15px;
  line-height: 2;
  color: var(--ink-3);
  margin: 0 0 18px;
  max-width: 560px;
}
.concept-stamp{
  margin-top: 42px;
  display:inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px 14px 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.concept-stamp .kanji{
  width: 56px; height: 56px;
  background: var(--ink);
  color: #fff;
  display:grid; place-items:center;
  font-family: var(--font-jp-serif);
  font-size: 32px;
  font-weight: 600;
}
.concept-stamp .body{
  display:flex; flex-direction:column;
}
.concept-stamp .body b{ font-size: 13px; letter-spacing: .12em; }
.concept-stamp .body small{ font-family: var(--font-en); font-size: 10px; letter-spacing: .25em; color: var(--mute); }

.concept-photo{
  position: relative;
}
.concept-photo .photo{
  height: 560px;
  border: 1px solid var(--line-2);
}
.concept-photo .badge{
  position: absolute;
  top: -22px; right: -22px;
  background: var(--accent);
  color: #fff;
  width: 130px; height: 130px;
  border-radius: 50%;
  display: grid; place-items: center;
  text-align: center;
  font-family: var(--font-jp-serif);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .06em;
  transform: rotate(-8deg);
}
.concept-photo .badge .big{
  display:block;
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 4px;
}

/* ============== Stats ============== */
.stats{
  background: var(--ink);
  color: #fff;
  border-top: 1px solid #1f1f1f;
  border-bottom: 1px solid #1f1f1f;
}
.stats-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat{
  padding: 56px 28px;
  border-right: 1px solid #1f1f1f;
  position: relative;
}
.stat:last-child{ border-right:0; }
.stat .label{
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 22px;
}
.stat .value{
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(54px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  display:flex; align-items:baseline; gap:8px;
}
.stat .value sup{
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .05em;
  font-family: var(--font-jp);
  color: #ccc;
}
.stat .desc{
  margin-top: 18px;
  font-size: 12px;
  color: #aaa;
  letter-spacing: .05em;
  line-height: 1.7;
  max-width: 220px;
}
.stat .num-en{
  position:absolute;
  top: 22px; right: 22px;
  font-family: var(--font-en);
  font-size: 10px;
  color: #555;
  letter-spacing: .25em;
}

/* ============== Business ============== */
.business{
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.biz-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.biz-card{
  grid-column: span 6;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 44px 40px 38px;
  position: relative;
  background: var(--paper);
  transition: background .25s ease;
}
.biz-card:nth-child(2n){ border-right: 0; }
.biz-card:hover{ background: #f5f5f7; }
.biz-card .biz-num{
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--accent);
  margin-bottom: 24px;
}
.biz-card .biz-photo{
  height: 240px;
  margin-bottom: 28px;
}
.biz-card h3{
  font-family: var(--font-jp-serif);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: .04em;
}
.biz-card .biz-en{
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 18px;
}
.biz-card p{
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-3);
  margin: 0 0 24px;
}
.biz-card .biz-tags{
  display:flex; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.biz-card .biz-tags span{
  border: 1px solid var(--line-2);
  padding: 5px 10px;
  color: var(--mute);
}

/* ============== Projects ============== */
.projects{
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.proj-tabs{
  display:flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 40px;
  padding-bottom: 0;
  border-bottom: 1px solid var(--line);
}
.proj-tabs button{
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--mute);
  position: relative;
  transition: color .2s ease;
}
.proj-tabs button .cnt{
  font-family: var(--font-en);
  font-size: 10px;
  margin-left: 6px;
  vertical-align: super;
  opacity: .6;
}
.proj-tabs button:hover{ color: var(--ink); }
.proj-tabs button.active{ color: var(--ink); font-weight: 600; }
.proj-tabs button.active::after{
  content:""; position:absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--accent);
}

.proj-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.proj-card{
  grid-column: span 4;
  display:flex; flex-direction: column;
  cursor: pointer;
}
.proj-card.span-6{ grid-column: span 6; }
.proj-card.span-8{ grid-column: span 8; }
.proj-card .proj-photo{
  height: 320px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.proj-card.span-6 .proj-photo{ height: 380px; }
.proj-card.span-8 .proj-photo{ height: 460px; }
.proj-card .proj-photo .photo{
  position: absolute;
  inset: 0;
}
.proj-card .proj-photo .ph-svg,
.proj-card .proj-photo .ph-img{
  transition: transform .8s ease;
}
.proj-card:hover .proj-photo .ph-svg,
.proj-card:hover .proj-photo .ph-img{ transform: scale(1.04); }
.proj-card .proj-photo .corner{
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  padding: 4px 9px;
  z-index: 2;
}
.proj-card .proj-photo .corner.accent{ background: var(--accent); color: #fff; }
.proj-card .proj-meta{
  display:flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--mute);
  margin-bottom: 8px;
}
.proj-card h4{
  font-family: var(--font-jp-serif);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: .03em;
  line-height: 1.4;
}
.proj-card .proj-loc{
  font-size: 12px;
  color: var(--mute);
  letter-spacing: .05em;
}
.proj-card .proj-loc::before{
  content:""; display:inline-block;
  width:8px; height:8px;
  border: 1px solid currentColor;
  margin-right: 8px;
  vertical-align: -1px;
  transform: rotate(45deg);
}

.proj-foot{
  margin-top: 60px;
  display:flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.proj-foot .note{
  font-size: 12px; color: var(--mute);
}
.btn-line{
  display:inline-flex; align-items:center; gap: 14px;
  padding: 16px 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  position: relative;
  transition: gap .2s ease;
}
.btn-line::after{
  content:""; position: absolute;
  left:0; right:0; bottom:0;
  height: 1px; background: var(--ink);
}
.btn-line .arr{
  display:inline-flex; align-items:center;
}
.btn-line:hover{ gap: 22px; }

/* ============== Message ============== */
.message{
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.msg-grid{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}
.msg-photo .photo{
  height: 360px;
  min-height: 0;
  border: 1px solid #1f1f1f;
}
.msg-photo .photo .ph-img{
  object-position: center top;
}
.msg-body{
  padding: 20px 0;
  position: relative;
}
.msg-body .sec-eye{ color: #aaa; margin-bottom: 24px; }
.msg-body .sec-eye::before{ background: var(--accent); }
.msg-body h2{
  font-family: var(--font-jp-serif);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .06em;
  margin: 0 0 36px;
}
.msg-body h2 em{
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}
.msg-body p{
  font-size: 15px;
  line-height: 2.1;
  color: #cfcfcf;
  margin: 0 0 18px;
  max-width: 560px;
}
.msg-sign{
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid #2a2a2a;
}
.msg-sign .post{
  font-size: 11px;
  color: #aaa;
  letter-spacing: .2em;
}
.msg-sign .name{
  font-family: var(--font-jp-serif);
  font-size: 24px;
  letter-spacing: .12em;
  margin-top: 4px;
}
.msg-sign .seal{
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-jp-serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .1em;
  margin-left: auto;
}
.msg-sign-img{
  height: 64px;
  width: auto;
  margin-left: auto;
  filter: invert(1) brightness(1.05);
  opacity: .92;
}

/* ============== Company / Profile ============== */
.company{
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.profile-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.profile-table{
  border-top: 1px solid var(--ink);
  font-size: 16px;
}
.profile-table .row{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.profile-table .row dt{
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink);
  font-size: 15px;
}
.profile-table .row dt .en{
  display:block;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .25em;
  color: var(--mute);
  font-weight: 500;
  margin-top: 5px;
  text-transform: uppercase;
}
.profile-table .row dd{
  margin: 0;
  color: var(--ink-2);
  line-height: 1.9;
  font-size: 15px;
}

.history-block{
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 40px 36px;
}
.history-block h3{
  font-family: var(--font-jp-serif);
  font-size: 24px;
  margin: 0 0 28px;
  font-weight: 600;
  letter-spacing: .06em;
  display:flex; justify-content: space-between; align-items: baseline;
}
.history-block h3 small{
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--mute);
  font-weight: 500;
}
.timeline{ list-style: none; padding: 0; margin: 0; }
.timeline li{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 15px;
  line-height: 1.75;
}
.timeline li:last-child{ border-bottom: 0; }
.timeline .yr{
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .05em;
  font-size: 16px;
}
.timeline .yr small{
  display:block;
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--mute);
  font-weight: 500;
  margin-top: 3px;
}
.timeline .ev{ color: var(--ink-2); font-weight: 500; }

.cert-row{
  display:flex; flex-wrap: wrap; gap: 10px;
  margin-top: 28px;
}
.cert-row .chip{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  background: var(--paper);
  padding: 7px 12px;
  color: var(--ink-3);
}

/* ============== News ============== */
.news{
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.news-list{
  border-top: 1px solid var(--ink);
}
.news-item{
  display: grid;
  grid-template-columns: 140px 110px 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 14px;
}
.news-date{
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--ink);
}
.news-cat{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  padding: 5px 10px;
  text-align: center;
  color: var(--mute);
  width: fit-content;
}
.news-cat.cat-press{ border-color: var(--ink); color: var(--ink); }
.news-cat.cat-proj{ border-color: var(--accent); color: var(--accent); }
.news-title{
  color: var(--ink-2);
  line-height: 1.6;
  letter-spacing: .03em;
}
.news-arr{
  font-family: var(--font-en);
  color: var(--mute);
  font-size: 14px;
}

/* ============== Recruit ============== */
.recruit{
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #1f1f1f;
}
.recruit-grid{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.recruit-grid .sec-eye{ color: #aaa; }
.recruit-grid .sec-eye::before{ background: var(--accent); }
.recruit-grid h2{
  font-family: var(--font-jp-serif);
  font-size: clamp(40px, 5.4vw, 78px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .04em;
  margin: 24px 0 28px;
}
.recruit-grid h2 .accent{ color: var(--accent); }
.recruit-grid p{
  color: #bbb;
  font-size: 15px;
  line-height: 2;
  max-width: 480px;
}
.recruit-cta{
  margin-top: 40px;
  display:flex; gap: 14px; flex-wrap: wrap;
}
.recruit-cta a{
  padding: 18px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  display:inline-flex; align-items:center; gap: 14px;
  border: 1px solid #fff;
  transition: background .2s ease, color .2s ease;
}
.recruit-cta a.primary{
  background: var(--accent);
  border-color: var(--accent);
}
.recruit-cta a.primary:hover{ background: #d63d2a; }
.recruit-cta a:not(.primary):hover{ background: #fff; color: var(--ink); }

.recruit-photo{
  position: relative;
}
.recruit-photo .photo{
  height: 540px;
  border: 1px solid #1f1f1f;
}
.recruit-photo .quote{
  position: absolute;
  left: -28px; bottom: -28px;
  background: var(--bg);
  color: var(--ink);
  padding: 28px 32px;
  max-width: 320px;
  border: 1px solid #1f1f1f;
}
.recruit-photo .quote .q{
  font-family: var(--font-jp-serif);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: .04em;
  margin: 0 0 14px;
}
.recruit-photo .quote .who{
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--mute);
}
.recruit-photo .quote .who b{
  display:block;
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .12em;
  margin-top: 4px;
}

/* ============== Contact ============== */
.contact{
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.contact-grid{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-grid .sec-title{ margin-bottom: 32px; }
.contact-info{
  display:grid; gap: 24px;
}
.contact-tile{
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  align-items: center;
}
.contact-tile .ico{
  width: 60px; height: 60px;
  border: 1px solid var(--ink);
  display:grid; place-items: center;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 500;
}
.contact-tile h4{
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: .12em;
  font-weight: 600;
}
.contact-tile h4 small{
  display:block;
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: .25em;
  color: var(--mute);
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 6px;
}
.contact-tile .big{
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .03em;
  margin-top: 4px;
}
.contact-tile .desc{
  font-size: 12px;
  color: var(--mute);
  margin-top: 4px;
  line-height: 1.6;
}

.contact-form{
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px 32px;
}
.contact-form .frow{
  margin-bottom: 18px;
}
.contact-form label{
  display:flex; justify-content: space-between; align-items:center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.contact-form label .req{
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: .2em;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
}
.contact-form input,
.contact-form textarea,
.contact-form select{
  width: 100%;
  padding: 14px 14px;
  font: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus{
  border-color: var(--ink);
  background: var(--paper);
}
.contact-form textarea{ min-height: 120px; resize: vertical; }
.contact-form .frow-2{
  display:grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.contact-form .submit{
  width: 100%;
  background: var(--ink);
  color: #fff;
  padding: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .25em;
  display:flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 12px;
  transition: background .2s ease;
}
.contact-form .submit:hover{ background: var(--accent); }
.contact-form .privacy{
  font-size: 11px;
  color: var(--mute);
  margin-top: 14px;
  line-height: 1.6;
}

/* ============== Footer ============== */
.footer{
  background: #050505;
  color: #ddd;
  padding: 80px var(--pad) 32px;
}
.footer-inner{ max-width: var(--max); margin: 0 auto; }
.footer-mark{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding-bottom: 40px;
  border-bottom: 1px solid #222;
  margin-bottom: 40px;
}
.footer-mark .big{
  font-family: var(--font-jp-serif);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.15;
  color: #fff;
}
.footer-mark .big .en{
  display:block;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .3em;
  color: #b0b0b0;
  margin-top: 14px;
  font-weight: 500;
}
.footer-mark .big-right{
  font-family: var(--font-jp-serif);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.15;
  color: var(--accent);
  align-self: end;
  text-align: right;
  white-space: nowrap;
}
.footer-cols{
  display:grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-col h5{
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 22px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid #2a2a2a;
}
.footer-col ul{ list-style: none; padding: 0; margin: 0; }
.footer-col li{ margin-bottom: 14px; font-size: 15px; font-weight: 500; }
.footer-col li a{ color: #e0e0e0; }
.footer-col li a:hover{ color: var(--accent); }
.footer-col p{
  font-size: 15px;
  color: #d8d8d8;
  line-height: 1.95;
  margin: 0 0 12px;
  font-weight: 400;
}
.footer-col p b{ color: #fff; font-weight: 700; }
.footer-bot{
  display:flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  border-top: 1px solid #2a2a2a;
  font-family: var(--font-en);
  font-size: 12px;
  color: #b0b0b0;
  letter-spacing: .15em;
  font-weight: 500;
}
.footer-bot .sns{ display:flex; gap: 16px; }
.footer-bot .sns a{ color: #e0e0e0; font-weight: 600; }
.footer-bot .sns a:hover{ color: var(--accent); }

/* ============== Page Indicator (right side) ============== */
.page-indicator{
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display:flex; flex-direction: column; gap: 14px;
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: .15em;
  color: var(--mute);
  pointer-events: auto;
}
.page-indicator a{
  display:flex; align-items:center; gap: 10px;
  justify-content: flex-end;
  opacity: .55;
  transition: opacity .2s ease;
}
.page-indicator a:hover{ opacity: 1; }
.page-indicator a .label{ display: none; text-transform: uppercase; }
.page-indicator a:hover .label{ display: inline; }
.page-indicator a .dot{
  width: 18px; height: 1px;
  background: currentColor;
  transition: width .2s ease;
}
.page-indicator a.active{ opacity: 1; color: var(--ink); }
.page-indicator a.active .dot{ width: 32px; background: var(--accent); }

/* nav.invert friendly */
.nav.invert + * .page-indicator{ color: #888; }

/* ============== Reveal animations ============== */
.reveal{
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.in{ opacity: 1; transform: none; }

/* ============== Responsive ============== */
@media (max-width: 1100px){
  .nav-links{ display: none; }
  .nav-inner{ grid-template-columns: auto 1fr auto; }
  .concept-grid,
  .msg-grid,
  .recruit-grid,
  .contact-grid,
  .profile-grid{
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .stats-row{ grid-template-columns: repeat(2,1fr); }
  .stat{ border-bottom: 1px solid #1f1f1f; }
  .stat:nth-child(2n){ border-right: 0; }
  .biz-card{ grid-column: span 12; border-right: 0; }
  .proj-card, .proj-card.span-6, .proj-card.span-8{ grid-column: span 6; }
  .footer-cols{ grid-template-columns: 1fr 1fr; }
  .page-indicator{ display: none; }
  .hero-side{ display: none; }
}
@media (max-width: 720px){
  .nav-cta .tel{ display: none; }
  .stats-row{ grid-template-columns: 1fr; }
  .stat{ border-right: 0; }
  .proj-card, .proj-card.span-6, .proj-card.span-8{ grid-column: span 12; }
  .news-item{ grid-template-columns: 1fr; gap: 6px; }
  .news-arr{ display: none; }
  .footer-cols{ grid-template-columns: 1fr; }
  .contact-form .frow-2{ grid-template-columns: 1fr; }
  .concept-photo .badge{ width: 96px; height: 96px; font-size: 10px; top: -14px; right: -10px; }
  .concept-photo .badge .big{ font-size: 22px; }
}
