/* 切り口を選ぶ（.axis-choices .axis-slot* .axis-selection .cx-* .au*）。 */
.choose-stage {
  max-width: 1000px;
  margin: 0 auto;
}
.stage-back {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}
.stage-back > span {
  max-width: 65%;
  overflow-wrap: anywhere;
  text-align: right;
}
.axis-choices {
  --choice-gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: var(--space-6);
  margin: 0;
}
.choose-stage .axis-choices {
  background: none;
  border: 0;
  padding: 0;
  margin: var(--space-5) 0 var(--space-7);
}
.cx-label {
  margin: 0 0 var(--space-3);
  font-size: var(--type-note);
  color: var(--text-muted);
}
.stage-back .small-button {
  white-space: nowrap;
}
.au .cx-label span {
  margin-left: var(--space-2);
  font-size: var(--fs-tag);
  color: var(--text-muted);
}
.au .cx-label b {
  margin-left: var(--space-3);
  font-weight: 600;
  color: var(--fill-text);
}
.au-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.au-name {
  font-size: var(--type-note);
  color: var(--text-muted);
  min-width: 2.5rem;
}
.au-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  padding: var(--space-2) var(--space-4);
  font-size: var(--type-note);
  background: var(--surface);
  min-height: 2.75rem;
}
.axis-choices h1 {
  font-size: var(--fs-head);
  line-height: 1.55;
}
.axis-choices > p {
  margin: var(--space-3) 0 var(--space-5);
}
.au-chip.on {
  background: var(--chosen-bg);
  border-color: var(--fill-text);
  color: var(--fill);
}
.cx-own {
  padding: 0;
  margin: var(--space-5) 0 0;
  border-top: 1px solid var(--line-soft);
}
.audience-details > summary,
.cx-own > summary {
  font-size: var(--fs-body);
}
.au {
  border: 0;
  margin: 0;
  padding: var(--space-2) 0;
}
.axes-skeleton {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}
.axes-skeleton span {
  height: 7rem;
  background: var(--surface-quiet);
  border-radius: var(--radius-card);
}
.stage-product-form {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: min(640px, 70%);
}
.stage-product-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: var(--space-2) 0;
  font: inherit;
  font-size: var(--fs-body);
  color: var(--text);
}
.stage-product-form button {
  white-space: nowrap;
  font-size: var(--fs-control);
}
/* 選択肢は1行ずつ。組み合わせ（.cx-example）、自分で選ぶ切り口（.cx-axis）、選んだ横・縦（.axis-slot）、選んだ組み合わせ（.axis-selection）。
 * 行は線で区切り、選んだ行だけ地を敷く。701px以上は二段組、スマホは1列で、名前と軸を2段に。 */
