* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bone: #f4f1ec;
  --paper: #fffdf8;
  --ink: #191713;
  --muted: #6f6a61;
  --line: #d9d1c4;
  --charcoal: #24221f;
  --night: #111111;
  --wine: #8c2431;
  --sage: #7f8a71;
  --brass: #b08a4a;
  --mist: #dfe4df;
  --clay: #b96751;
  --shadow: 0 20px 50px rgba(25, 23, 19, 0.12);
  --card-back-image: url('.././assets/card-back.webp');
}

html,
body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  background:
    linear-gradient(90deg, rgba(25, 23, 19, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(25, 23, 19, 0.03) 1px, transparent 1px),
    var(--bone);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", "Yu Mincho", serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100svh;
  margin: 0 auto;
  background: var(--bone);
  overflow-x: hidden;
}

@media (min-width: 720px) {
  body {
    padding: 24px;
  }

  .app {
    min-height: calc(100svh - 48px);
    border: 1px solid rgba(25, 23, 19, 0.12);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
}

.view {
  display: none;
  min-height: 100svh;
  padding: 22px 20px 108px;
}

.view.active {
  display: block;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-ja {
  font-size: 17px;
  font-weight: 700;
}

.brand-en,
.meta,
.small,
.button-sub,
.chip,
.card-en,
.position {
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
}

.brand-en {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
}

.usage {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--charcoal);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 12px;
  font-weight: 700;
}

.usage-mark {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--sage);
}

.intro {
  margin-bottom: 20px;
}

.kicker {
  margin-bottom: 12px;
  color: var(--wine);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 12px;
  font-weight: 700;
}

h1,
h2 {
  font-weight: 600;
  line-height: 1.14;
}

h1 {
  max-width: none;
  font-size: 34px;
}

h2 {
  font-size: 31px;
}

.lead {
  margin-top: 13px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.daily {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: center;
  margin: 24px -20px 28px;
  padding: 18px 20px;
  background: var(--charcoal);
  color: var(--paper);
}

.tarot-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  aspect-ratio: 5 / 7;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    var(--night);
  border: 1px solid rgba(255, 253, 248, 0.38);
  border-radius: 8px;
  color: var(--brass);
}

.tarot-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(176, 138, 74, 0.5);
  border-radius: 5px;
}

.tarot-symbol {
  position: relative;
  font-size: 42px;
}

.card-copy {
  min-width: 0;
}

.meta {
  margin-bottom: 9px;
  color: rgba(255, 253, 248, 0.62);
  font-size: 11px;
  font-weight: 700;
}

.card-name {
  font-size: 24px;
  font-weight: 700;
}

.card-en {
  margin-top: 4px;
  color: var(--brass);
  font-size: 12px;
}

.card-message {
  margin-top: 11px;
  color: rgba(255, 253, 248, 0.78);
  font-size: 13px;
  line-height: 1.7;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 14px;
}

.small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.theme {
  position: relative;
  min-height: 124px;
  padding: 15px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.theme.active {
  background: #fbf6ed;
  border-color: var(--wine);
  transform: translateY(-2px);
}

.theme-index {
  display: block;
  margin-bottom: 19px;
  color: var(--muted);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  font-weight: 700;
}

.theme-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.theme-glyph {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: rgba(25, 23, 19, 0.18);
  font-size: 36px;
}

.bottom-action {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 9999;
  width: min(430px, 100%);
  padding: 10px 20px 10px;
  transform: translateX(-50%);
  background: linear-gradient(to top, var(--bone) 74%, rgba(244, 241, 236, 0));
  pointer-events: none;
  display: block;
}
.bottom-action .primary,
.bottom-action button {
  pointer-events: auto;
}

.legal-footer {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 22px 20px 94px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
  text-align: center;
  border-top: 1px solid var(--line);
}
.legal-footer a {
  display: inline-flex;
  margin: 0 6px;
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1px solid rgba(185, 43, 74, 0.22);
}
.legal-footer a:hover {
  border-color: rgba(185, 43, 74, 0.58);
}
.legal-footer .legal-footer-name {
  margin-bottom: 7px;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.legal-footer .legal-footer-copy {
  margin-top: 9px;
  opacity: 0.74;
}

.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  background: var(--ink);
  border-radius: 8px;
  color: var(--paper);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 15px;
  font-weight: 800;
}

.primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--paper);
  border-radius: 50%;
  color: var(--ink);
}

.secondary {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.questions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.question {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 16px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}

.question-num {
  color: var(--wine);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 12px;
  font-weight: 800;
}

.deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 30px;
}

.deck-card {
  min-height: 126px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent 45%),
    var(--charcoal);
  border: 1px solid rgba(176, 138, 74, 0.42);
  border-radius: 8px;
  color: var(--brass);
}

.deck-card.selected {
  background: var(--wine);
  color: var(--paper);
}

.deck-card span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 26px;
}

.pick-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 24px;
}

.slot {
  min-height: 62px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.slot.filled {
  border-style: solid;
  border-color: var(--wine);
  color: var(--wine);
}

.position {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 800;
}

.result-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin: 28px 0 30px;
}

.mini-card {
  min-height: 142px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.mini-card .tarot-card {
  width: 58px;
  margin: 0 auto 12px;
}

.mini-card .tarot-symbol {
  font-size: 28px;
}

.reading {
  margin: 0 -20px;
  padding: 28px 20px 34px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.reading-block {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.reading-block:last-child {
  border-bottom: 0;
}

.chip {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  background: var(--mist);
  border-radius: 999px;
  color: var(--charcoal);
  font-size: 11px;
  font-weight: 800;
}

.reading p {
  color: #34302a;
  font-size: 15px;
  line-height: 2;
}

.back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.button-sub {
  margin-top: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

button:focus-visible {
  outline: 3px solid rgba(140, 36, 49, 0.32);
  outline-offset: 3px;
}

@media (max-width: 370px) {
  .view {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  .theme {
    min-height: 114px;
  }

  .deck {
    gap: 7px;
  }

  .deck-card {
    min-height: 112px;
  }
}

/* ============================================
   Bold editorial direction
   ============================================ */
:root {
  --bone: #f2eadf;
  --paper: #fff8ed;
  --ink: #151411;
  --muted: #73695f;
  --line: #cbbbac;
  --charcoal: #1d1a17;
  --night: #0f0e0d;
  --wine: #b0182d;
  --sage: #36a995;
  --brass: #d1a64f;
  --mist: #d9eee8;
  --clay: #d35f44;
  --shadow: 0 24px 70px rgba(12, 10, 8, 0.25);
}

body {
  background:
    linear-gradient(90deg, transparent 0 30%, rgba(176, 24, 45, 0.68) 30% calc(30% + 3px), transparent calc(30% + 3px)),
    linear-gradient(112deg, #12110f 0 48%, #1c1815 48% 100%);
}

.app {
  background:
    linear-gradient(180deg, rgba(255, 248, 237, 0.72), rgba(242, 234, 223, 0.94) 48%, rgba(255, 248, 237, 0.78)),
    repeating-linear-gradient(0deg, rgba(21, 20, 17, 0.025) 0 1px, transparent 1px 7px),
    var(--bone);
}

.app::before {
  content: "";
  position: absolute;
  top: 82px;
  right: -70px;
  z-index: 0;
  width: 154px;
  height: 372px;
  background:
    linear-gradient(180deg, rgba(21, 20, 17, 0.08), rgba(21, 20, 17, 0.015));
  border-left: 1px solid rgba(21, 20, 17, 0.08);
  transform: rotate(16deg);
  pointer-events: none;
}

.app::after {
  content: "";
  position: absolute;
  top: 72px;
  left: 0;
  z-index: 0;
  width: 6px;
  height: 154px;
  background: var(--wine);
  pointer-events: none;
}

.view {
  position: relative;
  z-index: 1;
}

.view {
  padding-top: 18px;
}

.topbar {
  margin: -18px -20px 24px;
  padding: 16px 20px 15px;
  background: var(--ink);
  border-bottom: 3px solid var(--wine);
  color: var(--paper);
}

.brand-ja {
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.brand-en {
  color: rgba(255, 248, 237, 0.62);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.usage {
  min-height: 38px;
  background: var(--paper);
  border-color: transparent;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--sage);
}

.usage-mark {
  background: var(--wine);
}

.intro {
  position: relative;
  margin-bottom: 22px;
  padding: 18px 0 4px;
}

.intro::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -20px;
  width: 5px;
  height: 88px;
  background: var(--wine);
}

.kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 9px;
  background: var(--wine);
  color: var(--paper);
  font-size: 10px;
  text-transform: uppercase;
}

h1 {
  max-width: none;
  font-size: 41px;
  font-weight: 800;
  line-height: 1.02;
}

h2 {
  font-size: 34px;
  font-weight: 800;
}

.lead {
  max-width: 29em;
  color: #4d463f;
  font-size: 14px;
}

.daily {
  grid-template-columns: 116px 1fr;
  min-height: 184px;
  margin: 28px -20px 34px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(54, 169, 149, 0.14), transparent 45%),
    var(--ink);
  border-top: 1px solid rgba(255, 248, 237, 0.18);
  border-bottom: 4px solid var(--sage);
}

.daily .tarot-card {
  width: 112px;
  transform: rotate(-6deg);
  box-shadow: 10px 10px 0 rgba(176, 24, 45, 0.78);
}

.tarot-card {
  background:
    linear-gradient(135deg, rgba(255, 248, 237, 0.1), transparent 38%),
    linear-gradient(160deg, #151411, #282019);
  border: 1px solid rgba(209, 166, 79, 0.62);
  color: var(--brass);
}

.tarot-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(209, 166, 79, 0.25);
}

.tarot-symbol {
  z-index: 1;
  color: var(--brass);
  font-size: 50px;
}

.meta {
  color: var(--sage);
  font-size: 10px;
}

.card-name {
  font-size: 31px;
}

.card-en {
  color: var(--brass);
  font-weight: 800;
}

.section-head {
  margin-top: 32px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.small {
  color: var(--wine);
  text-transform: uppercase;
}

.theme-grid {
  gap: 12px;
}

.theme {
  min-height: 142px;
  background: rgba(255, 248, 237, 0.92);
  border: 1px solid rgba(21, 20, 17, 0.22);
  box-shadow: 5px 5px 0 rgba(21, 20, 17, 0.08);
}

.theme:nth-child(2) {
  transform: translateY(12px);
}

.theme:nth-child(3) {
  transform: translateY(-2px);
}

.theme:nth-child(4) {
  transform: translateY(10px);
}

.theme.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateY(-3px);
  box-shadow: 7px 7px 0 var(--wine);
}

.theme.active .theme-index,
.theme.active .theme-glyph {
  color: var(--sage);
}

.theme-index {
  color: var(--wine);
  font-size: 10px;
  text-transform: uppercase;
}

.theme-name {
  font-size: 18px;
  line-height: 1.42;
}

.theme-glyph {
  color: rgba(21, 20, 17, 0.12);
  font-size: 46px;
}

.bottom-action {
  position: fixed;
  z-index: 20;
  background: linear-gradient(to top, var(--bone) 78%, rgba(242, 234, 223, 0));
}

.primary {
  min-height: 54px;
  background: var(--ink);
  border: 1px solid rgba(255, 248, 237, 0.18);
  box-shadow: 6px 6px 0 var(--wine), -1px -1px 0 rgba(54, 169, 149, 0.8);
  font-size: 16px;
}

.icon {
  background: var(--sage);
  color: var(--ink);
  font-weight: 900;
}

.button-sub {
  margin-top: 6px;
  color: var(--ink);
}

.back-row {
  margin: -4px 0 28px;
}

.secondary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--wine);
}

.question {
  grid-template-columns: 42px 1fr auto;
  min-height: 74px;
  background: rgba(255, 248, 237, 0.92);
  border-color: rgba(21, 20, 17, 0.24);
  box-shadow: 4px 4px 0 rgba(21, 20, 17, 0.06);
}

.question:nth-child(even) {
  transform: translateX(8px);
}

.question-num {
  color: var(--wine);
  font-size: 14px;
}

.pick-status {
  margin-top: 28px;
}

.slot {
  min-height: 72px;
  background: rgba(255, 248, 237, 0.62);
  border-color: rgba(21, 20, 17, 0.28);
}

.slot.filled {
  background: var(--mist);
  border-color: var(--sage);
  color: var(--ink);
}

.deck {
  gap: 10px;
  margin-top: 34px;
}

.deck-card {
  min-height: 136px;
  background:
    linear-gradient(135deg, rgba(209, 166, 79, 0.12), transparent 40%),
    var(--ink);
  border-color: rgba(209, 166, 79, 0.52);
  box-shadow: 4px 4px 0 rgba(176, 24, 45, 0.72);
}

.deck-card:nth-child(2n) {
  transform: translateY(16px);
}

.deck-card.selected {
  background: var(--sage);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.deck-card span {
  font-size: 31px;
}

.result-cards {
  gap: 10px;
  margin-top: 32px;
}

.mini-card {
  min-height: 166px;
  background: var(--paper);
  border-color: rgba(21, 20, 17, 0.24);
  box-shadow: 5px 5px 0 rgba(21, 20, 17, 0.08);
}

.mini-card:nth-child(2) {
  transform: translateY(-12px);
  box-shadow: 5px 5px 0 var(--wine);
}

.reading {
  background:
    linear-gradient(90deg, rgba(176, 24, 45, 0.12) 0 4px, transparent 4px),
    var(--paper);
  border-top: 4px solid var(--ink);
}

.chip {
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
}

@media (min-width: 720px) {
  .app::before {
    position: absolute;
  }
}

@media (max-width: 370px) {
  h1 {
    font-size: 37px;
  }

  .daily {
    grid-template-columns: 98px 1fr;
  }

  .daily .tarot-card {
    width: 96px;
  }

  .theme {
    min-height: 126px;
  }
}

/* ============================================
   Feminine editorial polish
   ============================================ */
:root {
  --bone: #f5ece8;
  --paper: #faf3ec;
  --ink: #171316;
  --muted: #76696d;
  --line: #d7c6c8;
  --charcoal: #211a20;
  --night: #100d10;
  --wine: #b92b4a;
  --sage: #b8897e;
  --brass: #c99a55;
  --mist: #f3e7e2;
  --clay: #d76f6a;
  --plum: #4d2746;
  --lilac: #ded1ea;
}

body {
  background: #171316;
}

.app {
  background: var(--bone);
}

.app::before {
  display: none;
}

.app::after {
  display: none;
}

.topbar {
  background: #181318;
  border-bottom-color: #e2c8bf;
}

.usage {
  border-color: rgba(185, 43, 74, 0.22);
  box-shadow: 4px 4px 0 rgba(184, 137, 126, 0.42);
}

.usage-mark {
  background: var(--wine);
}

.intro::before {
  width: 2px;
  height: 76px;
  background: #211a20;
}

.kicker {
  background: var(--wine);
  box-shadow: 3px 3px 0 rgba(184, 137, 126, 0.48);
}

h1 {
  font-size: 38px;
  letter-spacing: 0;
}

.lead {
  color: #5f5358;
}

.daily {
  background: #211720;
  border-bottom-color: #e2c8bf;
}

.daily .tarot-card {
  box-shadow: 9px 9px 0 rgba(185, 43, 74, 0.78);
}

.tarot-card {
  background: #171316;
}

.tarot-symbol {
  color: #e4bc72;
}

.meta {
  color: var(--sage);
}

.card-message {
  color: rgba(255, 250, 245, 0.82);
}

.section-head {
  border-bottom-color: rgba(23, 19, 22, 0.62);
}

.small,
.theme-index,
.question-num {
  color: var(--wine);
}

.theme {
  min-height: 154px;
  background: rgba(255, 250, 245, 0.9);
  border-color: rgba(185, 43, 74, 0.24);
  box-shadow: 5px 5px 0 rgba(77, 39, 70, 0.1);
}

.theme.active {
  background: var(--plum);
  box-shadow: 7px 7px 0 var(--wine);
}

.theme-copy {
  display: block;
  max-width: 8em;
  margin-top: 10px;
  color: var(--muted);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.theme.active .theme-copy {
  color: rgba(255, 250, 245, 0.68);
}

.theme.active .theme-index,
.theme.active .theme-glyph {
  color: var(--sage);
}

.theme-glyph {
  color: rgba(185, 43, 74, 0.14);
}

.primary {
  background: var(--plum);
  box-shadow: 6px 6px 0 var(--wine);
}

.bottom-action {
  background: var(--bone);
  border-top: 1px solid rgba(185, 43, 74, 0.14);
}

.icon {
  background: var(--sage);
}

.secondary {
  background: var(--plum);
  box-shadow: 4px 4px 0 var(--wine);
}

.question {
  background: rgba(255, 250, 245, 0.92);
  border-color: rgba(185, 43, 74, 0.2);
}

.slot.filled {
  background: var(--mist);
  border-color: var(--sage);
}

.deck-card {
  background: var(--plum);
  box-shadow: 4px 4px 0 rgba(185, 43, 74, 0.66);
}

.deck-card.selected {
  background: var(--sage);
}

.mini-card:nth-child(2) {
  box-shadow: 5px 5px 0 var(--wine);
}

.reading {
  background: var(--paper);
  border-left: 4px solid rgba(185, 43, 74, 0.28);
}

@media (max-width: 370px) {
  h1 {
    font-size: 34px;
  }

  .theme {
    min-height: 142px;
  }
}

/* ============================================
   Ritual flow sample: mix / question / cut
   ============================================ */
.ritual-stage {
  position: relative;
  min-height: 314px;
  margin: 18px -20px 28px;
  background: #211720;
  border-top: 1px solid rgba(255, 250, 245, 0.12);
  border-bottom: 1px solid rgba(226, 200, 191, 0.66);
  overflow: hidden;
}

.ritual-stage::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(226, 200, 191, 0.18);
  border-radius: 50%;
}

.mix-wheel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250px;
  height: 250px;
  margin: -125px 0 0 -125px;
  animation: clockwise-mix 24s linear infinite;
}

.mix-card {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 62px;
  margin: -31px 0 0 -22px;
  background: #171316;
  border: 1px solid rgba(226, 200, 191, 0.54);
  border-radius: 7px;
  color: #e4bc72;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 16px;
  font-weight: 800;
  transform: rotate(var(--a)) translateY(-106px) rotate(calc(var(--a) * -1)) rotate(var(--tilt));
}

.mix-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(201, 154, 85, 0.36);
  border-radius: 4px;
}

.center-deck {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 104px;
  aspect-ratio: 5 / 7;
  background: #fffaf5;
  border: 1px solid rgba(226, 200, 191, 0.8);
  border-radius: 8px;
  color: #171316;
  transform: translate(-50%, -50%) rotate(-4deg);
  box-shadow: 10px 10px 0 rgba(185, 43, 74, 0.74);
}

.center-deck span {
  position: relative;
  font-size: 42px;
}

.center-deck::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(185, 43, 74, 0.28);
  border-radius: 5px;
}

