/* ミチシルベ2026 - セッション・登壇者ページ スタイルシート */
/* デザインガイドライン v3.0 準拠 */

/* ========================================
   CSS Variables - ミチシルベ2026 デザインガイドライン
   エレガント・明朝体ベース・白基調
======================================== */
:root {
  /* テーマカラー（星形イラスト用7色） */
  --color-sky: #5eb4e8;
  --color-sea: #3b7bbf;
  --color-land: #5ab87a;
  --color-culture: #f5a742;
  --color-heart: #e85b5b;
  --color-star: #f5d742;
  --color-spirit: #9b6bbf;

  /* ベースカラー（白基調）- コントラスト比改善 */
  --color-bg: #ffffff;
  --color-bg-alt: #faf9f5;
  --color-bg-dark: #f0f0f0;
  --color-text: #222222;        /* より濃く: WCAG AAA準拠 */
  --color-text-sub: #444444;    /* より濃く: コントラスト比7:1以上 */
  --color-text-muted: #555555;  /* より濃く: コントラスト比4.5:1以上 */
  --color-border: #cccccc;      /* より濃く: 視認性向上 */
  --color-border-light: #dddddd;

  /* セマンティックカラー */
  --color-primary: #141413;
  --color-primary-dark: #000000;
  --color-primary-light: #333333;
  --color-accent: var(--color-star);
  --color-success: var(--color-land);
  --color-warning: var(--color-star);
  --color-danger: var(--color-heart);

  /* フォント（明朝体ベース） */
  --font-heading: "A1明朝", "Noto Serif JP", "Yu Mincho", serif;
  --font-heading-en: "EB Garamond", "Times New Roman", serif;
  --font-body: "Noto Serif JP", "Yu Mincho", serif;
  --font-body-en: "EB Garamond", "Times New Roman", serif;

  /* フォントサイズ - 60代以上向けアクセシビリティ対応 */
  --text-xs: 0.889rem;   /* 16px (旧12px) */
  --text-sm: 1rem;       /* 18px (旧14px) */
  --text-base: 1.111rem; /* 20px (旧16px) */
  --text-lg: 1.222rem;   /* 22px (旧18px) */
  --text-xl: 1.333rem;   /* 24px (旧20px) */
  --text-2xl: 1.556rem;  /* 28px (旧24px) */
  --text-3xl: 2rem;      /* 36px (旧32px) */
  --text-4xl: 2.667rem;  /* 48px (旧48px) */

  /* スペーシング */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 5rem;

  /* 角丸（控えめに） */
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 4px;
  --radius-full: 50%;

  /* シャドウ（控えめに） */
  --shadow-s: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-m: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-l: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);

  /* トランジション */
  --ease-default: 0.3s ease;
  --ease-fast: 0.2s ease;
  --ease-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* レイアウト */
  --container-max: 1200px;
  --header-height: 72px;

  /* 会場別カラー */
  --venue-a: var(--color-sky);
  --venue-b: var(--color-sea);
  --venue-c: var(--color-land);
  --venue-d: var(--color-culture);
  --venue-e: var(--color-heart);
  --venue-f: var(--color-spirit);
  --venue-g: var(--color-star);
  --venue-h: var(--color-land);
  --venue-j: var(--color-sea);
  --venue-k: var(--color-heart);
  --venue-l: var(--color-culture);
}

/* ========================================
   Reset & Base
======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px; /* 60代以上向け: 16px→18pxに拡大 */
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 2; /* 行間を広げて読みやすく: 1.8→2 */
  letter-spacing: 0.08em; /* 文字間隔を少し詰めて読みやすく */
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

a {
  color: var(--color-text);
  text-decoration: underline; /* リンクを明確に識別できるよう下線追加 */
  text-underline-offset: 3px; /* 下線と文字の間隔 */
  text-decoration-thickness: 1px;
  transition: color var(--ease-fast), text-decoration-color var(--ease-fast);
}

