:root {
  --ink: #202321;
  --muted: #747872;
  --line: #d9dbd7;
  --paper: #ffffff;
  --soft: #f2f3f1;
  --deep: #3e403f;
  --accent: #a75d3b;
  --content: 1120px;
  --side: clamp(22px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { color: inherit; font: inherit; }

.site-header {
  height: 82px;
  padding: 0 var(--side);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.96);
  position: relative;
  z-index: 20;
}
.brand {
  display: inline-block;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1;
}
.desktop-nav, .footer-nav { display: flex; gap: 34px; }
.desktop-nav a, .footer-nav a {
  font-size: 12px;
  letter-spacing: .08em;
  transition: opacity .2s ease;
}
.desktop-nav a:hover, .footer-nav a:hover { opacity: .5; }
.menu-button { display: none; }

.hero {
  width: min(calc(100% - (var(--side) * 2)), 1260px);
  min-height: min(72vw, 720px);
  margin: 12px auto 0;
  position: relative;
  overflow: hidden;
  background: #17201c;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,12,10,.22), transparent 55%);
}
.hero > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}
.hero-copy {
  position: absolute;
  z-index: 1;
  top: 74px;
  left: 30px;
  margin: 0;
  display: flex;
  flex-direction: row-reverse;
  gap: 8px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(25px, 2.3vw, 37px);
  font-weight: 400;
  line-height: 1.55;
}
.hero-copy span {
  writing-mode: vertical-rl;
  background: rgba(255,255,255,.93);
  padding: 16px 9px;
}
.hero-scroll {
  position: absolute;
  right: 18px;
  bottom: 8px;
  z-index: 1;
  color: white;
  font-size: 9px;
  letter-spacing: .14em;
}

