.container_tab {
  margin: 30px auto;
  max-width: 100%;
  /* max-width: 800px; */
  padding: 0 8px;
  position: relative;
}

/* 画面幅が768px以上の場合、表示幅を調整 */
@media screen and (min-width: 768px) {
  .container_tab {
    margin: 0 auto;
  }
}

.tab-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.tab-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.tab_menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  border-bottom: 2px dotted #E91E63;
  /* border-bottom: 2px solid #333; */
  min-width: max-content;
}

.tab_menu li {
  flex: 0 0 auto;
}

.tab_menu li a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  background: #00bcd4a8;
  /* background: #00BCD4; */
  white-space: nowrap;
  border-radius: 4px 10px 0 0;
  border-right: 2px dotted #fff;
  /* border-right: 1px dotted #E91E63; */
  text-align: center;
}

/* 画面幅が768px以上の場合、表示幅を調整 */
@media screen and (min-width: 768px) {
  .tab_menu li a {
    padding: 10px 12px;
    font-size: 14px;
  }
}

.tab_menu li a.active {
  background: #E91E63;
  /* background: #333; */
  font-weight: bold;
  color: #fff;
}

.tab_menu li a:not(.active) {
  text-decoration: underline;
  text-decoration-thickness: 2px; /* 下線の太さを指定 */
  text-decoration-color: #0077cc;
  text-underline-offset: 8px;
}


/* ✅ Hover強調：非アクティブタブ */
.tab_menu li a:not(.active):hover {
  background-color: lightblue;
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* .tab_menu li a:not(.active):hover {
  opacity: 0.7;
} */

.content_tab {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: #fff;
  color: #333;
  min-height: 200px;
  padding-top: 10px;
  /* padding: 0px; */
  position: absolute;
  width: 100%;
  top: 0px;
  /* top: 50px; */
  left: 0;
  border: 2px dotted #E91E63;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

/* 画面幅が768px以上の場合、表示幅を調整 */
@media screen and (min-width: 768px) {
  .content_tab {
    padding: 14px;
    min-height: 180px;
    /* top: 50px; */
  }
}

.content_tab.active {
  display: block;
  opacity: 1;
  position: relative;
}

.content_tab img {
  width: 100%;
  height: auto;
  margin-top: 5px;
  border-radius: 8px;
  border-top: 1px dotted #333 ;
  border-bottom: 1px dotted #333 ;
}

/* @media (max-width: 600px) {
  .tab_menu li a {
    padding: 10px 12px;
    font-size: 14px;
  }

  .content_tab {
    padding: 14px;
    min-height: 180px;
    top: 50px;
  }
} */