@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&family=Barlow+Condensed:wght@400;500;600;700;800;900&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

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

:root {
  --black: #000;
  --white: #fff;
  --gray-50: #f7f7f7;
  --gray-100: #efefef;
  --gray-200: #ddd;
  --gray-300: #bbb;
  --gray-400: #999;
  --gray-500: #666;
  --gray-600: #444;
  --gray-700: #222;
  --orange: #ff6b00;
  --blue: #0050ff;
  --neon: #c8ff00;
  --warm: #f2ede8;
  --pink: #e8d5d0;
  --tamabi-blue: #00A0E8;
  --hover-color: var(--orange);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', 'Noto Sans JP', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
[lang="en"] .jp { display: none !important; }
[lang="ja"] .en { display: none !important; }

/* ==================== HEADER (Tamabi Blue) ==================== */
.header {
  background: var(--tamabi-blue);
  color: var(--white);
}
.header.sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-left { display: flex; align-items: center; }
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; }
.logo-mark { height: 26px; width: 32px; }
/* Text logo: TAMABI NY CLUB */
.logo-wordmark {
  font-family: 'Barlow Condensed', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-toggle { display: flex; gap: 0; }
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}
.lang-btn:first-child { border-right: none; }
.lang-btn:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.lang-btn.active { background: var(--white); color: var(--black); border-color: var(--white); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 22px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid currentColor;
  font-family: 'Barlow', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn-primary { background: var(--neon); color: var(--black); border-color: var(--neon); }
.btn-primary:hover { background: #d9ff33; border-color: #d9ff33; }
.btn-secondary { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-secondary:hover { background: transparent; color: var(--white); }
.btn-white { background: var(--white); color: var(--black); border: 2px solid var(--black); }
.btn-white:hover { background: var(--black); color: var(--white); }

/* Navbar */
.navbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 0;
}
.nav-link {
  display: block;
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 20px 14px 0;
  transition: color 0.2s;
  position: relative;
}
.nav-link:first-child { padding-left: 0; }
.nav-link:hover { color: var(--neon); }
.nav-link.active { color: var(--white); }

/* ==================== PAGE HEADER ==================== */
.page-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px 28px;
}
.page-title {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}
.page-desc {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-top: 16px;
  max-width: 600px;
  line-height: 1.7;
}

/* ==================== HERO SLIDESHOW ==================== */
.hero {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 20px auto 0;
  height: 72vh;
  min-height: 440px;
  max-height: 720px;
  overflow: hidden;
  background: var(--black);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slide video { object-position: center; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  z-index: 3;
  padding: 0 40px 48px;
}
.hero-title {
  color: var(--white);
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}
.hero-subtitle {
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  font-weight: 400;
  opacity: 0.75;
  margin-top: 10px;
  letter-spacing: 0.02em;
}
/* Slide navigation */
.hero-nav {
  position: absolute;
  bottom: 28px;
  right: 40px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.hero-dot.active { background: var(--white); }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px; height: 48px;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 700;
  transition: all 0.2s;
}
.hero-arrow:hover { background: rgba(0,0,0,0.6); border-color: var(--white); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

/* ==================== WELCOME ==================== */
.welcome {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 40px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.section-title {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}
.section-subtitle { font-size: 0.95rem; color: var(--gray-500); margin-top: 10px; max-width: 480px; }
.welcome-right { text-align: right; }
.exhibition-info h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.exhibition-info p { font-size: 0.88rem; color: var(--gray-500); margin-bottom: 10px; }

/* ==================== DIVIDER ==================== */
hr.divider {
  max-width: 1400px;
  margin: 0 auto;
  border: none;
  height: 2px;
  background: var(--black);
  padding: 0;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== SECTIONS ==================== */
.section, .exhibitions-preview {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 40px 56px;
}
.section h2 {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 28px;
}
.section-heading {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* ==================== EXHIBITION CARDS ==================== */
.exhibitions-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 10px;
}
.exhibitions-carousel::-webkit-scrollbar { display: none; }
.exhibition-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--black);
  transition: transform 0.3s ease;
}
.exhibition-card:hover { transform: translateY(-4px); }
.card-image {
  width: 100%;
  height: 260px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.exhibition-card:hover .card-image img { transform: scale(1.04); }
.card-content { padding-top: 14px; }
.card-title {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.card-tag {
  font-family: 'Barlow', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  margin-top: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-date { font-size: 0.82rem; color: var(--gray-500); margin-top: 3px; }
.card-description { font-size: 0.88rem; color: var(--gray-600); margin-top: 5px; line-height: 1.55; }

/* Arrow navigation */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.arrow-nav { display: flex; gap: 6px; }
.arrow-btn {
  width: 36px; height: 36px;
  border: 2px solid var(--black);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s;
}
.arrow-btn:hover { background: var(--black); color: var(--white); }

/* ==================== CTA BANNER ==================== */
.cta-banner {
  background: var(--black);
  color: var(--white);
  padding: 56px 40px;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto 0;
}
.cta-banner.full-width { max-width: 100%; }
.banner-title {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
  line-height: 0.95;
}
.banner-subtitle { font-size: 0.95rem; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.cta-banner .btn { margin-top: 6px; }

/* Pink variant */
.cta-banner.pink { background: var(--orange); color: var(--black); }
.cta-banner.pink .btn { border-color: var(--black); color: var(--black); }
.cta-banner.pink .btn:hover { background: var(--black); color: var(--white); }

/* Cyan variant - remap */
.cta-banner.cta-cyan, .cta-cyan { background: var(--gray-100); color: var(--black); }

/* Inline CTA */
.cta-inline { max-width: 1400px; margin: 0 auto; padding: 0 40px 56px; }
.cta-inner {
  padding: 48px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  background: var(--neon);
}
.cta-inner h2 {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.cta-inner .cta-right { max-width: 420px; }
.cta-inner .cta-right p { font-size: 0.9rem; color: var(--gray-700); margin-bottom: 12px; }
.cta-link {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  text-decoration: none;
  color: var(--black);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--black);
  padding-bottom: 2px;
}
.cta-link:hover { opacity: 0.6; }

/* ==================== EXHIBITION DETAIL ==================== */
.exh-detail {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.exh-detail h3 {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.exh-table { width: 100%; border-collapse: collapse; }
.exh-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.88rem;
  vertical-align: top;
}
.exh-table td:first-child {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  width: 90px;
  color: var(--gray-500);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-right: 14px;
}
.exh-desc { font-size: 0.92rem; line-height: 1.85; color: var(--gray-600); }
.exh-desc p { margin-bottom: 14px; }

/* ==================== HISTORY CARDS ==================== */
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 2px;
  background: var(--gray-200);
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}
.history-item {
  background: var(--white);
  padding: 14px 18px;
  transition: background 0.2s;
}
.history-item:hover { background: var(--gray-50); }
.history-item .year { font-family: 'Barlow Condensed', sans-serif; font-size: 1.2rem; font-weight: 800; }
.history-item .detail { font-size: 0.75rem; color: var(--gray-500); margin-top: 3px; line-height: 1.4; }

/* Exhibition History Cards */
.history-cards {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.history-card {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  text-decoration: none;
  color: var(--black);
  transition: all 0.25s ease;
}
.history-card:hover { border-color: var(--orange); transform: translateY(-2px); }
/* Flat / minimal variant used on the Seminars list page */
.seminar-history .history-cards .history-card {
  padding: 16px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-200);
  transition: opacity 0.2s ease;
}
.seminar-history .history-cards .history-card:hover {
  border-color: transparent;
  border-bottom-color: var(--gray-200);
  transform: none;
  opacity: 0.7;
}
.history-card .hc-img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-100);
}
.history-card .hc-body { flex: 1; }
.history-card .hc-date {
  font-family: 'Barlow', sans-serif;
  font-size: 0.7rem;
  color: var(--gray-500);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.history-card .hc-title {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.history-card .hc-venue { font-size: 0.78rem; color: var(--gray-500); }

/* ==================== MEMBERS ==================== */
.members-section { margin-bottom: 8px; }
.members-section > summary {
  list-style: none;
  cursor: pointer;
  outline: none;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px 10px;
  border-bottom: 2px solid var(--black);
  display: block;
  user-select: none;
}
.members-section > summary::-webkit-details-marker { display: none; }
.members-section > summary::before {
  content: '▾';
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--gray-500);
  transition: transform 0.2s ease;
}
.members-section:not([open]) > summary::before {
  transform: translateY(-50%) rotate(-90deg);
}
.members-section > summary:hover { background: var(--gray-100, #f5f5f5); }
.members-count {
  font-weight: 400;
  color: var(--gray-500);
  margin-left: 6px;
  font-size: 0.9em;
}
.members-section:not([open]) > .members-grid { display: none; }
.members-label {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 20px 40px 10px;
  border-bottom: 2px solid var(--black);
  margin-bottom: 2px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.members-section > summary .members-label {
  padding: 0;
  border: none;
  margin: 0;
  max-width: none;
  display: inline;
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-200);
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}
.member-card {
  background: var(--white);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.2s;
}
.member-card:hover { background: var(--gray-50); }
.member-card .m-role {
  font-family: 'Barlow', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.member-card .m-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}
.member-card .m-en { font-size: 0.82rem; color: var(--gray-500); }
.member-card a { font-size: 0.78rem; color: var(--gray-400); text-decoration: none; word-break: break-all; }
.member-card a:hover { color: var(--orange); }
.member-card .m-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 6px;
}
.member-card .m-links .m-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--gray-500);
  word-break: break-all;
}
.member-card .m-links .m-link:hover { color: var(--orange); }
.member-card .m-links .m-link svg { flex-shrink: 0; }
.member-count {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 18px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* ==================== JAPANESE TEXT WRAPPING ==================== */
/* Prevent mid-word breaks in Japanese (e.g., プラ/ットフォーム) */
.jp {
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ==================== ABOUT ==================== */
.about-hero-image {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}
.about-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.about-hero-caption {
  max-width: 1400px;
  margin: 12px auto 0;
  padding: 0 40px;
  font-size: 0.875rem;
  color: var(--gray-500);
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}
.about-hero-placeholder {
  width: 100%;
  height: 420px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}
.about-intro {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 40px 0;
  font-size: 1.05rem;
  line-height: 2;
}
.about-intro p {
  max-width: 900px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 48px 40px 60px;
}
.about-grid h2 {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 20px;
  white-space: nowrap;
}
.about-grid p {
  margin-bottom: 10px;
  line-height: 2;
}
.about-grid .sub { font-size: 0.92rem; color: var(--gray-500); margin-top: 10px; line-height: 1.8; }
.about-link {
  display: inline-block;
  margin-top: 16px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  text-decoration: none;
  color: var(--black);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--black);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.about-link:hover { color: var(--orange); border-color: var(--orange); }
.philosophy {
  background: var(--gray-50);
  padding: 36px 40px;
  font-size: 0.92rem;
  line-height: 2.2;
  text-align: center;
  border-left: 4px solid var(--black);
}
.philosophy .author {
  margin-top: 16px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==================== KIYAKU (Bylaws) ==================== */
.kiyaku-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 60px;
}
.kiyaku-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--gray-200);
}
.kiyaku-section:last-child {
  border-bottom: none;
}
.kiyaku-section h3 {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.kiyaku-section p {
  font-size: 0.92rem;
  line-height: 2;
  margin-bottom: 8px;
  color: var(--gray-600);
}
.kiyaku-amendments p {
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* ==================== LINKS ==================== */
.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-200);
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}
.link-item {
  background: var(--white);
  padding: 28px;
  text-decoration: none;
  color: var(--black);
  display: block;
  transition: all 0.2s;
}
.link-item:hover { background: var(--gray-50); color: var(--blue); }
.link-item h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.link-item p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.55; }
.link-item .arr {
  display: inline-block;
  margin-top: 10px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==================== CONTACT ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}
.contact-grid h3 {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.contact-grid p { font-size: 0.92rem; color: var(--gray-600); line-height: 1.8; }
.email-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--black);
  padding-bottom: 2px;
  text-decoration: none;
  color: var(--black);
  transition: color 0.2s, border-color 0.2s;
}
.email-link:hover { color: var(--orange); border-color: var(--orange); }

/* ==================== SOCIAL BANNER ==================== */
.social-banner {
  background: var(--neon);
  padding: 40px;
  max-width: 1400px;
  margin: 60px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.social-banner h3 {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

/* ==================== FOOTER (Whitney-inspired neon + dark) ==================== */

/* Neon banner section */
.footer-neon {
  background: var(--neon);
  color: var(--black);
  padding: 60px 40px 50px;
}
.footer-neon-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.footer-neon .footer-brand {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  transition: color 0.3s;
}
.footer-neon .footer-brand:hover { color: var(--tamabi-blue); }
.footer-neon-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
/* Newsletter */
.footer-newsletter h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.footer-newsletter .nl-form {
  display: flex;
  border: 2px solid var(--black);
  max-width: 400px;
}
.footer-newsletter .nl-form input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  background: transparent;
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  outline: none;
  color: var(--black);
}
.footer-newsletter .nl-form input::placeholder { color: rgba(0,0,0,0.4); }
.footer-newsletter .nl-form button {
  padding: 12px 20px;
  background: var(--black);
  color: var(--neon);
  border: none;
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.footer-newsletter .nl-form button:hover { background: var(--gray-700); }
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}
.social-icon {
  color: var(--black);
  opacity: 0.7;
  transition: all 0.2s;
}
.social-icon:hover { opacity: 1; }
/* Footer link columns */
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  line-height: 1.3;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 5px; }
.footer-col a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}
.footer-col a:hover { color: var(--tamabi-blue); }

/* Dark bottom bar */
.footer-dark {
  background: var(--black);
  color: var(--white);
  padding: 20px 40px;
}
.footer-dark-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-dark-links {
  display: flex;
  gap: 24px;
}
.footer-dark-links a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.footer-dark-links a:hover { opacity: 1; }
.footer-dark .copyright {
  font-size: 0.72rem;
  opacity: 0.35;
}

/* Legacy footer classes (keep for pages not yet updated) */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 52px 40px 28px;
}
.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 36px;
}
.footer-section h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 6px; }
.footer-section a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.82rem;
  opacity: 0.5;
  transition: all 0.2s;
}
.footer-section a:hover { opacity: 1; color: var(--neon); }
.footer-section p { font-size: 0.82rem; opacity: 0.5; line-height: 1.65; }
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-size: 0.7rem;
  opacity: 0.35;
}

