/* ===================================================
   speech-data.jp / kaken_hiryu スタイル統合版
   =================================================== */

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

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

:root {
  --site-header-bg:   #003366;
  --site-header-text: #ffffff;
  --site-nav-bg:      #4a7aaa;
  --site-nav-hover:   #daa520;
  --site-nav-text:    #ffffff;
  --site-link:        #003366;
  --site-border:      #336699;
  --content-max:      960px;

  --slide-navy:       #1a3a5c;
  --slide-teal:       #006060;
  --slide-teal-light: #e0f0f0;
  --slide-red:        #cc0000;
  --slide-gold:       #b8a030;
  --slide-gold-light: #fdf8e0;
  --slide-gray-light: #f5f5f5;
  --slide-gray-border:#cccccc;

  --font-serif: 'Noto Serif JP', 'ヒラギノ明朝 Pro', 'HiraMinPro-W3', serif;
  --font-sans:  'Noto Sans JP', 'ヒラギノ角ゴ Pro', 'Meiryo', sans-serif;
}

/* ===================================================
   全体ベース
   =================================================== */
body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.75;
  color: #222;
  background: #f0f0f0;
  margin: 0;
  padding: 0;
}

a { color: var(--site-link); text-decoration: underline; }
a:hover { text-decoration: none; }

/* ===================================================
   ヘッダー
   =================================================== */
#header {
  background: var(--site-header-bg);
  padding: 14px 24px;
}

#header h1 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--site-header-text);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

#header h1 a {
  color: var(--site-header-text);
  text-decoration: none;
}

/* ===================================================
   ナビゲーション
   =================================================== */
#nav { background: #f0f0f0; }

#nav ul li.nav-lang { margin-left: auto; }

#nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0;
  background: var(--site-nav-bg);
}

#nav ul li a {
  display: block;
  padding: 9px 18px;
  color: var(--site-nav-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-right: 1px solid rgba(255,255,255,0.25);
  transition: background 0.15s;
}

#nav ul li:first-child a { border-left: 1px solid rgba(255,255,255,0.25); }

#nav ul li a:hover,
#nav ul li a.active { background: var(--site-nav-hover); color: #003366; text-decoration: none; }

/* ===================================================
   メインラッパー — 汎用タイポグラフィ
   =================================================== */
#wrapper {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px 20px 40px;
  background: #ffffff;
  min-height: 400px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* h2：ページタイトル */
#wrapper h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--site-header-bg);
  border-bottom: 2px solid var(--site-border);
  padding-bottom: 6px;
  margin-bottom: 20px;
}

/* h3：セクション見出し（基本情報・トップページ共通） */
#wrapper h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--site-header-bg);
  border-left: 4px solid var(--site-nav-bg);
  padding: 4px 10px;
  margin: 24px 0 10px;
  background: #f4f8fc;
}

/* h4：サブ見出し */
#wrapper h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--site-header-bg);
  background: #e8f0f8;
  border-bottom: 1px solid #bcd;
  padding: 4px 8px;
  margin: 14px 0 4px;
}

/* p */
#wrapper p {
  font-size: 13px;
  line-height: 1.85;
  margin-bottom: 10px;
}

/* ul：汎用箇条書き */
#wrapper ul {
  list-style: disc;
  padding: 0 0 0 1.5em;
  margin: 0 0 16px;
}

#wrapper ul li {
  font-size: 13px;
  line-height: 1.75;
  padding: 2px 0;
}

/* page-top リンク */
.page-top {
  text-align: right;
  font-size: 13px;
  margin-top: 16px;
}

/* PDF プレビュー */
.meeting-event-block {
  margin: 14px 0 10px;
  padding: 12px 14px;
  background: #f8fbfd;
  border: 1px solid #d9e7f0;
  border-radius: 6px;
}

.program-with-pdf {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 0 0 18px;
}

.program-text {
  flex: 1 1 auto;
  min-width: 0;
}

.pdf-preview-card {
  flex: 0 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  width: fit-content;
  margin-top: 0px;
}

.pdf-preview-card p {
  margin-bottom: 8px;
}

.pdf-preview-frame {
/*
  width: 220px;
  height: 280px;
 */
  width: 300px;
  height: 400px;
  border: 0;
  background: #ffffff;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.pdf-preview-link {
  text-align: right;
  margin-top: 6px;
  font-size: 12px;
}

/* ===================================================
   スライド共通
   =================================================== */
