/* メインコンテンツ（記事の）の画像付きメニュー */
.linecenter {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: bold;
  margin: 2rem 0;
  position: relative;
  text-align: center;
  gap: 1em; /* テキストと線の余白 */
}

.linecenter::before,
.linecenter::after {
  content: "";
  flex: 1;
  height: 5px;
  background-color: #02ccff;
}




/* 新しいカードグリッド */
.my-card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* デスクトップでは5列 */
  gap: 16px; /* カードの間隔 */
}

@media screen and (max-width: 900px) {
  .my-card-grid {
    grid-template-columns: repeat(4, 1fr); /* 900px以下は4列 */
  }
}

@media screen and (max-width: 600px) {
  .my-card-grid {
    grid-template-columns: repeat(3, 1fr); /* 600px以下は3列 */
  }
}

/* カードのスタイル */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #067aff;
  border-radius: 10px;
  padding: 4px 6px 8px;
  box-sizing: border-box;
  transition: box-shadow 0.2s;
  /* widthはgrid側で調整するので指定しなくてOK */
}

.card img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 8px;
}

.card span {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
}

.card span small {
  font-size: 0.8rem;
  color: #777;
  display: block;
  margin-top: 4px;
}

/* トップに戻るリンク */
.top-card {
  display: block;
  width: fit-content;
  margin: 2rem auto;
  padding: 0.6em 1.2em;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #067aff;
  background-color: #f0f8ff;
  border: 1px solid #067aff;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.top-card:hover {
  background-color: #067aff;
  color: #fff;
}








.top-card {
  display: block;
  width: fit-content;
  margin: 2rem auto;
  padding: 0.6em 1.2em;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #067aff;
  background-color: #f0f8ff;
  border: 1px solid #067aff;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.top-card:hover {
  background-color: #067aff;
  color: #fff;
}



.menu-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 1em 0;
  list-style: none;
  margin: 0;
}

.menu-nav li {
  margin: 0;
}

.menu-nav a {
  display: inline-block;
  padding: 0.6em 1.2em;
  background-color: #f0f8ff;
  color: #067aff;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #067aff;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.menu-nav a:hover {
  background-color: #067aff;
  color: #fff;
}
