:root {
  --color-ink: #26322c;
  --color-muted: #697970;
  --color-green: #3f7d5b;
  --color-green-dark: #285c43;
  --color-green-soft: #f0f7f1;
  --color-line: #e3ece5;
  --color-paper: #fffefb;
  --color-stone: #faf8f1;
  --color-wood: #a77a4f;
  --shadow-soft: 0 18px 42px rgba(41, 76, 55, 0.08);
  --radius: 8px;
  --container: min(1120px, calc(100% - 40px));
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: #fffdf8;
  font-family: "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-inner {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 clamp(20px, 4vw, 44px);
  background: rgba(255, 254, 251, 0.94);
  border-bottom: 1px solid rgba(227, 236, 229, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--color-ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: linear-gradient(145deg, #6aa77f, var(--color-green-dark));
  border-radius: var(--radius);
  font-weight: 760;
  line-height: 1;
}

.brand-text {
  display: grid;
  gap: 0;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 760;
}

.brand-text small {
  color: var(--color-green);
  font-size: 0.74rem;
  font-weight: 680;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.site-nav a {
  position: relative;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 680;
  text-decoration: none;
  transition: color 180ms ease;
}

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

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--color-green);
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-green);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: calc(84svh - var(--header-height));
  overflow: hidden;
  background: #dfece2;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(40, 92, 67, 0.76), rgba(63, 125, 91, 0.42) 48%, rgba(255, 253, 248, 0.06) 78%),
    linear-gradient(0deg, rgba(40, 92, 67, 0.08), rgba(255, 253, 248, 0.04));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(84svh - var(--header-height));
  padding: clamp(72px, 11vw, 132px) 0;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-green);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero .eyebrow,
.cta-section .eyebrow {
  color: #d7f2df;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.35;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 5.1rem);
  font-weight: 760;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  font-weight: 740;
}

h3 {
  font-size: 1.1rem;
  font-weight: 740;
}

p {
  margin: 0;
}

.hero-lead {
  width: min(620px, 100%);
  margin-top: 20px;
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 740;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: #4d8d67;
}

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

.button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.58);
}

.button-secondary {
  color: var(--color-green-dark);
  background: var(--color-paper);
  border-color: var(--color-line);
}

.button-light {
  color: var(--color-green-dark);
  background: #fff;
}

.trust-strip {
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-line);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.8fr;
  gap: 1px;
  background: var(--color-line);
}

.trust-grid > div {
  padding: 22px 24px;
  background: var(--color-paper);
}

.trust-grid span {
  display: block;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 740;
}

.trust-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 0.98rem;
}

.section {
  padding: clamp(72px, 9vw, 112px) 0;
}

.muted {
  background: var(--color-stone);
}

.intro-section {
  padding-top: clamp(78px, 9vw, 120px);
}

.split,
.two-column,
.contact-layout,
.map-layout,
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: start;
}

.text-flow {
  display: grid;
  gap: 18px;
  color: var(--color-muted);
}

.text-link {
  color: var(--color-green);
  font-weight: 740;
  text-underline-offset: 5px;
}

.section-heading {
  width: min(720px, 100%);
  margin-bottom: 34px;
}

.section-heading.narrow {
  width: min(620px, 100%);
}

.section-heading p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--color-muted);
}

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

.service-grid.compact {
  margin-top: 26px;
}

.service-card {
  min-height: 244px;
  padding: 26px;
  background: #fffefb;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.service-card.large {
  min-height: 300px;
}

.service-card.accent {
  color: #fff;
  background: linear-gradient(145deg, #5f9a73, var(--color-green-dark));
  border-color: #79ad89;
}

.service-number {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--color-wood);
  font-size: 0.85rem;
  font-weight: 780;
}

.service-card.accent .service-number {
  color: #d7f2df;
}

.service-card h2,
.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-muted);
}

.service-card.accent p {
  color: rgba(255, 255, 255, 0.84);
}

.section-action {
  margin-top: 32px;
}

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

.work-card {
  overflow: hidden;
  background: #fffefb;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(41, 76, 55, 0.06);
}

.work-card a {
  display: grid;
  color: inherit;
  text-decoration: none;
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-green-soft);
}

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

