:root {
  --paper: #f6f5f1;
  --surface: #ffffff;
  --ink: #191716;
  --sub: #5f5b54;
  --soft: #e6e1d8;
  --line: #d8d1c5;
  --accent: #d45221;
  --accent-dark: #983817;
  --olive: #5c654b;
  --steel: #40505b;
  --footer: #171513;
  --footer-text: #f4f0e8;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, dt, dd, th, td, li, a, span {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, auto) 1fr;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 10px 48px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}
.brand img { width: 108px; height: auto; padding: 3px 0; }
.brand span { white-space: nowrap; font-size: 14px; }
.site-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 800;
}
.nav-link {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}
.nav-link.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #161413;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.66), rgba(0,0,0,.24) 58%, rgba(0,0,0,.08)),
    url("../img/office-hero.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}
.hero-content {
  position: relative;
  width: min(980px, calc(100% - 96px));
  margin: 0 0 72px 48px;
  color: #fff;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}
.hero .eyebrow { color: #ffb18b; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 16px;
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 16px;
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: 0;
}
h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0;
}
.hero-copy {
  max-width: 760px;
  margin-bottom: 28px;
  color: #f6eee6;
  font-size: 19px;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1.2;
}
.button-primary {
  background: var(--accent);
  color: #fff;
}
.button-secondary {
  border: 1px solid rgba(255,255,255,.72);
  color: #fff;
  background: rgba(255,255,255,.08);
}

.section {
  padding: 78px 48px;
}
.section-muted {
  background: #eeebe4;
}
.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}
.section-title {
  max-width: 800px;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section-title p:last-child {
  margin-bottom: 0;
  color: var(--sub);
}
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 58px;
  align-items: start;
}
.split-layout.reverse {
  grid-template-columns: minmax(430px, 520px) minmax(0, 1fr);
}
.copy-block p:last-child { margin-bottom: 0; }
.lead {
  color: #2a2723;
  font-size: 20px;
  font-weight: 800;
}
.framed-photo {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.framed-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.service-card {
  min-height: 204px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.service-card h3 {
  color: var(--accent-dark);
}
.service-card p {
  margin-bottom: 0;
  color: var(--sub);
  font-size: 14px;
}

.work-strip {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  border-top: 1px solid var(--line);
}
.work-strip-card {
  display: grid;
  grid-template-columns: 128px 1fr 140px;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.work-strip-card span {
  color: var(--accent-dark);
  font-weight: 900;
  font-size: 13px;
}
.work-strip-card h3 {
  margin: 0;
  font-size: 17px;
}
.work-strip-card p {
  margin: 0;
  color: var(--sub);
  text-align: right;
  font-size: 14px;
}
.text-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--accent-dark);
  font-weight: 900;
  border-bottom: 2px solid var(--accent);
}
.photo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-self: stretch;
}
.photo-stack img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.instagram-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.instagram-panel h2 {
  margin-bottom: 12px;
}
.instagram-panel p:last-child {
  margin-bottom: 0;
  color: var(--sub);
}
.instagram-links {
  display: grid;
  justify-items: start;
  gap: 14px;
}
.instagram-links .button {
  min-width: 220px;
}

