/* ============================
   ページ全体構成（sticky footer）
============================ */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 画面全体を確保 */
  margin: 0;
}

/* 固定ヘッダー分の上余白（JSで動的に上書き） */
:root {
  --gd-header-height: 56px; /* デフォルト（Bootstrap標準ナビ高さ） */
}
body {
  padding-top: var(--gd-header-height);
}

main {
  flex: 1; /* コンテンツ部分を自動で拡張 */
}

/* 余白調整（footer直下に余白を作らない） */
footer {
  margin-top: auto;
}

/* ============================
   result.html 専用スタイル（スコープ付き）
   - 既存画面への副作用を避けるため、body.result-page 配下に限定
============================ */
/* ページ背景色 */
body.result-page {
  background-color: #f8f9fa;
}

/* カードの角丸＆影 */
body.result-page .card {
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* フッターの見た目（result ページのみ） */
body.result-page footer {
  background-color: #f1f3f5;
  color: #6c757d;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}
