/* ============================================================
   一般社団法人グッドラック  Official Website
   Color palette: white / near-black / deep green (accent)
   ============================================================ */

:root {
  --white: #ffffff;
  --off-white: #f7f6f3;
  --black: #1a1a1a;
  --gray: #6b6b6b;
  --line: #e3e1dc;
  --green: #2e5e3f;
  --green-dark: #234a31;
  --green-pale: #eef3ef;

  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-serif: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;

  --max-w: 1120px;
  --pad-x: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 2;
  color: var(--black);
  background: var(--white);
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- Header ---------- */

/* NOTE: backdrop-filter は position: fixed の基準を変えてしまい
   モバイルの全画面メニューが崩れるため使用しない */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark { width: 34px; height: 34px; }

.brand-text { line-height: 1.3; }

.brand-text .en {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  display: block;
}

.brand-text .ja {
  font-size: 10.5px;
  color: var(--gray);
  letter-spacing: 0.14em;
  display: block;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.global-nav a {
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 6px 0;
  position: relative;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 22px !important;
  font-size: 13.5px !important;
  letter-spacing: 0.1em;
  transition: background 0.3s ease;
}

.nav-cta::after { display: none; }

.nav-cta:hover { background: var(--green-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  margin: 6px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  color: var(--white);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px var(--pad-x) 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-brand .en {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2em;
  display: block;
}

.footer-brand .ja {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.14em;
  display: block;
  margin-top: 4px;
}

.footer-brand address {
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 24px;
  line-height: 1.9;
}

.footer-nav {
  display: flex;
  gap: 64px;
}

.footer-nav ul li { margin-bottom: 14px; }

.footer-nav a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}

.footer-nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
}

.footer-bottom small {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Common sections ---------- */

.section { padding: 110px 0; }

.section--tight { padding: 80px 0; }

.section--off { background: var(--off-white); }

.section--dark { background: var(--black); color: var(--white); }

.section-head { margin-bottom: 56px; }

.section-label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 16px;
}

.section--dark .section-label { color: #8fbf9e; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.section-lead {
  margin-top: 28px;
  max-width: 640px;
  font-size: 15.5px;
  line-height: 2.2;
  color: var(--gray);
}

.section--dark .section-lead { color: rgba(255, 255, 255, 0.75); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  letter-spacing: 0.12em;
  padding: 18px 40px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-family: var(--font-sans);
}

.btn .arrow { transition: transform 0.3s ease; }

.btn:hover { background: var(--black); color: var(--white); }
.btn:hover .arrow { transform: translateX(5px); }

.btn--green {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.btn--green:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn--white {
  border-color: var(--white);
  color: var(--white);
}

.btn--white:hover { background: var(--white); color: var(--black); }

/* ---------- Hero (index) ---------- */

.hero {
  position: relative;
  padding: 140px 0 120px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.5;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
}

.hero-inner { position: relative; }

.hero-copy {
  font-family: var(--font-serif);
  font-size: clamp(34px, 6.4vw, 64px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.08em;
}

.hero-copy .accent { color: var(--green); }

.hero-sub {
  margin-top: 36px;
  max-width: 600px;
  font-size: 15.5px;
  line-height: 2.3;
  color: var(--gray);
}

.hero-actions {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-scroll {
  margin-top: 88px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.hero-scroll::after {
  content: "";
  width: 64px;
  height: 1px;
  background: var(--gray);
}

/* ---------- Mission ---------- */

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.mission-statement {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0.08em;
}

.mission-body p { margin-bottom: 1.6em; font-size: 15.5px; color: #3a3a3a; }
.mission-body p:last-of-type { margin-bottom: 0; }

.mission-link { margin-top: 40px; }

/* ---------- Projects ---------- */

.project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project-card {
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 40px 44px;
  position: relative;
  display: block;
  transition: background 0.35s ease;
}

a.project-card:hover { background: var(--green-pale); }

.project-card--cta {
  display: flex;
  align-items: flex-end;
}

.project-num {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--green);
  display: block;
  margin-bottom: 22px;
}

.project-card h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.project-card .en-sub {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
  margin-top: 6px;
}

.project-card p {
  margin-top: 20px;
  font-size: 14px;
  line-height: 2.1;
  color: var(--gray);
}

.project-card .more {
  margin-top: 24px;
  font-family: var(--font-en);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.project-card .more .arrow { transition: transform 0.3s ease; }
.project-card:hover .more .arrow { transform: translateX(5px); }

/* ---------- Numbers strip ---------- */

.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.number-item {
  background: var(--white);
  padding: 56px 24px;
  text-align: center;
}

.number-item .value {
  font-family: var(--font-en);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.number-item .value .unit {
  font-size: 0.45em;
  margin-left: 4px;
  letter-spacing: 0.1em;
}

.number-item .label {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--gray);
  letter-spacing: 0.1em;
  line-height: 1.8;
}

.numbers-note {
  margin-top: 20px;
  font-size: 11.5px;
  color: var(--gray);
  text-align: right;
}

/* ---------- Donation CTA ---------- */

.donate-cta { text-align: center; }

.donate-cta .section-title { max-width: 760px; margin: 0 auto; }

.donate-cta .section-lead {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.donate-cta .actions {
  margin-top: 52px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- News ---------- */

.news-list { border-top: 1px solid var(--line); }

.news-list li { border-bottom: 1px solid var(--line); }

.news-list a {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 26px 8px;
  transition: background 0.3s ease;
}

.news-list a:hover { background: var(--off-white); }

.news-date {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gray);
  flex-shrink: 0;
}

.news-cat {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 2px 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.news-title { font-size: 14.5px; line-height: 1.8; }

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero .section-label { margin-bottom: 20px; }

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.page-hero .lead {
  margin-top: 28px;
  max-width: 680px;
  font-size: 15.5px;
  line-height: 2.2;
  color: var(--gray);
}

.breadcrumb {
  margin-top: 48px;
  font-size: 12px;
  color: var(--gray);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- About page ---------- */

.philosophy-block {
  max-width: 800px;
}

.philosophy-block .statement {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}

.philosophy-block p { margin-bottom: 1.6em; font-size: 15.5px; color: #3a3a3a; }

.message-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 72px;
  align-items: start;
}

.message-side .name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.message-side .title {
  font-size: 12.5px;
  color: var(--gray);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 8px;
}

.message-side .portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--off-white);
  border: 1px solid var(--line);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.message-body p { margin-bottom: 1.6em; font-size: 15.5px; color: #3a3a3a; }

/* ---------- Tables (overview / history) ---------- */

.def-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}

.def-table th,
.def-table td {
  padding: 24px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 2;
  text-align: left;
  vertical-align: top;
}

.def-table th {
  width: 220px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gray);
  white-space: nowrap;
}

.history-list { border-top: 1px solid var(--line); }

.history-list li {
  display: flex;
  gap: 40px;
  padding: 24px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.history-list .year {
  font-family: var(--font-en);
  letter-spacing: 0.08em;
  color: var(--green);
  width: 88px;
  flex-shrink: 0;
}

/* ---------- Activities page ---------- */

.activity-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.activity-block:last-of-type { border-bottom: 0; }

.activity-block.reverse .activity-visual { order: 2; }

.activity-visual {
  aspect-ratio: 4 / 3;
  background: var(--off-white);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.activity-visual svg { width: 100%; height: 100%; }

.activity-text .project-num { margin-bottom: 18px; }

.activity-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.7;
}

.activity-text .en-sub {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
  margin-top: 8px;
}

.activity-text p {
  margin-top: 26px;
  font-size: 15px;
  line-height: 2.2;
  color: #3a3a3a;
}

.activity-points {
  margin-top: 28px;
}

.activity-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 8px;
  line-height: 1.9;
}

.activity-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1.5px;
  background: var(--green);
}

/* ---------- Support page ---------- */

.support-reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.support-reason {
  background: var(--white);
  padding: 48px 36px;
}

.support-reason .num {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--green);
  display: block;
  margin-bottom: 20px;
}

.support-reason h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.support-reason p {
  margin-top: 18px;
  font-size: 14px;
  line-height: 2.1;
  color: var(--gray);
}

.donation-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.donation-method {
  border: 1px solid var(--black);
  padding: 56px 48px;
}

.donation-method.featured {
  background: var(--black);
  color: var(--white);
}

.donation-method .tag {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 20px;
}

.donation-method.featured .tag { color: #8fbf9e; }

.donation-method h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.donation-method p {
  margin-top: 20px;
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--gray);
}

.donation-method.featured p { color: rgba(255, 255, 255, 0.75); }

.donation-method .btn { margin-top: 32px; }

.other-support-list { border-top: 1px solid var(--line); }

.other-support-list li {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 32px 16px;
  border-bottom: 1px solid var(--line);
}

.other-support-list h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.other-support-list p {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 2.1;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.contact-info p {
  font-size: 14.5px;
  color: var(--gray);
  margin-bottom: 28px;
}

.contact-detail {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  font-size: 14.5px;
  line-height: 2.2;
}

.contact-detail dt {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gray);
  font-family: var(--font-en);
  text-transform: uppercase;
  margin-top: 20px;
}

.contact-detail dd { margin: 0; }

.contact-form .field { margin-bottom: 28px; }

.contact-form label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.contact-form label .req {
  color: var(--green);
  font-size: 11px;
  margin-left: 8px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--off-white);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--black);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}

.contact-form textarea { min-height: 180px; resize: vertical; }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .mission-grid,
  .activity-block,
  .contact-grid,
  .donation-methods,
  .message-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .activity-block.reverse .activity-visual { order: 0; }

  .support-reasons { grid-template-columns: 1fr; }

  .numbers { grid-template-columns: repeat(2, 1fr); }

  .message-side { max-width: 320px; }
}

@media (max-width: 820px) {
  .section { padding: 80px 0; }

  .nav-toggle { display: block; }

  .global-nav {
    position: fixed;
    inset: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .global-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .global-nav a { font-size: 17px; }

  .project-list { grid-template-columns: 1fr; }

  .footer-nav { gap: 40px; flex-wrap: wrap; }

  .news-list a { flex-wrap: wrap; gap: 12px 20px; }

  .other-support-list li { grid-template-columns: 1fr; gap: 12px; }

  .def-table th { width: 130px; white-space: normal; }

  .history-list li { gap: 20px; }

  .donation-method { padding: 40px 28px; }
}

/* ---------- Photos ---------- */

.hero-photo {
  margin-top: 72px;
  border: 1px solid var(--line);
}

.hero-photo img,
.mission-photo img,
.philosophy-photo img,
.activity-visual img,
.project-hero-photo img,
.photo-grid img,
.portrait img,
.support-reason-photo img,
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo img { aspect-ratio: 21 / 9; }

.mission-photo {
  margin-top: 40px;
  border: 1px solid var(--line);
}

.mission-photo img { aspect-ratio: 4 / 3; }

.philosophy-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: start;
}

.philosophy-photo {
  border: 1px solid var(--line);
  position: sticky;
  top: 110px;
}

.philosophy-photo img { aspect-ratio: 4 / 5; }

.project-thumb {
  margin: -48px -40px 28px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.project-thumb img {
  aspect-ratio: 16 / 9;
  transition: transform 0.6s ease;
}

a.project-card:hover .project-thumb img { transform: scale(1.04); }

.project-hero-photo {
  border: 1px solid var(--line);
}

.project-hero-photo img { aspect-ratio: 21 / 9; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.photo-grid figure {
  border: 1px solid var(--line);
  overflow: hidden;
}

.photo-grid img { aspect-ratio: 4 / 3; transition: transform 0.6s ease; }
.photo-grid figure:hover img { transform: scale(1.04); }

.support-reason-photo {
  margin: -48px -36px 28px;
  border-bottom: 1px solid var(--line);
}

.support-reason-photo img { aspect-ratio: 16 / 9; }

/* ---------- Project detail ---------- */

.project-body-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  align-items: start;
}

.project-body h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.7;
  margin: 2.2em 0 0.9em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.project-body h2:first-child { margin-top: 0; }

.project-body h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 1.8em 0 0.7em;
}

.project-body p {
  margin-bottom: 1.5em;
  font-size: 15.5px;
  line-height: 2.2;
  color: #3a3a3a;
}

.project-body ul,
.project-body ol {
  margin: 0 0 1.5em;
  padding-left: 2px;
}

.project-body ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: #3a3a3a;
  margin-bottom: 10px;
  line-height: 2;
}

.project-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 1.5px;
  background: var(--green);
}

.project-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.project-side-box {
  border: 1px solid var(--black);
  padding: 40px 36px;
  position: sticky;
  top: 110px;
}

.project-side-detail { margin: 20px 0 32px; }

.project-side-detail dt {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--gray);
  margin-top: 18px;
}

