header {
  background-color: #205080;
  color: #ffffff;  /* 明確な白色を指定 */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6); /* 黒の薄い影で立体感を追加 */
  padding: 16px 24px;
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  user-select: none;
}

header h1 {
  margin: 0;
  font-family: 'メイリオ', Meiryo, Arial, sans-serif;
  color: #ffffff; /* 文字色を白に */
}

footer {
  background-color: #f5f5f9;
  color: #444;
  text-align: center;
  padding: 14px 20px;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  margin-top: 40px;
  user-select: none;
}

body {
  font-family: Arial, 'メイリオ', 'Meiryo', sans-serif;
  line-height: 1.7;
  background: #fafafa;
  margin: 0;
}

.hero {
  position: relative;
  width: 100vw;
  height: var(--hero-height, 380px); /* 初期値380px、詳細ページは320pxなどに設定可能 */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero img {
  width: 100vw;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.92);
  padding: 36px 54px;
  border-radius: 20px;
  box-shadow: 0 2px 12px #bbb8;
  text-align: center;
  min-width: 320px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #205080;
  margin-bottom: 0.6em;
}

.hero-desc {
  font-size: 1.2rem;
  color: #205080;
}

.menu-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-bottom: 1.5px solid #eee;
  min-height: 46px;
  width: 100vw;
}

.menu-bar a {
  color: #223355;
  text-decoration: none;
  padding: 0 22px;
  font-size: 1.07rem;
  border-right: 1px solid #e0e0e0;
}

.menu-bar a:last-child {
  border-right: none;
}

.menu-bar a:hover {
  color: #2b77d0;
}

main {
  max-width: 860px;
  margin: 40px auto 30px;
  padding: 0 2%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px #eee;
}

h1, h2, h3 {
  color: #205080;
  margin-top: 36px;
}

h1 {
  font-size: 2rem;
  border-bottom: 3px solid #20508033;
  padding-bottom: 6px;
}

h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 28px;
  background: #f9f9fa;
}

th, td {
  border: 1px solid #ccc;
  padding: 10px;
}

th {
  background: #f0f5fa;
}

section {
  margin-bottom: 34px;
}

p {
  margin-bottom: 13px;
}

.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.card-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px #eee;
  max-width: 292px;
  flex: 1 1 290px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.card-item:hover {
  box-shadow: 0 6px 18px #bbb;
}

.card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #f5f5f9;
}

.card-body {
  padding: 16px 16px 12px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-weight: bold;
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: #205080;
}

.card-desc {
  font-size: 0.97rem;
  margin-bottom: 10px;
  color: #333;
}

.card-link {
  margin-top: auto;
  text-align: right;
}

.card-link a {
  display: inline-block;
  padding: 8px 16px;
  background: #205080;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.97rem;
  transition: background 0.25s;
}

.card-link a:hover {
  background: #3a72bc;
}