:root {
  --cream: #fffaf1;
  --paper: #fffdf8;
  --green: #0f654f;
  --green-deep: #0a4e3f;
  --green-soft: #eaf3e9;
  --orange: #e8752e;
  --brown: #4a372d;
  --ink: #18372f;
  --line: rgba(30, 84, 66, .15);
  --shadow: 0 18px 48px rgba(32, 67, 51, .12);
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body {
  margin: 0;
  color: var(--ink);
  background: #f8f6ef;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 9999;
  background: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 10px max(18px, calc((100vw - 1180px)/2));
  background: rgba(255, 253, 248, .93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; display: flex; flex-direction: column; gap: 2px; min-width: 230px; }
.brand-title { font-weight: 700; color: var(--green-deep); letter-spacing: .04em; }
.brand-tagline { font-size: 11px; color: #796b5d; }
.global-nav { display: flex; align-items: center; gap: 19px; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; font-size: 13px; }
.global-nav a { text-decoration: none; white-space: nowrap; }
.nav-cta { border: 0; border-radius: 999px; padding: 11px 17px; color: #fff; background: var(--green); font-weight: 700; }
.menu-button { display: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 13px; }

main { width: 100%; }
.visual-section { width: min(1200px, 100%); margin: 0 auto; background: #fff; }
.visual-section img { display: block; width: 100%; height: auto; }
.visual-section--hero { margin-top: 0; }
.visual-section--final { padding-bottom: 0; }

.contact-band {
  background: linear-gradient(135deg, #f8f1e7, #eef5ec);
  padding: 64px 20px;
  border-block: 1px solid rgba(59, 103, 79, .13);
}
.contact-band__inner { max-width: 960px; margin: 0 auto; text-align: center; }
.eyebrow { margin: 0 0 8px; font: 600 12px/1.2 Georgia, serif; letter-spacing: .28em; color: #7b927f; }
.contact-band h2 { margin: 0 0 12px; color: var(--green-deep); font-size: clamp(25px, 4vw, 38px); }
.contact-band p { line-height: 1.9; }
.contact-actions { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.button {
  min-height: 84px; border-radius: 18px; padding: 16px 24px; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid rgba(36,75,59,.14); box-shadow: 0 9px 30px rgba(40,74,59,.08);
}
.button--phone { background: #fff8f4; color: #b84e37; }
.button--phone strong { font: 700 24px/1.2 Georgia, serif; }
.button--form { color: #fff; background: var(--green); border: 0; font-weight: 700; }

.site-footer { padding: 44px 20px 118px; text-align: center; background: var(--green-deep); color: #fff; line-height: 1.8; }
.site-footer p { margin: 4px 0; }

.sticky-cta {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 120;
  width: min(610px, calc(100% - 28px)); transform: translateX(-50%);
  pointer-events: none;
}
.sticky-cta__button { pointer-events: auto; width: 100%; padding: 0; border: 0; background: transparent; filter: drop-shadow(0 8px 18px rgba(0,0,0,.18)); }
.sticky-cta__button img { display: block; width: 100%; height: auto; }

.contact-dialog {
  width: min(720px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0;
  border: 0; border-radius: 24px; box-shadow: 0 30px 100px rgba(13, 45, 34, .3);
  color: var(--ink); background: var(--paper);
}
.contact-dialog::backdrop { background: rgba(14, 34, 28, .58); backdrop-filter: blur(4px); }
.dialog-shell { position: relative; padding: 34px; overflow: auto; max-height: calc(100dvh - 24px); }
.dialog-close { position: sticky; float: right; top: 0; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 28px; line-height: 1; }
.dialog-shell h2 { margin: 7px 0 9px; color: var(--green-deep); font-size: clamp(25px, 5vw, 36px); }
.dialog-lead { color: #675e55; line-height: 1.8; }
.field { margin-top: 18px; }
.field label { display: block; margin-bottom: 7px; font-weight: 700; }
.required { font-size: 11px; padding: 3px 7px; margin-left: 6px; background: #fce9df; color: #aa4c31; border-radius: 999px; }
.field input, .field textarea {
  width: 100%; border: 1px solid rgba(49, 88, 69, .24); border-radius: 12px; padding: 13px 14px;
  background: #fff; color: var(--ink); outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15,101,79,.12); }
.privacy-check { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; line-height: 1.6; }
.form-error { color: #b54231; background: #fff0ed; padding: 11px 13px; border-radius: 10px; }
.form-submit { width: 100%; border: 0; border-radius: 14px; padding: 16px; color: #fff; background: var(--green); font-weight: 700; }
.form-confirm dl { margin: 20px 0; display: grid; grid-template-columns: 150px 1fr; border-top: 1px solid var(--line); }
.form-confirm dt, .form-confirm dd { margin: 0; padding: 12px 7px; border-bottom: 1px solid var(--line); white-space: pre-wrap; }
.form-confirm dt { font-weight: 700; }
.connection-note { padding: 12px; background: #fff4e8; border-radius: 12px; line-height: 1.7; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.button-secondary { display: flex; justify-content: center; align-items: center; text-align: center; text-decoration: none; padding: 12px; border-radius: 12px; border: 1px solid var(--line); color: var(--green-deep); background: #fff; }

@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .site-header { padding: 8px 14px; }
  .brand-title { font-size: 14px; }
  .brand-tagline { font-size: 9px; }
  .menu-button { display: block; }
  .global-nav {
    position: absolute; top: 100%; left: 10px; right: 10px; display: none; flex-direction: column; align-items: stretch;
    padding: 13px; background: rgba(255,253,248,.98); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  }
  .global-nav.is-open { display: flex; }
  .global-nav a, .nav-cta { padding: 11px 12px; text-align: left; }
  .nav-cta { text-align: center; }
  .contact-band { padding: 48px 18px; }
  .contact-actions { grid-template-columns: 1fr; }
  .sticky-cta { width: min(520px, calc(100% - 20px)); bottom: calc(8px + env(safe-area-inset-bottom)); }
  .dialog-shell { padding: 24px 18px; }
  .form-confirm dl { grid-template-columns: 1fr; }
  .form-confirm dt { border-bottom: 0; padding-bottom: 2px; color: var(--green-deep); }
  .form-confirm dd { padding-top: 2px; }
  .confirm-actions { grid-template-columns: 1fr; }
}

@media (min-width: 1201px) {
  body { background: #ede9df; }
  main { width: min(1200px, 100%); margin: 0 auto; box-shadow: 0 0 70px rgba(51,50,44,.09); background: #fff; }
  .contact-band { width: 1200px; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* production hardening */
img { max-width: 100%; }
.visual-section { overflow: clip; }
.global-nav a:focus-visible, .nav-cta:focus-visible, .menu-button:focus-visible,
.button:focus-visible, .sticky-cta__button:focus-visible, .dialog-close:focus-visible,
.form-submit:focus-visible, .button-secondary:focus-visible {
  outline: 3px solid rgba(232,117,46,.8);
  outline-offset: 3px;
}
body.dialog-open .sticky-cta { opacity: 0; pointer-events: none; }
.sticky-cta { transition: opacity .18s ease; }
@media (max-width: 480px) {
  .site-footer { padding-bottom: 108px; }
  .contact-band h2 { font-size: 25px; }
  .button--phone strong { font-size: 22px; }
  .dialog-shell { padding: 22px 16px 28px; }
}
@media print {
  .site-header, .sticky-cta, .contact-band, .contact-dialog { display: none !important; }
  body, main { background: #fff; box-shadow: none; }
}

.hp-field {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.form-status {
  margin: 1rem 0;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: #f2f8f4;
  color: #145e49;
  font-weight: 700;
}
.form-status.is-error {
  background: #fff1ef;
  color: #a33b32;
}
.form-submit[disabled] { opacity: .6; cursor: wait; }
