:root {
  --ink: #111111;
  --muted: #626262;
  --line: #d8d8d8;
  --paper: #f4f1ea;
  --white: #ffffff;
  --green: #111111;
  --green-dark: #050505;
  --gold: #d3a33d;
  --steel: #3b3b3b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "Meiryo", Arial, sans-serif;
  line-height: 1.7;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(10, 10, 10, 0.94);
  border-bottom: 1px solid #2a2a2a;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--white);
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav .active {
  color: var(--ink);
  background: var(--gold);
}

.hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  background: var(--green-dark);
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  min-width: 0;
  padding: clamp(52px, 8vw, 108px) clamp(22px, 6vw, 80px);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(2rem, 3.1vw, 3.45rem);
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: keep-all;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 800;
}

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

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.hero-media {
  position: relative;
  min-height: 420px;
  background: var(--green-dark);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(214, 165, 57, 0.12), transparent 38%),
    radial-gradient(circle at 72% 58%, rgba(214, 165, 57, 0.18), transparent 28%);
  pointer-events: none;
}

.hero-logo {
  width: min(280px, 70vw);
  margin: 0 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.overview,
.sub-page,
.info-table-section,
.service-list,
.works-grid,
.contact-panel,
.license-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.overview,
.info-table-section,
.service-list,
.works-grid,
.contact-panel,
.license-section {
  padding: 76px 0;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.25;
}

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

.feature-card,
.work-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-card {
  min-height: 226px;
  padding: 24px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(23, 32, 38, 0.11);
}

.card-number,
.service-list span {
  color: var(--gold);
  font-weight: 900;
}

.feature-card h3,
.work-card h2,
.service-list h2 {
  margin: 16px 0 8px;
  font-size: 1.18rem;
}

.feature-card p,
.work-card p,
.service-list p,
.statement p,
.two-column p,
.page-hero p,
.contact-panel p {
  color: var(--muted);
}

.statement {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  padding: 64px clamp(18px, 6vw, 80px);
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sub-page {
  padding-bottom: 34px;
}

.page-hero {
  padding: 76px 0 44px;
  border-bottom: 1px solid var(--line);
}

.page-hero.compact {
  max-width: 850px;
  margin-left: 0;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  padding: 66px 0;
}

.info-table {
  margin: 24px 0 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.info-table div {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-top: 1px solid var(--line);
}

.info-table div:first-child {
  border-top: 0;
}

.info-table dt,
.info-table dd {
  margin: 0;
  padding: 18px 20px;
}

.info-table dt {
  font-weight: 800;
  background: #edf3f1;
}

.license-section {
  padding-top: 0;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.license-grid article {
  min-height: 220px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: 8px;
}

.license-grid h3 {
  margin: 0 0 12px;
  font-size: 1.04rem;
}

.license-grid p {
  margin: 6px 0;
  color: var(--muted);
}

.license-note {
  margin: 18px 0 0;
  color: var(--muted);
}

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

.service-list article {
  min-height: 230px;
  padding: 28px;
  background: var(--white);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
}

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

.work-card {
  overflow: hidden;
}

.work-card h2,
.work-card p {
  padding: 0 22px;
}

.work-card p {
  padding-bottom: 24px;
}

.work-image {
  height: 210px;
  background-size: cover;
}

.work-image.factory {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.35), rgba(211, 163, 61, 0.16)),
    repeating-linear-gradient(90deg, #222 0 18px, #4a453d 18px 36px);
}

.work-image.plant {
  background:
    radial-gradient(circle at 25% 40%, #d3a33d 0 35px, transparent 36px),
    linear-gradient(120deg, #7d7568, #1d1d1d);
}

.work-image.solar {
  background:
    linear-gradient(140deg, rgba(211, 163, 61, 0.45), rgba(0, 0, 0, 0.2)),
    repeating-linear-gradient(45deg, #202020 0 22px, #5f574c 22px 44px);
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid #c8d4d7;
  border-radius: 6px;
  font: inherit;
}

.contact-form button {
  min-height: 46px;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--gold);
  font-weight: 800;
}

.edit-toolbar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  gap: 8px;
  padding: 10px;
  background: rgba(17, 17, 17, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.edit-toolbar button {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.edit-toolbar button:first-child {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.is-editing [data-editable="true"] {
  outline: 2px dashed rgba(211, 163, 61, 0.8);
  outline-offset: 4px;
  cursor: text;
}

.is-editing [data-editable="true"]:focus {
  background: rgba(211, 163, 61, 0.14);
  outline-style: solid;
}

.edit-notice {
  position: fixed;
  left: 50%;
  bottom: 74px;
  z-index: 51;
  transform: translateX(-50%);
  padding: 8px 12px;
  color: var(--white);
  background: rgba(17, 17, 17, 0.92);
  border-radius: 6px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.edit-notice.show {
  opacity: 1;
}

@media (max-width: 880px) {
  .site-header,
  .statement,
  .two-column,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
  }

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

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

  .hero-media {
    order: -1;
    min-height: 300px;
  }

  .link-grid,
  .service-list,
  .works-grid,
  .license-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .brand {
    font-size: 0.95rem;
  }

  .site-nav a {
    padding: 7px 8px;
    font-size: 0.88rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .edit-toolbar {
    right: 10px;
    bottom: 10px;
    left: 10px;
    justify-content: center;
  }

  .overview,
  .info-table-section,
  .service-list,
  .works-grid,
  .contact-panel,
  .license-section {
    width: min(100% - 28px, 1120px);
    padding: 52px 0;
  }
}
