.elementor-981 .elementor-element.elementor-element-399364b{--display:flex;}.elementor-981 .elementor-element.elementor-element-9bf5121{--display:flex;}/* Start custom CSS *//* ==============================
   1. 背景・全体
============================== */

body {
  background-image: url("https://tm-meguri.com/wp-content/uploads/2026/05/ChatGPT-Image-2026年5月19日-13_34_31.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    rgba(20,10,35,0.55),
    rgba(20,10,35,0.5)
  );
  z-index: -1;
}

.fortune-mypage {
opacity: 0;
  max-width: 780px;
  margin: 0 auto;
}


/* ==============================
   2. タイトル
============================== */

.mypage-title-image {
  text-align: center;
  margin: 0 auto 24px;
}

.mypage-title-image img {
  width: auto;
  height: 250px;
  margin: 0 auto -20px;
}


/* ==============================
   3. 上部ステータス
============================== */

.summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 34px;
  padding-bottom: 26px;
}

.summary-card,
.point-box {
  min-width: 0;
  text-align: center;
}

.summary-title,
.point-label {
  color: #d4af37;
  font-size: 20px;
}

.summary-main {
  font-size: 30px;
  color: #fff;
}

.summary-sub {
  font-size: 20px;
  color: #fff;
}

#pointBalance {
  font-size: 22px;
  font-weight: 700;
  color: #f6d878;
}


/* ==============================
   4. 設定ボタン
============================== */

#settingsBtn {
  position: fixed;
  top: 60px;
  left: calc(50% + 390px - 72px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,.6);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

#settingsBtn span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #f6d878;
}


/* ==============================
   5. 共通カード
============================== */

.mypage-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 34px;
  text-align: center;
}

.user-panel {
  display: none;
}

.section-label {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /*c
  olor: #d58caf;*/
  color: #f7d774;

  text-shadow:
    0 0 8px rgba(247,215,116,.25),
    0 1px 2px rgba(0,0,0,.25);
}

.mypage-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
  color: #ffffff;
  letter-spacing: 0.05em;
}
.mypage-card p {
    color: #ffffff;
}
/* ==============================
   6. 会員プラン
============================== */
.plan-guide-card {
  position: relative;
  overflow: hidden;

  max-width: 680px;
  margin: 50px auto 42px;
  padding: 26px 22px;

  border-radius: 24px;

  /*background: rgba(255, 255, 255, 0.12);*/

  backdrop-filter: blur(1.7px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.25);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 0 30px rgba(255,255,255,.2),
    0 1px 8px rgba(190,135,165,.15);
}

.plan-guide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(
      circle at top left,
      rgba(255,255,255,.25),
      transparent 35%
    );
}

.plan-guide-card::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;

  width: 60%;
  height: 180%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,.05),
    transparent
  );

  transform: rotate(15deg);

  pointer-events: none;
}
.plan-guide-card h2,
#planGuideTitle {
  background: linear-gradient(
    180deg,
    #fff4c2 0%,
    #f7d774 25%,
    #d4a93a 60%,
    #fff0b0 100%
  );
    
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  font-weight: 700;

  text-shadow:
    0 1px 0 rgba(255,255,255,.25),
    0 0 12px rgba(247,215,116,.25);

text-shadow:
  0 0 8px rgba(183,148,244,.25),
  0 1px 2px rgba(0,0,0,.2);

}
.plan-guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 220px;
  padding: 13px 24px;

  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    #fff8d6 0%,
    #f7d774 30%,
    #d4a93a 65%,
    #fff0b0 100%
  );

  color: #4a3210;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    0 0 18px rgba(247,215,116,.35),
    0 10px 22px rgba(212,169,58,.28);

  transition: all .25s ease;
}