.ritual-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 250, 245, 0.76);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  font-weight: 800;
}

.question-card {
  margin-top: 24px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid rgba(185, 43, 74, 0.22);
  border-radius: 8px;
  box-shadow: 5px 5px 0 rgba(77, 39, 70, 0.1);
}

.question-input {
  width: 100%;
  min-height: 128px;
  resize: vertical;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(23, 19, 22, 0.2);
  color: var(--ink);
  font-size: 22px;
  line-height: 1.55;
  outline: 0;
}

.question-input::placeholder {
  color: rgba(118, 105, 109, 0.62);
}

.question-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.cut-scene {
  position: relative;
  min-height: 104px;
  margin: 18px 0 4px;
}

.cut-stack {
  position: absolute;
  top: 16px;
  width: 82px;
  aspect-ratio: 2 / 3;
  background-image:
    linear-gradient(180deg, rgba(255, 250, 245, 0.04), rgba(0, 0, 0, 0.14)),
    var(--card-back-image);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(176, 138, 74, 0.62);
  border-radius: 10px;
  box-shadow: 5px 5px 0 rgba(185, 43, 74, 0.48);
  overflow: hidden;
}

.cut-stack::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 234, 196, 0.2);
  border-radius: 7px;
}

.cut-stack:nth-child(1) {
  left: 5%;
  transform: rotate(-8deg);
  animation: cut-left 1.4s ease-in-out infinite alternate;
}

.cut-stack:nth-child(2) {
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  animation: cut-center 1.4s ease-in-out infinite alternate;
}

.cut-stack:nth-child(3) {
  right: 5%;
  transform: rotate(8deg);
  animation: cut-right 1.4s ease-in-out infinite alternate;
}

.deck {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.deck-card {
  position: relative;
  min-height: 104px;
  background: #211720;
  border-color: rgba(226, 200, 191, 0.46);
  overflow: hidden;
}

.deck-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 154, 85, 0.28);
  border-radius: 5px;
}

.deck-card span {
  position: relative;
  color: rgba(228, 188, 114, 0.86);
}

.deck-card.selected {
  background: #fffaf5;
  border-color: var(--wine);
  color: var(--wine);
  transform: translateY(-6px) rotate(-2deg);
}

.deck-card.selected span {
  color: var(--wine);
}

.draw-count {
  margin-top: 16px;
  color: var(--muted);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.asked-question {
  margin-top: 16px;
  padding: 14px;
  background: rgba(255, 250, 245, 0.72);
  border-left: 4px solid rgba(185, 43, 74, 0.38);
  color: #4d2746;
  font-size: 14px;
  line-height: 1.7;
}

@keyframes clockwise-mix {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cut-left {
  to {
    left: 10%;
    transform: rotate(-12deg) translateY(-4px);
  }
}

@keyframes cut-center {
  to {
    transform: translateX(-50%) rotate(0deg) translateY(7px);
  }
}

@keyframes cut-right {
  to {
    right: 10%;
    transform: rotate(12deg) translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mix-wheel,
  .cut-stack {
    animation: none;
  }
}

/* ============================================
   Requested sample refinements
   ============================================ */
.usage {
  display: none;
}

.topbar {
  justify-content: flex-start;
}

#mix-view {
  padding: 0 18px 106px;
}

#mix-view .topbar {
  margin-bottom: 12px;
}

.hero-stage {
  position: relative;
  min-height: min(620px, calc(100svh - 110px));
  margin: 0 -18px;
  /* ポスター画像をCSS背景としても表示。動画が読み込まれなくてもこれが見える */
  background:
    linear-gradient(180deg, rgba(22, 18, 26, 0.25) 0%, rgba(22, 18, 26, 0.6) 100%),
    url('.././assets/hero-poster.jpg') center/cover no-repeat,
    #16121a;
  border-top: 1px solid rgba(226, 200, 191, 0.28);
  border-bottom: 1px solid rgba(226, 200, 191, 0.42);
  overflow: hidden;
}

/* 背景動画 (640x360 / 約220KB / 10秒ループ / 無音) */
.hero-video {
  position: absolute;
  top: -4%;
  left: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* ぼかしを軽めにして映像が見えるように */
  filter: blur(2px) saturate(1.15) brightness(0.85);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: opacity;
}
.hero-video.is-ready {
  opacity: 1;
}

/* グラデーションオーバーレイ(軽めに) */
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(22, 18, 26, 0.25) 0%,
      rgba(22, 18, 26, 0.30) 50%,
      rgba(22, 18, 26, 0.55) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(22, 18, 26, 0.0) 35%, rgba(22, 18, 26, 0.4) 95%),
    radial-gradient(ellipse at 50% 80%, rgba(140, 36, 49, 0.15), transparent 60%);
  pointer-events: none;
}

/* 旧 mix-wheel / center-deck は動画版では非表示 */
.hero-stage .mix-wheel,
.hero-stage .center-deck {
  display: none;
}

/* 旧 ::before の枠線も削除(動画と被ると邪魔) */
.hero-stage::before {
  display: none;
}

/* 自動再生がブロックされた時に表示する▶ボタン */
.hero-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 250, 245, 0.92);
  border: 0;
  color: var(--charcoal);
  font-size: 26px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: hero-play-pulse 2s ease-in-out infinite;
}
.hero-play-btn.show {
  display: flex;
}
.hero-play-btn::before {
  content: "▶";
  margin-left: 4px;
}
@keyframes hero-play-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 250, 245, 0.4); }
  50%      { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 16px rgba(255, 250, 245, 0); }
}

/* デバッグ用 動画ステータス表示 (本番では非表示にできる) */
.hero-debug {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  border-radius: 4px;
  pointer-events: none;
  display: none;
}
.hero-debug.show {
  display: block;
}

/* ヒーローのbrand位置をオーバーレイ内に持ち上げる */
.hero-topbar {
  position: absolute;
  top: 16px;
  left: 22px;
  right: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-topbar .brand-ja {
  font-size: 15px;
  font-weight: 700;
  color: #fffaf5;
  letter-spacing: 0.04em;
}
.hero-topbar .brand-en {
  display: block;
  margin-top: 2px;
  color: rgba(255, 250, 245, 0.7);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-topbar .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(255, 250, 245, 0.92);
  color: var(--charcoal);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
}
.hero-topbar .hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 3px rgba(140, 36, 49, 0.25);
  animation: hero-badge-pulse 2s ease-in-out infinite;
}
@keyframes hero-badge-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}

.hero-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #fffaf5;
  text-align: center;
}

.hero-kicker,
.hero-sub {
  display: block;
  color: rgba(255, 250, 245, 0.78);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  color: rgba(255, 226, 178, 0.95);
}
.hero-kicker::before,
.hero-kicker::after {
  content: "";
  width: 22px;
  height: 1px;
  background: rgba(255, 226, 178, 0.7);
}

.hero-copy h1 {
  display: block;
  margin: 0 0 22px;
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.6),
    0 0 32px rgba(0, 0, 0, 0.4);
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.hero-copy h1 .em {
  color: rgba(255, 226, 178, 0.95);
  font-style: italic;
  font-weight: 700;
}

.hero-sub {
  margin-top: 4px;
  letter-spacing: 0.16em;
  line-height: 1.8;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* スクロール促進インジケータ */
.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  transform: translateX(-50%);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 9px;
  letter-spacing: 0.32em;
  color: rgba(255, 250, 245, 0.55);
  text-transform: uppercase;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero-scroll-hint::after {
  content: "";
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.55), transparent);
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%   { transform: translateY(-8px); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* prefers-reduced-motion: 動画再生を控えめに */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-stage {
    background: var(--charcoal) url('.././assets/hero-poster.jpg') center/cover no-repeat;
  }
  .hero-scroll-hint::after { animation: none; opacity: 0.6; }
  .hero-topbar .hero-badge::before { animation: none; }
}

/* ===== TOP 下部の説明コンテンツ群 ===== */
#mix-view {
  padding-bottom: 140px;
}

.top-section {
  margin-top: 44px;
  padding: 0 2px;
}
.top-section + .top-section {
  margin-top: 48px;
}

.top-section .section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--wine);
  text-transform: uppercase;
}
.top-section .section-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--wine);
}

.top-section .section-title {
  margin-bottom: 6px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.top-section .section-lead {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
  margin-bottom: 18px;
}

.related-fortune-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.fortune-link-panel {
  position: relative;
  display: block;
  min-height: 134px;
  padding: 18px 16px 16px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(247, 239, 230, 0.96)),
    var(--paper);
  border: 1px solid rgba(176, 138, 74, 0.48);
  border-radius: 8px;
}
.fortune-link-panel::after {
  content: "→";
  position: absolute;
  right: 16px;
  bottom: 13px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: linear-gradient(135deg, var(--wine), #7a4c58);
  border: 1px solid rgba(176, 138, 74, 0.68);
  border-radius: 999px;
}
.fortune-link-panel .fortune-kicker {
  display: block;
  margin-bottom: 7px;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--wine);
  text-transform: uppercase;
}
.fortune-link-panel strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Shippori Mincho", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}
.fortune-link-panel span:last-child {
  display: block;
  max-width: calc(100% - 36px);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}