/* ==================== GALLERY / ARTWORK GRID ==================== */
.gallery-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  padding: 0 0 44px;
}
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  background: var(--gray-100);
  transition: all 0.3s ease;
}
.gallery-grid img:hover { transform: scale(1.02); box-shadow: 0 6px 24px rgba(0,0,0,0.15); }
.gallery-caption { font-size: 0.78rem; color: var(--gray-500); margin-top: 4px; line-height: 1.4; }

/* Exhibition poster */
.exh-poster { max-width: 1320px; margin: 0 auto 30px; }
.exh-poster img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  background: var(--gray-100);
}

/* Facebook embed */
.fb-embed { max-width: 1400px; margin: 0 auto; padding: 0 40px 44px; }
.fb-embed h3 {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.fb-embed iframe { border: none; width: 100%; max-width: 500px; }

/* Hero with image */
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }

/* ==================== LIGHTBOX ==================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img { max-width: 85vw; max-height: 85vh; object-fit: contain; user-select: none; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: var(--white); font-size: 2.2rem;
  cursor: pointer; z-index: 10001;
  line-height: 1;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--neon); }
.lightbox-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.4rem; font-weight: 700;
  transition: all 0.2s;
  z-index: 10001;
}
.lightbox-arrow:hover { border-color: var(--neon); color: var(--neon); }
.lightbox-arrow.lb-prev { left: 20px; }
.lightbox-arrow.lb-next { right: 20px; }
.lightbox-count {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.5;
}

/* Show More button */
.show-more-btn {
  display: block;
  margin: 24px auto 0;
  padding: 11px 32px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Barlow', sans-serif;
  background: none;
  border: 2px solid var(--black);
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.show-more-btn:hover { background: var(--black); color: var(--white); }

/* ==================== CONTACT FORM ==================== */
.contact-form { max-width: 1400px; margin: 0 auto; padding: 0 40px 56px; }
.contact-form h3 {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--blue); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-submit {
  display: inline-block;
  padding: 13px 36px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Barlow', sans-serif;
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.form-submit:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.form-type-toggle { display: flex; gap: 0; margin-bottom: 28px; }
.form-type-btn {
  flex: 1;
  padding: 13px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Barlow', sans-serif;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--gray-200);
  background: var(--white);
  transition: all 0.2s;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-type-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }
.form-type-btn:first-child { border-right: none; }

/* ==================== MEMBER LOGIN BUTTON ==================== */
.btn-member-login {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Barlow', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-member-login:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-member-login.logged-in { border-color: var(--neon); color: var(--neon); }
.btn-member-login.logged-in:hover { background: var(--neon); color: var(--black); }

/* ==================== LOGIN MODAL ==================== */
.login-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.login-modal-overlay.open { display: flex; }
.login-modal {
  background: var(--white);
  width: 90%;
  max-width: 440px;
  padding: 48px 40px;
  position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.login-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray-400);
  line-height: 1;
  transition: color 0.2s;
}
.login-modal-close:hover { color: var(--black); }
.login-modal-header {
  text-align: center;
  margin-bottom: 32px;
}
.login-modal-header svg { margin-bottom: 16px; }
.login-modal-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.login-modal-header p {
  color: var(--gray-500);
  font-size: 0.9rem;
}
.login-field {
  margin-bottom: 20px;
}
.login-field label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.login-field input,
.login-field select,
.login-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  font-family: 'Barlow', 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: var(--white);
}
.login-field input:focus,
.login-field select:focus,
.login-field textarea:focus {
  outline: none;
  border-color: var(--black);
}
.login-field textarea { resize: vertical; }
.login-error {
  color: #d32f2f;
  font-size: 0.85rem;
  min-height: 20px;
  margin-bottom: 12px;
}
.btn-login-submit {
  width: 100%;
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  padding: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-login-submit:hover { background: var(--gray-700); border-color: var(--gray-700); }
.btn-login-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 0.82rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}
.btn-google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-google-login:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}
.btn-google-login svg {
  flex-shrink: 0;
}
.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--gray-500);
}
.login-footer a { color: var(--blue); text-decoration: underline; }
.login-footer a:hover { color: var(--black); }

