/* =====================================================
   eureka — Design System
   Color: Amber / Cream  |  Font: Montserrat + Noto Sans JP
===================================================== */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* --- Design Tokens --- */
:root {
  --c-bg:        #fffde7;
  --c-surface:   #ffffff;
  --c-primary:   #f9a825;
  --c-primary-d: #ef6c00;
  --c-primary-l: #fff9c4;
  --c-accent:    #fbc02d;
  --c-text:      #2c1810;
  --c-muted:     #7b5e57;
  --c-border:    #ffe082;
  --c-shadow:    rgba(239, 108, 0, 0.12);

  --font-body:    'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Montserrat', 'Noto Sans JP', sans-serif;

  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-2xl: 6rem;

  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-pill: 100px;

  --tr:     0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --sh-sm:  0 2px 12px var(--c-shadow);
  --sh-md:  0 6px 28px var(--c-shadow);
  --sh-lg:  0 14px 56px var(--c-shadow);

  --header-h: 72px;
  --cw:       1080px;
}

/* --- Base --- */
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }

/* --- Utility --- */
.container   { max-width: var(--cw); margin: 0 auto; padding: 0 var(--sp-md); }
.text-center { text-align: center; }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }

/* =====================================================
   TYPOGRAPHY COMPONENTS
===================================================== */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-primary-d);
  background: var(--c-primary-l);
  padding: 4px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}

.section-heading {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 0.75rem;
}
.section-heading span { color: var(--c-primary); }

.section-sub {
  font-size: 1rem;
  color: var(--c-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* =====================================================
   HEADER
===================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255, 253, 231, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: var(--tr);
}
.site-header.scrolled {
  background: rgba(255, 253, 231, 0.97);
  border-bottom-color: var(--c-border);
  box-shadow: var(--sh-sm);
}

.header-inner {
  max-width: var(--cw);
  margin: 0 auto;
  padding: 0 var(--sp-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo .logo-img { height: 44px; width: auto; transition: opacity var(--tr); }
.header-logo:hover .logo-img { opacity: 0.75; }

/* Nav */
.site-nav ul { display: flex; align-items: center; gap: 1.4rem; list-style: none; }

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  position: relative;
  transition: color var(--tr);
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--c-primary);
  transform: scaleX(0);
  transition: transform var(--tr);
}
.site-nav a:hover,
.site-nav a.active { color: var(--c-text); }
.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }

.site-nav .nav-cta {
  background: var(--c-primary);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: var(--r-pill);
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
  box-shadow: 0 4px 14px rgba(249,168,37,0.3);
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover {
  background: var(--c-primary-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(249,168,37,0.4);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   HERO
===================================================== */
.hero {
  min-height: 100svh;
  padding-top: var(--header-h);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #fffde7 0%, #fff9c4 60%, #fff8e1 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -15%; right: -8%;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(ellipse, rgba(251,192,45,0.22) 0%, transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 15%;
  width: 40%;
  aspect-ratio: 1;
  background: radial-gradient(ellipse, rgba(249,168,37,0.1) 0%, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--cw);
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { animation: slideUp 0.8s cubic-bezier(0.4,0,0.2,1) both; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-primary-d);
  margin-bottom: 1.25rem;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--c-primary);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: normal; color: var(--c-primary); display: block; }

.hero-desc {
  font-size: 1.05rem;
  color: var(--c-muted);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  max-width: 460px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }

/* Orb visual */
.hero-visual { display: flex; justify-content: center; align-items: center; animation: fadeIn 1s 0.35s both; }

.orb-container {
  position: relative;
  width: 340px;
  height: 340px;
  flex-shrink: 0;
}

.orb-main {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 200px; height: 200px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-d) 100%);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  animation: floatMain 6s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(249,168,37,0.4);
  z-index: 2;
}
.orb-text {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.orb-sub {
  color: rgba(255,255,255,0.78);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.orb-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 270px; height: 270px;
  border: 2px dashed rgba(251,192,45,0.5);
  border-radius: 50%;
  animation: spin 22s linear infinite;
}

.orb-dot {
  position: absolute;
  border-radius: 50%;
}
.orb-dot.d1 {
  width: 56px; height: 56px;
  top: 10%; right: 12%;
  background: var(--c-primary-l);
  border: 2.5px solid var(--c-accent);
  animation: floatDot 4.5s ease-in-out infinite;
}
.orb-dot.d2 {
  width: 38px; height: 38px;
  bottom: 14%; left: 8%;
  background: var(--c-accent);
  opacity: 0.75;
  animation: floatDot 3.8s ease-in-out infinite -1.8s;
}
.orb-dot.d3 {
  width: 22px; height: 22px;
  top: 22%; left: 20%;
  background: var(--c-primary);
  animation: floatDot 5s ease-in-out infinite -3.2s;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  color: var(--c-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounceY 2.4s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--c-accent), transparent);
}