.plan-guide-btn:hover {
  transform: translateY(-2px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 0 24px rgba(247,215,116,.45),
    0 14px 28px rgba(212,169,58,.35);
}
.plan-guide-text {
  color: rgba(255, 255, 255, 0.92);

  text-shadow:
    0 0 8px rgba(255,255,255,.15),
    0 1px 2px rgba(0,0,0,.2);
}

/* ==============================
   7. 占いカテゴリメニュー
============================== */

.tag-slider-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.tag-slider-wrap::before,
.tag-slider-wrap::after {
  display: none;
}

.fortune-mypage .tag-list:active {
  cursor: default;
}
.fortune-mypage .tag-btn {
    
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 1 140px !important;
  border: 1px solid rgba(180, 220, 255, 0.26);
  background: rgba(170, 210, 255, 0.10);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  color: #f7d774;
  text-decoration: none;
  white-space: nowrap;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 8px 20px rgba(40,80,140,.14);

  transition:
    transform .22s ease,
    box-shadow .22s ease,
    background .22s ease;
    
  width: calc(33.333% - 12px) ;
  height: 100px;
  min-width: 0 ;

  padding: 11px 8px;

  border-radius: 9px;

  text-align: center;
  white-space: nowrap;

  font-size: 13px;
  font-weight: 700;
}

.fortune-mypage .tag-btn:hover {
  transform: translateY(-2px);

  background: rgba(180,220,255,.16);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    0 0 18px rgba(120,180,255,.22),
    0 12px 26px rgba(40,80,140,.2);
}

.tag-slider-arrow {
  display: none !important;
}


.fortune-mypage .tag-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.fortune-mypage .tag-btn {
  width: 100% !important;
  min-width: 0 !important;
}
/* ==============================
   8. 占いカード一覧
============================== */

.fortune-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fortune-item {
  position: relative;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #f1dde7;
  color: #3a2b33;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(190, 135, 165, 0.12);
  transition: 0.25s ease;
}

.fortune-item::before {
  content: "✦";
  position: absolute;
  top: 10px;
  left: 14px;
  color: #d58caf;
  font-size: 12px;
}

.fortune-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(190, 135, 165, 0.18);
}

.special .fortune-item {
  background: linear-gradient(135deg, #fffaf2, #fff4fa);
}

.special .fortune-item span {
  display: block;
  color: #d76fa3;
  font-size: 13px;
  font-weight: 700;
}

.price-note {
  margin: -6px 0 22px;
  color: #8a707b;
  font-size: 13px;
}
/* ==============================
   9. 鑑定履歴
============================== */

.history-section {
  margin-top: 24px;
}

.history-section h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #3a2b33;
}
.history-toggle-btn {
  display: block;
  margin: 0 auto;

  width: 60%;
  padding: 14px 18px;

  background: rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;

  color: #f7d774;

  font-size: 16px;
  font-weight: 700;
  cursor: pointer;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 10px 24px rgba(0,0,0,.15);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease,
    color .25s ease;
}
.history-toggle-btn:hover {
  color: #f7d774 !important;
  background: rgba(255,255,255,.18) !important;
  border: 1px solid rgba(255,255,255,.25) !important;

  transform: translateY(-3px) scale(1.02);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 0 18px rgba(247,215,116,.25),
    0 14px 30px rgba(0,0,0,.22);
}

.history-toggle-btn:active {
  transform: translateY(-1px) scale(0.99);
}

.history-toggle-btn:focus,
.history-toggle-btn:focus-visible {
  outline: none;
  background: rgba(255,255,255,.12) !important;
  color: #f7d774 !important;
}
.history-panel {
  margin-top: 12px;
  padding: 12px;

  border-radius: 8px;

  background: rgba(255,255,255,.08);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,.18);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 0 20px rgba(255,255,255,.05),
    0 12px 28px rgba(0,0,0,.18);
}

#resultHistoryList {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}

.history-card-wrap {
  position: relative;
  border-bottom: 1px solid rgba(180, 120, 160, 0.25);
}

.history-card {
  display: block;
  padding: 12px 10px;
  padding-right: 60px;
  text-decoration: none;
  color: rgba(255,255,255,.92);
  transition: .25s ease;
}
.history-card:hover {
  transform: translateY(-3px);

  background: rgba(255,255,255,.15);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 18px 34px rgba(0,0,0,.2);
}
.history-card strong,
.history-title {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  color: #c084fc;
}
.history-card span,
.history-date,
.history-preview,
.history-profile,
.history-birth,
.history-place {

  color: rgba(255,255,255,.82);
}

