@charset "UTF-8";
/* ============================================================
   瑞稀ツインレイ占い — 占いページ共通スタイル（フェーズ2）
   白ベース／和モダン。style.css の後に読み込む。
   ============================================================ */

/* ---------- ページ共通レイアウト ---------- */

body.fortune-page {
  background: var(--c-base);
  min-height: 100vh;
}

.f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  background: linear-gradient(to bottom, rgba(250, 250, 248, 0.92), rgba(250, 250, 248, 0));
}

.f-header__logo {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.f-header__logo-main {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--c-ink);
}

.f-header__logo-sub {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: var(--c-verm);
}

.f-header__back {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--c-ink-soft);
  border-bottom: 1px solid rgba(176, 138, 46, 0.5);
  padding-bottom: 3px;
  transition: color 0.3s ease;
}

.f-header__back:hover { color: var(--c-verm); }

/* ---------- ページの頭（世界観バナー） ---------- */

.f-hero {
  position: relative;
  padding: 150px 24px 70px;
  text-align: center;
  overflow: hidden;
}

.f-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.f-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(247, 244, 238, 0.94) 0%,
    rgba(247, 244, 238, 0.78) 52%,
    var(--c-base) 100%
  );
}

.f-hero__inner { position: relative; z-index: 2; }

/* タロット：たくさんのカードを扇状に */
.f-hero__bg--cards {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(4px, 1.4vw, 16px);
  padding-top: 56px;
  background: linear-gradient(160deg, #efeade, #f7f4ee);
}

.f-hero__bg--cards img {
  width: clamp(64px, 9vw, 122px);
  border-radius: 6px;
  border: 1px solid rgba(176, 138, 46, 0.45);
  box-shadow: 0 12px 26px rgba(42, 49, 64, 0.28);
}

.f-hero__bg--cards img:nth-child(1) { transform: rotate(-22deg) translateY(66px); }
.f-hero__bg--cards img:nth-child(2) { transform: rotate(-16deg) translateY(38px); }
.f-hero__bg--cards img:nth-child(3) { transform: rotate(-10deg) translateY(18px); }
.f-hero__bg--cards img:nth-child(4) { transform: rotate(-4deg) translateY(6px); }
.f-hero__bg--cards img:nth-child(5) { transform: rotate(0deg); }
.f-hero__bg--cards img:nth-child(6) { transform: rotate(4deg) translateY(6px); }
.f-hero__bg--cards img:nth-child(7) { transform: rotate(10deg) translateY(18px); }
.f-hero__bg--cards img:nth-child(8) { transform: rotate(16deg) translateY(38px); }
.f-hero__bg--cards img:nth-child(9) { transform: rotate(22deg) translateY(66px); }

.f-hero__en {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  color: var(--c-verm);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

.f-hero__title {
  margin-top: 10px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--c-ink);
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(255, 255, 255, 0.9),
    0 0 30px rgba(255, 255, 255, 0.8);
}

.f-hero__lead {
  margin-top: 22px;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  color: rgba(42, 49, 64, 0.85);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.95), 0 0 18px rgba(255, 255, 255, 0.85);
}

/* ---------- 入力フォーム ---------- */

.f-form-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 24px 90px;
}

.f-form {
  position: relative;
  background: linear-gradient(160deg, #fffdf7 0%, #faf7ef 60%, #f3efe4 100%);
  border: 1px solid rgba(176, 138, 46, 0.35);
  box-shadow: 0 24px 60px rgba(42, 49, 64, 0.1);
  padding: 46px 40px 44px;
}

.f-form::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(176, 138, 46, 0.25);
  pointer-events: none;
}

.f-field { margin-bottom: 26px; }

.f-field__label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--c-ink);
  margin-bottom: 10px;
}

.f-field__label small {
  font-size: 0.66rem;
  color: var(--c-ink-soft);
  margin-left: 8px;
  letter-spacing: 0.12em;
}

.f-field__input,
.f-field__select {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font-mincho);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--c-ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(42, 49, 64, 0.22);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.f-field__select-wrap { position: relative; }

.f-field__select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--c-gold);
  border-bottom: 1.5px solid var(--c-gold);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.f-field__input:focus,
.f-field__select:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(217, 178, 94, 0.18);
}