/* =====================================================
   STATS
===================================================== */
.stats {
  background: var(--c-surface);
  border-top: 3px solid var(--c-primary);
  border-bottom: 3px solid var(--c-primary);
  padding: var(--sp-lg) var(--sp-md);
}

.stats-inner {
  max-width: var(--cw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
}

.stat-item {
  text-align: center;
  padding: var(--sp-sm);
  border-right: 1px solid var(--c-border);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: 2px;
}
.stat-unit { font-size: 0.9rem; font-weight: 700; }
.stat-label { font-size: 0.78rem; color: var(--c-muted); margin-top: 3px; }

/* =====================================================
   SECTION BASE
===================================================== */
.section { padding: var(--sp-2xl) var(--sp-md); }
.section-alt { background: var(--c-surface); }
.section-header { text-align: center; margin-bottom: var(--sp-xl); }

/* =====================================================
   CARDS
===================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-md);
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  transition: transform var(--tr), box-shadow var(--tr);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }

.card-icon {
  width: 50px; height: 50px;
  background: var(--c-primary-l);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 1rem;
}
.card-title { font-size: 1rem; font-weight: 700; color: var(--c-text); margin-bottom: 0.5rem; }
.card-body  { font-size: 0.875rem; color: var(--c-muted); line-height: 1.7; }

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(249,168,37,0.38);
}
.btn-primary:hover {
  background: var(--c-primary-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(249,168,37,0.48);
}
.btn-outline {
  background: transparent;
  color: var(--c-text);
  border: 2px solid var(--c-border);
}
.btn-outline:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--c-primary-d);
}
.btn-white:hover { background: var(--c-primary-l); transform: translateY(-2px); }

/* =====================================================
   ACTIVITY PREVIEW (index)
===================================================== */
.activity-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

.activity-card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
  transition: transform var(--tr), box-shadow var(--tr);
}
.activity-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }

.activity-card-thumb {
  height: 156px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-d) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.activity-card-body { padding: var(--sp-md); }
.activity-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.activity-card-desc  { font-size: 0.875rem; color: var(--c-muted); line-height: 1.65; }