.definition-table, .conditions-table, .contact-mini {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
}
.definition-table div, .conditions-table div, .contact-mini div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
dt {
  color: var(--sub);
  font-weight: 900;
}
dd { margin: 0; }

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: end;
  padding: 72px max(48px, calc((100vw - 1120px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.page-hero > div {
  width: min(720px, 100%);
  margin-left: 0;
}
.simple-page-hero {
  grid-template-columns: minmax(0, 1120px);
  align-items: start;
  justify-content: center;
  padding-top: 68px;
  padding-bottom: 68px;
}
.simple-page-hero > div {
  width: 100%;
}
.page-hero h1 {
  color: var(--ink);
  font-size: 44px;
}
.page-hero p:last-child {
  color: var(--sub);
  font-size: 18px;
  margin-bottom: 0;
}
.page-photo {
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
}
.page-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}
.works-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: var(--surface);
}
.works-table th, .works-table td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.works-table thead th {
  background: var(--footer);
  color: var(--footer-text);
  font-size: 14px;
}
.works-table tbody th {
  color: var(--accent-dark);
  width: 230px;
  white-space: nowrap;
}
.works-table td:nth-child(2) {
  width: 180px;
  color: var(--sub);
}
.works-table tr:last-child th,
.works-table tr:last-child td {
  border-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery-item figcaption {
  padding: 14px 15px 16px;
}
.gallery-item strong {
  display: block;
  margin-bottom: 4px;
}
.gallery-item span {
  color: var(--sub);
  font-size: 14px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.chip-list li {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: #312d28;
  font-weight: 800;
  font-size: 14px;
}

.recruit-page-hero { background: var(--surface); }
.conditions-table {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  background: var(--surface);
}
.conditions-table div {
  grid-template-columns: 128px 1fr;
  gap: 16px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.conditions-table .condition-wide {
  grid-column: span 2;
}
.conditions-table dt {
  color: var(--accent-dark);
  font-size: 13px;
  letter-spacing: 0;
}
.conditions-table dd {
  font-weight: 800;
  line-height: 1.75;
}
.recruit-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 48px;
  align-items: start;
}
.contact-mini {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  padding-left: 22px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  padding: 38px 48px;
  background: var(--footer);
  color: var(--footer-text);
}
.footer-brand img {
  width: 138px;
  margin-bottom: 12px;
  background: #fff;
}
.footer-brand p {
  margin-bottom: 4px;
  font-weight: 800;
}
.footer-address {
  color: #d7d0c5;
  font-weight: 400;
}
.footer-contact {
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 360px;
}
.footer-contact div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
}
.footer-contact dt {
  color: #c9c0b5;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 10px 22px;
    gap: 12px;
  }
  .brand span { display: none; }
  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .hero {
    min-height: 580px;
  }
  .hero-content {
    width: calc(100% - 44px);
    margin: 0 22px 54px;
  }
  h1 { font-size: 42px; }
  h2 { font-size: 30px; }
  .section { padding: 58px 22px; }
  .section-inner,
  .page-hero > div,
  .page-photo,
  .framed-photo,
  .table-wrap {
    max-width: calc(100vw - 44px);
  }
  .split-layout,
  .split-layout.reverse,
  .page-hero,
  .recruit-contact {
    grid-template-columns: 1fr;
  }
  .page-hero {
    padding: 52px 22px;
    width: 100%;
    overflow: hidden;
  }
  .page-hero > div {
    width: 100%;
    margin-left: 0;
  }
  .page-photo,
  .page-photo img,
  .framed-photo,
  .framed-photo img {
    width: 100%;
  }
  .service-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .instagram-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: calc(100vw - 44px);
  }
  .instagram-links {
    justify-items: stretch;
  }
  .instagram-links .button {
    width: 100%;
    min-width: 0;
    max-width: 320px;
  }
  .conditions-table {
    grid-template-columns: 1fr;
  }
  .conditions-table .condition-wide {
    grid-column: auto;
  }
  .photo-stack img {
    height: auto;
    min-height: 280px;
  }
  .site-footer {
    grid-template-columns: 1fr;
    padding: 34px 22px;
  }
  .footer-contact {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .brand img { width: 86px; }
  .site-nav {
    font-size: 13px;
  }
  .hero {
    min-height: 540px;
  }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .hero-copy, .page-hero p:last-child, .lead {
    font-size: 16px;
  }
  .service-grid,
  .gallery-grid,
  .photo-stack {
    grid-template-columns: 1fr;
  }
  .work-strip-card,
  .definition-table div,
  .conditions-table div,
  .contact-mini div,
  .footer-contact div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .work-strip-card p {
    text-align: left;
  }
  .photo-stack img {
    height: auto;
    min-height: 0;
  }
}
