:root {
  --green-900: #0d2e1f;
  --green-800: #123b29;
  --green-700: #1f563a;
  --green-500: #3f7651;
  --moss: #74836b;
  --gold: #b79a63;
  --wood: #76583d;
  --paper: #fbfaf6;
  --paper-2: #f2efe7;
  --line: #ddd3c5;
  --ink: #1d241f;
  --muted: #5b625b;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(21, 31, 24, 0.14);
  --radius: 8px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.sprite {
  display: none;
}

.sprite symbol,
svg {
  fill: currentColor;
}

.mark-cut {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--green-900);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
}

.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: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(28, 54, 39, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--green-800);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.7rem);
  font-weight: 800;
  white-space: nowrap;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.brand--footer {
  color: var(--white);
  font-size: 1.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  font-family: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.02rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(18, 59, 41, 0.16);
  border-radius: 8px;
  background: var(--white);
  color: var(--green-800);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: clamp(520px, 62vw, 720px);
  overflow: hidden;
  isolation: isolate;
  background: var(--green-900);
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -3;
  background-image: url("assets/hero-forest.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 33, 21, 0.84) 0%, rgba(9, 33, 21, 0.7) 35%, rgba(9, 33, 21, 0.22) 66%, rgba(9, 33, 21, 0.06) 100%),
    linear-gradient(0deg, rgba(6, 24, 15, 0.38) 0%, rgba(6, 24, 15, 0) 35%);
}

.hero__inner {
  width: min(var(--content), calc(100% - 48px));
  min-height: inherit;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 82px;
  color: var(--white);
}

.hero__lead {
  order: 2;
  margin: 26px 0 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.55rem, 1.05rem + 1.8vw, 2.8rem);
  font-weight: 800;
}

.hero h1 {
  order: 1;
  max-width: 980px;
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2.15rem, 1.3rem + 2.6vw, 4rem);
  font-weight: 800;
  line-height: 1.36;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.28);
}

.hero__copy {
  order: 3;
  margin: 10px 0 0;
  font-weight: 700;
  font-size: clamp(0.95rem, 0.82rem + 0.4vw, 1.18rem);
}

.section {
  padding: clamp(54px, 7vw, 92px) 0;
}

.section__inner {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--green-800);
  font-weight: 800;
  font-size: 0.92rem;
}

.section-kicker::before {
  width: 34px;
  height: 2px;
  background: currentColor;
  content: "";
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading--center {
  text-align: center;
}

.section-heading--center .section-kicker {
  justify-content: center;
}

.section-heading--center .section-kicker::after {
  width: 34px;
  height: 2px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  color: var(--green-800);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.9rem, 1.35rem + 1.9vw, 3.3rem);
  line-height: 1.38;
}

h3 {
  margin: 0;
  color: var(--green-800);
  line-height: 1.45;
}

.overview {
  background: var(--paper);
}

.overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(480px, 1.15fr);
  gap: clamp(32px, 7vw, 84px);
  align-items: center;
}

.overview__text p:not(.section-kicker) {
  max-width: 620px;
  margin: 16px 0 0;
  color: #2d3830;
  font-weight: 600;
}

.overview__photos {
  display: grid;
  grid-template-columns: 1.55fr 0.9fr 0.72fr;
  gap: 8px;
  min-height: 230px;
}

.overview__photo {
  width: 100%;
  height: 100%;
  min-height: 228px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(31, 54, 39, 0.12);
}

.service {
  padding-top: clamp(32px, 5vw, 68px);
  background: linear-gradient(180deg, var(--paper) 0%, #f8f5ee 100%);
}

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

.service-card {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(76px, 0.48fr);
  min-height: 84px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(37, 46, 40, 0.06);
}

.service-card__label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 16px 12px;
}

.service-card__label svg {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: var(--green-700);
}

