:root {
  /* Pale green mood */
  --bg: #f7fbf7;
  --paper: #ffffff;
  --ink: #1f2a24;
  --muted: #58665f;
  --line: rgba(31, 42, 36, 0.1);
  --shadow: 0 14px 34px rgba(28, 52, 36, 0.1);
  --shadow2: 0 10px 18px rgba(28, 52, 36, 0.08);

  --mint-50: #f3fbf3;
  --mint-100: #e8f7e8;
  --mint-200: #d6efd8;
  --mint-300: #bfe5c6;
  --mint-600: #3b8f58;
  --mint-700: #2f7847;

  /* Section accents (still within pale-green world) */
  --accent-med: #2f7847;
  --accent-care: #3b8f58;
  --accent-school: #2f6f78;
  --accent-community: #7a6a2f;

  --radius: 1.25rem;
  --radius-sm: 1.25rem;
  --container: 1100px;
  --header-height: 104px;
  --header-inline-pad: clamp(12px, 2vw, 28px);
  --mv-inline-margin: 0px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
html:lang(ja) {
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", sans-serif;
  line-height: 1.7;
  overflow-x: clip;
}
body.menu-open {
  overflow: hidden;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  transform: translateY(0);
  transition: transform 0.28s ease;
}
.topbar.is-hidden {
  transform: translateY(-100%);
}
.topbar > .container {
  max-width: none;
  width: 100%;
  padding: 0 var(--mv-inline-margin);
}
.topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  height: 4.25rem;
  flex: 0 0 auto;
}
.brand img {
  width: auto;
  height: 4.25rem;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand .brand-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand .brand-txt span {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.header-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  margin-left: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: end;
  flex: none;
  padding: 0;
}
.menu-toggle {
  display: none;
  width: 86px;
  min-height: 70px;
  padding: 8px 10px 10px;
  border: none;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column-reverse;
  gap: 8px;
  transition:
    background-color 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s ease;
}
.menu-toggle:hover {
  background: var(--mint-50);
}
.menu-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 143, 88, 0.22);
}
.menu-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
}
.menu-bars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}
.menu-bars span {
  width: 40px;
  height: 2px;
  border-radius: 0;
  background: var(--ink);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1) {
  transform: translateY(5px) rotate(32deg);
}
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(2) {
  transform: translateY(-5px) rotate(-32deg);
}
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  transition: color 0.2s ease;
}
.pill::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 99px;
  background: var(--mint-700);
  opacity: 0.9;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.pill:hover,
.pill:focus-visible {
  color: var(--mint-700);
}
.pill:hover::after,
.pill:focus-visible::after {
  transform: scaleX(1);
}
.pill:focus-visible {
  outline: none;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #00aa5c;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 20px rgba(47, 120, 71, 0.22);
  white-space: nowrap;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    filter 0.24s ease;
}
.cta:hover,
.cta:focus-visible {
  outline: none;
  filter: brightness(1.03);
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(47, 120, 71, 0.24);
}
.cta:active {
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(47, 120, 71, 0.2);
}

/* Hero */
.hero {
  padding: 0 0 28px;
}
.hero-wrap {
  position: relative;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  border-radius: 0.625rem;
  border-bottom: 1px solid var(--line);
}
.hero-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* .hero-wrap:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(13, 30, 20, 0.3) 0%,
      rgba(13, 30, 20, 0.14) 45%,
      rgba(13, 30, 20, 0.04) 72%,
      rgba(13, 30, 20, 0) 100%
    ),
    linear-gradient(
      180deg,
      rgba(13, 30, 20, 0.05) 0%,
      rgba(13, 30, 20, 0.16) 100%
    );
  pointer-events: none;
} */
.hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 56px var(--header-inline-pad) 0;
  color: #fff;
}
.hero-title {
  margin: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-wrap: balance;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.hero-lead {
  margin: 18px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.04em;
  word-break: auto-phrase;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.24);
}
.lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 500;
}

.message-section {
  padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 9vw, 112px);
}

.message-grid {
  --message-heading-size: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  column-gap: min(14.453125vw, 11.5625rem);
  row-gap: 22px;
  align-items: start;
  min-height: clamp(340px, 39vw, 430px);
}

