/* ===================================
   教育における生成AI活用推進リーダープログラム
   Demo 準拠デザイン
   ネイビー + オレンジ、写真ヒーロー
   =================================== */

:root {
  /* === カラー === */
  --primary: #E65100;
  --primary-light: #FF9800;
  --accent: #0D47A1;
  --dark-bg: #0a192f;
  --text: #333;
  --text-light: rgba(255,255,255,0.85);
  --light-gray: #f4f4f4;
  --border: #ddd;
  --white: #ffffff;

  /* === フォント === */
  --font: 'Noto Sans JP', sans-serif;

  /* === レイアウト === */
  --max-width: 1000px;
  --header-height: 70px;
  --section-padding: 80px;
  --radius: 10px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); color: var(--text); line-height: 1.8; font-size: 1rem; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Container --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===================================
   ボタン
   =================================== */
.btn {
  display: inline-block; padding: 12px 30px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white); text-decoration: none; border-radius: 50px;
  font-weight: bold; font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(230, 81, 0, 0.3);
  border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230, 81, 0, 0.5); }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-primary { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: var(--white); }
.btn-large { font-size: 1.2rem; padding: 15px 50px; }

/* ===================================
   ヘッダー
   =================================== */
.header {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: var(--header-height);
  max-width: none; padding: 0 40px;
}
.logo {
  font-weight: 900;
  font-size: clamp(0.9rem, 1.3vw, 1.15rem);
  line-height: 1.2;
  color: var(--accent);
  flex-shrink: 0;
  max-width: 360px;
}
.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 1rem; white-space: nowrap; position: relative; }
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2.5px; background: var(--primary); border-radius: 2px;
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.3s ease;
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.btn { color: var(--white); font-weight: bold; }
.nav a.btn:hover { color: var(--white); }
.nav a.btn::after { display: none; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 0;
}
.hamburger span { display: block; width: 100%; height: 2px; background: var(--text); transition: all 0.3s; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5.5px, 5.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5.5px, -5.5px); }

/* ===================================
   ヒーロー
   =================================== */
.hero {
  height: 90vh; background-size: cover; background-position: center;
  position: relative; display: flex; align-items: center;
  margin-top: var(--header-height);
  background-color: var(--dark-bg);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.4));
}
.hero-content {
  position: relative; color: var(--white);
  max-width: 760px; margin-left: 10%;
}
.hero-tag {
  background: var(--primary); padding: 5px 15px;
  font-size: 0.9rem; font-weight: bold; border-radius: 4px;
  display: inline-block; margin-bottom: 20px;
}
.hero-label {
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--primary-light); margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.3;
  margin: 0 0 20px;
  font-weight: 900;
}
.hero-text { font-size: 1.1rem; margin-bottom: 40px; opacity: 0.9; line-height: 1.9; }

/* ===================================
   セクション共通
   =================================== */