.f-submit {
  display: block;
  width: 100%;
  margin-top: 34px;
  padding: 16px 10px;
  font-family: var(--font-mincho);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: #fff8ec;
  background: linear-gradient(135deg, #a3271a 0%, var(--c-verm) 55%, #8e2114 100%);
  border: 1px solid rgba(217, 178, 94, 0.6);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 10px 26px rgba(181, 48, 28, 0.28);
}

.f-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(181, 48, 28, 0.36);
}

.f-error {
  display: none;
  margin-top: 16px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--c-verm);
  text-align: center;
}

.f-error.is-show { display: block; }

/* ---------- ステージ（演出エリア） ---------- */

.f-stage {
  position: relative;
  min-height: 72vh;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 90px;
  text-align: center;
}

.f-stage.is-show { display: flex; }

.f-stage__hint {
  margin-top: 34px;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  color: var(--c-ink-soft);
  animation: hintPulse 2.6s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ---------- 結果ページ共通 ---------- */

.f-result {
  display: none;
  max-width: 720px;
  margin: 0 auto;
  padding: 130px 24px 90px;
}

.f-result.is-show {
  display: block;
  animation: resultIn 1.6s ease both;
}

@keyframes resultIn {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}

.r-head {
  text-align: center;
  margin-bottom: 54px;
}

.r-head__crest {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--c-gold);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--c-gold);
  box-shadow: 0 0 0 5px rgba(217, 178, 94, 0.14);
}

.r-head__title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--c-ink);
}

.r-head__lead {
  margin-top: 18px;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  color: var(--c-verm);
}

.r-head__lead--extra { color: var(--c-ink-soft); margin-top: 8px; }

.r-section {
  position: relative;
  background: linear-gradient(165deg, #fffdf8 0%, #f9f6ee 100%);
  border: 1px solid rgba(176, 138, 46, 0.3);
  box-shadow: 0 16px 40px rgba(42, 49, 64, 0.07);
  padding: 34px 36px 30px;
  margin-bottom: 26px;
}

.r-section__kicker {
  position: absolute;
  top: -13px;
  left: 26px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-verm);
  color: #fff8ec;
  font-size: 0.72rem;
  border-radius: 50%;
  letter-spacing: 0;
}

.r-section__title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--c-ink);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(176, 138, 46, 0.35);
}

.r-section__body {
  font-size: 0.92rem;
  color: rgba(42, 49, 64, 0.85);
  line-height: 2.1;
}

.r-section__body p + p { margin-top: 12px; }

.r-prayer {
  padding: 6px 4px;
  color: var(--c-ink);
}

.r-list {
  list-style: none;
  margin: 16px 0;
}

.r-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
}

.r-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.9em;
  width: 7px;
  height: 7px;
  background: var(--c-gold-light);
  transform: rotate(45deg);
}

/* CTA */
.r-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 44px;
}

.r-cta__btn {
  display: block;
  text-align: center;
  padding: 18px 12px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  border-radius: 2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.r-cta__btn--tel {
  color: #fff8ec;
  background: linear-gradient(135deg, #a3271a, var(--c-verm) 55%, #8e2114);
  border: 1px solid rgba(217, 178, 94, 0.6);
  box-shadow: 0 10px 26px rgba(181, 48, 28, 0.26);
}

.r-cta__btn--chat {
  color: var(--c-ink);
  background: linear-gradient(135deg, #fdf7e8, #f2e7c8);
  border: 1px solid rgba(176, 138, 46, 0.55);
  box-shadow: 0 10px 26px rgba(176, 138, 46, 0.18);
}

.r-cta__btn--gokito {
  color: #f2ede3;
  background: linear-gradient(135deg, #35604a, #274a37 55%, #1d3a2a);
  border: 1px solid rgba(217, 178, 94, 0.55);
  box-shadow: 0 10px 26px rgba(31, 66, 48, 0.28);
}

.r-cta__btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

.r-again {
  display: block;
  width: fit-content;
  margin: 34px auto 0;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--c-ink-soft);
  border-bottom: 1px solid rgba(176, 138, 46, 0.5);
  padding-bottom: 3px;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-mincho);
}

.r-again:hover { color: var(--c-verm); }

/* ---------- 霊視占い：ハート ---------- */

.reishi-heart {
  position: relative;
  width: 210px;
  height: 190px;
  cursor: pointer;
  filter: drop-shadow(0 18px 34px rgba(181, 48, 28, 0.3));
  transition: transform 0.4s ease;
}

.reishi-heart:hover { transform: scale(1.05); }

.reishi-heart svg { width: 100%; height: 100%; overflow: visible; }

.reishi-heart .heart-body {
  animation: heartBeat 1.8s ease-in-out infinite;
  transform-origin: 50% 55%;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.06); }
  24% { transform: scale(0.99); }
  36% { transform: scale(1.04); }
  48% { transform: scale(1); }
}