.card-meaning-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(185, 43, 74, 0.24);
}
.card-meaning-link::after {
  content: "→";
  color: var(--brass);
}
@media (max-width: 560px) {
  .related-fortune-grid {
    grid-template-columns: 1fr;
  }
}

/* 占い師プロフィール */
.profile-block {
  position: relative;
  margin: 18px -20px 0;
  padding: 26px 22px 28px;
  background: linear-gradient(180deg, var(--paper) 0%, #f8f3e9 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.profile-block::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 22px;
  width: 36px;
  height: 1px;
  background: var(--brass);
}
.profile-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.profile-photo {
  position: relative;
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 253, 248, 0.7), transparent 55%),
    linear-gradient(160deg, var(--charcoal), var(--night));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--brass);
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: 6px 6px 0 rgba(140, 36, 49, 0.16);
}
.profile-photo::after {
  content: "✦";
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: var(--wine);
  color: var(--paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  border: 2px solid var(--bone);
}
.profile-name-block {
  min-width: 0;
}
.profile-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.profile-name-en {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.profile-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 9px;
  background: var(--wine);
  color: var(--paper);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.profile-bio {
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.95;
  margin-bottom: 14px;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.profile-stat {
  padding: 12px 10px;
  background: var(--paper);
  text-align: center;
}
.profile-stat-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.profile-stat-num small {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 2px;
}
.profile-stat-label {
  margin-top: 2px;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* 3カードタロットの説明 */
.threecards-list {
  display: grid;
  gap: 12px;
}
.threecards-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.threecards-item:last-child { border-bottom: 0; }
.threecards-num {
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--wine);
  line-height: 1;
  padding-top: 4px;
}
.threecards-content strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.threecards-content p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* 流れ */
.steps-block {
  margin: 18px -20px 0;
  padding: 24px 22px 26px;
  background: var(--charcoal);
  color: var(--paper);
}
.steps-block .section-kicker {
  color: var(--brass);
}
.steps-block .section-kicker::before {
  background: var(--brass);
}
.steps-block .section-title {
  color: var(--paper);
}
.steps-block .section-lead {
  color: rgba(255, 253, 248, 0.66);
}
.steps-list {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}
.step-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(176, 138, 74, 0.7);
  color: var(--brass);
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 15px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.step-text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 3px;
}
.step-text span {
  color: rgba(255, 253, 248, 0.7);
  font-size: 12.5px;
  line-height: 1.75;
}

/* テスティモニアル */
.voices-list {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}
.voice-card {
  position: relative;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.voice-card::before {
  content: "“";
  position: absolute;
  top: -6px;
  left: 12px;
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 44px;
  color: var(--wine);
  line-height: 1;
}
.voice-quote {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 12px;
}
.voice-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  color: var(--muted);
}
.voice-stars {
  color: var(--brass);
  letter-spacing: 0.1em;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.faq-item {
  background: var(--paper);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px;
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.01em;
  color: var(--ink);
  cursor: pointer;
}
.faq-q::after {
  content: "+";
  flex-shrink: 0;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--wine);
  transition: transform 0.25s ease;
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-a {
  max-height: 280px;
  padding: 0 16px 16px;
}
.faq-item.has-illust.open .faq-a {
  max-height: 900px;
}
.faq-a p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}
.faq-a p b { color: var(--ink); font-weight: 600; }
.faq-illust-svg {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 14px auto;
  padding: 12px;
  background: linear-gradient(160deg, #fffaf5, #f6eee2);
  border: 1px solid rgba(201, 154, 85, 0.4);
  border-radius: 10px;
}
.faq-illust-svg.suit-svg { max-width: 320px; }

/* 注記 */
.disclaimer {
  margin: 36px 0 0;
  padding: 14px 16px;
  background: rgba(140, 36, 49, 0.04);
  border-left: 2px solid var(--wine);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* セパレーター */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 44px 0 28px;
}
.section-divider::before, .section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-divider span {
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--muted);
  text-transform: uppercase;
}
/* ===== /TOP下部 ===== */

/* ===== 結果ページ強化 ===== */
#result-view {
  padding-bottom: 140px;
}

/* 鑑定書ヘッダー */
.result-header {
  margin: 0 -20px 18px;
  padding: 22px 22px 24px;
  background: var(--charcoal);
  color: var(--paper);
  position: relative;
}
.result-header::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 22px;
  width: 36px;
  height: 1px;
  background: var(--brass);
}
.result-header .doc-no {
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--brass);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.result-header h2 {
  color: var(--paper);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 14px;
}
.result-header .for-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  color: rgba(255, 253, 248, 0.55);
}
.result-header .for-line strong {
  color: var(--paper);
  font-weight: 700;
}
.result-header .for-line span:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: rgba(255, 253, 248, 0.3);
}

/* 問いカード */
.asked-block {
  margin: 0 0 28px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
}
.asked-block::before {
  content: "“";
  position: absolute;
  top: -8px;
  left: 12px;
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 38px;
  color: var(--wine);
  line-height: 1;
}
.asked-label {
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--wine);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.asked-block .asked-question {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
}

/* 3カードリッチ表示 */
.result-cards-rich {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}
.result-card-rich {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  align-items: center;
}
.result-card-rich .tarot-card {
  width: 84px;
}
.result-card-rich .card-info {
  min-width: 0;
}
.result-card-rich .card-position {
  display: inline-block;
  padding: 2px 8px;
  background: var(--wine);
  color: var(--paper);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.result-card-rich .card-name-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.result-card-rich .card-name-jp {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.result-card-rich .card-name-en {
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.result-card-rich .card-orient {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}
.result-card-rich .card-orient.reversed {
  background: var(--wine);
  color: var(--paper);
  border-color: var(--wine);
}
.result-card-rich .card-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.result-card-rich .card-kw {
  padding: 2px 8px;
  background: var(--bone);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  border: 1px solid var(--line);
}

/* ============================================
   結果カードの 3D フリップ演出 (裏→表)
   ============================================ */
.result-card-rich .tarot-card.flip-card {
  background: none;
  border: 0;
  border-radius: 0;
  perspective: 900px;
}
.result-card-rich .tarot-card.flip-card::before { content: none; }

.flip-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }

.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* 裏面(カバー)= 初期表示 */
.flip-cover {
  background-image:
    linear-gradient(180deg, rgba(255, 250, 245, 0.04), rgba(0, 0, 0, 0.16)),
    var(--card-back-image);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(208, 166, 79, 0.64);
  color: var(--brass);
}
.flip-cover::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 234, 196, 0.2);
  border-radius: 7px;
}
.flip-cover::after {
  content: none;
}

/* 表面(リビール)= めくれた後に見える */
.flip-reveal {
  transform: rotateY(180deg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    var(--night);
  border: 1px solid rgba(255, 253, 248, 0.38);
  color: var(--brass);
}
.flip-reveal::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(176, 138, 74, 0.5);
  border-radius: 5px;
  z-index: 2;
  pointer-events: none;
}
.flip-reveal .tarot-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.4s ease 0.45s;
}
.flip-reveal .tarot-card-image[hidden] {
  display: none;
}
.flip-reveal .tarot-card-image:not([hidden]) + .tarot-symbol {
  display: none;
}
.flip-reveal .tarot-symbol {
  display: inline-block;
  transition: transform 0.4s ease 0.45s;
}
/* 逆位置: めくれた後にシンボルが反転して着地 */
.flip-card.is-reversed .flip-reveal .tarot-symbol { transform: rotate(180deg); }
.flip-card.is-reversed .flip-reveal .tarot-card-image { transform: rotate(180deg); }

/* 着地のきらめき */
.flip-card.is-flipped .flip-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 42%, rgba(208, 166, 79, 0.5), transparent 60%);
  opacity: 0;
  animation: flip-sheen 0.7s ease-out 0.55s;
  pointer-events: none;
}
@keyframes flip-sheen {
  0% { opacity: 0; }
  35% { opacity: 0.9; }
  100% { opacity: 0; }
}

/* 3枚を順番にめくる */
.result-cards-rich .result-card-rich:nth-child(1) .flip-inner { transition-delay: 0.10s; }
.result-cards-rich .result-card-rich:nth-child(2) .flip-inner { transition-delay: 0.45s; }
.result-cards-rich .result-card-rich:nth-child(3) .flip-inner { transition-delay: 0.80s; }

@media (prefers-reduced-motion: reduce) {
  .flip-inner,
  .flip-reveal .tarot-symbol,
  .flip-reveal .tarot-card-image { transition: none !important; }
  .result-cards-rich .result-card-rich .flip-inner { transition-delay: 0s !important; }
  .flip-card.is-flipped .flip-reveal::after { animation: none; }
}

/* リーディングセクション */
.reading-rich {
  display: grid;
  gap: 22px;
  margin-bottom: 36px;
}
.reading-rich .reading-block {
  padding: 0;
  background: transparent;
  border: 0;
  animation: reading-rise 0.5s ease both;
}
.reading-rich .reading-block:nth-child(1) { animation-delay: 0.06s; }
.reading-rich .reading-block:nth-child(2) { animation-delay: 0.14s; }
.reading-rich .reading-block:nth-child(3) { animation-delay: 0.22s; }
.reading-rich .reading-block:nth-child(4) { animation-delay: 0.30s; }
.reading-rich .reading-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.reading-rich .reading-head .num {
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--wine);
  letter-spacing: -0.02em;
}
.reading-rich .reading-head h3 {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.reading-rich .reading-head .card-tag {
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.reading-rich .scene {
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--brass);
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-style: italic;
  font-size: 13px;
  line-height: 1.85;
  color: var(--charcoal);
}
.reading-rich .reading-body {
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink);
  margin-bottom: 12px;
}
.reading-rich .take {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bone);
  border: 1px solid var(--line);
}
.reading-rich .take-label {
  flex-shrink: 0;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--wine);
  padding-top: 2px;
}
.reading-rich .take p {
  flex: 1;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink);
}

/* 3枚を貫く物語 */
.story-block {
  margin: 0 -20px 32px;
  padding: 26px 22px 28px;
  background: var(--charcoal);
  color: var(--paper);
  position: relative;
}
.story-block::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 22px;
  width: 36px;
  height: 1px;
  background: var(--brass);
}
.story-block .section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--brass);
  text-transform: uppercase;
}
.story-block .section-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass);
}
.story-block h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.story-block p {
  font-size: 14px;
  line-height: 2;
  color: rgba(255, 253, 248, 0.86);
}

/* 落とし穴 */
.pitfall-block {
  margin: 0 0 28px;
  padding: 16px 18px;
  background: rgba(140, 36, 49, 0.05);
  border-left: 3px solid var(--wine);
}
.pitfall-block .label {
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--wine);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pitfall-block p {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink);
}

/* 明日からの実践 */
.actions-block {
  margin: 0 0 32px;
}
.actions-block h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
}
.actions-block .lead {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.action-list {
  display: grid;
  gap: 10px;
}
.action-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  align-items: start;
}
.action-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--paper);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.action-text {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink);
}

/* 結びの言葉(占い師サイン入り) */
.signoff-block {
  margin: 0 -20px 0;
  padding: 30px 22px 28px;
  background: linear-gradient(180deg, var(--paper) 0%, #f8f3e9 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.signoff-block .label {
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--wine);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.signoff-message {
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}
.signoff-sign {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.signoff-sign-name {
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.signoff-sign-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 14px;
}

/* シェア/再占いボタン */
.result-actions {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
}
.share-panel {
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.9), rgba(246, 239, 230, 0.78));
  border: 1px solid rgba(176, 138, 74, 0.32);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(77, 39, 70, 0.06);
}
.share-panel-title {
  margin: 0 0 10px;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--wine);
  text-align: center;
}
.share-buttons,
.utility-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* ===== SNSシェアボタン ===== */
.primary-share-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 82px;
  padding: 14px 13px;
  background: #000;
  border: 1px solid #000;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  position: relative;
  overflow: hidden;
}
.primary-share-btn.share-threads-btn {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 226, 178, 0.18), transparent 34%),
    linear-gradient(135deg, #24101f 0%, #0f0d12 58%, #3f1d39 100%);
  border-color: rgba(176, 138, 74, 0.5);
}
.primary-share-btn::before {
  /* 微妙な光沢 */
  content: "";
  position: absolute;
  top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.primary-share-btn:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.primary-share-btn:hover::before { left: 130%; }
.primary-share-btn:active {
  transform: translateY(0);
}
.primary-share-btn .ic {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #000;
  border-radius: 50%;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.primary-share-btn .share-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.primary-share-btn .share-text strong {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.primary-share-btn .share-text small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
}

.result-actions .secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 13px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease;
}
.result-actions .secondary-btn:hover {
  background: var(--bone);
}
.result-actions .secondary-btn .ic {
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  color: var(--wine);
}
@media (max-width: 390px) {
  .share-buttons,
  .utility-actions {
    grid-template-columns: 1fr;
  }
}
/* ===== /結果ページ強化 ===== */

/* ===== ポジティブ要素セクション ===== */

/* 褒め言葉ブロック(冒頭) */
.compliment-block {
  margin: 0 0 28px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(255, 226, 178, 0.25), rgba(255, 250, 245, 0.5));
  border-left: 3px solid var(--brass);
  border-radius: 4px;
  position: relative;
}
.compliment-block::before {
  content: "✦";
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--brass);
  font-size: 16px;
  opacity: 0.6;
}
.compliment-block .label {
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.32em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.compliment-block p {
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink);
}

/* 良いところブロック */
.good-sign-block {
  margin: 0 0 28px;
  padding: 16px 18px;
  background: rgba(110, 145, 130, 0.08);
  border: 1px solid rgba(110, 145, 130, 0.25);
  border-radius: 6px;
}
.good-sign-block .label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #5d7a6e;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.good-sign-block .label::before {
  content: "♡";
  font-family: ui-serif, serif;
  font-size: 14px;
  color: #5d7a6e;
}
.good-sign-block p {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink);
}