.history-card span,
.history-date,
.history-preview {
  font-size: 12px;
}

.history-date {
  display: block;
  margin-bottom: 4px;
}

.history-preview {
  margin-top: 8px;
  line-height: 1.7;
}

.history-profile {
  margin-top: 6px;
  font-size: 13px;
}

.history-birth,
.history-place {
  margin-top: 3px;
  font-size: 12px;
}

.history-delete-btn {
  position: absolute;
  right: 8px;
  top: 12px;
  padding: 5px 9px;
  border: none;
  border-radius: 999px;
  background: rgba(160, 60, 80, 0.12);
  color: #9b2f4d;
  font-size: 12px;
  cursor: pointer;
}

.history-delete-btn:hover {
  background: rgba(160, 60, 80, 0.22);
}

.history-favorite-btn {
  position: absolute;
  right: 52px;
  top: 10px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: #c5a8b8;
  cursor: pointer;
}

.history-favorite-btn.active {
  color: #ffcc55;
  text-shadow: 0 0 8px rgba(255, 220, 120, 0.7);
}

.history-line-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #06c755;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ==============================
   10. 設定メニュー
============================== */

.settings-menu {
  position: fixed;
  top: 128px;
  left: calc(50% + 390px - 280px);
  width: 280px;
  max-height: 70vh;
  overflow-y: auto;
  display: none;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(212,175,55,.35);
  background: rgba(18, 12, 34, .58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0,0,0,.35);
  z-index: 99999;
}

.settings-menu.open {
  display: block;
}

.settings-group-btn {
  width: 100%;
  margin-bottom: 8px;
  padding: 12px 13px;
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 8px;
  background: rgba(212,175,55,.16);
  color: #f6d878;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.settings-group-btn::after {
  content: "＋";
  float: right;
}

.settings-group-btn.open::after {
  content: "－";
}

.settings-submenu {
  display: none;
  margin: 0 0 10px 6px;
  padding-left: 8px;
  border-left: 1px solid rgba(212,175,55,.28);
}

.settings-submenu.open {
  display: block;
}

.settings-menu-item {
  width: 100%;
  margin-bottom: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(170,150,255,.25);
  border-radius: 8px;
  background: rgba(120,90,220,.16);
  color: #e8dcff;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.settings-menu-item:hover {
  background: rgba(150,120,255,.26);
}

.settings-menu-item.danger {
  border-color: rgba(255,120,150,.35);
  background: rgba(160,40,70,.18);
  color: #ffc4d0;
}

.settings-group-btn:hover,
.settings-group-btn:active,
.settings-group-btn:focus {
  background: rgba(212,175,55,.16);
  color: #f6d878;
  outline: none;
}

.settings-menu-item:hover,
.settings-menu-item:active,
.settings-menu-item:focus {
  background: rgba(120,90,220,.16);
  color: #e8dcff;
  outline: none;
}

.settings-menu-item.danger:hover,
.settings-menu-item.danger:active,
.settings-menu-item.danger:focus {
  background: rgba(160,40,70,.18);
  color: #ffc4d0;
}
.settings-group-btn,
.settings-menu-item {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  .settings-menu {
    left: auto;
    right: 12px;
    top: 70px;
    width: min(90vw, 280px);
  }
}

/* ==============================
   11. プロフィール編集
============================== */

.profile-manage-panel {
  margin-top: 18px;
}

.main-profile-card {
  margin-top: 12px;
}

.main-profile-view {
  margin: 12px 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 245, 250, 0.9);
  border: 1px solid rgba(210, 150, 190, 0.35);
}

.main-profile-summary p {
  margin: 6px 0;
  color: #5a2744;
  font-size: 14px;
}

.main-profile-edit-btn,
.main-profile-save-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7c6dc, #d9b3f0);
  color: #5a2744;
  font-weight: 700;
  cursor: pointer;
}

.main-profile-form-area {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
}

.main-profile-form-area label {
  display: block;
  margin-bottom: 12px;
  color: #5a2744;
  font-size: 13px;
  font-weight: 600;
}

.main-profile-form-area input,
.main-profile-form-area select {
  width: 100%;
  margin-top: 5px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(180, 120, 160, 0.35);
  background: rgba(255, 255, 255, 0.92);
}