a:hover {
  color: var(--color-text-sub);
  text-decoration-thickness: 2px; /* ホバー時に下線を太く */
}

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

button {
  font-family: inherit;
}

/* ========================================
   Typography - エレガントな明朝体スタイル
======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.2em;
  color: var(--color-text);
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: 0.3em;
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: 0.2em;
}

h3 {
  font-size: var(--text-2xl);
  letter-spacing: 0.15em;
}

h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

.heading-en {
  font-family: var(--font-heading-en);
  font-style: italic;
  letter-spacing: 0.05em;
}

/* ========================================
   Layout
======================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-l);
}

.section {
  padding: var(--space-xl) 0;
}

/* ========================================
   Header & Navigation - 白基調エレガントスタイル
======================================== */
.header {
  background-color: var(--color-bg);
  color: var(--color-text);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-text);
  font-weight: 400;
  transition: opacity var(--ease-fast);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  position: relative;
  text-decoration: none; /* ロゴには下線不要 */
}

.logo-img {
  height: 36px;
  width: auto;
}

/* ロゴの星マーク装飾（画像ロゴ使用時は非表示） */
.logo::after {
  content: none;
}

.logo:hover {
  color: var(--color-text);
  opacity: 0.8;
}

.logo span {
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: normal;
  color: var(--color-text-sub);
  padding-left: var(--space-xs);
  border-left: 1px solid var(--color-border);
}

.nav {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.nav a {
  color: var(--color-text);
  font-size: var(--text-sm);
  padding: 0.75rem 1.25rem;
  transition: var(--ease-default);
  position: relative;
  letter-spacing: 0.1em;
  text-decoration: none; /* ナビには下線不要（ホバーで別途表示） */
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: var(--color-text);
  transition: var(--ease-default);
}

.nav a:hover::after {
  width: 80%;
}

.nav a:hover {
  color: var(--color-text);
}

.nav a.active {
  color: var(--color-text);
}

.nav a.active::after {
  width: 80%;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 100;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--ease-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Breadcrumb - シンプルなスタイル
======================================== */
.breadcrumb {
  background-color: var(--color-bg);
  padding: var(--space-s) 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  gap: var(--space-s);
  flex-wrap: wrap;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
}

.breadcrumb-list li::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--color-text-muted);
  border-top: 1.5px solid var(--color-text-muted);
  transform: rotate(45deg);
  margin-left: var(--space-s);
}

.breadcrumb-list li:last-child::after {
  display: none;
}

.breadcrumb-list li:last-child {
  color: var(--color-text-muted);
}

/* ========================================
   Page Header - シンプルな白基調
======================================== */
.page-header {
  background-color: var(--color-bg);
  padding: var(--space-xl) 0 var(--space-l);
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin-bottom: var(--space-s);
  position: relative;
  font-family: var(--font-heading);
  letter-spacing: 0.3em;
}

.page-header p {
  color: var(--color-text-sub);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
  letter-spacing: 0.15em;
}

/* ========================================
   Search & Filter - シンプルなスタイル
======================================== */
.search-filter-bar {
  background-color: var(--color-bg);
  padding: var(--space-m);
  margin-bottom: var(--space-l);
  border: 1px solid var(--color-border);
}

.search-box {
  position: relative;
}

.search-box input,
.tab-search-bar input {
  width: 100%;
  padding: 1rem 1.5rem; /* パディング拡大 */
  padding-left: 3.5rem;
  border: 2px solid var(--color-border); /* ボーダー太く */
  font-size: var(--text-base);
  font-family: var(--font-body);
  background-color: var(--color-bg);
  transition: var(--ease-fast);
  letter-spacing: 0.05em;
  min-height: 56px; /* 最小高さを設定 */
}

.search-box input:focus,
.tab-search-bar input:focus {
  outline: none;
  border-color: var(--color-text);
}

.search-box input::placeholder,
.tab-search-bar input::placeholder {
  color: var(--color-text-muted);
}

.search-box::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  opacity: 0.6;
}