/* =====================================================
   CTA BANNER
===================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-d) 100%);
  padding: var(--sp-2xl) var(--sp-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute;
  top: -50%; right: -8%;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.cta-banner::after {
  content: ''; position: absolute;
  bottom: -35%; left: -4%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.cta-banner-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cta-banner h2     { color: #fff; font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 1rem; }
.cta-banner p      { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: 2rem; }
.cta-btn-group     { display: flex; flex-wrap: wrap; gap: var(--sp-sm); justify-content: center; }
.btn-ghost {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  padding: 12px 28px;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background var(--tr), transform var(--tr);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  background: #2c1810;
  color: rgba(255,253,231,0.65);
  padding: var(--sp-2xl) var(--sp-md) var(--sp-lg);
}

.footer-inner {
  max-width: var(--cw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--sp-lg);
}

.footer-brand .logo-img {
  height: 38px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.75; max-width: 260px; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a  { font-size: 0.85rem; transition: color var(--tr); }
.footer-col a:hover { color: var(--c-primary-l); }

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(249,168,37,0.15);
  color: var(--c-primary);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.footer-info p { font-size: 0.8rem; line-height: 1.85; }

.footer-bottom {
  max-width: var(--cw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.footer-sns { display: flex; gap: 10px; }
.footer-sns a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background var(--tr);
}
.footer-sns a:hover { background: var(--c-primary); color: #fff; }

/* =====================================================
   PAGE HERO (inner pages)
===================================================== */
.page-hero {
  padding: calc(var(--header-h) + var(--sp-2xl)) var(--sp-md) var(--sp-2xl);
  background: linear-gradient(180deg, var(--c-primary-l) 0%, var(--c-bg) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 50%; aspect-ratio: 1;
  background: radial-gradient(ellipse, rgba(251,192,45,0.2) 0%, transparent 68%);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -8%;
  width: 35%; aspect-ratio: 1;
  background: radial-gradient(ellipse, rgba(249,168,37,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-primary-d);
  margin-bottom: 0.75rem;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--c-text);
}
.page-hero-sub {
  font-size: 1rem;
  color: var(--c-muted);
  margin-top: 0.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   ABOUT — SPACES
===================================================== */
.space-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-md);
}
.space-card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}
.space-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-d));
}
.space-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.space-badge {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  background: var(--c-primary-l);
  color: var(--c-primary-d);
  font-size: 0.73rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.space-detail { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.space-detail-row { display: flex; gap: 0.75rem; font-size: 0.875rem; }
.space-detail-label { color: var(--c-primary-d); font-weight: 600; white-space: nowrap; min-width: 80px; }
.space-detail-value { color: var(--c-muted); line-height: 1.6; }

/* =====================================================
   ABOUT — PLANS
===================================================== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-md);
  max-width: 960px;
  margin: 0 auto;
}
.plan-card {
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  text-align: center;
  transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}
.plan-card:hover { border-color: var(--c-primary); box-shadow: var(--sh-md); transform: translateY(-5px); }
.plan-card.featured {
  border-color: var(--c-primary);
  background: linear-gradient(160deg, #fff9c4 0%, #fff3e0 100%);
  box-shadow: var(--sh-md);
}
.plan-badge {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.plan-name  { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 0.75rem; }
.plan-price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--c-primary-d); line-height: 1; margin-bottom: 2px; }
.plan-price-unit { font-size: 0.85rem; color: var(--c-muted); margin-bottom: 1.25rem; }
.plan-features { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 0.5rem; }
.plan-features li { font-size: 0.875rem; color: var(--c-muted); display: flex; align-items: flex-start; gap: 0.5rem; }
.plan-features li::before { content: '✓'; color: var(--c-primary); font-weight: 700; flex-shrink: 0; }

/* =====================================================
   PROFILE — MEMBERS
===================================================== */
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  align-items: stretch;
}
@media (max-width: 900px) {
  .member-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .member-grid { grid-template-columns: 1fr; }
}

/* Card shell */
.member-card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.member-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }

/* Amber header band + floating photo */
.member-card-header {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-d) 100%);
  height: 110px;
  position: relative;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.member-photo-wrap {
  width: 180px; height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--c-surface);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  position: absolute;
  bottom: -90px;
}
.member-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Body */
.member-card-body {
  padding: 100px var(--sp-lg) var(--sp-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.member-quote {
  margin-top: auto;
}

/* Nick / Name / Role */
.member-nick {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  background: var(--c-primary);
  color: #fff;
  padding: 3px 12px;
  border-radius: 99px;
  margin-bottom: 0.5rem;
}
.member-name {
  font-size: 1.2rem; font-weight: 800;
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
}
.member-position {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  border: 2px solid var(--c-primary-d);
  color: var(--c-primary-d);
  padding: 2px 10px;
  border-radius: 99px;
  margin-bottom: 0.4rem;
}
.member-position--leader {
  background: var(--c-primary-d);
  color: #fff;
}
.member-position--inariyu {
  background: #2a9d8f;
  color: #fff;
  border-color: #2a9d8f;
}
.member-position--arch {
  background: #4a6fa5;
  color: #fff;
  border-color: #4a6fa5;
}
.member-position--kikaku {
  background: #7b5ea7;
  color: #fff;
  border-color: #7b5ea7;
}

/* Group label between member sections */
.member-group-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  border-left: 3px solid var(--c-primary);
  padding-left: 0.75rem;
  margin-bottom: var(--sp-md);
}
.member-role {
  font-size: 0.78rem; color: var(--c-primary-d); font-weight: 600;
  line-height: 1.5; margin-bottom: 0;
}

/* Divider */
.member-divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 1rem 0;
}

