@charset "UTF-8";

/*-------------------------------
main/グラフ
-------------------------------*/
.category-section {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  width: 100%;
}

.category-item {
  width: 18%;
  text-align: center;
  padding: 10px;
  border-radius: 4px;
  color: white;
}

.category-item img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 画像の縦横比を維持しつつ収める */
  margin-bottom: 10px;
}

.category-link {
  width: calc(100% / 6);
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-item {
  display: block;
  width: 100%; /* 必ず100%にすることで親リンクにフィット */
  text-align: center;
  padding: 10px;
  border-radius: 4px;
  color: white;
}

.news-section {
  margin-top: 50px;
}

.news-section h2 {
  border-left: 6px solid #3399ff;
  padding-left: 10px;
  font-size: 20px;
  margin-bottom: 20px;
}

.news-item {
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
  position: relative;
}

.news-item .date {
  font-size: 14px;
  color: #999;
  margin: 0 0 5px 0;
}

.news-item .text {
  font-size: 14px;
  margin: 0;
}

.news-item .arrow {
  position: absolute;
  right: 0;
  top: 20px;
  font-size: 20px;
  color: #999;
}

@media screen and (max-width: 768px) {
  .category-section {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .category-link {
    width: 33%; /* 横3つにする */
    margin-bottom: 0px; /* 折り返し時に余白 */
  }

  .category-item img {
    height: auto; /* 高さを自動に */
  }
}