.main-profile-message {
  margin-top: 10px;
  font-size: 13px;
  color: #8a3d65;
}
/* ==============================
   12. ポイント表示
============================== */

.point-box {
  min-width: 0;
  text-align: center;
}

.point-label {
  margin: 8px 0;
  color: #d4af37;
  font-size: 20px;
  line-height: 1.7;
}

.point-main {
  margin: 8px 0;
}

#pointBalance {
  font-size: 22px;
  font-weight: 700;
  color: #f6d878;
}

.point-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.point-actions button {
  padding: 6px 10px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f6d878;
  font-size: 12px;
  cursor: pointer;
}

.point-actions button:hover {
  background: rgba(212, 175, 55, 0.16);
}
/* ==============================
   13. 紹介・ポイント履歴モーダル
============================== */

.point-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 5, 18, 0.72);
  backdrop-filter: blur(7px);
  z-index: 2147483646;
}

.point-modal-inner {
  position: relative;
  width: min(92vw, 420px);
  max-height: 82vh;
  overflow-y: auto;
  padding: 28px 22px 30px;
  border-radius: 22px;
  border: 1px solid rgba(212, 175, 55, 0.65);
  background:
    radial-gradient(circle at top, rgba(112, 82, 170, 0.35), transparent 38%),
    linear-gradient(180deg, rgba(25, 18, 45, 0.98), rgba(10, 8, 22, 0.98));
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.point-modal-inner h3 {
  margin: 0 0 18px;
  font-size: 21px;
  color: #f3d98b;
  letter-spacing: 0.08em;
}

.point-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.point-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

#referralCodeText {
  display: inline-block;
  margin: 10px 0 16px;
  padding: 9px 16px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f6d878;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#referralCodeText:hover {
  transform: scale(1.03);
}

.referral-copy-guide {
  margin: 0 0 8px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  letter-spacing: .08em;
}

.referral-copy-guide::before {
  content: "📋 ";
}

.line-share-referral-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: #06c755;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.line-share-referral-btn:hover {
  opacity: 0.88;
}

#pointLogList {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  text-align: left;
}

#pointLogList li {
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.7;
}

#pointLogList li:last-child {
  border-bottom: none;
}
/* ==============================
   14. 今日の運勢タロット
============================== */

.summary-row-bottom {
  min-height: 200px;

  position: relative;
  overflow: hidden;

  border-radius: 12px;
  padding: 4px 20px;

  background-image: url("https://tm-meguri.com/wp-content/uploads/2026/06/%E3%82%BF%E3%83%AD%E3%83%83%E3%83%88%E5%8D%A0%E3%81%84%E7%94%A8.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 50px;
}

/*.summary-title-image {*/
/*  position: relative;*/
/*  z-index: 2;*/
/*  margin: -10px 0 0;*/
/*  line-height: 0;*/
/*  text-align: left;*/
/*}*/

/*.summary-title-image img {*/
/*  width: 270px;*/
/*  max-width: 100%;*/
/*  height: auto;*/
/*  display: inline-block;*/
/*}*/

/*.today-tarot-open-btn {*/
/*  margin-top: 90px;*/
/*  padding: 10px 18px;*/
/*  border: 2px solid rgba(212, 175, 55, 0.75);*/
/*  border-radius: 9px;*/
/*  background: linear-gradient(135deg, #4b3475, #1d1533);*/
/*  color: #fff;*/
/*  font-size: 14px;*/
/*  letter-spacing: 0.04em;*/
/*  cursor: pointer;*/
/*}*/
.today-tarot-open-btn {
  margin-top: 90px;
  padding: 10px 18px;

  border: 2px solid rgba(212, 175, 55, 0.75);
  border-radius: 9px;

  background: linear-gradient(
    135deg,
    #4b3475,
    #1d1533
  );

  color: #fff;

  font-size: 14px;
  letter-spacing: 0.04em;

  cursor: pointer;

  animation:
    tarotGlow 3s ease-in-out infinite;

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}
.today-tarot-open-btn:hover {
  transform:
    translateY(-3px)
    scale(1.03);

  box-shadow:
    0 0 18px rgba(212,175,55,.45),
    0 0 36px rgba(212,175,55,.25);
}


.today-tarot-open-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.today-tarot-modal {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 4, 16, 0.78);
  backdrop-filter: blur(8px);
  z-index: 2147483646 !important;
}

