:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --text: #282523;
  --muted: #726e68;
  --line: #e5e0d8;
  --coral: #c87568;
  --coral-dark: #9f574e;
  --sage: #7b8d78;
  --champagne: #cdbb9f;
  --shadow: 0 18px 55px rgba(46, 39, 32, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #f3f2ee 100%);
  color: var(--text);
  font-family:
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, system-ui,
    sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(200, 117, 104, 0.35);
  outline-offset: 3px;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 100vh;
}

.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.panel-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--coral-dark);
  font-family: Georgia, serif;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(40, 37, 35, 0.07);
}

.brand-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-sub,
.panel-brand span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 2px;
}

.header-nav {
  display: flex;
  gap: 22px;
  font-size: 0.9rem;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
}

.section-view {
  display: none;
}

.section-view.is-active {
  display: block;
}

.hero {
  padding: 54px 0 72px;
}

.hero-copy {
  max-width: 760px;
}

.section-label {
  margin: 0 0 12px;
  color: var(--coral-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.96;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.hero-lead {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.45;
  font-weight: 700;
}

.hero-description {
  max-width: 690px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.hero-mini-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.hero-mini-points span,
.mode-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.method-note {
  max-width: 820px;
  margin: 22px auto 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
}

.method-note-label {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
}

.method-note h2 {
  margin: 0 0 8px;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.5;
}

.method-note p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.85;
}

.mode-heading {
  display: grid;
  grid-template-columns: minmax(28px, 1fr) auto minmax(28px, 1fr);
  gap: 18px;
  align-items: center;
  max-width: 760px;
  margin: 18px auto 24px;
  color: var(--text);
  text-align: center;
}

.mode-heading span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
}

.mode-heading h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.5;
}

.hero-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.mode-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.mode-card-women {
  border-color: rgba(200, 117, 104, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 246, 0.9)),
    var(--surface);
}

.mode-card .portrait {
  order: 2;
  height: 164px;
}

.mode-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.mode-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.42) 28%, rgba(255, 255, 255, 0) 62%);
}

.mode-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.mode-card-women .mode-photo img {
  object-position: center 18%;
}

.mode-card .mode-content {
  position: relative;
  z-index: 2;
  width: min(55%, 250px);
}

.mode-card-men {
  border-color: rgba(53, 91, 110, 0.42);
  opacity: 0.9;
}

.mode-status {
  margin-bottom: 10px;
  background: #f1efeb;
}

.mode-status.is-open {
  border-color: rgba(200, 117, 104, 0.3);
  background: rgba(200, 117, 104, 0.08);
  color: var(--coral-dark);
}

.mode-card h2 {
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.mode-card p {
  min-height: 78px;
  color: var(--muted);
  line-height: 1.7;
}

.mode-photo-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 52px);
  gap: 8px;
  margin: 16px 0 14px;
}

.mode-photo-thumbs img {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 10px 22px rgba(60, 50, 40, 0.12);
}

.home-preview-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.home-preview-card > p:first-child {
  max-width: 270px;
  margin: 0 auto 20px;
  color: var(--text);
  text-align: center;
  font-weight: 700;
  line-height: 1.9;
}

.preview-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 10px;
  margin-bottom: 16px;
}

.preview-main {
  height: 250px;
}

.preview-main-photo {
  width: 100%;
  height: 250px;
  border-radius: var(--radius);
  background: #fff;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 18px 34px rgba(60, 48, 40, 0.12);
}

.preview-thumbs {
  display: grid;
  gap: 10px;
}

.preview-thumbs img {
  width: 100%;
  height: 76px;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
  object-position: center top;
}

.preview-thumbs .portrait {
  height: 76px;
}

.preview-thumbs .face-shape {
  top: 23px;
  width: 28px;
  height: 36px;
}

.preview-thumbs .hair-shape {
  top: 12px;
  width: 50px;
  height: 58px;
}

.home-preview-card h2 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.home-preview-note {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.home-preview-swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.home-preview-swatches span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.home-preview-swatches span::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 1px solid rgba(40, 37, 35, 0.16);
  border-radius: 50%;
  background: var(--swatch);
}

