/* The Iron Archive — モックデザインの再現 (Vanilla CSS) */
html, body { margin: 0; padding: 0; background: #0d0d0f; }
body { font-family: 'IBM Plex Sans JP', sans-serif; color: #d8d4cc; }
a { color: #c46a3a; text-decoration: none; }
a:hover { color: #e08a55; }
::selection { background: #7a1e1e; color: #fff; }
input::placeholder { color: #6b665e; }
.mono { font-family: 'IBM Plex Mono', monospace; }
.page { min-height: 100vh; }

/* ===== Header ===== */
.site-header { border-bottom: 3px solid #7a1e1e; background: #111114; }
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 22px 24px 16px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.logo { display: block; }
.logo:hover { text-decoration: none; }
.logo-title {
  font-family: 'Oswald', sans-serif; font-size: 34px; font-weight: 700;
  letter-spacing: 3px; color: #e6e2d8; line-height: 1; text-transform: uppercase;
}
.logo-sub { font-size: 12px; letter-spacing: 2px; color: #8a857c; margin-top: 6px; }
.stats { display: flex; gap: 24px; align-items: baseline; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #8a857c; }
.stats span { color: #d8d4cc; font-weight: 500; }
.tabs { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; gap: 2px; }
.tab {
  padding: 10px 22px; cursor: pointer; font-family: 'Oswald', sans-serif; font-size: 14px;
  letter-spacing: 2px; text-transform: uppercase; background: #111114; color: #8a857c;
  border: 1px solid #2a2a30; border-bottom: none;
}
.tab small { font-family: 'IBM Plex Sans JP', sans-serif; font-size: 11px; letter-spacing: 0; }
.tab.active { background: #7a1e1e; color: #f0ece2; }
.tab:hover { color: #f0ece2; text-decoration: none; }

.main { max-width: 1180px; margin: 0 auto; padding: 24px 24px 80px; }

/* ===== Filters ===== */
.filters { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.filters input[type=text] {
  flex: 1; min-width: 240px; background: #16161a; border: 1px solid #2a2a30; color: #d8d4cc;
  padding: 10px 14px; font-size: 14px; font-family: 'IBM Plex Sans JP', sans-serif; outline: none;
}
.filters select, .filters button {
  background: #16161a; border: 1px solid #2a2a30; color: #d8d4cc;
  padding: 10px 12px; font-size: 13px; font-family: 'IBM Plex Sans JP', sans-serif;
}
.filters button { cursor: pointer; background: #7a1e1e; color: #f0ece2; letter-spacing: 1px; }
.result-count { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #8a857c; margin-bottom: 10px; }

/* ===== Band table ===== */
.band-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.band-table thead tr { border-bottom: 2px solid #7a1e1e; }
.band-table th {
  text-align: left; padding: 8px 12px; font-family: 'Oswald', sans-serif; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; color: #8a857c;
}
.band-table th.r, .band-table td.r { text-align: right; }
.band-table tbody tr { border-bottom: 1px solid #1e1e24; }
.band-table tbody tr:hover { background: #17171c; }
.band-table td { padding: 12px; color: #b5b0a6; }
.band-name { font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600; letter-spacing: 1px; color: #c46a3a; text-transform: uppercase; }
.band-name-ja { font-size: 12px; color: #8a857c; }
.dim { color: #8a857c; font-size: 12px; }
.status-badge { font-size: 11px; font-family: 'IBM Plex Mono', monospace; padding: 2px 8px; border: 1px solid; white-space: nowrap; }
.band-table td:nth-child(5) { white-space: nowrap; }

/* ===== Album grid ===== */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
.album-card { display: block; }
.album-card:hover { transform: translateY(-2px); text-decoration: none; }
.cover {
  aspect-ratio: 1; border: 1px solid #2a2a30; display: flex; flex-direction: column;
  justify-content: space-between; padding: 14px; box-sizing: border-box; overflow: hidden;
}
.cover-img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
  border: 1px solid #2a2a30; box-sizing: border-box; background: #16161a;
}
.cover-band { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.cover-title { font-family: 'Oswald', sans-serif; font-size: 19px; font-weight: 600; line-height: 1.15; letter-spacing: 1px; text-transform: uppercase; word-break: break-word; }
.album-meta { margin-top: 8px; }
.album-title { font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 500; color: #d8d4cc; letter-spacing: .5px; }
.album-sub { font-size: 12px; color: #8a857c; }

/* ===== Breadcrumb / headings ===== */
.breadcrumb { font-size: 12px; color: #8a857c; margin-bottom: 16px; }
.breadcrumb .sep { margin: 0 6px; }
.page-title-block { border-bottom: 3px solid #7a1e1e; padding-bottom: 16px; margin-bottom: 20px; }
.page-title {
  margin: 0; font-family: 'Oswald', sans-serif; font-size: 42px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: #e6e2d8; line-height: 1.05;
}
.page-title-ja { font-size: 15px; color: #8a857c; margin-top: 6px; }
.section-head {
  font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: #8a857c; margin-bottom: 10px; border-bottom: 1px solid #2a2a30; padding-bottom: 8px;
}

/* ===== Band detail ===== */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.info-card { background: #141418; border: 1px solid #2a2a30; padding: 18px 20px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 13px; }
.kv dt {
  color: #8a857c; font-family: 'Oswald', sans-serif; letter-spacing: 1px; text-transform: uppercase;
  font-size: 11px; padding-top: 2px; margin: 0;
}
.kv dd { color: #d8d4cc; margin: 0; }
.bio { margin: 0 0 10px; font-size: 14px; line-height: 1.9; color: #b5b0a6; max-width: 820px; white-space: pre-line; }
.bio-section { margin-bottom: 32px; }

/* ===== Album detail ===== */
.album-detail { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.album-detail .cover { padding: 20px; }
.album-detail .cover .cover-band { font-size: 12px; }
.album-detail .cover .cover-title { font-size: 30px; }
.album-facts {
  background: #141418; border: 1px solid #2a2a30; border-top: none; padding: 14px 16px;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 12px;
}
.album-facts .k { color: #8a857c; }
.album-facts .v { color: #d8d4cc; }
.track-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.track-table tr { border-bottom: 1px solid #1e1e24; }
.track-table tr:hover { background: #17171c; }
.track-table .no { padding: 9px 10px; width: 36px; font-family: 'IBM Plex Mono', monospace; color: #5f5a52; }
.track-table .t { padding: 9px 10px; color: #d8d4cc; }
.track-table .len { padding: 9px 10px; width: 60px; text-align: right; font-family: 'IBM Plex Mono', monospace; color: #8a857c; }
.disc-head { padding: 14px 10px 4px; font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #8a857c; }

/* ===== Pagination ===== */
.pagination { display: flex; gap: 6px; margin-top: 24px; flex-wrap: wrap; font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.pagination a, .pagination span {
  padding: 6px 11px; border: 1px solid #2a2a30; color: #8a857c;
}
.pagination a:hover { color: #e08a55; border-color: #7a1e1e; text-decoration: none; }
.pagination .current { background: #7a1e1e; color: #f0ece2; }

.site-footer {
  border-top: 1px solid #2a2a30; padding: 20px 24px; text-align: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #5f5a52;
}

@media (max-width: 760px) {
  .info-grid, .album-detail { grid-template-columns: 1fr; }
  .band-table .hide-sp { display: none; }
  .page-title { font-size: 30px; }
}

/* ===== About Page ===== */
.about-section { margin-bottom: 40px; }
.about-text { font-size: 15px; line-height: 1.8; color: #b5b0a6; margin-bottom: 16px; }

.disclaimer-card {
  background: #141113;
  border: 1px solid #7a1e1e;
  border-left: 4px solid #c43838;
  padding: 20px 24px;
  margin: 24px 0 32px;
}
.disclaimer-title {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #e08a55;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.disclaimer-lead {
  font-size: 15px;
  font-weight: 500;
  color: #f0ece2;
  margin-bottom: 14px;
  line-height: 1.6;
  padding-bottom: 10px;
  border-bottom: 1px dashed #3a2224;
}
.disclaimer-list {
  margin: 0;
  padding-left: 20px;
  color: #9c978f;
  font-size: 13px;
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-box {
  background: #141418;
  border: 1px solid #2a2a30;
  padding: 16px;
  text-align: center;
}
.stat-box .num {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #e08a55;
  line-height: 1.2;
}
.stat-box .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #8a857c;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ===== Puzzle & Security Clearance ===== */
.puzzle-card {
  background: #121215;
  border: 1px solid #2a2a30;
  padding: 24px;
  position: relative;
}
.puzzle-header {
  border-bottom: 1px solid #2a2a30;
  padding-bottom: 14px;
  margin-bottom: 20px;
}
.puzzle-title {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  color: #e6e2d8;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.puzzle-desc {
  font-size: 13px;
  color: #8a857c;
  margin-top: 6px;
  line-height: 1.5;
}

.puzzle-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.puzzle-mode-btn {
  background: #16161a;
  border: 1px solid #2a2a30;
  color: #8a857c;
  padding: 7px 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
}
.puzzle-mode-btn:hover {
  border-color: #7a1e1e;
  color: #d8d4cc;
}
.puzzle-mode-btn.active {
  background: #7a1e1e;
  border-color: #7a1e1e;
  color: #f0ece2;
}

.puzzle-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 20px;
}

/* Lights Out Grid */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  grid-template-rows: repeat(3, 72px);
  gap: 8px;
  background: #0d0d10;
  padding: 14px;
  border: 1px solid #2a2a30;
}
.matrix-cell {
  background: #1a1a20;
  border: 1px solid #33333d;
  color: #555;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: background .2s, box-shadow .2s, color .2s;
}
.matrix-cell.on {
  background: #c46a3a;
  border-color: #e08a55;
  color: #fff;
  box-shadow: 0 0 12px rgba(196, 106, 58, 0.4);
}
.matrix-cell:hover {
  filter: brightness(1.15);
}

/* Sliding Puzzle Grid */
.slide-grid {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  grid-template-rows: repeat(3, 72px);
  gap: 6px;
  background: #0d0d10;
  padding: 14px;
  border: 1px solid #2a2a30;
}
.slide-tile {
  background: #1e1e26;
  border: 1px solid #3a3a46;
  color: #e6e2d8;
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: transform .15s, background .15s;
}
.slide-tile:hover {
  background: #2a2a36;
  border-color: #c46a3a;
}
.slide-tile.empty {
  background: transparent;
  border: 1px dashed #202026;
  cursor: default;
}

/* Quiz UI */
.quiz-box {
  width: 100%;
  max-width: 480px;
  background: #16161c;
  border: 1px solid #2a2a30;
  padding: 18px 20px;
}
.quiz-q {
  font-size: 14px;
  color: #e6e2d8;
  margin-bottom: 14px;
  line-height: 1.5;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quiz-btn {
  background: #1e1e24;
  border: 1px solid #2a2a30;
  color: #b5b0a6;
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.quiz-btn:hover {
  background: #2a2a34;
  color: #fff;
  border-color: #c46a3a;
}

.puzzle-ctrls {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #8a857c;
}
.puzzle-ctrls button {
  background: #1a1a20;
  border: 1px solid #2a2a30;
  color: #d8d4cc;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
}
.puzzle-ctrls button:hover {
  border-color: #7a1e1e;
}

/* Clearance / Unlocked Card */
.clearance-card {
  background: #111a14;
  border: 1px solid #225a33;
  border-left: 4px solid #2ecc71;
  padding: 22px 26px;
  margin-top: 20px;
  animation: fadeIn .4s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.clearance-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  color: #2ecc71;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.clearance-status::before {
  content: "●";
  color: #2ecc71;
}
.clearance-title {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  color: #f0ece2;
  margin-bottom: 12px;
}
.email-display-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0d140f;
  border: 1px solid #1c3b24;
  padding: 12px 18px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.email-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  color: #2ecc71;
  font-weight: 500;
  letter-spacing: 1px;
}
.copy-btn, .mail-link-btn {
  background: #1c3b24;
  border: 1px solid #2ecc71;
  color: #f0ece2;
  padding: 7px 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}
.copy-btn:hover, .mail-link-btn:hover {
  background: #2ecc71;
  color: #0d140f;
  text-decoration: none;
}

