/* ==========================================
   NPO法人Palette Works — Global Stylesheet
   ========================================== */

:root {
  --primary:    #2A7D6F;   /* deep teal — trust + creativity */
  --primary-lt: #3AA08E;
  --accent:     #E86A3A;   /* warm coral — passion / arts */
  --dark:       #1A2733;
  --mid:        #4A5C6A;
  --light:      #F4F7F6;
  --white:      #FFFFFF;
  --border:     #DDE4E1;
  --font-ja:    'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-en:    'Lato', 'Montserrat', sans-serif;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(26,39,51,.10);
  --transition: .25s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-ja);
  color: var(--dark);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ==========================================
   HEADER / NAV
   ========================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 72px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.logo {
  display: flex; flex-direction: row; align-items: center; gap: 12px;
}
.logo-img {
  width: 48px; height: 48px;
  object-fit: contain; flex-shrink: 0;
}
.logo-name {
  font-family: var(--font-ja);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .02em;
  white-space: nowrap;
  line-height: 1.2;
}

.site-nav { display: flex; align-items: center; gap: 6px; }
.desktop-nav {
  display: flex; gap: 4px; align-items: center;
}
.site-nav a {
  font-size: .82rem;
  font-weight: 500;
  color: var(--dark);
  padding: 6px 14px;
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
}
.site-nav a:hover { background: var(--light); color: var(--primary); }

/* ---- ドロップダウン ---- */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 180px;
  z-index: 1000;
  padding: 14px 0 6px;  /* 上部パディングでトリガーとの隙間を埋める */
}
.nav-dropdown__menu a {
  display: block;
  padding: 10px 18px;
  font-size: .82rem;
  font-weight: 500;
  border-radius: 0;
  white-space: nowrap;
}
.nav-dropdown__menu a:hover { background: var(--light); color: var(--primary); }
.nav-dropdown:hover .nav-dropdown__menu { display: block; }
/* トリガーとメニューの間に透明な橋を張って消えないようにする */
.nav-dropdown__menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0; right: 0;
  height: 14px;
}
.site-nav a.btn-nav-contact {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 4px;
}
.site-nav a.btn-nav-contact:hover {
  background: var(--primary);
  color: var(--white);
}
.site-nav a.btn-nav-donate {
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  padding: 8px 20px;
}
.site-nav a.btn-nav-donate:hover { background: #d05828; }
.btn-contact-mobile {
  display: block; padding: 14px 24px;
  border: 1.5px solid var(--primary);
  color: var(--primary) !important;
  font-weight: 600; border-radius: 4px;
  text-align: center; margin: 4px 16px;
}
.btn-contact-mobile:hover { background: var(--primary); color: var(--white) !important; }

.hamburger {
  display: none; cursor: pointer; background: none; border: none;
  flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0; z-index: 800;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  flex-direction: column; gap: 4px;
}
.mobile-menu a {
  display: block; padding: 12px 16px;
  font-size: .9rem; font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.mobile-menu a:hover { background: var(--light); }
.mobile-menu .btn-donate-mobile {
  margin-top: 10px; text-align: center;
  background: var(--accent); color: var(--white);
  font-weight: 700; border-radius: 24px; padding: 14px;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  height: 100vh; min-height: 600px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  margin-top: 72px;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,39,51,.88) 0%, rgba(26,39,51,.4) 50%, rgba(26,39,51,.05) 100%);
}

/* ==========================================
   HERO — FADE-IN ANIMATION
   ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 80px 88px;
  color: var(--white);
  max-width: 900px;
}

/* アイキャッチラベル */
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.35);
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 22px;
  /* animation */
  animation: fadeInUp .8s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: .05s;
}

/* メインコピー（最重要指針） */
.hero-mission {
  font-family: var(--font-ja);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: .04em;
  color: var(--white);
  word-break: keep-all;
  overflow-wrap: normal;
  margin-bottom: 28px;
  text-shadow:
    0 2px 24px rgba(0,0,0,.6),
    0 1px 4px  rgba(0,0,0,.45);
  /* animation */
  animation: fadeInUp 1.2s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: .2s;
}