.message-grid h2 {
  flex: 0 0 max-content;
  margin: 0;
  max-width: none;
  color: var(--ink);
  font-size: var(--message-heading-size);
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.message-copy {
  flex: 0 1 24rem;
  align-self: flex-start;
  display: grid;
  gap: 0;
  max-width: 410px;
  margin-top: calc(var(--message-heading-size) * 3);
}

.message-copy p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 500;
  line-height: 2;
}

/* Sections */
section {
  padding: 44px 0;
}
.section-card {
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}
#medical .section-card {
  border: none;
  box-shadow: none;
  overflow: visible;
}
#care .section-card {
  border: none;
  box-shadow: none;
  overflow: visible;
}
#school .section-card {
  border: none;
  box-shadow: none;
  overflow: visible;
}
#community .section-card {
  border: none;
  box-shadow: none;
  overflow: visible;
}
#medical .container {
  --medical-shell: 1280px;
  --medical-inline-pad: 24px;
  max-width: var(--medical-shell);
  padding: 0 var(--medical-inline-pad);
}
#care .container {
  --care-shell: 1280px;
  --care-inline-pad: 24px;
  max-width: var(--care-shell);
  padding: 0 var(--care-inline-pad);
}
#school .container {
  --school-shell: 1280px;
  --school-inline-pad: 24px;
  max-width: var(--school-shell);
  padding: 0 var(--school-inline-pad);
}
#community .container {
  --community-shell: 1280px;
  --community-inline-pad: 24px;
  max-width: var(--community-shell);
  padding: 0 var(--community-inline-pad);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 22px 0;
}
#medical .section-head {
  padding: 0;
}
#care .section-head {
  padding: 0;
}
#care .section-head .title-wrap {
  width: auto;
}
#school .section-head {
  padding: 0;
}
#community .section-head {
  padding: 0;
}

#medical .title-wrap,
#care .title-wrap,
#school .title-wrap,
#community .title-wrap {
  width: 100%;
}

#medical .title-wrap h2,
#care .title-wrap h2,
#school .title-wrap h2,
#community .title-wrap h2 {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0;
}

#medical .title-wrap h2 {
  background: rgba(47, 120, 71, 0.1);
  color: var(--accent-med);
}

#care .title-wrap h2 {
  background: rgba(59, 143, 88, 0.1);
  color: var(--accent-care);
}

#school .title-wrap h2 {
  background: rgba(47, 111, 120, 0.1);
  color: var(--accent-school);
}

#community .title-wrap h2 {
  background: rgba(122, 106, 47, 0.1);
  color: var(--accent-community);
}

#medical .title-wrap p,
#care .title-wrap p,
#school .title-wrap p,
#community .title-wrap p {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.35;
}

.title-wrap h2 {
  margin: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 28px;
  letter-spacing: 0.02em;
}
.title-wrap p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 500;
}

.section-body {
  display: block;
  gap: 18px;
  padding: 18px 22px 22px;
}

/* Make medical/care visually heavier */
.major .section-body {
  display: block;
}

.use-cards {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.use-card {
  display: flex;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  background: var(--mint-50);
  border: 1px solid rgba(31, 42, 36, 0.1);
}
.use-card-photo {
  width: 108px;
  height: 74px;
  border-radius: 1.25rem;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
}
.ico {
  width: 40px;
  height: 40px;
  border-radius: 1.25rem;
  display: grid;
  place-items: center;
  background: rgba(214, 239, 216, 0.9);
  border: 1px solid rgba(59, 143, 88, 0.18);
  flex: 0 0 auto;
}
.use-card strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
}
.use-card span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.section-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 18px rgba(28, 52, 36, 0.08);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    background-color 0.24s ease,
    border-color 0.24s ease,
    filter 0.24s ease;
}
.btn.primary {
  color: #fff;
  border: none;
  background: #00aa5c;
}
.btn:hover,
.btn:focus-visible {
  outline: none;
  transform: translateY(-2px);
  background: var(--mint-50);
  border-color: rgba(59, 143, 88, 0.28);
  box-shadow: 0 14px 24px rgba(28, 52, 36, 0.12);
}
.btn.primary:hover,
.btn.primary:focus-visible {
  background: #00aa5c;
  filter: brightness(1.04);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 14px rgba(28, 52, 36, 0.1);
}

