/* ===== 診断プレイ画面 ===== */
.explorer-type {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.explorer-type__eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #6c757d;
}

.explorer-type__title {
  line-height: 1.4;
}

.explorer-type__question {
  min-height: 3.5rem;
  line-height: 1.5;
}

.explorer-type__choice {
  text-align: left;
  padding: 1rem 1.25rem;
  white-space: normal;
  line-height: 1.45;
  border-radius: 0.75rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.explorer-type__choice:hover,
.explorer-type__choice:focus {
  background-color: #fff5f5;
  border-color: #dc3545;
}

.explorer-type__tagline {
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.explorer-type__story {
  max-width: 28rem;
  line-height: 1.7;
}

.explorer-type__disclaimer {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.25rem;
  font-size: 0.65rem;
  line-height: 1.35;
  color: #adb5bd;
  opacity: 0.95;
}

.explorer-type-intro-note {
  font-size: 0.7rem;
  color: #adb5bd;
}

@media (min-width: 576px) {
  .explorer-type__choices {
    max-width: 32rem;
    margin: 0 auto;
  }
}

/* ===== 結果画面（Phase 1: 2カラムカード） ===== */
.container--explorer-wide .explorer-type,
.explorer-type.explorer-type--result {
  max-width: 52rem;
}

.explorer-type__result {
  --et-theme: #dc3545;
  --et-bg: #f8f9fa;
}

.explorer-type-result-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.explorer-type-result-card__hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .explorer-type-result-card__hero {
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    gap: 1.75rem;
    padding: 1.75rem 2rem;
    align-items: start;
  }
}

.explorer-type-result-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 100%;
  max-width: 14rem;
}

.explorer-type-result-card__head {
  text-align: center;
  min-width: 0;
}

.explorer-type-result-card__head .explorer-type__result-tags {
  justify-content: center;
}

.explorer-type-result-card__en {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--et-theme, #6c757d);
}

.explorer-type-result-card__name {
  line-height: 1.25;
  color: #212529;
}

