/* リセットとベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #F4F6FB;
  color: #2D2D3A;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* xrea_header.js が <body> の先頭に挿入する広告バナー用の枠 */
#vdbanner {
  background-color: #F4F6FB;
  padding: 8px 0;
}

ul {
  list-style: none;
}

a {
  color: #4F6DF5;
  text-decoration: none;
}

a:visited {
  color: #7C5CFC;
}

a:hover {
  color: #FF6B6B;
  text-decoration: underline;
}

/* ヘッダー */
.header {
  background: linear-gradient(135deg, #4F6DF5, #7C5CFC);
  padding: 12px 10px;
  text-align: center;
  color: #ffffff;
}

.header-content {
  display: inline-block;
}

.site-title {
  display: inline;
  font-family: "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
  font-size: 1.8em;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.05em;
}

.site-subtitle {
  font-size: 1em;
  color: #E6E9FF;
  margin-left: 10px;
}

/* コンテナ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 検索セクション */
.search-section {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 12px 15px;
  margin-bottom: 20px;
}

.search-box {
  text-align: center;
  padding: 5px 0;
}

.search-form {
  margin: 8px 0;
}

.search-input-group {
  display: grid;
  grid-template-columns: 70px auto auto;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.search-label {
  font-size: 1.3em;
  font-weight: bold;
  color: #4F6DF5;
  text-align: right;
}

.search-input {
  padding: 6px 10px;
  font-size: 1em;
  border: 1px solid #D5D9E8;
  border-radius: 6px;
}

.search-button {
  padding: 6px 18px;
  font-size: 1em;
  background-color: #4F6DF5;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-button:hover {
  background-color: #3A55D9;
}

/* カードグリッド */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 15px;
}

.card-title {
  background-color: #EEF1FF;
  color: #4F6DF5;
  font-size: 1.05em;
  font-weight: bold;
  padding: 8px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 12px;
}

.card-list {
  padding-left: 0;
}

.card-list li {
  margin-bottom: 6px;
}

.card-list-columns {
  column-count: 2;
  column-gap: 16px;
}

.card-list-columns li {
  break-inside: avoid;
}

/* 更新情報セクション */
.update-content {
  padding: 5px;
  font-size: 0.9em;
}

.update-content p {
  margin-bottom: 10px;
}

.more-link {
  text-align: right;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-list-columns {
    column-count: 1;
  }

  .search-input-group {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .search-label {
    text-align: center;
  }

  .search-input {
    width: 100%;
    max-width: 300px;
  }
}
