/* メイン画像 */
.mainimg {
  position: relative;
  width: 100%;
}

.mainimg img {
  width: 100%;
  height: auto;
  display: block;
}

/* PC画面では画像サイズを縮小（高さが結果的に半分になる） */
@media (min-width: 769px) {
  .mainimg img {
    width: 50%;   /* 横幅を半分に → 高さも自動で半分になる */
    margin: 0 auto;
  }
}

#gaiyou {
  margin: 2rem 0;
  padding: 1.5rem 0;
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.category-tab {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background: #f8f8f8;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: 0.2s;
  display: inline-flex;      
  align-items: center;     
  justify-content: center;    
 }

.category-tab:hover {
  background: #e8e8e8;
}

.category-tab.is-active {
  background: #004c97; 
  color: #fff;
  border-color: #004c97;
  font-weight: bold;
  }

.category-filters {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
 }

.cat-filter {
  padding: 6px 14px;
  border: 1px solid #ccc;
  background: #fafafa;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cat-filter:hover {
  background: #eee;
}

.cat-filter.is-active {
  background: #0066cc;
  color: #fff;
  border-color: #0066cc;
  font-weight: bold;
}

.info-category-block {
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  background: #f0f6ff;
}

.info-card {
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 4px;
  margin: 6px 0;
}

.info-card:last-child {
  border-bottom: none;
}

.info-sub {
  font-size: 0.9em; 
  margin: 0 0 4px;
  }

.info-cat {
  display: inline-block;
  font-size: 14px;
  color: #004c97;
  background: #e6f0fa;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 4px;
 }

.info-title {
  font-size: 18px;
  font-weight: bold;
  margin: 4px 0 0;
  line-height: 1.4;
}

.info-title a {
  letter-spacing: 0.03em;
}

.info-title a:hover {
  text-decoration: underline;
}

.keyword-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-tab[data-category="all"].is-active ~ .keyword-container {
  max-width: 600px; 
}

.feedback-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #004c97;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.feedback-btn:hover {
  background-color: #0FA0CE;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(2, auto); /* 2列 */
    gap: 20px; /* 画像間の余白 */
    justify-content: center; /* 横方向の中央揃え */
    align-items: center; /* 縦方向の中央揃え */
    text-align: center;
    margin: 0 auto;
}

.banner {
    max-width: 100%;
    height: auto;
}

.no-wrap {
  white-space: nowrap;
}
.more-link {
    color: #160a57;
    text-decoration: underline;
}

.more-link:hover {
    color: #160a57;
    font-weight: bold;
}


@media (max-width: 768px) {
  .cat-tabs {
    display: none; /* スマホではタブを隠す */
  }

  .month-accordion summary {
    font-size: 14px;
  }

  .info-title {
    font-size: 16px;
  }
  #fg-floating-box {
    display: none !important;
  }
}

