:root {
  --idol-ink: #170b1e;
  --idol-muted: #6f5d78;
  --idol-pink: #ff3f94;
  --idol-hot: #ff0f73;
  --idol-gold: #ffd35a;
  --idol-purple: #7d46ff;
  --idol-panel: rgba(255, 255, 255, 0.94);
  --idol-line: rgba(255, 255, 255, 0.22);
  --idol-shadow: 0 24px 70px rgba(24, 5, 34, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--idol-ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 63, 148, 0.32), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(255, 211, 90, 0.22), transparent 28%),
    linear-gradient(160deg, #fff7fb 0%, #f9efff 42%, #18091f 100%);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  overflow-x: hidden;
}

.idol-page {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 30px 0 58px;
}

.idol-home-hero,
.idol-hero,
.idol-quiz-shell,
.idol-result-card,
.idol-about-card {
  border: 1px solid var(--idol-line);
  box-shadow: var(--idol-shadow);
}

.idol-home-hero {
  display: grid;
  gap: 22px;
  padding: 18px;
  border-radius: 32px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 11, 30, 0.96), rgba(62, 11, 60, 0.9)),
    radial-gradient(circle at 70% 20%, rgba(255, 63, 148, 0.42), transparent 42%);
}

.idol-home-visual {
  margin: 0;
}

.idol-home-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.idol-home-copy {
  padding: 4px clamp(4px, 2vw, 18px) 14px;
}

.idol-page-home .idol-home-copy {
  display: grid;
  gap: 16px;
}

.idol-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(23, 11, 30, 0.95), rgba(62, 11, 60, 0.88)),
    radial-gradient(circle at 70% 20%, rgba(255, 63, 148, 0.4), transparent 42%);
  color: #fff;
  overflow: hidden;
}

.idol-hero::before,
.idol-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.idol-hero::before {
  inset: -80px auto auto -70px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 63, 148, 0.55), transparent 68%);
}

.idol-hero::after {
  right: -52px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  border: 1px dashed rgba(255, 211, 90, 0.55);
}

.idol-hero-copy,
.idol-hero-visual {
  position: relative;
  z-index: 1;
}