.tab-search-bar {
  margin-bottom: var(--space-m);
  position: relative;
}

.tab-search-bar::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  opacity: 0.6;
  z-index: 1;
}

.tab-search-bar input {
  padding-left: 3rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
  margin-top: var(--space-s);
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-text-sub);
}

.filter-group select {
  padding: 0.75rem 1.25rem; /* パディング拡大 */
  border: 2px solid var(--color-border);
  border-radius: var(--radius-s);
  font-size: var(--text-sm);
  background-color: var(--color-bg);
  cursor: pointer;
  transition: var(--ease-fast);
  min-height: 48px; /* 最小高さを設定 */
}

.filter-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(66, 123, 191, 0.15);
  outline: none;
}

/* ========================================
   Buttons - 黒基調のエレガントなボタン
======================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background-color: #141413;
  color: #ffffff;
  padding: 1.5rem 3.5rem; /* パディング拡大 */
  font-weight: 400;
  font-family: var(--font-body);
  font-size: var(--text-base);
  letter-spacing: 0.2em;
  border: none;
  cursor: pointer;
  transition: var(--ease-default);
  text-decoration: none; /* ボタンには下線不要 */
}

.btn-primary:hover {
  background-color: #333333;
  color: #ffffff;
}

.btn-primary:active {
  background-color: #000000;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border); /* ボーダー太く */
  padding: 1.25rem 3rem; /* パディング拡大 */
  font-weight: 400;
  font-family: var(--font-body);
  font-size: var(--text-base);
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: var(--ease-default);
  text-decoration: none; /* ボタンには下線不要 */
}

.btn-secondary:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

/* ========================================
   Cards - Base - シンプルなボーダースタイル
======================================== */
.card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--ease-default);
}

.card:hover {
  border-color: var(--color-text);
}

/* ========================================
   Session Cards - シンプルなボーダースタイル
======================================== */
.sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-m);
}

.session-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--ease-default);
  cursor: pointer;
}

.session-card:hover {
  border-color: var(--color-text);
  box-shadow: var(--shadow-l);
}

.session-card-header {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
  padding: var(--space-s) var(--space-m);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.venue-badge {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.75rem;
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.time-slot {
  font-size: var(--text-sm);
  font-family: var(--font-heading-en);
  color: var(--color-text-sub);
}

.session-card-body {
  padding: var(--space-m);
}

.session-card-body h3 {
  font-size: var(--text-lg);
  font-family: var(--font-heading);
  font-weight: 400;
  margin-bottom: var(--space-s);
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.session-card-body h3 a {
  color: var(--color-text);
  transition: color var(--ease-fast);
  text-decoration: none; /* カード内タイトルは下線なし */
}

.session-card-body h3 a:hover {
  color: var(--color-text-sub);
}

.session-description {
  color: var(--color-text-sub);
  font-size: var(--text-sm);
  line-height: 2;
  margin-bottom: var(--space-s);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.session-speakers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: var(--space-xs);
  padding-top: var(--space-s);
  border-top: 1px solid var(--color-border);
}

.speaker-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background-color: transparent;
  padding: 0.5rem 0.75rem; /* パディング調整 */
  border: 2px solid var(--color-border); /* ボーダー太く */
  font-size: var(--text-xs);
  color: var(--color-text-sub);
  transition: var(--ease-default);
  text-decoration: none; /* タグには下線不要 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.speaker-tag:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.speaker-tag img {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

/* ========================================
   Speaker Cards - シンプルなボーダースタイル
======================================== */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-m);
}

.speaker-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  text-align: center;
  transition: var(--ease-default);
  position: relative;
}

.speaker-card:hover {
  border-color: var(--color-text);
}

.speaker-card.highlight {
  border-color: var(--color-text);
  box-shadow: var(--shadow-m);
}

.speaker-clickable {
  cursor: pointer;
  transition: var(--ease-default);
}

.speaker-clickable:hover {
  opacity: 0.8;
}

