:root {
  color-scheme: light;
  --color-bg: #f8f8f3;
  --color-surface: #ffffff;
  --color-text: #103b1d;
  --color-body: #203026;
  --color-muted: #647066;
  --color-green: #0f4a1f;
  --color-green-dark: #083514;
  --color-green-soft: #eef4ec;
  --color-line: #dfe5dc;
  --color-icon: #9ba18d;
  --font-sans: "Hiragino Maru Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  --shell: 1180px;
  --gutter: 46px;
  --section-space: 78px;
  --radius: 8px;
  --shadow: 0 18px 46px rgba(20, 48, 30, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-body);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--color-green);
}

:focus-visible {
  outline: 3px solid #7ba98a;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--color-green);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 248, 243, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-line);
}

.site-header__inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #0b2613;
  font-weight: 800;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-green);
  font-size: 1.8rem;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(16, 59, 29, 0.16);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-green);
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.site-nav {
  position: absolute;
  inset: 80px var(--gutter) auto var(--gutter);
  display: none;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.site-nav__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 13px 28px;
  border: 1px solid var(--color-green);
  border-radius: 8px;
  background: var(--color-green);
  color: #fff;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(15, 74, 31, 0.18);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.button small {
  display: block;
  font-size: 0.72rem;
}

.button__label {
  display: grid;
  gap: 2px;
}

.button:hover {
  background: var(--color-green-dark);
  color: #fff;
  transform: translateY(-1px);
}

.button--small {
  min-height: 46px;
  padding: 9px 16px;
}

.button--secondary {
  background: transparent;
  color: var(--color-green);
  box-shadow: none;
}

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

.line-dot {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-green);
  font-size: 0.62rem;
  font-weight: 900;
}

.button--secondary .line-dot {
  background: var(--color-green);
  color: #fff;
}

.section {
  position: relative;
}

.section-inner {
  width: min(100% - var(--gutter) * 2, 520px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--color-green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section__title {
  width: max-content;
  max-width: min(100%, 12.5em);
  margin: 0 auto;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: clamp(1.95rem, 3.2vw, 3rem);
  line-height: 1.35;
  font-weight: 850;
  text-align: center;
  text-wrap: balance;
}

.section__lead {
  margin: 18px 0 0;
  color: var(--color-body);
  font-size: 1rem;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - 80px);
  display: grid;
  align-items: center;
  padding-block: clamp(96px, 11vw, 150px);
  background: #f8f8f3;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(248, 248, 243, 0.74), rgba(248, 248, 243, 0.5) 44%, rgba(248, 248, 243, 0.32)),
    image-set(
      url("../images/fv-work-1920x1200.avif") type("image/avif"),
      url("../images/fv-work-1920x1200.webp") type("image/webp"),
      url("../images/fv-work-1920x1200.jpg") type("image/jpeg")
    );
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(248, 248, 243, 0.58), rgba(248, 248, 243, 0.32) 44%, rgba(248, 248, 243, 0.72)),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.45), transparent 34rem);
}

.hero__grid {
  display: grid;
  min-height: inherit;
  place-items: center;
}

.hero__body {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.hero .eyebrow {
  margin-bottom: 26px;
}

.hero__title {
  max-width: none;
  margin-inline: auto;
  font-size: clamp(2.05rem, 3.85vw, 3.45rem);
  line-height: 1.22;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.7);
}

.title-line {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}

.title-phrase {
  display: inline-block;
}

.hero__copy {
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--color-body);
  font-weight: 700;
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.72);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

.cta-bubble {
  display: inline-block;
  margin: 30px 0 12px;
  padding: 7px 18px;
  border: 1px solid #f2c46f;
  border-radius: 999px;
  background: #fff2c2;
  color: #8a4a00;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.45;
  box-shadow: 0 10px 22px rgba(183, 111, 0, 0.12);
}

.flow-section,
.profile-panel {
  min-height: auto;
  display: grid;
  align-items: center;
  padding-block: clamp(54px, 6.3vw, 84px);
  border-top: 1px solid var(--color-line);
}

.flow-section {
  background: #fff;
}

.flow-section--soft {
  background: #fbfaf6;
}

.flow-section--contact {
  min-height: auto;
  background: #f1f0eb;
}

.flow-layout {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.flow-copy {
  max-width: 620px;
  justify-self: center;
  text-align: center;
}

.flow-copy .eyebrow,
.flow-copy .section__lead {
  text-align: center;
}

.flow-copy .section__lead {
  max-width: 42em;
  margin-inline: auto;
}

.flow-copy--wide {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.flow-copy--wide .check-list {
  max-width: 650px;
  margin-inline: auto;
  text-align: left;
}

.problem-cards {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.problem-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid rgba(15, 74, 31, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f6f8f1);
  box-shadow: 0 16px 34px rgba(20, 48, 30, 0.07);
  text-align: left;
}

.problem-card span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.problem-card p {
  margin: 0;
  color: var(--color-text);
  font-weight: 800;
  line-height: 1.75;
}

.check-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.check-list p {
  position: relative;
  margin: 0;
  padding-left: 34px;
  font-weight: 700;
}

.check-list p::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}

.panel-image {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  text-align: left;
}

.process-list article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: start;
  padding-block: 14px;
  border-top: 1px solid var(--color-line);
}

.process-list span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.process-list h3,
.process-list p {
  margin: 0;
}