/* Info table */
.member-info {
  text-align: left;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.member-info-row {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-size: 0.82rem;
}
.member-info-row dt {
  flex-shrink: 0;
  width: 6.5em;
  font-weight: 700;
  color: var(--c-text);
}
.member-info-row dd {
  margin: 0;
  color: var(--c-muted);
}

/* Quote */
.member-quote {
  font-size: 0.85rem;
  color: var(--c-text);
  line-height: 1.7;
  font-style: italic;
  text-align: left;
  margin: 0;
  padding-left: 0.75rem;
  border-left: 3px solid var(--c-primary);
}

/* Sponsor */
.sponsor-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-md);
  align-items: start;
  margin-bottom: var(--sp-md);
  transition: box-shadow var(--tr);
}
.sponsor-card:hover { box-shadow: var(--sh-md); }

.sponsor-logo {
  width: 64px; height: 64px;
  background: var(--c-primary-l);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.sponsor-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 3px; }
.sponsor-type { font-size: 0.78rem; color: var(--c-primary-d); font-weight: 600; margin-bottom: 0.5rem; }
.sponsor-desc { font-size: 0.875rem; color: var(--c-muted); line-height: 1.65; }
.sponsor-link { display: inline-block; margin-top: 0.75rem; color: #3b82f6; font-size: 0.85rem; text-decoration: underline; }

/* =====================================================
   SUPPORTERS
   ===================================================== */
.supporter-card {
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.supporter-card:hover {
  box-shadow: var(--sh-sm);
  border-left-color: var(--c-primary-d);
}

.supporter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.7rem;
}

.supporter-name     { font-weight: 700; font-size: 1rem; color: var(--c-text); }
.supporter-location { font-size: 0.82rem; color: var(--c-muted); }

.supporter-amount {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-primary-d);
  background: var(--c-primary-l);
  padding: 2px 10px;
  border-radius: 99px;
}

.supporter-comment {
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.8;
  margin: 0;
}

/* =====================================================
   SUPPORTERS — NEW LOGO + TIER LAYOUT
   ===================================================== */
.sp-logo-section { margin-bottom: var(--sp-lg); }

.sp-rank-heading {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary-d);
  background: var(--c-primary-l);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: 5px 20px;
  display: inline-block;
  margin: 0 auto var(--sp-sm);
  width: fit-content;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.sp-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 840px;
  margin: 0 auto;
}

.sp-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.5rem 1rem 1.25rem;
  text-decoration: none;
  color: var(--c-text);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.sp-logo-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
  border-color: var(--c-primary);
}

.sp-logo-img-wrap {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-logo-img-wrap img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  display: block;
}

.sp-logo-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-text);
  text-align: center;
  line-height: 1.5;
}
.sp-logo-amount {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-primary-d);
  background: var(--c-primary-l);
  padding: 2px 10px;
  border-radius: var(--r-pill);
}

.sp-tiers {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sp-tier {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.sp-tier-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-primary-d);
  background: var(--c-primary-l);
  padding: 2px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

.sp-tier-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}

.sp-name-tag {
  font-size: 0.875rem;
  color: var(--c-text);
  line-height: 1.6;
}
.sp-name-tag + .sp-name-tag::before {
  content: "・";
  color: var(--c-muted);
  margin-right: 0.1rem;
}

@media (max-width: 640px) {
  .sp-logo-grid { grid-template-columns: 1fr; max-width: 320px; }
  .sp-logo-img-wrap { height: 70px; }
}

/* =====================================================
   ACTIVITIES PAGE
===================================================== */
.activity-full-grid { display: flex; flex-direction: column; gap: var(--sp-md); }

.activity-full-card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 120px 1fr;
  transition: box-shadow var(--tr), transform var(--tr);
  scroll-margin-top: calc(var(--header-h) + 56px);
}
.activity-full-card:hover { box-shadow: var(--sh-md); transform: translateX(4px); }