.explorer-type__tagline {
  color: var(--et-theme, #495057);
  font-size: 1rem;
  line-height: 1.5;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.explorer-type__result-tags {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.explorer-type__result-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--et-bg, #f8f9fa);
  color: var(--et-theme, #495057);
  border: 1px solid color-mix(in srgb, var(--et-theme, #adb5bd) 35%, transparent);
}

.explorer-type-result-card__cta {
  font-weight: 700;
  color: #fff;
  background: var(--et-theme, #dc3545);
  border: none;
  padding: 0.65rem 1.25rem;
  box-shadow: 0 3px 12px color-mix(in srgb, var(--et-theme, #dc3545) 45%, transparent);
}

.explorer-type-result-card__cta:hover,
.explorer-type-result-card__cta:focus {
  color: #fff;
  filter: brightness(1.05);
}

.explorer-type-result-card__cta-note {
  line-height: 1.45;
}

.explorer-type__result-heading {
  color: var(--et-theme, #212529);
  margin-bottom: 0.5rem;
}

.explorer-type-result-card__detail {
  padding: 1.25rem 1.25rem 1.5rem;
  border-top: 1px solid #eef1f4;
  background: color-mix(in srgb, var(--et-bg, #f8f9fa) 55%, #fff);
  line-height: 1.7;
}

.explorer-type-result-start {
  margin: 1rem 0 1.25rem;
}

@media (min-width: 768px) {
  .explorer-type-result-card__detail {
    padding: 1.5rem 2rem 1.75rem;
  }

  .explorer-type-result-start {
    margin: 1.25rem 0 1.5rem;
  }
}

.explorer-type__result-about p:last-child,
.explorer-type__result-cube p:last-child {
  margin-bottom: 0;
}

.explorer-type__result-actions .btn-outline-primary {
  border-color: var(--et-theme, #0d6efd);
  color: var(--et-theme, #0d6efd);
}

.explorer-type__result-actions .btn-outline-primary:hover {
  background: var(--et-theme, #0d6efd);
  border-color: var(--et-theme, #0d6efd);
  color: #fff;
}

/* スマホ: 共有シートで足りるためコピーボタンは非表示 */
@media (max-width: 575.98px) {
  .explorer-type__result-actions #explorer-type-copy {
    display: none;
  }
}

.explorer-type__result-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  padding: 0.5rem;
  background: var(--et-bg, #f8f9fa);
  border-radius: 0.75rem;
}

.explorer-type__result-emoji {
  font-size: 4.5rem;
  line-height: 1;
}

.explorer-type-result-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0.5rem;
  max-width: 36rem;
  margin: 0 auto 1rem;
}

.explorer-type-result-nav__link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.3;
  color: #495057;
  text-decoration: none;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.65rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s ease, background-color 0.15s ease;
  min-width: 0;
}

.explorer-type-result-nav__link:hover,
.explorer-type-result-nav__link:focus {
  color: var(--et-theme, #212529);
  border-color: color-mix(in srgb, var(--et-theme, #adb5bd) 50%, #dee2e6);
  background: var(--et-bg, #f8f9fa);
}

.explorer-type-result-nav__link--next {
  text-align: right;
}

.explorer-type-result-nav__dir {
  font-size: 0.65rem;
  color: #6c757d;
}

.explorer-type-result-nav__name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorer-type-result-nav__pos {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #6c757d;
  padding: 0 0.25rem;
}

/* ===== 一覧・トップページ ===== */
/* サイト既定 container は 480px → 8タイプ一覧だけ広げる */
.container--explorer-wide,
.container:has(.explorer-type-page) {
  max-width: 1100px;
}

.explorer-type-page {
  margin-bottom: 2rem;
  width: 100%;
}

.explorer-type-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6b4a 0%, #e63946 55%, #d62839 100%);
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.explorer-type-btn-primary:hover,
.explorer-type-btn-primary:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.4);
}

.explorer-type-btn-outline {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: #e63946;
  background: #fff;
  border: 2px solid #e63946;
  border-radius: 999px;
}

.explorer-type-btn-outline:hover,
.explorer-type-btn-outline:focus {
  color: #fff;
  background: #e63946;
}

.explorer-type-btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1.5rem;
  font-weight: 700;
  color: #c1121f;
  background: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.explorer-type-btn-light:hover,
.explorer-type-btn-light:focus {
  color: #9d0208;
  background: #fff;
}

/* Hero */
.explorer-type-hero {
  margin: 0 0 2rem;
  padding: 1.5rem 1rem 2rem;
  background: linear-gradient(160deg, #fffdf8 0%, #fff4e8 45%, #ffe8d6 100%);
  border-radius: 1.25rem;
}

@media (min-width: 768px) {
  .explorer-type-hero {
    padding: 2rem 2rem 2.5rem;
  }
}

.explorer-type-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .explorer-type-hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.explorer-type-hero__content {
  flex: 1 1 auto;
  text-align: center;
}

@media (min-width: 768px) {
  .explorer-type-hero__content {
    text-align: left;
  }
}

.explorer-type-hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.explorer-type-hero__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  color: #e85d04;
  margin-bottom: 0.75rem;
}

.explorer-type-hero__lead {
  font-size: 1rem;
  line-height: 1.6;
  color: #495057;
  margin-bottom: 1rem;
}

.explorer-type-hero__note {
  margin-bottom: 1rem !important;
}

.explorer-type-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .explorer-type-hero__actions {
    justify-content: flex-start;
  }
}

.explorer-type-hero__hint {
  color: #6c757d;
  margin: 0;
}

.explorer-type-hero__visual {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 280px;
  min-height: 200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .explorer-type-hero__visual {
    width: 280px;
    margin: 0;
  }
}

.explorer-type-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.explorer-type-hero__orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.explorer-type-hero__orb--1 {
  width: 120px;
  height: 120px;
  top: 10%;
  right: 5%;
  background: radial-gradient(circle, #ffd6a5 0%, transparent 70%);
}

.explorer-type-hero__orb--2 {
  width: 80px;
  height: 80px;
  bottom: 15%;
  left: 10%;
  background: radial-gradient(circle, #ffcad4 0%, transparent 70%);
}

.explorer-type-hero__cube {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.explorer-type-intro-copy {
  max-width: 40rem;
  padding: 0 0.5rem 1.5rem;
  line-height: 1.7;
}

.explorer-type-types-section {
  margin-bottom: 0.5rem;
}

.explorer-type-section-title {
  font-weight: 800;
  color: #e85d04;
}

/* Type cards grid（Bootstrap row/col は使わない） */
.explorer-type-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%;
}

@media (min-width: 576px) {
  .explorer-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 992px) {
  .explorer-type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.explorer-type-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.explorer-type-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* イラストは 510×510 正方形 — 比率を変えずカード幅に収める */
.explorer-type-card__media {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0.5rem;
  background: var(--et-bg, #f8f9fa);
  box-sizing: border-box;
}

.explorer-type-card__badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.9rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.explorer-type-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* 診断トップのカードのみ: 背景枠・画像を角丸（結果ページは対象外） */
.explorer-type-page .explorer-type-card__media {
  border-radius: 0.75rem;
  overflow: hidden;
}

.explorer-type-page .explorer-type-card__img {
  border-radius: 0.6rem;
}

.explorer-type__result-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0.75rem;
}

/* 診断トップのみ: スマホ1列でイラストを小さく（背景・画像とも角丸） */
@media (max-width: 575.98px) {
  .explorer-type-page .explorer-type-card__media {
    width: min(10.5rem, calc(100% - 1.5rem));
    margin: 0.5rem auto 0;
    aspect-ratio: 1 / 1;
    max-height: 10.5rem;
    padding: 0.35rem;
    box-sizing: border-box;
  }

  .explorer-type-page .explorer-type-card__badge {
    top: 0.35rem;
    left: 0.35rem;
  }
}

.explorer-type-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1rem 1rem 0.85rem;
}

.explorer-type-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.explorer-type-card__name {
  display: block;
  font-weight: 800;
  color: #212529;
}

.explorer-type-card__name-en {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--et-theme, #e63946);
}

.explorer-type-card__tagline {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #495057;
  margin: 0 0 0.65rem;
}

.explorer-type-card__tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  color: #495057;
  background: var(--et-bg, #f1f3f5);
  border-radius: 999px;
}

.explorer-type-card__btn-result {
  font-weight: 600;
  color: #e63946;
  background: #fff;
  border: 2px solid #e63946;
  border-radius: 0.5rem;
  padding: 0.45rem 0.75rem;
}

.explorer-type-card__btn-result:hover,
.explorer-type-card__btn-result:focus {
  color: #fff;
  background: #e63946;
}

.explorer-type-card__cta-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  color: #495057;
  text-decoration: none;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

.explorer-type-card__cta-link:hover,
.explorer-type-card__cta-link:focus {
  color: var(--et-theme, #e63946);
  background: #f1f3f5;
}

/* Bottom CTA banner */
.explorer-type-cta-banner {
  margin: 2rem 0 1rem;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(135deg, #ff8c42 0%, #e63946 50%, #c1121f 100%);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.25);
}

.explorer-type-cta-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 576px) {
  .explorer-type-cta-banner__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.explorer-type-cta-banner__title {
  font-weight: 700;
  color: #fff;
}

.explorer-type-cta-banner__sub {
  color: rgba(255, 255, 255, 0.9);
}