/* 補足文（指針より0.5秒遅れ） */
.hero-mission-sub {
  font-size: clamp(.82rem, 1.3vw, .92rem);
  max-width: 580px;
  color: rgba(255,255,255,.84);
  line-height: 2;
  margin-bottom: 40px;
  word-break: normal;
  overflow-wrap: normal;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
  /* animation: 指針(delay .2s + duration 1.2s = .7s相当) に0.5s遅れ */
  animation: fadeInUp 1.0s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: .7s;
}

/* ボタン群（最後に登場） */
.hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeInUp .8s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: 1.05s;
}

/* ==========================================
   レスポンシブ改行ヘルパー
   ========================================== */
/* PC: sp-br を非表示 */
.sp-br { display: none; }
/* 旧クラス名との後方互換 */
.sp-only { display: none; }
.pc-only { display: inline; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: var(--white);
  padding: 14px 28px; border-radius: 28px;
  font-weight: 700; font-size: .9rem;
  transition: all .3s ease;
}
.btn-primary:hover {
  background: var(--primary-lt);
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(42,125,111,.45);
}
.btn-primary:active { transform: scale(.98); box-shadow: 0 2px 8px rgba(42,125,111,.3); }

.btn-donate {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--white);
  padding: 14px 28px; border-radius: 28px;
  font-weight: 700; font-size: .9rem;
  transition: all .3s ease;
}
.btn-donate:hover {
  background: #d05828;
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(232,106,58,.5);
}
.btn-donate:active { transform: scale(.98); box-shadow: 0 2px 8px rgba(232,106,58,.35); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--white); color: var(--white);
  padding: 12px 26px; border-radius: 28px;
  font-weight: 600; font-size: .9rem;
  transition: all .3s ease;
}
.btn-outline:hover {
  background: rgba(255,255,255,.18);
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(255,255,255,.18);
}
.btn-outline:active { transform: scale(.98); box-shadow: none; }

.hero-indicators {
  position: absolute; bottom: 32px; right: 80px; z-index: 2;
  display: flex; gap: 10px;
}
.hero-indicators button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent; cursor: pointer;
  transition: background var(--transition);
}
.hero-indicators button.active { background: var(--white); }

/* ==========================================
   SECTION SHARED
   ========================================== */
section { padding: 96px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

.section-label {
  font-family: var(--font-en);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; line-height: 1.4;
  color: var(--dark); margin-bottom: 16px;
}
.section-title-en {
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.1;
}
.section-desc {
  font-size: .95rem; color: var(--mid);
  max-width: 680px; line-height: 1.9;
  margin-bottom: 56px;
}
.divider {
  width: 48px; height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 16px 0 32px;
}

/* ==========================================
/* ==========================================
   ABOUT
   ========================================== */
.about { background: var(--light); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.about-text .section-label { display: block; }
.about-img img {
  width: 100%; border-radius: 12px;
  box-shadow: var(--shadow);
  object-fit: cover; aspect-ratio: 4/3;
}
.about-info {
  margin-top: 32px;
  border-top: 1px solid rgba(26,39,51,.1);
}
.about-info__row {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26,39,51,.06);
  font-size: .85rem;
  line-height: 1.7;
}
.about-info__row dt {
  flex-shrink: 0;
  width: 52px;
  color: var(--primary);
  font-weight: 700;
}
.about-info__row dd { color: var(--dark); margin: 0; }

.about-timeline {
  margin-top: 32px;
}
.about-timeline__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--mid);
  margin-bottom: 12px;
}
.timeline-item {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  font-size: .83rem;
  line-height: 1.6;
  border-left: 2px solid var(--primary);
  padding-left: 14px;
  margin-left: 4px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.timeline-year {
  flex-shrink: 0;
  color: var(--primary);
  font-weight: 700;
  width: 72px;
}
.timeline-event { color: var(--dark); }

.pillar-goal {
  margin-top: 16px;
  font-size: .85rem;
  line-height: 1.85;
  color: var(--primary);
  font-weight: 600;
  padding: 12px 16px;
  background: rgba(42,125,111,.07);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
}

/* ==========================================
   PHILOSOPHY
   ========================================== */
.philosophy { background: #F7FAF9; padding: 80px 0; }

.philosophy-quote {
  position: relative;
  margin: 56px auto 72px;
  max-width: 760px;
  text-align: center;
  font-family: var(--font-ja);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.6;
  color: var(--dark);
  letter-spacing: .03em;
  padding: 40px 48px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(42,125,111,.10), 0 1px 4px rgba(42,125,111,.06);
  border-top: 4px solid var(--primary);
}
.philosophy-quote__deco {
  display: block;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--primary);
  opacity: .18;
  user-select: none;
  margin-bottom: -24px;
}
.philosophy-quote__deco--close {
  margin-bottom: 0;
  margin-top: -24px;
}

.philosophy-pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}
.philosophy-pillar--reverse .philosophy-pillar__img { order: 2; }
.philosophy-pillar--reverse .philosophy-pillar__text { order: 1; }