.activity-full-thumb {
  background: linear-gradient(160deg, var(--c-primary) 0%, var(--c-primary-d) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
}
.activity-full-body { padding: var(--sp-md) var(--sp-lg); }
.activity-full-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.activity-full-desc  { font-size: 0.9rem; color: var(--c-muted); line-height: 1.7; }
.activity-tag {
  display: inline-block;
  background: var(--c-primary-l);
  color: var(--c-primary-d);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 0.5rem;
}

/* =====================================================
   CONTACT PAGE
===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-xl);
  align-items: start;
}

.sns-cards { display: flex; flex-direction: column; gap: var(--sp-sm); }
.sns-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  display: flex; align-items: center; gap: var(--sp-sm);
  transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}
.sns-card:hover { border-color: var(--c-primary); box-shadow: var(--sh-sm); transform: translateX(4px); }

.sns-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-d));
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.sns-info h4 { font-size: 0.95rem; font-weight: 700; }
.sns-info p  { font-size: 0.8rem; color: var(--c-muted); }

.contact-form-card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  padding: var(--sp-lg);
}
.contact-form-card h3 { font-size: 1.15rem; margin-bottom: var(--sp-md); }

.form-group { margin-bottom: var(--sp-md); }
.form-label { display: block; font-size: 0.875rem; font-weight: 700; color: var(--c-text); margin-bottom: 0.5rem; }
.form-label .req { color: var(--c-primary-d); margin-left: 3px; }

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--c-text);
  transition: border-color var(--tr), background var(--tr);
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  background: #fff;
}
.form-textarea { resize: vertical; min-height: 130px; }

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
  box-shadow: 0 4px 18px rgba(249,168,37,0.38);
}
.btn-submit:hover {
  background: var(--c-primary-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(249,168,37,0.45);
}

/* Map embed placeholder */
.map-placeholder {
  width: 100%;
  padding: 1rem;
  background: var(--c-primary-l);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border);
  margin-top: var(--sp-sm);
}
.map-placeholder .map-icon { display: none; }

/* =====================================================
   ANIMATIONS
===================================================== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes floatMain {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50%       { transform: translate(-50%, -50%) translateY(-18px); }
}
@keyframes floatDot {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-10px) rotate(4deg); }
}
@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes bounceY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.revealed { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .hero-inner           { grid-template-columns: 1fr; text-align: center; }
  .hero-visual          { order: -1; }
  .hero-actions         { justify-content: center; }
  .hero-desc            { margin-left: auto; margin-right: auto; }
  .hero-tag             { justify-content: center; }
  .orb-container        { width: 260px; height: 260px; }
  .orb-main             { width: 160px; height: 160px; }
  .orb-ring             { width: 210px; height: 210px; }
  .orb-text             { font-size: 1.4rem; }

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

  .activity-preview-grid { grid-template-columns: 1fr; }

  .contact-grid         { grid-template-columns: 1fr; }

  .footer-inner         { grid-template-columns: 1fr 1fr; gap: var(--sp-lg); }
}

@media (max-width: 860px) {
  :root { --header-h: 62px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--c-bg);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity var(--tr);
  }
  .site-nav.is-open { opacity: 1; pointer-events: auto; }
  .site-nav ul { flex-direction: column; align-items: center; gap: var(--sp-md); }
  .site-nav a  { font-size: 1.15rem; }
  .site-nav .nav-cta { padding: 10px 28px; }

  .stat-item       { border-right: none; border-bottom: 1px solid var(--c-border); padding: var(--sp-sm) 0; }
  .stat-item:nth-child(odd)  { border-right: 1px solid var(--c-border); }
  .stat-item:last-child      { border-bottom: none; }

  .footer-inner         { grid-template-columns: 1fr; gap: var(--sp-md); }
  .footer-bottom        { flex-direction: column; gap: var(--sp-sm); text-align: center; }

  .activity-full-card   { grid-template-columns: 1fr; }
  .activity-full-thumb  { height: 100px; }

  .sponsor-card         { grid-template-columns: 1fr; }

  .cta-btn-group        { flex-direction: column; align-items: center; }

  .hero-scroll          { display: none; }

  .mobile-sticky-cta    { display: flex; }
  .back-to-top          { bottom: 5rem; right: 1.25rem; }

  /* padding-bottom so content isn't hidden behind sticky CTA */
  main { padding-bottom: 68px; }
}

