.toc_tab-container {
  color:#4f4946;
  margin-bottom: 13px;
  max-width: 1000px;
}

/* PC：均等横並び */
.toc_tabs {
  display: flex;
  border-bottom: 2px solid #05a505;
  overflow-x: auto;       /* ← スマホ用スクロール */
  scrollbar-width: none;  /* Firefox 非表示 */
}
.toc_tabs::-webkit-scrollbar {
  display: none;          /* Chrome 非表示 */
}

.toc_tabs button {
  all: unset;
  box-sizing: border-box;
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 18px;
  background: #f4fbe8;
  color: #4f4946;
  font-weight: bold;
  cursor: pointer;
  border-right: 1px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;     /* ← 文字折り返し防止 */
  width:100%;
  height: 100%;
}

.toc_tabs button.active {
  background: linear-gradient(135deg, #05a505 0%, #22d422 100%);
  color: #fff;
}

.toc_tab-content {
  padding: 20px;
  background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
  border: 1px solid #ccc;
}

/* ▼ スマホ：幅が狭い時は「均等幅を解除」 */
@media (max-width: 600px) {
  .toc_tabs button {
    flex: 0 0 auto;      /* ← 均等幅をやめて、必要幅だけにする */
    padding: 10px 16px;  /* ← スクロールしやすい */
    font-size: 16px;
  }
}

.quarter {
  width:25%;
}