/* Photo layouts (inspired by reference illustration) */
.photo-stack {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
}
.photo-strip {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 10px;
}
.photo {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(31, 42, 36, 0.1);
  background: #e7f3ea;
  box-shadow: 0 10px 18px rgba(28, 52, 36, 0.06);
  min-height: 150px;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo.big {
  min-height: 280px;
}

.caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 42, 36, 0.1);
  font-weight: 900;
  font-size: 12px;
  color: var(--ink);
}
#medical .section-body {
  align-items: stretch;
  padding: 18px 0 22px;
}
#care .section-body {
  align-items: stretch;
  padding: 18px 0 22px;
}
#school .section-body {
  align-items: stretch;
  padding: 18px 0 22px;
}
#community .section-body {
  align-items: stretch;
  padding: 18px 0 22px;
}
#care .section-body > div:last-child {
  display: flex;
  flex-direction: column;
}
#school .section-body > div:first-child {
  display: flex;
  flex-direction: column;
}
#community .section-body > div:last-child {
  display: flex;
  flex-direction: column;
}
#care .section-actions {
  margin-top: auto;
  padding-top: 14px;
}
#care .section-actions .btn {
  box-shadow: none;
}
#school .section-actions {
  margin-top: auto;
  padding-top: 14px;
}
#school .section-actions .btn {
  box-shadow: none;
}
#community .section-actions {
  margin-top: auto;
  padding-top: 14px;
}
#community .section-actions .btn {
  box-shadow: none;
}
#medical .section-body > div:first-child {
  display: flex;
  flex-direction: column;
}
#medical .use-cards,
#care .use-cards,
#school .use-cards,
#community .use-cards {
  flex: 1;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  background: none;
  border: none;
  gap: 14px;
}
#school .use-cards {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
#community .use-cards {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
#medical .use-card,
#care .use-card,
#school .use-card,
#community .use-card {
  height: 100%;
  align-items: flex-start;
  background: transparent;
  border: none;
  padding: 12px 0;
  gap: 16px;
}
#medical .use-card-photo,
#care .use-card-photo,
#school .use-card-photo,
#community .use-card-photo {
  width: 360px;
  height: auto;
}
#medical .use-card > div,
#care .use-card > div,
#school .use-card > div,
#community .use-card > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
#medical .use-card strong,
#care .use-card strong,
#school .use-card strong,
#community .use-card strong {
  font-size: 18px;
  line-height: 1.5;
}
#medical .use-card span,
#care .use-card span,
#school .use-card span,
#community .use-card span {
  font-size: 16px;
  line-height: 1.8;
}
.section-actions {
  justify-content: center;
  margin-top: 24px;
  padding: 0 0 22px;
}
.section-actions .btn {
  width: 100%;
  max-width: 320px;
  min-height: 56px;
  padding: 16px 24px;
  font-size: 18px;
  box-shadow: none;
}
#medical .medical-fullbleed {
  width: 100%;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  border-top-left-radius: 1.25rem;
  border-bottom-left-radius: 1.25rem;
  width: calc(
    100% +
      max(
        var(--medical-inline-pad),
        calc((100vw - var(--medical-shell)) / 2 + var(--medical-inline-pad))
      )
  );
  margin-right: calc(
    -1 *
      max(
        var(--medical-inline-pad),
        calc((100vw - var(--medical-shell)) / 2 + var(--medical-inline-pad))
      )
  );
}
#medical .medical-fullbleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#care .care-fullbleed {
  width: 100%;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  border-top-right-radius: 1.25rem;
  border-bottom-right-radius: 1.25rem;
  width: calc(
    100% +
      max(
        var(--care-inline-pad),
        calc((100vw - var(--care-shell)) / 2 + var(--care-inline-pad))
      )
  );
  margin-left: calc(
    -1 *
      max(
        var(--care-inline-pad),
        calc((100vw - var(--care-shell)) / 2 + var(--care-inline-pad))
      )
  );
}
#care .care-fullbleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#school .school-fullbleed {
  width: 100%;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  border-top-left-radius: 1.25rem;
  border-bottom-left-radius: 1.25rem;
  width: calc(
    100% +
      max(
        var(--school-inline-pad),
        calc((100vw - var(--school-shell)) / 2 + var(--school-inline-pad))
      )
  );
  margin-right: calc(
    -1 *
      max(
        var(--school-inline-pad),
        calc((100vw - var(--school-shell)) / 2 + var(--school-inline-pad))
      )
  );
}
#school .school-fullbleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#community .community-fullbleed {
  width: 100%;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  border-top-right-radius: 1.25rem;
  border-bottom-right-radius: 1.25rem;
  width: calc(
    100% +
      max(
        var(--community-inline-pad),
        calc((100vw - var(--community-shell)) / 2 + var(--community-inline-pad))
      )
  );
  margin-left: calc(
    -1 *
      max(
        var(--community-inline-pad),
        calc((100vw - var(--community-shell)) / 2 + var(--community-inline-pad))
      )
  );
}
#community .community-fullbleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.donation-area {
  margin: 44px 0 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  width: 100%;
}
.panel {
  background: var(--paper);
  border: none;
  border-radius: 1.25rem;
  box-shadow: none;
  overflow: hidden;
}
.panel h3 {
  margin: 0;
  padding: 18px 18px 12px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 28px;
  letter-spacing: 0.02em;
}
.panel .inner {
  padding: 0 18px 18px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.benefit {
  border-radius: 1.25rem;
  background: var(--mint-50);
  border: 1px solid rgba(31, 42, 36, 0.1);
  padding: 12px;
  min-height: 92px;
}
.benefit strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
}
.benefit span {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.8;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
label {
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}
input,
select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 1.25rem;
  border: 1px solid rgba(31, 42, 36, 0.14);
  background: #fff;
  font-size: 14px;
  outline: none;
}
input:focus,
select:focus {
  border-color: rgba(59, 143, 88, 0.55);
  box-shadow: 0 0 0 4px rgba(214, 239, 216, 0.7);
}

.amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chip {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 42, 36, 0.14);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.chip:hover,
.chip:focus-visible {
  outline: none;
  transform: translateY(-1px);
  background: var(--mint-50);
  border-color: rgba(59, 143, 88, 0.34);
  box-shadow: 0 8px 14px rgba(28, 52, 36, 0.1);
}
.chip:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(28, 52, 36, 0.08);
}

/* Official rf-lower footer: https://www.rakuwa.or.jp/common/js/rakuwa-footer.js */
#rakuwa-footer {
  --general-white: #fff;
  --general-black: #262626;
  --text-gray: #737373;
  --main-green: #00aa5c;
  padding: 0;
  background: var(--general-white);
  color: var(--general-black);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
#rakuwa-footer ul,
#rakuwa-footer p {
  margin: 0;
  padding: 0;
  list-style: none;
}
#rakuwa-footer .rf-link-list { margin-top: 1.625rem; }
#rakuwa-footer .rf-copyright { margin-top: .75rem; }
#rakuwa-footer .rf-logo img { display: block; }
@media screen and (min-width: 1024px) {
  #rakuwa-footer .rf-link-list,
  #rakuwa-footer .rf-copyright { margin-top: 0; }
}
.rf-lower{display:grid;padding:2.5rem 1.5rem 2.1875rem;margin-inline:auto}@media screen and (min-width: 1024px){.rf-lower{grid-template-columns:1fr auto auto;column-gap:min(4.375vw,3.5rem);align-items:center;width:min(93.75vw,75rem);padding:1.5rem 0 1.375rem}}.rf-logo{width:6rem}@media screen and (min-width: 1024px){.rf-logo{width:7.5rem}}.rf-logo>a{display:block}.rf-logo>a img{width:100%;height:auto}.rf-link-list{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin-top:1.625rem}@media screen and (min-width: 1024px){.rf-link-list{gap:0 min(1.25vw,1rem);margin-top:0}}.rf-link-list>.item a{font-size:.875rem;font-weight:500;color:var(--text-gray);transition:opacity .4s ease;text-decoration:underline;text-decoration-thickness:.03125rem;text-underline-offset:.1875rem}@media (hover: hover) and (pointer: fine){.rf-link-list>.item a:hover{opacity:.7}}.rf-link-list>.item a[target=_blank]:after{display:inline-block;width:.5rem;height:.5rem;margin-top:.5em;margin-left:.25rem;vertical-align:top;content:"";background-color:currentcolor;-webkit-mask-image:url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="1" y="4" width="7" height="7" stroke="black" stroke-width="2"/><path d="M11 9L11 1L3 1" stroke="black" stroke-width="2"/></svg>');mask-image:url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="1" y="4" width="7" height="7" stroke="black" stroke-width="2"/><path d="M11 9L11 1L3 1" stroke="black" stroke-width="2"/></svg>');-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}.rf-copyright{margin-top:.75rem;font-family:Inter,sans-serif;font-size:.75rem;color:var(--text-gray)}@media screen and (min-width: 1024px){.rf-copyright{margin-top:0}}

