/* ベビーグッズ選び方サポートアプリ - カスタムCSS */

/* ナビゲーションリンク */
.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4B5563;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover {
  color: #0D9488;
  background-color: #F0FDFA;
}
.nav-link.active {
  color: #0D9488;
  background-color: #F0FDFA;
}

.mobile-nav-link {
  display: block;
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #4B5563;
  transition: color 0.2s, background-color 0.2s;
}
.mobile-nav-link:hover {
  color: #0D9488;
  background-color: #F0FDFA;
}

/* 比較テーブル */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}
.comparison-table th {
  background: #F9FAFB;
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #374151;
  border-bottom: 1px solid #E5E7EB;
}
.comparison-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #F3F4F6;
  font-size: 0.8125rem;
  text-align: center;
  color: #4B5563;
}
.comparison-table tr:hover {
  background: #F0FDFA;
}
.comparison-table .axis-label {
  font-weight: 600;
  text-align: left;
  color: #374151;
  white-space: nowrap;
  min-width: 6rem;
}

/* レスポンシブテーブル */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* スマホ: スクロールヒント */
.table-scroll-hint {
  display: none;
  text-align: right;
  font-size: 0.6875rem;
  color: #9CA3AF;
  padding: 0.25rem 0.75rem;
}
@media (max-width: 640px) {
  .table-scroll-hint {
    display: block;
  }
}

/* テキストの行数制限 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* アコーディオン矢印の回転 */
.rotate-180 {
  transform: rotate(180deg);
}

/* 用語ツールチップ */
.term-tip {
  border-bottom: 1px dotted #9CA3AF;
  cursor: help;
}
#term-tooltip {
  position: fixed;
  background: #1F2937;
  color: #F9FAFB;
  font-size: 0.75rem;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 6px;
  width: 280px;
  white-space: normal;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

/* 診断クイズ：選択済みスタイル */
.quiz-option.selected {
  border-color: #14B8A6;
  background-color: #F0FDFA;
}