/* 霊視中：光を帯びる */
.reishi-heart.is-charging .heart-body {
  animation: heartCharge 1.1s ease-in-out infinite;
}

@keyframes heartCharge {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 214, 140, 0.5)); }
  50% { filter: drop-shadow(0 0 26px rgba(255, 214, 140, 0.95)); }
}

/* ヒビ線（未使用・非表示） */
.reishi-heart .heart-crack { opacity: 0; }

/* 光りながら大きくなり、静かに消えていく */
.reishi-heart.is-ascend {
  pointer-events: none;
  animation: heartAscend 1.8s cubic-bezier(0.35, 0, 0.55, 1) forwards;
}

.reishi-heart.is-ascend .heart-body {
  animation: heartCharge 0.7s ease-in-out infinite;
}

@keyframes heartAscend {
  0% { opacity: 1; transform: scale(1); }
  55% { opacity: 0.95; }
  100% { opacity: 0; transform: scale(3.8) translateY(-6px); }
}

/* 結果ページ：ふわふわ浮かぶハートたち */
.float-hearts {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.float-hearts i {
  position: absolute;
  bottom: -60px;
  display: block;
  opacity: 0;
  animation: floatUp var(--dur) linear var(--delay) infinite;
  filter: drop-shadow(0 4px 10px rgba(204, 58, 72, 0.15));
}

.float-hearts svg { width: 100%; height: 100%; display: block; }

@keyframes floatUp {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  8% { opacity: var(--op); }
  85% { opacity: var(--op); }
  100% { transform: translate(var(--sway), -115vh) rotate(var(--rot)); opacity: 0; }
}

.f-result { position: relative; z-index: 2; }

/* 白いフラッシュ */
.flash {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: #fffdf6;
  opacity: 0;
  pointer-events: none;
}

.flash.is-on { animation: flashOn 1.5s ease forwards; }

@keyframes flashOn {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

/* 霊視ゲージ */
.reishi-gauge {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 18px 26px 26px;
  background: linear-gradient(to top, rgba(250, 249, 245, 0.96), rgba(250, 249, 245, 0));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.reishi-gauge.is-show { opacity: 1; visibility: visible; }

.reishi-gauge__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: 640px;
  margin: 0 auto 10px;
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  color: var(--c-ink-soft);
}

.reishi-gauge__percent {
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--c-gold);
}

.reishi-gauge__track {
  max-width: 640px;
  margin: 0 auto;
  height: 8px;
  background: rgba(42, 49, 64, 0.12);
  border-radius: 99px;
  overflow: hidden;
}

.reishi-gauge__bar {
  width: 0%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #e9cf8e, #d9b25e 40%, #f6e3ac 70%, #caa245);
  box-shadow: 0 0 16px rgba(217, 178, 94, 0.85), 0 0 4px rgba(217, 178, 94, 0.9);
  transition: width 0.25s linear;
}

/* ---------- おみくじ ---------- */

.omikuji-box {
  position: relative;
  width: 150px;
  height: 230px;
  margin: 0 auto;
  background:
    repeating-linear-gradient(90deg, rgba(60, 34, 12, 0.12) 0 2px, transparent 2px 26px),
    linear-gradient(105deg, #8a5a2c 0%, #a9743c 45%, #7c4f24 100%);
  border-radius: 10px 10px 14px 14px;
  box-shadow:
    inset 0 -14px 26px rgba(40, 20, 4, 0.35),
    inset 0 4px 10px rgba(255, 230, 180, 0.25),
    0 22px 44px rgba(42, 49, 64, 0.28);
}

.omikuji-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 12px;
  background: #2c1c0c;
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.6);
}

.omikuji-box__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  writing-mode: vertical-rl;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: #fff4dc;
  background: rgba(125, 27, 16, 0.92);
  padding: 18px 8px;
  border: 1px solid rgba(217, 178, 94, 0.7);
}

