/* =========================================================
   木村建設株式会社 — Corporate Site
   ========================================================= */
:root {
  --ink: #070b14;
  --navy: #0c1424;
  --steel: #16233a;
  --steel-2: #24344f;
  --line: rgba(255, 255, 255, .12);
  --line-dark: rgba(7, 11, 20, .12);
  --paper: #f4f2ee;
  --white: #ffffff;
  --mute: #8a94a6;
  --text: #1a1f2b;
  --accent: #d9532b;
  --accent-2: #f07a3c;
  --gold: #b8975a;

  --f-serif: "Shippori Mincho B1", "Noto Serif JP", serif;
  --f-sans: "Noto Sans JP", system-ui, sans-serif;
  --f-en: "Barlow Condensed", "Oswald", sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 1.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.en { font-family: var(--f-en); letter-spacing: .12em; text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--ink);
  display: grid; place-items: center; transition: opacity .9s var(--ease), visibility .9s;
}
.loader__inner { text-align: center; color: #fff; }
.loader__mark { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: #fff; padding: 8px; opacity: 0; animation: fadeUp 1s .1s var(--ease) forwards; }
.loader__mark img { width: 100%; height: 100%; object-fit: contain; }
.loader__bar { width: 180px; height: 1px; background: var(--line); margin: 0 auto; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--accent); animation: load 1.4s .2s var(--ease) forwards; }
.loader__txt { font-family: var(--f-en); letter-spacing: .4em; font-size: 12px; color: var(--mute); margin-top: 14px; }
body.is-loaded .loader { opacity: 0; visibility: hidden; }
@keyframes load { to { width: 100%; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .5s, backdrop-filter .5s, transform .5s var(--ease);
}
.header__in { display: flex; align-items: center; justify-content: space-between; height: 84px; padding: 0 var(--gutter); }
.header.is-scrolled { background: rgba(7, 11, 20, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header.is-scrolled .header__in { height: 68px; }
.header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand__mark { width: 42px; height: 42px; border-radius: 50%; background: #fff; padding: 4px; flex: none; }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { font-family: var(--f-serif); font-size: 19px; letter-spacing: .14em; line-height: 1.2; }
.brand__name small { display: block; font-family: var(--f-en); font-size: 10px; letter-spacing: .38em; color: rgba(255,255,255,.6); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { color: #fff; font-size: 14px; letter-spacing: .14em; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav .nav__cta { border: 1px solid rgba(255,255,255,.5); padding: 10px 22px; transition: background .3s, border-color .3s; }
.nav .nav__cta::after { display: none; }
.nav .nav__cta:hover { background: var(--accent); border-color: var(--accent); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff; transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 27px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--ink); flex-direction: column; justify-content: center; gap: 28px;
    opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s;
  }
  .nav a { font-size: 20px; font-family: var(--f-serif); }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; color: #fff; overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero__slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,11,20,.55) 0%, rgba(7,11,20,.1) 35%, rgba(7,11,20,.25) 60%, rgba(7,11,20,.92) 100%),
    linear-gradient(90deg, rgba(7,11,20,.6) 0%, rgba(7,11,20,0) 60%);
}
.hero__content { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(80px, 14vh, 160px); }
.hero__eyebrow { display: flex; align-items: center; gap: 16px; font-family: var(--f-en); letter-spacing: .4em; font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 28px; }
.hero__eyebrow::before { content: ""; width: 48px; height: 1px; background: var(--accent); }
.hero__title { font-family: var(--f-serif); font-weight: 600; font-size: clamp(40px, 7.4vw, 108px); line-height: 1.18; letter-spacing: .08em; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.4s var(--ease); }
body.is-loaded .hero__title .line > span { transform: none; }
body.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .15s; }
.hero__sub { margin-top: 32px; font-family: var(--f-en); font-size: clamp(14px, 1.4vw, 20px); letter-spacing: .32em; color: rgba(255,255,255,.85); opacity: 0; transform: translateY(20px); transition: 1.2s .6s var(--ease); }
body.is-loaded .hero__sub { opacity: 1; transform: none; }
.hero__meta { position: absolute; z-index: 2; right: var(--gutter); bottom: 44px; display: flex; gap: 40px; align-items: flex-end; font-size: 12px; letter-spacing: .2em; color: rgba(255,255,255,.7); }
.hero__counter { font-family: var(--f-en); font-size: 14px; letter-spacing: .2em; }
.hero__counter b { font-size: 28px; color: #fff; font-weight: 500; }
.hero__scroll { position: absolute; z-index: 2; left: var(--gutter); bottom: 0; height: 100px; display: flex; flex-direction: column; align-items: center; gap: 12px; font-family: var(--f-en); font-size: 11px; letter-spacing: .3em; color: rgba(255,255,255,.7); writing-mode: vertical-rl; }
.hero__scroll::after { content: ""; width: 1px; height: 60px; background: linear-gradient(var(--accent), transparent); animation: scrollLine 2.2s infinite var(--ease); transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero__caption { position: absolute; z-index: 2; right: var(--gutter); top: 120px; font-size: 11px; letter-spacing: .18em; color: rgba(255,255,255,.55); text-align: right; }

@media (max-width: 720px) {
  .hero__eyebrow { letter-spacing: .22em; font-size: 11px; }
  .hero__eyebrow::before { width: 28px; }
  .hero__meta { display: none; }
  .hero__caption { display: none; }
  .hero__scroll { display: none; }
}

/* ---------- Page Hero (sub pages) ---------- */
.phero { position: relative; height: 70vh; min-height: 480px; color: #fff; overflow: hidden; background: var(--ink); display: flex; align-items: flex-end; }
.phero__bg { position: absolute; inset: 0; }
.phero__bg img { width: 100%; height: 120%; object-fit: cover; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,11,20,.5), rgba(7,11,20,.25) 40%, rgba(7,11,20,.9)); }
.phero__in { position: relative; z-index: 2; padding-bottom: clamp(56px, 9vh, 100px); }
.phero__en { font-family: var(--f-en); font-size: clamp(56px, 11vw, 160px); line-height: .9; letter-spacing: .04em; font-weight: 600; text-transform: uppercase; }
.phero__ja { display: flex; align-items: center; gap: 16px; margin-top: 18px; font-family: var(--f-serif); font-size: clamp(16px, 1.6vw, 22px); letter-spacing: .2em; }
.phero__ja::before { content: ""; width: 40px; height: 1px; background: var(--accent); }
.crumbs { font-size: 12px; letter-spacing: .16em; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.crumbs a:hover { color: #fff; }

/* ---------- Section base ---------- */
.sec { padding: clamp(96px, 14vw, 200px) 0; position: relative; }
.sec--dark { background: var(--navy); color: #fff; }
.sec--ink { background: var(--ink); color: #fff; }
.sec--white { background: #fff; }
.head { margin-bottom: clamp(48px, 7vw, 96px); }
.head__en { font-family: var(--f-en); font-weight: 600; font-size: clamp(48px, 8vw, 120px); line-height: .95; letter-spacing: .02em; text-transform: uppercase; color: var(--text); }
.sec--dark .head__en, .sec--ink .head__en { color: #fff; }
.head__en .o { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.sec--dark .head__en .o, .sec--ink .head__en .o { -webkit-text-stroke-color: rgba(255,255,255,.85); }
.head__ja { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-family: var(--f-serif); font-size: 16px; letter-spacing: .24em; }
.head__ja::before { content: ""; width: 32px; height: 1px; background: var(--accent); }
.head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.lead { font-family: var(--f-serif); font-size: clamp(22px, 2.6vw, 38px); line-height: 1.75; letter-spacing: .1em; font-weight: 500; }

.btn { display: inline-flex; align-items: center; gap: 22px; padding: 20px 34px; border: 1px solid currentColor; font-size: 14px; letter-spacing: .2em; position: relative; overflow: hidden; transition: color .5s var(--ease), border-color .5s; z-index: 0; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); z-index: -1; }
.btn:hover { color: #fff; border-color: var(--accent); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .arw { width: 34px; height: 1px; background: currentColor; position: relative; transition: width .4s var(--ease); }
.btn .arw::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arw { width: 48px; }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(48px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .1s; } .rv-d2 { transition-delay: .2s; } .rv-d3 { transition-delay: .3s; } .rv-d4 { transition-delay: .4s; }
.mask { position: relative; overflow: hidden; }
.mask::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(1); transform-origin: right; transition: transform 1.3s var(--ease); z-index: 2; }
.mask img { transform: scale(1.25); transition: transform 2.2s var(--ease); }
.mask.is-in::after { transform: scaleX(0); }
.mask.is-in img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .rv, .mask img { transform: none !important; opacity: 1 !important; transition: none !important; }
  .mask::after { display: none; }
  .hero__slide.is-active img { animation: none; transform: none; }
}

/* ---------- Message ---------- */
.message { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.message__img { aspect-ratio: 4/5; }
.message__img img { width: 100%; height: 100%; object-fit: cover; }
.message__text p { color: #3a4252; }
.message__sign { margin-top: 40px; font-family: var(--f-serif); letter-spacing: .2em; }
.message__sign small { display: block; font-size: 12px; color: var(--mute); }
@media (max-width: 860px) { .message { grid-template-columns: 1fr; } .message__img { aspect-ratio: 16/10; } }

/* ---------- Numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.num { padding: clamp(36px, 4vw, 64px) clamp(16px, 2.4vw, 40px); border-right: 1px solid var(--line); }
.num:last-child { border-right: 0; }
.num__label { font-size: 13px; letter-spacing: .2em; color: rgba(255,255,255,.65); }
.num__val { font-family: var(--f-en); font-size: clamp(56px, 7vw, 112px); line-height: 1; font-weight: 500; margin: 18px 0 10px; letter-spacing: 0; }
.num__val small { font-size: .32em; margin-left: 6px; letter-spacing: .1em; color: var(--accent-2); }
.num__note { font-size: 12px; color: rgba(255,255,255,.5); letter-spacing: .1em; line-height: 1.7; }
@media (max-width: 860px) { .numbers { grid-template-columns: repeat(2, 1fr); } .num:nth-child(2) { border-right: 0; } .num:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Business ---------- */
.biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.biz__item { background: var(--paper); padding: clamp(32px, 3.4vw, 52px); position: relative; min-height: 320px; display: flex; flex-direction: column; transition: background .6s var(--ease), color .6s; overflow: hidden; }
.biz__item::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--accent); transition: width .8s var(--ease); }
.biz__item:hover { background: var(--navy); color: #fff; }
.biz__item:hover::before { width: 100%; }
.biz__no { font-family: var(--f-en); font-size: 15px; letter-spacing: .2em; color: var(--accent); }
.biz__title { font-family: var(--f-serif); font-size: clamp(22px, 2vw, 28px); margin: 22px 0 6px; letter-spacing: .12em; }
.biz__en { font-family: var(--f-en); font-size: 13px; letter-spacing: .24em; color: var(--mute); text-transform: uppercase; }
.biz__desc { margin-top: auto; padding-top: 28px; font-size: 14px; line-height: 1.9; color: #5a6272; transition: color .6s; }
.biz__item:hover .biz__desc { color: rgba(255,255,255,.75); }
@media (max-width: 960px) { .biz { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .biz { grid-template-columns: 1fr; } .biz__item { min-height: 0; } }

/* ---------- Works (home showcase) ---------- */
.showcase { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.wcard { position: relative; overflow: hidden; color: #fff; display: block; background: var(--steel); }
.wcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), filter .8s; filter: saturate(.9); }
.wcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,11,20,.88)); transition: opacity .6s; }
.wcard:hover img { transform: scale(1.06); filter: saturate(1.05); }
.wcard__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(20px, 2.4vw, 36px); }
.wcard__meta { display: flex; gap: 14px; align-items: center; font-family: var(--f-en); font-size: 12px; letter-spacing: .24em; color: rgba(255,255,255,.75); }
.wcard__meta i { width: 24px; height: 1px; background: var(--accent); }
.wcard__title { font-family: var(--f-serif); font-size: clamp(18px, 1.8vw, 26px); letter-spacing: .08em; margin-top: 10px; line-height: 1.5; }
.wcard__method { font-size: 12px; letter-spacing: .12em; color: rgba(255,255,255,.7); margin-top: 6px; }
.showcase .wcard:nth-child(1) { grid-column: span 8; aspect-ratio: 16/10; }
.showcase .wcard:nth-child(2) { grid-column: span 4; }
.showcase .wcard:nth-child(3) { grid-column: span 4; aspect-ratio: 4/5; }
.showcase .wcard:nth-child(4) { grid-column: span 4; }
.showcase .wcard:nth-child(5) { grid-column: span 4; }
@media (max-width: 860px) {
  .showcase .wcard:nth-child(n) { grid-column: span 12; aspect-ratio: 16/11; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); color: #fff; }
.marquee__track { display: inline-flex; gap: 64px; animation: marquee 40s linear infinite; font-family: var(--f-en); font-size: clamp(36px, 5vw, 72px); letter-spacing: .04em; font-weight: 500; text-transform: uppercase; }
.marquee__track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee__track span::after { content: ""; width: 14px; height: 14px; background: var(--accent); transform: rotate(45deg); }
.marquee__track .o { -webkit-text-stroke: 1px rgba(255,255,255,.7); color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Methods ---------- */
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.method { padding: 40px 32px 44px 0; border-bottom: 1px solid var(--line); }
.method:not(:nth-child(3n)) { padding-right: 40px; border-right: 1px solid var(--line); }
.method:not(:nth-child(3n+1)) { padding-left: 40px; }
.method__no { font-family: var(--f-en); color: var(--accent-2); letter-spacing: .2em; font-size: 13px; }
.method__title { font-family: var(--f-serif); font-size: 22px; letter-spacing: .1em; margin: 14px 0 12px; }
.method__desc { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.9; margin: 0; }
.method__count { margin-top: 18px; font-size: 12px; letter-spacing: .16em; color: rgba(255,255,255,.45); }
@media (max-width: 960px) {
  .methods { grid-template-columns: 1fr; }
  .method:nth-child(n) { padding: 32px 0; border-right: 0; }
}

/* ---------- History ---------- */
.history { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.history__year { font-family: var(--f-en); font-size: clamp(110px, 16vw, 240px); line-height: .85; font-weight: 600; color: transparent; -webkit-text-stroke: 1px rgba(7,11,20,.35); letter-spacing: -.01em; }
.history__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.history__photos figure { margin: 0; }
.history__photos figure:first-child { grid-column: span 2; }
.history__photos img { width: 100%; aspect-ratio: 3/2; object-fit: cover; filter: sepia(.2) contrast(1.05); }
.history__photos figcaption { font-size: 12px; color: var(--mute); margin-top: 8px; letter-spacing: .1em; }
@media (max-width: 860px) { .history { grid-template-columns: 1fr; } }

/* ---------- Equipment ---------- */
.equip { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.equip__card { position: relative; background: var(--steel); color: #fff; overflow: hidden; }
.equip__img { aspect-ratio: 16/10; }
.equip__img img { width: 100%; height: 100%; object-fit: cover; }
.equip__body { padding: clamp(28px, 3vw, 44px); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.equip__name { font-family: var(--f-serif); font-size: clamp(20px, 2vw, 28px); letter-spacing: .12em; }
.equip__en { font-family: var(--f-en); letter-spacing: .24em; font-size: 12px; color: rgba(255,255,255,.55); text-transform: uppercase; margin-top: 6px; }
.equip__spec { font-family: var(--f-en); font-size: clamp(40px, 4.6vw, 68px); line-height: 1; font-weight: 500; }
.equip__spec small { font-size: .36em; color: var(--accent-2); margin-left: 4px; letter-spacing: .1em; }
.equip__strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(20px, 3vw, 40px); }
.equip__strip img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .equip { grid-template-columns: 1fr; } .equip__strip { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.cta__in { position: relative; z-index: 1; padding: clamp(100px, 14vw, 200px) 0; text-align: center; }
.cta__title { font-family: var(--f-serif); font-size: clamp(28px, 4vw, 56px); letter-spacing: .14em; line-height: 1.6; margin: 18px 0 40px; }

/* ---------- Company table ---------- */
.ctable { width: 100%; border-collapse: collapse; }
.ctable th, .ctable td { text-align: left; padding: 28px 0; border-bottom: 1px solid var(--line-dark); vertical-align: top; font-weight: 400; }
.ctable th { width: 28%; font-family: var(--f-serif); letter-spacing: .2em; color: var(--mute); font-size: 15px; padding-right: 24px; }
.ctable td { font-size: 16px; }
.ctable tr:first-child th, .ctable tr:first-child td { border-top: 1px solid var(--text); }
.officers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 32px; }
.officers span { color: var(--mute); font-size: 13px; margin-right: 14px; letter-spacing: .12em; }
@media (max-width: 600px) { .ctable th, .ctable td { display: block; width: 100%; padding: 6px 0; border: 0; } .ctable th { padding-top: 24px; } .ctable td { padding-bottom: 24px; border-bottom: 1px solid var(--line-dark); } .ctable tr:first-child th { border-top: 1px solid var(--text); } .ctable tr:first-child td { border-top: 0; } .officers { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-dark); }
.timeline li { position: relative; padding: 0 0 48px 40px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 10px; width: 11px; height: 11px; background: var(--accent); transform: rotate(45deg); }
.timeline__y { font-family: var(--f-en); font-size: 32px; letter-spacing: .06em; line-height: 1.2; }
.timeline__y small { font-family: var(--f-sans); font-size: 13px; color: var(--mute); margin-left: 12px; letter-spacing: .1em; }
.timeline__t { margin-top: 6px; color: #3a4252; }

/* ---------- Access ---------- */
.access { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.access__map { min-height: 380px; background: var(--steel); }
.access__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(1) contrast(1.05); }
.access dl { margin: 0; }
.access dt { font-family: var(--f-en); letter-spacing: .24em; font-size: 12px; color: var(--accent); margin-top: 28px; }
.access dt:first-child { margin-top: 0; }
.access dd { margin: 6px 0 0; font-size: 17px; }
.placeholder { display: inline-block; font-size: 12px; letter-spacing: .08em; color: #a3471f; background: rgba(217,83,43,.08); border: 1px dashed rgba(217,83,43,.6); padding: 2px 10px; }
.sec--dark .placeholder, .sec--ink .placeholder, .footer .placeholder { color: #ffb08a; background: rgba(240,122,60,.08); }
@media (max-width: 860px) { .access { grid-template-columns: 1fr; } }

/* ---------- Works list page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.filters button { font: inherit; font-size: 13px; letter-spacing: .14em; padding: 10px 20px; border: 1px solid var(--line-dark); background: transparent; color: var(--text); cursor: pointer; transition: all .3s; }
.filters button:hover { border-color: var(--text); }
.filters button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.wlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 4vw, 64px) clamp(20px, 3vw, 40px); }
.witem { cursor: pointer; }
.witem.is-hidden { display: none; }
.witem__img { aspect-ratio: 16/10; overflow: hidden; background: var(--steel); position: relative; }
.witem__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.witem:hover .witem__img img { transform: scale(1.05); }
.witem__no { position: absolute; left: 0; top: 0; background: var(--ink); color: #fff; font-family: var(--f-en); letter-spacing: .2em; font-size: 13px; padding: 8px 14px; z-index: 1; }
.witem__body { padding-top: 22px; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; }
.witem__title { font-family: var(--f-serif); font-size: clamp(18px, 1.6vw, 22px); letter-spacing: .08em; line-height: 1.6; }
.witem__year { font-family: var(--f-en); font-size: 15px; letter-spacing: .14em; color: var(--accent); white-space: nowrap; }
.witem__tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: #5a6272; letter-spacing: .08em; }
.witem__tags span::before { content: "— "; color: var(--accent); }
@media (max-width: 760px) { .wlist { grid-template-columns: 1fr; } }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 500; background: rgba(7,11,20,.96); color: #fff; display: grid; grid-template-columns: 1fr 380px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb__img { display: grid; place-items: center; padding: 60px; min-height: 0; }
.lb__img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lb__info { border-left: 1px solid var(--line); padding: 80px 40px; overflow: auto; }
.lb__info h3 { font-family: var(--f-serif); font-size: 24px; letter-spacing: .08em; line-height: 1.6; margin: 14px 0 28px; }
.lb__info dl { margin: 0; }
.lb__info dt { font-family: var(--f-en); font-size: 12px; letter-spacing: .24em; color: var(--accent-2); margin-top: 22px; }
.lb__info dd { margin: 4px 0 0; color: rgba(255,255,255,.85); }
.lb__close { position: absolute; top: 20px; right: 20px; width: 52px; height: 52px; border: 1px solid var(--line); background: none; color: #fff; cursor: pointer; font-size: 22px; z-index: 2; }
.lb__nav { position: absolute; bottom: 24px; left: 60px; display: flex; gap: 10px; }
.lb__nav button { width: 52px; height: 52px; border: 1px solid var(--line); background: none; color: #fff; cursor: pointer; font-size: 18px; }
.lb__nav button:hover, .lb__close:hover { background: var(--accent); border-color: var(--accent); }
@media (max-width: 860px) { .lb { grid-template-columns: 1fr; grid-template-rows: 50vh 1fr; } .lb__img { padding: 64px 16px 16px; } .lb__info { border-left: 0; border-top: 1px solid var(--line); padding: 24px 20px 90px; } .lb__nav { left: 20px; bottom: 20px; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: clamp(72px, 9vw, 120px) 0 40px; font-size: 14px; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
.footer__brand .brand__name { font-size: 24px; }
.footer__addr { margin-top: 28px; line-height: 2; }
.footer h4 { font-family: var(--f-en); font-size: 12px; letter-spacing: .3em; color: #fff; margin-bottom: 18px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 10px 0; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 32px; font-size: 12px; letter-spacing: .12em; color: rgba(255,255,255,.45); flex-wrap: wrap; }
.footer__big { font-family: var(--f-en); font-size: clamp(56px, 13vw, 210px); line-height: .9; font-weight: 600; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); margin-top: 48px; white-space: nowrap; overflow: hidden; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr; } }

.pagetop { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 52px; height: 52px; background: var(--accent); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(16px); transition: .5s var(--ease); font-family: var(--f-en); font-size: 11px; letter-spacing: .1em; }
.pagetop.is-show { opacity: 1; visibility: visible; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cta__bg img[data-parallax], .phero__bg img[data-parallax] { height: 130%; margin-top: -10%; }
.cta__tel { display: block; width: fit-content; margin: -12px auto 36px; font-family: var(--f-en); font-size: clamp(36px, 5vw, 64px); letter-spacing: .06em; line-height: 1; color: #fff; }
.cta__tel span { font-size: .32em; letter-spacing: .3em; color: var(--accent-2); margin-right: 16px; vertical-align: middle; }
.cta__tel:hover { color: var(--accent-2); }

/* ---------- Contact form ---------- */
.phero--short { height: 52vh; min-height: 400px; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__side { position: sticky; top: 120px; }
.contact__lead { font-size: clamp(19px, 1.7vw, 24px); }
.contact__side > p:not(.lead) { font-size: 15px; color: #4a5263; }
.contact__tel { margin-top: 40px; padding: 28px 30px; background: var(--ink); color: #fff; }
.contact__tel .en { font-size: 12px; letter-spacing: .3em; color: var(--accent-2); }
.contact__tel a { display: block; font-family: var(--f-en); font-size: clamp(34px, 3.4vw, 46px); line-height: 1.15; letter-spacing: .05em; margin: 6px 0 10px; }
.contact__tel a:hover { color: var(--accent-2); }
.contact__tel p { margin: 0; font-size: 13px; color: rgba(255,255,255,.65); }
.form { margin: 0; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__row { margin: 0 0 30px; padding: 0; border: 0; min-width: 0; }
.form__label { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 500; letter-spacing: .1em; }
.req, .opt { display: inline-block; font-size: 11px; line-height: 1; letter-spacing: .1em; padding: 4px 8px; font-weight: 500; }
.req { background: var(--accent); color: #fff; }
.opt { background: #eceae5; color: #5b6272; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.input { width: 100%; font: inherit; font-size: 16px; letter-spacing: .04em; color: var(--text); background: var(--paper); border: 1px solid transparent; border-bottom-color: #c9c5bd; padding: 15px 18px; border-radius: 0; transition: border-color .3s, background .3s; -webkit-appearance: none; appearance: none; }
.input::placeholder { color: #a3a8b3; }
.input:focus { outline: none; background: #fff; border-color: var(--text); }
.input[aria-invalid="true"] { border-color: var(--accent); background: #fff7f3; }
textarea.input { min-height: 200px; resize: vertical; line-height: 1.8; }
.form__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border: 1px solid #d9d5cd; font-size: 14px; letter-spacing: .06em; transition: border-color .3s, background .3s, color .3s; }
.choice span::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1px solid #a3a8b3; box-shadow: inset 0 0 0 3px #fff; transition: background .3s, border-color .3s; }
.choice:hover span { border-color: var(--text); }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.choice input:checked + span::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__err { margin: 8px 0 0; font-size: 13px; color: #b8411c; }
.form__alert { margin: 0 0 32px; padding: 16px 20px; border-left: 3px solid var(--accent); background: #fff3ee; color: #8f3415; font-size: 14px; }
.form__agree { padding: 24px; background: var(--paper); }
.form__privacy { font-size: 13px; line-height: 1.8; color: #5b6272; margin-bottom: 14px; }
.check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; font-weight: 500; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.form__submit { margin-top: 40px; }
.btn--solid { background: var(--ink); color: #fff; border-color: var(--ink); cursor: pointer; font: inherit; font-size: 15px; letter-spacing: .24em; min-width: 280px; justify-content: space-between; }
.btn--solid:hover { border-color: var(--accent); }
.form__done { padding: clamp(40px, 6vw, 72px); background: var(--paper); border-top: 3px solid var(--accent); }
.form__done .en { font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--accent); margin-bottom: 20px; }
.form__done h2 { font-family: var(--f-serif); font-size: clamp(20px, 2.2vw, 28px); letter-spacing: .1em; margin-bottom: 18px; }
.form__done p { color: #4a5263; margin-bottom: 36px; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } .contact__side { position: static; } }
@media (max-width: 600px) { .form__grid, .form__choices { grid-template-columns: 1fr; } .btn--solid { width: 100%; min-width: 0; } .form__agree { padding: 20px 16px; } }
.access__form { display: inline-flex; align-items: center; gap: 14px; border-bottom: 1px solid currentColor; padding-bottom: 4px; transition: color .3s; }
.access__form:hover { color: var(--accent); }
.access__form .arw { width: 24px; height: 1px; background: currentColor; position: relative; }
.access__form .arw::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