.philosophy-pillar__img figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(26,39,51,.14);
}
.philosophy-pillar__img img {
  width: 100%; height: 340px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.philosophy-pillar__img figure:hover img { transform: scale(1.03); }
.philosophy-pillar__img figcaption {
  background: rgba(26,39,51,.78);
  color: rgba(255,255,255,.88);
  font-size: .72rem;
  padding: 8px 14px;
  letter-spacing: .04em;
}

.pillar-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.pillar-title {
  font-family: var(--font-ja);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.55;
  color: var(--dark);
  margin-bottom: 14px;
}
.pillar-desc {
  font-size: .9rem;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 24px;
}
.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pillar-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--dark);
}
.pillar-list__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.pillar-list strong { color: var(--primary); display: block; }

/* ==========================================
   ACTIVITIES (3-PILLARS)
   ========================================== */
.activities { background: var(--white); }
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.activity-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26,39,51,.16);
}
.activity-img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
}
.activity-body { padding: 28px; }
.activity-num {
  font-family: var(--font-en);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; color: var(--primary);
  display: block; margin-bottom: 6px;
}
.activity-title {
  font-size: 1.15rem; font-weight: 700;
  color: var(--dark); margin-bottom: 12px; line-height: 1.4;
}
.activity-desc { font-size: .85rem; color: var(--mid); line-height: 1.8; }
.activity-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag {
  font-size: .7rem; font-weight: 600;
  background: var(--light); color: var(--primary);
  padding: 4px 10px; border-radius: 12px;
  border: 1px solid var(--border);
}

/* ==========================================
   WORK
   ========================================== */