.service-card h3 {
  min-width: max-content;
  font-size: clamp(0.94rem, 0.9rem + 0.16vw, 1.06rem);
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

.service-card img {
  width: 100%;
  height: 100%;
  min-height: 84px;
  object-fit: cover;
}

.works {
  background: var(--paper);
  border-top: 1px solid rgba(32, 64, 44, 0.08);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.work-card {
  display: grid;
  grid-template-rows: 180px 1fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.work-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.work-card div {
  padding: 20px;
}

.work-card__tag {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 3px 10px;
  background: #edf3eb;
  border: 1px solid #d5dfd1;
  color: var(--green-800);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.work-card p:not(.work-card__tag) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.strengths {
  background:
    linear-gradient(180deg, #f5f1e9 0%, #fbfaf6 100%);
}

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

.strength-card {
  position: relative;
  overflow: hidden;
  min-height: 304px;
  background: var(--white);
  border: 1px solid rgba(218, 208, 193, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(37, 46, 40, 0.08);
}

.strength-card img {
  width: 100%;
  height: 105px;
  object-fit: cover;
}

.strength-card__icon {
  position: absolute;
  left: 18px;
  top: 70px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 6px solid var(--white);
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.16);
}

.strength-card__icon svg {
  width: 28px;
  height: 28px;
}

.strength-card h3 {
  padding: 42px 18px 0;
  font-size: 1.06rem;
}

.strength-card p {
  margin: 10px 0 0;
  padding: 0 18px 22px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.72;
}

.support {
  padding-top: clamp(42px, 6vw, 70px);
  background: var(--paper);
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(37, 46, 40, 0.05);
}

.scope-list svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--green-700);
}

.about {
  padding-top: clamp(30px, 4vw, 60px);
  background: var(--paper);
}

.company-panel {
  display: grid;
  grid-template-columns: 1fr 0.95fr 1.55fr;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #bea982;
  border-radius: var(--radius);
}

.company-item {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 86px;
  padding: 20px 26px;
  border-right: 1px solid var(--line);
}

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

.company-item svg {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  color: var(--gold);
}

.company-item span {
  display: block;
  color: var(--green-700);
  font-size: 0.82rem;
  font-weight: 900;
}

.company-item strong {
  display: block;
  margin-top: 2px;
  font-size: 1.04rem;
  line-height: 1.5;
}

.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 92px) 0;
  background: var(--green-900);
  color: var(--white);
  isolation: isolate;
}

.contact::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/hero-forest.png");
  background-position: center 68%;
  background-size: cover;
  content: "";
}

.contact::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 34, 22, 0.96), rgba(13, 55, 36, 0.9));
  content: "";
}

.contact__inner {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(460px, 1.1fr);
  gap: clamp(32px, 7vw, 72px);
  align-items: start;
}

.contact .section-kicker,
.contact h2 {
  color: var(--white);
}

.contact__message p:not(.section-kicker) {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-form__wide,
.form-status {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 126px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(183, 154, 99, 0.28);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: var(--gold);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: #c8ab72;
  transform: translateY(-1px);
}

.button svg {
  width: 24px;
  height: 24px;
}

.form-status {
  min-height: 1.6em;
  margin: 0;
  color: #f2dfb2;
  font-weight: 800;
}

.site-footer {
  background:
    linear-gradient(0deg, rgba(74, 48, 30, 0.94), rgba(94, 65, 43, 0.92)),
    linear-gradient(90deg, var(--wood), #5d432f);
  color: var(--white);
}

.site-footer__inner {
  width: min(var(--content), calc(100% - 48px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 22px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 0.94rem;
}

.footer-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 1080px) {
  .service-grid,
  .scope-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strength-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview__grid,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .overview__photos {
    min-height: 220px;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 64px;
    padding: 0 18px;
  }

  .brand {
    font-size: 1.18rem;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    display: grid;
    gap: 4px;
    padding: 14px;
    background: var(--white);
    border: 1px solid rgba(18, 59, 41, 0.14);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 48px;
    padding: 0 10px;
  }

  .site-nav a::after {
    bottom: 5px;
  }

  .hero {
    min-height: 580px;
  }

  .hero__media {
    background-position: 60% center;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(9, 33, 21, 0.9) 0%, rgba(9, 33, 21, 0.7) 62%, rgba(9, 33, 21, 0.2) 100%),
      linear-gradient(0deg, rgba(6, 24, 15, 0.45) 0%, rgba(6, 24, 15, 0) 40%);
  }

  .section__inner,
  .hero__inner,
  .contact__inner,
  .site-footer__inner {
    width: min(100% - 32px, var(--content));
  }

  .overview__photos {
    grid-template-columns: 1fr 1fr;
  }

  .overview__photo--wide {
    grid-column: 1 / -1;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 0;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  body {
    line-height: 1.75;
  }

  .hero {
    min-height: 560px;
  }

  .hero__inner {
    padding: 70px 0 64px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 7.6vw, 2.2rem);
    line-height: 1.5;
    word-break: break-all;
  }

  h2 {
    word-break: break-all;
  }

  .hero__lead {
    font-size: 1.5rem;
  }

  .section {
    padding: 48px 0;
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.45rem);
  }

  .overview__photos,
  .service-grid,
  .scope-list,
  .strength-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .overview__photo {
    min-height: 190px;
  }

  .service-card {
    grid-template-columns: minmax(150px, 1fr) 116px;
  }

  .service-card__label {
    padding: 14px;
  }

  .work-card {
    grid-template-rows: 160px 1fr;
  }

  .work-card img {
    height: 160px;
  }

  .strength-card {
    min-height: 0;
  }

  .contact-form {
    padding: 16px;
  }
}

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