:root {
  /* =========================
     BASE / VIRTUAL MONITOR
  ========================= */
  --bg: #dff4ff;
  --bg-2: #ccecff;
  --bg-3: #b4e3ff;

  --screen: rgba(104, 184, 230, 0.92);
  --screen-strong: rgba(82, 166, 216, 0.96);
  --screen-soft: rgba(129, 202, 240, 0.88);

  --screen-line: rgba(255, 255, 255, 0.34);
  --screen-line-strong: rgba(255, 255, 255, 0.52);
  --screen-glow: rgba(120, 220, 255, 0.22);

  /* =========================
     PAPER / ARCHAEOLOGY
  ========================= */
  --paper: #eadcc0;
  --paper-2: #dcc8a4;
  --paper-3: #b89b6d;
  --paper-4: #8d6a3e;

  --ink: #2d2217;
  --ink-soft: #4d3d2b;
  --ink-muted: #6a543d;
  --paper-line: rgba(72, 50, 28, 0.14);

  /* =========================
     TEXT / ACCENT
  ========================= */
  --text: #ffffff;
  --text-strong: #ffffff;
  --text-soft: #f3fbff;
  --muted: #ebf8ff;
  --muted-2: #d7eef9;

  --accent: #e9fbff;
  --accent-2: #ffffff;
  --accent-deep: #167db8;

  --success: #dbfff2;
  --warning: #fff0c8;
  --danger: #ffd5df;

  /* =========================
     SHADOW / RADIUS / LAYOUT
  ========================= */
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.1);

  --shadow: 0 22px 60px rgba(16, 63, 95, 0.18);
  --shadow-soft: 0 12px 30px rgba(16, 63, 95, 0.12);
  --shadow-card: 0 16px 40px rgba(16, 63, 95, 0.16);

  --radius: 24px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --max: 1220px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: #52a9d9 #d8f0fb;
}

body {
  margin: 0;
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    "YuGothic",
    "Meiryo",
    "Noto Sans JP",
    sans-serif;
  line-height: 1.8;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.5), transparent 22%),
    radial-gradient(circle at 86% 8%, rgba(180, 244, 255, 0.42), transparent 22%),
    linear-gradient(180deg, #e9f9ff 0%, #d7f1ff 42%, #caebff 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.3) 0px,
      rgba(255, 255, 255, 0.3) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(120, 199, 235, 0.08), transparent 14%, transparent 86%, rgba(120, 199, 235, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 14%, transparent 86%, rgba(100, 180, 220, 0.08));
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* =========================
   HEADER
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  backdrop-filter: blur(14px);
  background:
    linear-gradient(180deg, rgba(86, 169, 216, 0.86), rgba(102, 186, 228, 0.8));
  border-bottom: 1px solid var(--screen-line-strong);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 8px 24px rgba(38, 110, 148, 0.12);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  opacity: 0.7;
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.brand {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand strong {
  font-size: clamp(15px, 2.2vw, 20px);
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(31, 96, 132, 0.16);
}

.brand-kicker,
.eyebrow {
  margin: 0;
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transition: 0.25s ease;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  outline: none;
}

nav.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  padding: 10px 16px;
  margin: 16px 0;

  font-size: 13px;
  letter-spacing: 0.02em;

  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(37, 20, 64, 0.08);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);

  color: rgba(37, 20, 64, 0.8);
}

/* 区切り記号 */
nav.breadcrumb span.separator {
  opacity: 0.4;
  font-size: 12px;
}

/* リンク */
nav.breadcrumb a {
  position: relative;
  padding: 4px 8px;
  border-radius: 8px;

  color: rgba(37, 20, 64, 0.85);
  text-decoration: none;

  transition: all 0.25s ease;
}

/* ホバー */
nav.breadcrumb a:hover {
  background: rgba(37, 20, 64, 0.08);
  color: rgba(37, 20, 64, 1);

  transform: translateY(-1px);
}