/* Accent helpers */
.accent-med .btn.primary {
  background: #00aa5c;
}

.accent-care .btn.primary {
  background: #00aa5c;
}
.accent-school .btn.primary {
  background: #00aa5c;
}
.accent-community .btn.primary {
  background: #00aa5c;
}

/* Scroll reveal (subtle) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.72s ease,
    transform 0.72s cubic-bezier(0.2, 0.65, 0.25, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* Responsive */
@media (max-width: 1024px) {
  .topbar-main {
    padding: 0;
  }
  .brand {
    min-width: 220px;
  }
  .header-right {
    flex: 0 0 auto;
    gap: 10px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100dvh - var(--header-height));
    overflow: auto;
    padding: 18px 24px 28px;
    border-top: 1px solid rgba(31, 42, 36, 0.14);
    background: #fff;
    box-shadow: none;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
    z-index: 70;
  }
  .nav::before {
    content: "";
    display: block;
    border-top: 1px solid rgba(31, 42, 36, 0.2);
    margin-bottom: 8px;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav .pill {
    width: 100%;
    justify-content: space-between;
    padding: 16px 6px;
    font-size: 18px;
    line-height: 1.25;
    border-bottom: 1px solid rgba(31, 42, 36, 0.16);
    color: #2a2f2c;
  }
  .nav .pill:last-child {
    border-bottom: 1px solid rgba(31, 42, 36, 0.16);
  }
  .nav .pill::after {
    content: "+";
    position: static;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    opacity: 1;
    transform: none;
    font-size: 30px;
    line-height: 1;
    color: #2a2f2c;
    transition: none;
  }
  .nav .pill:hover,
  .nav .pill:focus-visible {
    background: transparent;
    color: #2a2f2c;
  }
}
@media (max-width: 980px) {
  .hero {
    padding: 0 0 20px;
  }
  .message-grid {
    min-height: 0;
  }
  .message-copy {
    max-width: none;
    margin-top: 0;
  }
  .hero-wrap {
    height: 100vh;
    height: 100svh;
  }
  /* .hero-wrap:after {
    background: linear-gradient(
      180deg,
      rgba(13, 30, 20, 0.08) 0%,
      rgba(13, 30, 20, 0.22) 76%,
      rgba(13, 30, 20, 0.3) 100%
    );
  } */
  .hero-content {
    padding: 40px var(--header-inline-pad) 0;
  }
  .hero-title {
    font-size: clamp(34px, 8.5vw, 52px);
    line-height: 1.12;
  }
  .hero-lead {
    margin-top: 14px;
    max-width: 100%;
  }
  .donation-area {
    grid-template-columns: 1fr;
  }
  #medical .container {
    --medical-inline-pad: 18px;
  }
  #care .container {
    --care-inline-pad: 18px;
  }
  #school .container {
    --school-inline-pad: 18px;
  }
  #community .container {
    --community-inline-pad: 18px;
  }
  #medical .medical-fullbleed {
    min-height: 360px;
  }
  #care .care-fullbleed {
    min-height: 360px;
  }
  #school .school-fullbleed {
    min-height: 360px;
  }
  #community .community-fullbleed {
    min-height: 360px;
  }
  #medical .use-cards,
  #care .use-cards,
  #school .use-cards,
  #community .use-cards {
    flex: none;
    grid-template-rows: none;
  }
  #medical .use-card,
  #care .use-card,
  #school .use-card,
  #community .use-card {
    height: auto;
  }
  #medical .use-card-photo,
  #care .use-card-photo,
  #school .use-card-photo,
  #community .use-card-photo {
    width: 360px;
    height: auto;
  }
  #medical .use-card strong,
  #care .use-card strong,
  #school .use-card strong,
  #community .use-card strong {
    font-size: 16px;
  }
  #medical .use-card span,
  #care .use-card span,
  #school .use-card span,
  #community .use-card span {
    font-size: 14px;
  }
  .benefit strong {
    font-size: 16px;
  }
  .benefit span {
    font-size: 14px;
  }
  #medical .section-actions .btn {
    width: 100%;
  }
  #care .section-actions .btn {
    width: 100%;
  }
  #school .section-actions .btn {
    width: 100%;
  }
  #community .section-actions .btn {
    width: 100%;
  }
}
@media (max-width: 560px) {
  :root {
    --header-height: 88px;
    --header-inline-pad: 8px;
  }
  .topbar > .container {
    padding: 0 var(--mv-inline-margin);
  }
  .topbar-main {
    gap: 8px;
  }
  #medical .container {
    --medical-inline-pad: 14px;
  }
  #care .container {
    --care-inline-pad: 14px;
  }
  #school .container {
    --school-inline-pad: 14px;
  }
  #community .container {
    --community-inline-pad: 14px;
  }
  .hero-wrap {
    height: 100vh;
    height: 100svh;
  }
  .hero-content {
    padding: 32px var(--header-inline-pad) 0;
  }
  .hero-title {
    font-size: 30px;
  }
  .hero-lead {
    margin-top: 12px;
  }
  .brand {
    min-width: auto;
    gap: 6px;
    height: 2.35rem;
    flex: 1 1 auto;
    min-width: 0;
  }
  .brand img {
    height: auto;
    max-width: none;
  }
  .brand .brand-txt {
    display: none;
  }
  .header-right {
    gap: 6px;
  }
  .header-cta {
    padding: 7px 9px;
    font-size: 11px;
    line-height: 1.2;
  }
  .menu-toggle {
    width: 72px;
    min-height: 58px;
    padding: 7px 8px 8px;
    gap: 6px;
  }
  .menu-label {
    display: block;
    font-size: 10px;
  }
  .menu-bars span {
    width: 30px;
  }
  .nav {
    padding: 14px 16px 22px;
  }
  .nav .pill {
    padding: 14px 4px;
    font-size: 16px;
    line-height: 1.2;
  }
  .nav .pill::after {
    font-size: 26px;
  }
  #medical .medical-fullbleed {
    order: -1;
  }
  #school .school-fullbleed {
    order: -1;
  }
  .use-card-photo {
    width: 92px;
    height: 66px;
  }
  #medical .use-card-photo,
  #care .use-card-photo,
  #school .use-card-photo,
  #community .use-card-photo {
    width: 360px;
    height: auto;
  }
  #medical .use-card,
  #care .use-card,
  #school .use-card,
  #community .use-card {
    gap: 12px;
    padding: 10px 0;
  }
  #medical .use-card strong,
  #care .use-card strong,
  #school .use-card strong,
  #community .use-card strong {
    font-size: 15px;
  }
  #medical .use-card span,
  #care .use-card span,
  #school .use-card span,
  #community .use-card span {
    font-size: 13px;
    line-height: 1.7;
  }
  .benefit strong {
    font-size: 15px;
  }
  .benefit span {
    font-size: 13px;
    line-height: 1.7;
  }
  #medical .medical-fullbleed {
    min-height: 300px;
  }
  #care .care-fullbleed {
    min-height: 300px;
  }
  #school .school-fullbleed {
    min-height: 300px;
  }
  #medical .medical-fullbleed,
  #school .school-fullbleed {
    height: 300px;
  }
  #community .community-fullbleed {
    min-height: 300px;
  }
  .photo-strip {
    grid-template-columns: 1fr;
  }
  .photo.big {
    min-height: 220px;
  }
  .benefits {
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 768px) {
  :root {
    --mv-inline-margin: 1.25rem;
  }

  .message-section > .container {
    width: min(81.25vw, 65rem);
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .hero-wrap {
    width: auto;
    margin-right: var(--mv-inline-margin);
    margin-left: var(--mv-inline-margin);
    border-radius: 1.25rem;
  }

  .hero-content {
    padding-top: 4.140625vw;
    padding-left: 4.140625vw;
  }

  .message-grid {
    --message-heading-size: 3rem;
  }
}

@media screen and (min-width: 1024px) {
  :root {
    --mv-inline-margin: min(3.125vw, 2.5rem);
  }

  .hero-wrap {
    margin-right: var(--mv-inline-margin);
    margin-left: var(--mv-inline-margin);
  }
}

#medical .section-card > .use-cards,
#care .section-card > .use-cards,
#school .section-card > .use-cards {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: none;
  flex: none;
  gap: 18px;
  margin-top: 0;
  padding: 0 22px 22px;
}

