:root {
  --white: #fffdfa;
  --paper: #f8f4ee;
  --wood: #b58b5e;
  --wood-dark: #7a5735;
  --ink: #171513;
  --muted: #6f675e;
  --line: #e5ded4;
  --sage: #6f7d65;
  --shadow: 0 18px 45px rgba(34, 27, 20, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.8;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 18px;
  background: rgba(255, 253, 250, 0.92);
  border-bottom: 1px solid rgba(229, 222, 212, 0.82);
  backdrop-filter: blur(14px);
}

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

.brand img {
  width: 100%;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 253, 250, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.social-links svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 0;
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 1px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.site-nav {
  position: absolute;
  top: 60px;
  left: 14px;
  right: 14px;
  display: none;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.site-nav.open {
  display: grid;
}

.site-nav a {
  padding: 12px 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 96px 18px 54px;
  background: var(--paper);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 253, 250, 0.92) 0%, rgba(255, 253, 250, 0.74) 46%, rgba(255, 253, 250, 0.34) 100%), url("images/hero-interior.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18vh;
  background: linear-gradient(0deg, var(--white), rgba(255, 253, 250, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: min(78vw, 430px);
  height: auto;
  clip-path: inset(7.5% 0);
  filter: drop-shadow(0 12px 28px rgba(255, 253, 250, 0.34));
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--wood-dark);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: clamp(34px, 11vw, 68px);
  line-height: 1.18;
  font-weight: 500;
}

.hero-lead {
  max-width: 620px;
  margin: 20px 0 0;
  color: #3f3933;
  font-size: 16px;
  font-weight: 300;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.button,
.line-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

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

.button-ghost {
  color: var(--ink);
  background: rgba(255, 253, 250, 0.72);
  border-color: rgba(23, 21, 19, 0.18);
}

.section {
  padding: 76px 18px;
}

.section-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 7vw, 42px);
  line-height: 1.35;
  font-weight: 500;
}

#intro-title {
  position: relative;
  display: inline-block;
  color: var(--wood-dark);
  font-size: clamp(19px, 5.1vw, 38px);
  line-height: 1.35;
  font-weight: 700;
  white-space: nowrap;
  animation: titleFadeUp 0.9s ease both;
}

#intro-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, var(--wood-dark), var(--sage), rgba(111, 125, 101, 0));
  transform-origin: left;
  animation: titleLine 1s ease 0.35s both;
}

@keyframes titleFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleLine {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.section-heading p:not(.section-label),
.intro-grid p,
.contact-copy p {
  margin: 14px 0 0;
  color: var(--muted);
}

.intro {
  background: var(--white);
}

.intro-grid {
  display: grid;
  gap: 22px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.news-section,
.company-section {
  background: var(--paper);
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-item {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.news-item time,
.news-item span,
.work-body span {
  display: inline-flex;
  color: var(--wood-dark);
  font-size: 12px;
  font-weight: 500;
}

.news-item span {
  margin-left: 10px;
}

.news-item h3,
.service-card h3,
.work-body h3 {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
}

.news-item p,
.service-card p,
.work-body p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.service-card {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(34, 27, 20, 0.05);
}

.service-card h3 {
  font-size: 15px;
}

.service-card p {
  font-size: 13px;
}

.icon-wrap {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--wood-dark);
  background: #f2eadf;
  border: 1px solid #e4d5c4;
  border-radius: 8px;
}

.icon-wrap svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.filter-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.filter-button.active {
  color: var(--white);
  background: var(--sage);
  border-color: var(--sage);
}

.works-grid {
  display: grid;
  gap: 18px;
}

.work-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.work-card.hidden {
  display: none;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.before-after figure {
  position: relative;
  margin: 0;
  background: var(--paper);
}

.before-after img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.before-after figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  color: var(--white);
  background: rgba(23, 21, 19, 0.72);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 400;
}

.work-body {
  padding: 20px;
}

.company-grid,
.contact-grid {
  display: grid;
  gap: 28px;
}

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

.company-list div {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.company-list div:last-child {
  border-bottom: 0;
}

.company-list dt {
  color: var(--wood-dark);
  font-size: 13px;
  font-weight: 500;
}

.company-list dd {
  margin: 0;
  color: var(--ink);
}

.contact-section {
  background: linear-gradient(180deg, var(--white), #f3eee7);
}

.contact-copy {
  align-self: start;
}

.contact-tel {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 22px;
  font-weight: 500;
}

.line-button {
  color: var(--white);
  background: #1b8f45;
}

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

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--wood);
  box-shadow: 0 0 0 3px rgba(181, 139, 94, 0.16);
}

.site-footer {
  padding: 44px 18px;
  color: var(--white);
  background: var(--ink);
  text-align: center;
}

.footer-inner {
  width: min(100%, 900px);
  margin: 0 auto;
}

.footer-inner img {
  width: 116px;
  margin: 0 auto 14px;
  filter: invert(1);
}

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

.footer-inner small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 253, 250, 0.62);
}

@media (min-width: 700px) {
  .brand {
    width: 98px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: row;
    align-items: center;
  }

  .button,
  .line-button {
    min-width: 176px;
  }

  .intro-grid,
  .company-grid,
  .contact-grid {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: start;
  }

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

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

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

@media (min-width: 980px) {
  .site-header {
    padding: 14px 42px;
  }

  .header-actions {
    gap: 18px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

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

  .hero {
    padding-inline: 42px;
  }

  .section {
    padding: 100px 42px;
  }

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