.project-side-detail dd {
  margin: 4px 0 0;
  font-size: 14.5px;
  line-height: 1.9;
}

.project-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.project-nav-link {
  padding: 28px 8px;
  display: block;
  transition: opacity 0.3s ease;
}

.project-nav-link:hover { opacity: 0.6; }

.project-nav-link .dir {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--green);
  display: block;
}

.project-nav-link .name {
  font-size: 14px;
  margin-top: 4px;
  display: block;
}

.project-nav-link.next { text-align: right; }

.project-nav-link.center {
  font-size: 13px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--black);
  padding: 4px 2px;
}

/* ---------- News item ---------- */

.news-item-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.news-body p { margin-bottom: 1.5em; }

/* ---------- Donate widget ---------- */

.donate-widget {
  max-width: 880px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--black);
  padding: 0 0 48px;
}

.donate-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.donate-tab {
  font-family: var(--font-sans);
  background: var(--off-white);
  border: 0;
  border-bottom: 1px solid var(--black);
  padding: 26px 16px 22px;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.06em;
  color: var(--gray);
  transition: background 0.3s ease, color 0.3s ease;
}

.donate-tab + .donate-tab { border-left: 1px solid var(--line); }

.donate-tab .tab-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.donate-tab .tab-sub {
  display: block;
  font-size: 11.5px;
  margin-top: 6px;
  letter-spacing: 0.08em;
}