.tab-session-item.highlight {
  border-color: var(--color-text);
  box-shadow: var(--shadow-m);
}

.speaker-photo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background-color: var(--color-bg-dark);
  margin: var(--space-m) auto var(--space-s);
  position: relative;
  z-index: 1;
  border: 1px solid var(--color-border);
}

.speaker-info {
  padding: 0 var(--space-m) var(--space-m);
}

.speaker-info h3 {
  font-size: var(--text-lg);
  font-family: var(--font-heading);
  font-weight: 400;
  margin-bottom: 0.25rem;
  letter-spacing: 0.1em;
}

.speaker-info h3 a {
  color: var(--color-text);
  transition: color var(--ease-fast);
  text-decoration: none; /* カード内タイトルは下線なし */
}

.speaker-info h3 a:hover {
  color: var(--color-text-sub);
}

.speaker-kana {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.speaker-affiliation {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
  line-height: 1.6;
  min-height: calc(var(--text-sm) * 1.6 * 3); /* 3行分の高さを確保 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.speaker-sessions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
  padding: 0 var(--space-m) var(--space-m);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-s);
  padding-top: var(--space-s);
}

.session-tag {
  display: inline-block;
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border); /* ボーダー太く */
  padding: 0.5rem 1rem; /* パディング拡大 */
  font-size: var(--text-xs);
  transition: var(--ease-default);
  text-decoration: none; /* タグには下線不要 */
}

.session-tag:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

/* ========================================
   Timetable - シンプルなボーダースタイル
======================================== */
.timetable-wrapper {
  overflow-x: auto;
  margin-bottom: var(--space-l);
  border: 1px solid var(--color-border);
}

.timetable {
  width: 100%;
  min-width: 1000px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.timetable th,
.timetable td {
  border: 1px solid var(--color-border);
  padding: var(--space-s);
  vertical-align: top;
}

.timetable thead th {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
  font-weight: 400;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
  letter-spacing: 0.1em;
}

.timetable tbody th {
  background-color: var(--color-bg-alt);
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  position: sticky;
  left: 0;
  z-index: 5;
}

.timetable td {
  background-color: var(--color-bg);
  min-width: 180px;
}

.timetable-session {
  padding: var(--space-s);
  background-color: var(--color-bg);
  cursor: pointer;
  transition: var(--ease-default);
  border-left: 2px solid var(--color-text);
}

.timetable-session:hover {
  background-color: var(--color-bg-alt);
}

.timetable-session h4 {
  font-size: var(--text-xs);
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.timetable-session .speakers {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.timetable-session:hover .speakers {
  color: rgba(255, 255, 255, 0.9);
}

/* タイムテーブルヘッダー */
.timetable-venue-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.timetable-venue-header .venue-id {
  font-size: var(--text-lg);
  font-weight: 600;
}

.timetable-venue-header .venue-name-jp {
  font-size: var(--text-xs);
  opacity: 0.9;
  font-weight: 400;
}

/* タイムテーブル時間表示 */
.timetable-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.timetable-time .time {
  font-size: var(--text-sm);
  font-weight: 500;
}

.timetable-time small {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
}

/* 余白の時間 */
.timetable-empty {
  padding: var(--space-s);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-style: italic;
}

/* ========================================
   Venue Tabs - シンプルなボーダースタイル
======================================== */
.venue-tabs {
  margin-bottom: var(--space-l);
}

.venue-tabs-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background-color: var(--color-bg);
  padding: 0.75rem;
  margin-bottom: var(--space-m);
  border: 1px solid var(--color-border);
}

.venue-tab {
  flex: 1;
  min-width: 55px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  color: var(--color-text-sub);
  font-size: var(--text-sm);
  font-weight: 400;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--ease-default);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  letter-spacing: 0.05em;
}

.venue-tab small {
  font-size: var(--text-xs);
  opacity: 0.7;
}

.venue-tab:hover:not(.active) {
  border-color: var(--color-text);
  color: var(--color-text);
}

.venue-tab.active {
  background-color: #141413;
  color: #ffffff;
  border-color: #141413;
}

/* 会場別タブカラー - シンプル化 */
.venue-tab[data-venue="A"].active,
.venue-tab[data-venue="B"].active,
.venue-tab[data-venue="C"].active,
.venue-tab[data-venue="D"].active,
.venue-tab[data-venue="E"].active,
.venue-tab[data-venue="F"].active,
.venue-tab[data-venue="G"].active,
.venue-tab[data-venue="H"].active,
.venue-tab[data-venue="J"].active,
.venue-tab[data-venue="K"].active,
.venue-tab[data-venue="L"].active {
  background-color: #141413;
  color: #ffffff;
  border-color: #141413;
}

.venue-tab-content {
  display: none;
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0.4, 0, 1);
}

.venue-tab-content.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 会場サマリー */
.venue-summary {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding: var(--space-m);
  background-color: var(--color-bg);
  margin-bottom: var(--space-m);
  border: 1px solid var(--color-border);
}

.venue-summary .venue-icon {
  width: 56px;
  height: 56px;
  background-color: #141413;
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 400;
  flex-shrink: 0;
  font-family: var(--font-heading-en);
}

/* 会場別アイコンカラー - シンプル化 */
[data-venue="A"] .venue-icon,
[data-venue="B"] .venue-icon,
[data-venue="C"] .venue-icon,
[data-venue="D"] .venue-icon,
[data-venue="E"] .venue-icon,
[data-venue="F"] .venue-icon,
[data-venue="G"] .venue-icon,
[data-venue="H"] .venue-icon,
[data-venue="J"] .venue-icon,
[data-venue="K"] .venue-icon,
[data-venue="L"] .venue-icon {
  background-color: #141413;
  color: #ffffff;
}

.venue-summary .venue-info h3 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.venue-summary .venue-info p {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
}

.venue-summary .venue-info .venue-theme {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.venue-summary .venue-info .venue-location {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* タブセッションリスト */
.tab-sessions-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.tab-session-item {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--ease-default);
}

.tab-session-item:hover {
  border-color: var(--color-text);
}

.tab-session-header {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
  padding: var(--space-s) var(--space-m);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

/* 会場別ヘッダーカラー - シンプル化 */
[data-venue="A"] .tab-session-header,
[data-venue="B"] .tab-session-header,
[data-venue="C"] .tab-session-header,
[data-venue="D"] .tab-session-header,
[data-venue="E"] .tab-session-header,
[data-venue="F"] .tab-session-header,
[data-venue="G"] .tab-session-header,
[data-venue="H"] .tab-session-header,
[data-venue="J"] .tab-session-header,
[data-venue="K"] .tab-session-header,
[data-venue="L"] .tab-session-header {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
}

.tab-session-header .session-code {
  font-size: var(--text-xl);
  font-weight: 600;
}

.tab-session-header .time-slot {
  font-size: var(--text-sm);
  opacity: 0.9;
}

.tab-session-body {
  padding: var(--space-m);
}

.tab-session-body h3 {
  font-size: var(--text-xl);
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: var(--space-s);
  color: var(--color-text);
}

.tab-session-body .description {
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-bottom: var(--space-m);
}

.tab-session-speakers {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-m);
}

.tab-session-speakers h4 {
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--color-text-muted);
  margin-bottom: var(--space-s);
  font-weight: 500;
}

.speakers-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: var(--space-s);
}

