:root {
  --paper: #fffaf0;
  --surface: #ffffff;
  --ink: #2f352f;
  --muted: #697267;
  --line: #eadfcb;
  --green: #5f9f7c;
  --green-dark: #2f6f59;
  --gold: #d8aa50;
  --blue: #6ea8bd;
  --rose: #d9877d;
  --mint: #e8f4ec;
  --cream: #fff3d8;
  --shadow: 0 24px 60px rgba(75, 88, 68, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.8), rgba(255, 250, 240, 1) 42%),
    var(--paper);
  font-family: "Zen Maru Gothic", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 240, 0.9);
  border-bottom: 1px solid rgba(234, 223, 203, 0.72);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--green-dark);
  background: linear-gradient(135deg, #fff9e7, #cdebdc);
  border: 1px solid rgba(47, 111, 89, 0.2);
  border-radius: 50%;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(47, 111, 89, 0.13);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
}

.nav a:hover {
  background: rgba(95, 159, 124, 0.12);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: min(820px, calc(100vh - 70px));
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(70px, 10vw, 128px) clamp(18px, 5vw, 72px) clamp(56px, 8vw, 96px);
  isolation: isolate;
}

.hero-compact {
  min-height: 560px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: clamp(22px, 4vw, 42px);
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(51, 57, 47, 0.14);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 900;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.16;
  font-weight: 900;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.28;
  font-weight: 900;
}

h3 {
  line-height: 1.35;
  font-size: 23px;
}

.lead,
.section-head p,
.card p,
.timeline-item p,
.office-card dd,
.footer span {
  color: var(--muted);
}

.lead {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 13px 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 26px rgba(47, 111, 89, 0.24);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.94) 0%, rgba(255, 250, 240, 0.68) 42%, rgba(255, 250, 240, 0.12) 100%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.08), rgba(255, 250, 240, 0.88));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
}

.section {
  padding: clamp(72px, 9vw, 126px) clamp(18px, 5vw, 72px);
  opacity: 0;
  transform: translateY(18px);
  transition: 0.55s ease;
}

.visual-ribbon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(18px, 4vw, 40px) clamp(18px, 5vw, 72px) 0;
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.section.is-visible,
.card.is-visible,
.timeline-item.is-visible,
.office-card.is-visible,
.service-card.is-visible,
.donation-box.is-visible,
.cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.soft-band {
  background: linear-gradient(180deg, var(--mint), #f8f6e9);
}

.section-head {
  max-width: 860px;
  margin-bottom: 36px;
}

.card-grid,
.office-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.feature-split.reverse {
  grid-template-columns: minmax(360px, 1.12fr) minmax(0, 0.88fr);
}

.feature-split > div {
  max-width: 680px;
}

.feature-split p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
}

.image-panel {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.image-panel figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 10px 14px;
  color: var(--green-dark);
  background: rgba(255, 250, 240, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.card,
.office-card,
.service-card,
.donation-box,
.form-panel,
.cta,
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(75, 88, 68, 0.1);
}

.visual-ribbon .image-panel:first-child {
  transform: translateY(18px);
}

.card,
.office-card,
.service-card,
.donation-box {
  padding: clamp(24px, 3vw, 34px);
  opacity: 0;
  transform: translateY(18px);
  transition: 0.55s ease;
}

.icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  place-items: center;
  color: var(--green-dark);
  background: #e6f4ee;
  border-radius: 50%;
  font-weight: 900;
  font-size: 22px;
}

.card:nth-child(2) .icon {
  background: #fff1c9;
}

.card:nth-child(3) .icon {
  background: #ffe0db;
}

.timeline {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: clamp(20px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(18px);
  transition: 0.55s ease;
}

.timeline-item span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--green-dark);
  background: linear-gradient(135deg, #fff4ce, #d8efe2);
  border-radius: 50%;
  font-weight: 900;
  font-size: 24px;
}

.office-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 14px;
  margin: 0;
}

.office-card dt {
  font-weight: 800;
}

.office-card dd {
  margin: 0;
}

.statement {
  max-width: 940px;
  padding: clamp(28px, 6vw, 56px);
  color: var(--green-dark);
  background:
    linear-gradient(135deg, rgba(255, 244, 206, 0.55), rgba(232, 244, 236, 0.7)),
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.statement p {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.25;
}

.notice.large {
  max-width: 980px;
  padding: clamp(24px, 4vw, 36px);
}

.notice.large strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.price-table {
  display: grid;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.price-table div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.price-table div:last-child {
  border-bottom: 0;
}

.price-table span,
.service-card li,
.donation-box dd {
  color: var(--muted);
}

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

.service-card {
  border-top: 5px solid #cdebdc;
}

.service-card:nth-child(2n) {
  border-top-color: #ffe0db;
}

.service-card ul {
  padding-left: 20px;
  margin: 16px 0 0;
}

.donation-box,
.contact-card {
  max-width: 900px;
}

.donation-box dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 16px;
  margin: 18px 0;
}

.donation-box dt {
  font-weight: 800;
}

.donation-box dd {
  margin: 0;
}

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

details {
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.form-panel {
  max-width: 900px;
  padding: clamp(22px, 4vw, 36px);
}

.field {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-list label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  background: #f8f4ea;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}

.progress {
  height: 9px;
  margin-bottom: 20px;
  overflow: hidden;
  background: #ebe2d2;
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--green);
}

.notice,
.submit-message {
  padding: clamp(18px, 3vw, 26px);
  margin-bottom: 20px;
  background: rgba(232, 244, 236, 0.88);
  border: 1px solid rgba(95, 159, 124, 0.12);
  border-radius: 8px;
}

.confirm-list {
  padding-left: 20px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.cta {
  margin: 54px clamp(18px, 5vw, 72px) 90px;
  padding: clamp(34px, 6vw, 62px);
  color: var(--green-dark);
  background:
    linear-gradient(135deg, rgba(255, 244, 206, 0.82), rgba(232, 244, 236, 0.96)),
    #fff;
  opacity: 0;
  transform: translateY(18px);
  transition: 0.55s ease;
}

.bottom-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  display: none;
  padding: 14px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 800;
  text-decoration: none;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 30px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero {
    min-height: 680px;
    align-items: end;
    padding-top: 86px;
  }

  .card-grid,
  .office-grid,
  .service-list,
  .split,
  .feature-split,
  .feature-split.reverse,
  .visual-ribbon {
    grid-template-columns: 1fr;
  }

  .visual-ribbon {
    margin-top: 0;
  }

  .nav {
    position: fixed;
    inset: 72px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav[data-open="true"] {
    display: flex;
  }

  .menu-button {
    display: inline-flex;
  }

  .bottom-cta {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  h1 {
    font-size: 38px;
  }

  .hero {
    min-height: 700px;
    padding: 92px 16px 38px;
  }

  .hero-copy {
    padding: 20px;
  }

  .hero-media img {
    object-position: center top;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.32), rgba(255, 250, 240, 0.84) 44%, rgba(255, 250, 240, 0.96)),
      linear-gradient(90deg, rgba(255, 250, 240, 0.72), rgba(255, 250, 240, 0.2));
  }

  .timeline-item {
    grid-template-columns: 52px 1fr;
    gap: 14px;
  }

  .timeline-item span {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .actions,
  .form-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