/* =====================================================
   ACTIVITIES PAGE STICKY NAV
===================================================== */
.activities-nav {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.activities-nav-list {
  list-style: none;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.activities-nav-list::-webkit-scrollbar { display: none; }
.activities-nav-list li a {
  display: block;
  padding: 12px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--tr), border-color var(--tr);
}
.activities-nav-list li a:hover,
.activities-nav-list li a.active {
  color: var(--c-primary-d);
  border-bottom-color: var(--c-primary);
}

/* =====================================================
   TOPICS (index news section)
===================================================== */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}
.topic-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  display: flex; flex-direction: column; gap: 0.55rem;
  transition: transform var(--tr), box-shadow var(--tr);
  cursor: default;
}
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.topic-date { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; color: var(--c-muted); letter-spacing: 0.1em; }
.topic-tag  { display: inline-block; background: var(--c-primary-l); color: var(--c-primary-d); font-size: 0.68rem; font-weight: 700; padding: 2px 10px; border-radius: var(--r-pill); align-self: flex-start; }
.topic-tag[data-type="event"]  { background: #e3f2fd; color: #1565c0; }
.topic-tag[data-type="report"] { background: #e8f5e9; color: #2e7d32; }
.topic-tag[data-type="new"]    { background: #fce4ec; color: #c62828; }
.topic-title { font-size: 0.95rem; font-weight: 700; color: var(--c-text); line-height: 1.5; }

@media (max-width: 900px) {
  .topics-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   TIMELINE (about page)
===================================================== */
.timeline {
  max-width: 660px;
  margin: 0 auto;
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 6px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-primary), var(--c-border));
}
.timeline-item {
  position: relative;
  padding-bottom: var(--sp-lg);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem; top: 6px;
  width: 14px; height: 14px;
  background: var(--c-primary);
  border: 3px solid var(--c-bg);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--c-primary);
}
.timeline-date  { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; color: var(--c-primary-d); letter-spacing: 0.1em; margin-bottom: 4px; }
.timeline-title { font-size: 1rem; font-weight: 700; color: var(--c-text); margin-bottom: 4px; }
.timeline-desc  { font-size: 0.875rem; color: var(--c-muted); line-height: 1.65; }

/* =====================================================
   CARD HEIGHT CONSISTENCY
===================================================== */
.card-grid .card {
  display: flex;
  flex-direction: column;
}
.card-grid .card .card-body { flex: 1; }

/* =====================================================
   PHASE 2 — GLOBAL POLISH
===================================================== */

/* Text selection highlight */
::selection {
  background: rgba(251, 192, 45, 0.32);
  color: var(--c-text);
}

/* Keyboard focus ring */
*:focus-visible {
  outline: 2.5px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Scroll lock + overlay when mobile nav is open */
body.nav-open { overflow: hidden; }
body.nav-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(44, 24, 16, 0.45);
  z-index: 998;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: fadeIn 0.2s ease both;
}

/* No-JS fallback: show all reveal elements without animation */
.no-js .reveal { opacity: 1; transform: none; }

/* =====================================================
   SELECT CUSTOM STYLING
===================================================== */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%237b5e57' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
}
select.form-input:focus {
  border-color: var(--c-primary);
  background-color: #fff;
}

