/* ══════════════════════════════
   COMMON.CSS — Hy-Fi Lights
   ══════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  background: #0f0f0f;
  color: #cccccc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: #050505;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
}

.header-logo {
  font-size: 13px;
  letter-spacing: 3px;
  color: #555;
  text-decoration: none;
  transition: color .2s;
}
.header-logo:hover { color: #aaa; }
.header-logo span { color: #888; }

.header-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

#searchInput {
  padding: 6px 12px;
  width: 220px;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #eee;
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
  border-radius: 2px;
}
#searchInput:focus { border-color: #666; }
#searchInput::placeholder { color: #555; }

#searchBtn {
  padding: 6px 14px;
  background: #333;
  border: 1px solid #444;
  color: #aaa;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, color .2s;
  border-radius: 2px;
}
#searchBtn:hover { background: #444; color: #fff; }

/* ── MAIN ── */
main {
  flex: 1;
  padding-top: 52px;
}

/* ── FOOTER ── */
footer {
  background: #050505;
  border-top: 1px solid #222;
  padding: 18px 24px;
  font-size: .82rem;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  line-height: 1.7;
}
footer .page-num {
  color: #444;
  font-family: 'Courier New', monospace;
  font-size: .82rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── SEARCH OVERLAY ── */
#searchOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  z-index: 9000;
}
#searchOverlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
#searchBox {
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 6px;
  width: 90%;
  max-width: 540px;
  padding: 24px;
  color: #eee;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}
#searchBox h2 { font-size: .95rem; color: #888; letter-spacing: .05em; margin-bottom: 18px; }
#closeOverlay {
  position: absolute;
  top: 14px; right: 14px;
  background: #333;
  border: none;
  color: #aaa;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 3px;
  transition: .2s;
  font-size: .85rem;
}
#closeOverlay:hover { background: #555; color: #fff; }
#resultsContent { font-size: .93rem; }

.result-item {
  background: #222;
  border: 1px solid #333;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 4px;
}
.result-item .r-title { font-weight: bold; color: #fff; margin-bottom: 6px; font-size: .95rem; }
.result-item .r-desc  { font-size: .83rem; color: #888; margin-bottom: 10px; line-height: 1.6; }
.result-goto {
  background: #333;
  border: 1px solid #555;
  color: #ccc;
  padding: 6px 14px;
  font-size: .82rem;
  cursor: pointer;
  border-radius: 3px;
  transition: .2s;
  text-decoration: none;
  display: inline-block;
}
.result-goto:hover { background: #555; color: #fff; }

/* ── INNER CONTAINER ── */
.inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 52px 24px 40px;
}

/* ── CARD ── */
.card {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 40px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  margin-bottom: 24px;
}

/* ── HEADINGS ── */
.page-h1 {
  font-size: 1.6rem;
  color: #fff;
  padding-bottom: 12px;
  margin-bottom: 28px;
  text-align: center;
}
.page-h2 {
  font-size: 1.15rem;
  color: #eee;
  margin-top: 32px;
  margin-bottom: 14px;
  padding-left: 12px;
}
.page-h3 {
  font-size: 1rem;
  color: #ddd;
  margin-top: 22px;
  margin-bottom: 10px;
  font-weight: bold;
}
.card p {
  margin-bottom: 1.4em;
  line-height: 1.85;
  text-align: justify;
}

/* ── EDITOR NOTE ── */
.editor-note {
  margin-top: 40px;
  padding: 18px 20px;
  background: #252525;
  border-left: 4px solid #555;
  font-style: italic;
  color: #bbb;
  font-size: .93rem;
  line-height: 1.8;
}
.editor-note .note-title {
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
  color: #ddd;
  font-style: normal;
}

/* ── PROFILE IMAGE ── */
.profile-img {
  width: 100%;
  max-width: 380px;
  display: block;
  margin: 0 auto 28px;
  border: 1px solid #333;
  border-radius: 4px;
}

/* ── PROFILE LIST ── */
.profile-list {
  list-style: none;
  background: #222;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.profile-list li {
  padding: 6px 0;
  border-bottom: 1px solid #2e2e2e;
  font-size: .92rem;
}
.profile-list li:nth-last-child(-n+2) { border-bottom: none; }
.profile-list .label { font-weight: bold; color: #eee; margin-right: 8px; }

/* ── MEMBER LIST ── */
.member-list {
  list-style: none;
  background: #222;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.member-list li {
  padding: 7px 0;
  border-bottom: 1px solid #2e2e2e;
  font-size: .93rem;
}
.member-list li:last-child { border-bottom: none; }
.member-list .mname { font-weight: bold; color: #fff; margin-right: 10px; }
.member-list .mread  { font-size: .82rem; color: #888; }

/* ── TIMELINE ── */
.timeline { list-style: none; margin: 20px 0; }
.timeline-item {
  padding: 0 0 20px 20px;
  border-left: 1px solid #444;
  position: relative;
  font-size: .93rem;
  line-height: 1.8;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px; top: 8px;
  width: 9px; height: 9px;
  background: #666;
  border-radius: 50%;
}
.timeline-item .year { font-weight: bold; color: #fff; display: block; margin-bottom: 4px; }

/* ── MEMBER NAV ── */
.member-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  background: #111;
  border-bottom: 1px solid #2a2a2a;
  padding: 10px 24px;
  position: sticky;
  top: 52px;
  z-index: 99;
}
.member-nav a {
  background: none;
  border: 1px solid #333;
  color: #888;
  font-size: .8rem;
  padding: 5px 12px;
  cursor: pointer;
  border-radius: 2px;
  transition: .2s;
  text-decoration: none;
}
.member-nav a:hover,
.member-nav a.active {
  background: #2a2a2a;
  color: #eee;
  border-color: #555;
}

/* ── ACCENT COLORS ── */
.accent-white  { border-bottom: 2px solid #fff; }
.accent-red    { border-bottom: 2px solid #e60000; }
.accent-blue   { border-bottom: 2px solid #1e90ff; }
.accent-green  { border-bottom: 2px solid #32cd32; }
.accent-purple { border-bottom: 2px solid #9370db; }
.accent-gold   { border-bottom: 2px solid #d4af37; }
.accent-gray   { border-bottom: 2px solid #666; }
.accent-darkred{ border-bottom: 2px solid #8b0000; }
.accent-pink   { border-bottom: 2px solid #ff69b4; }

.bar-white  { border-left: 4px solid #fff; }
.bar-red    { border-left: 4px solid #e60000; }
.bar-blue   { border-left: 4px solid #1e90ff; }
.bar-green  { border-left: 4px solid #32cd32; }
.bar-purple { border-left: 4px solid #9370db; }
.bar-gold   { border-left: 4px solid #d4af37; }
.bar-gray   { border-left: 4px solid #666; }
.bar-darkred{ border-left: 4px solid #8b0000; }
.bar-pink   { border-left: 4px solid #ff69b4; }

/* ── HERO GROUP IMAGE ── */
.hero-group-img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 28px;
}
