@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=IBM+Plex+Mono:wght@400;500;700&display=swap');

/* ============================================================
   セキュリティ交流会 — ライト（白ベース）テーマ
   ※ 旧デザイン（マトリックス風／style.css）とは完全に分離。
     クラス名は既存HTML構造と共通のため、このCSSを差し替えるだけで
     ページ全体の見た目を白ベースに変更できます。
   ============================================================ */

:root {
  --ink:        #1c2531;   /* 本文の基本色 */
  --ink-soft:   #5b6b7c;   /* 補足テキスト */
  --paper:      #ffffff;   /* 背景 */
  --panel:      #f5f7fa;   /* カード背景 */
  --panel-strong: #eef1f6;
  --line:       #e2e7ee;   /* ボーダー */
  --accent:     #2454c9;   /* メインアクセント（青） */
  --accent-soft: rgba(36, 84, 201, 0.07);
  --accent-line: rgba(36, 84, 201, 0.25);
  --teal:       #0f9d68;   /* サブアクセント（タグ・ラベル用） */
  --teal-soft:  rgba(15, 157, 104, 0.09);
  --shadow-sm:  0 1px 3px rgba(20, 30, 50, 0.05);
  --shadow-md:  0 8px 24px rgba(20, 30, 50, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* ─── 背景：薄いグリッド線 ─── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(36, 84, 201, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 84, 201, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  z-index: 0;
  pointer-events: none;
}

/* ─── 背景：四隅のほのかな光彩 ─── */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(560px 420px at -5% -8%,  rgba(36, 84, 201, 0.12), transparent 70%),
    radial-gradient(560px 420px at 105% -8%, rgba(15, 157, 104, 0.10), transparent 70%),
    radial-gradient(620px 480px at -6% 108%, rgba(15, 157, 104, 0.09), transparent 70%),
    radial-gradient(620px 480px at 106% 108%, rgba(36, 84, 201, 0.11), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.wrapper {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ─── HERO ─── */
.hero {
  text-align: center;
  padding: 64px 20px 46px;
  position: relative;
}

.hero-img img { width: 100%; border-radius: 12px; }

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 6px 20px;
  margin-bottom: 22px;
  letter-spacing: 1px;
}

.hero-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(3.2rem, 9vw, 6rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-title {
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  font-weight: 700;
  color: var(--ink);
  margin: 10px 0 14px;
  letter-spacing: 1px;
}

.hero-tagline {
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
  letter-spacing: 0.5px;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
}

.hero-date-block {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 38px;
}

.date-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1.7rem, 4.6vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.date-detail .ymd {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}

.date-detail .time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 3px;
}

/* ─── Divider ─── */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 54px 0 28px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.divider-icon {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--ink-soft);
  letter-spacing: 2px;
}

/* ─── Section Heading ─── */
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.section-head .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--teal);
  letter-spacing: 2px;
  background: var(--teal-soft);
  border: 1px solid rgba(15,157,104,0.25);
  border-radius: 4px;
  padding: 3px 10px;
}

.section-head h2 {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.5px;
}

/* ─── Description Card ─── */
.desc-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 28px 32px;
}

.desc-card p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #37475a;
}

.desc-card p + p { margin-top: 12px; }

.highlight-text {
  color: var(--accent);
  font-weight: 700;
}

/* ─── Schedule ─── */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.schedule-item:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-sm);
}

.schedule-time {
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-align: center;
  line-height: 1.4;
}

.schedule-content {
  padding: 16px 20px;
  display: flex;
  align-items: center;
}

.schedule-content .label {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}

.schedule-content .sublabel {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.schedule-item.lt { border-left: 3px solid var(--accent); }

.lt-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lt-badge .lt-label {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 700;
}

.tbd-chip {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 2px 12px;
  letter-spacing: 1px;
  background: var(--accent-soft);
}

.tbd-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ─── SPEAKERS ─── */
.speakers-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.speaker-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.speaker-card:hover {
  box-shadow: var(--shadow-md);
}

.speaker-card-corner { display: none; }

.speaker-header {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 26px 28px 20px;
}

.speaker-photo-wrap {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  position: relative;
  overflow: hidden;
}

.speaker-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.speaker-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ph-icon { font-size: 2.2rem; opacity: 0.25; line-height: 1; }

.ph-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.5rem;
  color: var(--ink-soft);
  letter-spacing: 1.5px;
  text-align: center;
  line-height: 1.5;
}

.speaker-meta { flex: 1; min-width: 0; }

.speaker-num {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: var(--teal);
  letter-spacing: 2px;
  background: var(--teal-soft);
  border: 1px solid rgba(15,157,104,0.25);
  border-radius: 4px;
  padding: 2px 9px;
  margin-bottom: 9px;
}

.speaker-name-tbd,
.speaker-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.4;
}

.speaker-org,
.speaker-org-tbd {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 10px;
}

.speaker-org a, .speaker-bio a, .speaker-content-text a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
}
.speaker-org a:hover, .speaker-bio a:hover, .speaker-content-text a:hover {
  border-bottom-color: var(--accent);
}

.speaker-topic-block {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 6px;
}

.speaker-topic-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.speaker-topic-tbd,
.speaker-topic {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.speaker-divider {
  height: 1px;
  background: var(--line);
  margin: 0 28px;
}

.speaker-body { padding: 0 28px 26px; }

.speaker-body-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: var(--teal);
  letter-spacing: 2px;
  margin: 18px 0 8px;
}