.donate-tab.is-active {
  background: var(--white);
  border-bottom-color: transparent;
  color: var(--black);
}

.donate-tab.is-active .tab-sub { color: var(--green); }

.donate-panel { display: none; padding: 40px 48px 0; }
.donate-panel.is-active { display: block; }

.donate-panel-lead {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 2.1;
  margin-bottom: 28px;
}

.amount-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.amount-option {
  font-family: var(--font-en);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 18px 8px 14px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.amount-option .yen {
  display: block;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--black);
}

.amount-option .per {
  display: block;
  font-size: 11px;
  color: var(--gray);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

.amount-option.is-active {
  border-color: var(--green);
  background: var(--green-pale);
  box-shadow: inset 0 0 0 1px var(--green);
}

.custom-units {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--gray);
  flex-wrap: wrap;
}

.custom-units input {
  width: 110px;
  border: 1px solid var(--line);
  background: var(--off-white);
  padding: 10px 12px;
  font-family: var(--font-en);
  font-size: 15px;
}

.custom-units input:focus { outline: none; border-color: var(--green); background: var(--white); }

.monthly-benefits {
  margin-top: 36px;
  background: var(--green-pale);
  padding: 28px 32px;
}

.monthly-benefits h3 {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.monthly-benefits li {
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  line-height: 2;
  color: #3a3a3a;
  margin-bottom: 8px;
}

.monthly-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: rotate(-45deg);
}