/* 運気アップヒントブロック */
.lucky-block {
  margin: 0 0 28px;
  padding: 18px 20px;
  background: var(--charcoal);
  color: var(--paper);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.lucky-block::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(176, 138, 74, 0.25), transparent 70%);
}
.lucky-block .label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
}
.lucky-block .label::before {
  content: "★";
  font-size: 13px;
  color: var(--brass);
}
.lucky-block .lucky-category {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  background: rgba(176, 138, 74, 0.2);
  border: 1px solid rgba(176, 138, 74, 0.4);
  color: var(--brass);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: 999px;
  position: relative;
}
.lucky-block p {
  position: relative;
  font-size: 14px;
  line-height: 1.95;
  color: rgba(255, 250, 245, 0.92);
}

/* 励まし(結びの上) */
.encouragement-block {
  margin: 0 0 24px;
  padding: 16px 0;
  text-align: center;
  position: relative;
}
.encouragement-block::before,
.encouragement-block::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--wine);
  margin: 0 auto;
}
.encouragement-block::before {
  margin-bottom: 14px;
}
.encouragement-block::after {
  margin-top: 14px;
}
.encouragement-block p {
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.85;
  color: var(--wine);
  letter-spacing: 0.02em;
}
/* ===== /ポジティブ要素 ===== */



#question-view .back-row,
#result-view .back-row {
  justify-content: flex-start;
  margin-bottom: 18px;
}

#question-view h1 {
  white-space: nowrap;
  font-size: 30px;
}

#question-view .lead {
  font-size: 13px;
  line-height: 1.7;
}

#question-view .question-card {
  margin-top: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.name-field {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  margin-bottom: 0;
  color: var(--muted);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.name-input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  background: rgba(255, 250, 245, 0.86);
  border: 1px solid rgba(185, 43, 74, 0.2);
  border-radius: 8px;
  color: var(--ink);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 14px;
  font-weight: 400;
  outline: 0;
}

.name-input::placeholder {
  color: rgba(118, 105, 109, 0.54);
}

.question-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ===== カテゴリパネル(リッチ版) ===== */
.question-panel {
  position: relative;
  min-height: 168px;
  padding: 22px 18px 18px;
  background: var(--paper);
  border: 1px solid rgba(185, 43, 74, 0.18);
  border-radius: 12px;
  text-align: left;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    4px 5px 0 rgba(77, 39, 70, 0.10),
    0 8px 16px rgba(77, 39, 70, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

/* 左上の装飾コーナー(細い線) */
.question-panel .q-deco-corner {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 14px;
  height: 14px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  opacity: 0.4;
  color: var(--wine);
  pointer-events: none;
}
.question-panel .q-deco-corner::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  /* 右上の装飾コーナー */
}

/* 右上の装飾コーナー (pseudo別実装) */
.question-panel::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  opacity: 0.4;
  color: var(--wine);
  pointer-events: none;
}

/* 右下にうっすら大きなアイコン(透かしテクスチャ) */
.question-panel::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -20px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0%, transparent 70%);
  opacity: 0.06;
  pointer-events: none;
}

/* テーマカラー: 恋愛=ピンクワイン */
.question-panel[data-theme="love"] {
  color: #c8466a;
}
.question-panel[data-theme="love"]:hover {
  background: linear-gradient(180deg, #fff7f8 0%, var(--paper) 100%);
  border-color: rgba(200, 70, 106, 0.5);
}

/* テーマカラー: 仕事=深いブルー */
.question-panel[data-theme="work"] {
  color: #2f5e8a;
}
.question-panel[data-theme="work"]:hover {
  background: linear-gradient(180deg, #f4f8fc 0%, var(--paper) 100%);
  border-color: rgba(47, 94, 138, 0.4);
}

/* テーマカラー: 気持ち=紫 */
.question-panel[data-theme="mind"] {
  color: #6b4a8a;
}
.question-panel[data-theme="mind"]:hover {
  background: linear-gradient(180deg, #f8f4fb 0%, var(--paper) 100%);
  border-color: rgba(107, 74, 138, 0.4);
}

/* テーマカラー: 未来=ゴールド */
.question-panel[data-theme="future"] {
  color: #9c7a3d;
}
.question-panel[data-theme="future"]:hover {
  background: linear-gradient(180deg, #faf6ec 0%, var(--paper) 100%);
  border-color: rgba(156, 122, 61, 0.4);
}

/* 大きなアイコン (中央寄せ・装飾) */
.question-panel .q-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 0 12px 0;
  background: currentColor;
  border-radius: 50%;
  color: var(--paper); /* 一度白に */
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(77, 39, 70, 0.18);
}
/* アイコンの中身の文字色を元のテーマカラーに戻すための工夫:
   背景がcurrentColor、中身もcurrentColorだと見えないので、
   代わりにテーマカラーの背景に白文字 */
.question-panel[data-theme="love"] .q-icon { background: #c8466a; color: #fff; }
.question-panel[data-theme="work"] .q-icon { background: #2f5e8a; color: #fff; }
.question-panel[data-theme="mind"] .q-icon { background: #6b4a8a; color: #fff; }
.question-panel[data-theme="future"] .q-icon { background: #9c7a3d; color: #fff; }

/* カテゴリラベル */
.question-panel .q-label {
  display: block;
  margin: 0 0 10px 0;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: none;
}

.question-panel strong {
  display: block;
  margin-top: auto;
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* 右下に小さな矢印 */
.question-panel .q-arrow {
  position: absolute;
  bottom: 14px;
  right: 16px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid currentColor;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 14px;
  font-weight: 400;
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease;
}

.question-panel:hover .q-arrow {
  background: currentColor;
  color: var(--paper);
  transform: translateX(2px);
}
.question-panel[data-theme="love"]:hover .q-arrow { background: #c8466a; color: #fff; }
.question-panel[data-theme="work"]:hover .q-arrow { background: #2f5e8a; color: #fff; }
.question-panel[data-theme="mind"]:hover .q-arrow { background: #6b4a8a; color: #fff; }
.question-panel[data-theme="future"]:hover .q-arrow { background: #9c7a3d; color: #fff; }

.question-panel:active {
  transform: translate(2px, 2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    2px 3px 0 rgba(77, 39, 70, 0.10),
    0 4px 8px rgba(77, 39, 70, 0.04);
}

.question-panel.active {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--wine);
}

.question-panel.active .q-icon {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.question-panel.active strong {
  color: var(--paper);
}
/* ===== /カテゴリパネル ===== */

/* 「または、自由に書く」の区切り */
.question-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 12px;
  color: var(--wine);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.question-divider::before,
.question-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(185, 43, 74, 0.25);
}

#question-view .question-input {
  min-height: 82px;
  margin-top: 0;
  padding: 12px 13px;
  resize: none;
  background: rgba(255, 250, 245, 0.86);
  border: 1px solid rgba(185, 43, 74, 0.2);
  border-radius: 8px;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 13px;
  line-height: 1.65;
}

#question-view .question-note {
  display: none;
}

/* サブ質問選択(step2) */
.sub-category-tag {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 14px;
  background: var(--wine);
  color: var(--paper);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  border-radius: 999px;
}

.sub-question-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

/* 寄り添うリードコピー */
.sub-question-lead {
  margin: 8px 2px 20px;
  padding: 4px 0 14px;
  border-bottom: 1px solid rgba(140, 36, 49, 0.18);
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.sub-question-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid rgba(185, 43, 74, 0.18);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(77, 39, 70, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  animation: subquestion-rise 0.32s ease both;
}
.sub-question-item:nth-child(2) { animation-delay: 0.04s; }
.sub-question-item:nth-child(3) { animation-delay: 0.08s; }
.sub-question-item:nth-child(4) { animation-delay: 0.12s; }
.sub-question-item:nth-child(5) { animation-delay: 0.16s; }
.sub-question-item:nth-child(6) { animation-delay: 0.20s; }

@keyframes subquestion-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sub-question-item:hover,
.sub-question-item:focus {
  background: var(--bone);
}
.sub-question-item:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(77, 39, 70, 0.06);
}

.sub-question-item .arrow {
  flex-shrink: 0;
  color: var(--wine);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-weight: 400;
  font-size: 18px;
}

/* フッター: 寄り添うヘルパー文+ボタン2つ */
.sub-question-footer {
  margin-top: 18px;
  padding: 16px 16px 18px;
  background: rgba(140, 36, 49, 0.04);
  border: 1px dashed rgba(140, 36, 49, 0.22);
  border-radius: 8px;
}
.sub-question-helper {
  margin: 0 0 12px;
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.75;
  color: var(--charcoal);
  text-align: center;
}
.sub-question-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sub-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.sub-shuffle-btn {
  background: var(--paper);
  border: 1px solid rgba(185, 43, 74, 0.3);
  color: var(--wine);
}
.sub-shuffle-btn:hover {
  background: var(--bone);
}
.sub-shuffle-btn span:first-child {
  font-size: 15px;
  line-height: 1;
}
.sub-omakase-btn {
  background: var(--wine);
  border: 1px solid var(--wine);
  color: var(--paper);
  box-shadow: 3px 3px 0 rgba(77, 39, 70, 0.18);
}
.sub-omakase-btn:hover {
  background: #6a1d2e;
}
.sub-omakase-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(77, 39, 70, 0.18);
}
.sub-omakase-btn span:first-child {
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 14px;
  color: rgba(255, 226, 178, 0.95);
}
/* シャッフルが消えた時(全部見終わった)はおまかせを全幅に */
.sub-question-actions:has(only-child) {
  grid-template-columns: 1fr;
}
.sub-question-actions > .sub-omakase-btn:only-child {
  grid-column: 1 / -1;
}

#cut-view {
  padding: 14px 14px 22px;
}

#cut-view .back-row {
  justify-content: flex-start;
  margin-bottom: 8px;
}

#cut-view .intro {
  margin-bottom: 6px;
  padding: 0;
}

#cut-view .kicker {
  display: none;
}

#cut-view h1 {
  white-space: nowrap;
  font-size: 30px;
  line-height: 1.1;
}

#cut-view .lead {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.55;
}

#cut-view .cut-scene {
  min-height: 38px;
  margin: 4px 0 2px;
}

#cut-view .cut-stack {
  top: 0;
  width: 48px;
  border-radius: 6px;
  box-shadow: 3px 3px 0 rgba(185, 43, 74, 0.4);
}

#cut-view .cut-stack::before {
  inset: 6px;
}

/* 装飾見出し (3枚選んでください を占い館っぽいフレームに) */
.cut-heading {
  position: relative;
  margin: 8px 0 22px;
  padding: 22px 36px 20px;
  background: linear-gradient(180deg, var(--paper) 0%, rgba(255, 250, 245, 0.85) 100%);
  border: 1px solid var(--wine);
  border-radius: 4px;
  text-align: center;
  box-shadow: 4px 4px 0 rgba(140, 36, 49, 0.18);
}
.cut-heading::before,
.cut-heading::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--wine) 20%, var(--wine) 80%, transparent);
  opacity: 0.4;
}
.cut-heading::before { top: 6px; }
.cut-heading::after  { bottom: 6px; }

.cut-heading h2 {
  margin: 0 0 8px;
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  white-space: nowrap;
}

.cut-heading-sub {
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--wine);
  text-transform: none;
}

.cut-heading-orn {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--wine);
  font-size: 14px;
  opacity: 0.65;
}
.cut-heading-orn-right {
  left: auto;
  right: 14px;
}

/* 進捗インジケータ */
#cut-view .pick-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 4px 0 14px;
}

#cut-view .pick-status .slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 6px;
  background: var(--paper);
  border: 1px solid rgba(185, 43, 74, 0.2);
  border-radius: 6px;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

#cut-view .pick-status .slot .position {
  display: block;
  color: var(--wine);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

#cut-view .pick-status .slot.filled {
  background: var(--plum);
  color: var(--paper);
  border-color: var(--plum);
}
#cut-view .pick-status .slot.filled .position {
  color: rgba(255, 250, 245, 0.7);
}

#cut-view .draw-count {
  margin: 6px 0 8px;
  color: #4d2746;
  text-align: left;
}

#cut-view .deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 0;
}

/* ======= カード裏面 (全カード共通デザイン) ======= */
#cut-view .deck-card {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  padding: 0;
  background-image:
    linear-gradient(180deg, rgba(255, 250, 245, 0.04), rgba(0, 0, 0, 0.14)),
    var(--card-back-image);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(176, 138, 74, 0.62);
  border-radius: 10px;
  cursor: pointer;
  box-shadow:
    4px 4px 0 rgba(140, 36, 49, 0.34),
    0 12px 22px rgba(35, 24, 31, 0.12);
  overflow: hidden;
  filter: saturate(0.96) brightness(0.93);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

/* 内側枠線(装飾) */
#cut-view .deck-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 234, 196, 0.2);
  border-radius: 7px;
  pointer-events: none;
}

#cut-view .deck-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 48%, rgba(255, 234, 196, 0.28), transparent 34%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

#cut-view .deck-card:active {
  transform: translate(2px, 2px);
  box-shadow:
    1px 1px 0 rgba(140, 36, 49, 0.4),
    0 8px 16px rgba(35, 24, 31, 0.12);
}

/* span(シンボル表示)は隠す */
#cut-view .deck-card span {
  display: none;
}

/* 選択済みカード: 裏面デザインのまま光らせる */
#cut-view .deck-card.selected {
  border-color: rgba(255, 226, 178, 0.92);
  filter: saturate(1.12) brightness(1.08);
  box-shadow:
    5px 5px 0 rgba(140, 36, 49, 0.52),
    0 0 0 3px rgba(255, 226, 178, 0.92),
    0 0 0 6px rgba(185, 43, 74, 0.24),
    0 14px 30px rgba(140, 36, 49, 0.28);
  transform: translateY(-6px) rotate(-2deg);
}
#cut-view .deck-card.selected::after {
  content: "選択済み";
  inset: 8px auto auto 8px;
  min-width: 64px;
  height: 26px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 250, 245, 0.94);
  border: 1px solid rgba(176, 138, 74, 0.86);
  border-radius: 999px;
  color: var(--wine);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 14px rgba(35, 24, 31, 0.2);
  opacity: 1;
  animation: selected-badge-pop 0.28s ease-out both;
}

