/* =============================================================
   LiliCare Project — Stylesheet
   Mobile-first architecture
   Breakpoints:
     Base (mobile)    : 0–767px
     Tablet           : @media (min-width: 768px)
     Desktop          : @media (min-width: 1024px)
   ============================================================= */


/* =============================================================
   === Tokens & reset ===
   ============================================================= */
:root {
  /* Brand palette */
  --green: #5f7f5b;
  --green-dark: #356239;
  --mint: #dfeadc;
  --mint-soft: #f3f8ef;
  --teal: #8bbec9;
  --blue-soft: #edf8fb;
  --purple: #76549a;
  --lavender: #eee8f8;
  --pink: #ee8fa3;
  --pink-soft: #fff0f3;
  --gold: #cfad54;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --ink: #2f3630;
  --muted: #69736a;
  --border: rgba(99, 126, 88, 0.2);

  /* Surfaces (section rhythm) */
  --surface-paper: #fffdf8;
  --surface-white: #ffffff;
  --surface-warm:  #fff8ec;
  --surface-pink:  #fff5f7;
  --surface-amber: #f9f2eb;

  /* Spacing scale (8px-based) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;

  /* Fluid type scale */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-lg:   clamp(17px, 1.6vw, 19px);
  --fs-xl:   clamp(20px, 2.2vw, 24px);
  --fs-2xl:  clamp(24px, 3.2vw, 32px);
  --fs-3xl:  clamp(28px, 4vw, 42px);
  --fs-hero: clamp(32px, 7.2vw, 62px);

  /* Section vertical paddings */
  --section-py-mobile:  56px;
  --section-py-tablet:  72px;
  --section-py-desktop: 96px;
  --gutter-mobile: 20px;
  --gutter-tablet: 28px;

  /* UI metrics */
  --tap-min: 44px;
  --header-h-mobile: 64px;
  --sticky-cta-h: 64px;
  --z-header: 50;
  --z-sticky-cta: 49;
  --z-mobile-menu: 60;

  /* Elevation, radius, focus */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --shadow-sm: 0 4px 12px rgba(72, 68, 50, 0.06);
  --shadow-md: 0 12px 28px rgba(72, 68, 50, 0.10);
  --shadow-lg: 0 24px 60px rgba(72, 68, 50, 0.14);
  --shadow: var(--shadow-md);
  --focus-ring: 0 0 0 3px rgba(118, 84, 154, 0.35);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(238, 143, 163, 0.08), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(139, 190, 201, 0.14), transparent 26%),
    linear-gradient(180deg, #fffdf8 0%, #fffaf0 45%, #f9fbf5 100%);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.8;
}

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

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

/* Body scroll lock when mobile menu is open */
body.has-mobile-menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Universal focus ring */
:where(a, button, [role="button"], input, select, textarea, summary):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: inherit;
}