.tbd-block {
  border: 1px dashed var(--line);
  background: var(--panel);
  border-radius: 6px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tbd-block-chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.tbd-block-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.speaker-bio {
  font-size: 0.9rem;
  color: #37475a;
  line-height: 1.9;
}

.speaker-content-text {
  font-size: 0.9rem;
  color: #37475a;
  padding: 10px 14px;
  line-height: 1.9;
}

.speaker-content-text ul { padding-left: 1.2em; margin-top: 6px; }
.speaker-content-text li { margin-bottom: 4px; }

/* ─── Info Grid ─── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
  position: relative;
  transition: box-shadow 0.2s ease;
}

.info-card:hover { box-shadow: var(--shadow-sm); }

.info-card::before {
  content: attr(data-index);
  position: absolute;
  top: 12px; right: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--panel-strong);
}

.info-card .ic-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--teal);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.info-card .ic-value { font-size: 0.95rem; color: var(--ink); line-height: 1.7; }

.info-card .ic-value strong {
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.15rem;
}

.info-card .ic-sub { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }

/* ─── Access ─── */
.access-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  padding: 24px 28px;
}

.access-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.access-item:last-child { border-bottom: none; }

.access-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.access-text { font-size: 0.9rem; color: #37475a; line-height: 1.6; }
.access-text em { color: var(--accent); font-style: normal; font-weight: 700; }

/* ─── CTA ─── */
.cta-section { text-align: center; padding: 46px 20px; }

.cta-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-soft);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.cta-btn {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 16px 48px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-md);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(36,84,201,0.25);
}

.wework-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--line);
  padding: 30px 20px;
  text-align: center;
}

.footer-logo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-soft);
  letter-spacing: 3px;
}

.footer-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: #93a1b0;
  margin-top: 8px;
}

/* ─── Status bar ─── */
.status-bar {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
  text-align: right;
  padding: 14px 0 0;
}

.status-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* ─── Responsive ─── */
@media (max-width: 620px) {
  .hero-date-block { flex-direction: column; gap: 8px; padding: 18px 24px; }
  .info-grid { grid-template-columns: 1fr; }
  .schedule-item { grid-template-columns: 72px 1fr; }
  .speaker-header { flex-direction: column; align-items: center; text-align: center; padding: 22px 20px 16px; }
  .speaker-photo-wrap { width: 100px; height: 100px; }
  .speaker-body { padding: 0 20px 22px; }
  .speaker-divider { margin: 0 20px; }
}

/* ─── History Grid ─── */
.history-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.history-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: default;
}

.history-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.history-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.history-card-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 2px;
  border-bottom: 1px solid var(--line);
}

.history-card-placeholder .ph-icon { font-size: 1.6rem; opacity: 0.3; }

.history-card-body { padding: 10px 12px 12px; }

.history-session-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--accent);
  letter-spacing: 1px;
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 5px;
}

.history-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.history-report-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.history-report-link:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

@media (max-width: 620px) {
  .history-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 380px) {
  .history-grid { grid-template-columns: 1fr; }
}

/* ─── Lightbox（過去回ギャラリー） ─── */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(28, 37, 49, 0.55);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  animation: lb-fadein 0.2s ease;
}
.lb-overlay.active { display: flex; }
@keyframes lb-fadein { from { opacity: 0; } to { opacity: 1; } }

.lb-inner {
  position: relative;
  max-width: min(90vw, 960px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: lb-scalein 0.22s cubic-bezier(0.22,1,0.36,1);
}
@keyframes lb-scalein { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lb-img-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  box-shadow: var(--shadow-md);
  background: #fff;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.lb-img { width: 100%; max-height: 72vh; object-fit: contain; display: block; background: #fff; }

.lb-caption {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 8px 8px;
}
.lb-caption-session {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  padding: 2px 8px;
}
.lb-caption-date { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--ink-soft); }
.lb-caption-counter { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; color: #93a1b0; }

.lb-close {
  position: absolute;
  top: -14px; right: -14px;
  width: 32px; height: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  z-index: 10;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}
.lb-close:hover { background: var(--panel); }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 64px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.lb-nav:hover { background: var(--panel); }
.lb-prev { left: -56px; }
.lb-next { right: -56px; }

.history-card-img { cursor: zoom-in; }

@media (max-width: 620px) {
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lb-nav { width: 36px; height: 52px; font-size: 0.9rem; }
  .lb-close { top: -12px; right: -12px; width: 28px; height: 28px; }
  .lb-inner { max-width: 96vw; }
}

/* CTA直下のギャラリー */
.fv-gallery {
  margin: 16px auto 0;
  width: min(760px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.fv-thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.fv-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .18s ease;
}

.fv-thumb:hover img { transform: scale(1.03); }

@media (max-width: 640px) {
  .fv-gallery { grid-template-columns: repeat(2, 1fr); }
}

.fv-lightbox { position: fixed; inset: 0; z-index: 9999; }
.fv-lightbox__backdrop { position: absolute; inset: 0; background: rgba(28, 37, 49, 0.55); }

.fv-lightbox__panel {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.fv-lightbox__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 26px;
  line-height: 38px;
  cursor: pointer;
}

.fv-lightbox__img {
  width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  display: block;
  border-radius: 10px;
  background: var(--panel);
}

.fv-lightbox__cap { margin-top: 10px; color: var(--ink-soft); font-size: 13px; }