.donate-summary {
  margin: 36px 48px 0;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.donate-summary strong {
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.02em;
}

.donate-summary strong span { font-size: 0.5em; color: var(--gray); font-weight: 400; }

.donate-submit {
  display: flex;
  width: calc(100% - 96px);
  margin: 28px 48px 0;
  justify-content: center;
  font-size: 15.5px;
  padding: 20px;
}

.donate-submit:disabled { opacity: 0.5; cursor: wait; }

.donate-note {
  margin: 16px 48px 0;
  color: #b3261e;
  font-size: 13.5px;
}

.checkout-container { margin: 32px 24px 0; }

.donate-disabled-notice {
  margin: 32px 48px 0;
  background: var(--off-white);
  border: 1px solid var(--line);
  padding: 24px 28px;
  font-size: 14px;
  line-height: 2.1;
  color: var(--gray);
}

.donate-disabled-notice a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

.donate-legal-notes {
  margin: 36px 48px 0;
}

.donate-legal-notes li {
  position: relative;
  padding-left: 16px;
  font-size: 12px;
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 6px;
}

.donate-legal-notes li::before {
  content: "※";
  position: absolute;
  left: 0;
}

.donate-legal-notes a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal pages ---------- */

.legal-body {
  max-width: 800px;
  font-size: 14.5px;
  line-height: 2.2;
  color: #3a3a3a;
}

.legal-body h2 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 2.4em 0 0.8em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.legal-body ul {
  margin: 0.5em 0 1.5em;
}

.legal-body ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 1.5px;
  background: var(--green);
}