.portrait {
  position: relative;
  height: 172px;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(236, 229, 218, 0.88)),
    var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 54px;
  border-radius: 60% 60% 0 0;
  background: #d4b79c;
  opacity: 0.45;
}

.face-shape {
  position: absolute;
  left: 50%;
  top: 48px;
  width: 58px;
  height: 74px;
  transform: translateX(-50%);
  border-radius: 44% 44% 48% 48%;
  background: #e6c6ad;
  box-shadow: inset 0 -10px 18px rgba(128, 86, 61, 0.12);
  z-index: 2;
}

.hair-shape {
  position: absolute;
  left: 50%;
  top: 22px;
  width: 96px;
  height: 114px;
  transform: translateX(-50%);
  z-index: 1;
}

.hair-shape-women {
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(150deg, #3c2a25, #8a5d46 62%, #b28468);
}

.hair-shape-men {
  top: 32px;
  height: 62px;
  border-radius: 48% 52% 40% 40%;
  background: linear-gradient(150deg, #252729, #53645e);
}

.button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.button.primary {
  background: var(--coral);
  color: #fff;
}

.button.primary:hover {
  background: var(--coral-dark);
}

.button:not(:disabled):active {
  transform: translateY(1px);
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.button.secondary:hover {
  border-color: rgba(200, 117, 104, 0.42);
  box-shadow: 0 8px 20px rgba(46, 39, 32, 0.07);
}

.button.ghost {
  background: #eef0ec;
  color: #6b7469;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.preview-strip span {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.88rem;
}

.home-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 52px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.home-detail h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.35;
}

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

.detail-grid article {
  position: relative;
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.detail-grid article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 18px;
  border-top: 2px dotted #9d9992;
}

.detail-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--champagne);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.detail-grid h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.detail-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.privacy-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(205, 187, 159, 0.5);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(205, 187, 159, 0.22), rgba(255, 255, 255, 0.78));
}