/* =====================================================
   BACK TO TOP BUTTON
===================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px; height: 46px;
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: var(--sh-md);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--tr), transform var(--tr), background var(--tr), box-shadow var(--tr);
  z-index: 900;
  pointer-events: none;
  line-height: 1;
}
.back-to-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--c-primary-d);
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
}

/* =====================================================
   MARQUEE STRIP
===================================================== */
.marquee-strip {
  overflow: hidden;
  background: var(--c-primary);
  padding: 11px 0;
  user-select: none;
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.marquee-track .mdot { opacity: 0.45; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================
   HERO — BACKGROUND REFINEMENT
===================================================== */
.hero {
  background:
    radial-gradient(ellipse at 10% 90%, rgba(251,192,45,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 10%, rgba(249,168,37,0.08) 0%, transparent 50%),
    linear-gradient(150deg, #fffde7 0%, #fff9c4 60%, #fffde7 100%);
}

/* =====================================================
   SECTION DIVIDER (decorative rule)
===================================================== */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto var(--sp-xl);
  max-width: 300px;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}
.section-divider-dot {
  width: 8px; height: 8px;
  background: var(--c-primary);
  border-radius: 50%;
}

/* =====================================================
   IMPROVED MOBILE NAV BACKDROP
===================================================== */
/* =====================================================
   SKIP TO CONTENT
===================================================== */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: var(--sp-md);
  z-index: 9999;
  background: var(--c-primary);
  color: var(--c-text);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  transition: top 0.2s;
  text-decoration: none;
  font-size: 0.875rem;
}
.skip-to-content:focus { top: var(--sp-sm); }

/* =====================================================
   SCROLL PROGRESS BAR
===================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-d));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* =====================================================
   ACCESSIBILITY — prefers-reduced-motion
===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
}

/* =====================================================
   PAGE FADE-IN
===================================================== */
body { animation: pageFadeIn 0.38s ease both; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* =====================================================
   MOBILE STICKY CTA
===================================================== */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 10px var(--sp-md);
  background: rgba(255, 253, 231, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-border);
  z-index: 800;
  justify-content: center;
  gap: var(--sp-sm);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.07);
}

/* =====================================================
   FORM SUCCESS STATE
===================================================== */
.form-success {
  display: none;
  text-align: center;
  padding: var(--sp-xl) var(--sp-md);
  animation: slideUp 0.5s ease both;
}
.form-success.show { display: block; }
.form-success-icon  { font-size: 3.5rem; margin-bottom: var(--sp-sm); }
.form-success-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.form-success-desc  { font-size: 0.95rem; color: var(--c-muted); line-height: 1.7; }

/* =====================================================
   MANIFESTO QUOTE
===================================================== */
.manifesto {
  background: var(--c-text);
  padding: var(--sp-2xl) var(--sp-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '"';
  position: absolute;
  top: -0.2em; left: 0.1em;
  font-size: 20rem;
  font-family: var(--font-display);
  font-weight: 900;
  color: rgba(249,168,37,0.07);
  line-height: 1;
  pointer-events: none;
}
.manifesto-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.manifesto-quote {
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.75;
  margin-bottom: var(--sp-md);
}
.manifesto-quote em { color: var(--c-primary); font-style: normal; }
.manifesto-attr {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
}

/* =====================================================
   MEDIA CARD LINK
===================================================== */
a.card {
  cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr);
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--c-primary);
}

/* =====================================================
   ACHIEVEMENTS (index track record section)
===================================================== */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
}

.achievement-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform var(--tr), box-shadow var(--tr);
  overflow: hidden;
}
.achievement-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-d));
}
.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.achievement-cat {
  display: inline-block;
  background: var(--c-primary-l);
  color: var(--c-primary-d);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  align-self: flex-start;
  margin-bottom: 0.1rem;
}

.achievement-icon {
  font-size: 1.7rem;
  line-height: 1;
  margin: 0.2rem 0;
}

.achievement-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.45;
}

.achievement-desc {
  font-size: 0.8rem;
  color: var(--c-muted);
  line-height: 1.65;
  flex: 1;
}

@media (max-width: 900px) {
  .achievement-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .achievement-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   PAGE LOADER
===================================================== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--c-bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.25rem;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-orb {
  width: 76px; height: 76px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-d) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: loaderPulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(249,168,37,0.5);
}
.loader-orb-text {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.loader-dots {
  display: flex; gap: 7px;
}
.loader-dots span {
  width: 8px; height: 8px;
  background: var(--c-primary);
  border-radius: 50%;
  animation: loaderDot 1.2s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes loaderPulse {
  0%   { box-shadow: 0 0 0 0 rgba(249,168,37,0.55); }
  70%  { box-shadow: 0 0 0 22px rgba(249,168,37,0); }
  100% { box-shadow: 0 0 0 0 rgba(249,168,37,0); }
}
@keyframes loaderDot {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; }
  40%           { transform: scale(1.1); opacity: 1; }
}

/* =====================================================
   CUSTOM SCROLLBAR
===================================================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(249,168,37,0.55);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--c-primary); }

/* =====================================================
   BUTTON RIPPLE
===================================================== */
.btn, .btn-submit, .nav-cta {
  position: relative;
  overflow: hidden;
}
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.38);
  transform: scale(0);
  animation: rippleAnim 0.55s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* =====================================================
   CARD 3D TILT