.omikuji-box.is-shaking { animation: boxShake 1.1s ease-in-out 2; }

@keyframes boxShake {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-7deg) translateY(-6px); }
  30% { transform: rotate(6deg); }
  45% { transform: rotate(-5deg) translateY(-4px); }
  60% { transform: rotate(4deg); }
  80% { transform: rotate(-2deg); }
}

.omikuji-stick {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translate(-50%, 10px);
  width: 16px;
  height: 92px;
  background: linear-gradient(180deg, #e8cf9c, #cfa96a);
  border: 1px solid rgba(90, 60, 20, 0.5);
  border-radius: 8px 8px 3px 3px;
  opacity: 0;
  z-index: -1;
}

.omikuji-box.is-drawn .omikuji-stick {
  animation: stickOut 1.2s cubic-bezier(0.2, 0.9, 0.3, 1.15) 0.15s forwards;
}

@keyframes stickOut {
  0% { opacity: 0; transform: translate(-50%, 10px); }
  30% { opacity: 1; }
  100% { opacity: 1; transform: translate(-50%, -78px); }
}

.omikuji-stick span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
  font-size: 0.6rem;
  color: #6a3f12;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

/* 和紙のおみくじ */
.omikuji-paper {
  display: none;
  position: relative;
  max-width: 400px;
  margin: 54px auto 0;
  padding: 44px 34px 40px;
  background:
    repeating-linear-gradient(0deg, rgba(180, 160, 120, 0.06) 0 1px, transparent 1px 3px),
    linear-gradient(175deg, #fffdf6 0%, #faf5e6 70%, #f1ead6 100%);
  border: 1px solid rgba(176, 138, 46, 0.4);
  box-shadow: 0 24px 50px rgba(42, 49, 64, 0.16);
  transform-origin: top center;
}

.omikuji-paper.is-open {
  display: block;
  animation: paperOpen 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes paperOpen {
  0% { transform: scaleY(0.05); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: scaleY(1); opacity: 1; }
}

.omikuji-paper::before,
.omikuji-paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(176, 138, 46, 0.25) 12px 13px);
}

.omikuji-paper::before { top: 8px; }
.omikuji-paper::after { bottom: 8px; }

.omikuji-paper__title {
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--c-ink-soft);
  text-align: center;
}

.omikuji-paper__rank {
  margin: 18px auto 6px;
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: var(--c-verm);
  text-shadow: 0 2px 0 rgba(217, 178, 94, 0.35);
}

.omikuji-paper__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--c-ink-soft);
  margin-bottom: 22px;
}

.omikuji-paper__verse {
  font-size: 0.92rem;
  line-height: 2.2;
  color: var(--c-ink);
  padding: 18px 6px;
  border-top: 1px solid rgba(176, 138, 46, 0.4);
  border-bottom: 1px solid rgba(176, 138, 46, 0.4);
}

.omikuji-paper__guides { margin-top: 20px; }

.omikuji-paper__guide {
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  line-height: 1.9;
  margin-bottom: 6px;
}

.omikuji-paper__guide b {
  flex-shrink: 0;
  color: var(--c-verm);
  font-weight: 600;
}

/* ---------- タロット ---------- */

.tarot-field {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 56px));
  gap: 10px;
  justify-content: center;
  max-width: 780px;
  margin: 0 auto;
}