.today-tarot-modal.open {
  display: flex;
}

.today-tarot-modal-inner {
  position: relative;
  width: min(94vw, 520px);
  max-height: 86vh;
  overflow-y: auto;
  padding: 28px 22px 30px;
  border: 1px solid rgba(212, 175, 55, 0.65);
  background:
    radial-gradient(circle at top, rgba(112, 82, 170, 0.35), transparent 38%),
    linear-gradient(180deg, rgba(25, 18, 45, 0.98), rgba(10, 8, 22, 0.98));
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
  z-index: 2147483646 !important;
}

.today-tarot-modal-inner h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: #f3d98b;
}

.today-tarot-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

#todayTarotMessage {
  margin: 12px 0;
  color: #f3d98b;
  font-size: 14px;
}
/* ==============================
   15. タロットアニメーション本体
============================== */

.tarot-loading-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(120, 70, 180, 0.35), transparent 45%),
    rgba(8, 5, 18, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2147483647 !important;
}

.tarot-animation-area {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tarot-back-card {
  margin: 20px auto;
  width: 112px;
  height: 172px;
  border: 1px solid rgba(242, 215, 142, 0.9);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(242, 215, 142, 0.22), transparent 30%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 4px,
      transparent 4px,
      transparent 10px
    ),
    linear-gradient(160deg, #2c2052, #0f0b1f);
  box-shadow:
    0 0 22px rgba(212, 175, 55, 0.35),
    0 16px 30px rgba(0, 0, 0, 0.45);
  animation: tarotFloatFlip 1.25s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes tarotFloatFlip {
  0% {
    transform: translateY(0) rotateY(0deg) rotateZ(-2deg);
  }
  50% {
    transform: translateY(-12px) rotateY(180deg) rotateZ(2deg);
  }
  100% {
    transform: translateY(0) rotateY(360deg) rotateZ(-2deg);
  }
}

.tarot-loading-box {
  position: relative;
  width: min(92vw, 520px);
  height: 520px;
}

.tarot-flying-card,
.tarot-deck-card,
.tarot-animation-result-card {
  position: absolute;
  width: 74px;
  height: 116px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1b1638, #080713);
  border: 1px solid rgba(218, 180, 92, 0.9);
  box-shadow:
    0 0 12px rgba(218, 180, 92, 0.35),
    inset 0 0 12px rgba(218, 180, 92, 0.18);
}

.tarot-flying-card::before,
.tarot-deck-card::before {
  content: "✦";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(218, 180, 92, 0.55);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d8b45c;
  font-size: 24px;
}

.tarot-flying-card {
  left: 50%;
  top: 50%;
  opacity: 0;
  width: 90px;
  height: 150px;
  border-radius: 10px;
  background-image: url("/wp-content/themes/hello-elementor/images/tarot/99.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: tarotFlyMix 3.0s ease-in-out forwards;
}

@keyframes tarotFlyMix {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.5);
  }
  25% {
    opacity: 1;
    transform:
      translate(calc(-50% + var(--x1)), calc(-50% + var(--y1)))
      rotate(var(--r1))
      scale(1);
  }
  65% {
    opacity: 1;
    transform:
      translate(calc(-50% + var(--x2)), calc(-50% + var(--y2)))
      rotate(var(--r2))
      scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.7);
  }
}

.tarot-deck {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 90px;
  height: 130px;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: tarotDeckAppear 1s ease forwards;
  animation-delay: 2.7s;
}