.idol-kicker {
  margin: 0 0 12px;
  color: var(--idol-gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.idol-hero h1,
.idol-section-heading h2,
.idol-quiz h2 {
  margin: 0;
  letter-spacing: 0;
}

.idol-hero h1 {
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  line-height: 1.02;
  text-shadow: 0 0 22px rgba(255, 63, 148, 0.58);
}

.idol-home-copy h1 {
  margin: 0;
  font-size: clamp(1.95rem, 5.4vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 0 22px rgba(255, 63, 148, 0.58);
}

.idol-lead {
  max-width: 42em;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.04rem;
  line-height: 1.9;
}

.idol-hero-actions,
.idol-share-row,
.idol-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.idol-hero-actions {
  margin-top: 4px;
}

.idol-primary-button,
.idol-secondary-button,
.idol-share-row button,
.idol-result-actions button,
.idol-result-actions a,
.idol-option {
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.idol-primary-button,
.idol-secondary-button,
.idol-result-actions button,
.idol-result-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.idol-primary-button {
  padding: 0 28px;
  color: #180817;
  background: linear-gradient(135deg, #ffe98b, #ff3f94);
  box-shadow: 0 14px 28px rgba(255, 63, 148, 0.3);
}

.idol-page-home .idol-primary-button {
  width: 100%;
  min-height: 58px;
  font-size: 1.08rem;
}

.idol-secondary-button {
  padding: 0 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.idol-profile-lead {
  max-width: 42em;
  margin: 14px 0 0;
  color: var(--idol-muted);
  line-height: 1.85;
  font-weight: 700;
}

.idol-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.idol-profile-grid label {
  display: grid;
  gap: 8px;
  color: #4a2b55;
  font-weight: 900;
}

.idol-profile-grid input {
  width: 100%;
  min-height: 52px;
  border: 2px solid #efd5ef;
  border-radius: 16px;
  padding: 0 14px;
  color: var(--idol-ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.idol-profile-grid input:focus {
  outline: 3px solid rgba(255, 63, 148, 0.2);
  border-color: var(--idol-pink);
}

.idol-profile-step .idol-secondary-button {
  color: #2b1630;
  border-color: #ead5f3;
  background: #fff;
}

.idol-profile-step .idol-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
}

.idol-profile-step .idol-primary-button,
.idol-profile-step .idol-secondary-button {
  width: 100%;
  min-height: 52px;
  padding-inline: 12px;
  font-size: 0.96rem;
}

.idol-quiz-shell .idol-note,
.idol-about-card .idol-note {
  color: var(--idol-muted);
}

.idol-share-row {
  margin-top: 18px;
}

.idol-share-row-outside {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 520px);
  margin: 16px auto 0;
}

.idol-share-row button {
  min-width: 78px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 800;
}

.idol-share-row-outside button {
  width: 100%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

.idol-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.7;
}

.idol-hero-visual {
  margin: 0;
}

.idol-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.idol-quiz,
.idol-result,
.idol-profile-step,
.idol-analyzing,
.idol-type-section,
.idol-about,
.idol-related {
  margin-top: 32px;
}

.idol-quiz-shell,
.idol-result-card,
.idol-about-card {
  border-radius: 30px;
  background: var(--idol-panel);
}

.idol-quiz-shell {
  padding: 28px;
}

.idol-quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.idol-text-button {
  border: 0;
  color: var(--idol-purple);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.idol-progress {
  height: 10px;
  margin: 10px 0 26px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1e6f7;
}

.idol-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--idol-pink), var(--idol-gold));
  transition: width 0.25s ease;
}

.idol-quiz h2 {
  font-size: clamp(1.55rem, 4.5vw, 2.35rem);
  line-height: 1.45;
}

.idol-options {
  display: grid;
  gap: 13px;
  margin-top: 24px;
}

.idol-option {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 2px solid #f1d8ef;
  border-radius: 20px;
  color: var(--idol-ink);
  background: #fff;
  text-align: left;
  font-weight: 900;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.idol-option:hover {
  transform: translateY(-2px);
  border-color: var(--idol-pink);
  box-shadow: 0 12px 24px rgba(255, 63, 148, 0.14);
}

.idol-option span:first-child {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--idol-hot), var(--idol-purple));
}

.idol-result-card {
  padding: 28px;
}

.idol-result-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 24px;
  border: 1px solid #f1dff4;
  border-radius: 26px;
  color: var(--idol-ink);
  background: #fff;
  box-shadow: 0 14px 34px rgba(67, 31, 82, 0.08);
}

.idol-result-head h1 {
  margin: 0;
  color: #e41472;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.13;
}

.idol-result-head .idol-note {
  color: #4f4058;
}

.idol-result-catch {
  margin: 0 0 10px;
  color: var(--idol-ink);
  font-weight: 900;
  font-size: clamp(1.05rem, 3.5vw, 1.45rem);
}

.idol-result-image {
  width: 88px;
  height: 88px;
  object-fit: contain;
  flex: 0 0 auto;
  padding: 2px;
  border: none;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.idol-result-body {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.idol-result-panel {
  padding: 22px;
  border: 1px solid #f0d9f0;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #fff8fc);
}

.idol-result-panel h3 {
  margin: 0 0 12px;
  color: #7b1c68;
  font-size: 1rem;
}

.idol-result-panel p {
  margin: 0;
  color: #35263d;
  line-height: 1.85;
  font-weight: 700;
}

.idol-small-note {
  color: var(--idol-muted) !important;
  font-size: 0.82rem;
  font-weight: 700 !important;
}

.idol-balance {
  display: grid;
  gap: 14px;
}

.idol-axis {
  display: grid;
  gap: 7px;
}

.idol-axis-title,
.idol-axis-score,
.idol-axis-labels {
  margin: 0;
}

.idol-axis-title {
  color: #2c1732;
  font-weight: 900;
}

.idol-axis-score,
.idol-axis-labels {
  color: var(--idol-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.idol-axis-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  opacity: 0.78;
}

.idol-axis-bar {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1e5ff;
}

.idol-axis-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--axis-color), var(--idol-gold));
}

.idol-result-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.idol-result-summary-card {
  display: grid;
  gap: 18px;
}

.idol-summary-block {
  display: grid;
  gap: 9px;
}

.idol-summary-block + .idol-summary-block {
  padding-top: 16px;
  border-top: 1px solid #f1dff4;
}

.idol-summary-block h4 {
  margin: 0;
  color: #7b1c68;
  font-size: 0.96rem;
}

.idol-summary-block p {
  color: #35263d;
  font-weight: 700;
}

.idol-summary-soft-note {
  padding: 15px;
  border-radius: 18px;
  background: #fff8ee;
}

.idol-summary-soft-note h4 {
  color: #9b5b12;
}

.idol-summary-keywords {
  opacity: 0.9;
}

.idol-summary-keywords h4 {
  color: #74627f;
  font-size: 0.88rem;
}

.idol-summary-keywords .idol-result-tags li {
  min-height: 26px;
  padding: 5px 9px;
  color: #765b86;
  background: #f5edf8;
  font-size: 0.76rem;
}

.idol-chip-list,
.idol-result-tags,
.idol-type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.idol-chip-list li,
.idol-result-tags li,
.idol-type-tags li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #5b3573;
  background: #f1e5ff;
  font-size: 0.82rem;
  font-weight: 900;
}

.idol-result-actions {
  justify-content: center;
  margin-top: 22px;
}

.idol-result-actions button,
.idol-result-actions a {
  min-width: 148px;
  padding: 0 18px;
  color: #fff;
  background: #1e1527;
}

.idol-result-actions .idol-copy-button,
.idol-result-actions .idol-retry-button,
.idol-result-actions .idol-top-button {
  color: #2b1630;
  background: #fff;
  border: 2px solid #ead5f3;
}

.idol-section-heading {
  margin-bottom: 16px;
}

.idol-section-heading h2 {
  font-size: clamp(1.75rem, 5vw, 2.7rem);
}

.idol-section-heading p {
  max-width: 46em;
  margin: 10px 0 0;
  color: var(--idol-muted);
  line-height: 1.8;
}

.idol-heading-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--idol-purple), var(--idol-pink));
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.idol-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.idol-type-card {
  min-height: 100%;
  padding: 18px;
  border: 1px solid #efd5ef;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(67, 31, 82, 0.1);
}

