:root {
  --ink: #151515;
  --ink-soft: #3a3835;
  --paper: #f7f5ef;
  --white: #ffffff;
  --stone: #d8d1c4;
  --clay: #8e765d;
  --mortar: #b9b5ac;
  --line: rgba(21, 21, 21, 0.14);
  --shadow: 0 24px 60px rgba(20, 19, 17, 0.14);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.is-menu-open {
  overflow: hidden;
}

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

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

p {
  margin: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(21, 21, 21, 0.74);
  color: var(--white);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-grid;
  grid-template-columns: 38px auto;
  gap: 10px;
  align-items: center;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 1.03rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.nav-list a {
  color: rgba(255, 255, 255, 0.86);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--white);
}

.header-contact {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: transparent;
  color: var(--white);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  padding: 132px 0 64px;
  overflow: hidden;
  background: #151515;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.48) 52%, rgba(10, 10, 10, 0.22)),
    linear-gradient(0deg, rgba(10, 10, 10, 0.42), rgba(10, 10, 10, 0.1) 42%, rgba(10, 10, 10, 0.36)),
    url("../images/hero-craftsmen.webp") center / cover no-repeat;
  filter: grayscale(0.26) saturate(0.86) contrast(1.08);
  transform: scale(1.02);
}

.hero::after,
.texture-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 26%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(120deg, transparent 0 47%, rgba(255, 255, 255, 0.08) 49%, transparent 51% 100%);
  opacity: 0.55;
  mix-blend-mode: soft-light;
}

.hero-inner,
.section-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--clay);
  font-weight: 700;
  font-size: 0.82rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.hero .eyebrow {
  color: var(--stone);
}

.hero h1,
.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.28rem, 6vw, 4.8rem);
  line-height: 1.12;
  font-weight: 800;
}

.hero-lead {
  max-width: 720px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2.2vw, 1.16rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  line-height: 1.3;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.button.light {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.button.ghost {
  background: transparent;
  color: inherit;
}

.button.clay {
  border-color: var(--clay);
  background: var(--clay);
  color: var(--white);
}

.section {
  position: relative;
  padding: 88px 0;
}

.section.alt {
  background: var(--white);
}

.section.dark {
  background: var(--ink);
  color: var(--white);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 44px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 4.2vw, 3.1rem);
  line-height: 1.25;
}

.section-text {
  color: var(--ink-soft);
}

.dark .section-text {
  color: rgba(255, 255, 255, 0.75);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.image-panel {
  min-height: 420px;
  background: var(--mortar) center / cover no-repeat;
  box-shadow: var(--shadow);
}

.image-panel.about-img {
  background-image: url("../images/wall-finish.svg");
}

.image-panel.recruit-img {
  background-image: url("../images/tile-pattern.svg");
}

.image-panel.saiki-day-img {
  background-image:
    linear-gradient(0deg, rgba(21, 21, 21, 0.18), rgba(21, 21, 21, 0.02)),
    url("../images/saiki-city-day.webp");
  background-position: center 52%;
}

.image-panel.saiki-sunset-img {
  background-image:
    linear-gradient(0deg, rgba(21, 21, 21, 0.2), rgba(21, 21, 21, 0.02)),
    url("../images/saiki-city-sunset.webp");
  background-position: center 58%;
}

.image-panel.plastering-work-img {
  background-image:
    linear-gradient(0deg, rgba(21, 21, 21, 0.2), rgba(21, 21, 21, 0.02)),
    url("../images/plastering-work.webp");
  background-position: center 56%;
}

.image-panel.representative-img {
  background-image:
    linear-gradient(0deg, rgba(21, 21, 21, 0.18), rgba(21, 21, 21, 0.02)),
    url("../images/plastering-work.webp");
  background-position: center 56%;
}

.profile-name {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.08rem;
}

.profile-name span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
}

.service-feature {
  margin-bottom: 54px;
}

.region-note {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 12px;
  border-left: 3px solid var(--clay);
  background: rgba(142, 118, 93, 0.1);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.reason-grid,
.service-grid,
.works-grid,
.values-grid {
  display: grid;
  gap: 18px;
}

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

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

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

.values-grid {
  grid-template-columns: repeat(5, 1fr);
}

.card,
.service-card,
.work-card,
.value-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 4px;
}

.card {
  padding: 28px;
}

.card-number {
  display: block;
  color: var(--clay);
  font-weight: 800;
  margin-bottom: 18px;
}

.card h3,
.service-card h3,
.work-card h3 {
  margin: 0 0 10px;
  line-height: 1.45;
  font-size: 1.08rem;
}

.card p,
.service-card p,
.work-card p,
.value-card p,
.company-table,
.form-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.service-card {
  padding: 24px;
  min-height: 174px;
}

.service-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  background:
    linear-gradient(90deg, transparent 46%, var(--clay) 47% 53%, transparent 54%),
    linear-gradient(0deg, transparent 46%, var(--clay) 47% 53%, transparent 54%);
  border: 1px solid var(--clay);
}