.legal-body a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

.legal-date {
  margin-top: 48px;
  font-size: 13px;
  color: var(--gray);
}

/* ---------- Forms (public) ---------- */

.form-error {
  background: #fdecea;
  border: 1px solid #e5b4af;
  color: #b3261e;
  padding: 14px 18px;
  font-size: 13.5px;
  margin-bottom: 24px;
}

.form-privacy-note {
  font-size: 12.5px;
  color: var(--gray);
  margin-bottom: 24px;
}

.form-privacy-note a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

.contact-thanks {
  border: 1px solid var(--line);
  background: var(--off-white);
  padding: 56px 48px;
  text-align: center;
}

/* ---------- Footer SNS ---------- */

.footer-sns { display: flex; gap: 20px; }

.footer-sns a {
  font-family: var(--font-en);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer-sns a:hover { color: var(--white); }

/* ---------- Responsive (additions) ---------- */

@media (max-width: 960px) {
  .philosophy-grid,
  .project-body-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .philosophy-photo,
  .project-side-box { position: static; }

  .photo-grid { grid-template-columns: repeat(2, 1fr); }

  .amount-options { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .donate-panel { padding: 28px 24px 0; }
  .donate-summary,
  .donate-submit,
  .donate-note,
  .donate-legal-notes,
  .donate-disabled-notice { margin-left: 24px; margin-right: 24px; }
  .donate-submit { width: calc(100% - 48px); }
  .checkout-container { margin: 24px 8px 0; }
  .project-thumb { margin: -48px -40px 24px; }
  .project-nav-inner { flex-wrap: wrap; }
}

/* ============================================================
   Micro-interactions & motion (v2)
   ============================================================ */

/* ---- Refined scroll reveal: blur + lift + stagger ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.22, 0.7, 0.2, 1),
    filter 0.9s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

[data-reveal-text] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.7, 0.2, 1);
}
[data-reveal-text].is-visible { opacity: 1; transform: none; }

/* ---- Hero load animation ---- */
.hero-copy .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero-copy .line > span {
  display: inline-block;
  transform: translateY(115%);
  animation: heroLineUp 1s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}
.hero-copy .line:nth-child(1) > span { animation-delay: 0.15s; }
.hero-copy .line:nth-child(2) > span { animation-delay: 0.32s; }

@keyframes heroLineUp {
  to { transform: translateY(0); }
}

.hero-load {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}
.hero-load--2 { animation-delay: 0.5s; }
.hero-load--3 { animation-delay: 0.66s; }
.hero-load--4 { animation-delay: 0.82s; }

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll.hero-load { animation-name: heroFadeUp; }

/* gentle pulse on the SCROLL line */
.hero-scroll::after { transform-origin: left; animation: scrollLine 2.4s ease-in-out infinite; }
@keyframes scrollLine {
  0%, 100% { transform: scaleX(0.4); opacity: 0.5; }
  50% { transform: scaleX(1); opacity: 1; }
}

/* ---- Parallax on hero image ---- */
.hero-photo img {
  transform: translateY(var(--parallax, 0px)) scale(1.04);
  will-change: transform;
}

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.1s linear;
}

/* ---- Header scroll states ---- */
.site-header {
  transition: transform 0.45s cubic-bezier(0.22, 0.7, 0.2, 1), box-shadow 0.4s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.05); }
.site-header.is-hidden { transform: translateY(-100%); }