.login-signup-notice {
  text-align: center;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--gray-100, #f5f5f5);
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--gray-600, #555);
}

/* ==================== COMMUNITY LOCKED STATE ==================== */
.community-locked {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.locked-content { max-width: 480px; }
.locked-icon {
  color: var(--gray-300);
  margin-bottom: 28px;
}
.locked-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.locked-desc {
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ==================== COMMUNITY BOARD ==================== */
.community-header { padding-bottom: 0; }
.community-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.community-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.user-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-600);
}
.btn-logout {
  background: transparent;
  color: var(--gray-500);
  border: 1px solid var(--gray-300);
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Barlow', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-logout:hover { border-color: var(--black); color: var(--black); }

.btn-mypage-toggle {
  font-size: 0.75rem;
  padding: 6px 16px;
  border: 1px solid var(--gray-300);
  background: transparent;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-mypage-toggle:hover { border-color: var(--black); color: var(--black); }
.btn-mypage-toggle.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* My Page Panel */
.mypage-panel {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}
.mypage-inner {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 32px;
  margin-top: 16px;
}
.mypage-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.mypage-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-100);
}
.mypage-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.mypage-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.mypage-field {
  margin-bottom: 12px;
}
.mypage-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.mypage-input {
  width: 100%;
  max-width: 400px;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.mypage-input:focus {
  outline: none;
  border-color: var(--black);
}
.mypage-input:disabled {
  background: var(--gray-50);
  color: var(--gray-500);
}
.mypage-msg {
  margin-top: 8px;
  font-size: 0.85rem;
  min-height: 20px;
}
.mypage-msg.success { color: #2e7d32; }
.mypage-msg.error { color: #c62828; }
.btn-sm {
  font-size: 0.8rem;
  padding: 8px 20px;
}

/* Community controls */
.community-controls {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 40px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.category-filter {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.cat-btn {
  background: transparent;
  border: 2px solid var(--gray-200);
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gray-500);
}
.cat-btn:not(:last-child) { border-right: none; }
.cat-btn:hover { color: var(--black); border-color: var(--gray-400); }
.cat-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }
.cat-btn.active + .cat-btn { border-left: 2px solid var(--black); }
.btn-new-post { white-space: nowrap; }

/* Posts list */
.posts-list {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.post-card {
  border: 2px solid var(--gray-100);
  padding: 28px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.post-card.post-pinned {
  border-color: var(--orange, #ff6b00);
  background: linear-gradient(180deg, #fff8f3 0%, #fff 100%);
}
.post-card.post-pinned:hover {
  border-color: var(--orange, #ff6b00);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
}
.notice-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--orange, #ff6b00);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 1;
}
.pin-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 8px 0;
}
.pin-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.post-card:hover {
  border-color: var(--black);
  transform: translateY(-2px);
}
.post-card-image { margin: -28px -28px 0; overflow: hidden; }
.post-card-image img { width: 100%; height: 160px; object-fit: cover; display: block; }
.post-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.post-cat {
  display: inline-block;
  padding: 3px 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-date {
  font-size: 0.8rem;
  color: var(--gray-400);
}
.post-title {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
}
.post-preview {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
}
.post-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}
.post-author {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.post-delete-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--gray-300);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}
.post-delete-btn:hover { color: #d32f2f; }

.post-views-count {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  color: var(--gray-400);
  letter-spacing: 0.02em;
  margin-left: auto;
  margin-right: 8px;
}

.post-views {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-400);
  font-size: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 40px 0 20px;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--gray-200);
  background: #fff;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover:not(.disabled):not(.active) {
  background: var(--gray-100);
  border-color: var(--gray-300);
}
.page-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}
.page-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.page-prev, .page-next {
  font-size: 1.3rem;
  font-weight: 300;
}
.page-dots {
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: var(--gray-400);
  font-size: 0.9rem;
}

/* Post modal */
.post-modal { max-width: 580px; }
.post-view-modal { max-width: 680px; max-height: 85vh; overflow-y: auto; }
.post-view-header { margin-bottom: 28px; }
.post-view-title {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 16px 0 12px;
}
.post-view-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--gray-400);
}
.post-view-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
  white-space: pre-wrap;
}
.post-view-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.btn-edit-post {
  background: transparent;
  color: #333;
  border: 2px solid #333;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Barlow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-edit-post:hover { background: #333; color: var(--white); }
.btn-delete-post {
  background: transparent;
  color: #d32f2f;
  border: 2px solid #d32f2f;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Barlow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-delete-post:hover { background: #d32f2f; color: var(--white); }

/* ==================== COMMENTS ==================== */
.comments-section { margin-top: 32px; border-top: 1px solid var(--gray-100); padding-top: 24px; }
.comments-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.no-comments { color: var(--gray-400); font-size: 0.85rem; }
.comment-item { padding: 14px 0; border-bottom: 1px solid var(--gray-50); }
.comment-item:last-child { border-bottom: none; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-author { font-family: 'Barlow Condensed', sans-serif; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.comment-date { font-size: 0.75rem; color: var(--gray-400); }
.comment-delete-btn { background: none; border: none; font-size: 1.1rem; color: var(--gray-300); cursor: pointer; padding: 0 4px; line-height: 1; margin-left: auto; transition: color 0.2s; }
.comment-delete-btn:hover { color: #d32f2f; }
.comment-body { font-size: 0.9rem; line-height: 1.6; color: var(--gray-700); }
.comment-form { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.comment-form textarea { width: 100%; padding: 12px; border: 2px solid var(--gray-100); border-radius: 6px; font-family: 'Barlow', sans-serif; font-size: 0.9rem; resize: vertical; outline: none; transition: border-color 0.2s; box-sizing: border-box; }
.comment-form textarea:focus { border-color: var(--tamabi-blue); }
.btn-comment-submit { align-self: flex-end; background: var(--black); color: var(--white); border: 2px solid var(--black); padding: 8px 20px; font-family: 'Barlow', sans-serif; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; transition: all 0.2s; }
.btn-comment-submit:hover { background: var(--tamabi-blue); border-color: var(--tamabi-blue); }

/* ==================== DYNAMIC COLOR HOVER EFFECTS ==================== */
/* Nav links cycle colors */
.nav-list li .nav-link:hover { color: var(--white); }

/* Exhibition cards hover color accent */
.exhibition-card:nth-child(1):hover .card-title { color: var(--orange); }
.exhibition-card:nth-child(2):hover .card-title { color: var(--blue); }
.exhibition-card:nth-child(3):hover .card-title { color: var(--orange); }
.exhibition-card:nth-child(4):hover .card-title { color: var(--blue); }

/* History cards alternate hover colors */
.history-card:nth-child(odd):hover { border-color: var(--orange); }
.history-card:nth-child(even):hover { border-color: var(--blue); }

/* Link items hover color */
.link-item:nth-child(3n+1):hover { color: var(--orange); }
.link-item:nth-child(3n+2):hover { color: var(--blue); }
.link-item:nth-child(3n+3):hover { color: var(--black); }

/* ==================== FADE IN ==================== */
.fade-in { opacity: 0; transform: translateY(24px); transition: all 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==================== HAMBURGER MENU ==================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav extras - hidden on desktop */
.mobile-nav-extras { display: none; }

/* ==================== ACCESSIBILITY WIDGET ==================== */
#a11yTrigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0050ff;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s, background 0.2s;
}
#a11yTrigger:hover { transform: scale(1.1); background: #003fcc; }

#a11yPanel {
  position: fixed;
  bottom: 84px;
  left: 24px;
  width: 320px;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}
#a11yPanel.open { opacity: 1; visibility: visible; transform: translateY(0); }

.a11y-header {
  background: #0050ff;
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.a11y-header h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.a11y-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.a11y-body { padding: 16px; }
.a11y-section { margin-bottom: 18px; }
.a11y-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 10px;
}
.a11y-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.a11y-btn {
  background: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 12px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
  min-height: 74px;
}
.a11y-btn:hover { background: #ebebeb; border-color: #ccc; }
.a11y-btn.active { background: #e8efff; border-color: #0050ff; }
.a11y-btn .a11y-icon {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  line-height: 1;
}
.a11y-btn.active .a11y-icon { color: #0050ff; }
.a11y-btn .a11y-label {
  font-size: 0.7rem;
  line-height: 1.2;
  color: #333;
  text-align: center;
}
.a11y-dots {
  display: flex;
  gap: 3px;
  margin-top: 2px;
}
.a11y-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ccc;
}
.a11y-dot.active { background: #0050ff; }
.a11y-reset {
  width: 100%;
  background: #333;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 8px;
}
.a11y-reset:hover { background: #000; }

/* ==================== ACCESSIBILITY MODES ==================== */
/* Font size levels */
html[data-a11y-font="1"] body { font-size: 1.12em; }
html[data-a11y-font="1"] p, html[data-a11y-font="1"] li, html[data-a11y-font="1"] a,
html[data-a11y-font="1"] span, html[data-a11y-font="1"] label, html[data-a11y-font="1"] td,
html[data-a11y-font="1"] input, html[data-a11y-font="1"] textarea, html[data-a11y-font="1"] button { font-size: 1.08em; }
html[data-a11y-font="2"] body { font-size: 1.25em; }
html[data-a11y-font="2"] p, html[data-a11y-font="2"] li, html[data-a11y-font="2"] a,
html[data-a11y-font="2"] span, html[data-a11y-font="2"] label, html[data-a11y-font="2"] td,
html[data-a11y-font="2"] input, html[data-a11y-font="2"] textarea, html[data-a11y-font="2"] button { font-size: 1.18em; }

/* Line spacing levels */
html[data-a11y-line="1"] body { line-height: 1.8; }
html[data-a11y-line="2"] body { line-height: 2.2; }
html[data-a11y-line="1"] p, html[data-a11y-line="1"] li { line-height: 1.8; }
html[data-a11y-line="2"] p, html[data-a11y-line="2"] li { line-height: 2.2; }

/* High contrast mode */
html.a11y-contrast body {
  background: #000 !important;
  color: #fff !important;
}
html.a11y-contrast body *:not(.a11y-btn):not(.a11y-btn *):not(.a11y-header):not(.a11y-header *):not(.a11y-reset):not(.a11y-close):not(#a11yTrigger):not(#a11yTrigger *) {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}
html.a11y-contrast a:not(.a11y-btn):not(.a11y-close) {
  color: #ffff00 !important;
  text-decoration: underline !important;
}
html.a11y-contrast img { filter: grayscale(100%) contrast(120%); }

/* Invert colors */
html.a11y-invert {
  filter: invert(1) hue-rotate(180deg);
  background: #fff;
}
html.a11y-invert img, html.a11y-invert video, html.a11y-invert iframe,
html.a11y-invert #a11yTrigger, html.a11y-invert #a11yPanel {
  filter: invert(1) hue-rotate(180deg);
}

/* Highlight links */
html.a11y-highlight-links a:not(.a11y-btn):not(.a11y-close) {
  outline: 2px solid #ff6b00 !important;
  outline-offset: 2px !important;
  background-color: #fff3e0 !important;
  color: #000 !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

/* Dyslexia-friendly font */
html.a11y-dyslexia body, html.a11y-dyslexia body * {
  font-family: "Comic Sans MS", "Comic Neue", Verdana, Arial, sans-serif !important;
  letter-spacing: 0.05em !important;
  word-spacing: 0.1em !important;
}

/* Pause animations */
html.a11y-no-anim *, html.a11y-no-anim *::before, html.a11y-no-anim *::after {
  animation: none !important;
  transition: none !important;
  animation-duration: 0s !important;
  transition-duration: 0s !important;
}

/* Big cursor */
html.a11y-big-cursor, html.a11y-big-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'><path fill='%23000' stroke='%23fff' stroke-width='1.5' d='M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.36z'/></svg>") 4 4, auto !important;
}
html.a11y-big-cursor a, html.a11y-big-cursor button, html.a11y-big-cursor [onclick] {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'><path fill='%23ff6b00' stroke='%23fff' stroke-width='1.5' d='M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.36z'/></svg>") 4 4, pointer !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #a11yTrigger { bottom: 72px; left: 16px; width: 44px; height: 44px; }
  #a11yPanel { bottom: 126px; left: 16px; right: 16px; width: auto; }
}

/* Scroll-to-top button */
#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
#scrollTopBtn:hover {
  background: var(--orange, #ff6b00);
  transform: translateY(-2px);
}
#scrollTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width: 768px) {
  #scrollTopBtn { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .header-content { padding: 12px 16px; }
  .header-right .btn-member-login,
  .header-right .btn-primary { display: none; }
  .logo-wordmark { font-size: 1.2rem; }

  .navbar {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .navbar.open {
    max-height: 500px;
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0 16px 12px;
  }
  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-list li:last-child .nav-link {
    border-bottom: none;
  }
  /* Mobile menu extra items */
  .mobile-nav-extras {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 16px 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
  .mobile-nav-extras .btn {
    text-align: center;
    width: 100%;
  }
  .mobile-login-btn {
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
    background: transparent;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .mobile-login-btn.logged-in {
    border-color: var(--neon);
    color: var(--neon);
  }
  .nav-link { font-size: 0.88rem; }
  .page-header { padding: 36px 16px 16px; }
  .section, .exhibitions-preview { padding: 30px 16px 40px; }
  .welcome { padding: 24px 16px; flex-direction: column; }
  .welcome-right { text-align: left; }
  hr.divider { margin-left: 16px; margin-right: 16px; }
  .exhibition-card { flex: 0 0 280px; }
  .exh-detail { grid-template-columns: 1fr; gap: 24px; padding: 0 16px 40px; }
  .about-hero-image { padding: 0 16px; }
  .about-hero-placeholder { height: 240px; }
  .about-hero-caption { padding: 0 16px; font-size: 0.8rem; }
  .about-intro { padding: 28px 16px 0; font-size: 0.95rem; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; padding: 28px 16px 40px; }
  .about-grid h2 { white-space: normal; font-size: clamp(1.2rem, 5vw, 1.8rem); }
  .members-label { padding-left: 16px; padding-right: 16px; }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .member-count { padding-left: 16px; padding-right: 16px; }
  .links-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
  .cta-banner { padding: 36px 16px; }
  .cta-inline { padding: 0 16px 30px; }
  .cta-inner { padding: 28px; }
  .social-banner { padding: 28px 16px; }
  .footer { padding: 32px 16px 16px; }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
  .footer-neon { padding: 28px 16px 24px; }
  .footer-neon .footer-brand { font-size: 2.4rem; margin-bottom: 20px; }
  .footer-neon-grid { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .footer-newsletter { grid-column: 1 / -1; }
  .footer-newsletter h4 { font-size: 0.9rem; margin-bottom: 10px; }
  .footer-col h4 { font-size: 0.78rem; margin-bottom: 8px; }
  .footer-col ul li { margin-bottom: 3px; }
  .footer-col a { font-size: 0.8rem; }
  .social-banner { padding: 20px 16px; }
  .social-banner h3 { font-size: 0.9rem; }
  .footer-dark { padding: 16px; }
  .footer-dark-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-dark-links { flex-wrap: wrap; gap: 14px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 0 16px 30px; }
  .gallery-grid img { height: 160px; }
  .fb-embed { padding: 0 16px 30px; }
  .exh-poster { padding: 0 16px; }
  .hero { height: 55vh; min-height: 340px; }
  .hero-content { padding: 0 16px 36px; }
  .hero-arrow { width: 38px; height: 38px; font-size: 1rem; }
  .history-cards { grid-template-columns: 1fr; gap: 10px; padding: 0 16px; }
  .history-card { padding: 14px; gap: 12px; }
  .history-card .hc-img { width: 100px; height: 72px; }
  .lightbox-img { max-width: 95vw; max-height: 80vh; }
  .lightbox-arrow { width: 40px; height: 40px; font-size: 1.1rem; }
  .lightbox-arrow.lb-prev { left: 8px; }
  .lightbox-arrow.lb-next { right: 8px; }
  .contact-form { padding: 0 16px 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .btn-member-login span { font-size: 0.65rem; }
  .login-modal { padding: 36px 24px; }
  .community-controls { padding: 20px 16px 16px; }
  .community-header-top { flex-direction: column; gap: 12px; }
  .posts-list { padding: 0 16px 40px; grid-template-columns: 1fr; }
  .post-card { padding: 20px; }
}
@media (max-width: 500px) {
  .logo-wordmark { font-size: 1rem; letter-spacing: 0.04em; }
  .members-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .footer-neon-grid { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .footer-newsletter .nl-form { max-width: 100%; }
  .footer-neon .footer-brand { font-size: 2rem; margin-bottom: 16px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img { height: 200px; }
  .hero { min-height: 300px; height: 50vh; }
  .history-card { flex-direction: column; }
  .history-card .hc-img { width: 100%; height: 140px; }
  .form-type-toggle { flex-direction: column; }
  .form-type-btn:first-child { border-right: 2px solid var(--gray-200); border-bottom: none; }
  .category-filter { flex-wrap: wrap; }
  .cat-btn { padding: 6px 12px; font-size: 0.72rem; }
}

/* ── Admin Page ── */
.admin-locked {
  text-align: center;
  padding: 80px 20px;
}
.admin-locked-inner {
  max-width: 400px;
  margin: 0 auto;
}
.admin-locked svg {
  color: var(--gray-400);
  margin-bottom: 20px;
}
.admin-locked h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.admin-locked p {
  color: var(--gray-500);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.admin-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.admin-section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.admin-legend {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.role-admin {
  background: var(--orange);
  color: var(--white);
}
.role-member {
  background: var(--neon);
  color: var(--black);
}
.role-pending {
  background: var(--gray-200);
  color: var(--gray-600);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table thead {
  background: var(--black);
  color: var(--white);
}
.admin-table th {
  padding: 10px 14px;
  text-align: left;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}
.admin-table tbody tr:hover {
  background: var(--gray-50);
}
.admin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.admin-btn {
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.admin-btn:hover { opacity: 0.8; }
.admin-btn-approve {
  background: var(--neon);
  color: var(--black);
}
.admin-btn-admin {
  background: var(--orange);
  color: var(--white);
}
.admin-btn-revoke {
  background: var(--gray-700);
  color: var(--white);
}
.admin-empty, .admin-loading {
  color: var(--gray-500);
  padding: 20px 0;
}

@media (max-width: 600px) {
  .admin-table { font-size: 0.8rem; }
  .admin-table th, .admin-table td { padding: 8px 10px; }
  .admin-actions { flex-direction: column; }
}

/* ==================== SEMINARS PAGE ==================== */
.seminar-feature {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 40px;
}
.seminar-feature-inner {
  background: var(--gray-50);
  border-radius: 16px;
  padding: 36px 32px;
  border: 1px solid var(--gray-200);
}
.seminar-feature-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--black);
}
.seminar-feature-meta {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}
.seminar-feature-meta p {
  margin: 0;
}
.seminar-feature-body {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--gray-700);
}
.seminar-feature-body p {
  margin-bottom: 14px;
}
.seminar-feature-body p:last-child {
  margin-bottom: 0;
}
.seminar-cite {
  font-size: 0.88rem;
  color: var(--gray-500);
}
.seminar-cite a {
  color: var(--tamabi-blue);
  text-decoration: underline;
}
.seminar-cite a:hover {
  color: var(--orange);
}

.seminar-history {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.seminar-history-heading {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.seminar-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.seminar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.seminar-table thead {
  background: var(--black);
  color: var(--white);
}
.seminar-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.seminar-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.seminar-table tbody tr:hover {
  background: var(--gray-50);
}
.seminar-table tbody tr:nth-child(even) {
  background: #fafafa;
}
.seminar-table tbody tr:nth-child(even):hover {
  background: var(--gray-100);
}

/* Clickable seminar rows */
.seminar-row.clickable {
  cursor: pointer;
}
.seminar-row.clickable:hover {
  background: #eef6ff !important;
}
.expand-arrow {
  display: inline-block;
  font-size: 0.75em;
  transition: transform 0.25s ease;
  margin-left: 4px;
  color: var(--gray-400);
}
.seminar-row.expanded .expand-arrow {
  transform: rotate(90deg);
  color: var(--tamabi-blue);
}

/* Detail row that expands below a clicked seminar */
.seminar-detail-row td {
  padding: 0 !important;
  border-bottom: 2px solid var(--tamabi-blue);
  background: #f8fbff;
}
.seminar-detail-inner {
  padding: 20px 24px 28px;
  line-height: 1.75;
  font-size: 0.9rem;
  color: var(--gray-600);
}
.seminar-detail-inner p {
  margin-bottom: 12px;
}
.seminar-detail-inner p:last-child {
  margin-bottom: 0;
}

/* Image gallery in detail rows */
.seminar-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.seminar-detail-gallery img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  object-fit: cover;
  max-height: 280px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.seminar-detail-gallery img:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

/* Hint text */
.seminar-hint {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 12px;
}

/* ==================== FEATURED SEMINAR ==================== */
.sem-featured {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 48px;
}
.sem-featured-inner {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  border: none;
}
.sem-featured-gallery {
  position: relative;
}
.sem-featured-hero {
  width: 100%;
  overflow: visible;
}
.sem-featured-hero-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.sem-featured-hero-img:hover {
  opacity: 0.9;
}
.sem-featured-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px 0 0;
  background: transparent;
}
.sem-featured-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  cursor: pointer;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
@media (max-width: 600px) {
  .sem-featured-thumbs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
.sem-featured-thumb:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
.sem-featured-text {
  padding: 28px 0 36px;
}
.sem-featured-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--black);
}
.sem-featured-meta {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}
.sem-featured-body {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--gray-700);
}
.sem-featured-body p {
  margin-bottom: 14px;
}
.sem-featured-body p:last-child {
  margin-bottom: 0;
}
.sem-featured-noimg .sem-featured-text {
  padding: 40px 0 48px;
}
.sem-featured-noimg .sem-featured-title {
  font-size: 1.8rem;
}
.sem-featured-noimg .sem-featured-body {
  font-size: 1rem;
  line-height: 2;
  max-width: 800px;
}
/* Make history-card act as a clickable card on the seminars list page */
a.history-card.history-card-link {
  text-decoration: none;
  color: var(--black);
  display: flex;
}
a.history-card.history-card-link:hover { border-color: var(--tamabi-blue, #0057b8); }
.history-card .hc-img-placeholder {
  width: 140px;
  height: 100px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Seminar archive pagination */
.seminar-pagination {
  max-width: 1320px;
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
}
.seminar-pagination .sem-pg-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--black);
  font-family: 'Barlow', 'Noto Sans JP', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.seminar-pagination .sem-pg-btn:hover:not(:disabled) {
  border-color: var(--black);
}
.seminar-pagination .sem-pg-btn.active {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}
.seminar-pagination .sem-pg-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.sem-featured-cta {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.sem-featured-cta-link {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black);
  text-decoration: none;
  border-bottom: 2px solid var(--black);
  padding-bottom: 2px;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}
.sem-featured-cta-link:hover {
  opacity: 0.65;
}
.sem-featured-badge {
  display: inline-block;
  background: var(--tamabi-blue, #0057b8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}

/* ==================== LIGHTBOX ==================== */
.sem-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}
.sem-lightbox.active {
  display: flex;
}
.sem-lb-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  padding: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.sem-lb-close:hover { opacity: 1; }
.sem-lb-prev, .sem-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  padding: 16px 14px;
  border-radius: 50%;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
}
.sem-lb-prev:hover, .sem-lb-next:hover {
  opacity: 1;
  background: rgba(255,255,255,0.25);
}
.sem-lb-prev { left: 20px; }
.sem-lb-next { right: 20px; }
.sem-lb-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sem-lb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}
.sem-lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .sem-featured-text {
    padding: 20px 18px 28px;
  }
  .sem-featured-noimg .sem-featured-text {
    padding: 24px 20px 32px;
  }
  .sem-featured-title {
    font-size: 1.2rem;
  }
  .sem-featured-noimg .sem-featured-title {
    font-size: 1.4rem;
  }
  .sem-featured-hero {
    max-height: 300px;
  }
  .sem-featured-hero-img {
    max-height: 300px;
  }
  .sem-featured-thumbs {
    padding: 8px 12px;
    gap: 6px;
  }
  .sem-featured-thumb {
    width: 72px;
    height: 52px;
  }
  .sem-lb-prev, .sem-lb-next {
    font-size: 1.4rem;
    padding: 12px 10px;
  }
  .sem-lb-prev { left: 8px; }
  .sem-lb-next { right: 8px; }
  .seminar-feature-inner {
    padding: 24px 20px;
  }
  .seminar-feature-title {
    font-size: 1.2rem;
  }
  .seminar-table {
    font-size: 0.82rem;
  }
  .seminar-table th,
  .seminar-table td {
    padding: 8px 10px;
  }
  .seminar-history-heading {
    font-size: 1.3rem;
  }
  .seminar-detail-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }
  .seminar-detail-gallery img {
    max-height: 180px;
  }
  .seminar-detail-inner {
    padding: 14px 12px 20px;
    font-size: 0.84rem;
  }
}

/* ==================== SEMINAR DETAIL PAGE ==================== */
.sem-detail-crumb {
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 0 24px;
  font-size: 0.78rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.sem-detail-crumb a {
  color: var(--gray-500);
  text-decoration: none;
}
.sem-detail-crumb a:hover {
  color: var(--black);
}
.sem-detail-crumb-sep {
  margin: 0 8px;
  color: var(--gray-300);
}
.sem-detail-crumb-current {
  color: var(--black);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
}

.sem-detail-hero {
  max-width: 1100px;
  margin: 22px auto 0;
  padding: 0 24px;
}
.sem-detail-hero-inner {
  border-radius: 0;
  overflow: visible;
}
.sem-detail-hero-main {
  width: 100%;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}
.sem-detail-hero-main img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.sem-detail-hero-main img:hover {
  opacity: 0.92;
}
.sem-detail-hero-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.sem-detail-hero-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  cursor: pointer;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.sem-detail-hero-thumbs img:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .sem-detail-hero-thumbs {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

.sem-detail-title-block {
  max-width: 880px;
  margin: 64px auto 0;
  padding: 0 24px;
}
.sem-detail-chip {
  display: inline-block;
  background: var(--black, #111);
  color: #fff;
  font-family: 'Barlow', 'Noto Sans JP', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 7px 14px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.sem-detail-title {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 24px;
  color: var(--black);
  word-break: keep-all;
  text-transform: uppercase;
}
.sem-detail-meta {
  font-size: 0.92rem;
  color: var(--gray-600);
  padding: 18px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  line-height: 1.7;
  letter-spacing: 0.01em;
}
.sem-detail-meta-sep {
  margin: 0 10px;
  color: var(--gray-300);
}

.sem-detail-body {
  max-width: 880px;
  margin: 36px auto 0;
  padding: 0 24px;
}
.sem-detail-html {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--gray-800);
}
.sem-detail-html p {
  margin-bottom: 1.1em;
}
.sem-detail-html p:last-child {
  margin-bottom: 0;
}
.sem-detail-html h2,
.sem-detail-html h3 {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  margin: 2em 0 0.7em;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.sem-detail-html h2 {
  font-size: 2.1rem;
  font-weight: 800;
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--black);
}
.sem-detail-html h3 {
  font-size: 1.3rem;
  font-weight: 700;
}
.sem-detail-html .sem-artist {
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
}
.sem-detail-html .sem-artist:last-child {
  border-bottom: none;
}
.sem-detail-html .sem-artist .sem-artist-name {
  font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.2;
  color: var(--black);
  letter-spacing: -0.008em;
}
.sem-detail-html .sem-artist .sem-artist-bio {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.sem-detail-html .sem-artist .sem-artist-work {
  font-style: italic;
  margin-bottom: 2px;
  color: var(--gray-700);
}
.sem-detail-html .sem-artist .sem-artist-medium {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.sem-detail-html .sem-artist blockquote,
.sem-detail-html .sem-artist .sem-artist-quote {
  border-left: 3px solid var(--tamabi-blue, #0057b8);
  margin: 6px 0;
  padding: 4px 0 4px 16px;
  color: var(--gray-700);
  line-height: 1.85;
  font-size: 0.95rem;
}
.sem-detail-html .sem-artist .sem-artist-extended {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--gray-600);
}
.sem-detail-html .sem-info-card {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 20px 0 24px;
  border: 1px solid var(--gray-200);
}
.sem-detail-html .sem-info-card .sem-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.sem-detail-footer-nav {
  max-width: 880px;
  margin: 64px auto 0;
  padding: 32px 24px 0;
  border-top: 1px solid var(--gray-200);
  text-align: left;
}
.sem-detail-back {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black);
  text-decoration: none;
  border-bottom: 2px solid var(--black);
  padding-bottom: 2px;
  letter-spacing: 0.02em;
}
.sem-detail-back:hover {
  opacity: 0.7;
}

/* ── Rich-content tables (pasted from Google Docs etc.) ── */
.sem-detail-html table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.sem-detail-html table th,
.sem-detail-html table td {
  border: 1px solid var(--gray-300);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.sem-detail-html table th {
  background: var(--gray-100);
  font-weight: 700;
  color: var(--gray-800);
}
.sem-detail-html table thead th {
  background: var(--black);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sem-detail-html table tbody tr:nth-child(even) {
  background: var(--gray-50);
}
.sem-detail-html table tbody tr:hover {
  background: var(--gray-100);
}
.sem-detail-html table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-700);
}

@media (max-width: 700px) {
  .sem-detail-title { font-size: 1.4rem; }
  .sem-detail-hero-main { max-height: 320px; }
  .sem-detail-hero-main img { max-height: 320px; }
  .sem-detail-html .sem-artist .sem-artist-name { font-size: 1rem; }
  .sem-detail-html h2 { font-size: 1.15rem; }
  /* Responsive tables */
  .sem-detail-html table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sem-detail-html table th,
  .sem-detail-html table td {
    padding: 8px 10px;
    white-space: nowrap;
  }
}
