@charset "UTF-8";

/* =========================================================
   TAB DESIGN （アクセシビリティ・JavaScript完全連動版）
   💡 選択中（activeクラス）になった時の共通カラー設定
========================================================= */

/* ラジオボタンチェック時の代わりに、JSが足す「active」クラスで色を切り替えます */
.tabs-list .panel-label.active {
  background: #6ea8d9 !important; /* 選ばれた時の水色 */
  color: #ffffff !important;      /* 文字を白に */
  font-weight: bold;              /* 太字にする */
}

/* 選ばれたタブの下線の厚みをリセットする設定 */
.tabs-list .panel-label.active::after {
  height: 0 !important;
}

/* =========================================================
   TAB DESIGN
   （見た目だけ）
========================================================= */

/* 💡 ボタンタグ化に伴う初期枠線や背景の無駄なグレーをリセットしつつ、元の見た目を引き継ぎます */
.tabs-list button.panel-label {
  border: none;                     /* 不要な太い初期枠線を消去 */
  outline: none;
  font-family: inherit;             /* サイト全体のフォントに合わせる */
  font-size: 1rem;
  
  position: relative;
  background: #ecf0f1;              /* 未選択時の薄いグレー */
  color: #000000;
  display: flex;                    /* 横並び・中央配置を維持 */
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.tabs-list button.panel-label:hover {
  background: #dbe7ec;
  color: #003399;
}

.tabs-list button.panel-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background: #00a1e9;
  transition: .2s;
}

/* 💡 キーボード操作時に、今どこを選んでいるか分かりやすくする外枠（オマケ） */
.tabs-list button.panel-label:focus-visible {
  outline: 2px solid #00a1e9;
  outline-offset: -2px;
}

/* =========================================================
   TAB LAYOUT & STRUCTURE
========================================================= */

.panels {
  background-color: #ffffff;
}

.panels .container {
  margin: 0 auto;
  padding: 0 10px;
}

.tabs-list {
  display: flex;
  margin: 0;
  padding: 0;
  text-align: center;
  border-bottom: 1px solid #dfdfdf;
  width: 100%;
}

.tabs-list li {
  display: flex;
  position: relative;
  text-align: center;
  flex: 1 1 0;
  border-right: 1px solid #dfdfdf;
}

.tabs-list li:hover {
  border-right: none;
  transition: none;
}

.tabs-list li:hover.last {
  border-right: 1px solid transparent;
}

.tabs-list li:hover + li {
  border-left: 1px solid #dfdfdf;
}