.section {
  width: min(calc(100% - (var(--side) * 2)), var(--content));
  margin: 0 auto;
  padding: 150px 0;
}
.section-heading { margin-bottom: 68px; }
.section-heading--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
  line-height: 1;
}
.section h2, .contact-band h2, .page-hero h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 400;
  line-height: 1.45;
}
.section-note {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.about { padding-top: 190px; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
  gap: clamp(58px, 9vw, 120px);
  align-items: end;
}
.about-copy { max-width: 570px; }
.about-copy p { margin: 0 0 1.7em; }
.about-image { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.about-image img { height: 100%; object-fit: cover; }

.services {
  width: 100%;
  max-width: none;
  padding-left: var(--side);
  padding-right: var(--side);
  background: var(--soft);
}
.services > * { width: min(100%, var(--content)); margin-left: auto; margin-right: auto; }
.service-list { border-top: 1px solid #cfd1cd; }
.service-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(300px, .72fr);
  min-height: 330px;
  border-bottom: 1px solid #cfd1cd;
}
.service-number {
  padding-top: 46px;
  font-family: "Yu Mincho", serif;
  font-size: 15px;
}
.service-body { padding: 42px clamp(24px, 4vw, 64px) 42px 0; }
.service-kicker {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}
.service-title {
  margin: 0 0 22px;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.5;
}
.service-description { margin: 0; color: #555a55; font-size: 14px; }
.service-image { min-height: 330px; margin: 0; overflow: hidden; }
.service-image img { height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-item:hover .service-image img { transform: scale(1.025); }

.works-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px 32px; }
.work-card { border-top: 1px solid var(--line); padding-top: 18px; }
.work-card__link, .work-card__content { display: block; }
.work-card img {
  aspect-ratio: 16/10;
  object-fit: cover;
  margin-bottom: 24px;
  transition: opacity .25s ease, transform .45s ease;
}
.work-card__meta { color: var(--muted); font-size: 12px; }
.work-card h3 { margin: 8px 0 10px; font-size: 22px; font-weight: 500; }
.work-card p { margin: 0; color: var(--muted); font-size: 14px; }
.work-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  letter-spacing: .06em;
}
.work-card--linked .work-card__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.work-card--linked .work-card__link:hover img { opacity: .9; transform: scale(1.015); }
.work-card--linked .work-card__link:hover .work-card__cta { color: var(--accent); }

.company-list { margin: 0; border-top: 1px solid var(--line); }
.company-list div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.company-list dt { color: var(--muted); font-size: 13px; }
.company-list dd { margin: 0; }

.contact-band {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eceeeb;
}
.contact-band__image {
  background: url("./assets/images/contact.webp") center / cover no-repeat;
}
.contact-band__body {
  padding: clamp(72px, 9vw, 140px) var(--side);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-band h2 { font-size: clamp(30px, 3.6vw, 48px); }
.contact-band__body > p:not(.eyebrow) { margin: 28px 0 36px; color: var(--muted); }
.text-link {
  width: fit-content;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
}
.text-link span { margin-left: 28px; }

.site-footer {
  min-height: 300px;
  padding: 78px var(--side);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: end;
  color: #f7f7f4;
  background: var(--deep);
}
.brand--light { margin-bottom: 36px; }
.footer-mail { display: block; color: #d0d2ce; font-size: 14px; }
.site-footer > div:last-child { display: flex; flex-direction: column; align-items: flex-end; gap: 40px; }
.privacy-link { color: #d0d2ce; font-size: 12px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 26px 24px 52px;
  color: white;
  background: #303331;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; }
.menu-close { border: 0; padding: 4px; color: white; background: transparent; font-size: 38px; font-weight: 200; line-height: 1; }
.mobile-menu nav { margin-top: 68px; display: flex; flex-direction: column; }
.mobile-menu nav a { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.22); font-size: 26px; letter-spacing: .06em; }

.page-main { min-height: 70vh; }
.page-hero {
  width: min(calc(100% - (var(--side) * 2)), var(--content));
  margin: 0 auto;
  padding: 120px 0 74px;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-content {
  width: min(calc(100% - (var(--side) * 2)), 820px);
  margin: 0 auto;
  padding: 84px 0 140px;
}
.contact-intro { margin: 0 0 56px; color: var(--muted); }
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 36px; }
.contact-options__title { grid-column: 1 / -1; margin: 0 0 2px; font-size: 13px; }
.contact-options label { padding: 18px; border: 1px solid var(--line); cursor: pointer; }
.contact-options input { margin-right: 10px; accent-color: var(--ink); }
.form-row { margin-bottom: 26px; }
.form-row label { display: block; margin-bottom: 8px; font-size: 13px; }
.form-row input, .form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 15px 16px;
  background: white;
  font: inherit;
}
.form-row textarea { min-height: 180px; resize: vertical; }
.submit-button {
  width: 100%;
  border: 1px solid var(--ink);
  padding: 17px 24px;
  color: white;
  background: var(--ink);
  cursor: pointer;
}
.form-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.policy h2 { margin: 60px 0 18px; font-family: "Yu Mincho", serif; font-size: 25px; font-weight: 400; }
.policy p, .policy li { color: #555a55; }
.policy ul { padding-left: 1.2em; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  :root { --side: 22px; }
  body { font-size: 15px; line-height: 1.85; }
  .site-header { height: 68px; }
  .desktop-nav { display: none; }
  .menu-button {
    width: 42px;
    height: 42px;
    border: 0;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    background: transparent;
  }
  .menu-button span { display: block; width: 30px; height: 1px; background: currentColor; }
  .hero { width: 100%; margin-top: 0; min-height: 66svh; }
  .hero::after { background: linear-gradient(0deg, rgba(5,8,7,.62), transparent 60%); }
  .hero > img { object-position: 57% center; }
  .hero-copy {
    top: auto;
    left: 18px;
    right: 18px;
    bottom: 40px;
    display: block;
    color: white;
    font-size: 24px;
    line-height: 1.55;
  }
  .hero-copy span {
    display: block;
    writing-mode: horizontal-tb;
    padding: 0;
    background: transparent;
    white-space: nowrap;
  }
  .hero-scroll { display: none; }
  .section { width: 100%; padding: 96px var(--side); }
  .section-heading { margin-bottom: 44px; }
  .section-heading--row { display: block; }
  .section-note { margin-top: 26px; }
  .section h2, .page-hero h1 { font-size: 34px; }
  .about { padding-top: 108px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-image { aspect-ratio: 4 / 3; }
  .services { padding-left: var(--side); padding-right: var(--side); }
  .service-item { grid-template-columns: 48px 1fr; min-height: 0; padding: 28px 0 34px; }
  .service-number { padding-top: 4px; }
  .service-body { padding: 0 0 28px; }
  .service-title { font-size: 23px; }
  .service-image { grid-column: 1 / -1; min-height: 0; aspect-ratio: 16 / 10; }
  .works-list { grid-template-columns: 1fr; gap: 54px; }
  .company-list div { grid-template-columns: 100px 1fr; gap: 18px; padding: 22px 0; }
  .contact-band { grid-template-columns: 1fr; min-height: 0; }
  .contact-band__image { min-height: 320px; }
  .contact-band__body { padding: 76px var(--side) 88px; }
  .contact-band h2 { font-size: 31px; }
  .site-footer { min-height: 0; grid-template-columns: 1fr; padding: 64px var(--side); gap: 58px; }
  .site-footer > div:last-child { align-items: flex-start; }
  .footer-nav { flex-wrap: wrap; gap: 18px 24px; }
  .page-hero { padding: 88px 0 52px; }
  .page-content { padding: 56px 0 100px; }
  .contact-options { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .hero-copy { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-image img { transition: none; }
}
