/* ===================================
   ataru-uranai タロットツール共通CSS v2
   淡ラベンダー×ピンク・女性向け
   =================================== */

/* ── リセット：SWELLテーマのH2装飾を完全に打ち消す ── */
.post_content h2.au-hdr-ttl,
.au-wrap h2.au-hdr-ttl,
h2.au-hdr-ttl {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  padding: 0 !important;
  margin: 0 0 10px !important;
  color: #4A3F6B !important;
  font-size: 22px !important;
  line-height: 1.5 !important;
  text-align: center !important;
  position: relative !important;
  box-shadow: none !important;
}

.post_content h2.au-hdr-ttl::before,
.post_content h2.au-hdr-ttl::after,
.au-wrap h2.au-hdr-ttl::before,
.au-wrap h2.au-hdr-ttl::after,
h2.au-hdr-ttl::before,
h2.au-hdr-ttl::after {
  display: none !important;
  content: none !important;
  border: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ── 全体ラップ ── */
.au-wrap {
  max-width: 100%;
  margin: 0 auto;
  font-family: 'Noto Sans JP', sans-serif;
  color: #4A3F6B;
  line-height: 1.8;
}

/* ── ヘッダー ── */
.au-hdr {
  text-align: center;
  padding: 32px 20px 24px;
  background: #FAF7FF;
}

.au-hdr-badge {
  display: inline-block;
  background: linear-gradient(135deg, #F48FB1, #CE93D8);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: .06em;
}

.au-hdr-sub {
  font-size: 13px;
  color: #9E8EC0;
  line-height: 1.7;
}

/* ── ステップ（ドット型） ── */
.au-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}

.au-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E8DEF8;
  transition: all .3s;
}

.au-step-dot.active {
  width: 28px;
  border-radius: 5px;
  background: linear-gradient(135deg, #B39DDB, #F48FB1);
}

.au-step-dot.done {
  background: #CE93D8;
}

/* ── プログレスバー ── */
.au-prog {
  padding: 10px 20px;
  background: #FAF7FF;
}

.au-prog-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #B39DDB;
  font-weight: 600;
  margin-bottom: 5px;
}

.au-prog-bg {
  background: #EDE7F6;
  border-radius: 3px;
  height: 4px;
  overflow: hidden;
}

.au-prog-fill {
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, #B39DDB, #F48FB1);
  transition: width .5s ease;
}

/* ── フェーズ切り替え ── */
.au-phase { display: none; }
.au-phase.active { display: block; animation: auFadeUp .5s ease; }

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

/* ── カード面（白背景） ── */
.au-card {
  background: #fff;
  padding: 28px 20px;
}

/* ── フォーカスステップ ── */
.au-focus-icon {
  text-align: center;
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  animation: auFloat 3s ease-in-out infinite;
}

@keyframes auFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.au-msg {
  text-align: center;
  font-size: 14px;
  color: #7E6FAD;
  line-height: 1.9;
  margin: 12px 0;
}

.au-focus-input {
  margin-bottom: 20px;
}

.au-focus-input label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #B39DDB;
  margin-bottom: 6px;
}

.au-focus-input textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #EDE7F6;
  border-radius: 8px;
  background: #FDFBFF;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: #4A3F6B;
  resize: none;
  transition: border-color .3s;
  line-height: 1.6;
}

.au-focus-input textarea:focus {
  outline: none;
  border-color: #CE93D8;
  background: #fff;
}

.au-focus-input textarea::placeholder { color: #D0C4E8; }

/* ── ボタン ── */
.au-btn {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 16px auto 0;
  padding: 14px 24px;
  background: linear-gradient(135deg, #B39DDB, #CE93D8);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all .25s;
  letter-spacing: .04em;
  box-shadow: 0 4px 16px rgba(179,157,219,0.3);
}

.au-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(179,157,219,0.45);
}

/* ── シャッフル演出エリア ── */
.au-shuffle-area {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 320px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}

.au-shuffle-card {
  position: absolute;
  width: 52px;
  height: 78px;
  border-radius: 6px;
  background: linear-gradient(135deg, #5C3D99, #7E57C2);
  border: 1.5px solid #B39DDB;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: all .6s cubic-bezier(.25,.46,.45,.94);
}

.au-shuffle-card::after {
  content: '✦';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(244,143,177,.35);
}

.au-shuffle-card.scattering {
  transition: all .8s cubic-bezier(.34,1.56,.64,1);
}

.au-shuffle-status {
  font-weight: 500;
}

/* ── カード選択：グリッド配置 ── */
.au-card-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
  padding: 20px 12px;
  max-width: 600px;
  margin: 0 auto;
}

.au-grid-card {
  aspect-ratio: 2/3;
  border-radius: 6px;
  cursor: pointer;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  position: relative;
  transform-style: preserve-3d;
  background: linear-gradient(135deg, #5C3D99, #7E57C2);
  border: 1.5px solid #B39DDB;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  overflow: hidden;
}

.au-grid-card::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(244,143,177,.2);
  border-radius: 4px;
  pointer-events: none;
}

.au-grid-card::after {
  content: '✦';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(244,143,177,.35);
  pointer-events: none;
}

.au-grid-card:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 8px 24px rgba(126,87,194,.35);
  border-color: #F48FB1;
}

.au-grid-card.picked {
  transform: scale(1.15);
  border-color: #F48FB1;
  box-shadow: 0 0 20px rgba(244,143,177,.5);
  z-index: 10;
}

.au-grid-card.dimmed {
  opacity: .25;
  pointer-events: none;
  transform: scale(.95);
}

