/* =========================================================
   legend2017.html / legend2018.html — shared landing page styles
   Self-contained (does not depend on base.css): these pages use a
   different visual theme (light background, no main site nav).
   Accent color is switched via [data-year] on <body>.
   ========================================================= */

:root {
  --bg: #EEEEEE;
  --card-bg: #ffffff;
  --footer-bg: #000000;
  --text: #333333;
  --text-strong: #000000;
  --text-on-dark: #ffffff;

  --font-en: 'Inter', Helvetica, "Helvetica Neue", Arial, sans-serif;
  --font-jp: 'Inter', 'Noto Sans JP', "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", Meiryo,
             "メイリオ", "MS PGothic", "ＭＳ Ｐゴシック", sans-serif;

  --content-width: 1026px;
}

body[data-year="2018"] { --accent: #E21E79; }
body[data-year="2017"] { --accent: #2DD5B2; }
body[data-year="2019"] { --accent: #29ABE2; }

html {
  scroll-behavior: smooth;
}

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

body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

a {
  color: var(--accent);
  text-decoration: underline;
}

body {
  background-color: var(--bg);
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

/* ---------- Header / Nav ---------- */
#page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  margin-bottom: 6px;
}

#page-header .logo img {
  width: 200px;
  height: auto;
}

#main-nav ul { display: flex; gap: 6px; }

#main-nav a {
  display: block;
  padding: 8px 12px;
  font-family: var(--font-jp);
  font-size: 12px;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

#main-nav a:hover { color: var(--accent); }

/* ---------- Layout ---------- */
.page {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero {
  margin-bottom: 0;
}

.content-card {
  background: var(--card-bg);
  padding: 30px 20px 46px;
}

/* ---------- Heading block ---------- */
.event-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid #cccccc;
  margin-bottom: 29px;
}

.event-heading .kicker {
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: bold;
  line-height: 30px;
  color: var(--text);
}

.event-heading .event-title {
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: bold;
  line-height: 24px;
  color: var(--text);
  margin-top: 10px;
}

/* ---------- Two-column content ---------- */
.content-grid {
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.label {
  font-family: var(--font-jp);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 3px;
  line-height: 20px;
  color: var(--accent);
  margin-top: 20px;
}

.label:first-child { margin-top: 0; }

.theme-title {
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: bold;
  line-height: 24px;
  color: var(--accent);
  margin-top: 6px;
  margin-bottom: 12px;
}

.theme p,
.info-sidebar p {
  font-family: var(--font-jp);
  font-size: 12px;
  line-height: 20px;
  color: var(--text-strong);
  margin-top: 8px;
}

.theme .lead {
  font-size: 14px;
  font-weight: bold;
  line-height: 24px;
  color: var(--text);
}

.theme .quiz-list li {
  font-size: 12px;
  line-height: 20px;
  color: var(--text-strong);
}

.info-sidebar h4 {
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: bold;
  line-height: 24px;
  color: var(--text);
  margin-top: 8px;
}

.info-sidebar .sponsor-logo {
  margin: 12px 0;
  max-width: 350px;
}

/* ---------- Video ---------- */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 560 / 315;
  margin-top: 16px;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Gallery (2018) ---------- */
.gallery {
  margin-bottom: 40px;
}

.gallery-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.gallery-track img {
  flex: 0 0 auto;
  width: 320px;
  height: 214px;
  object-fit: cover;
  scroll-snap-align: start;
}

/* ---------- Bibliography (2017) ---------- */
.bibliography ol {
  margin-top: 8px;
}

.bibliography li {
  font-size: 12px;
  line-height: 20px;
  color: var(--text);
  counter-increment: bib;
}

.bibliography li::before {
  content: counter(bib) ". ";
}

.bibliography ol {
  counter-reset: bib;
}

/* ---------- Map ---------- */
.map {
  margin-bottom: 40px;
}

.map iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* ---------- Reference / bibliography groups (legend2019) ---------- */
.reference-group {
  margin-top: 16px;
}

.reference-group h4 {
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 6px;
}

.reference-group ol,
.reference-group ul {
  margin-bottom: 8px;
}

.reference-group li {
  font-size: 12px;
  line-height: 20px;
  color: var(--text);
}

/* ---------- Notice banner (event concluded) ---------- */
.notice {
  font-weight: bold;
  color: var(--accent);
}

/* ---------- Speaker / guest block ---------- */
.guest-block h4 {
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: bold;
  color: var(--text);
  margin-top: 16px;
}

/* ---------- Bottom brand (Access TDC-style secondary logo) ---------- */
.inline-logo {
  width: 200px;
  margin-bottom: 12px;
}

/* ---------- Access / Contact ---------- */
.access-grid {
  grid-template-columns: 1fr 300px;
  align-items: start;
}

.access h4 {
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: bold;
  color: var(--text);
  margin: 10px 0;
}

.access p,
.contact p {
  font-size: 12px;
  line-height: 20px;
  color: var(--text-strong);
  margin-top: 4px;
}

.access .tdc-logo {
  margin-top: 16px;
  width: 200px;
}

/* ---------- Footer ---------- */
.legend-footer {
  background: var(--footer-bg);
  padding: 22px 20px;
  margin-top: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.legend-footer .copyright {
  font-family: var(--font-jp);
  font-size: 10px;
  font-weight: bold;
  color: var(--text-on-dark);
}

.legend-footer .back-to-top {
  font-family: var(--font-jp);
  font-size: 12px;
  font-weight: bold;
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .content-grid,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .video-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  #page-header .logo img {
    width: 140px;
  }
}