===================================================== */
.tilt-card {
  transform-style: preserve-3d;
}

/* =====================================================
   HERO PARTICLES
===================================================== */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--c-primary);
  opacity: 0;
  animation: particleFloat var(--p-dur, 9s) var(--p-delay, 0s) ease-in-out infinite;
}
@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  15%  { opacity: var(--p-opacity, 0.2); }
  85%  { opacity: var(--p-opacity, 0.2); }
  100% { opacity: 0; transform: translateY(-90px) scale(0.5); }
}

/* =====================================================
   TYPEWRITER CURSOR
===================================================== */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--c-primary);
  margin-left: 3px;
  vertical-align: -0.1em;
  border-radius: 1px;
  animation: cursorBlink 0.85s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* =====================================================
   CURSOR GLOW (hero section)
===================================================== */
.hero-cursor-glow {
  position: absolute;
  top: 0; left: 0;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,192,45,0.18) 0%, transparent 65%);
  pointer-events: none;
  transform: translate(0px, 0px);
  margin-left: -240px;
  margin-top: -240px;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
}
.hero:hover .hero-cursor-glow { opacity: 1; }

/* =====================================================
   TOAST NOTIFICATION
===================================================== */
.toast-wrap {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: #2c1810;
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--sh-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1), opacity 0.38s ease;
  pointer-events: auto;
}
.toast.toast-in {
  transform: translateY(0);
  opacity: 1;
}
.toast-icon { font-size: 1rem; }

/* =====================================================
   PROGRESSIVE IMAGE LOADING
===================================================== */
img.img-loading {
  filter: blur(6px);
  transition: filter 0.4s ease;
}
img.img-loaded {
  filter: none;
}

/* =====================================================
   ENHANCED HERO VISUAL (glow ring)
===================================================== */
.orb-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 230px; height: 230px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(249,168,37,0.35) 0%, transparent 70%);
  animation: orbGlow 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes orbGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50%       { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* =====================================================
   ENHANCED STATS — hover highlight
===================================================== */
.stat-item {
  cursor: default;
  transition: background var(--tr), border-radius var(--tr);
}
.stat-item:hover {
  background: var(--c-primary-l);
  border-radius: var(--r-sm);
}

/* =====================================================
   SMOOTH PAGE TRANSITION
===================================================== */
.page-veil {
  position: fixed;
  inset: 0;
  background: var(--c-primary);
  z-index: 99998;
  pointer-events: none;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom;
}
.page-veil.entering {
  animation: veilEnter 0.35s cubic-bezier(0.4,0,0.2,1) both;
}
.page-veil.leaving {
  animation: veilLeave 0.35s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes veilEnter {
  from { transform: scaleY(0); opacity: 1; transform-origin: bottom; }
  to   { transform: scaleY(1); opacity: 1; transform-origin: bottom; }
}
@keyframes veilLeave {
  from { transform: scaleY(1); opacity: 1; transform-origin: top; }
  to   { transform: scaleY(0); opacity: 0; transform-origin: top; }
}

/* =====================================================
   INARIYU PAGE HERO (hot spring themed)
===================================================== */
.inariyu-hero {
  background: linear-gradient(150deg, #fff9c4 0%, #ffe082 40%, #fffde7 100%);
}

/* =====================================================
   WIP NOTICE — "随時更新中" バナー
===================================================== */
.wip-notice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--c-primary-l);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-md);
  padding: 0.75rem 1.1rem;
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.6;
  max-width: 720px;
  margin: var(--sp-md) auto 0;
}
.wip-notice .wip-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* =====================================================
   PRINT STYLES
===================================================== */
@media print {
  .site-header, .back-to-top, .mobile-sticky-cta,
  .marquee-strip, .cta-banner, .hero-scroll,
  .page-loader, .page-veil { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* =====================================================
   MOBILE ENHANCEMENTS
===================================================== */
@media (max-width: 860px) {
  .site-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-bg);
    z-index: -1;
  }
  .site-nav.is-open {
    animation: navFadeIn 0.25s ease both;
  }
  @keyframes navFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* Larger touch targets on mobile */
  .site-nav a { padding: 12px 20px; }
  .btn { min-height: 48px; }
  .btn-submit { min-height: 52px; }
  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}

