/* ============================================================
   Glow for Children Foundation — Design System
   White base / large type / palette drawn from the logo
   ============================================================ */

:root {
  --white: #ffffff;
  --warm-bg: #fdf9f3;
  --coral: #e8615c;
  --amber: #f0a63a;
  --gold: #c89b3c;
  --gold-soft: #e5d3ac;
  --navy: #1e3a5f;
  --ink: #2b3442;
  --ink-soft: #5a6474;

  --font-display: "Cormorant Garamond", "Noto Serif JP", serif;
  --font-body: "Source Sans 3", "Noto Sans JP", sans-serif;
  --font-ja-serif: "Noto Serif JP", serif;
  --font-ja-sans: "Noto Sans JP", sans-serif;

  --max-w: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 20px;               /* 文字大きめ */
  line-height: 1.9;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ---- language switching ---- */
html[data-lang="en"] [lang="ja"] { display: none; }
html[data-lang="ja"] [lang="en"] { display: none; }

[lang="ja"] { font-family: var(--font-ja-sans); }
h1 [lang="ja"], h2 [lang="ja"], h3 [lang="ja"], h4 [lang="ja"],
blockquote [lang="ja"] { font-family: var(--font-ja-serif); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 155, 60, 0.25);
}
.header-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.7rem 1.5rem;
}
.brand-logo { height: 52px; width: auto; }
.site-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.site-nav a {
  font-size: 0.85rem; letter-spacing: 0.04em; font-weight: 600;
  color: var(--navy); padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}
.site-nav a:hover { color: var(--coral); border-bottom-color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-toggle {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.85rem; color: var(--ink-soft);
}
.lang-toggle button {
  background: none; border: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--ink-soft);
  padding: 0.3rem 0.35rem; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap; writing-mode: horizontal-tb;
}
.lang-toggle button.is-active { color: var(--coral); border-bottom-color: var(--coral); }
.lang-toggle button:hover { color: var(--coral); }
.lang-sep { color: var(--gold-soft); }

.nav-burger { display: none; }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  padding: 7.5rem 1.5rem 8rem;
  text-align: center;
  background: var(--white);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 32%, rgba(240, 166, 58, 0.14), transparent 70%),
    radial-gradient(ellipse 45% 38% at 32% 60%, rgba(232, 97, 92, 0.08), transparent 70%),
    radial-gradient(ellipse 45% 38% at 68% 60%, rgba(200, 155, 60, 0.10), transparent 70%);
}
.hero-inner { position: relative; max-width: 880px; margin: 0 auto; }
.hero-mark {
  width: 168px; margin: 0 auto 1.8rem;
  animation: heroGlow 5s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { filter: drop-shadow(0 0 6px rgba(240, 166, 58, 0)); }
  to   { filter: drop-shadow(0 0 22px rgba(240, 166, 58, 0.45)); }
}
.hero-eyebrow {
  font-size: 0.95rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 1.6rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600; line-height: 1.25;
  color: var(--navy);
  margin-bottom: 1.8rem;
}
.hero-title [lang="ja"] { font-size: 0.82em; }
.hero-sub {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--ink-soft); line-height: 2;
  margin-bottom: 3rem;
}
.hero-cta { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.95rem 2.6rem;
  border-radius: 999px; font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.03em; text-align: center;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--coral), var(--amber));
  box-shadow: 0 6px 22px rgba(232, 97, 92, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(232, 97, 92, 0.36); }
.btn-ghost {
  color: var(--navy); border: 1.5px solid var(--gold);
}
.btn-ghost:hover { background: rgba(200, 155, 60, 0.08); transform: translateY(-2px); }

/* ============ Sections ============ */
.section { padding: 7rem 1.5rem; }
.section-warm { background: var(--warm-bg); }
.container { max-width: var(--max-w); margin: 0 auto; }