/* 現在地 */
nav.breadcrumb .current {
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    rgba(140, 120, 255, 0.18),
    rgba(120, 200, 255, 0.18)
  );

  color:rgba(82, 166, 216, 0.96);
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  padding: 74px 0 44px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.24), transparent 24%),
    radial-gradient(circle at 24% 20%, rgba(194, 242, 255, 0.26), transparent 20%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  min-width: 0;
}

.hero-copy {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(115, 197, 238, 0.96), rgba(89, 176, 222, 0.94));
  border: 1px solid var(--screen-line-strong);
  box-shadow:
    var(--shadow-card),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.hero-copy h1 {
  margin: 10px 0 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(27, 101, 139, 0.18);
}

.hero-en {
  margin: 14px 0 0;
  color: #ffffff;
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: 0.06em;
  font-weight: 800;
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 66ch;
  color: #f7fdff;
  line-height: 1.95;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-panel,
.panel-card,
.card {
  border-radius: var(--radius);
}

.hero-panel {
  position: relative;
  padding: 1px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(206, 246, 255, 0.2), rgba(255, 255, 255, 0.28));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 18px 44px rgba(32, 112, 156, 0.12);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

.panel-card {
  height: 100%;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(121, 201, 239, 0.98), rgba(97, 181, 224, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
}

.panel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), transparent 26%, transparent 74%, rgba(255,255,255,0.06));
}

.panel-kicker,
.member-role,
.content-type {
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.panel-card h2 {
  margin: 8px 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  color: #ffffff;
}

.panel-card p {
  margin: 0;
  color: #f8fdff;
  line-height: 1.85;
}

.hero-points {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #f8fdff;
  line-height: 1.85;
}

/* =========================
   BUTTON
========================= */
.button,
.button.small,
.modal-open-button,
.text-link {
  appearance: none;
  font: inherit;
}

.button,
.button.small,
.modal-open-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(47, 126, 169, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
}

.button:hover,
.button.small:hover,
.modal-open-button:hover,
.button:focus-visible,
.button.small:focus-visible,
.modal-open-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 24px rgba(47, 126, 169, 0.18);
}

.button.primary,
.modal-open-button {
  color: #ffffff;
  border: none;
  background: linear-gradient(180deg, #8d6238, #d4af73);
  box-shadow:
    0 12px 24px rgba(42, 149, 201, 0.14),
    0 0 18px rgba(255, 255, 255, 0.16);
}

.button.small {
  min-height: 42px;
  padding: 0 15px;
  font-size: 0.94rem;
}

/* =========================
   SECTION
========================= */
.section {
  position: relative;
  padding: 42px 0 58px;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.18));
  border-top: 1px solid rgba(255,255,255,0.28);
  border-bottom: 1px solid rgba(255,255,255,0.28);
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.16;
  color: #11648f;
}

.section-head p {
  margin: 0;
  color:  rgba(16, 63, 95, 1.0);
  line-height: 1.85;
  max-width: 72ch;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

/* =========================
   CARD BASE
========================= */
.card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(120, 200, 239, 0.97), rgba(98, 181, 224, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), transparent 20%, transparent 82%, rgba(255,255,255,0.06));
}

.card h3 {
  margin: 10px 0;
  font-size: 22px;
  line-height: 1.3;
  color: #ffffff;
}

.card p {
  color: #f8fdff;
  line-height: 1.85;
}

.muted {
  color: #f0faff;
}

.overview-title {
  font-size: 28px;
  line-height: 1.2;
  color: #ffffff;
}

/* =========================
   GRID
========================= */
.about-grid,
.member-grid,
.content-grid {
  display: grid;
  gap: 18px;
}

.about-grid {
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
}

.member-grid,
.content-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-main {
  grid-column: span 1;
}

.about-main,
.member-card,
.content-card {
  padding: 24px;
}

.tag-list,
.step-list {
  color: #f8fdff;
  line-height: 1.85;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-left: 0;
  list-style: none;
}

.tag-list li,
.tag-list span,
.pill,
.stats-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.32);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  font-size: 12px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 120, 164, 0.08);
  font-weight: 700;
}

.tag-list.compact {
  gap: 8px;
  margin-top: 16px;
}