.work { background: var(--light); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.work-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,39,51,.07);
  transition: box-shadow var(--transition), transform var(--transition);
}
.work-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.work-card__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #C8D5D0;
}
.work-card__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.work-card__body { padding: 18px 20px 22px; }
.work-card__title-link { text-decoration: none; }
.work-card__title-link:hover .work-card__title { color: var(--primary); }
.work-card__title {
  font-size: .95rem; font-weight: 700;
  color: var(--dark); margin-bottom: 4px; line-height: 1.4;
  transition: color .2s;
}
.work-card__sub {
  font-size: .73rem; color: var(--primary);
  font-weight: 600; margin-bottom: 8px;
}
.work-card__desc { font-size: .78rem; color: var(--mid); line-height: 1.75; }
.work-card__collab { font-size: .68rem; color: var(--mid); line-height: 1.7; margin-top: 8px; padding-top: 8px; border-top: 1px solid #e8e8e8; }

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

/* ==========================================
   REPRESENTATIVE
   ========================================== */
.representative { background: var(--white); }
.rep-grid {
  display: grid; grid-template-columns: 340px 1fr;
  gap: 64px; align-items: start;
}
.rep-img-wrap {
  position: relative;
}
.rep-img-wrap::before {
  content: '';
  position: absolute; top: -16px; left: -16px;
  width: 100%; height: 100%;
  border: 3px solid var(--primary);
  border-radius: 12px; z-index: 0;
}
.rep-img {
  width: 100%; border-radius: 12px;
  object-fit: cover; aspect-ratio: 3/4;
  position: relative; z-index: 1;
  box-shadow: var(--shadow);
}
.rep-img-credit { font-size: .68rem; color: var(--mid); text-align: right; margin-top: 6px; }
.rep-name-en {
  font-family: var(--font-en);
  font-style: italic; font-size: 2.4rem;
  font-weight: 700; color: var(--primary);
  line-height: 1; margin-bottom: 4px;
}
.rep-name-ja { font-size: 1.2rem; font-weight: 700; margin-bottom: 2px; }
.rep-name-roman { font-size: .82rem; color: var(--mid); margin-bottom: 6px; }
.rep-name-link { color: inherit; text-decoration: none; border-bottom: 1.5px solid var(--primary); }
.rep-name-link:hover { color: var(--primary); }
.rep-role { font-size: .82rem; color: var(--mid); margin-bottom: 24px; }
.rep-bio { font-size: .9rem; color: var(--dark); line-height: 2; }
.rep-career { margin-top: 28px; }
.rep-career-title {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.career-list { display: flex; flex-direction: column; gap: 10px; }
.career-item {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 12px; font-size: .83rem; line-height: 1.6;
}
.career-year { color: var(--primary); font-weight: 600; }
.career-desc { color: var(--mid); }

/* ==========================================
   GALLERY
   ========================================== */
.gallery { background: var(--light); padding: 80px 40px; }
.gallery-grid {
  columns: 4; gap: 12px;
  margin-top: 40px;
}
.gallery-grid img {
  width: 100%; margin-bottom: 12px;
  border-radius: 8px;
  break-inside: avoid;
  object-fit: cover;
  transition: opacity var(--transition);
}
.gallery-grid img:hover { opacity: .85; }

/* ==========================================
   DONATE CTA SECTION
   ========================================== */
.donate-cta {
  background: linear-gradient(135deg, var(--accent) 0%, #c94d28 100%);
  padding: 80px 40px;
  text-align: center;
}
.donate-cta .section-title-en { color: var(--white); margin-bottom: 12px; }
.donate-cta .section-title { color: var(--white); margin-bottom: 16px; font-size: 1.4rem; }
.donate-cta p { color: rgba(255,255,255,.85); max-width: 580px; margin: 0 auto 36px; line-height: 1.9; }
.btn-donate-white {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--accent);
  padding: 16px 40px; border-radius: 32px;
  font-weight: 700; font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-donate-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,.2);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--dark);
  padding: 72px 40px 0;
}

.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 56px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* --- Col 1: Brand --- */
.footer-brand { display: flex; flex-direction: column; gap: 20px; }

.footer-logo-link {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.footer-logo-img {
  width: 76px; height: 76px;
  object-fit: contain; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  padding: 5px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.18),
    0 4px 20px rgba(0,0,0,.35);
}
.footer-logo-text {
  display: flex; flex-direction: column; gap: 2px;
}
.footer-org-name {
  font-size: .95rem; font-weight: 700;
  color: var(--white); line-height: 1.3;
}
.footer-org-en {
  font-family: var(--font-en);
  font-size: .72rem; font-style: italic;
  color: #4DB6A8; letter-spacing: .06em;
}