/* ---- Buttons: fill-sweep on hover ---- */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color 0.4s ease, border-color 0.4s ease, transform 0.25s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.6, 0, 0.2, 1);
  z-index: -1;
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--green::before { background: var(--green-dark); }
.btn--white::before { background: var(--white); }
.btn--green { transition: color 0.4s ease, border-color 0.4s ease, transform 0.15s ease; }

/* keep existing hover colours working with the sweep */
.btn:hover { background: transparent; }
.btn--green:hover { background: transparent; }

/* ---- Animated underline for content links ---- */
.mission-body a:not(.btn),
.legal-body a,
.project-body a,
.blog-post-body a,
.footer-sns a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s cubic-bezier(0.22, 0.7, 0.2, 1);
  text-decoration: none;
}
.mission-body a:not(.btn):hover,
.legal-body a:hover,
.project-body a:hover,
.blog-post-body a:hover,
.footer-sns a:hover { background-size: 100% 1px; }

/* ---- News rows: arrow slide-in on hover ---- */
.news-list a { position: relative; transition: background 0.35s ease, padding-left 0.35s ease; }
.news-list a::before {
  content: "→";
  position: absolute;
  left: -4px;
  opacity: 0;
  color: var(--green);
  transition: opacity 0.35s ease, left 0.35s ease;
}
.news-list a:hover { padding-left: 28px; }
.news-list a:hover::before { opacity: 1; left: 8px; }

/* ---- Project / blog card lift ---- */
a.project-card { transition: background 0.35s ease, transform 0.4s cubic-bezier(0.22,0.7,0.2,1), box-shadow 0.4s ease; }
a.project-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.06); }

/* ---- Back to top ---- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 0.7, 0.2, 1), background 0.3s ease;
  z-index: 90;
}
.to-top.is-shown { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover { background: var(--green); }
.to-top-arrow {
  width: 8px; height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(-45deg) translate(-1px, 1px);
  transition: transform 0.3s ease;
}
.to-top:hover .to-top-arrow { transform: rotate(-45deg) translate(-1px, -2px); }
.to-top-label { font-family: var(--font-en); font-size: 8px; letter-spacing: 0.18em; }

/* ============================================================
   Blog
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.blog-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(0.22, 0.7, 0.2, 1), box-shadow 0.4s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07); }

.blog-card-cover { overflow: hidden; border-bottom: 1px solid var(--line); }
.blog-card-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 0.7, 0.2, 1);
}
.blog-card:hover .blog-card-cover img { transform: scale(1.05); }

.blog-card-body { padding: 30px 32px 34px; }
.blog-card-date {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--green);
}
.blog-card-body h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin: 10px 0 14px;
}
.blog-card-body p { font-size: 13.5px; line-height: 2; color: var(--gray); }

.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.blog-tag {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gray);
  border: 1px solid var(--line);
  padding: 3px 12px;
  border-radius: 999px;
}

.blog-card .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--black);
}
.blog-card .more .arrow { transition: transform 0.3s ease; }
.blog-card:hover .more .arrow { transform: translateX(5px); }

/* Blog post */
.blog-post-hero { padding: 96px 0 40px; }
.blog-post-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.05em;
  max-width: 16em;
}
.blog-post-meta { display: flex; gap: 18px; align-items: center; margin-top: 22px; }
.blog-post-author { font-size: 13px; color: var(--gray); letter-spacing: 0.06em; }
.blog-post-cover { border: 1px solid var(--line); margin-bottom: 8px; }
.blog-post-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block; }
.blog-post-body { max-width: 760px; margin: 64px auto 0; }
.blog-post-tags { margin-top: 48px; }

@media (max-width: 760px) {
  .blog-grid { grid-template-columns: 1fr; gap: 28px; }
  .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}

/* ---- Reduced motion: disable the new motion ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-copy .line > span,
  .hero-load { animation: none; opacity: 1; transform: none; }
  .hero-scroll::after { animation: none; }
  .hero-photo img { transform: none; }
  .reveal, [data-reveal-text] { transition: none; }
  .btn::before { transition: none; }
  .to-top { transition: opacity 0.2s ease; }
}
