/* タブ画像表示部分の共通背景 */
.tab-bg-img {
  background: url('../image/tukan/tukan.jpg') center center no-repeat;
  background-size: cover;
  position: relative;
}
.tab-bg-img.import {
  background: url('../image/tukan/tukan_import.jpg') center center no-repeat;
  background-size: cover;
  position: relative;
}
.tab-bg-img img {
  position: relative;
  z-index: 1;
}
/* service.html専用タブUI */
.custom-tabs { width: 100%; }
.custom-tab-btns {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  border-bottom: none;
  margin-bottom: 0;
}
/* タブのデフォルト背景色・文字色 */
.custom-tab-btn {
  background: #00256b;
  border: none;
  border-radius: 8px 8px 0 0;
  padding: 0.7em 1.5em;
  font-size: 0.8rem;
  color: #fff;
  cursor: pointer;
  outline: none;
  transition: background 0.2s, color 0.2s;
  margin-bottom: -2px;
  flex: 1 1 0;
  text-align: center;
  min-width: 0;
}
.custom-tab-btn.active {
  background: #ccc;
  color: #00256b;
  font-weight: bold;
}
.custom-tab-btn:not(.active):hover {
  background: #003b9b;
  color: #fff;
}

/* レスポンシブ: タブが横並びできない時は番号表示 */
@media (max-width: 992px) {
  .custom-tab-btn {
    font-size: 0.8rem;
    padding: 0.7em 0.7em;
    min-width: 2.5em;
  }
  .custom-tab-btn {
    position: relative;
    white-space: nowrap;
  }
  .custom-tab-btn[data-tab="tab1"]::before,
  .custom-tab-btn[data-tab="import-tab1"]::before {
    content: "①";
    font-size: 1.2em;
    display: inline;
  }
  .custom-tab-btn[data-tab="tab2"]::before,
  .custom-tab-btn[data-tab="import-tab2"]::before {
    content: "②";
    font-size: 1.2em;
    display: inline;
  }
  .custom-tab-btn[data-tab="tab3"]::before,
  .custom-tab-btn[data-tab="import-tab3"]::before {
    content: "③";
    font-size: 1.2em;
    display: inline;
  }
  .custom-tab-btn[data-tab="tab4"]::before,
  .custom-tab-btn[data-tab="import-tab4"]::before {
    content: "④";
    font-size: 1.2em;
    display: inline;
  }
  .custom-tab-btn[data-tab="import-tab5"]::before {
    content: "⑤";
    font-size: 1.2em;
    display: inline;
  }
  .custom-tab-btn[data-tab="import-tab6"]::before {
    content: "⑥";
    font-size: 1.2em;
    display: inline;
  }
  .custom-tab-btn span, .custom-tab-btn br {
    display: none !important;
  }
  .custom-tab-btn {
    /* 既存テキストを隠す（番号のみ表示） */
    overflow: hidden;
    background: #00256b;
    color: #fff;
  }
  .custom-tab-btn.active {
    background: #ccc;
    color: #00256b;
  }
  .custom-tab-btn.active::before {
    color: #00256b;
  }
  .custom-tab-btn:not(.active):hover {
    background: #003b9b;
    color: #fff;
  }
}
.custom-tab-contents {
  width: 100%;
}
.custom-tab-content {
  display: none;
  animation: fadein 0.3s;
}
.custom-tab-content.active {
  display: block;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