/* ===== 遷移エフェクト (premium ritual) ===== */
.reading-transition {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(140, 36, 49, 0.18), transparent 60%),
    radial-gradient(ellipse at 50% 90%, rgba(176, 138, 74, 0.12), transparent 60%),
    rgba(17, 17, 17, 0.96);
  color: #fffaf5;
  text-align: center;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.reading-transition.active {
  display: flex;
  opacity: 1;
}

/* 背景に細い縦のグリッド線 (動く) */
.reading-transition::before {
  content: "";
  position: absolute;
  inset: -10% -10%;
  background:
    linear-gradient(90deg, rgba(176, 138, 74, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(176, 138, 74, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0;
  animation: transition-grid 3.4s ease-out forwards;
  pointer-events: none;
}
.reading-transition.active::before { animation-play-state: running; }

@keyframes transition-grid {
  0%   { opacity: 0; transform: scale(1.04); }
  20%  { opacity: 0.7; }
  100% { opacity: 0.55; transform: scale(1); }
}

/* 中央から広がる光のリング */
.reading-transition::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: rgba(176, 138, 74, 0.8);
  box-shadow: 0 0 24px 6px rgba(176, 138, 74, 0.45);
  opacity: 0;
  animation: transition-spark 3.4s ease-out forwards;
  pointer-events: none;
}

@keyframes transition-spark {
  0%   { opacity: 0; transform: scale(0.6); }
  15%  { opacity: 1; transform: scale(1.2); }
  35%  { opacity: 0.6; transform: scale(8); box-shadow: 0 0 60px 24px rgba(176, 138, 74, 0.18); }
  70%  { opacity: 0; transform: scale(14); }
  100% { opacity: 0; transform: scale(16); }
}

/* キッカーテキスト */
.transition-kicker {
  position: relative;
  z-index: 3;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: rgba(176, 138, 74, 0.85);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(8px);
  animation: transition-fade-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
  text-transform: uppercase;
}

/* カード周回エリア */
.transition-orbit {
  position: relative;
  z-index: 2;
  width: 240px;
  height: 200px;
  margin-bottom: 32px;
}

/* 3枚のカード(裏面から始まり、表に返る) */
.transition-card {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 76px;
  aspect-ratio: 2 / 3;
  margin-left: -38px;
  background-image:
    linear-gradient(180deg, rgba(255, 250, 245, 0.04), rgba(0, 0, 0, 0.16)),
    var(--card-back-image);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(176, 138, 74, 0.78);
  border-radius: 10px;
  color: transparent;
  font-size: 0;
  display: grid;
  place-items: center;
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.4),
    8px 8px 0 rgba(140, 36, 49, 0.62);
  opacity: 0;
  /* 各カード固定の最終姿勢 + 出現アニメを別keyframeで合成 */
}

/* カード内の小さな枠飾り (本ページのtarot-cardに似せる) */
.transition-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 234, 196, 0.2);
  border-radius: 7px;
  pointer-events: none;
}

/* シンボル */
.transition-card span {
  position: relative;
  z-index: 1;
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  opacity: 0;
}

/* 3枚それぞれの個別アニメーション */
.transition-card:nth-child(1) {
  animation: card-arrive-left 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s forwards;
}
.transition-card:nth-child(2) {
  animation: card-arrive-center 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.55s forwards;
}
.transition-card:nth-child(3) {
  animation: card-arrive-right 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.75s forwards;
}

@keyframes card-arrive-left {
  0%   { opacity: 0; transform: translateX(0) translateY(180px) rotate(0deg) scale(0.4); }
  60%  { opacity: 1; transform: translateX(-86px) translateY(-12px) rotate(-12deg) scale(1.04); }
  100% { opacity: 1; transform: translateX(-86px) translateY(0) rotate(-10deg) scale(1); }
}
@keyframes card-arrive-center {
  0%   { opacity: 0; transform: translateY(220px) rotate(0deg) scale(0.4); }
  60%  { opacity: 1; transform: translateY(-18px) rotate(3deg) scale(1.06); }
  100% { opacity: 1; transform: translateY(0) rotate(2deg) scale(1); }
}
@keyframes card-arrive-right {
  0%   { opacity: 0; transform: translateX(0) translateY(180px) rotate(0deg) scale(0.4); }
  60%  { opacity: 1; transform: translateX(86px) translateY(-12px) rotate(12deg) scale(1.04); }
  100% { opacity: 1; transform: translateX(86px) translateY(0) rotate(10deg) scale(1); }
}

/* メインコピー: 段階表示 */
.transition-copy {
  position: relative;
  z-index: 3;
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: #fffaf5;
  margin-bottom: 18px;
  min-height: 1.6em;
}

.transition-copy .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: transition-fade-up 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.transition-copy .word:nth-child(1) { animation-delay: 1.40s; }
.transition-copy .word:nth-child(2) { animation-delay: 1.65s; }
.transition-copy .word:nth-child(3) { animation-delay: 1.90s; }
.transition-copy .word:nth-child(4) { animation-delay: 2.15s; }

@keyframes transition-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* サブテキスト */
.reading-transition .sub {
  position: relative;
  z-index: 3;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(255, 250, 245, 0.5);
  text-transform: uppercase;
  opacity: 0;
  animation: transition-fade-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 2.35s forwards;
}

/* 下のプログレスドット */
.transition-progress {
  position: relative;
  z-index: 3;
  display: inline-flex;
  gap: 7px;
  margin-top: 26px;
  opacity: 0;
  animation: transition-fade-up 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 2.55s forwards;
}
.transition-progress span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(176, 138, 74, 0.6);
  animation: transition-dot 1.4s ease-in-out infinite;
}
.transition-progress span:nth-child(2) { animation-delay: 0.18s; }
.transition-progress span:nth-child(3) { animation-delay: 0.36s; }

@keyframes transition-dot {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50%      { opacity: 1; transform: scale(1.25); background: rgba(176, 138, 74, 1); }
}

/* prefers-reduced-motion 対応: 動きを最小限に */
@media (prefers-reduced-motion: reduce) {
  .reading-transition::before,
  .reading-transition::after,
  .transition-card,
  .transition-copy .word,
  .reading-transition .sub,
  .transition-progress,
  .transition-progress span,
  .transition-kicker {
    animation: none !important;
    opacity: 1 !important;
  }
  .transition-card:nth-child(1) { transform: translateX(-86px) rotate(-10deg); }
  .transition-card:nth-child(2) { transform: rotate(2deg); }
  .transition-card:nth-child(3) { transform: translateX(86px) rotate(10deg); }
}

#result-name {
  white-space: nowrap;
}

.reading .reading-block {
  animation: reading-rise 0.5s ease both;
}

.reading .reading-block:nth-child(2) {
  animation-delay: 0.08s;
}

.reading .reading-block:nth-child(3) {
  animation-delay: 0.16s;
}

.reading .reading-block:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes card-flash {
  0% {
    opacity: 0.9;
    transform: scale(0.94);
  }

  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes selected-badge-pop {
  0% {
    opacity: 0;
    transform: translateY(4px) scale(0.86);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes reveal-card {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(34px) rotate(0deg) scale(0.7);
  }

  100% {
    opacity: 1;
  }
}

@keyframes reading-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 370px) {
  #mix-view {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-stage {
    min-height: min(560px, calc(100svh - 88px));
    margin-left: -16px;
    margin-right: -16px;
  }

  .hero-copy h1 {
    font-size: 22px;
    line-height: 1.55;
  }

  #question-view h1,
  #cut-view h1 {
    font-size: 28px;
  }

  .question-options {
    gap: 8px;
  }

  .question-panel {
    min-height: 86px;
    padding: 12px;
  }

  #cut-view .deck-card {
    height: auto;
    aspect-ratio: 2 / 3;
  }
}
/* ============================================
   2026-05-29 リファイン
   ・戻るボタンを軽量化(占有スペース削減)
   ・カードを大きく(裏面画像の入稿に備える)
   ・機能ラベルを日本語化 / 装飾英字は背景の意匠へ
   ============================================ */

/* --- 戻るボタン: 重いプラム塊 → 軽いゴーストの丸アイコン --- */
.back-row { margin: 2px 0 6px !important; }
#question-view .back-row,
#result-view .back-row,
#cut-view .back-row { margin-bottom: 6px !important; }
.secondary {
  width: 34px;
  height: 34px;
  background: transparent !important;
  border: 1px solid var(--line) !important;
  color: var(--muted) !important;
  box-shadow: none !important;
  border-radius: 50% !important;
  font-size: 18px;
  line-height: 1;
  opacity: 0.85;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease, opacity .2s ease;
}
.secondary:hover {
  color: var(--ink) !important;
  border-color: var(--ink) !important;
  background: rgba(25, 23, 19, 0.04) !important;
  opacity: 1;
}
.secondary:active { transform: translateX(-2px); }

/* --- 結果カードを大きく --- */
.result-card-rich {
  grid-template-columns: 118px 1fr;
  gap: 18px;
}
.result-card-rich .tarot-card { width: 118px; }
.result-card-rich .tarot-symbol { font-size: 56px; }
.result-card-rich .flip-face { border-radius: 10px; }
@media (max-width: 360px) {
  .result-card-rich { grid-template-columns: 100px 1fr; gap: 14px; }
  .result-card-rich .tarot-card { width: 100px; }
  .result-card-rich .tarot-symbol { font-size: 48px; }
}

/* --- 山札カードを大きく(4列→3列・裏面入稿に備える) --- */
#cut-view .deck { grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
/* 4列前提の互い違いオフセットを解除(3列だと崩れるため) */
#cut-view .deck-card:nth-child(2n) { transform: none; }
#cut-view .deck-card.selected { transform: translateY(-6px) rotate(-2deg); }

/* --- 機能ラベルの日本語化(uppercase/字間を緩和) --- */
.asked-label,
.compliment-block .label,
.good-sign-block .label,
.pitfall-block .label,
.lucky-block .label,
.signoff-block .label,
.story-block .section-kicker,
.reading-rich .take-label {
  text-transform: none !important;
  letter-spacing: 0.04em !important;
}

/* --- 装飾英字は背景の意匠として薄く配置 --- */
.story-block { position: relative; overflow: hidden; }
.story-block > * { position: relative; z-index: 1; }
.story-block::after {
  content: "READING";
  position: absolute;
  right: -8px;
  bottom: -20px;
  z-index: 0;
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 72px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(140, 36, 49, 0.05);
  pointer-events: none;
}

/* ============================================
   ABOUT READING — 占い館風の装飾フレーム(2026-05-29)
   ============================================ */
.about-reading { margin-top: 44px; padding: 0; }
.about-reading .ar-frame {
  position: relative;
  padding: 32px 22px 30px;
  background: linear-gradient(180deg, #fbf7f0 0%, #f6efe3 100%);
  border: 1px solid rgba(176, 138, 74, 0.55);
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
}
.about-reading .ar-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(176, 138, 74, 0.26);
  border-radius: 2px;
  pointer-events: none;
}
.about-reading .ar-frame > * { position: relative; z-index: 2; }

/* ボタニカル & カード意匠 */
.about-reading .ar-bot,
.about-reading .ar-cards { position: absolute; z-index: 1; pointer-events: none; }
.about-reading .ar-bot { opacity: 0.5; }
.about-reading .ar-bot-tl { top: 12px; left: 4px; width: 56px; transform: rotate(-4deg); }
.about-reading .ar-bot-br { bottom: 4px; right: 2px; width: 78px; }
.about-reading .ar-cards { top: 44px; right: 12px; width: 70px; opacity: 0.9; }

/* キッカー */
.about-reading .ar-kicker {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 4px 0 16px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.34em;
  color: var(--brass);
}
.about-reading .ar-kicker .ln { width: 26px; height: 1px; background: rgba(176, 138, 74, 0.6); }

/* タイトル */
.about-reading .ar-title {
  font-family: "Shippori Mincho", serif;
  font-size: 28px; font-weight: 600; line-height: 1.42;
  color: var(--ink); letter-spacing: 0.03em;
}
.about-reading .ar-flourish { display: block; width: 178px; max-width: 72%; margin: 12px auto 16px; }
.about-reading .ar-flourish path { stroke: var(--brass); stroke-width: 1.2; fill: none; }
.about-reading .ar-flourish circle { fill: var(--brass); }
.about-reading .ar-flourish .d { fill: var(--brass); stroke: none; }
.about-reading .ar-lead { color: var(--muted); font-size: 13px; line-height: 2.05; margin-bottom: 26px; }

/* 3項目 */
.about-reading .ar-item {
  display: grid; grid-template-columns: 66px 1fr; gap: 16px;
  text-align: left; align-items: start; padding: 4px 6px 4px 2px;
}
.about-reading .ar-numcol { display: flex; flex-direction: column; align-items: center; gap: 9px; padding-top: 2px; }
.about-reading .ar-num { font-family: "Shippori Mincho", serif; font-size: 34px; font-weight: 600; color: var(--wine); line-height: 1; }
.about-reading .ar-ic { width: 40px; height: 26px; }
.about-reading .ar-ic path, .about-reading .ar-ic line { stroke: var(--brass); stroke-width: 1.4; fill: none; stroke-linecap: round; }
.about-reading .ar-ic circle { fill: var(--brass); }
.about-reading .ar-ic.fillstar path { fill: var(--brass); stroke: none; }
.about-reading .ar-body h3 { font-family: "Shippori Mincho", serif; font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 7px; letter-spacing: 0.02em; }
.about-reading .ar-body p { color: var(--muted); font-size: 12.5px; line-height: 1.95; }

/* 項目間の飾り罫 */
.about-reading .ar-div { display: flex; align-items: center; gap: 12px; margin: 14px 8px; }
.about-reading .ar-div .ln { flex: 1; height: 1px; background: rgba(176, 138, 74, 0.3); }
.about-reading .ar-div .orn { color: rgba(176, 138, 74, 0.85); font-size: 12px; }