.slide {
  background: #ffffff;
  border: 2px solid var(--slide-teal);
  padding: 20px 24px 24px;
  margin-bottom: 36px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* スライド内のul・pはリセット（汎用スタイルを上書き） */
.slide p, .slide ul, .slide li {
  font-size: 13px;
}

.slide ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.slide ul li {
  padding: 2px 0;
  border-bottom: 1px solid #eee;
}

.slide ul li:last-child { border-bottom: none; }

/* ===================================================
   カテゴリラベル
   =================================================== */
.category-label {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--slide-navy);
  background: var(--slide-teal-light);
  border: 2px solid var(--slide-teal);
  padding: 3px 12px;
  margin-bottom: 10px;
  font-family: var(--font-serif);
}

/* ===================================================
   研究タイトル
   =================================================== */
.research-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--slide-navy);
  background: var(--slide-gold-light);
  border-left: 5px solid var(--slide-gold);
  padding: 8px 14px;
  margin-bottom: 16px;
  font-family: var(--font-serif);
  line-height: 1.6;
}

/* ===================================================
   研究者情報テーブル
   =================================================== */
.researcher-table-wrapper {
  display: flex;
  border: 1.5px solid var(--slide-gray-border);
  margin-bottom: 16px;
}

.researcher-photo {
  width: 88px;
  min-width: 88px;
  min-height: 100px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #666;
  text-align: center;
  padding: 0;
  border-right: 1.5px solid var(--slide-gray-border);
  overflow: hidden;
}

.researcher-info-table {
  flex: 1;
  border-collapse: collapse;
  font-size: 13px;
}

.researcher-info-table td {
  padding: 5px 10px;
  border: 1px solid var(--slide-gray-border);
  vertical-align: top;
}

.researcher-info-table .label-cell {
  background: var(--slide-gray-light);
  font-weight: 700;
  white-space: nowrap;
  min-width: 78px;
}

.researcher-info-table .name-cell { font-size: 14px; font-weight: 700; }

/* ===================================================
   セクション見出し帯（スライド内）
   =================================================== */
.section-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--slide-teal);
  background: var(--slide-teal-light);
  border: 1.5px solid var(--slide-teal);
  padding: 5px 12px;
  margin-bottom: 12px;
  font-family: var(--font-serif);
}

.slide-2-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--slide-teal);
  background: var(--slide-teal-light);
  border: 1.5px solid var(--slide-teal);
  padding: 6px 14px;
  margin-bottom: 16px;
  font-family: var(--font-serif);
}

/* ===================================================
   ● 見出し（スライド内）
   =================================================== */
.bullet-heading {
  font-size: 14px;
  font-weight: 700;
  margin: 14px 0 6px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.bullet-heading::before { content: '●'; font-size: 13px; }

/* ===================================================
   本文（スライド内）
   =================================================== */
.body-text {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* ===================================================
   図1：研究全体のイメージ図
   =================================================== */
.figure-container {
  border: 2px solid #333;
  padding: 14px 16px 10px;
  margin: 14px 0;
}

.figure-caption { font-size: 12px; margin-top: 8px; }

.project-block {
  border: 2px solid #333;
  border-radius: 5px;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: #fff;
  position: relative;
}

.project-block-title {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  background: var(--slide-gray-light);
  padding: 3px 8px;
}

.arrow-down { text-align: center; font-size: 20px; line-height: 1.2; margin: 5px 0; color: #333; }

.conclusion-block {
  border: 2px solid #333;
  border-radius: 5px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  background: #fff;
  position: relative;
}

.main-project-area {
  border: 2.5px solid var(--slide-red);
  border-radius: 7px;
  padding: 12px 14px;
  background: #fff;
  position: relative;
  margin-top: 8px;
}

.main-project-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.survey-block {
  border: 2px solid var(--slide-red);
  border-radius: 5px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fff;
  position: relative;
}

.survey-block-label {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--slide-red);
  white-space: nowrap;
}

.survey-item { font-size: 13px; font-weight: 700; color: var(--slide-red); padding: 2px 0; }

.application-block {
  border: 2px solid var(--slide-navy);
  border-radius: 5px;
  padding: 10px 12px;
  background: #fff;
  position: relative;
}

.application-block-label {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--slide-navy);
}

.application-item { font-size: 13px; font-weight: 700; color: var(--slide-navy); padding: 2px 0; }

.arrows-bidirectional {
  display: flex;
  justify-content: center;
  gap: 40px;
  align-items: center;
  margin: 6px 0;
}

/* ===================================================
   スライド2：2カラム
   =================================================== */
.two-column-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 12px 0;
  align-items: start;
}

/* ===================================================
   表1
   =================================================== */
.lang-table {
  border-collapse: collapse;
  font-size: 12px;
  width: 100%;
}