.tag-list.compact span {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.84rem;
}

.step-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

/* =========================
   TOOLBAR
========================= */
.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(2, minmax(170px, 220px));
  gap: 12px;
  width: 100%;
  max-width: 760px;
}

.toolbar input,
.toolbar select {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.4);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.12));
  color: rgba(37, 20, 64, 1.0);
  padding: 0 16px;
  outline: none;
  box-shadow:
    0 6px 16px rgba(37, 120, 164, 0.08),
    0 0 0 1px rgba(255,255,255,0.06) inset;
}

.toolbar input::placeholder {
  color: rgba(37, 20, 64, 1.0);
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: rgba(255,255,255,0.72);
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.16),
    0 10px 20px rgba(37, 120, 164, 0.12);
}

/* =========================
   STATS
========================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 18px 18px 16px;
}

.stat-card h3 {
  margin: 8px 0 4px;
  font-size: 1.8rem;
  line-height: 1.1;
  color: #ffffff;
}

.stat-card p:last-child {
  margin: 0;
  color: #f2fbff;
}

/* =========================
   THEME CARD / ARCHAEOLOGY
========================= */
.theme-card,
.timeline-item,
.content-card.archaeology,
.theme-modal-paper {
  background:
    radial-gradient(circle at top left, rgba(255, 243, 214, 0.42), rgba(255, 243, 214, 0) 38%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--ink);
  border: 1px solid rgba(79, 54, 31, 0.22);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.34),
    inset 0 -1px 0 rgba(68, 49, 30, 0.08);
  position: relative;
  overflow: hidden;
}

.theme-card::after,
.timeline-item::after,
.content-card.archaeology::after,
.theme-modal-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(74, 55, 34, 0.03) 0,
      rgba(74, 55, 34, 0.03) 1px,
      transparent 1px,
      transparent 24px
    ),
    radial-gradient(circle at 20% 18%, rgba(116, 73, 33, 0.055), transparent 22%),
    radial-gradient(circle at 82% 74%, rgba(116, 73, 33, 0.05), transparent 20%);
  opacity: 0.64;
}

.theme-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 22px;
}

.theme-card h3,
.timeline-item h3,
.content-card.archaeology h3,
.theme-modal-paper h3,
.theme-modal-paper h4 {
  color: #2f2216;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  letter-spacing: 0.01em;
}

.theme-card p,
.timeline-item p,
.content-card.archaeology p,
.theme-card li,
.timeline-item li,
.content-card.archaeology li,
.theme-modal-paper p,
.theme-modal-paper li {
  color: var(--ink-soft);
}

.theme-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.pill {
  color: var(--accent-2);
}

.theme-card .pill,
.timeline-item .pill,
.content-card.archaeology .pill,
.theme-modal-paper .pill {
  color: #4a3522;
  background: rgba(93, 66, 39, 0.06);
  border-color: rgba(83, 58, 30, 0.14);
}

.probability {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(125, 74, 29, 0.08);
  color: #7d4a1d;
  font-size: 0.92rem;
  font-weight: 900;
  border: 1px solid rgba(95, 64, 33, 0.14);
  text-shadow: none;
}

.meter,
.theme-modal-meter {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
}

.theme-card .meter,
.theme-modal-paper .theme-modal-meter {
  background: rgba(84, 59, 33, 0.1);
  border: 1px solid rgba(84, 59, 33, 0.1);
}

.theme-card .meter span,
.theme-modal-paper .theme-modal-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7b5631 0%, #b27b42 48%, #d9b16e 100%);
}

details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.theme-card details {
  border-top: 1px solid rgba(82, 59, 33, 0.16);
}

summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "＋";
  margin-left: 10px;
  color: var(--accent-2);
}

details[open] summary::after {
  content: "－";
}

.theme-card summary,
.theme-modal-paper summary {
  color: #5b4027;
}

.theme-card summary::after,
.theme-modal-paper summary::after {
  color: #7d5a33;
}

.details-body {
  margin-top: 10px;
  padding: 16px 16px 14px;
  border-radius: 16px;
}