.section { padding: var(--section-padding) 0; }
.section-gray { background: var(--light-gray); }
.section-dark { background: var(--dark-bg); color: var(--white); }
.cta-section {
  background: linear-gradient(135deg, #1a237e, #0d47a1);
  color: var(--white); text-align: center; padding: var(--section-padding) 0;
}

.section-title {
  font-size: 2rem; font-weight: 900; text-align: center;
  margin-bottom: 50px; color: var(--accent); position: relative;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 4px;
  background: var(--primary); margin: 20px auto 0;
}
.section-title.text-white { color: var(--white); }
.section-title.text-white::after { background: var(--primary-light); }

/* --- Section body (markdown) --- */
.section-body { max-width: 800px; margin: 0 auto; }
.section-body p { margin-bottom: 1.2em; }
.section-body h3 {
  font-size: 1.3rem; font-weight: 900; color: var(--accent);
  margin-top: 2em; margin-bottom: 0.6em;
  padding-bottom: 8px; border-bottom: 2px solid var(--border);
}
.section-body ul, .section-body ol { margin-bottom: 1.2em; padding-left: 1.5em; }
.section-body ul { list-style: disc; }
.section-body ol { list-style: decimal; }
.section-body li { margin-bottom: 0.4em; }
.section-body strong { font-weight: 700; }
.section-body h4 {
  font-size: 1.1rem; font-weight: 700; color: var(--accent);
  margin-top: 1.5em; margin-bottom: 0.4em;
}

.text-white-opacity { color: rgba(255,255,255,0.85); }
.text-white-opacity h3 { color: var(--white); border-bottom-color: rgba(255,255,255,0.2); }
.text-white-opacity h4 { color: rgba(255,255,255,0.95); }
.text-white-opacity strong { color: var(--white); }

/* section-body — ダークセクション */
.section-dark .section-body { color: rgba(255,255,255,0.85); }
.section-dark .section-body h3 { color: var(--primary-light); border-bottom-color: rgba(255,255,255,0.15); }
.section-dark .section-body h4 { color: rgba(255,255,255,0.95); }
.section-dark .section-body strong { color: var(--white); }

/* ===================================
   カード（特徴・メリット）
   =================================== */
.features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
}
.feature-card {
  background: var(--white); padding: 40px 30px; border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center;
  border-top: 5px solid var(--primary); transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }
