:root {
  --bg: #fafaf7;
  --bg-soft: #f1f3ee;
  --text: #1f2933;
  --muted: #5f6b75;
  --line: #d9ddd4;
  --green: #2f6b4f;
  --green-dark: #1f4c38;
  --blue: #2e5e7e;
  --amber: #b7791f;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(31, 41, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px 28px;
  color: var(--white);
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(250, 250, 247, 0.96);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(31, 41, 51, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 184px;
}

.brand-logo-frame {
  display: inline-flex;
  align-items: center;
  width: 184px;
  min-width: 184px;
}

.brand-logo {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-nav a:not(.nav-cta):hover,
.site-nav a:not(.nav-cta):focus-visible {
  color: #f1c46d;
}

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

.nav-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: 10px 18px !important;
  background: rgba(255, 255, 255, 0.96);
  color: var(--green-dark);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  font-weight: 900;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.site-header.is-scrolled .site-nav a:not(.nav-cta):hover,
.site-header.is-scrolled .site-nav a:not(.nav-cta):focus-visible,
.site-header.is-open .site-nav a:not(.nav-cta):hover,
.site-header.is-open .site-nav a:not(.nav-cta):focus-visible {
  color: var(--green);
}

.site-header.is-scrolled .nav-cta,
.site-header.is-open .nav-cta {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(47, 107, 79, 0.22);
}

.site-header.is-scrolled .nav-cta:hover,
.site-header.is-scrolled .nav-cta:focus-visible,
.site-header.is-open .nav-cta:hover,
.site-header.is-open .nav-cta:focus-visible {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 14px 30px rgba(47, 107, 79, 0.28);
}

.brand:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible,
.button:focus-visible,
.route:focus-visible {
  outline: 3px solid rgba(241, 196, 109, 0.8);
  outline-offset: 3px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100vw;
  min-height: 92vh;
  align-items: end;
  overflow: hidden;
  padding: 132px 28px 64px;
  color: var(--white);
  background-image: url("assets/field-land-use.jpg");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 35, 31, 0.9) 0%, rgba(17, 24, 39, 0.72) 48%, rgba(17, 24, 39, 0.38) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.72) 0%, rgba(17, 24, 39, 0.18) 44%, rgba(17, 24, 39, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
}

.hero .eyebrow {
  color: #f1c46d;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 28px;
  font-size: 4.75rem;
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

h1 span {
  display: block;
}

.hero-lead {
  width: 100%;
  max-width: 1020px;
  margin-bottom: 34px;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.hero-lead span {
  display: inline;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 13px 22px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.button-primary {
  background: var(--green);
  color: var(--white);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-dark);
}

.section .button-secondary,
.section-band .button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.hero-tags-heading {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.4;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 980px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 7px 11px;
  background: rgba(9, 35, 31, 0.52);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.section,
.section-band {
  padding: 92px 28px;
}

.section-band {
  background: var(--bg-soft);
}

.section-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.intro {
  padding-top: 64px;
  padding-bottom: 64px;
}

.intro-grid,
.company-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: start;
}

.intro-grid-full {
  grid-template-columns: 1fr;
  gap: 24px;
}

.intro-grid-full > p {
  max-width: 960px;
}

.intro h2,
.section-heading h2,
.service-copy h2,
.message-section h2,
.company-section h2 {
  margin-bottom: 18px;
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1.28;
}

.intro p,
.section-heading p,
.service-copy p,
.care-copy p,
.message-section p {
  color: var(--muted);
  font-size: 1.1rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-heading-full {
  max-width: none;
}

.section-heading.wide {
  max-width: 900px;
}

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

.principle {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(31, 41, 51, 0.04);
}

.number {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.principle h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
  font-weight: 900;
}

.principle p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.service-layout,
.message-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}

.large-copy {
  color: var(--text) !important;
  font-size: 1.45rem !important;
  font-weight: 800;
  line-height: 1.72;
}

.note {
  border-left: 4px solid var(--amber);
  padding: 14px 0 14px 18px;
  background: rgba(183, 121, 31, 0.08);
  color: var(--text) !important;
}

.service-media,
.message-media {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-media img {
  height: 560px;
  object-fit: cover;
}

.care-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}

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

.care-media {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.care-media img {
  height: 460px;
  object-fit: cover;
}

.focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.focus-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--text);
  font-weight: 800;
}

.technology-section {
  background: #e9efea;
}

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

.work-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border: 1px solid rgba(47, 107, 79, 0.18);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.message-media img {
  height: 430px;
  object-fit: cover;
}

.company-heading {
  margin-bottom: 28px;
}

.company-heading h2 {
  margin-bottom: 0;
}

.company-profile {
  max-width: 360px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.company-profile img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.company-list {
  margin: 0;
}

.company-list div {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.company-list div:last-child {
  border-bottom: 1px solid var(--line);
}

.company-list dt {
  color: var(--muted);
  font-weight: 800;
}

.company-list dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

@media (min-width: 981px) {
  .company-grid {
    grid-template-columns: minmax(0, 1.16fr) minmax(300px, 360px);
    align-items: center;
    column-gap: 64px;
  }

  .company-info {
    min-width: 0;
  }

  .company-profile {
    justify-self: end;
    width: 100%;
  }
}

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

.route {
  display: grid;
  min-height: 170px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.route:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(31, 41, 51, 0.1);
}

.route span {
  color: var(--muted);
  font-weight: 800;
}

.route strong {
  color: var(--green);
  font-size: 1.25rem;
  line-height: 1.45;
}

.site-footer {
  padding: 28px;
  background: var(--text);
  color: var(--white);
}

.footer-inner {
  display: flex;
  width: 100%;
  max-width: 1120px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 76px;
    padding: 12px 82px 12px 18px;
  }

  .nav-toggle {
    position: fixed;
    top: 16px;
    right: 28px;
    z-index: 30;
    display: inline-flex !important;
    flex: 0 0 44px;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(31, 76, 56, 0.9);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transform: translateZ(0);
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible,
  .site-header.is-open .nav-toggle {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.9);
    background: var(--green);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  }

  .site-nav {
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 13px 10px;
  }

  .nav-cta {
    margin-top: 6px;
    text-align: center;
  }

  h1 {
    font-size: 3.25rem;
  }

  .hero-lead,
  .large-copy {
    font-size: 1.25rem !important;
  }

  .intro-grid,
  .company-grid,
  .service-layout,
  .message-layout,
  .care-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .company-profile {
    max-width: 320px;
  }

  .principles,
  .work-grid,
  .contact-routes {
    grid-template-columns: 1fr;
  }

  .service-media img,
  .message-media img,
  .care-media img {
    height: 340px;
  }
}

@media (max-width: 640px) {
  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-logo-frame {
    width: 150px;
    min-width: 150px;
  }

  .site-header {
    width: 100%;
    min-height: 68px;
    padding: 12px 76px 12px 18px;
    gap: 10px;
  }

  .nav-toggle {
    top: 16px;
    right: 28px;
  }

  .site-nav {
    top: 68px;
  }

  .hero {
    min-height: 94vh;
    padding: 104px 18px 48px;
  }

  h1 {
    max-width: calc(100vw - 36px);
    font-size: 2.35rem;
    line-height: 1.18;
  }

  .hero-lead {
    max-width: calc(100vw - 36px);
    font-size: 1.12rem !important;
    line-height: 1.75;
    word-break: break-all;
  }

  .hero-lead span {
    display: block;
  }

  .hero-actions,
  .hero-tags {
    max-width: calc(100vw - 36px);
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .hero-tags li {
    width: 100%;
  }

  .section,
  .section-band {
    padding: 68px 18px;
  }

  .intro {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .intro h2,
  .section-heading h2,
  .service-copy h2,
  .message-section h2,
  .company-section h2 {
    font-size: 2.05rem;
  }

  .principle,
  .route {
    padding: 22px;
  }

  .company-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .company-profile {
    max-width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