/* =============================================================
   === Layout primitives ===
   ============================================================= */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--gutter-tablet); }
}
@media (min-width: 1024px) {
  .container {
    width: min(1180px, 100%);
    padding-inline: 0;
    margin-inline: auto;
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* =============================================================
   === Header & navigation ===
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(95, 127, 91, 0.13);
}

.nav {
  height: var(--header-h-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-inline: var(--gutter-mobile);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap-min);
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
}

.brand strong {
  display: block;
  color: var(--purple);
  font-size: 18px;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand strong::first-letter {
  color: var(--pink);
}

.brand small {
  display: block;
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
  margin-top: 2px;
}

/* Below 380px: hide the "Project" subtitle to save space */
@media (max-width: 379px) {
  .brand small { display: none; }
}

/* Desktop nav links — hidden on mobile, shown on tablet+ */
.nav-links {
  display: none;
  flex: 1;
  justify-content: center;
  gap: clamp(16px, 3vw, 42px);
  color: #2f3a31;
  font-weight: 700;
  font-size: 14px;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
}

/* Lang switch — always visible */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(95, 127, 91, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.lang-switch__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: 0.2s ease;
}

/* Invisible larger tap target overlay (44px min) */
.lang-switch__btn::before {
  content: "";
  position: absolute;
  inset: -8px -4px;
}

.lang-switch__btn:hover { color: var(--green-dark); }
.lang-switch__btn.is-active {
  color: var(--green-dark);
  background: var(--mint-soft);
}

/* Hamburger toggle */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 10px 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Right cluster wrapper (lang + hamburger) */
.nav-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* === Tablet (≥768px) === */
@media (min-width: 768px) {
  .nav {
    height: 76px;
    padding-inline: var(--gutter-tablet);
    gap: 16px;
  }
  .brand img { width: 56px; height: 56px; }
  .brand strong { font-size: 22px; }
  .brand small { font-size: 13px; display: block; }
  .nav-links { display: flex; font-size: 13px; }
  .nav-toggle { display: none; }
}

/* === Desktop (≥1024px) === */
@media (min-width: 1024px) {
  .nav {
    height: 88px;
    gap: 34px;
    padding-inline: 20px;
    max-width: 1180px;
    margin-inline: auto;
  }
  .brand img { width: 66px; height: 66px; }
  .brand strong { font-size: 25px; }
  .nav-links { font-size: 14px; }
}


/* =============================================================
   === Buttons ===
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  transition: 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #8d65ad);
  box-shadow: 0 10px 24px rgba(118, 84, 154, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(118, 84, 154, 0.28);
}

.btn-outline {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.65);
  border: 2px solid var(--green);
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: var(--mint-soft);
}


/* =============================================================
   === Mobile menu (overlay) ===
   ============================================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-menu);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 80px 24px 40px;
  background: rgba(255, 253, 248, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-menu[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}

.mobile-menu__nav a {
  display: inline-block;
  font-family: "Zen Old Mincho", serif;
  font-size: 22px;
  color: var(--green-dark);
  padding: 8px 16px;
  border-radius: 8px;
}

/* When menu is open, header rises above overlay so lang+hamburger stay tappable */
body.has-mobile-menu-open .site-header {
  z-index: calc(var(--z-mobile-menu) + 1);
  background: rgba(255, 253, 248, 0.98);
}

/* Hidden on tablet+ */
@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}


/* =============================================================
   === Hero ===
   ============================================================= */
.hero {
  position: relative;
  padding: var(--space-5) 0 var(--space-4);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 280px;
  background:
    radial-gradient(circle at 65% 20%, rgba(211, 180, 99, 0.16), transparent 26%),
    linear-gradient(180deg, #fff8ec 0%, rgba(255, 250, 240, 0.25) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  z-index: 1;
}

.hero-visual {
  order: 1;
  position: relative;
  min-height: auto;
  display: grid;
  place-items: center;
  /* Full-bleed: break out of container padding */
  margin-inline: calc(var(--gutter-mobile) * -1);
}

.hero-copy {
  order: 2;
}

.hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(72, 68, 50, 0.12));
}

/* Soft cream fade overlay at bottom of hero image */
.hero-visual::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent 0%, var(--surface-paper) 100%);
  pointer-events: none;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section-label {
  margin: 0 0 var(--space-3);
  color: var(--green);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.hero h1,
.section-heading h2,
.about h2,
.purpose h2,
.cta h2 {
  font-family: "Zen Old Mincho", serif;
  color: var(--green-dark);
  line-height: 1.18;
  margin: 0;
}

.hero h1 {
  font-size: var(--fs-hero);
  letter-spacing: 0.04em;
}

.hero h1 span {
  color: var(--pink);
}

.lead {
  max-width: 540px;
  margin: var(--space-5) 0 var(--space-5);
  color: #3c463e;
  font-weight: 500;
  font-size: var(--fs-base);
}

.hero-actions {
  display: grid;
  gap: var(--space-3);
}

.hero-actions .btn {
  width: 100%;
  min-height: 56px;
}

/* === Tablet (≥768px) === */
@media (min-width: 768px) {
  .hero { padding: var(--space-7) 0 var(--space-5); }
  .hero h1 { font-size: clamp(40px, 5vw, 56px); }
  .hero-visual {
    margin-inline: 0;
    min-height: 380px;
  }
  .hero-img { max-width: 560px; }
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
  }
  .hero-actions .btn { width: auto; min-height: 48px; }
}