.footer-address {
  font-style: normal;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  line-height: 1.9;
}
.footer-address a {
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-address a:hover { color: var(--primary-lt); }

.footer-sns { display: flex; gap: 10px; }
.footer-sns a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.footer-sns a:hover {
  border-color: var(--primary-lt);
  color: var(--primary-lt);
  background: rgba(58,160,142,.1);
}

/* --- Col 2: Navigation --- */
.footer-nav h4 {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 20px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a {
  font-size: .83rem; color: rgba(255,255,255,.6);
  transition: color var(--transition), padding-left var(--transition);
  display: block;
}
.footer-nav a:hover { color: var(--white); padding-left: 4px; }

/* --- Col 3: Follow Us --- */
.footer-follow h4 {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 20px;
}

.footer-accounts {
  list-style: none; display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 28px;
}
.footer-accounts li a {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; transition: opacity var(--transition);
}
.footer-accounts li a:hover { opacity: .85; }

.footer-account-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(225,48,108,.15);
  border: 1px solid rgba(225,48,108,.3);
  display: flex; align-items: center; justify-content: center;
  color: #e1306c; flex-shrink: 0;
}
.footer-account-info {
  display: flex; flex-direction: column; gap: 1px;
}
.footer-account-handle {
  font-size: .8rem; font-weight: 600;
  color: rgba(255,255,255,.8);
}
.footer-account-label {
  font-size: .7rem; color: rgba(255,255,255,.4);
  line-height: 1.3;
}

.footer-links {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-btn-donate {
  display: inline-flex; align-items: center;
  background: var(--accent); color: var(--white);
  padding: 10px 20px; border-radius: 24px;
  font-size: .82rem; font-weight: 700;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none; width: fit-content;
}
.footer-btn-donate:hover { background: #d05828; transform: translateY(-1px); }
.footer-link-external {
  font-size: .82rem; color: var(--primary-lt);
  text-decoration: none; transition: color var(--transition);
}
.footer-link-external:hover { color: var(--white); }

/* --- Bottom bar --- */
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding: 20px 0 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .73rem; color: rgba(255,255,255,.35);
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom a {
  color: rgba(255,255,255,.35);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ==========================================
   DONATE PAGE
   ========================================== */
.page-hero {
  position: relative;
  height: 420px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin-top: 72px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(26,39,51,.55);
}
.page-hero-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--white);
}
.page-hero-en {
  font-family: var(--font-en);
  font-style: italic; font-size: clamp(2.8rem,6vw,4.5rem);
  font-weight: 700; line-height: 1; margin-bottom: 12px;
}
.page-hero-ja { font-size: 1rem; letter-spacing: .15em; opacity: .85; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; color: var(--mid);
  padding: 16px 40px; border-bottom: 1px solid var(--border);
  max-width: 1180px; margin: 0 auto;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--border); }

/* Donate Intro */
.donate-intro { background: var(--white); padding: 80px 40px; }
.donate-intro-text {
  text-align: center; max-width: 780px; margin: 0 auto 64px;
}
.donate-intro-text p {
  font-size: 1.05rem; color: var(--dark);
  line-height: 2.2; margin-bottom: 12px;
}
.donate-intro-text p strong { color: var(--primary); }

/* Reason cards */
.reason-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
  margin-top: 56px;
}
.reason-card {
  text-align: center; padding: 40px 28px;
  border-radius: 12px; background: var(--light);
  border-top: 4px solid var(--primary);
  transition: transform var(--transition);
}
.reason-card:hover { transform: translateY(-4px); }
.reason-icon { font-size: 2.4rem; margin-bottom: 16px; }
.reason-title {
  font-size: 1rem; font-weight: 700;
  color: var(--dark); margin-bottom: 10px;
}
.reason-desc { font-size: .82rem; color: var(--mid); line-height: 1.8; }

/* Donation options */
.donation-options { background: var(--light); padding: 80px 40px; }
.option-tabs {
  display: flex; gap: 4px;
  background: var(--border);
  border-radius: 28px; padding: 4px;
  width: fit-content; margin: 0 auto 48px;
}
.tab-btn {
  padding: 10px 28px; border-radius: 24px;
  border: none; font-family: var(--font-ja);
  font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: background var(--transition), color var(--transition);
  background: transparent; color: var(--mid);
}
.tab-btn.active { background: var(--primary); color: var(--white); }

.donation-panel { display: none; }
.donation-panel.active { display: block; }

.amount-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 12px;
  max-width: 700px; margin: 0 auto 32px;
}
.amount-btn {
  padding: 18px 8px; border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--white); font-family: var(--font-ja);
  font-size: .9rem; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: border-color var(--transition), background var(--transition);
}
.amount-btn:hover, .amount-btn.selected {
  border-color: var(--primary); background: #eaf4f2;
}
.amount-num { font-size: 1.3rem; color: var(--primary); display: block; }

