/* theme.css ─ 研究テーマ紹介ページ用 共通スタイル */

/* 見出しデザイン */
.theme-section h1 {
  font-size: 1.6em;
  margin-top: 0.2em;
  margin-bottom: 0.8em;
  border-left: 6px solid #2962c1;
  padding-left: 0.7em;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.theme-section .theme-lead {
  font-size: 1.07em;
  color: #222;
  background: #e7eff5;
  border-radius: 8px;
  padding: 0.8em 1em;
  margin-bottom: 1.6em;
  line-height: 1.8;
  font-weight: 500;
}

.theme-section h2 {
  margin-top: 2em;
  margin-bottom: 0.8em;
  font-size: 1.14em;
  border-left: 4px solid #2962c1;
  padding-left: 0.55em;
  color: #222;
  font-weight: 600;
}

.theme-section ul, .theme-section ol {
  margin: 1em 0 1.6em 1.5em;
  padding: 0;
  line-height: 1.8;
}

.theme-section li {
  margin-bottom: 0.4em;
}

.theme-section p {
  margin: 0 0 1.2em 0;
}

.theme-section img {
  max-width: 98%;
  margin: 1.2em 0;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(80,170,200,0.08);
}

.theme-section a {
  color: #267f90;
  text-decoration: underline;
  transition: color 0.18s;
}
.theme-section a:hover {
  color: #4ADEDE;
  text-decoration: underline;
}

/* セクション全体の余白 */
.theme-section {
  margin: 0 auto 3em auto;
  max-width: 780px;
  padding: 2.5em 1.5em 2em 1.5em;
  background: rgba(231, 239, 245, 0.97);
  border-radius: 18px;
  box-shadow: 0 6px 28px rgba(80,170,200,0.05);
}

@media (prefers-color-scheme: dark) {
  .theme-section {
    background: rgba(30,35,40,0.97);
    color: #d9f8ff;
    box-shadow: 0 6px 28px rgba(79,222,222,0.08);
  }
  .theme-section h1, .theme-section h2 {
    border-color: #34c1c1;
    color: #4ADEDE;
  }
  .theme-section .theme-lead {
    background: #223440;
    color: #222;
  }
  .theme-section a { color: #7fd9e7; }
  .theme-section a:hover { color: #4ADEDE; }
}

/* スマホ対応 */
@media (max-width: 600px) {
  .theme-section {
    padding: 1em 0.4em 1em 0.4em;
    max-width: 99vw;
  }
  .theme-section h1 { font-size: 1.15em; }
  .theme-section h2 { font-size: 1.04em; }
}