@media (max-width: 360px) {
  .about-reading .ar-title { font-size: 24px; }
  .about-reading .ar-item { grid-template-columns: 56px 1fr; gap: 12px; }
  .about-reading .ar-num { font-size: 30px; }
  .about-reading .ar-cards { display: none; }
}

/* ============================================
   カード意味ページへの導線
   ============================================ */
.card-guide-block {
  margin-top: 22px;
}
.card-guide-panel {
  position: relative;
  padding: 22px 18px 20px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(246, 239, 227, 0.96)),
    var(--paper);
  border: 1px solid rgba(176, 138, 74, 0.48);
  border-radius: 8px;
  overflow: hidden;
}
.card-guide-panel::after {
  content: "XXII";
  position: absolute;
  right: 14px;
  top: 10px;
  font-family: "Shippori Mincho", serif;
  font-size: 44px;
  font-weight: 600;
  color: rgba(176, 138, 74, 0.13);
  pointer-events: none;
}
.card-guide-panel > * {
  position: relative;
  z-index: 1;
}
.card-guide-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 36px;
  gap: 14px;
  align-items: center;
  min-height: 118px;
  margin-top: 18px;
  overflow: hidden;
  padding: 18px 16px;
  background:
    linear-gradient(135deg, rgba(35, 29, 27, 0.98) 0%, rgba(78, 38, 49, 0.96) 62%, rgba(124, 72, 79, 0.94) 100%);
  border: 1px solid rgba(176, 138, 74, 0.72);
  border-radius: 8px;
  color: var(--paper);
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(45, 34, 28, 0.18);
}
.card-guide-banner::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 5px;
  pointer-events: none;
}
.card-guide-banner > span {
  position: relative;
  z-index: 1;
}
.card-guide-banner-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.card-guide-banner-kicker {
  color: rgba(200, 161, 101, 0.95);
  font-family: "Zen Old Mincho", ui-serif, "Hiragino Mincho ProN", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.card-guide-banner-title {
  color: #fffaf2;
  font-family: "Shippori Mincho", serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.03em;
}
.card-guide-banner-text {
  color: rgba(255, 253, 248, 0.74);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
}
.card-guide-banner-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 84px;
}
.guide-card {
  display: grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 300 / 527;
  margin-left: -8px;
  border: 1px solid rgba(200, 161, 101, 0.78);
  border-radius: 5px;
  background: #fff7eb;
  color: var(--wine);
  font-family: "Shippori Mincho", serif;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  padding: 2px;
  box-shadow: 0 8px 18px rgba(12, 10, 9, 0.22);
}
.guide-card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  object-fit: cover;
}
.guide-card:first-child {
  margin-left: 0;
  transform: rotate(-8deg) translateY(6px);
}
.guide-card:nth-child(2) {
  transform: translateY(-2px);
}
.guide-card:nth-child(3) {
  transform: rotate(8deg) translateY(7px);
}
.card-guide-banner-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(200, 161, 101, 0.18);
  color: rgba(245, 224, 184, 0.98);
  font-size: 18px;
}
@media (max-width: 380px) {
  .card-guide-banner {
    grid-template-columns: minmax(0, 1fr) 34px;
  }
  .card-guide-banner-visual {
    display: none;
  }
}
.card-guide-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.card-guide-samples a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(176, 138, 74, 0.35);
  border-radius: 999px;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.image-credit {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}
.image-credit a {
  color: var(--wine);
  font-weight: 700;
}

/* ============================================
   結果画面 — 鑑定書ラグジュアリー化 (2026-05-29)
   ============================================ */
/* ▼ ヘッダー: 漆黒パネル + ゴールド枠 + 天体装飾 */
#result-view .result-header {
  position: relative;
  margin: 0 0 18px;
  padding: 30px 22px 22px;
  background: linear-gradient(160deg, #221a15 0%, #15100d 100%);
  border: 1px solid rgba(200, 161, 101, 0.6);
  border-radius: 8px;
  text-align: center;
  overflow: hidden;
}
#result-view .result-header::before {
  content: "";
  position: absolute; inset: 7px;
  border: 1px solid rgba(200, 161, 101, 0.3);
  border-radius: 5px; pointer-events: none;
}
#result-view .result-header .doc-no {
  position: relative; z-index: 2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px; letter-spacing: 0.28em;
  color: rgba(200, 161, 101, 0.95);
  text-transform: uppercase; margin-bottom: 12px;
}
#result-view .result-header h2 {
  position: relative; z-index: 2;
  font-family: "Shippori Mincho", serif;
  font-size: 27px; font-weight: 600; line-height: 1.5;
  color: #f5efe7; letter-spacing: 0.04em; margin: 0 0 12px;
}
#result-view .result-header .for-line {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 12px; color: rgba(245, 239, 231, 0.7);
}
#result-view .result-header .for-line strong { color: rgba(200, 161, 101, 0.95); font-weight: 600; }
#result-view .result-header .for-line span:not(:last-child)::after {
  content: "/"; margin-left: 10px; color: rgba(200, 161, 101, 0.5);
}
#result-view .rh-celestial { position: absolute; top: 24px; left: 16px; width: 78px; height: 78px; z-index: 1; opacity: 0.9; }
#result-view .rh-celestial line { stroke: rgba(200, 161, 101, 0.7); stroke-width: 1; stroke-linecap: round; }
#result-view .rh-celestial path { fill: rgba(200, 161, 101, 0.95); }
#result-view .rh-star { position: absolute; z-index: 1; fill: rgba(200, 161, 101, 0.7); }

/* ▼ 問い: クリーム二重枠 + ワインのピル + ボタニカル */
#result-view .asked-block {
  position: relative;
  margin: 0 0 16px; padding: 26px 26px 24px;
  background: var(--paper);
  border: 1px solid rgba(176, 138, 74, 0.55);
  border-radius: 12px; text-align: center; overflow: hidden;
}
#result-view .asked-block::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(176, 138, 74, 0.32); border-radius: 8px; pointer-events: none;
}
#result-view .asked-block .pill-row { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
#result-view .asked-block .pill-row .ln { position: relative; width: 32px; height: 0; border-top: 1px solid rgba(176, 138, 74, 0.5); }
#result-view .asked-block .pill-row .ln::after { content: ""; position: absolute; top: -2.5px; width: 4px; height: 4px; background: rgba(176, 138, 74, 0.85); transform: rotate(45deg); }
#result-view .asked-block .pill-row .ln:first-child::after { right: -2px; }
#result-view .asked-block .pill-row .ln:last-child::after { left: -2px; }
#result-view .asked-label, #result-view .compliment-block .label {
  display: inline-block; padding: 5px 16px;
  background: var(--wine); color: #fff;
  border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; margin: 0;
}
#result-view .asked-question {
  position: relative; z-index: 2;
  font-family: "Shippori Mincho", serif;
  font-size: 20px; font-weight: 600; line-height: 1.7; color: var(--ink);
}
#result-view .asked-bot { position: absolute; top: 50%; width: 40px; opacity: 0.4; z-index: 1; transform: translateY(-50%); }
#result-view .asked-bot-l { left: 10px; }
#result-view .asked-bot-r { right: 10px; transform: translateY(-50%) scaleX(-1); }
#result-view .asked-bot path { fill: none; stroke: #c8a165; stroke-width: 1; }
#result-view .asked-bot ellipse { fill: #d9b27a; }

/* ▼ メッセージ: 温かなゴールドパネル */
#result-view .compliment-block {
  position: relative;
  margin: 0 0 22px; padding: 24px 26px 24px;
  background: linear-gradient(135deg, #fbf3e3 0%, #f6ead0 55%, #f3e6c8 100%);
  border: 1px solid rgba(176, 138, 74, 0.55);
  border-radius: 12px; overflow: hidden;
}
#result-view .compliment-block::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(176, 138, 74, 0.3); border-radius: 8px; pointer-events: none; z-index: 1; }
#result-view .compliment-block .label-row { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; padding-bottom: 12px; z-index: 2; }
#result-view .compliment-block .label-row::after { content: "◆"; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 7px; color: rgba(176, 138, 74, 0.8); }
#result-view .compliment-block .label-row .orn { color: rgba(176, 138, 74, 0.9); font-size: 11px; letter-spacing: 0.2em; }
#result-view .compliment-block .label { background: transparent; color: var(--wine); padding: 0; border-radius: 0; font-family: "Shippori Mincho", serif; font-size: 14px; letter-spacing: 0.14em; }
#result-view .compliment-block p { position: relative; z-index: 2; font-family: "Shippori Mincho", serif; font-size: 14.5px; line-height: 1.95; color: #4a3a2a; text-align: center; }
#result-view .cm-burst { position: absolute; top: -12px; right: -12px; width: 96px; height: 96px; z-index: 1; opacity: 0.45; }
#result-view .cm-burst line { stroke: #d9b27a; stroke-width: 1; stroke-linecap: round; }

/* ▼ 3カード行: クリームのカード + 装飾サムネ */
#result-view .result-cards-rich { display: grid; gap: 12px; margin-bottom: 30px; }
#result-view .result-card-rich {
  position: relative;
  grid-template-columns: 96px 1fr; gap: 16px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid rgba(176, 138, 74, 0.4);
  border-radius: 8px;
}
#result-view .result-card-rich::after {
  content: "✦"; position: absolute; top: 12px; right: 14px;
  color: rgba(176, 138, 74, 0.75); font-size: 14px;
}
#result-view .result-card-rich .tarot-card { width: 96px; aspect-ratio: 300 / 527; }
#result-view .result-card-rich .flip-reveal {
  background: #fff7eb;
  border: 1px solid rgba(200, 161, 101, 0.65);
  padding: 4px;
}
#result-view .result-card-rich .flip-reveal::before { inset: 4px; border-color: rgba(200, 161, 101, 0.4); }
#result-view .result-card-rich .flip-reveal .tarot-card-image { border-radius: 7px; }
#result-view .result-card-rich .flip-reveal .tarot-symbol { font-size: 44px; color: #d9b27a; text-shadow: 0 0 14px rgba(200, 161, 101, 0.45); }
#result-view .card-position { background: var(--wine); color: #fff; border-radius: 4px; letter-spacing: 0.14em; }
#result-view .card-name-jp { font-family: "Shippori Mincho", serif; font-size: 24px; }
#result-view .card-name-en { color: var(--brass); letter-spacing: 0.08em; }
#result-view .card-orient { border-radius: 4px; }
#result-view .card-orient.reversed { background: var(--wine); color: #fff; border-color: var(--wine); }
#result-view .card-kw { background: var(--paper); border: 1px solid rgba(176, 138, 74, 0.4); border-radius: 999px; color: #6a5a44; }

@media (max-width: 360px) {
  #result-view .result-card-rich { grid-template-columns: 84px 1fr; gap: 12px; }
  #result-view .result-card-rich .tarot-card { width: 84px; }
  #result-view .result-header h2 { font-size: 23px; }
}

/* ============================================
   CTA ボタン — ワイン×ゴールドのリッチ化 (2026-05-29)
   ============================================ */
