/* ==============================
   1. 背景・全体
============================== */

body {
  background-image: url("https://tm-meguri.com/wp-content/uploads/2026/05/ChatGPT-Image-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;

  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-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  color: #FFFFFF;
background: rgba(30, 24, 48, 0.85);
border: 1px solid rgba(247, 215, 116, 0.65);
}

.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;
}
.history-favorite-btn:hover {
    color: #F7D774;
    background: rgba(247, 215, 116, 0.10);
    border-color: rgba(247, 215, 116, 0.35);
}
.history-delete-btn:hover {
    color: #F7D774;
    background: rgba(247, 215, 116, 0.14);
    border-color: #F7D774;
}