.tarot-deck-card {
  left: 0;
  top: 0;
  background-image: url("/wp-content/themes/hello-elementor/images/tarot/99.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tarot-deck-card:nth-child(1) {
  transform: translate(0, 0) rotate(-2deg);
}

.tarot-deck-card:nth-child(2) {
  transform: translate(4px, 3px) rotate(1deg);
}

.tarot-deck-card:nth-child(3) {
  transform: translate(8px, 6px) rotate(3deg);
}

@keyframes tarotDeckAppear {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.tarot-animation-result-card {
  left: 50%;
  top: 45%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  width: 100px !important;
  height: 150px !important;
  border-radius: 12px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  perspective: 1000px;
  overflow: visible;
}

.tarot-animation-result-card::before {
  content: none !important;
  display: none !important;
}

.tarot-animation-result-card.card-1 {
  animation: tarotDrawCard1 1.1s ease forwards;
  animation-delay: 4.0s;
}

.tarot-animation-result-card.card-2 {
  animation: tarotDrawCard2 1.1s ease forwards;
  animation-delay: 5.1s;
}

.tarot-animation-result-card.card-3 {
  animation: tarotDrawCard3 1.1s ease forwards;
  animation-delay: 6.2s;
}

.tarot-animation-result-card.single-card {
  left: 50%;
  top: 50%;
  width: 100px !important;
  height: 150px !important;
  animation: tarotDrawSingleCard 1.1s ease forwards;
  animation-delay: 4.0s;
}

@keyframes tarotDrawCard1 {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
  }
  60% {
    opacity: 1;
    transform: translate(-185%, -20%) scale(1.05) rotate(-8deg);
  }
  100% {
    opacity: 1;
    transform: translate(-185%, 65%) scale(1) rotate(0deg);
  }
}

@keyframes tarotDrawCard2 {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -20%) scale(1.05) rotate(6deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 65%) scale(1) rotate(0deg);
  }
}

@keyframes tarotDrawCard3 {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
  }
  60% {
    opacity: 1;
    transform: translate(85%, -20%) scale(1.05) rotate(8deg);
  }
  100% {
    opacity: 1;
    transform: translate(85%, 65%) scale(1) rotate(0deg);
  }
}

@keyframes tarotDrawSingleCard {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08) rotate(6deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -20%) scale(1) rotate(0deg);
  }
}

.tarot-result-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: tarotCardFlipReveal 0.55s ease forwards;
}

.tarot-animation-result-card.card-1 .tarot-result-card-inner {
  animation-delay: 5.7s;
}

.tarot-animation-result-card.card-2 .tarot-result-card-inner {
  animation-delay: 6.6s;
}

.tarot-animation-result-card.card-3 .tarot-result-card-inner {
  animation-delay: 7.5s;
}

.tarot-animation-result-card.single-card .tarot-result-card-inner {
  animation-delay: 5.2s;
}

@keyframes tarotCardFlipReveal {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(180deg);
  }
}

.tarot-result-card-back,
.tarot-result-card-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  backface-visibility: hidden;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tarot-result-card-back {
  background-image: url("/wp-content/themes/hello-elementor/images/tarot/99.png");
  transform: rotateY(0deg);
}

.tarot-result-card-front {
  transform: rotateY(180deg);
}
.tarot-animation-card-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

/* .tarot-result-card-front.is-reversed {
  transform: rotateY(180deg) rotate(180deg);
}
   */
   .tarot-result-card-front.is-reversed img {
  transform: rotate(180deg);
}

.tarot-loading-text {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  color: #ead79a;
  font-family: serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(218, 180, 92, 0.65);
}

.tarot-loading-text span {
  animation: tarotTextFade 1.8s ease-in-out infinite;
}

@keyframes tarotTextFade {
  0%, 100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}
/* ==============================
   16. タロット結果表示
============================== */

.mypage-tarot-result {
  margin-top: 16px;
  text-align: left;
}

.mypage-tarot-result h3 {
  margin: 0 0 10px;
  text-align: center;
  color: #f3d98b;
  font-size: 20px;
}