.tarot-card {
  aspect-ratio: 3 / 5;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  background:
    radial-gradient(circle at 50% 42%, rgba(217, 178, 94, 0.4) 0 6%, transparent 32%),
    radial-gradient(circle at 50% 42%, transparent 12%, rgba(217, 178, 94, 0.24) 13% 14%, transparent 15%),
    linear-gradient(150deg, #232c4e 0%, #1a2240 55%, #131a33 100%);
  border: 1px solid rgba(217, 178, 94, 0.5);
  box-shadow: 0 6px 16px rgba(20, 26, 48, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tarot-card::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(217, 178, 94, 0.35);
  border-radius: 4px;
}

.tarot-card:hover { transform: translateY(-8px); }

.tarot-card.is-selected {
  transform: translateY(-14px) scale(1.06);
  box-shadow:
    0 18px 30px rgba(20, 26, 48, 0.4),
    0 0 0 2px var(--c-gold-light),
    0 0 24px rgba(217, 178, 94, 0.65);
}

.tarot-actions { margin-top: 40px; text-align: center; }

.tarot-count {
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  color: var(--c-ink-soft);
  margin-bottom: 18px;
}

.tarot-confirm {
  display: none;
  margin: 0 auto;
  padding: 15px 46px;
  font-family: var(--font-mincho);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: #fff8ec;
  background: linear-gradient(135deg, #a3271a, var(--c-verm) 55%, #8e2114);
  border: 1px solid rgba(217, 178, 94, 0.6);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(181, 48, 28, 0.28);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.tarot-confirm.is-show { display: inline-block; }
.tarot-confirm:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* めくり演出 */
.tarot-reveal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 26px;
  background: rgba(247, 244, 238, 0.96);
  padding: 30px 22px;
  text-align: center;
}

.tarot-reveal.is-show { display: flex; }

.tarot-reveal__flip {
  width: min(240px, 52vw);
  aspect-ratio: 3 / 5;
  perspective: 1200px;
}

.tarot-reveal__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1.4s cubic-bezier(0.3, 0, 0.25, 1);
}

.tarot-reveal__flip.is-flipped .tarot-reveal__inner { transform: rotateY(180deg); }

.tarot-reveal__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(176, 138, 46, 0.6);
  box-shadow: 0 24px 50px rgba(42, 49, 64, 0.3);
}

.tarot-reveal__face--back {
  background:
    radial-gradient(circle at 50% 42%, rgba(217, 178, 94, 0.4) 0 6%, transparent 32%),
    linear-gradient(150deg, #232c4e, #131a33);
}

.tarot-reveal__face--front {
  transform: rotateY(180deg);
  background: #fff;
}

.tarot-reveal__face--front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tarot-reveal__label {
  font-size: 0.75rem;
  letter-spacing: 0.34em;
  color: var(--c-ink-soft);
}

.tarot-reveal__name {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--c-ink);
  opacity: 0;
  transition: opacity 0.8s ease 0.2s;
}

.tarot-reveal__meaning {
  max-width: 560px;
  font-size: 0.88rem;
  line-height: 2;
  color: rgba(42, 49, 64, 0.85);
  opacity: 0;
  transition: opacity 0.8s ease 0.45s;
}

.tarot-reveal.is-revealed .tarot-reveal__name,
.tarot-reveal.is-revealed .tarot-reveal__meaning { opacity: 1; }

.tarot-reveal__next {
  margin-top: 4px;
  padding: 12px 40px;
  font-family: var(--font-mincho);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--c-ink);
  background: linear-gradient(135deg, #fdf7e8, #f2e7c8);
  border: 1px solid rgba(176, 138, 46, 0.55);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.8s ease 0.7s, transform 0.3s ease;
}

.tarot-reveal.is-revealed .tarot-reveal__next { opacity: 1; }
.tarot-reveal__next:hover { transform: translateY(-2px); }

/* 結果内のカード表示 */
.r-cards {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-bottom: 30px;
}

.r-cards figure {
  width: min(180px, 38vw);
  text-align: center;
}

.r-cards img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(176, 138, 46, 0.5);
  box-shadow: 0 14px 30px rgba(42, 49, 64, 0.18);
}

.r-cards figcaption {
  margin-top: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--c-ink);
}

/* ---------- 星座占い ---------- */

body.seiza-page {
  background: #070b18;
  overflow: hidden;
}

#skyCanvas {
  position: fixed;
  inset: 0;
  cursor: grab;
  touch-action: none;
}

#skyCanvas.is-dragging { cursor: grabbing; }

.seiza-header {
  background: linear-gradient(to bottom, rgba(7, 11, 24, 0.85), rgba(7, 11, 24, 0));
}