.donate-form-wrap {
  max-width: 480px; margin: 0 auto; text-align: center;
}
.donate-form-wrap p {
  font-size: .82rem; color: var(--mid);
  margin-bottom: 20px; line-height: 1.8;
}
.btn-donate-lg {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--white);
  padding: 18px 48px; border-radius: 32px;
  font-weight: 700; font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
  width: 100%; justify-content: center;
}
.btn-donate-lg:hover { background: #d05828; transform: translateY(-2px); }

/* FAQ */
.faq { background: var(--white); padding: 80px 40px; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 0; cursor: pointer;
  font-weight: 600; font-size: .92rem;
}
.faq-q-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: .85rem; font-weight: 700;
  flex-shrink: 0;
}
.faq-a {
  padding: 0 0 20px 44px;
  font-size: .87rem; color: var(--mid);
  line-height: 1.9; display: none;
}
.faq-item.open .faq-a { display: block; }

/* ==========================================
   UTILITIES
   ========================================== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.arrow::after { content: ' →'; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .activities-grid { grid-template-columns: 1fr 1fr; }
  .rep-grid { grid-template-columns: 280px 1fr; gap: 40px; }
  .gallery-grid { columns: 3; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  section { padding: 64px 24px; }
  .philosophy { padding: 64px 0; overflow-x: hidden; }
  .philosophy .section-inner { padding: 0 24px; }
  .philosophy-quote { font-size: clamp(1.2rem, 5vw, 1.6rem); padding: 32px 20px; margin: 40px 0 56px; }
  .philosophy-quote__deco { font-size: 3.5rem; }
  .philosophy-pillar {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 56px;
  }
  .philosophy-pillar__img { margin: 0 -24px; }
  .philosophy-pillar--reverse .philosophy-pillar__img { order: 0; }
  .philosophy-pillar--reverse .philosophy-pillar__text { order: 1; }
  .philosophy-pillar__img img { height: 240px; }
  .philosophy-pillar__text { padding-top: 24px; }
  .pillar-tag { font-size: .65rem; }
  .site-header { padding: 0 24px; }
  .desktop-nav { display: none !important; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; }
  .hero-content { padding: 0 24px 72px; max-width: 100%; }
  .hero-indicators { right: 24px; }
  /* SP: sp-br を表示してスマホ専用改行を有効化 */
  .sp-br  { display: inline; }
  .sp-only { display: inline; }
  .pc-only { display: none; }
  .hero-mission { font-size: clamp(1.35rem, 5.5vw, 1.7rem); line-height: 1.7; }
  .hero-mission-sub { font-size: .83rem; max-width: 100%; }
  .activities-grid { grid-template-columns: 1fr; }
  .rep-grid { grid-template-columns: 1fr; }
  .rep-img-wrap::before { display: none; }
  .gallery-grid { columns: 2; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .reason-grid { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2,1fr); }
  .breadcrumb { padding: 16px 24px; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .gallery-grid { columns: 2; }
}


/* ==========================================
   ACTIVITIES SLIDESHOW
   ========================================== */
.act-slideshow {
  position: relative;
  max-width: 900px;
  margin: 56px auto 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  /* アスペクト比 3:2 を固定（画像は 1200×800 に統一） */
  aspect-ratio: 3 / 2;
}
.act-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.act-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.act-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.act-slide__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 14px 20px;
  background: rgba(26,39,51,.72);
  color: #fff;
  font-size: .88rem;
  text-align: center;
  letter-spacing: .04em;
}
.act-slideshow__dots {
  position: absolute;
  bottom: 52px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}
.act-slideshow__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
  transition: background .3s;
}
.act-slideshow__dots button.active {
  background: #fff;
}
@media (max-width: 768px) {
  .act-slideshow { aspect-ratio: 4 / 3; }
}

/* ==========================================
   REPRESENTATIVE SECTION (section-padded)
   ========================================== */
.section-padded { padding: 80px 40px; }
@media (max-width: 768px) {
  .section-padded { padding: 64px 24px; }
}

