/* =========================================
   リセット & ベーススタイル
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* カラーパレット */
  --primary-blue: #0056b3;
  --text-main: #333333;
  --text-light: #666666;
  --bg-body: #f5f5f5;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;

  /* アクセントカラー */
  --ai-badge-bg: #e8f0fe;
  --ai-badge-text: #1a73e8;
  --step-bg: #8b5cf6;
  --insight-border: #a855f7;
  --insight-text: #6b21a8;

  /* 共通サイズ */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  padding: 0;
  display: block;
  min-height: 100vh;
}

.container {
  width: 100%;
  background-color: var(--bg-white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =========================================
   ヘッダー
   ========================================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-main);
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  padding-bottom: 5px;
}

nav a.active {
  color: var(--primary-blue);
  border-bottom: 2px solid var(--primary-blue);
}

.icon-help {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--text-light);
  border-radius: 50%;
  font-size: 0.75rem;
  color: var(--text-light);
  cursor: pointer;
}

/* =========================================
   フッター（共通：中央揃え・コンパクト）
   ========================================= */
footer {
  display: block;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.75em;
  color: #888;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.footer-left .logo-footer {
  font-weight: bold;
  color: var(--primary-blue);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.footer-left p {
  font-size: 0.75rem;
  color: var(--text-light);
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  font-size: 0.75rem;
  color: var(--text-light);
  text-decoration: underline;
}

/* =========================================
   共通ヘッダー（中央揃え・コンパクト）
   ========================================= */
.academic-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
  background-color: #ffffff;
}

.header-img {
  max-width: 22%;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