.speaker-item {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-s);
  background-color: var(--color-bg);
  transition: var(--ease-default);
  border: 1px solid var(--color-border);
  min-width: 0;
  overflow: hidden;
}

.speaker-item:hover {
  border-color: var(--color-text);
}

.speaker-item img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.speaker-item-info {
  min-width: 0;
  overflow: hidden;
}

.speaker-item-info h5 {
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 0.125rem;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.speaker-item-info p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.speaker-item-info .affiliation {
  font-size: var(--text-xs);
  color: var(--color-text-sub);
  margin-top: 0.25rem;
  line-height: 1.4;
  min-height: calc(var(--text-xs) * 1.4 * 3); /* 3行分の高さを確保 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.speaker-item a {
  text-decoration: none; /* 登壇者カード内は下線なし */
}

/* ========================================
   Venue Page
======================================== */
.venue-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  margin-bottom: var(--space-l);
}

.venue-nav a {
  display: inline-block;
  padding: 1rem 1.5rem; /* パディング拡大 */
  background-color: var(--color-bg);
  color: var(--color-text);
  font-weight: 400;
  font-size: var(--text-sm);
  transition: var(--ease-default);
  border: 2px solid var(--color-border); /* ボーダー太く */
  letter-spacing: 0.1em;
  text-decoration: none; /* ナビボタンには下線不要 */
}