.primary {
  position: relative;
  justify-content: center;
  min-height: 58px;
  background: linear-gradient(135deg, #7a2540 0%, #5e1c30 52%, #4d1626 100%);
  border: 1px solid rgba(200, 161, 101, 0.7);
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(77, 22, 38, 0.32);
  color: #f6efe6;
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.12em;
}
.primary::before {
  content: "";
  position: absolute; inset: 5px;
  border: 1px solid rgba(200, 161, 101, 0.42);
  border-radius: 5px; pointer-events: none;
}
.primary #action-label { position: relative; z-index: 2; }
.primary .btn-burst { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; opacity: 0.8; z-index: 1; }
.primary .btn-burst line { stroke: rgba(200, 161, 101, 0.85); stroke-width: 1; stroke-linecap: round; }
.primary .icon {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #dcbd83 0%, #c8a165 100%);
  color: #4d1626; font-size: 20px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.primary:active { transform: translateY(1px); box-shadow: 0 3px 12px rgba(77, 22, 38, 0.32); }

/* サブテキスト(無料ではじめる/残り回数)を飾り罫で挟む */
.button-sub {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 12px; color: var(--brass); font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
}
.button-sub::before, .button-sub::after {
  content: "✦"; font-size: 9px; color: rgba(176, 138, 74, 0.85);
}
.button-sub::before { box-shadow: none; }

/* ============================================
   占いの流れ(steps-block)— 漆黒の装飾パネル (2026-05-29)
   ============================================ */
.steps-block {
  position: relative;
  margin: 30px 0 0;
  padding: 30px 22px 28px;
  background: linear-gradient(160deg, #221a16 0%, #15100d 100%);
  border: 1px solid rgba(200, 161, 101, 0.55);
  border-radius: 8px;
  overflow: hidden;
}
.steps-block::before {
  content: "";
  position: absolute; inset: 7px;
  border: 1px solid rgba(200, 161, 101, 0.28);
  border-radius: 5px; pointer-events: none;
}
.steps-block > * { position: relative; z-index: 2; }
.steps-block .sb-burst { position: absolute; top: 8px; right: 8px; width: 80px; height: 70px; z-index: 1; opacity: 0.85; }
.steps-block .sb-burst line { stroke: rgba(200, 161, 101, 0.6); stroke-width: 1; stroke-linecap: round; }
.steps-block .sb-burst path { fill: rgba(200, 161, 101, 0.9); }
.steps-block .sb-spark { position: absolute; z-index: 1; color: rgba(200, 161, 101, 0.55); font-size: 12px; pointer-events: none; }
.steps-block .sb-spark.sm { font-size: 8px; color: rgba(200, 161, 101, 0.4); }

.steps-block .section-kicker {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--brass); text-transform: uppercase; letter-spacing: 0.32em;
  font-size: 11px; margin-bottom: 6px;
}
.steps-block .section-kicker::before {
  content: ""; width: 24px; height: 1px; background: rgba(200, 161, 101, 0.6);
}
.steps-block .section-kicker::after {
  content: ""; width: 24px; height: 1px; background: rgba(200, 161, 101, 0.6);
}
.steps-block .steps-title-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 20px; }
.steps-block .steps-title-row .section-title { margin: 0; color: #f5efe7; font-size: 28px; letter-spacing: 0.04em; }
.steps-block .sb-sprig { width: 56px; height: 30px; flex: none; }
.steps-block .sb-sprig path { stroke: #c8a165; stroke-width: 1; fill: none; }
.steps-block .sb-sprig-l { transform: scaleX(-1); }

.steps-block .steps-list { gap: 0; }
.steps-block .step-item {
  grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  padding: 16px 2px;
}
.steps-block .step-item + .step-item { border-top: 1px dashed rgba(200, 161, 101, 0.28); }
.steps-block .step-num {
  width: 40px; height: 40px; font-size: 17px;
  border: 1px solid rgba(200, 161, 101, 0.7);
  color: var(--brass);
}
.steps-block .step-text strong { font-family: "Shippori Mincho", serif; font-size: 16px; color: #f3ece1; margin-bottom: 5px; }
.steps-block .step-text span { color: rgba(245, 239, 231, 0.62); font-size: 12.5px; line-height: 1.85; }

/* ============================================
   カテゴリ選択(何を占いたいですか?)— 装飾強化 (2026-05-29)
   ============================================ */
#question-step-1 { position: relative; padding: 8px 2px 0; }
/* 画面四隅の金のコーナー装飾 */
#question-step-1 .qv-corner { position: absolute; width: 46px; height: 46px; z-index: 0; opacity: 0.7; pointer-events: none; }
#question-step-1 .qv-corner path { fill: none; stroke: var(--brass); stroke-width: 1; }
#question-step-1 .qv-corner circle { fill: var(--brass); }
#question-step-1 .qv-corner-tl { top: -2px; left: -4px; }
#question-step-1 .qv-corner-tr { top: -2px; right: -4px; transform: scaleX(-1); }
#question-step-1 .qv-corner-bl { bottom: -2px; left: -4px; transform: scaleY(-1); }
#question-step-1 .qv-corner-br { bottom: -2px; right: -4px; transform: scale(-1, -1); }

/* 見出し: 中央寄せ + 上部飾り */
#question-view #question-step-1 .intro { text-align: center; }
#question-step-1 .intro::before { content: none; }
#question-step-1 .qv-top-orn { display: block; width: 200px; max-width: 64%; margin: 0 auto 8px; }
#question-step-1 .qv-top-orn path { stroke: var(--brass); stroke-width: 1.1; fill: none; }
#question-step-1 .qv-top-orn .d { fill: var(--brass); stroke: none; }
#question-step-1 .qv-top-orn circle { fill: var(--brass); }
#question-view #question-step-1 .intro h2 { font-size: 34px; line-height: 1.2; letter-spacing: 0.02em; white-space: normal; }
#question-step-1 .intro .lead { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* カードを大きく・金枠化 */
#question-step-1 .question-options { gap: 14px; margin-top: 22px; position: relative; z-index: 1; }
#question-step-1 .question-panel {
  min-height: 210px;
  padding: 20px 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(176, 138, 74, 0.45);
  box-shadow: 0 10px 24px rgba(77, 39, 70, 0.08);
}
/* 内側の金の飾り枠 */
#question-step-1 .question-panel .q-deco-corner,
#question-step-1 .question-panel::before { content: ""; width: 16px; height: 16px; opacity: 0.85; color: var(--brass); border-width: 1px; }
#question-step-1 .question-panel .q-frame,
#question-step-1 .question-panel { }
#question-step-1 .question-panel::after { opacity: 0.05; }
/* テーマ別の淡い地色 */
#question-step-1 .question-panel[data-theme="love"]   { background: linear-gradient(160deg, #fdf2f4 0%, var(--paper) 70%); }
#question-step-1 .question-panel[data-theme="work"]   { background: linear-gradient(160deg, #eef4fb 0%, var(--paper) 70%); }
#question-step-1 .question-panel[data-theme="mind"]   { background: linear-gradient(160deg, #f4eefb 0%, var(--paper) 70%); }
#question-step-1 .question-panel[data-theme="future"] { background: linear-gradient(160deg, #faf3e3 0%, var(--paper) 70%); }

/* アイコン大きく + きらめき */
#question-step-1 .question-panel .q-icon {
  width: 54px; height: 54px; font-size: 26px; margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(77, 39, 70, 0.22);
}
#question-step-1 .question-panel .q-spark {
  position: absolute; top: 24px; left: 78px; color: currentColor; opacity: 0.6;
  font-size: 12px; line-height: 1; pointer-events: none;
}
#question-step-1 .question-panel .q-spark i { font-size: 8px; margin-left: 4px; vertical-align: 4px; opacity: 0.7; font-style: normal; }

/* ラベル + 下線フラリッシュ */
#question-step-1 .question-panel .q-label { font-size: 16px; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 14px; position: relative; }
#question-step-1 .question-panel .q-label::after {
  content: ""; position: absolute; left: 1px; bottom: -7px; width: 34px; height: 1px; background: currentColor; opacity: 0.5;
}
#question-step-1 .question-panel .q-label::before {
  content: "✦"; position: absolute; left: 40px; bottom: -12px; font-size: 7px; opacity: 0.6;
}
#question-step-1 .question-panel strong { font-size: 18px; line-height: 1.6; margin-top: 6px; }

/* 矢印を大きく */
#question-step-1 .question-panel .q-arrow {
  width: 38px; height: 38px; bottom: 16px; right: 16px; font-size: 17px;
  background: rgba(255, 255, 255, 0.85);
}

/* 名前欄 */
#question-step-1 .name-field { margin-top: 26px; color: var(--brass); font-size: 12.5px; letter-spacing: 0.06em; }
#question-step-1 .name-field .nf-mark { margin-right: 7px; color: var(--brass); }
#question-step-1 .name-input {
  min-height: 52px; background: var(--paper);
  border: 1px solid rgba(176, 138, 74, 0.4); border-radius: 10px;
  font-size: 15px; box-shadow: inset 0 1px 3px rgba(77,39,70,0.05);
}
#question-step-1 .name-note { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.7; }

@media (max-width: 360px) {
  #question-view #question-step-1 .intro h2 { font-size: 28px; }
  #question-step-1 .question-panel { min-height: 188px; padding: 16px 14px; }
  #question-step-1 .question-panel strong { font-size: 16px; }
}


/* ============================================
   カテゴリ画面: コーナーが本文に被る不具合を修正 (2026-05-29)
   ============================================ */
#question-step-1 > *:not(.qv-corner) { position: relative; z-index: 1; }
#question-step-1 .qv-corner-bl, #question-step-1 .qv-corner-br { display: none; }

/* 上部の余白を詰める: 戻るボタンを左上に浮かせ、天体飾りと同じ帯に (2026-05-29) */
#question-view { padding-top: 12px; }
#question-view .back-row { position: absolute; top: 10px; left: 10px; margin: 0; z-index: 5; width: auto; }
#question-view #question-step-1 { padding-top: 2px; }
#question-view #question-step-1 .qv-top-orn { margin-top: 0; margin-bottom: 6px; }
#question-view #question-step-1 .intro h2 { margin-top: 2px; }
#question-view #question-step-2 { padding-top: 2px; }

/* ============================================
   サブ質問(選択)画面 — 2枚目のデザインに (2026-05-29)
   ============================================ */
#question-step-2 { position: relative; padding: 6px 2px 0; }
#question-step-2 .qv-corner { position: absolute; width: 44px; height: 44px; z-index: 0; opacity: 0.7; pointer-events: none; }
#question-step-2 .qv-corner path { fill: none; stroke: var(--brass); stroke-width: 1; }
#question-step-2 .qv-corner circle { fill: var(--brass); }
#question-step-2 .qv-corner-tl { top: -2px; left: -4px; }
#question-step-2 .qv-corner-tr { top: -2px; right: -4px; transform: scaleX(-1); }
#question-step-2 .sq-top-orn { display: block; width: 70px; height: 52px; margin: 0 auto 4px; position: relative; z-index: 1; }
#question-step-2 .sq-top-orn line { stroke: rgba(201,154,85,0.7); stroke-width: 1; stroke-linecap: round; }
#question-step-2 .sq-top-orn path { fill: var(--brass); }
#question-step-2 .sub-question-list { position: relative; z-index: 1; }

/* 見出し */
#question-step-2 .sub-question-lead {
  margin: 4px 2px 4px; padding: 0; border: 0;
  font-size: 27px; font-weight: 600; line-height: 1.55; text-align: left; color: var(--ink);
}
#question-step-2 .sub-question-lead::after {
  content: ""; display: block; height: 14px; margin: 16px auto 22px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20160%2014%27%3E%3Cpath%20d%3D%27M30%207%20C%2052%207%2064%202%2078%207%27%20fill%3D%27none%27%20stroke%3D%27%2523c99a55%27%20stroke-width%3D%271%27%2F%3E%3Cpath%20d%3D%27M130%207%20C%20108%207%2096%202%2082%207%27%20fill%3D%27none%27%20stroke%3D%27%2523c99a55%27%20stroke-width%3D%271%27%2F%3E%3Cpath%20d%3D%27M80%202%20L83%207%20L80%2012%20L77%207%20Z%27%20fill%3D%27%2523c99a55%27%2F%3E%3Ccircle%20cx%3D%2730%27%20cy%3D%277%27%20r%3D%271.4%27%20fill%3D%27%2523c99a55%27%2F%3E%3Ccircle%20cx%3D%27130%27%20cy%3D%277%27%20r%3D%271.4%27%20fill%3D%27%2523c99a55%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
}

/* 質問アイテム: クリームカード + 左ボタニカル + 矢印 */
#question-step-2 .sub-question-item {
  padding: 20px 18px 20px 58px;
  background: var(--paper);
  border: 1px solid rgba(176, 138, 74, 0.4);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(77, 39, 70, 0.06);
  font-family: "Shippori Mincho", serif; font-size: 15px; font-weight: 500; line-height: 1.5;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2034%2048%27%3E%3Cpath%20d%3D%27M28%204%20C%2016%2018%2011%2032%209%2046%27%20fill%3D%27none%27%20stroke%3D%27%2523d9a7ad%27%20stroke-width%3D%271%27%2F%3E%3Cg%20fill%3D%27%2523e6bcc1%27%3E%3Cellipse%20cx%3D%2722%27%20cy%3D%2714%27%20rx%3D%276%27%20ry%3D%272.4%27%20transform%3D%27rotate%2840%2022%2014%29%27%2F%3E%3Cellipse%20cx%3D%2717%27%20cy%3D%2726%27%20rx%3D%276.5%27%20ry%3D%272.6%27%20transform%3D%27rotate%2834%2017%2026%29%27%2F%3E%3Cellipse%20cx%3D%2713%27%20cy%3D%2738%27%20rx%3D%275.5%27%20ry%3D%272.2%27%20transform%3D%27rotate%2828%2013%2038%29%27%2F%3E%3Cellipse%20cx%3D%2724%27%20cy%3D%2722%27%20rx%3D%275%27%20ry%3D%272%27%20transform%3D%27rotate%28-40%2024%2022%29%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 26px auto;
  margin-bottom: 12px;
}
#question-step-2 .sub-question-item:hover { background-color: #fffaf3; transform: translateY(-1px); }
#question-step-2 .sub-question-item .arrow {
  flex-shrink: 0; color: var(--wine); font-size: 20px; font-weight: 400;
}

/* フッター: 破線パネル + 三日月 + ボタン2つ */
#question-step-2 .sub-question-footer {
  position: relative; margin-top: 22px; padding: 28px 18px 18px;
  background: rgba(201, 154, 85, 0.05);
  border: 1px dashed rgba(201, 154, 85, 0.5);
  border-radius: 12px;
}
#question-step-2 .sub-question-footer::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 16px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2044%2016%27%3E%3Cpath%20d%3D%27M20%203%20A6%206%200%201%200%2020%2013%20A4.5%204.5%200%201%201%2020%203%20Z%27%20fill%3D%27%2523c99a55%27%2F%3E%3Ccircle%20cx%3D%278%27%20cy%3D%278%27%20r%3D%271%27%20fill%3D%27%2523c99a55%27%2F%3E%3Ccircle%20cx%3D%2734%27%20cy%3D%278%27%20r%3D%271%27%20fill%3D%27%2523c99a55%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
}
#question-step-2 .sub-question-helper {
  font-family: "Shippori Mincho", serif; font-style: normal; font-size: 13px; line-height: 1.85;
  color: var(--charcoal); margin-bottom: 16px;
}
#question-step-2 .sub-question-actions { gap: 10px; }
#question-step-2 .sub-action-btn { padding: 15px 8px; border-radius: 10px; font-family: "Shippori Mincho", serif; font-weight: 600; font-size: 13.5px; letter-spacing: 0.04em; }
#question-step-2 .sub-shuffle-btn { background: var(--paper); border: 1px solid rgba(201,154,85,0.5); color: var(--wine); }
#question-step-2 .sub-shuffle-btn span:first-child { color: var(--brass); }
#question-step-2 .sub-omakase-btn {
  position: relative;
  background: linear-gradient(135deg, #7a2540 0%, #5e1c30 60%, #4d1626 100%);
  border: 1px solid rgba(201,154,85,0.7); color: #f6efe6;
  box-shadow: 0 6px 16px rgba(77,39,70,0.25);
}
#question-step-2 .sub-omakase-btn::before {
  content: ""; position: absolute; inset: 4px; border: 1px solid rgba(201,154,85,0.4); border-radius: 7px; pointer-events: none;
}
#question-step-2 .sub-omakase-btn span:first-child { color: var(--brass); }

@media (max-width: 360px) {
  #question-step-2 .sub-question-lead { font-size: 23px; }
}

/* ============================================
   ヒーロー(TOP)— 参考画像準拠の刷新 (2026-05-29)
   背景動画は維持
   ============================================ */