.lang-table th,
.lang-table td {
  border: 1px solid var(--slide-gray-border);
  padding: 4px 8px;
  text-align: left;
  vertical-align: middle;
}

.lang-table th {
  background: var(--slide-navy);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.lang-table caption {
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  caption-side: bottom;
  padding-top: 4px;
}

.lang-table .group-label { background: var(--slide-gray-light); font-weight: 700; }

/* ===================================================
   図2
   =================================================== */
.fluency-diagram {
  border: 2px solid #333;
  border-radius: 5px;
  padding: 12px;
  font-size: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fluency-diagram-title { font-size: 12px; margin-top: 4px; }

.fluency-box-announcer {
  text-align: center;
  border: 2px solid #333;
  padding: 8px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 4px;
}

.fluency-arrow-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.fluency-arrow-q {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  color: #333;
}

.fluency-arrow-q .q-mark { font-size: 14px; font-weight: 700; }
.arr-up { font-size: 20px; line-height: 1; }

.fluency-bottom-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fluency-box-learner,
.fluency-box-native {
  flex: 1;
  border: 2.5px solid var(--slide-red);
  padding: 8px;
  font-weight: 700;
  font-size: 12px;
  color: var(--slide-red);
  text-align: center;
  border-radius: 4px;
}

.fluency-between {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.fluency-arr-right { font-size: 20px; color: var(--slide-red); line-height: 1; }
.fluency-exclaim { font-size: 14px; font-weight: 700; color: var(--slide-red); line-height: 1; }

/* ===================================================
   ウェブサイト欄
   =================================================== */
.website-table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 16px;
  font-size: 13px;
  border: 1.5px solid var(--slide-navy);
}

.website-table td {
  border: 1px solid var(--slide-navy);
  padding: 6px 12px;
}

.website-table .ws-label {
  background: var(--slide-navy);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  width: 100px;
}

.website-table a { color: var(--slide-navy); }

/* ===================================================
   フッター
   =================================================== */
#footer {
  background: var(--site-header-bg);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  text-align: center;
  padding: 14px 20px;
  line-height: 1.8;
}

#footer a { color: rgba(255,255,255,0.9); }

/* ===================================================
   基本情報ページ
   =================================================== */
.kihon-section { margin-bottom: 28px; }

.kihon-note {
  font-size: 12px;
  color: #555;
  margin-bottom: 8px;
  padding-left: 4px;
}

.member-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  margin-bottom: 4px;
}

.member-table td {
  padding: 3px 8px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  line-height: 1.7;
}

.member-table tr:last-child td { border-bottom: none; }

.mark-cell {
  width: 20px;
  text-align: center;
  color: #555;
  white-space: nowrap;
}

.mark-rep { font-weight: 700; color: var(--site-header-bg); }

.kihon-leaders {
  margin-top: 16px;
  padding: 12px 14px;
  background: #f4f8fc;
  border: 1px solid #bcd;
  border-radius: 4px;
  font-size: 13px;
  line-height: 2;
}

.kihon-leaders p { margin-bottom: 8px; }
.kihon-leaders p:last-child { margin-bottom: 0; }

/* ===================================================
   関連プロジェクト リスト
   =================================================== */
#wrapper .project-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

#wrapper .project-list li {
  padding: 12px 0 12px 16px;
  border-bottom: 1px solid #ddd;
  border-left: 3px solid var(--site-nav-bg);
  margin-bottom: 8px;
  background: #fafafa;
  font-size: 14px;
  line-height: 1.8;
}

#wrapper .project-list li a { font-weight: 700; }
#wrapper .project-list li a:hover { color: var(--site-nav-bg); }

/* ===================================================
   トップページ intro帯
   =================================================== */
.top-intro {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #f4f8fc;
  border-left: 4px solid var(--site-nav-bg);
}

.top-contact {
  margin-top: 20px;
  padding: 14px 16px;
  background: #f4f8fc;
  border: 1px solid #bcd;
  border-radius: 4px;
  line-height: 1.9;
  margin-bottom: 16px;
}

/* ===================================================
   ユーティリティ
   =================================================== */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8  { margin-bottom: 8px; }

/* ===================================================
   レスポンシブ
   =================================================== */
@media (max-width: 680px) {
  #header h1 { font-size: 15px; }
  #nav ul li a { padding: 8px 12px; font-size: 12px; }
  #wrapper { padding: 16px 12px 30px; }
  .researcher-table-wrapper { flex-direction: column; }
  .researcher-photo { width: 100%; min-width: unset; height: 60px; border-right: none; border-bottom: 1.5px solid var(--slide-gray-border); }
  .two-column-area { grid-template-columns: 1fr; }
}