.theme-card .details-body,
.theme-modal-paper .details-body {
  background:
    linear-gradient(180deg, rgba(104, 74, 41, 0.045), rgba(104, 74, 41, 0.025));
  border: 1px solid rgba(84, 59, 33, 0.14);
}

.details-body h4 {
  margin: 16px 0 8px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.theme-card .details-body h4,
.theme-modal-paper .details-body h4 {
  color: #6f4a22;
}

.details-body h4:first-child {
  margin-top: 0;
}

.details-body ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.85;
}

.theme-card .tag-list.compact span,
.theme-modal-paper .tag-list.compact span {
  color: #4a3522;
  background: rgba(93, 66, 39, 0.06);
  border-color: rgba(83, 58, 30, 0.14);
}

.theme-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
  padding-top: 6px;
}

/* =========================
   TIMELINE
========================= */
.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
  padding: 20px 22px 20px 28px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8d6238, #d4af73);
}

.timeline-date {
  margin-bottom: 6px;
  color: #6d4b2a;
  font-weight: 800;
  font-size: 0.92rem;
}

.timeline-item h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

/* =========================
   CONTENT CARD
========================= */
.content-card .text-link {
  display: inline-flex;
  margin-top: 12px;
  color: #ffffff;
  font-weight: 800;
}

.content-card .text-link:hover,
.content-card .text-link:focus-visible {
  color: #f0fdff;
  outline: none;
}

.content-card.archaeology .text-link {
  color: #5b4027;
}

.content-card.archaeology .text-link:hover,
.content-card.archaeology .text-link:focus-visible {
  color: #7d4a1d;
}

/* =========================
   MEMBER / ABOUT / NORMAL CONTENT
========================= */
.about-main,
.about-grid > .card:not(.theme-card):not(.timeline-item):not(.content-card.archaeology),
.member-card,
.panel-card,
.content-card:not(.archaeology) {
  background:
    linear-gradient(180deg, rgba(122, 203, 240, 0.98), rgba(96, 181, 224, 0.97));
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.26);
}

.about-main h3,
.about-grid > .card:not(.theme-card):not(.timeline-item):not(.content-card.archaeology) h3,
.member-card h3,
.panel-card h2,
.panel-card h3,
.content-card:not(.archaeology) h3 {
  color: #ffffff;
  font-family: inherit;
}

.about-main p,
.about-grid > .card:not(.theme-card):not(.timeline-item):not(.content-card.archaeology) p,
.member-card p,
.about-main li,
.about-grid > .card:not(.theme-card):not(.timeline-item):not(.content-card.archaeology) li,
.member-card li,
.content-card:not(.archaeology) p,
.content-card:not(.archaeology) li {
  color: #f8fdff;
}

.member-card .tag-list.compact span,
.content-card:not(.archaeology) .tag-list.compact span {
  color: #ffffff;
  border-color: rgba(255,255,255,0.26);
  background: rgba(255, 255, 255, 0.12);
}

.member-card {
  min-height: 100%;
}

/* =========================
   IMAGE / ILLUSTRATION
========================= */
.section-hero,
.theme-modal-image-wrap,
.figure-frame,
.card-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.section-hero,
.figure-frame,
.card-image-wrap {
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-soft);
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(235, 245, 251, 0.94));
}

.section-hero img,
.figure-frame img,
.card-image-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.theme-modal-image-wrap {
  width: 100%;
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(236, 245, 251, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 12px 24px rgba(15, 23, 42, 0.08);
  min-height: 220px;
  padding: 10px;
}

.theme-modal-image-wrap.is-hidden {
  display: none;
}

.theme-modal-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
}

.theme-modal-image-caption {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.7;
}