.au-grid-hint {
  text-align: center;
  font-size: 13px;
  color: #B39DDB;
  margin: 16px 0 4px;
  font-weight: 500;
}

/* ── フリップ演出用（選択後） ── */
.au-flip-area {
  display: flex;
  justify-content: center;
  padding: 30px 0;
}

.au-flip-card {
  width: 140px;
  height: 224px;
  perspective: 800px;
  cursor: pointer;
}

.au-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.4,.0,.2,1);
}

.au-flip-card.flipped .au-flip-inner {
  transform: rotateY(180deg);
}

.au-flip-back,
.au-flip-face {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  backface-visibility: hidden;
  overflow: hidden;
}

.au-flip-back {
  background: linear-gradient(135deg, #5C3D99, #7E57C2);
  border: 2px solid #B39DDB;
  display: flex;
  align-items: center;
  justify-content: center;
}

.au-flip-back::after {
  content: '✦';
  font-size: 36px;
  color: rgba(244,143,177,.4);
}

.au-flip-face {
  transform: rotateY(180deg);
  border: 2px solid #CE93D8;
  background: #fff;
}

.au-flip-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.au-flip-msg {
  text-align: center;
  font-size: 13px;
  color: #B39DDB;
  margin-top: 12px;
  animation: auFloat 2s ease-in-out infinite;
}

/* ── 結果画面 ── */
.au-result-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  box-shadow: 0 4px 16px rgba(179,157,219,0.2);
  margin-bottom: 20px;
}

/* ── 結果：カード大表示 ── */
.au-reveal-card {
  width: 160px;
  height: 256px;
  margin: 0 auto 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #CE93D8;
  box-shadow: 0 4px 20px rgba(179,157,219,.3);
}

.au-reveal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── 位置バッジ ── */
.au-position-badge {
  text-align: center;
  margin: 12px 0;
}

.au-position-badge span {
  display: inline-block;
  padding: 5px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.au-position-badge .upright {
  background: #EDE7F6;
  color: #7E57C2;
}

.au-position-badge .reversed {
  background: #FCE4EC;
  color: #E91E63;
}

/* ── 結果タイトル ── */
.au-result-title {
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  color: #4A3F6B;
  margin: 8px 0;
  line-height: 1.5;
}

.au-summary-badge {
  text-align: center;
  margin: 0 0 20px;
}

.au-summary-text {
  display: inline-block;
  background: linear-gradient(135deg, #B39DDB 0%, #F48FB1 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
}

/* ── スコア ── */
.au-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.au-score-item {
  background: #FAF7FF;
  border-radius: 10px;
  padding: 14px;
}

.au-score-label {
  font-size: 11px;
  color: #B0A0CC;
  margin-bottom: 6px;
}

.au-score-bar {
  background: #EDE7F6;
  border-radius: 3px;
  height: 6px;
  margin-bottom: 6px;
  overflow: hidden;
}

.au-score-fill {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #B39DDB, #F48FB1);
  transition: width 1.2s ease;
}

.au-score-val {
  font-size: 18px;
  font-weight: 700;
  color: #7E57C2;
}

.au-score-unit {
  font-size: 11px;
  font-weight: 400;
  color: #C5B8E0;
}

/* ── セクションタイトル ── */
.au-sec-ttl {
  font-size: 13px;
  font-weight: 700;
  color: #B39DDB;
  margin: 20px 0 10px;
  padding-left: 10px;
  border-left: 3px solid #CE93D8;
}

.au-reading {
  font-size: 14px;
  color: #4A3F6B;
  line-height: 2;
}

.au-reading p { margin: 0 0 16px; }

/* ── アコーディオン ── */
.au-accordion { margin-top: 20px; }

.au-accordion-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: #FAF7FF;
  border: 1px solid #EDE7F6;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #B39DDB;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all .25s;
  text-align: center;
}

.au-accordion-btn:hover { background: #EDE7F6; }

.au-accordion-body { overflow: hidden; transition: max-height .5s ease; }
.au-detail-section { padding: 16px 0 4px; }

.au-detail-ttl {
  font-size: 13px;
  font-weight: 700;
  color: #9575CD;
  margin: 14px 0 6px;
  padding-left: 10px;
  border-left: 3px solid #E0D6F0;
}

.au-detail-ttl:first-child { margin-top: 0; }

.au-detail-text {
  font-size: 13px;
  color: #5A4F7B;
  line-height: 1.9;
  margin: 0 0 4px;
}

/* ── シェア ── */
.au-share { text-align: center; margin: 24px 0 16px; }

.au-share-ttl {
  font-size: 12px;
  color: #B0A0CC;
  margin-bottom: 10px;
}

.au-share-btns {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.au-sbtn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
}

.au-sbtn-tw { background: #1DA1F2; color: #fff; }
.au-sbtn-ln { background: #06C755; color: #fff; }
.au-sbtn:hover { opacity: .85; }

/* ── リトライ ── */
.au-retry {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 12px auto 0;
  padding: 10px 20px;
  background: transparent;
  color: #B39DDB;
  border: 1px solid #EDE7F6;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all .2s;
}

.au-retry:hover { background: #FAF7FF; border-color: #CE93D8; }

/* ── レスポンシブ ── */
@media (max-width: 480px) {
  .au-card-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 16px 8px;
  }
  .au-grid-card::after { font-size: 8px; }
  .au-flip-card { width: 120px; height: 192px; }
  .au-reveal-card { width: 130px; height: 208px; }
  .au-scores { grid-template-columns: 1fr; }
  .au-hdr-ttl { font-size: 19px !important; }
}