.work-card span {
  display: block;
  color: var(--color-green);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.work-card h3 {
  margin-top: 4px;
  font-size: 1rem;
}

.empty-gallery {
  grid-column: 1 / -1;
  padding: clamp(32px, 5vw, 56px);
  color: var(--color-muted);
  background: linear-gradient(145deg, #f5faf5, var(--color-green-soft));
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.empty-gallery h3 {
  margin-bottom: 8px;
  color: var(--color-ink);
}

.page-hero {
  padding: clamp(72px, 10vw, 118px) 0 clamp(56px, 7vw, 82px);
  background:
    linear-gradient(120deg, rgba(240, 247, 241, 0.98), rgba(255, 253, 248, 0.92)),
    url("../../images/hero-daiyasu.png") center / cover;
  border-bottom: 1px solid var(--color-line);
}

.page-hero p:not(.eyebrow) {
  width: min(720px, 100%);
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.info-table {
  overflow: hidden;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.info-table dl {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  margin: 0;
  border-bottom: 1px solid var(--color-line);
}

.info-table dl:last-child {
  border-bottom: 0;
}

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

.info-table dt {
  color: var(--color-green);
  font-weight: 740;
  background: var(--color-green-soft);
}

.info-table dd {
  background: #fff;
}

.statement {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.value-list {
  display: grid;
  gap: 16px;
}

.value-list article {
  padding: 24px;
  background: #fffefb;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.value-list h3 {
  margin-bottom: 8px;
}

.value-list p {
  color: var(--color-muted);
}

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

.flow-list li {
  min-height: 230px;
  padding: 24px;
  background: #fffefb;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.flow-list span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  color: #fff;
  background: #6aa77f;
  border-radius: 50%;
  font-weight: 780;
  line-height: 1;
}

.flow-list p {
  margin-top: 8px;
  color: var(--color-muted);
}

.message-section {
  background: var(--color-paper);
}

.representative-message {
  border-left: 3px solid rgba(63, 125, 91, 0.28);
  padding-left: clamp(1.25rem, 3vw, 2rem);
}

.message-sign {
  color: var(--color-green-dark);
  font-weight: 700;
  text-align: right;
}

.service-area-section {
  background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-green-soft) 100%);
}

.contact-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.contact-panel,
.contact-form {
  padding: clamp(26px, 4vw, 36px);
  background: #fffefb;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-method {
  display: grid;
  gap: 4px;
  padding: 18px;
  color: inherit;
  background: var(--color-stone);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  text-decoration: none;
}

.contact-method span {
  color: var(--color-green);
  font-size: 0.78rem;
  font-weight: 760;
}

.contact-method strong {
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.35;
}

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

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--color-ink);
  font-weight: 740;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--color-ink);
  background: #fffdf8;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 4px rgba(63, 125, 91, 0.12);
}

.form-note,
.noscript-note {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.map-layout {
  align-items: center;
}

.map-layout p {
  margin: 12px 0 14px;
  color: var(--color-muted);
}

.map-frame {
  overflow: hidden;
  min-height: 360px;
  background: #fffefb;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.cta-section {
  color: #fff;
  background:
    linear-gradient(120deg, rgba(40, 92, 67, 0.9), rgba(85, 145, 103, 0.84)),
    url("../../images/hero-daiyasu.png") center / cover;
}

.cta-inner {
  align-items: center;
}

.site-footer {
  padding: 42px 0 24px;
  color: rgba(255, 255, 255, 0.82);
  background: #20352a;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 760;
  text-decoration: none;
}

.footer-brand span {
  color: #b9ddc3;
  font-size: 0.82rem;
}

.site-footer address {
  display: grid;
  gap: 4px;
  font-style: normal;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer small {
  display: block;
  width: var(--container);
  padding-top: 22px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.56);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 960px) {
  :root {
    --header-height: 68px;
    --container: min(100% - 32px, 720px);
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .nav-toggle {
    position: relative;
    z-index: 80;
    display: block;
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    z-index: 70;
    display: grid;
    gap: 0;
    padding: 18px 20px 24px;
    visibility: hidden;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 4px;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-line);
  }

  .site-nav a::after {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: calc(80svh - var(--header-height));
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(40, 92, 67, 0.82), rgba(63, 125, 91, 0.58) 58%, rgba(63, 125, 91, 0.2)),
      linear-gradient(0deg, rgba(40, 92, 67, 0.1), rgba(255, 253, 248, 0.06));
  }

  .trust-grid,
  .split,
  .two-column,
  .contact-layout,
  .map-layout,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .works-preview,
  .works-grid,
  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .statement {
    position: static;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 24px, 560px);
  }

  body {
    font-size: 15px;
  }

  .site-header {
    padding: 0 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .brand-text strong {
    font-size: 0.9rem;
  }

  .hero,
  .hero-content {
    min-height: 72svh;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

  .trust-grid,
  .service-grid,
  .works-preview,
  .works-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .trust-grid > div,
  .service-card,
  .service-card.large,
  .flow-list li {
    min-height: auto;
    padding: 22px;
  }

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

  .info-table dt,
  .info-table dd {
    padding: 14px 16px;
  }

  .footer-grid {
    display: grid;
  }
}
