/* ============================================================
   EliLicense ランディング／複数画面共通スタイル
   （EliDoc から流用の style.css に、多画面レイアウト用を追加）
   ============================================================ */

/* EliLicense 独自のセマンティックカラー（指示書 §4） */
:root {
  --fi-pass: #4a7c59;
  --fi-fail: #a34747;
}

/* body デフォルト（style.css の height:100vh; overflow:hidden を上書き）*/
body.landing,
body.exam,
body.page {
  height: auto;
  min-height: 100vh;
  overflow: auto;
  background: var(--fi-main-bg);
  display: flex;
  flex-direction: column;
}

/* ============ サイトヘッダー ============ */
.site-header {
  background: var(--fi-navy-dark);
  color: var(--fi-off-white);
  border-bottom: 3px solid var(--fi-gold);
  flex-shrink: 0;
}
.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--fi-gold);
  letter-spacing: 3px;
  line-height: 1;
}
.brand-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1px;
}
.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: var(--fi-gold);
}
.nav-link.muted {
  color: rgba(255,255,255,0.35);
  font-size: 11px;
}

/* ============ ランディング メイン ============ */
.landing-main {
  flex: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* --- ヒーロー --- */
.hero {
  text-align: center;
  padding: 40px 0 32px;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 500;
  color: var(--fi-navy);
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.hero-lead {
  font-size: 15px;
  color: var(--fi-text);
  line-height: 1.8;
  margin-bottom: 12px;
}
.hero-note {
  font-size: 12px;
  color: var(--fi-text-light);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}
.sp-only { display: none; }

/* --- カテゴリカード --- */
.categories {
  margin: 24px 0 48px;
}
.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--fi-text-light);
  padding: 40px;
  font-size: 13px;
}

.category-card {
  background: var(--fi-white);
  border: 1px solid var(--fi-border);
  border-radius: 10px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(26,39,68,0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,39,68,0.1);
  border-color: var(--fi-gold);
}
.cc-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fi-border);
}
.cc-badge {
  font-size: 10px;
  color: var(--fi-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.cc-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  color: var(--fi-navy);
  font-weight: 500;
}
.cc-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.cc-spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
}
.cc-spec dt {
  color: var(--fi-text-light);
  font-size: 12px;
}
.cc-spec dd {
  color: var(--fi-text);
  font-weight: 500;
  margin: 0;
}
.cc-desc {
  font-size: 12px;
  color: var(--fi-text-light);
  line-height: 1.6;
  margin: 4px 0 0;
  min-height: 42px;
}
.cc-start {
  margin-top: auto;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
}

/* デモ版カードだけ強調枠 */
.category-card[data-code="demo"] {
  background: linear-gradient(180deg, #fffcf7 0%, var(--fi-white) 60%);
}
.category-card[data-code="demo"] .cc-badge::before {
  content: '★ ';
}

/* --- 情報ブロック --- */
.info-block {
  background: var(--fi-drop-bg);
  border-radius: 8px;
  padding: 28px 24px;
  border: 1px solid var(--fi-border);
}
.info-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--fi-navy);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.flow-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.flow-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--fi-white);
  border: 1px solid var(--fi-border);
  border-radius: 20px;
  padding: 6px 14px 6px 6px;
  font-size: 12px;
  color: var(--fi-text);
}
.step-num {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--fi-navy);
  color: var(--fi-off-white);
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.step-label {
  line-height: 1.3;
}

/* ============ フッター ============ */
.site-footer {
  background: var(--fi-navy-dark);
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  margin-top: auto;
}
.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-issuer {
  color: rgba(255,255,255,0.75);
}
.footer-copy {
  color: rgba(255,255,255,0.35);
}

/* ============ レスポンシブ ============ */
@media (max-width: 900px) {
  .category-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .hero-title {
    font-size: 34px;
    letter-spacing: 2px;
  }
  .hero-lead {
    font-size: 14px;
  }
  .sp-only {
    display: inline;
  }
  .site-header-inner {
    padding: 12px 16px;
  }
  .landing-main {
    padding: 24px 16px 40px;
  }
  .flow-steps {
    gap: 8px;
  }
  .flow-steps li {
    font-size: 11px;
    padding: 4px 10px 4px 4px;
  }
  .step-num {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .brand-mark { font-size: 22px; }
  .brand-sub { font-size: 10px; }
  .site-nav { gap: 8px; }
  .nav-link { font-size: 11px; padding: 4px 6px; }
  .hero { padding: 20px 0 16px; }
  .hero-title { font-size: 28px; }
  .info-block { padding: 20px 16px; }
}
