:root {
  --green: #1f7a4d;
  --green-dark: #145235;
  --ink: #222;
  --muted: #5a5a5a;
  --border: #ddd;
  --bg: #fafaf8;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

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

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

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 0.5rem 1rem;
  z-index: 2000;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--green);
}
.header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  position: relative;
}
.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--green-dark);
}
.logo:hover { text-decoration: none; }
.license {
  margin: 0;
  font-size: 0.7rem;
  color: var(--muted);
}

nav { width: 100%; }
.nav-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.nav-list li a {
  display: block;
  padding: 0.4rem 0.8rem;
  background: var(--green);
  color: #fff;
  border-radius: 0.25rem;
  font-size: 0.9rem;
}
.nav-list li a:hover { background: var(--green-dark); text-decoration: none; }
.nav-list li.current a { background: var(--green-dark); }

#menu-cb, #menu-icon, #menu-bg { display: none; }

@media (max-width: 640px) {
  .nav-list { display: none; }
  #menu-icon {
    display: block;
    position: absolute;
    right: 1rem;
    top: 0.7rem;
    font-size: 1.6rem;
    cursor: pointer;
    background: var(--green);
    color: #fff;
    width: 2.2rem;
    height: 2.2rem;
    line-height: 2.2rem;
    text-align: center;
    border-radius: 0.25rem;
  }
  #menu-cb:checked ~ nav .nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 1rem;
    top: 3.2rem;
    background: #fff;
    border: 1px solid var(--border);
    padding: 0.5rem;
    width: 60vw;
    z-index: 1000;
  }
}

/* ---------- main layout ---------- */
main {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.page-header { margin-bottom: 1.5rem; }
.page-header h2 { font-size: 1.6rem; border-left: 6px solid var(--green); padding-left: 0.6rem; margin: 0 0 0.5rem; }

.content-narrow { max-width: 760px; }

/* ---------- hero ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.hero-media { flex: 1 1 320px; }
.hero-media img { border-radius: 0.5rem; }
.hero-text { flex: 1 1 320px; }
.eyebrow { color: var(--green-dark); font-weight: bold; margin: 0 0 0.3rem; }
.hero-text h2 { font-size: 1.6rem; margin: 0 0 0.7rem; }

/* ---------- services / cards ---------- */
.section-title {
  font-size: 1.3rem;
  border-bottom: 3px solid var(--green);
  padding-bottom: 0.4rem;
  margin: 2rem 0 1rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.card img { border-radius: 0.3rem; margin-bottom: 0.6rem; aspect-ratio: 4/3; object-fit: cover; }
.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.card p { flex: 1; margin: 0 0 0.8rem; color: var(--muted); font-size: 0.92rem; }
.card-link { font-weight: bold; }

/* ---------- cta ---------- */
.cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: #eef6f0;
  border-radius: 0.5rem;
  text-align: center;
}
.cta h2 { margin-top: 0; }
.button {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.7rem 1.4rem;
  background: var(--green);
  color: #fff;
  border-radius: 0.3rem;
  font-weight: bold;
}
.button:hover { background: var(--green-dark); text-decoration: none; }

/* ---------- misc content blocks ---------- */
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.before-after-grid figure { margin: 0; }
.before-after-grid figcaption { font-weight: bold; margin-bottom: 0.3rem; }

.photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}
.photo-row img { flex: 1 1 240px; border-radius: 0.3rem; }

.wide-photo { margin: 0.8rem 0; border-radius: 0.3rem; }

.feature-list {
  columns: 2;
  padding-left: 1.2rem;
}
.feature-list li { margin-bottom: 0.3rem; break-inside: avoid; }

.contact-note {
  margin-top: 2rem;
  padding: 1rem;
  background: #eef6f0;
  border-radius: 0.4rem;
}

.info-table { border-collapse: collapse; width: 100%; }
.info-table th, .info-table td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
}
.info-table th { width: 9rem; color: var(--muted); font-weight: normal; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: #eafaf0;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.footer-col h2 { font-size: 1rem; margin: 0 0 0.6rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.35rem; }
.footer-col a { color: #eafaf0; }
.footer-col address { font-style: normal; }
.copyright {
  text-align: center;
  margin: 0;
  padding: 0.8rem 0 1.2rem;
  font-size: 0.75rem;
  color: #bcd9c8;
}
