/* =====================================================
   採点侍 — MkDocs Material テーマ カスタムCSS
   スクールカラー: 水色 (#29ABE2) + オレンジ (#F5921B)
   ===================================================== */

/* --- カラーパレット定義 --- */
:root,
[data-md-color-scheme="default"] {
  --md-primary-fg-color:        #29ABE2;
  --md-primary-fg-color--light: #5CC8F0;
  --md-primary-fg-color--dark:  #1A8DBF;
  --md-accent-fg-color:         #F5921B;
  --md-accent-fg-color--transparent: rgba(245, 146, 27, 0.12);
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color:        #29ABE2;
  --md-primary-fg-color--light: #5CC8F0;
  --md-primary-fg-color--dark:  #1A8DBF;
  --md-accent-fg-color:         #F5921B;
  --md-accent-fg-color--transparent: rgba(245, 146, 27, 0.12);
}

/* --- 日本語テキストの可読性向上 --- */
.md-typeset {
  font-size: 0.85rem;
  line-height: 1.85;
  color: #2d2d2d;
}

[data-md-color-scheme="slate"] .md-typeset {
  color: #d8d8d8;
}

/* --- 見出し: 太く・濃く・読みやすく --- */
.md-typeset h1 {
  font-weight: 800;
  color: #1a1a1a;
  font-size: 1.8em;
  border-bottom: 3px solid var(--md-primary-fg-color);
  padding-bottom: 0.3em;
}

.md-typeset h2 {
  font-weight: 700;
  color: #222;
  font-size: 1.45em;
  border-bottom: 2px solid var(--md-primary-fg-color--light);
  padding-bottom: 0.2em;
}

.md-typeset h3 {
  font-weight: 700;
  color: #333;
  font-size: 1.2em;
}

.md-typeset h4 {
  font-weight: 600;
  color: #444;
}

[data-md-color-scheme="slate"] .md-typeset h1 {
  color: #f0f0f0;
}

[data-md-color-scheme="slate"] .md-typeset h2 {
  color: #e0e0e0;
}

[data-md-color-scheme="slate"] .md-typeset h3 {
  color: #d0d0d0;
}

/* --- リンク --- */
.md-typeset a {
  color: var(--md-accent-fg-color);
  font-weight: 500;
}

.md-typeset a:hover {
  color: #d47a10;
  text-decoration: underline;
}

/* --- テーブルの読みやすさ向上 --- */
.md-typeset table:not([class]) th {
  background-color: var(--md-primary-fg-color);
  color: #fff;
  font-weight: 700;
  min-width: 6em;
}

.md-typeset table:not([class]) td {
  color: #333;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) td {
  color: #d0d0d0;
}

/* --- 画像の表示スタイル --- */
.md-typeset img {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.md-typeset .screenshot {
  display: block;
  margin: 1em auto;
  max-width: 600px;
}

.md-typeset .screenshot-wide {
  display: block;
  margin: 1em auto;
  max-width: 800px;
}

.md-typeset .screenshot-small {
  display: block;
  margin: 1em auto;
  max-width: 400px;
}

/* --- キャプション --- */
.md-typeset .caption {
  display: block;
  text-align: center;
  font-size: 0.82em;
  color: #777;
  margin-top: -0.5em;
  margin-bottom: 1.5em;
}

/* --- ヒーローセクション（トップページ用） --- */
.hero {
  text-align: center;
  padding: 2em 1em 1em;
}

.hero h1 {
  border-bottom: none !important;
  font-size: 2.2em;
  color: var(--md-primary-fg-color--dark);
}

.hero .tagline {
  font-size: 1.25em;
  color: #555;
  margin-bottom: 1.5em;
  line-height: 1.7;
}

[data-md-color-scheme="slate"] .hero .tagline {
  color: #bbb;
}

.hero .hero-logo {
  width: 150px;
  box-shadow: none;
  margin-bottom: 0.5em;
}

/* --- ダウンロードボタン --- */
.btn-download {
  display: inline-block;
  background: linear-gradient(135deg, #F5921B, #e67e10);
  color: #fff !important;
  padding: 0.75em 2em;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 10px rgba(245, 146, 27, 0.35);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 146, 27, 0.45);
  color: #fff !important;
}

/* --- 機能カード（トップページ / 機能一覧） --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2em;
  margin: 1.5em 0;
}

.feature-card {
  background: #f8fbfd;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.2em 1.4em;
  transition: box-shadow 0.2s;
  border-left: 4px solid var(--md-primary-fg-color);
}

.feature-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

[data-md-color-scheme="slate"] .feature-card {
  background: #2a2d32;
  border-color: #444;
}

.feature-card h3 {
  margin-top: 0 !important;
  font-size: 1.05em;
  color: var(--md-primary-fg-color--dark);
}

[data-md-color-scheme="slate"] .feature-card h3 {
  color: var(--md-primary-fg-color--light);
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.9em;
}

/* --- バッジスタイル --- */
.badge {
  display: inline-block;
  padding: 0.15em 0.6em;
  border-radius: 4px;
  font-size: 0.78em;
  font-weight: 700;
}

.badge-blue {
  background: var(--md-primary-fg-color);
  color: #fff;
}

.badge-orange {
  background: var(--md-accent-fg-color);
  color: #fff;
}

/* --- ステップ表示改善 --- */
.md-typeset ol li {
  margin-bottom: 0.6em;
}

/* --- admonition の微調整 --- */
.md-typeset .admonition,
.md-typeset details {
  font-size: 0.88rem;
}

/* --- フッター --- */
.md-footer {
  background: #1A8DBF;
}

/* --- ナビゲーションタブ --- */
.md-tabs {
  background: var(--md-primary-fg-color--dark);
}
