:root {
  --main: #3a5a40;
  --sub: #588157;
  --sage: #a3b18a;
  --accent: #e2c15d;
  --accent-deep: #c79d24;
  --bg: #f4f1e8;
  --bg-soft: #ffffff;
  --bg-tint: #dad7cd;
  --text: #223029;
  --muted: #6d756c;
  --line: #c8c4b7;
  --shadow: 0 18px 45px rgba(58, 90, 64, 0.16);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(58, 90, 64, 0.96);
  border-bottom: 1px solid rgba(226, 193, 93, 0.28);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--main);
  background: var(--accent);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 6px;
  box-shadow: 6px 6px 0 rgba(255, 255, 255, 0.16);
}

.logo-mark.has-custom-image {
  color: transparent;
  background-color: #fff;
}

.logo-text {
  font-size: 1rem;
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 4px;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-current {
  color: #233026;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: var(--main);
  border-radius: 4px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #252821;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 18, 12, 0.78), rgba(10, 18, 12, 0.56) 48%, rgba(10, 18, 12, 0.42)),
    linear-gradient(0deg, rgba(10, 18, 12, 0.2), rgba(10, 18, 12, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 128px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 1.04;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  max-width: 620px;
  margin: 0 0 34px;
  font-size: 1.08rem;
  font-weight: 700;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: #233026;
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(226, 193, 93, 0.28);
}

.button-primary:hover {
  background: var(--accent-deep);
}

.button-secondary {
  color: var(--main);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 8px 20px rgba(58, 90, 64, 0.08);
}

.section {
  padding: 96px 0;
}

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

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
}

.split-layout.reverse {
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.95fr);
}

.text-block h2,
.section-heading h2,
.contact-band h2,
.page-title h1 {
  margin: 0 0 18px;
  color: var(--main);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.35;
  letter-spacing: 0;
}

.text-block p {
  margin: 0 0 28px;
  color: #3f4c42;
}

.image-composition {
  position: relative;
  min-height: 420px;
}

.photo-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(58, 90, 64, 0.86), rgba(88, 129, 87, 0.76)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 14px);
  background-position: center;
  background-size: cover;
}

.photo-placeholder span {
  position: relative;
  z-index: 1;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(58, 90, 64, 0.56);
  font-weight: 700;
}

.photo-placeholder.has-custom-image span {
  display: none;
}

.hero .hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  background-position: center;
  background-size: cover;
}

.site-photo {
  display: block;
  object-fit: cover;
  background: var(--bg-tint);
}

.photo-large {
  width: 78%;
  height: 360px;
  min-height: 360px;
  margin-left: auto;
  box-shadow: var(--shadow);
}

.photo-small {
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 45%;
  height: 190px;
  min-height: 190px;
  border: 8px solid var(--bg);
  box-shadow: var(--shadow);
}

.section-tint .photo-small {
  border-color: var(--bg-tint);
}

.reverse .photo-large {
  margin-left: 0;
}

.reverse .photo-small {
  left: auto;
  right: 0;
}

.info-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  background: #fff;
  border-left: 6px solid var(--main);
  box-shadow: 0 12px 32px rgba(58, 90, 64, 0.08);
}

.info-panel dl,
.company-table {
  margin: 0;
}

.info-panel div,
.company-table div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

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

dt {
  color: var(--main);
  font-weight: 800;
}

dd {
  margin: 0;
}