#medical .use-cards-head,
#care .use-cards-head,
#school .use-cards-head {
  padding: 0 22px 14px;
}

#medical .use-cards-head h3,
#care .use-cards-head h3,
#school .use-cards-head h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
}

#medical .use-cards-head h3 {
  color: var(--accent-med);
}

#care .use-cards-head h3 {
  color: var(--accent-care);
}

#school .use-cards-head h3 {
  color: var(--accent-school);
}

#medical .use-cards-head p,
#care .use-cards-head p,
#school .use-cards-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.8;
}

#medical .section-card > .use-cards .use-card,
#care .section-card > .use-cards .use-card,
#school .section-card > .use-cards .use-card {
  height: auto;
  align-items: flex-start;
  flex-direction: row;
  gap: 12px;
  padding: 12px 0;
}

#medical .section-card > .use-cards .use-card > div,
#care .section-card > .use-cards .use-card > div,
#school .section-card > .use-cards .use-card > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  #medical .section-card > .use-cards,
  #care .section-card > .use-cards,
  #school .section-card > .use-cards {
    padding: 0 18px 20px;
  }

  #medical .use-cards-head,
  #care .use-cards-head,
  #school .use-cards-head {
    padding: 0 18px 12px;
  }
}

.use-card,
#medical .use-card,
#care .use-card,
#school .use-card,
#community .use-card {
  flex-direction: column;
}

