/* ------------------------- */
/* タブ */
/* ------------------------- */
.tab-area {
  display: flex;
  border: 1px solid #333;
  cursor: pointer;
  max-width: 100%; 
  width: 100%;
  margin: 50px auto 0;
}
.tab {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(100%/3);
  padding: 10px;
}
.tab:nth-child(n+2) {
  border-left: 1px solid #333;
}
.tab.active {
  background-color: #023e8a;
  color: #fff;
}

/* ------------------------- */
/* タブの中身 */
/* ------------------------- */
.panel {
  display: none;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
}
.panel.active {
  display: block;
}
.panel-ul{
  margin: 0 auto;
  max-width: 150px;
  list-style-type: disc;
  line-height: 1.8;
}




.fixed-anchor {
  position: fixed;
  top: -100px; /* 初期状態は非表示 */
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 999;
  transition: top 0.3s ease;
}

.fixed-anchor.active {
  top: 0; /* 表示状態 */
}

.anchor-inner {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.anchor-list {
  display: flex;
  white-space: nowrap;
  list-style: none;
  margin: 0;
  padding: 10px 16px;
}

.anchor-list li {
  margin-right: 20px;
}

.anchor-list a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
}

@media (max-width: 599px) {
  .anchor-inner {
    padding-bottom: 8px; /* スクロールバーのスペース */
  }
}








.tab-anchor-wrapper {
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  width: 100%;
  z-index: 10;
  transition: all 0.3s ease;
}

.tab-anchor-wrapper.fixed {
  position: fixed;
  top: 57px;
  left: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab-anchor-inner {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-anchor-list {
  display: flex;
  white-space: nowrap;
  list-style: none;
  margin: 0;
  /*padding: 10px 16px;
  border-bottom: 1px solid #ddd;*/
}

.tab-item {
  width: 50%;
  margin-left: 8px;
  margin-right: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  border-bottom: 2px solid transparent;
  text-align: center;
}

.tab-item:hover {
  background-color: #f2f5f8;
  font-weight: bold;
}

.tab-item.active {
  border-bottom: 3px solid #111111;
  font-weight: bold;
}

.tab-content-wrap {
  margin-top: 50px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}