.contact-band {
  padding: 54px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.contact-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-band p {
  margin: 0;
}

.site-footer {
  padding: 34px 0;
  color: #fff;
  background: var(--main);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
  font-weight: 800;
}

.page-title {
  padding: 76px 0 58px;
  background:
    linear-gradient(90deg, rgba(58, 90, 64, 0.96), rgba(88, 129, 87, 0.86)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0 1px, transparent 1px 16px);
  color: #fff;
}

.page-title h1 {
  color: #fff;
}

.page-title p:last-child {
  max-width: 680px;
  margin: 0;
}

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

.feature-card,
.service-item,
.contact-card,
.company-table-wrap {
  background: #fff;
  box-shadow: 0 12px 32px rgba(58, 90, 64, 0.08);
}

.feature-card {
  padding: 30px;
  border-top: 5px solid var(--sub);
}

.feature-number {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 900;
}

.feature-card h3,
.service-item h3,
.contact-card h2 {
  margin: 0 0 12px;
  color: var(--main);
  line-height: 1.45;
}

.feature-card p,
.service-item p,
.contact-card p {
  margin: 0;
  color: #465247;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-item {
  padding: 28px;
  border-left: 5px solid var(--accent);
}

.company-table-wrap {
  padding: 12px 34px;
}

.company-table div {
  grid-template-columns: 190px 1fr;
  padding: 20px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: start;
}

.editor-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

.editor-note,
.editor-form {
  background: #fff;
  box-shadow: 0 12px 32px rgba(58, 90, 64, 0.08);
}

.editor-note {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 28px;
  border-left: 6px solid var(--accent);
}

.editor-note h2,
.editor-group h2 {
  margin: 0 0 14px;
  color: var(--main);
  line-height: 1.45;
}

.editor-note p {
  margin: 0 0 16px;
  color: #465247;
}

.editor-form {
  padding: 30px;
}

.editor-group {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.editor-group:last-of-type {
  border-bottom: 0;
}

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

.image-editor-grid label {
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fbfaf5;
}

.image-editor-grid input {
  padding: 9px;
  background: #fff;
}

.image-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-height: 110px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(58, 90, 64, 0.12), rgba(226, 193, 93, 0.16)),
    #fff;
  background-position: center;
  background-size: cover;
  border: 1px dashed var(--line);
  font-size: 0.86rem;
}

.image-preview.has-image {
  border-style: solid;
}

.image-preview-logo {
  aspect-ratio: 1 / 1;
  min-height: 88px;
  background-repeat: no-repeat;
  background-size: contain;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.editor-status {
  margin: 16px 0 0;
  color: var(--main);
  font-weight: 800;
}

.contact-card {
  padding: 34px;
  border-top: 6px solid var(--main);
}

form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--main);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--text);
  background: #fbfaf5;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(226, 193, 93, 0.32);
  border-color: var(--accent-deep);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.slide-left {
  transform: translateX(-34px);
}

.reveal.slide-right {
  transform: translateX(34px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 18px;
    background: rgba(58, 90, 64, 0.98);
    border-bottom: 1px solid rgba(226, 193, 93, 0.28);
  }

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

  .site-nav a {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .split-layout,
  .split-layout.reverse,
  .contact-grid,
  .editor-layout,
  .image-editor-grid,
  .feature-grid,
  .service-list {
    grid-template-columns: 1fr;
  }

  .editor-note {
    position: static;
  }

  .image-composition {
    min-height: 340px;
  }

  .photo-large {
    width: 82%;
    height: 300px;
    min-height: 300px;
  }

  .photo-small {
    width: 50%;
    height: 160px;
    min-height: 160px;
  }

  .info-panel,
  .contact-band-inner {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .header-inner,
  .hero-content {
    width: min(100% - 28px, 1120px);
  }

  .logo-text {
    font-size: 0.9rem;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding: 68px 0 72px;
  }

  .section {
    padding: 68px 0;
  }

  .text-block h2,
  .section-heading h2,
  .contact-band h2,
  .page-title h1 {
    font-size: 1.75rem;
  }

  .image-composition {
    min-height: 300px;
  }

  .photo-large {
    width: 88%;
    height: 250px;
    min-height: 250px;
  }

  .photo-small {
    bottom: 0;
    width: 56%;
    height: 130px;
    min-height: 130px;
    border-width: 6px;
  }

  .info-panel,
  .contact-card,
  .company-table-wrap,
  .feature-card,
  .service-item {
    padding: 24px;
  }

  .info-panel div,
  .company-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    display: block;
  }
}