.cx-examples {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: var(--space-5) 0 var(--space-4);
}
.cx-example {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  align-content: center;
  column-gap: var(--space-4);
  row-gap: 0.125rem;
  min-height: 3.5rem;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-7);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.cx-example:first-child {
  border-top: 1px solid var(--line);
}
/* 丸い印は名前の1行目の高さに置く（行が隣に合わせて高くなっても、名前と並ぶ）。 */
.cx-title::before {
  content: '';
  position: absolute;
  left: -2.125rem;
  top: calc(0.5lh - 0.5rem);
  width: 1rem;
  height: 1rem;
  box-sizing: border-box;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-face);
  background: var(--surface);
}
.cx-example.on .cx-title::before {
  border: 5px solid var(--fill);
}
.cx-example:hover,
.cx-example.on {
  background: var(--surface-quiet);
}
.cx-example:focus-visible {
  outline: 2px solid var(--fill-text);
  outline-offset: -2px;
}
.cx-title {
  position: relative;
  font-family: var(--font-serif);
  font-size: var(--type-body-lg);
  color: var(--text-head);
  word-break: auto-phrase;
}
.cx-pair {
  margin-left: auto;
  font-size: var(--type-note);
  color: var(--text-muted);
  white-space: nowrap;
}
.cx-group h2 {
  margin: 0 0 var(--space-2);
  font-family: inherit;
  font-size: var(--fs-lead);
  font-weight: 500;
  color: var(--text-head);
}
.cx-own .cx-group {
  margin-top: var(--space-6);
}
.cx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.cx-axis {
  display: grid;
  grid-template-columns: minmax(5.5rem, auto) minmax(0, 1fr) 2.25rem;
  align-items: center;
  align-content: center;
  column-gap: var(--space-4);
  min-height: 3rem;
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.cx-axis:first-child {
  border-top: 1px solid var(--line);
}
.cx-axis:hover,
.cx-axis.on {
  background: var(--surface-quiet);
}
.cx-axis:focus-visible,
.axis-slot:focus-visible {
  outline: 2px solid var(--fill-text);
  outline-offset: -2px;
}
.cx-name {
  font-size: var(--type-body);
  white-space: nowrap;
}
.cx-compare {
  font-size: var(--type-note);
  color: var(--text-muted);
  word-break: auto-phrase;
}
.cx-mark {
  font-size: var(--type-note);
  font-weight: 500;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}
.axis-slots {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: var(--space-4) 0;
}
.axis-slot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  align-content: center;
  column-gap: var(--space-4);
  min-height: 3rem;
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.axis-slot:first-child {
  border-top: 1px solid var(--line);
}
.axis-slot.on {
  background: var(--surface-quiet);
  box-shadow: inset 2px 0 var(--fill);
}
.axis-slot b {
  font-size: var(--type-body);
  font-weight: 500;
  white-space: nowrap;
}
.axis-slot span {
  font-size: var(--type-body);
  word-break: auto-phrase;
}
.axis-slot small {
  font-size: var(--type-note);
  color: var(--fill-text);
  white-space: nowrap;
}
.axis-selection {
  display: grid;
  gap: var(--space-1);
  margin: var(--space-2) 0 var(--space-4);
  padding: var(--space-2) var(--space-3);
}
.axis-selection p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-4);
  margin: 0;
  font-size: var(--type-body);
  color: var(--text-muted);
}
.axis-selection b {
  font-weight: 400;
  white-space: nowrap;
}
.axis-selection span {
  color: var(--text);
  word-break: auto-phrase;
}
.cx-cta {
  display: flex;
  justify-content: center;
  margin: var(--space-4) 0;
}
@media (max-width: 768px) {
  .axis-choices h1 {
    font-size: var(--fs-head);
  }
  .axes-skeleton {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .axis-choices {
    padding: var(--space-5) var(--space-4);
  }
  .stage-product-form input {
    min-height: 2.75rem;
  }
  .stage-product-form button {
    min-height: 2.75rem;
    padding: 0 var(--space-4);
  }
  .axes-wait-title {
    font-size: var(--fs-lead);
  }
  .axis-choices h1.axes-wait-title,
  .choose-stage h1.axes-wait-title {
    font-size: var(--fs-head);
    white-space: nowrap;
  }
  .stage-back {
    gap: var(--space-3);
    flex-wrap: wrap;
  }
  .stage-product-form {
    width: 100%;
  }
  /* 「この切り口で人物を見る」は、選んでいるあいだ画面の下に置いておく。 */
  .cx-cta {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: var(--space-4) 0 0;
    padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  .cx-cta .primary {
    width: 100%;
  }
}
/* 1行に収まらない幅では、名前の下に軸を置く（二段組のままでも、1列でも）。 */
@media (max-width: 1023px) {
  .cx-example {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
  }
  .cx-pair {
    margin-left: 0;
  }
  .cx-axis {
    grid-template-columns: minmax(0, 1fr) 2.5rem;
    row-gap: 0.125rem;
  }
  .cx-axis .cx-compare {
    grid-column: 1;
    grid-row: 2;
  }
  .cx-axis .cx-mark {
    grid-column: 2;
    grid-row: 1/3;
  }
  .axis-slot {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.125rem;
  }
  .axis-slot span {
    grid-column: 1;
    grid-row: 2;
  }
  .axis-slot small {
    grid-column: 2;
    grid-row: 1/3;
  }
}
@media (min-width: 701px) {
  .cx-examples,
  .cx-grid,
  .axis-slots,
  .axis-selection {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-6);
  }
  .cx-example:nth-child(2),
  .cx-axis:nth-child(2),
  .axis-slot:nth-child(2) {
    border-top: 1px solid var(--line);
  }
}
