/* ===== 全体レイアウト・テーマ ===== */
body {
  font-family: "Helvetica Neue", "Arial", "Hiragino Sans", "Meiryo", sans-serif;
  margin: 0;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* ===== ナビゲーションバー ===== */
.site-header {
  text-align: center;
  background: linear-gradient(90deg, #004080, #0066cc);
  padding: 12px 0;
}
.site-header .inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  gap: 8px;
}
.logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}
.brand-text {
  font-weight: 700;
}
.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.nav a:hover {
  color: #cce6ff;
}
.nav-drop {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
}
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.nav-group:hover .nav-menu {
  display: block;
}
.nav-menu a {
  display: block;
  color: #004080;
  padding: 8px 14px;
  text-decoration: none;
}
.nav-menu a:hover {
  background: #e6f0ff;
}

/* ===== ヒーローバナー ===== */
.hero {
  background-image: url("https://images.unsplash.com/photo-1581093588401-22f4f7d3e6b3?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 80px 20px;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}
.hero p {
  font-size: 1rem;
  margin-bottom: 10px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.badge {
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 0.9rem;
}

/* ===== メインカード ===== */
.container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== フォーム ===== */
label {
  font-weight: 600;
  color: #222;
}
input,
select {
  width: 100%;
  padding: 9px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}
input:focus,
select:focus {
  border-color: #0078d7;
  outline: none;
  box-shadow: 0 0 4px rgba(0,120,215,0.3);
}

/* ===== ボタン ===== */
.btn-primary {
  padding: 12px;
  font-size: 1rem;
  background-color: #0078d7;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}
.btn-primary:hover {
  background-color: #005fa3;
}
.btn-ghost {
  padding: 10px;
  font-size: 1rem;
  background: #eef4ff;
  color: #004080;
  border: 1px solid #0078d7;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s;
}
.btn-ghost:hover {
  background: #d8eaff;
}

/* ===== テーブル ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.9rem;
}
th, td {
  border-bottom: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}
th {
  background: #e6f0ff;
  font-weight: 600;
}

/* ===== 結果表示カード ===== */
.result-card {
  margin-top: 16px;
  font-weight: bold;
  background: #eef4ff;
  border-radius: 6px;
  padding: 15px;
  border-left: 5px solid #0078d7;
  font-size: 1rem;
}

/* ===== フッター ===== */
.site-footer {
  text-align: center;
  margin: 40px 0 20px;
  color: #555;
}
.site-footer a {
  color: #004080;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* ===== モバイル対応 ===== */
@media (max-width: 600px) {
  .hero {
    padding: 60px 15px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .container {
    width: 90%;
    box-shadow: none;
  }
  button {
    font-size: 1rem;
    padding: 10px;
  }
}
