/* しんだんラボ — 16タイプ結果の同タイプ有名人一覧 */

.type16-celebrity-section {
  margin-top: 20px;
  overflow: hidden;
}

.type16-celebrity-section > h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.type16-celebrity-section > p:not(.content-kicker):not(.small-note) {
  margin: 0;
  line-height: 1.85;
}

.type16-celebrity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.type16-celebrity-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e7e1ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(51, 42, 72, 0.05);
}

.type16-celebrity-visual {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(111, 92, 215, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(145deg, #eee9ff, #d9cef9);
  color: #51428f;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
}

.type16-celebrity-visual span {
  max-width: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.type16-celebrity-copy {
  min-width: 0;
}

.type16-celebrity-copy h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  line-height: 1.4;
}

.type16-celebrity-copy p {
  margin: 3px 0 8px;
  color: #6f6877;
  font-size: 0.78rem;
  line-height: 1.45;
}

.type16-celebrity-copy a {
  color: #6651bd;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.type16-celebrity-copy a:hover,
.type16-celebrity-copy a:focus-visible {
  color: #3f2a99;
}

.type16-celebrity-section .small-note {
  margin: 16px 0 0;
}

/* ホーム上部の有名人導線 */
.type16-celebrity-home-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 22px 0 34px;
  padding: 22px 24px;
  border: 1px solid #ded5f2;
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(135deg, #f8f4ff, #fff8fb);
  box-shadow: 0 10px 28px rgba(61, 49, 103, 0.07);
}

.type16-celebrity-home-teaser h2 {
  margin: 2px 0 7px;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

.type16-celebrity-home-teaser p:last-child {
  max-width: 720px;
  margin: 0;
  line-height: 1.75;
}

.type16-celebrity-home-teaser .quiz-btn {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}

/* 16タイプ一覧内の検索可能な単一リスト */
.type16-celebrity-directory {
  margin-top: 30px;
  overflow: hidden;
}

.type16-celebrity-directory > h2 {
  margin: 2px 0 8px;
}

.type16-celebrity-directory > p:not(.content-kicker):not(.small-note) {
  margin: 0;
  line-height: 1.85;
}

.type16-celebrity-search {
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  background: #f7f4fc;
}

.type16-celebrity-search label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 800;
}

.type16-celebrity-search input {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid #d8cee9;
  border-radius: 13px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.type16-celebrity-search input:focus {
  border-color: #705bd0;
  outline: 3px solid rgba(112, 91, 208, 0.16);
}

.type16-celebrity-search-status {
  margin: 9px 0 0;
  color: #6f6877;
  font-size: 0.82rem;
}

.type16-celebrity-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.type16-celebrity-directory-grid.is-collapsed .type16-celebrity-directory-card:nth-child(n + 13) {
  display: none;
}

.type16-celebrity-directory-card {
  position: relative;
  min-width: 0;
  border: 1px solid #e6e0ee;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(51, 42, 72, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.type16-celebrity-directory-card:hover,
.type16-celebrity-directory-card:focus-within {
  border-color: #9b89dd;
  box-shadow: 0 10px 24px rgba(51, 42, 72, 0.1);
  transform: translateY(-2px);
}

.type16-celebrity-directory-card[hidden] {
  display: none !important;
}

.type16-celebrity-directory-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 104px;
  padding: 14px 14px 32px;
  color: inherit;
  text-decoration: none;
}

.type16-celebrity-directory-copy {
  min-width: 0;
}

.type16-celebrity-type {
  display: inline-block;
  margin-bottom: 4px;
  color: #6651bd;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.type16-celebrity-directory-copy h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.96rem;
  line-height: 1.35;
}

.type16-celebrity-directory-copy p {
  margin: 4px 0 0;
  color: #6f6877;
  font-size: 0.76rem;
  line-height: 1.45;
}

.type16-celebrity-directory-source {
  position: absolute;
  right: 12px;
  bottom: 9px;
  color: #7161ad;
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.type16-celebrity-toggle {
  display: block;
  margin: 18px auto 0;
  padding: 10px 16px;
  border: 1px solid #cfc4e3;
  border-radius: 999px;
  background: #fff;
  color: #56479a;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.type16-celebrity-toggle:hover,
.type16-celebrity-toggle:focus-visible {
  border-color: #705bd0;
  background: #f7f3ff;
}

.type16-celebrity-empty {
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 14px;
  background: #f8f6fb;
  text-align: center;
}

.type16-celebrity-directory-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.type16-celebrity-directory .small-note {
  margin: 18px 0 0;
}

@media (max-width: 980px) {
  .type16-celebrity-directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .type16-celebrity-grid,
  .type16-celebrity-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .type16-celebrity-home-teaser {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .type16-celebrity-grid,
  .type16-celebrity-directory-grid {
    grid-template-columns: 1fr;
  }

  .type16-celebrity-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .type16-celebrity-visual {
    width: 64px;
    height: 64px;
  }

  .type16-celebrity-home-teaser {
    margin: 16px 0 28px;
    padding: 18px;
  }

  .type16-celebrity-home-teaser .quiz-btn {
    width: 100%;
    white-space: normal;
  }

  .type16-celebrity-directory-main {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}