.process-list h3 {
  color: var(--color-text);
  font-size: 1rem;
}

.process-list p {
  color: var(--color-muted);
  font-size: 0.88rem;
}

.diagram-panel {
  overflow: hidden;
  margin: 0;
  padding: clamp(14px, 2.6vw, 24px);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.diagram-panel--button {
  display: block;
  width: 100%;
  color: inherit;
  cursor: zoom-in;
  text-align: inherit;
}

.diagram-panel img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.diagram-hint {
  margin: 12px 0 0;
  color: #7a6b56;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.contact-layout {
  display: grid;
  gap: 28px;
  align-items: center;
}

.contact-copy {
  min-width: 0;
  text-align: left;
}

.contact-copy .section__lead {
  max-width: 46em;
}

.reassurance-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  max-width: none;
}

.reassurance-list p {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 14px 16px 14px 42px;
  border: 1px solid rgba(242, 196, 111, 0.72);
  border-radius: 8px;
  background: #fff8dc;
  color: #3c3628;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.65;
  white-space: nowrap;
}

.reassurance-list p::before {
  content: "✓";
  position: absolute;
  left: 15px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f2c46f;
  color: #633800;
  font-size: 0.72rem;
  font-weight: 900;
}

.qr-box {
  justify-self: center;
  display: grid;
  gap: 12px;
  justify-items: center;
  width: min(100%, 210px);
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.qr-box img {
  width: 150px;
  aspect-ratio: 1 / 1;
}

.qr-box p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.84rem;
  text-align: center;
}

.contact-copy .button {
  margin-top: 24px;
}

.profile-panel {
  position: relative;
  overflow: hidden;
  color: #4a4a4a;
  background: #f7f6f1;
}

.profile-panel__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 246, 241, 0.86), rgba(247, 246, 241, 0.72)),
    url("../images/local-scenery-1440x810.jpg") center / cover no-repeat;
  opacity: 1;
}

.profile-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.profile-photo {
  width: min(220px, 60vw);
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 12px 28px rgba(16, 59, 29, 0.18);
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: right center;
}

.profile-name {
  margin: 0 0 20px;
  color: var(--color-green);
  font-size: 1.8rem;
  font-weight: 850;
}

.profile-layout p {
  margin: 12px 0 0;
  color: #4a4a4a;
  font-weight: 700;
}

.contact-title {
  margin-inline: 0 auto;
  max-width: min(100%, 21em);
  text-align: left;
  white-space: nowrap;
}

.image-modal {
  width: min(94vw, 1120px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.image-modal::backdrop {
  background: rgba(8, 24, 14, 0.72);
}

.image-modal__inner {
  position: relative;
  padding: clamp(14px, 2.2vw, 24px);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.image-modal__inner img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
}

.image-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(15, 74, 31, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-green);
  font-weight: 850;
}

.site-footer {
  background: var(--color-green);
  color: #fff;
}

.site-footer__inner {
  min-height: 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

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

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1040px) {
  .site-nav {
    position: static;
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-toggle {
    display: none;
  }

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

  .site-nav a:not(.button) {
    font-size: clamp(1rem, 1.1vw, 1.18rem);
  }

  .site-nav .button--small {
    min-height: 56px;
    padding: 11px 20px;
    font-size: 1.04rem;
  }

  .site-nav .button--small .line-dot {
    width: 38px;
    height: 38px;
    font-size: 0.7rem;
  }

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

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

  .flow-layout--image-left {
    grid-template-columns: minmax(420px, 1.08fr) minmax(0, 0.92fr);
  }

  .problem-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .profile-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

}

@media (max-width: 819px) {
  :root {
    --gutter: 22px;
    --section-space: 66px;
  }

  html {
    scroll-padding-top: 66px;
  }

  .site-header__inner {
    min-height: 66px;
  }

  .site-nav {
    inset: 66px var(--gutter) auto var(--gutter);
  }

  .hero {
    min-height: calc(100svh - 66px);
    padding-block: 72px 76px;
  }

  .hero::before {
    background-image:
      linear-gradient(180deg, rgba(248, 248, 243, 0.72), rgba(248, 248, 243, 0.5) 50%, rgba(248, 248, 243, 0.82)),
      image-set(
        url("../images/fv-work-1440x900.avif") type("image/avif"),
        url("../images/fv-work-1440x900.webp") type("image/webp"),
        url("../images/fv-work-1440x900.jpg") type("image/jpeg")
      );
    background-position: center;
  }

  .hero__title {
    font-size: clamp(1.46rem, 5.65vw, 2.55rem);
  }

  .hero__title .title-phrase {
    display: block;
  }

  .contact-title {
    font-size: clamp(0.86rem, 4.15vw, 1.82rem);
  }

  .hero__copy {
    font-size: 0.98rem;
  }

  .hero__actions .button {
    flex: 0 1 min(100%, 320px);
    width: min(100%, 320px);
    max-width: 100%;
    min-width: 0;
    padding-inline: 18px;
  }

  .flow-section,
  .profile-panel {
    min-height: auto;
    padding-block: 46px;
  }

  .diagram-panel {
    padding: 10px;
  }

  .problem-card {
    min-height: 0;
  }

  .reassurance-list p {
    width: auto;
    padding-block: 12px;
    white-space: normal;
  }
}

@media (max-width: 319px) {
  .contact-title {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

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