.work-card {
  overflow: hidden;
  background: var(--white);
}

.work-thumb {
  aspect-ratio: 4 / 3;
  background: var(--mortar) center / cover no-repeat;
}

.work-card:nth-child(3n+1) .work-thumb {
  background-image: url("../images/work-placeholder-1.svg");
}

.work-card:nth-child(3n+2) .work-thumb {
  background-image: url("../images/work-placeholder-2.svg");
}

.work-card:nth-child(3n+3) .work-thumb {
  background-image: url("../images/work-placeholder-3.svg");
}

.work-body {
  padding: 20px;
}

.texture-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(21, 21, 21, 0.9), rgba(70, 59, 48, 0.86)),
    url("../images/wall-texture.svg") center / cover no-repeat;
}

.value-card {
  padding: 20px 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.value-card p {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.78);
}

.company-table th,
.company-table td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 30%;
  color: var(--ink);
  font-weight: 800;
}

.map-frame {
  width: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(0.7);
}

.cta {
  padding: 76px 0 92px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  margin: 0 auto 16px;
  max-width: 760px;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.28;
}

.cta p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  position: relative;
  padding: 150px 0 72px;
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.9), rgba(21, 21, 21, 0.54)),
    url("../images/wall-texture.svg") center / cover no-repeat;
  color: var(--white);
}

.page-hero p {
  max-width: 760px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
}

.content-stack {
  display: grid;
  gap: 28px;
}

.lead-box {
  padding: 34px;
  border-left: 4px solid var(--clay);
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.form {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

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

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 14px 16px;
  font: inherit;
}

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

.site-footer {
  padding: 42px 0 92px;
  background: #0f0f0f;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.88rem;
}

.page-top {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.fixed-cta {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 45;
  display: none;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.18);
}

.fixed-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  color: var(--white);
  font-weight: 800;
}

.fixed-cta a:first-child {
  background: var(--clay);
}

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

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

.hero .fade-in,
.page-hero .fade-in {
  opacity: 1;
  transform: none;
}

.service-feature .fade-in {
  opacity: 1;
  transform: none;
}

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

  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    min-height: calc(100svh - 72px);
    padding: 28px 24px;
    background: rgba(21, 21, 21, 0.98);
  }

  .is-menu-open .site-nav {
    display: block;
  }

  .nav-list {
    display: grid;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 1rem;
  }

  .header-contact {
    display: inline-flex;
    margin-top: 18px;
  }

  .section-header,
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .reason-grid,
  .service-grid,
  .works-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 88svh;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 24px, var(--max));
    height: 66px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .brand {
    grid-template-columns: 34px auto;
    gap: 8px;
  }

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

  .brand-sub {
    font-size: 0.68rem;
  }

  .site-nav {
    inset: 66px 0 auto 0;
  }

  .hero {
    padding: 114px 0 54px;
  }

  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 24px, var(--max));
  }

  .hero-actions,
  .button-row {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .reason-grid,
  .service-grid,
  .works-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

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

  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .company-table td {
    padding-top: 0;
  }

  .footer-inner {
    display: grid;
  }

  .fixed-cta {
    display: grid;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .site-footer {
    padding-bottom: 112px;
  }
}
