:root {
  --paper: #f6f3ec;
  --plaster: #d8d5cc;
  --earth: #b89b72;
  --helmet: #f2c230;
  --ink: #24211e;
  --green: #4f7d5a;
  --copper: #c8753d;
  --white: #fffdf8;
  --line: rgba(36, 33, 30, .16);
  --shadow: 0 18px 42px rgba(36, 33, 30, .12);
  --container: min(1180px, calc(100vw - 48px));
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Yu Gothic UI", Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(246, 243, 236, .92);
  border-bottom: 1px solid rgba(216, 213, 204, .75);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 210px;
  line-height: 1.1;
}

.brand__mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  flex: 0 0 auto;
  background: var(--helmet);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(36, 33, 30, .12);
}

.brand__mark svg {
  display: none;
}

.brand__mark::before {
  position: absolute;
  width: 20px;
  height: 12px;
  background: var(--white);
  border: 2px solid currentColor;
  border-radius: 2px 9px 9px 2px;
  content: "";
  transform: rotate(-18deg);
}

.brand__mark::after {
  position: absolute;
  right: 6px;
  bottom: 8px;
  width: 13px;
  height: 3px;
  background: currentColor;
  border-radius: 999px;
  content: "";
  transform: rotate(32deg);
}

.brand strong {
  display: block;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 900;
}

.brand small {
  display: block;
  margin-top: 6px;
  font-size: .72rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.7vw, 40px);
  font-weight: 900;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 3px;
  background: var(--helmet);
  content: "";
  transform: scaleX(0);
  transition: transform .22s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px !important;
  color: var(--ink);
  background: var(--helmet);
  border-radius: var(--radius);
  box-shadow: 0 12px 20px rgba(242, 194, 48, .25);
  transition: transform .22s ease, box-shadow .22s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 26px rgba(242, 194, 48, .28);
}

.nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  padding: 8px 12px;
  font-weight: 900;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, .72fr) 1fr;
  min-height: calc(100vh - 80px);
  overflow: hidden;
  background: var(--white);
}

.home-hero__copy {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: clamp(64px, 8vw, 112px) 7vw;
  background:
    linear-gradient(90deg, rgba(246, 243, 236, .98) 0%, rgba(246, 243, 236, .88) 78%, transparent 100%),
    radial-gradient(circle at 20% 20%, rgba(184,155,114,.14), transparent 30%);
}

.home-hero__copy h1 {
  max-width: 480px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 1.22;
}

.home-hero__copy p {
  max-width: 420px;
  font-weight: 800;
}

.home-hero__image {
  position: absolute;
  inset: 0 0 0 30%;
  width: 70%;
  height: 100%;
  animation: heroFade 1s ease both;
}

.eyebrow,
.breadcrumb {
  color: var(--copper);
  font-size: .9rem;
  font-weight: 900;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.button::after {
  margin-left: 18px;
  content: "→";
}

.button:hover {
  transform: translateY(-3px);
}

.button--primary {
  background: var(--helmet);
  border-color: var(--helmet);
  box-shadow: 0 14px 26px rgba(242, 194, 48, .3);
}

.button--ghost {
  background: rgba(255, 253, 248, .82);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 8vw, 116px) 0;
}

.band {
  width: 100%;
  padding-right: max(24px, calc((100vw - 1180px) / 2));
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(180deg, rgba(255,253,248,.9), rgba(246,243,236,.95)),
    var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading h2,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1.25;
}

.section-heading h2::after {
  display: block;
  width: 36px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--helmet);
  content: "";
}

.section-heading p {
  margin-top: 16px;
  color: rgba(36,33,30,.72);
  font-weight: 700;
}

body:has(.site-nav a[href="staff.html"][aria-current="page"]) .section-heading h2 {
  font-size: clamp(1.55rem, 4.8vw, 3.2rem);
  white-space: nowrap;
}

.cards {
  display: grid;
  gap: 28px;
}

.cards--three {
  grid-template-columns: repeat(3, 1fr);
}

.cards--four {
  grid-template-columns: repeat(4, 1fr);
}

.image-card,
.project-card,
.staff-card,
.reason-detail {
  overflow: hidden;
  background: rgba(255, 253, 248, .92);
  border: 1px solid rgba(216, 213, 204, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .24s ease, box-shadow .24s ease;
}

.image-card:hover,
.project-card:hover,
.staff-card:hover,
.reason-detail:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(36,33,30,.15);
}

.image-card img,
.project-card img,
.staff-card img,
.reason-detail img {
  width: 100%;
  aspect-ratio: 4 / 3;
  transition: transform .5s ease;
}

.project-card img,
.works-strip img {
  object-fit: contain;
  background: #ebe4d8;
}

.project-card img {
  padding: 8px;
}

.image-card:hover img,
.project-card:hover img,
.staff-card:hover img,
.reason-detail:hover img {
  transform: scale(1.035);
}

.image-card div,
.project-card,
.staff-card,
.reason-detail {
  padding: 22px;
}

.image-card h3,
.project-card h3,
.staff-card h3,
.reason-detail h2 {
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 900;
}

.image-card p,
.project-card p,
.staff-card p,
.reason-detail p {
  margin-top: 10px;
  color: rgba(36,33,30,.75);
  font-weight: 700;
}

.services-catalog b,
.reason-detail b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  margin-bottom: 12px;
  color: var(--white);
  background: var(--copper);
  border-radius: 4px;
  font-weight: 900;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.reason-item {
  min-height: 210px;
  padding: 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.reason-item:last-child {
  border-right: 0;
}

.line-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  color: #76572e;
}

.line-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reason-item h3 {
  font-size: 1.12rem;
  font-weight: 900;
}