/* === Desktop (≥1024px) === */
@media (min-width: 1024px) {
  .hero { padding: 48px 0 28px; }
  .hero::before { height: 420px; }
  .hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.25fr;
    gap: 50px;
    align-items: center;
  }
  .hero-visual {
    order: 0;
    min-height: 420px;
  }
  .hero-copy { order: 0; }
  .hero-visual::after { display: none; }
  .hero-img { width: min(640px, 100%); max-width: none; }
}


/* =============================================================
   === Section card (shared shell) ===
   ============================================================= */
.section-card {
  margin-top: var(--space-4);
  padding: var(--space-5) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .section-card {
    padding: var(--space-6);
    border-radius: var(--radius-xl);
  }
}

@media (min-width: 1024px) {
  .section-card { padding: 32px; }
}


/* =============================================================
   === About ===
   ============================================================= */
.about {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  border: 0;
}

.about-logo {
  order: 3; /* Logo as decorative footer on mobile */
  display: grid;
  place-items: center;
  min-height: 140px;
  border-radius: 24px;
  background: linear-gradient(145deg, #f2f8ec, #fff9ed);
}

.about-logo img {
  width: 100%;
  max-width: 160px;
  height: auto;
  object-fit: contain;
}

.about-copy { order: 1; }
.locations  { order: 2; }

.about h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-3);
}

.about p {
  margin: 0 0 var(--space-2);
}

.locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid rgba(211, 180, 99, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 240, 0.9);
}

.locations article {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  padding: 0;
}

.pin {
  width: 24px;
  height: 24px;
  color: transparent;
  border-radius: 50% 50% 50% 0;
  background: var(--green);
  transform: rotate(-45deg);
  position: relative;
}

.pin::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  left: 8px;
  top: 8px;
}

.locations h3 {
  margin: 0;
  color: var(--green-dark);
  font-family: "Zen Old Mincho", serif;
  font-size: 18px;
  line-height: 1.2;
}

.locations p {
  margin: 0;
  font-size: 12px;
}

/* === Tablet (≥768px) === */
@media (min-width: 768px) {
  .about { gap: var(--space-6); }
  .about-logo { min-height: 180px; }
  .about-logo img { max-width: 200px; }
  .about h2 { font-size: 30px; }
  .locations {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-5);
  }
  .locations article {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }
  .pin { width: 32px; height: 32px; }
  .pin::after { width: 10px; height: 10px; left: 10px; top: 10px; }
  .locations h3 { font-size: 22px; }
  .locations p  { font-size: 13px; }
}

/* === Desktop (≥1024px) === */
@media (min-width: 1024px) {
  .about {
    display: grid;
    grid-template-columns: 220px 1fr 250px;
    gap: 34px;
    align-items: center;
    margin-bottom: 30px;
  }
  .about-logo { order: 0; min-height: 210px; }
  .about-logo img { max-width: 200px; }
  .about-copy { order: 0; }
  .locations {
    order: 0;
    display: block;
    padding: 20px;
    border-radius: 24px;
  }
  .locations article {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
  }
  .locations article + article {
    border-top: 1px solid rgba(95, 127, 91, 0.18);
  }
  .pin { width: 36px; height: 36px; }
  .pin::after { width: 12px; height: 12px; left: 12px; top: 12px; }
  .locations h3 { font-size: 24px; }
  .locations p  { font-size: 14px; }
  .about h2 { font-size: 38px; }
}


/* =============================================================
   === Programs ===
   ============================================================= */