.privacy-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(159, 87, 78, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--coral-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.privacy-strip p {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.7;
}

.privacy-strip a {
  color: var(--coral-dark);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.diagnosis-view {
  grid-template-columns: 220px minmax(0, 1fr) 320px;
  gap: 18px;
  padding: 20px 0 48px;
}

.diagnosis-view.is-active {
  display: grid;
}

.step-panel,
.question-panel,
.karte-panel,
.result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.step-panel {
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 20px;
}

.step-list {
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
}

.step-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.step-dot {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
}

.step-list li.is-current {
  color: var(--text);
  font-weight: 700;
}

.step-list li.is-current .step-dot,
.step-list li.is-done .step-dot {
  border-color: var(--coral);
  background: var(--coral);
  color: #fff;
}

.question-panel {
  padding: clamp(22px, 4vw, 42px);
}

.mobile-progress {
  display: none;
}

.question-heading h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.25;
}

.question-heading p {
  color: var(--muted);
  line-height: 1.75;
}

.question-count {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.options-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.option-button {
  position: relative;
  width: 100%;
  min-height: 72px;
  display: block;
  padding: 16px 92px 16px 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.option-check {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 4px var(--surface);
}

.option-button strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
}

.option-button span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.option-button.is-selected {
  border-color: var(--coral);
  background: linear-gradient(180deg, #ffffff 0%, #fff8f6 100%);
  box-shadow:
    0 0 0 3px rgba(200, 117, 104, 0.13),
    0 12px 28px rgba(46, 39, 32, 0.08);
}

.option-button.is-selected .option-check {
  border-color: var(--coral);
  background: var(--coral);
  box-shadow: inset 0 0 0 4px #fff8f6;
}

.option-button.is-selected::after {
  content: "選択中";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(200, 117, 104, 0.12);
  color: var(--coral-dark);
  font-size: 0.72rem;
  font-weight: 700;
}

.option-button:hover {
  border-color: rgba(200, 117, 104, 0.5);
  box-shadow: 0 10px 26px rgba(46, 39, 32, 0.07);
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.text-button {
  display: inline-flex;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.karte-panel {
  align-self: start;
  padding: 22px;
  position: sticky;
  top: 20px;
}

.karte-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.karte-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.mini-swatches {
  display: flex;
  gap: 6px;
}

.mini-swatches span {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(40, 37, 35, 0.16);
  border-radius: 50%;
  background: var(--swatch);
}

.karte-rows {
  display: grid;
  gap: 10px;
}

.karte-row {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 250, 247, 0.74);
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.karte-row.is-filled {
  border-color: rgba(200, 117, 104, 0.28);
  background: #fff8f6;
  box-shadow: 0 8px 20px rgba(46, 39, 32, 0.05);
}

.karte-row strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 0.88rem;
}

.karte-row strong::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--champagne);
  border-radius: 50%;
  background: transparent;
}

.karte-row.is-filled strong::before {
  border-color: var(--coral);
  background: var(--coral);
}

.karte-row span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.karte-row.is-empty span {
  color: #8d8880;
}

.mini-preview {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.portrait.small {
  height: 76px;
}

.portrait.small .face-shape {
  top: 25px;
  width: 28px;
  height: 36px;
}

.portrait.small .hair-shape {
  top: 13px;
  width: 48px;
  height: 55px;
}

.mini-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.result-view {
  padding: 34px 0 70px;
}

.result-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  padding: 34px 36px;
  border: 1px solid rgba(184, 140, 96, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 20%, rgba(200, 117, 104, 0.12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #fffaf8 56%, #f6f1ea 100%);
  box-shadow: 0 22px 58px rgba(80, 60, 45, 0.12);
}

.result-hero h2 {
  max-width: 860px;
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 4.2vw, 3.35rem);
  line-height: 1.14;
}

.result-hero p {
  max-width: 740px;
  color: var(--muted);
  line-height: 1.85;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 820px;
  margin-top: 18px;
}

.result-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.84rem;
}

.result-tags span:first-child {
  flex-basis: 100%;
  border-color: rgba(200, 117, 104, 0.34);
  background: rgba(200, 117, 104, 0.06);
}

.result-tags strong {
  color: var(--coral-dark);
  font-size: 0.76rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.result-card {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(184, 140, 96, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.result-card h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.subheading {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 0.95rem;
}

.result-card p,
.result-details {
  color: var(--muted);
  line-height: 1.85;
}

.note-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.note-list li {
  position: relative;
  padding: 11px 12px 11px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.note-list li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.feature-result,
.order-card,
.visual-result,
.product-card {
  grid-column: span 2;
}

.visual-result {
  display: grid;
  gap: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 246, 240, 0.92)),
    var(--surface);
}

.style-candidates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.style-candidate {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(184, 140, 96, 0.2);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 34px rgba(70, 56, 45, 0.08);
}

.style-candidate h4 {
  margin: 4px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.candidate-length {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(200, 117, 104, 0.26);
  border-radius: 999px;
  background: rgba(200, 117, 104, 0.08);
  color: var(--coral-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

.style-candidate p {
  min-height: 68px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.angle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
}

.angle-main,
.angle-thumb {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 232, 221, 0.82)),
    var(--surface);
  overflow: hidden;
}

.angle-main {
  min-height: 292px;
  aspect-ratio: 3 / 4;
  grid-row: span 3;
}

.angle-thumb {
  min-height: 76px;
  aspect-ratio: 4 / 3;
}

.angle-label {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 4;
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
}

.feature-result {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 242, 234, 0.9)),
    var(--surface);
}

.order-card {
  border-color: rgba(200, 117, 104, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 250, 248, 0.96), rgba(255, 255, 255, 0.94)),
    var(--surface);
}

.order-card p {
  padding: 16px 18px;
  border: 1px solid rgba(200, 117, 104, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font-weight: 600;
}

.style-visual-face {
  position: relative;
  width: 126px;
  height: 164px;
}

.style-face {
  position: absolute;
  left: 50%;
  top: 42px;
  width: 64px;
  height: 82px;
  transform: translateX(-50%);
  border-radius: 44% 44% 48% 48%;
  background: #e6c6ad;
  z-index: 2;
}

.style-hair {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 104px;
  height: 132px;
  transform: translateX(-50%);
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(150deg, #30231f, #825a45 62%, #b28468);
  z-index: 1;
}

.style-visual-face.short .style-hair {
  top: 26px;
  width: 98px;
  height: 82px;
  border-radius: 48% 52% 42% 42%;
}

.style-visual-face.medium .style-hair {
  height: 132px;
}

.style-visual-face.long .style-hair {
  top: 10px;
  width: 112px;
  height: 152px;
  border-radius: 48% 48% 36% 36%;
}

.style-visual-face.side .style-face {
  width: 44px;
  border-radius: 48% 36% 44% 46%;
}

.style-visual-face.back .style-face {
  display: none;
}

.style-visual-face.back .style-hair {
  width: 92px;
}

.angle-thumb .style-visual-face {
  width: 66px;
  height: 70px;
}

.angle-thumb .style-face {
  top: 24px;
  width: 32px;
  height: 40px;
}

.angle-thumb .style-hair {
  top: 12px;
  width: 52px;
  height: 58px;
}

.angle-thumb .style-visual-face.short .style-hair {
  top: 20px;
  width: 54px;
  height: 40px;
}

.angle-thumb .style-visual-face.long .style-hair {
  top: 8px;
  width: 56px;
  height: 68px;
}

.angle-thumb .style-visual-face.back .style-hair {
  width: 50px;
}

.angle-main img,
.angle-thumb img {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
}

.result-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.result-swatches span {
  min-width: 116px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.84rem;
}

.result-swatches span::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 1px solid rgba(40, 37, 35, 0.16);
  border-radius: 50%;
  background: var(--swatch);
}

.result-details {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 14px;
  margin: 0;
}

.result-details dt {
  color: var(--text);
  font-weight: 700;
}

.result-details dd {
  margin: 0;
}

.save-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.save-row span {
  color: var(--coral-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.save-row span.is-copied {
  color: var(--sage);
}

.result-bottom-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

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

.item-placeholders span {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.result-method-note {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.result-method-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.92rem;
}

.result-method-note p {
  margin: 0;
}

.site-footer {
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.site-footer p {
  margin: 0;
}

.footer-references {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-references h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.92rem;
}

.footer-references ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-references a {
  color: var(--muted);
  text-decoration-color: rgba(139, 111, 81, 0.35);
  text-underline-offset: 3px;
}

.footer-references a:hover {
  color: var(--accent-strong);
}

@media (max-width: 920px) {
  .site-shell {
    width: min(100% - 28px, 720px);
  }

  .site-header {
    height: 70px;
  }

  .header-nav {
    display: none;
  }

  .hero {
    padding: 26px 0 48px;
  }

  .hero-main-grid {
    grid-template-columns: 1fr;
  }

  .mode-heading {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 14px 0 18px;
    text-align: left;
  }

  .mode-heading span {
    display: none;
  }

  .mode-grid {
    grid-template-columns: 1fr;
  }

  .mode-card {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(128px, 0.42fr) 1fr;
    min-height: 176px;
    padding: 18px;
  }

  .mode-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: 188px;
    border-radius: var(--radius);
  }

  .mode-photo img {
    object-position: center 22%;
  }

  .mode-photo::after {
    background: linear-gradient(180deg, transparent 46%, rgba(255, 255, 255, 0.74));
  }

  .mode-card .mode-content {
    width: auto;
  }

  .mode-photo-thumbs {
    grid-template-columns: repeat(3, 46px);
  }

  .mode-photo-thumbs img {
    width: 46px;
    height: 46px;
  }

  .mode-card p {
    min-height: auto;
  }

  .home-preview-card {
    display: none;
  }

  .home-detail {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid article:not(:last-child)::after {
    display: none;
  }

  .privacy-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .privacy-strip a {
    grid-column: 2;
  }

  .portrait {
    height: 128px;
  }

  .diagnosis-view.is-active {
    display: block;
  }

  .step-panel {
    display: none;
  }

  .question-panel {
    padding: 18px;
  }

  .mobile-progress {
    display: block;
    margin-bottom: 22px;
  }

  .mobile-progress-top {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
  }

  .progress-track {
    height: 4px;
    margin: 10px 0 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #ebe7df;
  }

  .progress-track span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--coral);
    transition: width 0.2s ease;
  }

  .step-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .step-chips span {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.78rem;
  }

  .step-chips span.is-current {
    border-color: var(--coral);
    color: var(--coral-dark);
    font-weight: 700;
  }

  .karte-panel {
    position: static;
    margin-top: 14px;
    padding: 18px;
  }

  .karte-rows {
    grid-template-columns: 1fr;
  }

  .mini-preview {
    display: none;
  }

  .quiz-actions {
    position: sticky;
    bottom: 0;
    margin: 22px -18px -18px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
  }

  .text-button {
    margin-bottom: 74px;
  }

  .quiz-actions .button {
    flex: 1;
  }

  .result-hero {
    display: block;
    padding: 24px;
  }

  .result-tags {
    gap: 7px;
  }

  .result-tags span {
    flex: 1 1 190px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .feature-result,
  .order-card,
  .visual-result,
  .product-card {
    grid-column: auto;
  }

  .visual-result {
    grid-template-columns: 1fr;
  }

  .style-candidates {
    grid-template-columns: 1fr;
  }

  .angle-main {
    min-height: 260px;
    aspect-ratio: 4 / 3;
  }

  .angle-thumb {
    min-height: 82px;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 20px, 420px);
  }

  h1 {
    font-size: 2.95rem;
  }

  .hero-lead {
    font-size: 1.22rem;
  }

  .mode-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .mode-card .mode-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mode-photo-thumbs {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
  }

  .mode-card .button {
    margin-right: auto;
    margin-left: auto;
  }

  .mode-photo {
    height: 210px;
  }

  .mode-card .portrait::after {
    height: 36px;
  }

  .mode-card .face-shape {
    top: 30px;
    width: 44px;
    height: 56px;
  }

  .mode-card .hair-shape {
    top: 13px;
    width: 76px;
    height: 82px;
  }

  .mode-card .hair-shape-men {
    top: 24px;
    height: 48px;
  }

  .mode-card p {
    min-height: auto;
  }

  .preview-strip span {
    font-size: 0.8rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .privacy-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .privacy-strip a {
    grid-column: auto;
  }

  .question-panel,
  .karte-panel,
  .result-card,
  .result-hero {
    border-radius: 0;
  }

  .option-button {
    min-height: 68px;
    padding: 15px 78px 15px 46px;
  }

  .option-check {
    left: 16px;
    top: 21px;
  }

  .option-button.is-selected::after {
    top: 10px;
    right: 10px;
    font-size: 0.68rem;
  }

  .result-details {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .result-tags span {
    flex-basis: 100%;
    justify-content: space-between;
  }

  .style-candidate {
    padding: 12px;
  }

  .style-candidate h4 {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .style-candidate p {
    min-height: 0;
  }

  .angle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .angle-main {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 250px;
    aspect-ratio: 4 / 3;
  }

  .angle-thumb {
    min-width: 0;
    min-height: 78px;
  }

  .angle-label {
    right: 5px;
    bottom: 5px;
    font-size: 0.56rem;
  }

  .result-swatches span {
    min-width: 0;
    flex: 1 1 160px;
  }

  .note-list li {
    padding: 10px 11px 10px 30px;
    font-size: 0.86rem;
  }

  .note-list li::before {
    left: 12px;
  }

  .item-placeholders {
    grid-template-columns: 1fr;
  }

  .save-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .save-row .button {
    width: 100%;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .site-footer,
  .result-bottom-actions,
  .save-row,
  .product-card {
    display: none !important;
  }

  .site-shell {
    width: 100%;
  }

  .section-view {
    display: none !important;
  }

  #result-view {
    display: block !important;
    padding: 0;
  }

  .result-hero,
  .result-card {
    box-shadow: none;
    break-inside: avoid;
  }

  .result-grid {
    display: block;
  }

  .result-card {
    margin-bottom: 14px;
    padding: 16px;
    border-color: #ddd;
  }

  .style-candidates {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .style-candidate {
    padding: 10px;
    break-inside: avoid;
  }

  .angle-grid {
    grid-template-columns: 1fr;
  }

  .angle-main {
    min-height: 110px;
    aspect-ratio: 4 / 3;
    grid-row: auto;
  }

  .angle-thumb {
    display: none;
  }

  .note-list li {
    padding: 8px 10px 8px 26px;
    background: #fff;
  }

  .note-list li::before {
    top: 15px;
  }
}