.sec-num {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.2rem; color: var(--gold); letter-spacing: 0.15em;
  margin-bottom: 0.4rem;
}
.sec-num::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 64px; height: 1px; background: var(--gold-soft); margin-left: 1rem;
}
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 600; color: var(--navy); line-height: 1.3;
  margin-bottom: 2.6rem;
}
.sec-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 860px; margin-bottom: 2.8rem; }

.prose p { margin-bottom: 1.7rem; max-width: 62rem; }
.prose strong { color: var(--navy); }

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600; font-style: italic;
  color: transparent;
  background: linear-gradient(120deg, var(--coral), var(--amber) 70%);
  -webkit-background-clip: text; background-clip: text;
  text-align: center; line-height: 1.6;
  margin: 3.2rem auto; padding: 0 1rem;
  max-width: 46rem;
}
.pull-quote [lang="ja"] { font-style: normal; font-size: 0.85em; }

/* ============ Mission & Vision ============ */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
.mv-card {
  background: var(--warm-bg);
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--coral), var(--amber)) 1;
  padding: 2.6rem 2.4rem;
}
.mv-card h3 {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 600;
  color: var(--navy); margin-bottom: 1.2rem;
}
.mv-card p { font-size: 1.05rem; }
.mv-note { margin-top: 2.6rem; color: var(--ink-soft); font-size: 1.05rem; max-width: 860px; }

/* ============ Programs ============ */
.program-area + .program-area { margin-top: 5.5rem; }
.area-label {
  font-size: 1rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--coral); font-weight: 700; margin-bottom: 2rem;
}
.area-label [lang="ja"] { letter-spacing: 0.08em; }
.area-lead { max-width: 860px; margin-bottom: 2.4rem; }
.area-lead strong { color: var(--navy); }

.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.program-grid.two { grid-template-columns: 1fr 1fr; }
.program-card {
  background: var(--white);
  border: 1px solid rgba(200, 155, 60, 0.3);
  border-radius: 4px;
  padding: 2.2rem 2rem;
}
.program-card h4 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--navy); margin-bottom: 1rem; line-height: 1.4;
}
.program-card h4 [lang="ja"] { font-size: 0.9em; }
.program-card p, .program-card li { font-size: 1rem; line-height: 1.85; }
.program-card ul li {
  padding-left: 1.4rem; position: relative; margin-bottom: 0.7rem;
}
.program-card ul li::before {
  content: "✦"; position: absolute; left: 0; top: 0;
  color: var(--amber); font-size: 0.8rem;
}

.program-photo { margin-top: 2.6rem; }
.program-photo.duo {
  display: grid; grid-template-columns: 3fr 2fr; gap: 1rem;
}
.program-photo img {
  width: 100%; height: 420px; object-fit: cover; border-radius: 4px;
}
.program-photo img[src*="horse-therapy-2"] { object-position: 50% 72%; }
.program-photo img[src*="horse-therapy-1"] { object-position: 50% 60%; }
.program-photo figcaption {
  grid-column: 1 / -1;
  font-size: 0.95rem; color: var(--ink-soft);
  text-align: center; margin-top: 0.9rem; font-style: italic;
}