/* ブランドバー */
.hero-topbar { top: 18px; }
.hero-brand { display: inline-flex; align-items: center; gap: 9px; }
.hero-brand-moon { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(232,214,168,0.4)); }
.hero-brand-name {
  font-family: "Shippori Mincho", serif; font-size: 16px; font-weight: 600;
  letter-spacing: 0.18em; color: #f6efe2; text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-menu { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 5px; background: none; border: 0; cursor: pointer; padding: 4px 0; }
.hero-menu .hm-label { font-family: "Zen Old Mincho", serif; font-size: 10px; letter-spacing: 0.28em; color: rgba(246,239,226,0.85); }
.hero-menu .hm-lines { display: flex; flex-direction: column; gap: 4px; width: 30px; }
.hero-menu .hm-lines i { display: block; height: 1px; background: rgba(232,214,168,0.8); }
.hero-menu .hm-lines i:last-child { width: 70%; align-self: flex-end; }

/* 太陽エンブレム */
.hero-emblem {
  position: absolute; top: 9%; left: 50%; transform: translateX(-50%);
  width: 120px; height: 120px; z-index: 2; pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(232,214,168,0.35));
}
.hero-emblem .he-rays line { stroke: rgba(232,214,168,0.8); stroke-width: 0.8; stroke-linecap: round; }
.hero-emblem .he-ring { fill: none; stroke: rgba(232,214,168,0.7); stroke-width: 1; }
.hero-emblem .he-dot { fill: none; stroke: rgba(232,214,168,0.6); stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; }
.hero-emblem .he-star { fill: rgba(232,214,168,0.95); }

/* コピー位置を少し下げてエンブレムと分離 */
.hero-copy { top: 57%; }
.hero-kicker .hk-s { font-style: normal; font-size: 9px; color: rgba(232,214,168,0.9); }

/* ヒーロー内CTA(ローズ×ゴールド) */
.hero-cta {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 350px; margin: 30px auto 0; min-height: 60px; padding: 0 46px;
  background: linear-gradient(135deg, #d98a82 0%, #c4736b 55%, #b35a55 100%);
  border: 1px solid rgba(232,214,168,0.8);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  color: #fff; font-family: "Shippori Mincho", serif; font-weight: 600; font-size: 17px; letter-spacing: 0.1em;
  cursor: pointer;
}
.hero-cta::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(232,214,168,0.45); border-radius: 5px; pointer-events: none; }
.hero-cta .hero-cta-spark { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: rgba(232,214,168,0.95); font-size: 14px; }
.hero-cta .hero-cta-arrow { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: rgba(232,214,168,0.95); font-size: 19px; }
.hero-cta:active { transform: translateY(1px); box-shadow: 0 6px 16px rgba(0,0,0,0.4); }
.hero-cta:disabled { filter: grayscale(0.4) brightness(0.85); cursor: default; }
.hero-cta-sub {
  display: block; margin: 12px auto 0; font-family: "Zen Old Mincho", serif;
  font-size: 10.5px; letter-spacing: 0.08em; color: rgba(246,239,226,0.72);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero-about {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 20px auto 0; padding: 0 0 5px; background: none; border: 0;
  border-bottom: 1px solid rgba(232,214,168,0.45);
  color: rgba(232,214,168,0.92); font-family: "Zen Old Mincho", serif;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer;
}
.hero-about span { font-size: 13px; }

@media (max-width: 360px) {
  .hero-copy h1 { font-size: 25px; }
  .hero-sub {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .hero-cta {
    max-width: calc(100% - 12px);
    padding-left: 38px;
    padding-right: 38px;
    font-size: 16px;
  }
  .hero-emblem { width: 112px; height: 112px; top: 11%; }
}

/* ============================================
   結果カード — テーマ配色 + ゴールド紋章の意匠 (2026-05-29)
   ============================================ */
#result-view .result-cards-rich { gap: 16px; }
#result-view .result-card-rich {
  position: relative; overflow: hidden;
  grid-template-columns: 100px 1fr; gap: 16px;
  min-height: 156px; padding: 18px 18px 18px 18px;
  border: 1px solid rgba(176, 138, 74, 0.45);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(77, 39, 70, 0.08);
}
#result-view .result-card-rich::after { content: none; }
/* 行ごとのテーマ配色(状況=ローズ / 本音=クリーム / 次の一歩=ラベンダー) */
#result-view .result-card-rich:nth-child(1) { background: linear-gradient(120deg, #f1d8de 0%, #f7e7ec 52%, #faeef1 100%); }
#result-view .result-card-rich:nth-child(2) { background: linear-gradient(120deg, #ece1cf 0%, #f5eddd 52%, #faf4e8 100%); }
#result-view .result-card-rich:nth-child(3) { background: linear-gradient(120deg, #ded7ec 0%, #ebe6f3 52%, #f2eef8 100%); }

/* 右側のシーン(紋章 + シンボル + きらめき) */
#result-view .rcr-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* 右側: カード英語名のすかし背景 */
#result-view .rcr-bgtext {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; text-align: right;
  font-family: "Shippori Mincho", serif; font-weight: 700; font-size: 40px;
  letter-spacing: 0.04em; line-height: 1; text-transform: uppercase;
  color: rgba(150, 112, 58, 0.16);
}
#result-view .rcr-spark { position: absolute; color: rgba(184, 138, 60, 0.5); font-size: 11px; }
#result-view .rcr-spark.s1 { top: 16px; right: 22px; }
#result-view .rcr-spark.s2 { bottom: 20px; right: 54px; font-size: 8px; opacity: 0.8; }

/* サムネ・情報は前面に */
#result-view .result-card-rich .tarot-card,
#result-view .result-card-rich .card-info { position: relative; z-index: 1; }
#result-view .result-card-rich .tarot-card { width: 100px; aspect-ratio: 300 / 527; }
#result-view .result-card-rich .card-info { align-self: center; }
#result-view .card-position {
  display: inline-block; align-self: flex-start; margin-bottom: 8px;
  padding: 4px 14px; background: var(--wine); color: #fff;
  border-radius: 5px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
}
#result-view .card-name-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
#result-view .card-name-jp { font-family: "Shippori Mincho", serif; font-size: 26px; font-weight: 600; color: var(--ink); }
#result-view .card-name-en { display: block; margin-top: 2px; color: #a8823c; letter-spacing: 0.14em; font-size: 12.5px; }
#result-view .card-orient {
  display: inline-block; align-self: flex-start; margin: 10px 0;
  padding: 6px 14px; background: rgba(255,255,255,0.65); border: 1px solid rgba(176,138,74,0.45);
  border-radius: 6px; color: #6a5a44; font-size: 12px;
}
#result-view .card-orient.reversed { background: var(--wine); border-color: var(--wine); color: #fff; }
#result-view .card-keywords { display: flex; flex-wrap: wrap; gap: 8px; }
#result-view .card-kw {
  padding: 6px 14px; background: rgba(255,255,255,0.7);
  border: 1px solid rgba(176,138,74,0.4); border-radius: 999px;
  color: #5f5036; font-size: 12.5px;
}

/* 下部の安心メッセージ */
#result-view .result-cards-note {
  position: relative; margin: 18px 0 26px; padding: 20px 24px;
  background: var(--paper); border: 1px solid rgba(176,138,74,0.35); border-radius: 12px;
  text-align: center;
}
#result-view .result-cards-note p {
  font-family: "Shippori Mincho", serif; font-size: 13.5px; line-height: 1.95; color: var(--charcoal);
}
#result-view .result-cards-note .rcn-spark { position: absolute; top: 50%; transform: translateY(-50%); color: rgba(176,138,74,0.7); font-size: 12px; }
#result-view .result-cards-note .rcn-spark.s1 { left: 22px; }
#result-view .result-cards-note .rcn-spark.s2 { right: 22px; }

@media (max-width: 360px) {
  #result-view .result-card-rich { grid-template-columns: 84px 1fr; gap: 12px; }
  #result-view .result-card-rich .tarot-card { width: 84px; }
  #result-view .rcr-bgtext { font-size: 30px; right: 12px; }
  #result-view .card-name-jp { font-size: 22px; }
}

/* 占星・元素の対応(小表示) + カテゴリ別の重心 (2026-05-29 B) */
#result-view .reading-head .corr {
  margin-left: auto; align-self: center;
  font-family: "Zen Old Mincho", serif; font-size: 11px; letter-spacing: 0.06em;
  color: #9c7a3d; white-space: nowrap;
}
#result-view .reading-head .corr:empty { display: none; }
#result-view .cat-line {
  margin-top: 10px; padding: 10px 14px;
  background: rgba(201, 154, 85, 0.08);
  border-left: 2px solid rgba(201, 154, 85, 0.55);
  border-radius: 4px;
  font-size: 13.5px; line-height: 1.8; color: var(--charcoal);
}
#result-view .cat-line:empty { display: none; }
#result-view .cat-line .cl-tag {
  display: inline-block; margin-right: 8px; padding: 1px 9px;
  background: var(--wine); color: #fff; border-radius: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; vertical-align: 1px;
}

.tcs-static{position:relative;z-index:2;max-width:680px;margin:26px auto;padding:0 16px}
  .tcs-card{background:rgba(255,255,255,.94);border:1px solid #b89ce844;border-radius:18px;padding:20px 18px;margin:18px 0;box-shadow:0 8px 22px rgba(60,40,110,.10)}
  .tcs-card h2{margin:0 0 10px;color:#2b2735;font-size:1.25rem}
  .tcs-card h3{color:#b89ce8;border-bottom:1px solid #b89ce844;padding-bottom:6px;margin:24px 0 8px;font-size:1.05rem}
  .tcs-card p,.tcs-card li,.tcs-card dd{line-height:1.92;font-size:.94rem;color:#2b2735;margin:6px 0}
  .tcs-axes{display:grid;gap:12px;margin:14px 0}
  .tcs-axes dt{font-weight:800;color:#b89ce8;margin-bottom:2px}
  .tcs-axes dd{margin:0;color:#6f687e}
  .tcs-item{border:1px solid #b89ce844;border-radius:14px;padding:14px 16px;margin:12px 0;background:rgba(255,255,255,.75)}
  .tcs-item h4{margin:0 0 4px;font-size:1.03rem;color:#2b2735;display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}
  .tcs-sub{font-size:.72rem;font-weight:700;color:#6f687e;letter-spacing:.05em}
  .tcs-catch{font-weight:700;color:#b89ce8;margin:2px 0 8px}
  .tcs-label{font-weight:700;margin:8px 0 2px;color:#2b2735}
  .tcs-item ul{margin:0;padding-left:1.2em;color:#6f687e}
  .tcs-tags{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0;padding:0;list-style:none}
  .tcs-tags li,.tcs-tag{font-size:.74rem;font-weight:700;color:#b89ce8;border:1px solid currentColor;border-radius:999px;padding:2px 10px}
  .tcs-note{color:#6f687e;font-size:.86rem;border-top:1px dashed #b89ce844;padding-top:8px;margin-top:10px}
  .tcs-column p{line-height:2}
.tc-diagnosis-shell{position:relative;z-index:2;width:min(680px,calc(100% - 32px));margin:32px auto 64px}
.tc-diagnosis-card{background:#fff;border:1px solid rgba(20,20,40,.12);border-radius:20px;padding:24px 20px;box-shadow:0 16px 40px rgba(20,20,40,.12)}
.tc-diagnosis-progress{height:10px;border-radius:999px;background:rgba(120,120,140,.18);overflow:hidden}.tc-diagnosis-progress>i{display:block;height:100%;width:0;background:var(--accent,#765bd8);transition:width .2s ease}
.tc-diagnosis-count{text-align:right;margin:8px 0 18px;font-weight:700}.tc-diagnosis-question{font-size:clamp(19px,5vw,26px);line-height:1.6;margin:0 0 20px;white-space:pre-line}
.tc-diagnosis-image{display:none;width:100%;max-height:300px;object-fit:cover;border-radius:12px;margin:0 0 18px}.tc-diagnosis-image[src]{display:block}
.tc-diagnosis-answer{display:flex;width:100%;min-height:52px;align-items:center;text-align:left;padding:14px 16px;margin:10px 0;border:1px solid rgba(20,20,40,.16);border-radius:12px;background:#fff;color:inherit;font:inherit;font-weight:700;cursor:pointer}
.tc-diagnosis-answer:hover,.tc-diagnosis-answer:focus-visible{border-color:var(--accent,#765bd8);outline:3px solid color-mix(in srgb,var(--accent,#765bd8) 22%,transparent)}
.tc-diagnosis-back{min-height:44px;margin-top:12px;border:0;background:transparent;color:inherit;text-decoration:underline;cursor:pointer}
.tc-result-card h1{font-size:clamp(25px,7vw,38px);line-height:1.45;margin:8px 0}.tc-result-catch{font-size:18px;font-weight:700}.tc-result-section{margin:20px 0;padding-top:18px;border-top:1px solid rgba(20,20,40,.12)}
.tc-result-section h2{font-size:18px;margin:0 0 8px}.tc-result-section p{white-space:pre-line}.tc-result-section ul{padding-left:1.3em}.tc-result-section li+li{margin-top:6px}
.tc-result-visual{display:block;width:min(220px,70%);height:auto;margin:0 auto 14px}.tc-result-number{display:grid;place-items:center;width:130px;aspect-ratio:1;margin:0 auto 14px;border-radius:50%;background:var(--accent,#765bd8);color:#fff;font-size:44px;font-weight:900}
.tc-result-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.tc-result-actions a,.tc-result-actions button{display:inline-flex;min-height:46px;align-items:center;justify-content:center;padding:10px 16px;border:1px solid rgba(20,20,40,.18);border-radius:999px;background:#fff;color:inherit;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}.tc-result-actions .primary{background:#17171d;color:#fff}
@media(max-width:480px){.tc-diagnosis-shell{width:min(100% - 20px,680px);margin-top:20px}.tc-diagnosis-card{padding:20px 16px;border-radius:16px}}
@media(prefers-reduced-motion:reduce){.tc-diagnosis-progress>i{transition:none}}

.tc-compat-start{display:flex;width:min(420px,calc(100% - 32px));min-height:52px;align-items:center;justify-content:center;margin:24px auto;padding:12px 20px;border-radius:999px;background:#17171d;color:#fff;font-weight:700;text-decoration:none;position:relative;z-index:10}