.seiza-header .f-header__logo-main { color: #f2ede3; }
.seiza-header .f-header__back { color: rgba(242, 237, 227, 0.75); }
.seiza-header .f-header__back:hover { color: var(--c-gold-light); }

.seiza-hint {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: rgba(242, 237, 227, 0.6);
  pointer-events: none;
}

.seiza-start {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  padding: 18px 52px;
  font-family: var(--font-mincho);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: #f6e7bf;
  background: rgba(13, 20, 40, 0.55);
  border: 1px solid rgba(217, 178, 94, 0.75);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 34px rgba(217, 178, 94, 0.3), inset 0 0 18px rgba(217, 178, 94, 0.12);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.seiza-start:hover {
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow: 0 0 50px rgba(217, 178, 94, 0.5), inset 0 0 22px rgba(217, 178, 94, 0.2);
}

/* 星座ページの入力モーダル */
.seiza-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 11, 24, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
}

.seiza-modal.is-show { display: flex; }

.seiza-modal .f-form {
  width: min(520px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
}

.seiza-modal__close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: rgba(242, 237, 227, 0.8);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  font-family: var(--font-mincho);
}

/* 星座ページの結果（夜空の上に和紙パネル） */
.seiza-result {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  overflow-y: auto;
  padding: 60px 20px 80px;
  background: rgba(7, 11, 24, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.seiza-result.is-show { display: block; }

.seiza-result__panel {
  max-width: 720px;
  margin: 0 auto;
  background: var(--c-base);
  padding: 50px 34px 60px;
  border: 1px solid rgba(217, 178, 94, 0.5);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: resultIn 1.4s ease both;
}

/* ============================================================
   メニューページ（電話占い・チャット占い・ご祈祷）
   ============================================================ */

.m-menu {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px 100px;
}

.m-menu__note {
  text-align: center;
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  color: var(--c-ink-soft);
  margin-bottom: 46px;
}

/* 電話・チャット：横並び */
.m-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: clamp(10px, 3vw, 44px);
}

/* ご祈祷：横に最大5列のグリッド */
.m-grid--five {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 34px 8px;
  justify-items: center;
}

.m-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: 230px;
  padding: 28px 14px 24px;
  background: linear-gradient(170deg, #fffdf7 0%, #faf6ec 60%, #f3eee0 100%);
  border: 1px solid rgba(176, 138, 46, 0.4);
  box-shadow: 0 14px 32px rgba(42, 49, 64, 0.09);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s ease, transform 1.1s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.m-item::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(176, 138, 46, 0.22);
  pointer-events: none;
}

.m-item.is-visible { opacity: 1; transform: translateY(0); }

.m-item:hover,
.m-item:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(176, 138, 46, 0.8);
  box-shadow: 0 24px 46px rgba(42, 49, 64, 0.16), 0 0 22px rgba(217, 178, 94, 0.25);
}

.m-item__label {
  min-height: 3em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: var(--c-verm);
  font-weight: 600;
}

.m-item__name {
  writing-mode: vertical-rl;
  height: auto;
  min-height: 9.6em;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 2;
  color: var(--c-ink);
  transition: color 0.4s ease;
}

/* ご祈祷は名称が長いため高さを確保 */
.m-grid--five .m-item__name {
  min-height: 13em;
  letter-spacing: 0.14em;
  font-size: clamp(0.94rem, 1.4vw, 1.05rem);
}

.m-item:hover .m-item__name,
.m-item:focus-visible .m-item__name { color: var(--c-verm); }

/* 購入ボタン */
.m-item__go {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: #fff8ec;
  background: linear-gradient(135deg, #a3271a 0%, var(--c-verm) 55%, #8e2114 100%);
  border: 1px solid rgba(217, 178, 94, 0.6);
  border-radius: 999px;
  padding: 12px 10px;
  box-shadow: 0 8px 20px rgba(181, 48, 28, 0.28);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.m-item:hover .m-item__go {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 768px) {
  .m-grid--five { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
  .m-item { padding: 22px 8px 18px; gap: 14px; }
  .m-item__name { min-height: 9em; }
  .m-grid--five .m-item__name { min-height: 12em; }
  .m-item__label { font-size: 0.62rem; min-height: 2.8em; }
  .m-item__go { font-size: 0.7rem; padding: 10px 6px; }

  .f-hero { padding: 120px 20px 50px; }
  .f-form { padding: 36px 24px 36px; }
  .f-form-wrap { padding: 6px 18px 70px; }

  .r-section { padding: 30px 22px 26px; }
  .f-result { padding: 110px 18px 70px; }

  .tarot-field {
    grid-template-columns: repeat(6, minmax(0, 50px));
    gap: 8px;
  }

  .r-cards { gap: 14px; }

  .reishi-heart { width: 170px; height: 154px; }

  .omikuji-paper { margin-top: 44px; }
}