/* =========================
   MODAL
========================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.18), transparent 26%),
    rgba(76, 145, 184, 0.34);
  backdrop-filter: blur(8px);
}

.modal-overlay.is-open {
  display: flex;
}

.theme-modal {
  width: min(1100px, 100%);
  max-height: min(90vh, 980px);
  overflow: auto;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(32, 112, 156, 0.16);
  position: relative;
  border: 1px solid rgba(255,255,255,0.24);
  background:
    linear-gradient(180deg, rgba(123, 203, 240, 0.99), rgba(95, 180, 224, 0.99));
}

.theme-modal-close {
  position: sticky;
  top: 16px;
  margin-left: auto;
  margin-right: 16px;
  margin-top: 16px;
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.96);
  color: #2578a3;
  font-size: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.theme-modal-inner {
  padding: 8px 28px 30px;
}

.theme-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.theme-modal-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-modal-main {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(128, 207, 242, 0.98), rgba(99, 183, 225, 0.98));
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 24px;
  padding: 22px;
  box-shadow:
    0 12px 28px rgba(32, 112, 156, 0.12),
    0 0 0 1px rgba(255,255,255,0.08) inset;
}

.theme-modal-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.theme-modal-title {
  font-size: clamp(1.85rem, 2.6vw, 2.7rem);
  line-height: 1.18;
  margin: 8px 0 10px;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: none;
}

.theme-modal-region {
  color: #f3fbff;
  margin: 0 0 16px;
  font-weight: 700;
}

.theme-modal-summary {
  font-size: 1.02rem;
  line-height: 1.95;
  margin: 0 0 18px;
  color: #f8fdff;
}

.theme-modal-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.theme-modal-empty {
  display: none;
}

.theme-modal-empty.is-visible {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.22);
}

.theme-modal-paper {
  margin-top: 18px;
  padding: 22px;
  border-radius: 24px;
}

.theme-modal-paper .theme-modal-meter {
  margin: 14px 0 20px;
}

.theme-modal-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(84, 59, 33, 0.16);
}

.theme-modal-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.theme-modal-section h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: #6c4823;
}

.theme-modal-section ul {
  margin: 0;
  padding-left: 1.2em;
}

.theme-modal-section li + li {
  margin-top: 6px;
}

/* =========================
   NO RESULTS / SR
========================= */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 38px 20px;
}

.no-results h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #ffffff;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.26);
  padding: 28px 0 50px;
  background:
    linear-gradient(180deg, rgba(99, 181, 224, 0.3), rgba(88, 168, 210, 0.44));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  font-size: 14px;
  flex-wrap: wrap;
}

/* =========================
   UTIL
========================= */
.hidden {
  display: none !important;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .hero-inner,
  .about-grid,
  .theme-grid,
  .member-grid,
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-main {
    grid-column: 1 / -1;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  .toolbar input {
    grid-column: 1 / -1;
  }

  .hero-panel {
    max-width: 760px;
  }
}

@media (max-width: 980px) {
  .theme-grid,
  .about-grid,
  .member-grid,
  .content-grid,
  .stats,
  .theme-modal-grid {
    grid-template-columns: 1fr;
  }

  .about-main {
    grid-column: auto;
  }

  .section-head-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .toolbar {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .theme-modal-inner {
    padding: 8px 18px 24px;
  }

  .modal-overlay {
    padding: 12px;
  }

  .section {
    padding: 32px 0 46px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    padding: 9px 12px;
  }
}

@media (max-width: 720px) {
  :root {
    --radius: 18px;
  }

  .header-inner {
    gap: 12px;
  }

  .nav {
    gap: 8px;
  }

  .nav a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    padding-top: 42px;
  }

  .card,
  .panel-card,
  .theme-card,
  .theme-modal-paper,
  .theme-modal-main {
    padding: 18px;
  }

  .hero-copy {
    padding: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(32px, 9vw, 48px);
  }

  .hero-en {
    font-size: 16px;
  }

  .container {
    width: min(calc(100% - 24px), var(--max));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 20px), var(--max));
  }

  .button,
  .button.small,
  .modal-open-button {
    width: 100%;
  }

  .theme-card-actions,
  .theme-modal-links {
    flex-direction: column;
  }

  .theme-modal-close {
    top: 10px;
    margin-right: 10px;
    margin-top: 10px;
  }

  .theme-modal-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .timeline-item {
    padding: 18px 18px 18px 24px;
  }
}