.venue-nav a:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.venue-nav a.active {
  background-color: #141413;
  color: #ffffff;
  border-color: #141413;
}

.venue-sessions {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.venue-session {
  background-color: var(--color-bg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.venue-session-header {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
  padding: var(--space-s) var(--space-m);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.venue-session-body {
  padding: var(--space-m);
}

.venue-session-body h3 {
  font-size: var(--text-xl);
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: var(--space-s);
}

.venue-session-body .description {
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-bottom: var(--space-m);
}

.venue-session-speakers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-s);
}

.venue-speaker {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-s);
  background-color: var(--color-bg);
  transition: var(--ease-default);
  border: 1px solid var(--color-border);
}

.venue-speaker:hover {
  border-color: var(--color-text);
}

.venue-speaker img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.venue-speaker-info h4 {
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 0.125rem;
}

.venue-speaker-info p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ========================================
   Modal
======================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--ease-default);
  padding: var(--space-s);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--color-bg);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: var(--ease-default);
  border: 1px solid var(--color-border);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
  padding: var(--space-m);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
  font-size: var(--text-xl);
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-text);
  flex: 1;
  padding-right: var(--space-s);
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.modal-close {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--ease-fast);
  flex-shrink: 0;
}

.modal-close:hover {
  border-color: var(--color-text);
}

.modal-body {
  padding: var(--space-m);
}