/* ============ Moments (gallery) ============ */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
}
.gallery figure { position: relative; }
.gallery img {
  width: 100%; height: 280px; object-fit: cover; border-radius: 4px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery img[src*="horse-therapy-2"] { object-position: 50% 68%; }
.gallery img[src*="event-2"] { object-position: 50% 30%; }
.gallery figure:hover img {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(30, 58, 95, 0.16);
}
.gallery figcaption {
  font-size: 0.92rem; color: var(--ink-soft);
  margin-top: 0.7rem; line-height: 1.6;
}

/* ============ Founder ============ */
.founder-letter {
  background: var(--white);
  border: 1px solid rgba(200, 155, 60, 0.35);
  border-radius: 6px;
  padding: clamp(2rem, 5vw, 4.5rem);
  box-shadow: 0 18px 50px rgba(30, 58, 95, 0.06);
}
.founder-sign { text-align: right; margin-top: 2.4rem; }
.sign-name {
  display: block;
  font-family: var(--font-display); font-style: italic;
  font-size: 2.1rem; color: var(--navy);
}
.sign-role { display: block; font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.3rem; }

/* ============ Support ============ */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.support-card {
  border: 1px solid rgba(200, 155, 60, 0.3); border-radius: 4px;
  padding: 2.4rem 2rem;
  background: linear-gradient(180deg, var(--warm-bg), var(--white) 40%);
}
.support-copy {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.25rem; color: var(--gold); margin-bottom: 0.8rem;
}
.support-card h3 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--navy); margin-bottom: 1.1rem; line-height: 1.35;
}
.support-card h3 [lang="ja"] { font-size: 0.88em; }
.support-card p { font-size: 1rem; line-height: 1.85; }
.support-actions {
  margin-top: 3.2rem;
  display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap;
}
.support-actions .btn { font-size: 1.1rem; padding: 1.05rem 3rem; }

/* ============ Governance ============ */
.gov-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.4rem;
  margin-bottom: 3.2rem;
}
.gov-list li {
  position: relative; padding-left: 1.7rem;
  font-size: 1.02rem; line-height: 1.8;
}
.gov-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(120deg, var(--coral), var(--amber));
}
.org-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem;
  border-top: 1px solid var(--gold-soft); padding-top: 2.4rem;
}
.org-summary h4 {
  font-family: var(--font-display); font-size: 1.25rem;
  color: var(--navy); margin-bottom: 0.6rem;
}
.org-summary p { font-size: 0.98rem; color: var(--ink-soft); line-height: 1.75; }

/* ============ Timeline (Future) ============ */
.timeline { position: relative; max-width: 820px; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--coral), var(--amber), var(--gold-soft));
}
.timeline li { position: relative; padding: 0 0 3rem 3.2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--amber);
}
.timeline h4 {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.7rem;
}
.timeline h4 [lang="ja"] { font-size: 0.85em; }
.timeline p { font-size: 1.02rem; color: var(--ink-soft); }

/* ============ Footer ============ */
.site-footer {
  background: var(--navy); color: rgba(255, 255, 255, 0.85);
  text-align: center; padding: 5rem 1.5rem 3rem;
}
.footer-mark { width: 88px; margin: 0 auto 1.4rem; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-statement {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.6rem; color: #fff; margin-bottom: 1.6rem;
}
.footer-statement [lang="ja"] { font-style: normal; font-size: 0.85em; }
.footer-org { font-size: 1.05rem; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.footer-org .dot { color: var(--gold-soft); }
.footer-legal, .footer-contact { font-size: 0.92rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 0.4rem; }
.footer-copy { font-size: 0.85rem; color: rgba(255, 255, 255, 0.45); margin-top: 2.4rem; }

/* ============ Reveal animation ============ */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-mark { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .program-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .support-grid, .org-summary { grid-template-columns: 1fr; }
  .mv-grid, .program-grid.two, .gov-list { grid-template-columns: 1fr; }
  .program-photo.duo { grid-template-columns: 1fr; }
  .program-photo img { height: 300px; }
}

@media (max-width: 720px) {
  body { font-size: 18px; }
  .pc-only { display: none; }
  .section { padding: 4.5rem 1.25rem; }
  .hero { padding: 5rem 1.25rem 5.5rem; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 230px; }

  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--gold-soft);
    padding: 0.6rem 1.5rem 1.2rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.8rem 0; font-size: 1rem; border-bottom: 1px solid rgba(200,155,60,0.15); }

  .nav-burger {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav-burger span { width: 24px; height: 2px; background: var(--navy); transition: transform 0.25s, opacity 0.25s; }
  .nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.is-open span:nth-child(2) { opacity: 0; }
  .nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .brand-logo { height: 42px; }

  .support-actions { flex-direction: column; align-items: stretch; }
  .support-actions .btn { width: 100%; padding: 1.05rem 1.5rem; }
}
