:root {
  --ink: #183523;
  --text: #26352b;
  --muted: #657168;
  --green: #2f5d3d;
  --green-deep: #214c33;
  --green-soft: #eef4e8;
  --paper: #fbfaf6;
  --cream: #f5f1e7;
  --line: #d8dccf;
  --accent: #d8771f;
  --shadow: 0 18px 50px rgba(31, 54, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  padding: 0 clamp(18px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(216, 220, 207, 0.7);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  color: #17251c;
  font-weight: 700;
  font-size: 0.96rem;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

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

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

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--green-deep);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.97) 0%, rgba(251, 250, 246, 0.88) 33%, rgba(251, 250, 246, 0.2) 68%, rgba(251, 250, 246, 0.02) 100%),
    linear-gradient(0deg, rgba(24, 53, 35, 0.08), rgba(24, 53, 35, 0.08));
}

.hero-content {
  position: relative;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(20px, 6vw, 86px);
  padding: 70px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  line-height: 1.16;
  font-weight: 800;
}

h2 {
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.35;
}

h3 {
  color: var(--ink);
}

.hero-copy {
  max-width: 580px;
  margin-bottom: 32px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: #2c3b30;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.phone-cta {
  min-height: 86px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(108, 79, 42, 0.12);
}

.phone-cta img {
  width: 34px;
  height: 34px;
  filter: sepia(1) saturate(5) hue-rotate(350deg);
}

.phone-cta strong {
  display: block;
  color: var(--accent);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.phone-cta small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.button-secondary {
  min-height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  color: white;
  background: linear-gradient(135deg, #557b58, #2f5d3d);
  border-radius: 8px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 5vw, 86px);
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 0;
}

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

.problem-grid article {
  min-height: 106px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.problem-grid p,
.service-card p,
.flow-grid p,
.price-section p,
.company-section p,
.faq-list p {
  margin-bottom: 0;
}

.service-section {
  display: block;
  background: linear-gradient(180deg, #fff, var(--paper));
}

.section-copy {
  max-width: 520px;
  margin-bottom: 28px;
}

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

.service-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(44, 61, 48, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 240ms ease;
}

.service-card div {
  padding: 20px;
}

.service-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 93, 61, 0.28);
  box-shadow: 0 16px 34px rgba(44, 61, 48, 0.14);
}

.service-card:hover img {
  transform: scale(1.03);
}

.case-section {
  display: block;
  background: #fff;
}

.case-section .section-copy {
  margin-bottom: 30px;
}

.case-slider {
  position: relative;
}

.case-gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.case-gallery::-webkit-scrollbar {
  display: none;
}

.case-gallery figure {
  flex: 0 0 clamp(250px, 28vw, 360px);
  overflow: hidden;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(44, 61, 48, 0.07);
  scroll-snap-align: start;
}

.case-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.case-gallery figcaption {
  padding: 12px 14px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.case-slider-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: rgba(33, 76, 51, 0.88);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(31, 54, 38, 0.2);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
}

.case-slider-button:hover,
.case-slider-button:focus-visible {
  background: var(--accent);
}

.case-slider-button-prev {
  left: -12px;
}

.case-slider-button-next {
  right: -12px;
}

.flow-section {
  background: var(--cream);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.flow-grid article {
  position: relative;
  min-height: 230px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flow-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: white;
  background: var(--green);
  border-radius: 50%;
  font-weight: 800;
}

.flow-grid img {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
}

.flow-grid h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.price-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.price-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.price-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.price-list dt {
  color: var(--ink);
  font-weight: 800;
}

.price-list dd {
  margin: 0;
  color: var(--muted);
}

.faq-section {
  background: #fff;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--ink);
  font-weight: 800;
}

details p {
  padding: 0 22px 20px;
  color: var(--muted);
}

.company-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  background: linear-gradient(180deg, var(--paper), var(--cream));
}

.company-map {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.company-map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(44, 61, 48, 0.07);
}

.company-map-link {
  justify-self: start;
  color: var(--green-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

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

th {
  width: 140px;
  color: var(--ink);
  background: #f3f5ed;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

td a {
  color: var(--green-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  padding: 34px 20px 88px;
  color: white;
  background: var(--green-deep);
  text-align: center;
}

.footer-phone {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 1.5rem;
  font-weight: 800;
}

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

  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px;
    background: rgba(251, 250, 246, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 10px;
  }

  .site-nav a {
    padding: 12px 6px;
  }

  .hero {
    min-height: 590px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(251, 250, 246, 0.96) 0%, rgba(251, 250, 246, 0.82) 58%, rgba(251, 250, 246, 0.36) 100%);
  }

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

  .service-section,
  .case-section,
  .price-section,
  .company-section {
    grid-template-columns: 1fr;
  }

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

  .case-gallery figure {
    flex-basis: clamp(240px, 42vw, 320px);
  }

  .company-map {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .case-gallery {
    gap: 14px;
    padding-bottom: 14px;
  }

  .case-gallery figure {
    flex-basis: 82vw;
  }

  .case-slider-button {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .case-slider-button-prev {
    left: 6px;
  }

  .case-slider-button-next {
    right: 6px;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 66px;
    padding: 0 14px;
  }

  .brand {
    font-size: 1.1rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .site-nav {
    top: 66px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 48px 0;
  }

  h1 {
    font-size: 2.35rem;
  }

  .phone-cta,
  .button-secondary {
    width: 100%;
    min-height: 72px;
  }

  .problem-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .problem-grid article {
    grid-template-columns: 48px 1fr;
  }

  .price-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  th,
  td {
    display: block;
    width: 100%;
  }

  th {
    border-bottom: 0;
  }
}
