/* -------------------------------------------------------------
   Article Tab - 洗練されたUI
------------------------------------------------------------- */
.at-tabs {
  margin: 1.5em 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: transparent;
  position: relative;
}

/* タブヘッダー */
.at-tab-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid #ddd;
  background: #f8f9fa;
  border-radius: 3px 3px 0 0;
  position: relative;
}

/* ヒントポップアップ（コンテンツ上に配置） */
.at-tab-hint {
  display: block;
  text-align: center;
  padding: 4px 16px;
  font-size: 11px;
  color: #0394df;
  background: #e8f4fc;
  border-bottom: 1px solid #ddd;
  /* animation: at-hint-float 2s ease-in-out infinite; */
  transition: opacity 0.3s ease, max-height 0.3s ease;
  overflow: hidden;
  max-height: 50px;
}

.at-tab-hint.is-hidden {
  opacity: 0;
  max-height: 0;
  padding: 0 16px;
}

@keyframes at-hint-float {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* タブラベル（テキストリンク風） */
.at-tab-label {
  padding: 6px 14px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  color: #555;
  background: transparent;
  border: none;
  border-bottom: 2px solid #eee;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  outline: none;
}

.at-tab-label:hover {
  color: #0394df;
}

/* アクティブタブ - 青文字+下線 */
.at-tab-label.is-active {
  color: #0394df;
  border-bottom-color: #0394df;
  font-weight: 600;
}

/* コンテンツ */
.at-tab-body {
  width: 100%;
  padding: 20px;
  background: transparent;
}

.at-tab-content {
  display: none;
}

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

/* レスポンシブ */
@media (max-width: 600px) {
  .at-tab-head {
    justify-content: flex-start;
    gap: 6px 0px;
    padding: 6px 8px 8px;
  }
  .at-tab-label {
    padding: 5px 10px;
    font-size: 13px;
  }
  .at-tab-body {
    padding: 16px;
  }
}