
/* === 疾患別メニューテーブル用 === */
.menu-table {
  width: 100%;
  border-collapse: collapse;
  margin: auto;
  font-size: 0.95rem;
}
.menu-table td {
  width: 33.3%;
  text-align: center;
  background-color: #e5f8e0;
  border: 1px solid #cce3c4;
  padding: 0.8rem 0.5rem;
  vertical-align: middle;
}
.menu-table td:hover {
  background-color: #d0f0cb;
}
.menu-table a {
  text-decoration: none;
  color: #2e5e34;
  font-weight: bold;
  display: inline-block;
}
.menu-icon {
  display: block;
  margin: 0 auto 0.4rem;
  width: 24px;
  height: 24px;
  fill: #4caf50;
}

/* === アコーディオンとタブ切替用 === */
.tab-section {
  font-family: sans-serif;
  margin: 2rem auto;
  max-width: 960px;
}
.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 2px solid #ccc;
  margin-bottom: 1rem;
}
.tab-buttons button {
  background: #f0f8ff;
  border: none;
  padding: 0.8rem 1.2rem;
  margin: 0 0.3rem;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  font-size: 1rem;
  transition: background 0.3s;
}
.tab-buttons button.active {
  background: #87d7c6;
  font-weight: bold;
}
.tab-content {
  display: none;
  padding: 1rem;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 8px 8px;
}
.tab-content.active {
  display: block;
}
.accordion-item {
  border-bottom: 1px solid #ddd;
}
.accordion-header {
  background: #f9f9f9;
  cursor: pointer;
  padding: 0.8rem 1rem;
  font-weight: bold;
  position: relative;
  transition: background 0.3s ease;
}
.accordion-header:hover {
  background: #e6f7f4;
}
.accordion-header::after {
  content: "\25BC";
  position: absolute;
  right: 1rem;
  transition: transform 0.3s ease;
}
.accordion-header.open::after {
  transform: rotate(180deg);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1rem;
}
.accordion-body.open {
  max-height: 1000px;
  padding-bottom: 1rem;
}
.accordion-body ul {
  margin: 0;
  padding-left: 1.2rem;
}
.accordion-body li {
  margin: 0.3rem 0;
}
.accordion-body a {
  color: #007B8F;
  text-decoration: none;
}
.accordion-body a:hover {
  text-decoration: underline;
}
@media screen and (max-width: 768px) {
  .tab-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .tab-buttons button {
    width: 100%;
    margin-bottom: 0.3rem;
    border-radius: 6px;
  }
  .tab-content {
    border-top: 1px solid #ccc;
  }
}
