.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* タブナビ全体 */
.tab-nav {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 0;
}

/* タブボタン共通 */
.tab-btn {
  padding: 10px 24px;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: #f0f0f0;
  color: #666;
  cursor: pointer;
  position: relative;
  top: 1px;
}

/* アクティブタブ */
.tab-btn.active {
  background: #fff;
  color: #333;
  font-weight: bold;
  border-color: #ccc;
  z-index: 1;
}

.tab-content-area {
  border: 1px solid #ccc;
  border-radius: 0 6px 6px 6px;
  background: #fff;
}

/* ↓ 追加：スマホではtab-content-areaの枠を無効化 */
@media (max-width: 767px) {
  .tab-content-area {
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
  }
}

/* アコーディオンボタン */
.accordion-toggle {
  width: 100%;
  padding: 12px 16px;
  padding-right: 36px;
  text-align: left;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 4px;
  position: relative;
}

.accordion-toggle.active {
  background: #fff;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  margin-bottom: 0;
}

/* 矢印 */
.accordion-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  transition: transform 0.2s;
  font-size: 12px;
  color: #888;
  pointer-events: none;
}

.accordion-toggle.active .accordion-arrow {
  transform: translateY(-50%) rotate(0deg);
}

/* ↓ 追加：スマホでのパネル枠 */
@media (max-width: 767px) {
  .d-md-none + .tab-panel.active {
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 16px;
    margin-bottom: 8px;
  }
}