/* =========================================================
   トークン定義
   ========================================================= */
:root {
  --ink: #14182b;
  --ink-soft: #545a76;
  --paper: #efead9;
  --paper-line: #d9d2b8;
  --gold: #e3a73e;
  --gold-dark: #855c14;
  --teal: #46c2b9;
  --teal-deep: #15645f;
  --cream-text: #f4f0e3;

  --font-display: "Zen Old Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --max-width: 880px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2 { font-family: var(--font-display); margin: 0; }

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(239, 234, 217, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--paper-line);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.logo-vol {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold-dark);
  border: 1px solid var(--gold-dark);
  border-radius: 999px;
  padding: 2px 8px;
}

.site-nav {
  display: none;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.site-nav a:hover { color: var(--gold-dark); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  padding: 16px 20px 24px;
  border-bottom: 1px solid var(--paper-line);
  gap: 16px;
}

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    background: none;
    padding: 0;
    border: none;
  }
}

/* =========================================================
   ヒーロー
   ========================================================= */
.hero {
  position: relative;
  color: var(--cream-text);
  overflow: hidden;
  padding: 90px 20px 70px;

  /* ▼編集ポイント: images/hero-bg.jpg を差し替え画像に置き換えてください。
     画像ファイルが images フォルダに存在しない場合、下のグラデーションだけが
     表示されるため、暗い単色（真っ暗）に見えます。まずはファイルが
     event-site/images/hero-bg.jpg に置かれているか確認してください。
     （横1600px以上の横長写真を推奨） */
  background-color: var(--ink);
  background-image:
    linear-gradient(to bottom, rgba(20, 24, 43, 0.2), rgba(20, 24, 43, 0.55)),
    url("images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.stamp {
  position: absolute;
  top: 28px;
  right: -34px;
  transform: rotate(18deg);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  padding: 8px 40px;
  opacity: 0.85;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.eyebrow-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin: 0 0 18px;
}

.hero-title {
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 700;
  line-height: 1.3;
}

.hero-title-sub {
  display: inline-block;
  font-size: 0.5em;
  color: var(--gold);
  margin-top: 6px;
}

.hero-copy {
  max-width: 46ch;
  margin: 22px 0 34px;
  color: rgba(244, 240, 227, 0.82);
}

.ticket-info {
  display: grid;
  gap: 14px;
  border-top: 1px dashed rgba(244, 240, 227, 0.35);
  border-bottom: 1px dashed rgba(244, 240, 227, 0.35);
  padding: 18px 0;
  margin-bottom: 34px;
}

@media (min-width: 620px) {
  .ticket-info { grid-template-columns: repeat(3, 1fr); }
}

.ticket-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticket-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--teal);
}

.ticket-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.cta-button {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 0 var(--gold-dark);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--gold-dark);
}

.cta-button:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--gold-dark);
}

/* =========================================================
   ミシン目（セクション区切り）
   ========================================================= */
.perforation {
  height: 24px;
  background: var(--paper);
  background-image: repeating-linear-gradient(
    to right,
    var(--ink-soft) 0,
    var(--ink-soft) 8px,
    transparent 8px,
    transparent 18px
  );
  background-position: center;
  background-size: 100% 2px;
  background-repeat: no-repeat;
  position: relative;
}

.perforation::before,
.perforation::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--ink);
  border-radius: 50%;
}
.perforation::before { left: -12px; }
.perforation::after { right: -12px; }

.perforation-dark {
  background: var(--ink);
  background-image: repeating-linear-gradient(
    to right,
    var(--paper-line) 0,
    var(--paper-line) 8px,
    transparent 8px,
    transparent 18px
  );
  background-position: center;
  background-size: 100% 2px;
  background-repeat: no-repeat;
}
.perforation-dark::before,
.perforation-dark::after {
  background: var(--paper);
}

/* =========================================================
   汎用セクション
   ========================================================= */
.section { padding: 70px 20px; }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: var(--cream-text); }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  margin: 0 0 10px;
}
.section-eyebrow-light { color: var(--gold); }

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: 22px;
}
.section-title-light { color: var(--cream-text); }

.section-lead {
  max-width: 62ch;
  color: var(--ink-soft);
}
.section-lead-light {
  color: rgba(244, 240, 227, 0.82);
}

/* =========================================================
   概要セクション
   ========================================================= */
.about-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.about-text { width: 100%; }

.about-photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

@media (min-width: 760px) {
  .about-grid {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
  }
  .about-photo {
    width: 300px;
  }
}

/* =========================================================
   概要セクションの数値カード
   ========================================================= */
.fact-row {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}
@media (min-width: 620px) {
  .fact-row { grid-template-columns: repeat(3, 1fr); }
}

.fact {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--teal-deep);
  letter-spacing: 0.1em;
}

.fact-value { font-weight: 700; }

/* =========================================================
   タイムテーブル
   ========================================================= */
.timetable {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--paper-line);
}

.timetable-row {
  display: grid;
  grid-template-columns: 68px 1px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--paper-line);
}

.tt-time {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold-dark);
}

.tt-divider {
  background: var(--paper-line);
}

.tt-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tt-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--teal-deep);
  letter-spacing: 0.08em;
}

.tt-title { font-weight: 700; }

.tt-speaker {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.speaker-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--paper-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.speaker-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 6px 16px;
}

.speaker-list-no-time .speaker-item {
  grid-template-columns: 1fr;
}

.speaker-time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal-deep);
}

.speaker-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.speaker-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.speaker-affiliation {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-left: 4px;
}

.speaker-title {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  .speaker-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* =========================================================
   会場
   ========================================================= */
.venue-card {
  margin-top: 30px;
  background: rgba(244, 240, 227, 0.05);
  border: 1px solid rgba(244, 240, 227, 0.18);
  border-radius: 12px;
  padding: 8px 24px;
}

.venue-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(244, 240, 227, 0.15);
}
.venue-row:last-child { border-bottom: none; }

.venue-label {
  width: 84px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal);
  flex-shrink: 0;
}

.venue-value { color: rgba(244, 240, 227, 0.9); }

.venue-map {
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
}

/* =========================================================
   運営
   ========================================================= */
.organizer-grid {
  display: grid;
  gap: 16px;
  margin-top: 34px;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .organizer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .organizer-grid { grid-template-columns: repeat(3, 1fr); }
}

.organizer-card {
  background: rgba(244, 240, 227, 0.05);
  border: 1px solid rgba(244, 240, 227, 0.18);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 18px 20px;
}

.organizer-name {
  font-weight: 700;
  margin: 0 0 4px;
}

.organizer-affiliation {
  font-size: 0.85rem;
  color: rgba(244, 240, 227, 0.65);
  margin: 0;
}

/* =========================================================
   お問い合わせ
   ========================================================= */
.contact-lead {
  max-width: none;
}

.contact-card {
  margin-top: 30px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 8px 24px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--paper-line);
}
.contact-row:last-child { border-bottom: none; }

.contact-label {
  width: 70px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal-deep);
  flex-shrink: 0;
}

.contact-value a { text-decoration: underline; }

/* =========================================================
   フッター
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(244, 240, 227, 0.7);
  text-align: center;
  padding: 40px 20px;
  font-size: 0.85rem;
}

.footer-note { margin: 0 0 10px; }
.footer-copy { margin: 0; }
.footer-copy a { text-decoration: underline; }

/* =========================================================
   スクロールリビール
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* フォーカス可視化 */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
