/* ラッパー */

.seeds-widget {
  --bd: #e5e7eb;
  --muted: #6b7280;
  --bg: #fff;
  --chip: #f3f4f6;
  --ink: #111827;
}

.seeds-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  margin: 0.75rem 0;
}

.seeds-controls .ctrl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
}

.seeds-controls .ctrl-grow {
  width: 100%;
}

.seeds-controls input[type="search"] {
  border: 1px solid var(--bd);
  border-radius: 0.5rem;
  padding: 0.4rem 0.55rem;
  min-height: 2.25rem;
  width: 100%;
}

.seeds-controls select {
  border: 1px solid var(--bd);
  border-radius: 0.5rem;
  padding: 0.4rem 0.55rem;
  min-height: 2.25rem;
  width: min(100%, 260px);
}

.ctrl-search-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  align-items: center;
}

.ctrl-search-btn {
  border: 1px solid #1f2937;
  background: #1f2937;
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.45rem 0.9rem;
  min-height: 2.25rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.ctrl-search-btn:hover {
  background: #111827;
  border-color: #111827;
}

/* タブリスト（角ばったスタイル） */
.tab-list {
  display: flex;
  /* gap: 4px; */
  margin-bottom: 32px;
}

/* タブトリガー（角ばったスタイル） */
.tab-trigger {
  background-color: transparent;
  /* color: #9ca3af; */
  border: none;
  border-bottom: 1px solid #d1d5db;
  padding: 12px 60px 15px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.tab-trigger:hover {
  background-color: transparent;
  color: #6b7280;
}

.tab-trigger.active {
  background-color: transparent;
  color: #2d2d2d;
  padding: 12px 60px;
  border-bottom: 4px solid #4294ad;
}

.tab-trigger:focus-visible {
  outline: 2px solid #2d2d2d;
  outline-offset: 2px;
}

/* タブリスト（ピルスタイル） */
.tab-list.pill-style {
  display: inline-flex;
  background-color: #f5f5f5;
  border-radius: 9999px;
  padding: 4px;
  gap: 0;
}

/* タブトリガー（ピルスタイル） */
.tab-trigger-pill {
  background-color: transparent;
  color: #333;
  border: none;
  border-radius: 9999px;
  padding: 8px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.tab-trigger-pill:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.tab-trigger-pill.active {
  background-color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.tab-trigger-pill:focus-visible {
  outline: 2px solid #2d2d2d;
  outline-offset: 2px;
}

/* グループ（大学） */

.seeds-group {
  margin-top: 1rem;
}

.seeds-group .group-title {
  font-size: 1.05rem;
  margin: 0.25rem 0 0.5rem;
  color: var(--ink);
}

/* 採択枠アイコン */

.frame-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 48px;
  height: 48px;
  width: 48px;
  margin: 0 auto;
}

.frame-icon img {
  display: block;
  max-width: 40px;
  max-height: 40px;
  height: auto;
  width: auto;
  margin: auto;
}

.frame-icon--text {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
}

.col-frame {
  text-align: center;
}

.col-name .name-position {
  display: block;
}
.col-name .name-person {
  display: block;
}

/* title 属性に頼らない軽量ツールチップ（アクセシブルにするなら JS で aria-describedby を拡張） */

.frame-icon:hover::after {
  content: attr(data-tooltip);

  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);

  background: #111827;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.4;
  white-space: nowrap;

  padding: 0.35rem 0.5rem;
  border-radius: 0.35rem;
  margin-bottom: 0.4rem;
  pointer-events: none;
}

.frame-icon:hover::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, 6px);

  border: 6px solid transparent;
  border-top-color: #111827;
}

/* 空メッセージ */

.empty {
  padding: 1rem;
  color: var(--muted);
}

/* /test01/ ページ用調整：採択枠のパディング削除 */
body .seeds-widget .col-frame {
  padding: 0;
}

/* /test01/ ページ用調整：セル内テキストの折り返し */
.col-name .name-person {
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: normal;
}