.use-card .btn {
  align-self: flex-start;
  margin-top: 14px;
  padding: 10px 18px;
}

#medical .section-card > .use-cards .use-card,
#care .section-card > .use-cards .use-card,
#school .section-card > .use-cards .use-card {
  flex-direction: row;
}

#care .use-card,
#school .use-card,
#community .use-card {
  align-items: stretch;
  flex-direction: row;
}

#care .use-card > div,
#school .use-card > div,
#community .use-card > div {
  min-height: 150px;
}

/* =========================
   スマホ崩れ完全対策
========================= */
@media (max-width: 768px) {
  .topbar {
    padding: 1.25rem;
  }

  .hero.accent-med {
    margin-right: 0.75rem;
    margin-left: 0.75rem;
  }

  /* ① 横スクロール強制防止 */
  body {
    overflow-x: hidden;
  }

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

  /* ② use-card 縦積み */
  .use-card,
  #medical .use-card,
  #care .use-card,
  #school .use-card,
  #community .use-card {
    flex-direction: column !important;
  }

  /* ③ 画像サイズ自動化 */
  .use-card-photo,
  #medical .use-card-photo,
  #care .use-card-photo,
  #school .use-card-photo,
  #community .use-card-photo {
    width: 100% !important;
    max-width: 100%;
    height: auto;
  }

  /* ④ fullbleed解除（超重要） */
  #medical .medical-fullbleed,
  #care .care-fullbleed,
  #school .school-fullbleed,
  #community .community-fullbleed {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 1rem;
  }

  /* ⑤ コンテナ余白調整 */
  .container {
    padding: 0 14px;
  }

  /* ⑥ メッセージ見出し折り返し */
  .message-grid h2 {
    white-space: normal;
  }

  /* ⑦ ボタンフル幅 */
  .btn,
  .cta {
    width: 100%;
    text-align: center;
  }
}
