:root {
  --color-text: #202020;
  --color-muted: #6e6e6e;
  --color-line: #dedede;
  --color-bg: #f7f7f7;
  --color-dark: #161616;
  --header-height: 62px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--color-text);
  font-family: "Roboto", "Noto Sans JP", sans-serif;
  font-size: 14px;
  letter-spacing: .04em;
  line-height: 1.8;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: min(100% - 48px, 1100px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.site-header__inner {
  height: 100%;
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo { display: inline-grid; gap: 1px; line-height: 1; }
.site-logo__main { font-size: 18px; font-weight: 700; letter-spacing: .18em; margin: 0; }
.site-logo__sub { font-size: 9px; letter-spacing: .25em; margin: 0; color: #555; }
.global-nav { display: flex; align-items: center; gap: 34px; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.global-nav a { position: relative; }
.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.global-nav__contact {
  padding: 10px 18px;
  color: #fff;
  background: #111;
  border-radius: 2px;
}
.global-nav .global-nav__contact::after { display: none; }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 1px; margin: 6px 0; background: #111; }

.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.58), rgba(0,0,0,.12) 42%, rgba(0,0,0,.04)),
    radial-gradient(circle at 48% 42%, rgba(255,255,255,.14) 0 2px, transparent 3px),
    linear-gradient(90deg, #252525 0 18%, #727272 18% 22%, #202020 22% 72%, #d3d3d3 72% 100%);
}
.page-hero__bg::before,
.page-hero__bg::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 14%;
  height: 82%;
  background: linear-gradient(#111, #333);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.page-hero__bg::before { left: 35%; }
.page-hero__bg::after { left: 50%; }
.page-hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
  color: #fff;
}
.page-hero__title { margin: 0; font-size: clamp(32px, 5vw, 54px); font-weight: 700; letter-spacing: .08em; line-height: 1; }
.page-hero__lead { margin: 10px 0 0; font-size: 15px; font-weight: 500; letter-spacing: .18em; }

.works-section { padding: 86px 0 120px; }
.map-box { margin: 0 auto 38px; border-radius: 8px; overflow: hidden; background: #eaf0f1; border: 1px solid #d9e0e2; }
.map-box__map {
  position: relative;
  aspect-ratio: 1100 / 430;
  min-height: 260px;
  background:
    linear-gradient(28deg, transparent 0 33%, rgba(160,176,184,.32) 33.2% 33.8%, transparent 34% 100%),
    linear-gradient(150deg, transparent 0 55%, rgba(160,176,184,.32) 55.2% 55.8%, transparent 56% 100%),
    linear-gradient(110deg, transparent 0 23%, rgba(160,176,184,.26) 23.2% 23.8%, transparent 24% 100%),
    radial-gradient(circle at 14% 80%, #d6e2e5 0 16%, transparent 16.2%),
    radial-gradient(circle at 88% 58%, #d5e0e3 0 22%, transparent 22.2%),
    #f0f5f6;
}
.map-box__map::before {
  content: "TOKYO     CHIBA     SAITAMA     KANAGAWA     IBARAKI";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(80,99,108,.35);
  font-size: clamp(11px, 2vw, 22px);
  letter-spacing: .4em;
  text-align: center;
}
.map-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  background: #26343b;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
}
.map-pin::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  left: 4.5px;
  top: 4.5px;
}
.map-pin.is-hidden { display: none; }

.filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.filter__button {
  min-width: 84px;
  padding: 8px 18px;
  border: 1px solid #d4d4d4;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 12px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.filter__button:hover,
.filter__button.is-active { color: #fff; background: #202020; border-color: #202020; }
.works-count { margin: 0 0 32px; text-align: center; color: var(--color-muted); font-size: 12px; }

.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 56px; margin-top: 24px; }
.works-card { transition: opacity .2s ease, transform .2s ease; }
.works-card.is-hidden { display: none; }
.works-card__thumb { display: block; overflow: hidden; border-radius: 5px; background: #eee; }
.works-card__thumb img { width: 100%; aspect-ratio: 340 / 210; object-fit: cover; transition: transform .35s ease; }
.works-card__thumb:hover img { transform: scale(1.04); }
.works-card__category { margin: 18px 0 8px; color: #777; font-size: 12px; font-weight: 700; }
.works-card__title { margin: 0 0 14px; font-size: 15px; line-height: 1.6; letter-spacing: .07em; }
.works-card__info { margin: 0; font-size: 12px; }
.works-card__info div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; }
.works-card__info dt { color: #777; }
.works-card__info dd { margin: 0; }
.works-empty { margin: 60px 0 0; padding: 40px 24px; text-align: center; background: var(--color-bg); border: 1px solid var(--color-line); }

.table-wrap { margin-top: 82px; overflow-x: auto; }
.works-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 13px; }
.works-table th,
.works-table td { padding: 18px 20px; border: 1px solid var(--color-line); text-align: left; vertical-align: middle; }
.works-table th { background: #f3f3f3; font-weight: 700; text-align: center;}
.works-table td { background: #fff; }
.works-table tr.is-hidden { display: none; }
.works-table tbody tr:hover td { background: #fafafa; }

.contact-cta { color: #fff; background: linear-gradient(rgba(0,0,0,.68), rgba(0,0,0,.68)), linear-gradient(120deg, #303030, #111); }
.contact-cta__inner {
  width: min(100% - 48px, 1100px);
  margin-inline: auto;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.contact-cta__en { margin: 0 0 8px; font-size: 12px; color: #aaa; }
.contact-cta h2 { margin: 0 0 10px; font-size: clamp(20px, 3vw, 30px); }
.contact-cta p { margin-top: 0; }
.contact-cta__right { display: flex; align-items: center; gap: 32px; flex-shrink: 0; }
.contact-cta__tel { font-size: 22px; font-weight: 700; letter-spacing: .08em; }
.button-white { display: inline-flex; align-items: center; justify-content: center; min-width: 160px; padding: 14px 24px; color: #111; background: #fff; border-radius: 3px; font-weight: 700; font-size: 12px; }

.site-footer { padding: 72px 0 34px; color: #fff; background: var(--color-dark); }
.site-footer__inner { width: min(100% - 48px, 1100px); margin-inline: auto; display: flex; justify-content: space-between; gap: 48px; }
.site-footer__address { margin-top: 34px; color: #bbb; font-size: 12px; }
.footer-nav { display: grid; gap: 14px; color: #ddd; font-size: 12px; }
.copyright { width: min(100% - 48px, 1100px); margin: 54px auto 0; color: #777; font-size: 11px; text-align: right; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .global-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height);
    display: none;
    padding: 28px 24px;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
  }
  .global-nav.is-open { display: grid; gap: 18px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 42px 28px; }
  .contact-cta__inner { display: grid; padding: 42px 0; }
  .contact-cta__right { justify-content: space-between; }
}

@media (max-width: 640px) {
  .container,
  .site-header__inner,
  .page-hero__inner,
  .contact-cta__inner,
  .site-footer__inner,
  .copyright { width: min(100% - 32px, 1100px); }
  .page-hero { min-height: 280px; }
  .works-section { padding: 54px 0 78px; }
  .map-box__map { min-height: 210px; }
  .filter { justify-content: flex-start; gap: 8px; }
  .filter__button { min-width: auto; padding: 7px 14px; }
  .works-grid { grid-template-columns: 1fr; gap: 38px; }
  .table-wrap { margin-top: 60px; }
  .contact-cta__right { display: grid; gap: 16px; }
  .site-footer__inner { display: grid; }
  .copyright { text-align: left; }
}