.modal-section {
  margin-bottom: var(--space-m);
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h4 {
  font-size: var(--text-xs);
  font-family: var(--font-body);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ========================================
   Footer - 白基調シンプルスタイル
======================================== */
.footer {
  background-color: var(--color-bg);
  color: var(--color-text);
  padding: var(--space-xl) 0 var(--space-l);
  margin-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-l);
}

.footer-section h3 {
  color: var(--color-text);
  font-size: var(--text-lg);
  font-family: var(--font-heading);
  font-weight: 400;
  margin-bottom: var(--space-s);
  letter-spacing: 0.15em;
}

.footer-section p {
  line-height: 2;
  font-size: var(--text-sm);
  color: var(--color-text-sub);
}

.footer-section a {
  color: var(--color-text);
  transition: color var(--ease-fast);
}

.footer-section a:hover {
  color: var(--color-text-sub);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  font-size: var(--text-sm);
  display: inline-block;
  padding: 0.5rem 0; /* パディング拡大 */
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-bottom p {
  margin-bottom: var(--space-xs);
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Back to Top Button - シンプルな黒スタイル
======================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  background-color: #141413;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--ease-default);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #333333;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   Scroll Animations
======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1023px) {
  :root {
    --text-4xl: 2.5rem;
    --text-3xl: 1.75rem;
    --text-2xl: 1.375rem;
  }

  .container {
    padding: 0 var(--space-m);
  }

  .section {
    padding: calc(var(--space-xl) * 0.75) 0;
  }

  .sessions-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .speakers-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 767px) {
  :root {
    --text-4xl: 2rem;
    --text-3xl: 1.5rem;
    --text-2xl: 1.25rem;
    --text-xl: 1.125rem;
  }

  html {
    font-size: 17px; /* モバイルでも十分な大きさを維持: 15px→17px */
  }

  .container {
    padding: 0 var(--space-s);
  }

  .section {
    padding: var(--space-l) 0;
  }

  .header {
    height: auto;
    min-height: var(--header-height);
  }

  .header-inner {
    flex-wrap: wrap;
    padding: var(--space-s) 0;
  }

  .logo {
    font-size: var(--text-lg);
  }

  .logo-img {
    height: 28px;
  }

  .logo span {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: var(--space-s);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-s);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: var(--space-s);
    text-align: center;
  }

  .nav a::after {
    display: none;
  }

  .page-header {
    padding: var(--space-l) 0;
  }

  .page-header h1 {
    font-size: var(--text-3xl);
  }

  .sessions-grid,
  .speakers-grid {
    grid-template-columns: 1fr;
  }

  .filter-group {
    flex-direction: column;
  }

  .filter-group label {
    width: 100%;
  }

  .filter-group select {
    flex: 1;
  }

  .venue-nav {
    flex-direction: column;
  }

  .venue-nav a {
    text-align: center;
  }

  .venue-tabs-header {
    gap: 0.375rem;
    padding: 0.5rem;
  }

  .venue-tab {
    min-width: 40px;
    padding: 0.625rem 0.5rem;
    font-size: var(--text-xs);
  }

  .venue-tab small {
    font-size: 0.625rem;
  }

  .speakers-list {
    grid-template-columns: 1fr;
  }

  .speaker-item img {
    width: 48px;
    height: 48px;
  }

  .modal {
    width: 100%;
    max-height: 90vh;
    margin-top: auto;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
  }
}

/* Touch Targets - 60代以上向けアクセシビリティ強化 */
/* すべてのデバイスでタッチターゲットを大きく */
.venue-tab,
.btn-primary,
.btn-secondary,
.nav a,
.speaker-tag,
.session-tag,
.venue-nav a,
.footer-links a,
.breadcrumb-list a {
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (pointer: coarse) {
  .venue-tab,
  .btn-primary,
  .btn-secondary,
  .nav a,
  .speaker-tag,
  .session-tag {
    min-height: 52px;
    min-width: 52px;
  }
}

/* ========================================
   Accessibility - 60代以上向け強化
======================================== */
:focus-visible {
  outline: 4px solid #0066cc; /* より太く、明確な青色 */
  outline-offset: 4px;        /* より離して見やすく */
  border-radius: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* キーボードナビゲーション時のフォーカス強調 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 4px solid #0066cc;
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(0, 102, 204, 0.15);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-s);
  background: var(--color-primary);
  color: #ffffff;
  padding: var(--space-xs) var(--space-s);
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  z-index: 9999;
  transition: top var(--ease-fast);
}

.skip-link:focus {
  top: 0;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   Utility Classes
======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-xs { margin-top: var(--space-xs); }
.mt-s { margin-top: var(--space-s); }
.mt-m { margin-top: var(--space-m); }
.mt-l { margin-top: var(--space-l); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-s { margin-bottom: var(--space-s); }
.mb-m { margin-bottom: var(--space-m); }
.mb-l { margin-bottom: var(--space-l); }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Loading State */
.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* No Results */
.no-results {
  text-align: center;
  padding: var(--space-xl) var(--space-m);
  color: var(--color-text-muted);
}

.no-results h3 {
  margin-bottom: var(--space-s);
  color: var(--color-text-sub);
  font-family: var(--font-body);
  font-weight: 500;
}

/* タイムテーブルページ専用 - PC時はコンテナ幅を広げる */
@media (min-width: 1024px) {
  [data-page="timetable"] main .container {
    max-width: 1600px;
  }
}

/* ========================================
   Loading Animation
======================================== */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-bg-dark);
  border-radius: 50%;
  border-top-color: var(--color-primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  gap: var(--space-s);
}

.loading-container p {
  color: var(--color-text-muted);
}
