/* ==========================================================================
   NUMA (一般社団法人日本歌ってみたMIX師協会) — サイト共通スタイル
   ========================================================================== */

:root {
  --color-primary: #4b4fd6;
  --color-primary-dark: #3638a8;
  --color-navy: #121260;
  --color-navy-deep: #0b0b3d;
  --color-text: #222226;
  --color-muted: #6a6a76;
  --color-border: #e4e4f0;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f6fc;
  --max-width: 1120px;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(30, 30, 90, 0.08);
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { padding-left: 1.2em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 34px; width: auto; }

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.main-nav a {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-primary);
  background: var(--color-bg-alt);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  margin: 5px 0;
  transition: 0.2s;
}

.cta-mini {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 999px;
  font-weight: 700 !important;
}
.cta-mini:hover { background: var(--color-primary-dark); }

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 40px;
    overflow-y: auto;
    display: none;
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 10px; border-bottom: 1px solid var(--color-border); border-radius: 0; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}
.hero .logo-mark { width: 220px; margin: 0 auto 20px; }
.hero h1 {
  font-size: clamp(22px, 3.4vw, 32px);
  color: var(--color-primary);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}
.hero .catch {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  margin: 28px 0 18px;
}
.hero p.lead {
  max-width: 720px;
  margin: 0 auto;
  color: var(--color-muted);
}

.page-hero {
  background: linear-gradient(135deg, var(--color-bg-alt), #eeeefb);
  padding: 56px 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 {
  font-size: clamp(24px, 3.6vw, 34px);
  color: var(--color-navy);
  margin: 0 0 12px;
}
.page-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--color-muted);
}
.breadcrumb {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--color-muted); }

/* ---------- Section ---------- */
section.block { padding: 60px 0; }
section.block.alt { background: var(--color-bg-alt); }
.block h2 {
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--color-navy);
  text-align: center;
  margin: 0 0 8px;
}
.block .subhead {
  text-align: center;
  color: var(--color-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.card h3 {
  color: var(--color-primary);
  margin: 0 0 10px;
  font-size: 18px;
}
.card p { color: var(--color-muted); font-size: 14.5px; margin: 0 0 14px; }
.card .more { font-weight: 700; font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
}
.btn:hover { background: var(--color-primary-dark); text-decoration: none; }
.btn.outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 12px 30px;
}
.btn.outline:hover { background: var(--color-primary); color: #fff; }
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Sponsors ---------- */
.sponsor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: center;
}
.sponsor-row img {
  height: 100px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0%);
}
@media (max-width: 560px) {
  .sponsor-row img { height: 72px; }
}

/* ---------- Subtle blurred photo backgrounds ---------- */
.section-photo-bg {
  position: relative;
  overflow: hidden;
}
.section-photo-bg .section-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(0.6);
  transform: scale(1.1);
  opacity: 0.28;
  z-index: 0;
}
.section-photo-bg > .container {
  position: relative;
  z-index: 1;
}

/* ---------- Board members ---------- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .board-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
.board-card { text-align: center; }
.board-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 3px solid var(--color-bg-alt);
}
.board-card .role { color: var(--color-primary); font-weight: 700; font-size: 13px; }
.board-card .name { font-weight: 700; margin: 4px 0; }
.board-card .org { color: var(--color-muted); font-size: 12.5px; }

/* Featured layout: for a small number of people (e.g. 2 directors), shown larger and centered */
.board-grid-featured {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 56px;
}
.board-grid-featured .board-card { width: 200px; }
.board-grid-featured .board-card img {
  width: 168px;
  height: 168px;
  border: 4px solid var(--color-bg-alt);
}
.board-grid-featured .name { font-size: 16px; }

/* ---------- Member grid ---------- */
.member-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.member-toolbar input {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .member-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .member-grid { grid-template-columns: repeat(2, 1fr); } }
.member-card {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.member-card:hover { text-decoration: none; }
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.member-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.member-card .label {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
}
.member-card .label .type { display: block; color: var(--color-muted); font-weight: 400; font-size: 11.5px; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--color-text);
}
.pagination a:hover { background: var(--color-bg-alt); text-decoration: none; }
.pagination .current { background: var(--color-primary); color: #fff; font-weight: 700; }

/* ---------- Content blocks (text-heavy pages) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 {
  color: var(--color-navy);
  font-size: 21px;
  margin: 44px 0 14px;
  text-align: left;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-bg-alt);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--color-primary); font-size: 17px; margin: 26px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }

/* ---------- Definition table ---------- */
.def-table { width: 100%; border-collapse: collapse; margin: 20px 0 32px; }
.def-table tr { border-bottom: 1px solid var(--color-border); }
.def-table th {
  text-align: left;
  padding: 12px 16px 12px 0;
  width: 220px;
  color: var(--color-muted);
  font-weight: 600;
  vertical-align: top;
}
.def-table td { padding: 12px 0; vertical-align: top; }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: #fff;
  border: none;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  color: var(--color-text);
}
.faq-q::after {
  content: "+";
  font-size: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  background: var(--color-bg-alt);
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 4px 20px 20px; color: var(--color-muted); font-size: 14.5px; }

/* ---------- News list ---------- */
.news-list { max-width: 820px; margin: 0 auto; }
.news-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}
.news-item .news-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}
.news-item time {
  flex-shrink: 0;
  width: 110px;
  color: var(--color-muted);
  font-size: 13px;
  padding-top: 3px;
}
.news-item h3 { margin: 0 0 8px; font-size: 16px; }
.news-item p { margin: 0; color: var(--color-muted); font-size: 14px; }

/* ---------- Notice banner ---------- */
.notice-banner {
  background: #fff5f5;
  border: 1px solid #f3caca;
  color: #a33;
  padding: 16px 20px;
  border-radius: 12px;
  max-width: 820px;
  margin: 0 auto 32px;
  font-size: 14px;
}

/* ---------- Profile page (member detail) ---------- */
.profile-head {
  display: flex;
  gap: 28px;
  align-items: center;
  max-width: 820px;
  margin: 0 auto 40px;
  flex-wrap: wrap;
}
.profile-head img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-bg-alt);
}
.profile-head .tags span {
  display: inline-block;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin: 4px 6px 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-deep);
  color: #d8d8f2;
  padding: 56px 0 28px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 14px;
  letter-spacing: 0.05em;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #b9b9e4; font-size: 13.5px; }
.footer-grid a:hover { color: #fff; }
.site-footer .brand-line { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.site-footer .brand-line img { height: 28px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 12.5px;
  color: #9494c8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #9494c8; }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 13px; color: var(--color-muted); }
.badge-img { max-width: 260px; margin: 12px 0; }