/* ==========================================
   FOOTER PRIVACY POLICY
   ========================================== */
.footer-privacy {
  background: #0f1a22;
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-privacy-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 40px 40px;
}
.footer-privacy-inner h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 14px;
}
.footer-privacy-inner p {
  font-size: .8rem;
  color: rgba(255,255,255,.32);
  line-height: 1.8;
  margin-bottom: 10px;
}
.footer-privacy-inner ol {
  padding-left: 1.4em;
  margin: 0;
}
.footer-privacy-inner ol li {
  font-size: .78rem;
  color: rgba(255,255,255,.28);
  line-height: 1.8;
  margin-bottom: 4px;
}
.footer-privacy-inner a {
  color: rgba(255,255,255,.38);
}
.footer-privacy-inner a:hover {
  color: rgba(255,255,255,.6);
}
@media (max-width: 768px) {
  .footer-privacy-inner { padding: 32px 24px; }
}

/* ==========================================
   スマートフォン追加対応
   ========================================== */

/* ---- 768px ---- */
@media (max-width: 768px) {

  /* ヘッダー：ロゴ名を小さく */
  .logo-name { font-size: .88rem; }
  .logo-img  { width: 40px; height: 40px; }

  /* セクション共通 */
  .section-inner { padding-left: 20px !important; padding-right: 20px !important; }
  .section-title-en { font-size: 1.6rem; }
  .section-title    { font-size: 1.35rem; }

  /* ヒーロー */
  .hero-content { padding: 0 20px 64px; }
  .hero-mission-sub { font-size: .82rem; line-height: 1.85; }
  .hero-btns { gap: 12px; }
  .btn-primary, .btn-donate, .btn-outline {
    font-size: .82rem;
    padding: 12px 20px;
  }

  /* 活動紹介カード */
  .activity-card { padding: 24px 20px; }
  .activity-img  { height: 200px; }

  /* WORKカード：横2列・画像を4:3に */
  .work-card__img-wrap { aspect-ratio: 4 / 3; }
  .work-card__body     { padding: 14px 16px 18px; }
  .work-card__desc     { font-size: .76rem; }
  .work-card__collab   { font-size: .66rem; }

  /* 代表プロフィール */
  .rep-img { aspect-ratio: 4 / 3; }
  .rep-name-ja   { font-size: 1.1rem; }
  .rep-role      { font-size: .78rem; line-height: 1.7; }
  .rep-bio       { font-size: .84rem; line-height: 1.85; }
  .career-item   { gap: 12px; font-size: .78rem; }
  .career-year   { min-width: 52px; }

  /* フッター */
  .footer-inner  { gap: 32px; }
}

/* ---- 480px ---- */
@media (max-width: 480px) {

  /* ヘッダー：超小型端末でロゴ名を非表示 */
  .logo-name { display: none; }

  /* ヒーロー */
  .hero-content { padding: 0 16px 56px; }
  .hero-eyebrow { font-size: .65rem; padding: 4px 12px; margin-bottom: 16px; }
  .hero-mission-sub { font-size: .8rem; }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .btn-primary, .btn-donate, .btn-outline {
    text-align: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
  }

  /* セクション余白を詰める */
  section { padding: 48px 16px; }
  .section-padded { padding: 48px 16px; }
  .section-inner { padding-left: 16px !important; padding-right: 16px !important; }

  /* WORKカード：1列 */
  .work-grid { grid-template-columns: 1fr; }
  .work-card__img-wrap { aspect-ratio: 16 / 9; }

  /* 活動紹介 */
  .activities-grid { grid-template-columns: 1fr; }

  /* プロフィール */
  .rep-img { aspect-ratio: 3 / 2; }
  .rep-career-title { font-size: .72rem; }

  /* スライドショー */
  .act-slideshow { aspect-ratio: 4 / 3; margin-top: 32px; }
  .act-slide__caption { font-size: .78rem; padding: 10px 14px; }

  /* フッター */
  .footer-inner { gap: 24px; }
  .footer-brand { font-size: .8rem; }
}