.idol-type-card h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
  line-height: 1.45;
}

.idol-type-card p {
  margin: 0 0 12px;
  color: var(--idol-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.idol-about-card {
  padding: 24px;
}

.idol-about-card h2 {
  margin: 0 0 12px;
  color: #2b1630;
}

.idol-about-card p {
  margin: 0;
  color: var(--idol-muted);
  line-height: 1.85;
}

.idol-about-card h2:not(:first-child) {
  margin-top: 24px;
}

.idol-about-card p + p,
.idol-about-card .idol-about-list + p {
  margin-top: 10px;
}

.idol-about-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.idol-about-list li {
  position: relative;
  padding-left: 1.15em;
  color: #4a2b55;
  line-height: 1.75;
  font-weight: 800;
}

.idol-about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--idol-pink), var(--idol-gold));
}

.idol-related .tc-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.idol-related .tc-recommendation-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  color: var(--idol-ink);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(67, 31, 82, 0.1);
}

.idol-related .tc-recommendation-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
}

.idol-related .tc-recommendation-card span,
.idol-related .tc-recommendation-card small {
  display: block;
  padding: 0 16px;
}

.idol-related .tc-recommendation-card span {
  padding-top: 14px;
  font-weight: 900;
}

.idol-related .tc-recommendation-card small {
  padding-top: 8px;
  padding-bottom: 16px;
  color: var(--idol-muted);
  line-height: 1.6;
}

.idol-related-compact {
  margin-top: 28px;
}

.idol-related-compact .tc-recommendation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin-inline: auto;
}

.idol-related-compact .tc-recommendation-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  border-radius: 0;
}

.idol-related-compact .tc-recommendation-card span {
  padding-top: 12px;
  font-size: 0.92rem;
}

.idol-related-compact .tc-recommendation-card small {
  font-size: 0.78rem;
  line-height: 1.45;
}

.idol-loader {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 6px solid #f1e5ff;
  border-top-color: var(--idol-pink);
  border-right-color: var(--idol-gold);
  animation: idol-spin 0.9s linear infinite;
}

.idol-analyzing .idol-quiz-shell {
  text-align: center;
}

.idol-analyzing h2 {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 2.2rem);
}

.idol-analyzing p {
  margin: 12px 0 0;
  color: var(--idol-muted);
  font-weight: 800;
}

@keyframes idol-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .idol-page {
    width: min(100% - 22px, 680px);
    padding-top: 18px;
  }

  .idol-hero {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 26px;
  }

  .idol-hero-visual {
    order: -1;
  }

  .idol-hero-visual img {
    border-radius: 18px;
  }

  .idol-result-columns,
  .idol-type-grid,
  .idol-related .tc-recommendation-grid,
  .idol-profile-grid {
    grid-template-columns: 1fr;
  }

  .idol-related-compact .tc-recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .idol-page {
    width: 100%;
    padding: 10px 12px 44px;
  }

  .idol-hero,
  .idol-quiz-shell,
  .idol-result-card,
  .idol-about-card {
    border-radius: 22px;
  }

  .idol-hero h1 {
    font-size: clamp(2.15rem, 14vw, 3.4rem);
  }

  .idol-home-hero {
    padding: 12px;
    border-radius: 24px;
  }

  .idol-home-copy {
    padding-inline: 0;
  }

  .idol-home-copy h1 {
    font-size: clamp(1.78rem, 8.2vw, 2.16rem);
  }

  .idol-hero-actions,
  .idol-result-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .idol-share-row-outside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 4px;
  }

  .idol-profile-step .idol-hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .idol-primary-button,
  .idol-secondary-button,
  .idol-result-actions button,
  .idol-result-actions a {
    width: 100%;
  }

  .idol-share-row:not(.idol-share-row-outside) button {
    width: 100%;
  }

  .idol-quiz-shell,
  .idol-result-card {
    padding: 18px;
  }

  .idol-result-head {
    align-items: center;
    text-align: left;
  }

  .idol-result-image {
    width: 72px;
    height: 72px;
  }

  .idol-result-panel {
    padding: 18px;
  }

  .idol-related-compact .tc-recommendation-card img {
    width: 100%;
    height: auto;
  }

  .idol-related-compact .tc-recommendation-grid {
    gap: 10px;
  }

  .idol-related-compact .tc-recommendation-card {
    border-radius: 16px;
  }

  .idol-related-compact .tc-recommendation-card span,
  .idol-related-compact .tc-recommendation-card small {
    padding-inline: 10px;
  }

  .idol-related-compact .tc-recommendation-card span {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .idol-related-compact .tc-recommendation-card small {
    padding-bottom: 12px;
    font-size: 0.72rem;
  }
}

@media (max-width: 360px) {
  .idol-profile-step .idol-hero-actions {
    grid-template-columns: 1fr;
  }
}