.programs {
  padding-block: var(--section-py-mobile);
}

.section-heading {
  text-align: center;
  margin-bottom: var(--space-5);
}

.section-heading h2 {
  font-size: 20px;
}

.section-heading h2::before {
  content: "〰 ";
  color: var(--gold);
}

.section-heading h2::after {
  content: " 〰";
  color: var(--gold);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.program-card {
  min-height: 220px;
  padding: 18px 14px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: 0.25s ease;
}

.program-card:hover {
  transform: translateY(-5px);
}

.program-card.lavender { background: linear-gradient(145deg, #fff, var(--lavender)); border-color: rgba(118, 84, 154, 0.25); }
.program-card.green    { background: linear-gradient(145deg, #fff, #eef6e9); border-color: rgba(95, 127, 91, 0.25); }
.program-card.blue     { background: linear-gradient(145deg, #fff, var(--blue-soft)); border-color: rgba(139, 190, 201, 0.35); }
.program-card.pink     { background: linear-gradient(145deg, #fff, var(--pink-soft)); border-color: rgba(238, 143, 163, 0.28); }

.program-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
}

.program-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.program-card h3 {
  margin: 0 0 8px;
  color: var(--purple);
  font-family: "Zen Old Mincho", serif;
  font-size: var(--fs-lg);
  line-height: 1.35;
}

.program-card p {
  margin: 0;
  color: #4b564d;
  font-size: 13px;
  line-height: 1.65;
}

/* === Tablet (≥768px) === */
@media (min-width: 768px) {
  .programs { padding-block: var(--section-py-tablet); }
  .section-heading h2 { font-size: clamp(28px, 4vw, 36px); }
  .program-grid { gap: 16px; }
  .program-card {
    min-height: 260px;
    padding: 22px 18px;
    border-radius: 26px;
  }
  .program-card .icon { width: 80px; height: 80px; }
  .program-card h3 { font-size: 20px; }
  .program-card p  { font-size: 14px; }
}

/* === Desktop (≥1024px) === */
@media (min-width: 1024px) {
  .programs { padding-block: 48px 80px; }
  .program-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  .program-card {
    min-height: 300px;
    padding: 26px 22px;
    border-radius: 28px;
  }
  .program-card .icon { width: 96px; height: 96px; margin-bottom: 16px; }
  .program-card h3 { font-size: 24px; margin-bottom: 10px; }
  .program-card p  { font-size: 14px; margin-bottom: 14px; }
  .section-heading { margin-bottom: 22px; }
  .section-heading h2 { font-size: clamp(28px, 4vw, 42px); }
}


/* =============================================================
   === Impact ===
   ============================================================= */
.impact {
  text-align: center;
  padding-block: var(--section-py-mobile);
}

.impact .impact-grid,
.impact .impact-cta {
  text-align: left;
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: var(--space-5);
  padding: 18px var(--space-4);
  border: 1px solid rgba(211, 180, 99, 0.32);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.86);
}

.impact-grid article {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
}

.impact-grid article + article {
  border-top: 1px solid rgba(95, 127, 91, 0.2);
  padding-top: 18px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.impact strong {
  display: block;
  color: var(--purple);
  font-family: "Zen Old Mincho", serif;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 8px;
}

.impact-grid h3,
.impact-grid p {
  margin: 0;
}

.impact-grid h3 {
  color: var(--green-dark);
  font-size: 14px;
}

.impact-grid p {
  color: var(--muted);
  font-size: 12px;
}

/* === Tablet (≥768px) === */
@media (min-width: 768px) {
  .impact { padding-block: var(--section-py-tablet); }
  .impact-grid { padding: var(--space-5) var(--space-6); }
  .stat-icon { width: 68px; height: 68px; }
  .impact strong  { font-size: 24px; }
  .impact-grid h3 { font-size: 15px; }
  .impact-grid p  { font-size: 13px; }
}

/* === Desktop (≥1024px) === */
@media (min-width: 1024px) {
  .impact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 22px;
    padding: 22px 34px;
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
    border-radius: 28px;
  }
  .impact-grid article {
    gap: 22px;
    padding: 0;
  }
  .impact-grid article + article {
    border-top: 0;
    padding-top: 0;
    border-left: 1px solid rgba(95, 127, 91, 0.2);
    padding-left: 28px;
  }
  .stat-icon { width: 76px; height: 76px; }
  .impact strong  { font-size: 28px; margin-bottom: 10px; }
  .impact-grid h3 { font-size: 15px; }
  .impact-grid p  { font-size: 13px; }
}


/* =============================================================
   === Purpose (Mission / Vision) ===
   ============================================================= */
.purpose {
  text-align: center;
  padding-block: var(--section-py-mobile);
}

.purpose .purpose-grid {
  padding-top: var(--space-5);
  text-align: left;
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.purpose-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-3);
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
  border-left-width: 4px;
}

.purpose-card.mission { border-left-color: var(--purple); background: linear-gradient(145deg, #fff, #f1ebf8); }
.purpose-card.vision  { border-left-color: var(--green);  background: linear-gradient(145deg, #fff, #eef7e8); }

.purpose-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -15px;
  width: 100px;
  height: 100px;
  background: url("./images/leaf-green.png") no-repeat center / contain;
  transform: rotate(20deg);
  opacity: 0.25;
  pointer-events: none;
}

.purpose-card .icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}

.purpose-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.purpose h2 {
  color: var(--purple);
  font-size: 22px;
  margin: 0 0 6px;
}

.purpose p {
  margin: 0;
  font-size: 14px;
}

/* === Tablet (≥768px) === */
@media (min-width: 768px) {
  .purpose { padding-block: var(--section-py-tablet); }
  .purpose-card {
    grid-template-columns: 72px 1fr;
    padding: 22px;
  }
  .purpose-card .icon { width: 72px; height: 72px; }
  .purpose h2 { font-size: 24px; }
}

/* === Desktop (≥1024px) === */
@media (min-width: 1024px) {
  .purpose { padding-block: 34px 80px; }
  .purpose .purpose-grid { padding-top: 22px; }
  .purpose-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .purpose-card {
    grid-template-columns: 86px 1fr;
    gap: 20px;
    padding: 24px;
    border-radius: 26px;
    border-left-width: 1px;
  }
  .purpose-card.mission { border-color: rgba(118, 84, 154, 0.25); }
  .purpose-card.vision  { border-color: rgba(95, 127, 91, 0.25); }
  .purpose-card::after {
    right: -30px;
    bottom: -20px;
    width: 180px;
    height: 180px;
    opacity: 0.35;
  }
  .purpose-card .icon { width: 86px; height: 86px; }
  .purpose h2 { font-size: 26px; }
}


/* =============================================================
   === CTA ===
   ============================================================= */
.cta {
  margin-top: var(--space-7);
  margin-bottom: var(--space-7);
  padding: var(--space-6) var(--space-4);
  border-radius: 24px;
  border: 1px solid rgba(211, 180, 99, 0.3);
  background: linear-gradient(160deg, #fff8ec 0%, #fef0e8 60%, #fffaf0 100%);
  box-shadow: var(--shadow);
}

.cta-header {
  text-align: center;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(95, 127, 91, 0.18);
}

.cta-header h2 {
  color: var(--green-dark);
  font-size: var(--fs-2xl);
  margin: 0 0 var(--space-2);
}

.cta-subtitle {
  margin: 0;
  color: var(--green);
  font-family: "Zen Old Mincho", serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.cta-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.cta-photo {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}

.cta-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-message-title {
  margin: 0 0 var(--space-3);
  color: var(--green-dark);
  font-family: "Zen Old Mincho", serif;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.cta-message p {
  margin: 0 0 var(--space-3);
  color: #3c463e;
  font-size: var(--fs-base);
  line-height: 1.85;
}

.cta-message p:last-of-type {
  margin-bottom: var(--space-5);
}

.cta-actions {
  display: grid;
  gap: var(--space-3);
}

.cta-actions .btn {
  width: 100%;
  min-height: 64px;
  padding: 16px 36px;
  font-size: 18px;
}

/* Optional pulse for primary CTA — respects reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .cta-actions .btn-primary {
    animation: cta-pulse 2.6s ease-in-out infinite;
  }
  @keyframes cta-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.02); }
  }
}

/* === Tablet (≥768px) === */
@media (min-width: 768px) {
  .cta {
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
    padding: var(--space-7);
    border-radius: 28px;
  }
  .cta-header h2 { font-size: clamp(26px, 3vw, 32px); }
  .cta-subtitle  { font-size: 15px; }
  .cta-message-title { font-size: 22px; }
}

/* === Desktop (≥1024px) === */
@media (min-width: 1024px) {
  .cta {
    margin-top: 100px;
    margin-bottom: 100px;
    padding: 48px;
    border-radius: 30px;
  }
  .cta-header { margin-bottom: 36px; padding-bottom: 28px; }
  .cta-header h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 10px; }
  .cta-subtitle { font-size: clamp(13px, 1.4vw, 16px); }
  .cta-body {
    display: grid;
    grid-template-columns: 0.95fr 1.15fr;
    gap: 40px;
    align-items: center;
  }
  .cta-photo { border-radius: 22px; }
  .cta-message-title { font-size: 22px; margin-bottom: 16px; }
  .cta-message p { font-size: 14px; line-height: 1.95; margin-bottom: 14px; }
  .cta-message p:last-of-type { margin-bottom: 22px; }
  .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .cta-actions .btn {
    width: auto;
    min-height: 56px;
    padding: 14px 36px;
    font-size: 16px;
  }
}


/* =============================================================
   === White zone wrapper (unified light backdrop) ===
   ============================================================= */
.white-zone {
  background: #ffffff;
  padding-block: 4px;
}

.white-zone .impact {
  background: #fffdf5;
  border: 0;
  border-radius: 0;
  margin: 20px 0 20px;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  );
          mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  );
}

@media (min-width: 1024px) {
  .white-zone .impact {
    padding: 120px 0;
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0,
      #000 60px,
      #000 calc(100% - 60px),
      transparent 100%
    );
            mask-image: linear-gradient(
      to bottom,
      transparent 0,
      #000 60px,
      #000 calc(100% - 60px),
      transparent 100%
    );
  }
}

.white-zone .purpose-card,
.white-zone .purpose-card.mission,
.white-zone .purpose-card.vision {
  background: #ffffff;
  border-color: rgba(99, 126, 88, 0.18);
}

.white-zone .purpose-card.mission { border-left-color: var(--purple); }
.white-zone .purpose-card.vision  { border-left-color: var(--green); }

.white-zone .cta {
  background: linear-gradient(160deg, #fff8ec 0%, #fef0e8 60%, #fffaf0 100%);
  border-color: rgba(207, 173, 84, 0.15);
}


/* =============================================================
   === Founder ===
   ============================================================= */
.white-zone .founder {
  background: #ffffff;
}

.founder {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: center;
  margin-top: var(--space-5);
  text-align: center;
}

.founder-photo {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #f7eef7, #fff5f9);
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(118, 84, 154, 0.16);
  box-shadow: 0 0 0 10px var(--pink-soft), 0 24px 36px rgba(118, 84, 154, 0.12);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-copy {
  width: 100%;
  text-align: left;
}

.founder-copy h2 {
  color: var(--green-dark);
  font-family: "Zen Old Mincho", serif;
  font-size: var(--fs-2xl);
  margin: 0 0 var(--space-1);
  text-align: center;
}

.founder-role {
  color: var(--purple);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 14px;
  margin: 0 0 var(--space-4);
  text-align: center;
}

.founder-copy p {
  margin: 0 0 var(--space-3);
  color: #3c463e;
}

.founder-quote {
  position: relative;
  margin: var(--space-5) 0 0;
  padding: var(--space-5) var(--space-4) var(--space-4);
  background: var(--surface-pink);
  border-radius: 16px;
  font-style: italic;
  color: var(--green-dark);
}

.founder-quote::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  left: 8px;
  font-family: "Zen Old Mincho", serif;
  font-size: 64px;
  color: var(--pink);
  opacity: 0.4;
  line-height: 1;
}

.founder-quote p {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  font-family: "Zen Old Mincho", serif;
}

.founder-quote cite {
  display: block;
  margin-top: var(--space-2);
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}

/* === Tablet (≥768px) === */
@media (min-width: 768px) {
  .founder { gap: var(--space-6); margin-top: var(--space-6); }
  .founder-photo { max-width: 280px; }
  .founder-quote { padding: var(--space-5) var(--space-5) var(--space-4); }
  .founder-quote p { font-size: 17px; }
}

/* === Desktop (≥1024px) === */
@media (min-width: 1024px) {
  .founder {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 26px;
    text-align: left;
  }
  .founder-photo {
    max-width: none;
    box-shadow: none;
    background: linear-gradient(145deg, #f7eef7, #fff5f9);
  }
  .founder-copy { text-align: left; }
  .founder-copy h2 { font-size: 36px; margin-bottom: 6px; text-align: left; }
  .founder-role { font-size: 14px; margin-bottom: 18px; text-align: left; }
  .founder-copy p { margin-bottom: 12px; }
  .founder-quote {
    margin: 22px 0 0;
    padding: 18px 22px;
    border-radius: 0 16px 16px 0;
    border-left: 4px solid var(--pink);
  }
  .founder-quote::before { display: none; }
  .founder-quote p { font-size: 15px; line-height: 1.75; font-family: inherit; }
}


/* =============================================================
   === Partner (Haronoya / 日本正規代理店) ===
   ============================================================= */
.white-zone .partner {
  background: var(--surface-amber);
  border-color: rgba(44, 36, 31, 0.12);
}

.partner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-4);
  margin-top: var(--space-5);
  margin-bottom: var(--space-7);
  border-radius: var(--radius-lg);
  align-items: center;
  text-align: center;
}

.partner .section-label {
  font-size: 13px;
  margin: 0 0 var(--space-1);
  letter-spacing: 0.1em;
  color: #d57a3b;
}

.partner-copy {
  width: 100%;
  text-align: center;
}

.partner-copy h2 {
  font-family: "Zen Old Mincho", serif;
  color: #2c241f;
  font-size: 22px;
  margin: 2px 0 8px;
}

.partner-copy p {
  margin: 0 0 var(--space-3);
  color: #3d332b;
  font-size: 14px;
  line-height: 1.7;
}

.partner-copy .btn {
  min-height: 48px;
  padding: 12px 24px;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #d57a3b, #e89656);
  box-shadow: 0 8px 20px rgba(213, 122, 59, 0.3);
  margin-top: var(--space-1);
}

.partner-copy .btn:hover {
  background: linear-gradient(135deg, #c86c30, #d57a3b);
  box-shadow: 0 12px 24px rgba(213, 122, 59, 0.4);
}

.partner-copy .partner-note {
  margin-top: var(--space-5);
  margin-bottom: 0;
  font-size: 11px;
  color: rgba(44, 36, 31, 0.55);
  line-height: 1.6;
}

.partner-illust {
  width: 100%;
  max-width: 200px;
}

.partner-illust img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 26px rgba(95, 127, 91, 0.14));
}

/* === Tablet (≥768px) === */
@media (min-width: 768px) {
  .partner {
    padding: var(--space-6) var(--space-5);
    gap: var(--space-5);
  }
  .partner-copy h2 { font-size: 24px; }
}

/* === Desktop (≥1024px) === */
@media (min-width: 1024px) {
  .partner {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 36px;
    padding: 22px 26px;
    align-items: center;
    margin-top: 26px;
    margin-bottom: 60px;
    text-align: left;
  }
  .partner-copy { text-align: left; }
  .partner-copy h2 { font-size: 22px; }
  .partner-copy p  { font-size: 13px; }
  .partner-copy .btn {
    min-height: 40px;
    padding: 10px 20px;
    font-size: 13px;
  }
  .partner-illust { max-width: none; }
}


/* =============================================================
   === Footer ===
   ============================================================= */
.site-footer {
  background: #fffaf0;
  border-top: 1px solid rgba(95, 127, 91, 0.16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "brand   brand"
    "quick   join"
    "quick   contact";
  column-gap: var(--space-5);
  row-gap: var(--space-5);
  padding: var(--space-6) var(--gutter-mobile) var(--space-5);
  align-items: start;
}

.footer-grid > div:nth-child(1) { grid-area: brand; }
.footer-grid > div:nth-child(2) { grid-area: quick; padding-right: var(--space-3); }
.footer-grid > div:nth-child(3) { grid-area: join; }
.footer-grid > div:nth-child(4) { grid-area: contact; }

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.footer-brand p {
  margin: var(--space-2) 0 var(--space-3);
}

.socials {
  display: flex;
  gap: 9px;
}

.socials a {
  width: var(--tap-min);
  height: var(--tap-min);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--purple);
  font-size: 14px;
  font-weight: 800;
}

.socials a:nth-child(2) { background: var(--pink); }
.socials a:nth-child(3) { background: var(--teal); }
.socials a:nth-child(4) { background: #d34848; }

.site-footer h3 {
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-2);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(95, 127, 91, 0.18);
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 0 0 var(--space-1);
  color: #414a42;
  font-size: 14px;
  line-height: 1.7;
}

.site-footer a {
  padding-block: 8px;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--green-dark);
}

.site-footer .footer-donate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-1);
  padding: 12px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #8d65ad);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(118, 84, 154, 0.2);
}

.site-footer .footer-donate:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(118, 84, 154, 0.28);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 20px;
  color: white;
  background: var(--green);
  font-size: 12px;
  text-align: center;
}

.footer-bottom p { margin: 0; }

/* === Tablet (≥768px) === */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    padding: var(--space-7) 0 var(--space-6);
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img { width: 110px; height: 110px; }
}

/* === Desktop (≥1024px) === */
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    grid-template-areas: "brand quick join contact";
    gap: 48px;
    padding: 48px 0 32px;
    align-items: start;
  }
  .footer-brand {
    grid-column: auto;
    padding-right: 20px;
  }
  .site-footer a,
  .site-footer p {
    font-size: 13px;
    margin-bottom: var(--space-1);
  }
  .site-footer a { padding-block: 0; }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    padding: 9px clamp(20px, 5vw, 60px);
  }
  .socials a {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
}


/* =============================================================
   === Sticky donate bar (mobile only) ===
   ============================================================= */
.sticky-donate {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky-cta);
  display: flex;
  align-items: center;
  padding: 8px var(--gutter-mobile);
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -8px 24px rgba(72, 68, 50, 0.08);
  transform: translateY(120%);
  transition: transform 0.3s ease;
}

.sticky-donate[data-visible="true"] {
  transform: translateY(0);
}

.sticky-donate__btn {
  flex: 1;
  min-height: 48px;
  font-size: 15px;
  /* Override the .cta-actions pulse — not wanted in sticky bar */
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .sticky-donate { transition: none; }
}

@media (min-width: 768px) {
  .sticky-donate { display: none !important; }
}

/* Add bottom padding to body on mobile so sticky bar doesn't cover footer last lines */
@media (max-width: 767px) {
  body { padding-bottom: 0; }
  body.has-sticky-donate { padding-bottom: calc(var(--sticky-cta-h) + env(safe-area-inset-bottom)); }
}