.reason-item p {
  margin-top: 8px;
  color: rgba(36,33,30,.7);
  font-size: .94rem;
  font-weight: 700;
}

.works-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  overflow: hidden;
  border-radius: var(--radius);
}

.works-strip img {
  width: 100%;
  aspect-ratio: 1 / .78;
  padding: 6px;
}

.center {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.contact-band {
  display: grid;
  grid-template-columns: 170px 1fr auto auto;
  gap: 28px;
  align-items: center;
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(184,155,114,.22), rgba(246,243,236,.96)),
    var(--paper);
  border-top: 1px solid var(--line);
}

.contact-band img {
  align-self: end;
  max-height: 170px;
  object-fit: contain;
}

.contact-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 900;
}

.phone {
  display: grid;
  font-size: clamp(1.4rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.phone small {
  margin-top: 8px;
  font-size: .78rem;
  font-weight: 800;
}

.page-hero {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--paper);
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: heroFade 1s ease both;
}

.page-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246,243,236,.97) 0%, rgba(246,243,236,.84) 42%, rgba(246,243,236,.14) 72%);
  content: "";
}

.page-hero__copy {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  max-width: 760px;
  justify-self: start;
}

.page-hero__copy h1 {
  margin-top: 28px;
}

.page-hero__copy p:last-child {
  max-width: 640px;
  margin-top: 22px;
  font-size: 1.1rem;
  font-weight: 800;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.filter-tabs button {
  min-width: 120px;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(216,213,204,.48);
  font-weight: 900;
}

.filter-tabs button:first-child {
  background: var(--helmet);
}

.project-card {
  position: relative;
}

.project-card span {
  display: inline-flex;
  margin: 14px 0 8px;
  padding: 4px 10px;
  color: var(--white);
  background: var(--green);
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 900;
}

.reason-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 54px;
  align-items: center;
}

.portrait {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split h2 {
  margin: 12px 0 20px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.45;
}

.company-table {
  max-width: 880px;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255,253,248,.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.company-table div {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--line);
}

.company-table div:last-child {
  border-bottom: 0;
}

.company-table b,
.company-table span {
  padding: 18px 22px;
}

.company-table b {
  background: rgba(216,213,204,.36);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.staff-card {
  text-align: center;
}

.staff-card img {
  width: 100%;
  margin: 0 0 18px;
  padding: 8px;
  object-fit: contain;
  object-position: center top;
  background: #ebe4d8;
  border-radius: 6px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 28px;
}

.contact-form,
.contact-side > div {
  padding: 30px;
  background: rgba(255,253,248,.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form h2,
.contact-side h2 {
  font-size: 1.6rem;
  font-weight: 900;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.contact-form label span {
  justify-self: start;
  padding: 1px 7px;
  color: var(--white);
  background: var(--copper);
  border-radius: 3px;
  font-size: .75rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--white);
  border: 1px solid rgba(36,33,30,.2);
  border-radius: 6px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(242,194,48,.34);
  border-color: var(--helmet);
}

.contact-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form legend {
  padding: 0 8px;
  font-weight: 900;
}

.contact-form fieldset label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
}

.upload-box {
  place-items: center;
  min-height: 140px;
  padding: 24px;
  text-align: center;
  border: 1px dashed rgba(36,33,30,.34);
  border-radius: var(--radius);
}

.upload-box input {
  max-width: 280px;
}

.contact-side {
  display: grid;
  gap: 20px;
}

.line-box {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), #2f6a3c) !important;
}

.line-box .button {
  margin-top: 16px;
  color: var(--ink);
}

.site-footer {
  padding: 34px 24px;
  color: var(--white);
  text-align: center;
  background: var(--ink);
}

.site-footer p + p,
.site-footer small {
  color: rgba(255,255,255,.72);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

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

@keyframes heroFade {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1040px) {
  .cards--four,
  .reason-detail-grid,
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reason-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-band,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 70px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav-toggle {
    display: inline-flex;
    min-height: 38px;
    padding: 5px 9px;
    font-size: .82rem;
    line-height: 1;
  }

  .site-nav {
    position: absolute;
    right: 18px;
    top: calc(100% + 10px);
    display: none;
    width: min(320px, calc(100vw - 36px));
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 8px;
  }

  .home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .home-hero__copy {
    min-height: 560px;
    padding: 56px 24px;
    background: linear-gradient(180deg, rgba(246,243,236,.96), rgba(246,243,236,.78));
  }

  .home-hero__image {
    inset: 0;
    width: 100%;
    opacity: .42;
  }

  .page-hero {
    min-height: 420px;
  }

  .page-hero::after {
    background: linear-gradient(90deg, rgba(246,243,236,.96), rgba(246,243,236,.72));
  }

  .cards--three,
  .cards--four,
  .reason-grid,
  .reason-detail-grid,
  .works-strip,
  .staff-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .reason-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .company-table div {
    grid-template-columns: 1fr;
  }

  .contact-form fieldset {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: clamp(1.55rem, 7.2vw, 2rem);
  }

  body:has(.site-nav a[href="staff.html"][aria-current="page"]) .section-heading h2 {
    font-size: clamp(1.24rem, 6vw, 1.55rem);
  }

  .staff-grid + .center,
  .staff-card p {
    font-size: .95rem;
  }
}

@media (max-width: 420px) {
  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
    border-radius: 7px;
  }

  .brand strong {
    font-size: 1.18rem;
  }

  .brand small {
    font-size: .62rem;
  }

  .nav-toggle {
    padding: 4px 8px;
    font-size: .76rem;
  }

  .staff-card img {
    aspect-ratio: 4 / 3.35;
  }

  body:has(.site-nav a[href="staff.html"][aria-current="page"]) .section-heading h2 {
    font-size: clamp(1.05rem, 5.2vw, 1.28rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