.icon-box { font-size: 3rem; margin-bottom: 20px; }
.feature-card h3 { color: var(--accent); font-size: 1.2rem; margin-bottom: 12px; font-weight: 900; }
.feature-card p { font-size: 0.95rem; color: #555; line-height: 1.7; }

/* ===================================
   サブセクション（カリキュラム等）
   =================================== */
.subsection {
  background: rgba(255,255,255,0.06); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 20px;
}
.section-gray .subsection { background: var(--white); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.section:not(.section-dark):not(.section-gray) .subsection { background: var(--light-gray); }

.subsection-header {
  padding: 18px 24px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.section-dark .subsection-header { border-bottom-color: rgba(255,255,255,0.1); }
.subsection-tag {
  font-size: 0.8rem; font-weight: 700; padding: 4px 12px;
  border-radius: 50px; background: var(--primary); color: var(--white);
}
.subsection-title { font-size: 1.15rem; font-weight: 900; }
.section-dark .subsection-title { color: var(--white); }
.subsection-body { padding: 24px; }
.subsection-body p { margin-bottom: 1em; }
.subsection-body h3 {
  font-size: 1.1rem; font-weight: 900; color: var(--accent);
  margin-top: 1.5em; margin-bottom: 0.5em; border-bottom: none; padding-bottom: 0;
}
.section-dark .subsection-body h3 { color: var(--primary-light); }
.section-dark .subsection-body { color: rgba(255,255,255,0.85); }
.subsection-body ul { list-style: disc; padding-left: 1.5em; margin-bottom: 1em; }
.subsection-body li { margin-bottom: 0.4em; }

/* ===================================
   スプリットレイアウト（テキスト＋画像）
   =================================== */
.split-layout { display: flex; align-items: center; gap: 50px; }
.split-layout--reverse { flex-direction: row-reverse; }
.split-text { flex: 1; }
.split-text p { margin-bottom: 1em; }
.split-text h3 {
  font-size: 1.2rem; font-weight: 900; color: var(--accent);
  margin-top: 1.5em; margin-bottom: 0.5em;
}
.split-text ul { list-style: none; padding: 0; margin-top: 24px; }
.split-text li {
  padding-left: 28px; position: relative; margin-bottom: 12px; font-weight: 700;
}
.split-text li::before {
  content: '✔'; color: var(--primary); position: absolute; left: 0;
}
.section-dark .split-text h3 { color: var(--primary-light); }
.split-image { flex: 1; }
.split-image img { width: 100%; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

/* ===================================
   テーブル
   =================================== */
.info-table { width: auto; border-collapse: collapse; margin: 0 auto; }
.info-table th, .info-table td { padding: 12px 20px; border-bottom: 1px solid var(--border); text-align: left; }
.info-table thead th { background: var(--light-gray); color: var(--accent); font-weight: 900; }
.info-table th { background: var(--light-gray); color: var(--accent); font-weight: 700; }
.info-table tr:hover td { background: rgba(13, 71, 161, 0.03); }
.table-note { text-align: center; font-size: 0.85rem; color: #888; margin-top: 16px; }

/* テーブル — ダークセクション */
.section-dark .info-table th, .section-dark .info-table td { border-bottom-color: rgba(255,255,255,0.1); }
.section-dark .info-table thead th { background: rgba(255,255,255,0.08); color: var(--primary-light); }
.section-dark .info-table th { background: rgba(255,255,255,0.08); color: var(--primary-light); }
.section-dark .info-table td { color: rgba(255,255,255,0.85); }
.section-dark .info-table tr:hover td { background: rgba(255,255,255,0.04); }
.section-dark .table-note { color: rgba(255,255,255,0.5); }

/* ===================================
   チーム
   =================================== */
.team-grid { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.team-member { display: flex; align-items: flex-start; gap: 20px; max-width: 420px; }
.team-member-avatar {
  width: 100px; height: 100px; flex-shrink: 0;
  background: var(--light-gray); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #999;
}
.team-member-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.team-member-avatar svg { width: 44px; height: 44px; }
.team-member-name { font-size: 1.15rem; font-weight: 900; margin-bottom: 2px; }
.team-member-affiliation { font-size: 0.85rem; color: #666; margin-bottom: 2px; }
.team-member-role { font-size: 0.85rem; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.team-member-comment {
  background: var(--light-gray); border-left: 3px solid var(--primary);
  padding: 14px 18px; border-radius: 0 6px 6px 0;
  font-size: 0.95rem; color: #555; font-style: normal; margin: 0;
}
.team-org { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); }
.team-org-label { font-size: 0.85rem; color: #888; margin-bottom: 4px; }
.team-org-name { font-size: 1.1rem; font-weight: 900; color: var(--accent); }

/* チーム — ダークセクション */
.section-dark .team-member-avatar { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); }
.section-dark .team-member-name { color: var(--white); }
.section-dark .team-member-affiliation { color: rgba(255,255,255,0.6); }
.section-dark .team-member-role { color: var(--primary-light); }
.section-dark .team-member-comment { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); }
.section-dark .team-org { border-top-color: rgba(255,255,255,0.15); }
.section-dark .team-org-label { color: rgba(255,255,255,0.5); }
.section-dark .team-org-name { color: var(--primary-light); }

/* ===================================
   CTA セクション
   =================================== */
.cta-section .section-title { color: var(--white); }
.cta-section .section-title::after { background: var(--primary-light); }
.cta-block { text-align: center; }
.cta-period { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.cta-text { margin-bottom: 30px; }

/* ===================================
   フッター
   =================================== */
.footer {
  background: #111; color: #666; text-align: center; padding: 20px 0; font-size: 0.8rem;
}

/* ===================================
   レスポンシブ
   =================================== */
@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  .logo { max-width: calc(100% - 56px); }
  .hamburger { display: flex; }
  .nav {
    position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(8px);
    flex-direction: column; align-items: center; justify-content: center; gap: 24px;
    transform: translateX(100%); transition: transform 0.4s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.2rem; }

  .hero { height: 100svh; }
  .hero-title { font-size: clamp(1.8rem, 7.5vw, 2.4rem); line-height: 1.35; }
  .hero-label { font-size: 0.82rem; letter-spacing: 0.08em; }
  .hero-content { margin-left: 0; text-align: center; padding: 0 20px; }
  .hero-overlay { background: rgba(10, 25, 47, 0.8); }

  .split-layout, .split-layout--reverse { flex-direction: column; }

  .info-table th, .info-table td { padding: 10px 12px; font-size: 0.9rem; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .team-member { flex-direction: column; align-items: center; text-align: center; }
  .team-member-comment { border-left: none; border-top: 3px solid var(--primary); border-radius: 0 0 6px 6px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
}
