.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
  margin-bottom: 150px;
  color: #333;
  line-height: 1.7;
}
h1 {
  text-align: center;
  font-weight: 500;
  margin-bottom: 10px;
}
.hero {
  text-align: center;
  margin: 20px 0;
}
.hero img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
}
.lead { margin-bottom:1.2em; }

.tablist {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}
.tablist button {
  flex: 1;
  padding: 12px;
  border: none;
  cursor: pointer;
  background: #999;
  color: #fff;
  font-weight: 500;
}
.tablist button[aria-selected="true"] {
  background: #333;
}
.tabpanel { display:none; }
.tabpanel[aria-hidden="false"] { display:block; }

.section-title {
  background: #eee;
  padding: 10px;
  margin: 20px 0 10px;
  font-weight: 500;
}
.note {
  margin-bottom: 15px;
  color: #444;
}
.grid3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* 中央寄せ */
  gap: 15px;
}

.grid3 > div {
  flex: 1 1 calc(33.333% - 15px); /* 3列基準 */
  max-width: calc(33.333% - 15px);
  box-sizing: border-box;
}
.card {
  text-align: center;
}
.card img {
  width: 100%;
  height: auto;
  /*max-height: 160px;*/
  object-fit: cover;
  display: block;
  margin: auto;
}
.card small {
  display: block;
  font-weight: normal;
  margin-top: 6px;
  font-size: 0.85rem;
}
.card-desc {
  color: #444;
  margin-top: 6px;
  line-height: 1.5;
}

.noshi {
    text-align: center;
}
@media (max-width:768px) {
    .grid3 > div {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .tablist { flex-direction: column; }
}