.mypage-tarot-limit {
  margin: 0 0 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.mypage-tarot-cards {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0;
}

.mypage-tarot-card {
  width: 120px;
  text-align: center;
}

.mypage-tarot-position {
  margin: 0 0 6px;
  color: #f3d98b;
  font-size: 13px;
}

.mypage-tarot-card-face {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 11 / 18;
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.mypage-tarot-card-face.is-reversed {
  transform: rotate(180deg);
}

.mypage-tarot-card-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.mypage-tarot-card-img.is-reversed {
  transform: rotate(180deg);
}

.mypage-tarot-card-title {
  margin-top: 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #d4af37;
}

.mypage-tarot-card-orientation {
  margin-top: 4px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.mypage-tarot-orientation {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #d4af37;
  letter-spacing: 1px;
}

.mypage-tarot-card-name {
  display: block;
}

.mypage-tarot-text {
  margin-top: 18px;
  padding: 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.9;
}

.mypage-tarot-lucky {
  margin: 18px auto;
  padding: 14px 16px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  color: #f3d98b;
  font-size: 14px;
  line-height: 1.8;
}

.mypage-tarot-lucky p {
  margin: 4px 0;
}
/* ==============================
   17. SNS・戻るボタン
============================== */

.sns-area {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.sns-area a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #efd7e3;
  background: #fff;
  color: #9b6b82;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(190, 135, 165, 0.14);
}

.mypage-home-back {
  text-align: center;
  margin: 32px 0 10px;
}

.mypage-home-btn {
  display: inline-block;
  padding: 12px 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d88cc8, #8f67c8);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(120, 80, 160, 0.28);
}
/* ==============================
   18. スマホ対応
============================== */

@media (max-width: 820px) {
  #settingsBtn {
    left: auto;
    right: 12px;
    top: 12px;
  }
}

@media (max-width: 768px) {
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
      linear-gradient(
        rgba(20,10,35,0.35),
        rgba(20,10,35,0.35)
      ),
      url("https://tm-meguri.com/wp-content/uploads/2026/05/ChatGPT-Image-2026%E5%B9%B45%E6%9C%8821%E6%97%A5-11_16_27.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
  }

  .fortune-mypage {
    max-width: 100%;
    padding: 0 14px 60px;
  }

  .mypage-title-image img {
    height: 150px;
    margin: 0px auto -20px;
  }

  .summary-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 18px;
  }

  .summary-title,
  .point-label {
    font-size: 12px;
  }

  .summary-main {
    font-size: 14px;
  }

  .summary-sub {
    font-size: 14px;
  }

  .point-actions {
    flex-direction: column;
    gap: 4px;
  }

  .point-actions button {
    width: 100%;
    padding: 5px 6px;
    font-size: 10px;
  }

  .fortune-grid {
    grid-template-columns: 1fr;
  }

  .plan-guide-card {
    padding: 22px 16px;
  }

  .tag-slider-wrap::before,
  .tag-slider-wrap::after {
    display: none;
  }

  .tag-slider-arrow {
    display: none;
  }

  .summary-row-bottom {
    padding: 4px 14px;
  }

  .summary-row-bottom .today-card {
    width: 100%;
    max-width: 320px;
  }

  .today-tarot-modal-inner {
    padding: 26px 16px 28px;
  }

  .mypage-tarot-card {
    width: 96px;
  }

  .mypage-tarot-card-face {
    min-height: 132px;
    font-size: 12px;
  }

  .mypage-tarot-text {
    font-size: 13px;
  }

  .line-share-referral-btn {
    width: 100%;
  }
   .settings-menu {

    left: auto;

    right: 12px;

    top: 70px;

    width: min(90vw, 280px);

  }
  
  
  .summary-row-bottom {
  min-height: 150px;

  position: relative;
  overflow: hidden;

  border-radius: 12px;
  padding: 4px 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 30px;
}

}
@media (max-width: 768px) {

  .fortune-mypage .tag-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .fortune-mypage .tag-btn {
    width: 100% !important;
    height: 80px;
    font-size: 14px;
  }

}
.referral-input-box{
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.15);
}

.referral-input-box h3{
  margin-bottom:10px;
  text-align:center;
}

.referral-input-box p{
  font-size:14px;
  text-align:center;
  line-height:1.6;
}

#referralInput{
  width:100%;
  margin-top:12px;
  padding:12px;
  border-radius:10px;
  border:none;
  box-sizing:border-box;
}

#applyReferralBtn{
  width:100%;
  margin-top:12px;
  padding:12px;
  border:none;
  border-radius:10px;
  cursor:pointer;
}

#referralApplyMessage{
  margin-top:10px;
  text-align:center;
  font-size:13px;
}/* End custom CSS */