/* ==========================================
   マイページ
   hover / tap 時の赤色化を無効化
========================================== */

.fortune-mypage button:hover,
.fortune-mypage button:focus,
.fortune-mypage button:focus-visible,
.fortune-mypage button:active {
    color: inherit;
    border-color: inherit;
    -webkit-tap-highlight-color: transparent;
}


/* タップ時の赤いハイライトも無効化 */
.fortune-mypage button,
.fortune-mypage a {
    -webkit-tap-highlight-color: transparent;
}
/* ==========================================
   SITE BUTTON
   Elementorの赤いHover / Focus / Activeを無効化
========================================== */

button {
    -webkit-tap-highlight-color: transparent;
}


/* hover */

button:hover {
    color: inherit;
}


/* focus / tap */

button:focus,
button:focus-visible,
button:active {
    outline: none;
    color: inherit;
}


/* Elementor等の赤い背景を防止
   各ボタン固有のCSSを優先させる */
button:not([class]):hover,
button:not([class]):focus,
button:not([class]):active {
    background-color: transparent;
}
/* ==========================================
   あなたと本当に合う人
   赤いFocus / Activeを無効化
========================================== */

.meguri-recommended-featured:focus,
.meguri-recommended-featured:focus-visible,
.meguri-recommended-featured:active {
    outline: none !important;

    color: #fff !important;

    border-color:
        rgba(247,215,116,.48) !important;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(247,215,116,.10),
            transparent 32%
        ),
        radial-gradient(
            circle at 10% 100%,
            rgba(126,88,190,.16),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            rgba(255,255,255,.065),
            rgba(255,255,255,.018)
        ) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.09),
        0 20px 48px rgba(0,0,0,.14) !important;

    -webkit-tap-highlight-color: transparent;
}


/* 中の文字も赤くさせない */

.meguri-recommended-featured:focus *,
.meguri-recommended-featured:focus-visible *,
.meguri-recommended-featured:active * {
    color: inherit;
}


/* 金色を維持する部分 */

.meguri-recommended-featured:focus .meguri-recommended-badge,
.meguri-recommended-featured:active .meguri-recommended-badge,
.meguri-recommended-featured:focus .meguri-recommended-symbol,
.meguri-recommended-featured:active .meguri-recommended-symbol,
.meguri-recommended-featured:focus .meguri-recommended-arrow span,
.meguri-recommended-featured:active .meguri-recommended-arrow span {
    color: #f7d774 !important;
}
/* ==========================================
   あなたと本当に合う人
   WordPress / Elementor 状態色を完全無効化
========================================== */

button.meguri-recommended-featured,
button.meguri-recommended-featured:hover,
button.meguri-recommended-featured:focus,
button.meguri-recommended-featured:focus-visible,
button.meguri-recommended-featured:active {
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(247,215,116,.10),
      transparent 32%
    ),
    radial-gradient(
      circle at 10% 100%,
      rgba(126,88,190,.16),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      rgba(255,255,255,.065),
      rgba(255,255,255,.018)
    ) !important;

  color: #fff !important;

  border-color:
    rgba(247,215,116,.28) !important;

  outline: none !important;

  -webkit-tap-highlight-color: transparent !important;
}


/* hoverの動きだけ残す */

button.meguri-recommended-featured:hover {
  transform: translateY(-4px);

  border-color:
    rgba(247,215,116,.48) !important;
}


/* タップ中に赤くさせない */

button.meguri-recommended-featured:active {
  transform: translateY(-1px);
}
/* ==========================================
   テーマ選択後に生成される個別鑑定
   WordPress / Elementor の赤色を無効化
========================================== */

button.meguri-fortune-featured-card,
button.meguri-fortune-featured-card:hover,
button.meguri-fortune-featured-card:focus,
button.meguri-fortune-featured-card:focus-visible,
button.meguri-fortune-featured-card:active {
  background:
    radial-gradient(
      circle at 88% 15%,
      rgba(247,215,116,.09),
      transparent 30%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(119,78,180,.14),
      transparent 42%
    ),
    rgba(255,255,255,.025) !important;

  color: #fff !important;

  border-color:
    rgba(247,215,116,.28) !important;

  outline: none !important;

  -webkit-tap-highlight-color:
    transparent !important;
}


/* hoverの動きは残す */

button.meguri-fortune-featured-card:hover {
  transform:
    translateY(-3px);

  border-color:
    rgba(247,215,116,.48) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 18px 40px rgba(0,0,0,.18) !important;
}


/* タップ中 */

button.meguri-fortune-featured-card:active {
  transform:
    translateY(-1px);
}
button.meguri-fortune-featured-card,
button.meguri-fortune-featured-card:hover,
button.meguri-fortune-featured-card:focus,
button.meguri-fortune-featured-card:focus-visible,
button.meguri-fortune-featured-card:active {
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(247,215,116,.16),
      transparent 34%
    ),
    radial-gradient(
      circle at 5% 100%,
      rgba(154,105,220,.24),
      transparent 45%
    ),
    linear-gradient(
      145deg,
      #292044 0%,
      #211a3a 48%,
      #17142d 100%
    ) !important;

  color: #fff !important;

  border-color:
    rgba(247,215,116,.38) !important;

  outline: none !important;

  -webkit-tap-highlight-color:
    transparent !important;
}

/* ==========================================
   FORTUNE THEME IMAGE
========================================== */

.category-personality {
  overflow: visible;
}


/* 既存の丸背景は消す */

.category-personality::before {
  display: none !important;
}


/* ==========================================
   IMAGE
========================================== */

.meguri-fortune-theme-image {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 180px;
  height: 180px;

  max-width: none;

  transform:
    translate(-50%, -50%);

  object-fit: contain;

  opacity: 1;

  pointer-events: none;

  z-index: 0;

  transition:
    transform .3s ease;
}


/* ==========================================
   TEXT
========================================== */

.meguri-fortune-theme-text {
  position: relative;

  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
}


.category-personality
.meguri-fortune-theme-text strong {
  margin: 0;

  color: #fff !important;

  font-size: 18px;
  font-weight: 700;

  text-shadow:
    0 2px 5px rgba(5,3,15,1),
    0 0 10px rgba(5,3,15,.95);
}


.category-personality
.meguri-fortune-theme-text small {
  margin-top: 5px;

  color: rgba(255,255,255,.90) !important;

  font-size: 11px;

  text-shadow:
    0 2px 5px rgba(5,3,15,1),
    0 0 9px rgba(5,3,15,.95);
}


/* ==========================================
   HOVER
========================================== */

.category-personality:hover
.meguri-fortune-theme-image {
  transform:
    translate(-50%, -50%)
    scale(1.06);
}

/* ==========================================
   FORTUNE CATEGORY IMAGE
   全テーマ共通
========================================== */

.meguri-fortune-category {
  overflow: visible;
}


/* 元の惑星用円背景 */

.meguri-fortune-category::before {
  display: none !important;
}


/* ==========================================
   IMAGE
========================================== */

.meguri-fortune-theme-image {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 170px;
  height: 170px;

  max-width: none !important;

  transform:
    translate(-50%, -50%);

  object-fit: contain;

  opacity: 1;

  pointer-events: none;

  z-index: 0;

  transition:
    transform .3s ease,
    filter .3s ease;
}


/* ==========================================
   TEXT
========================================== */

.meguri-fortune-theme-text {
  position: relative;

  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;

  pointer-events: none;
}


.meguri-fortune-theme-text strong {
  margin: 0 !important;

  color: #fff !important;

  font-size: 17px;

  font-weight: 700;

  white-space: nowrap;

  text-shadow:
    0 2px 5px rgba(5,3,15,1),
    0 0 10px rgba(5,3,15,.95);
}


.meguri-fortune-theme-text small {
  margin-top: 5px !important;

  color:
    rgba(255,255,255,.90) !important;

  font-size: 10px;

  white-space: nowrap;

  text-shadow:
    0 2px 5px rgba(5,3,15,1),
    0 0 9px rgba(5,3,15,.95);
}


/* ==========================================
   HOVER
========================================== */

.meguri-fortune-category:hover
.meguri-fortune-theme-image {
  transform:
    translate(-50%, -50%)
    scale(1.07);

  filter:
    brightness(1.08);
}
.category-dragon
.meguri-fortune-theme-image {
  width: 195px;
  height: 195px;
}
/* ==========================================
   FORTUNE CATEGORY IMAGE
   MOBILE
========================================== */

@media (max-width: 767px) {

  /* ------------------------------
     各テーマ画像
  ------------------------------ */

  .meguri-fortune-theme-image {
    width: 105px !important;
    height: 105px !important;

    top: 50%;
    left: 50%;

    object-fit: cover;

    border-radius: 50%;

    transform:
      translate(-50%, -50%);

    overflow: hidden;
  }


  /* ------------------------------
     人生のテーマ
     中央だけ少し大きく
  ------------------------------ */

  .category-dragon
  .meguri-fortune-theme-image {
    width: 125px !important;
    height: 125px !important;
  }


  /* ------------------------------
     タイトル
  ------------------------------ */

  .meguri-fortune-theme-text strong {
    font-size: 14px !important;

    line-height: 1.35;

    white-space: nowrap;
  }


  /* ------------------------------
     サブタイトル
  ------------------------------ */

  .meguri-fortune-theme-text small {
    margin-top: 3px !important;

    font-size: 9px !important;

    line-height: 1.3;

    white-space: nowrap;
  }


  /* ------------------------------
     モバイルではHover拡大不要
  ------------------------------ */

  .meguri-fortune-category:hover
  .meguri-fortune-theme-image {
    transform:
      translate(-50%, -50%) !important;

    filter: none;
  }

}
/* ==========================================
   FORTUNE THEME IMAGE
   MOBILE 最終統一
========================================== */

@media (max-width: 768px) {

  .meguri-fortune-category
  > img.meguri-fortune-theme-image {

    position: absolute !important;

    top: 50% !important;
    left: 50% !important;

    width: 100px !important;
    height: 100px !important;

    max-width: none !important;
    min-width: 100px !important;

    margin: 0 !important;
    padding: 0 !important;

    transform:
      translate(-50%, -50%) !important;

    object-fit: cover !important;
    object-position: center center !important;

    border: 0 !important;
    border-radius: 50% !important;

    background: transparent !important;

    box-shadow: none !important;

    overflow: hidden !important;
  }


  /* 人生のテーマだけ少し大きく */

  .meguri-fortune-category.category-dragon
  > img.meguri-fortune-theme-image {

    width: 120px !important;
    height: 120px !important;

    min-width: 120px !important;
  }

}
/* ==========================================
   FORTUNE THEME IMAGE
   MOBILE
========================================== */

@media (max-width: 768px) {

  .meguri-fortune-category
  > .meguri-fortune-theme-image {

    position: absolute !important;

    top: 50% !important;
    left: 50% !important;

    width: 100px !important;
    height: 100px !important;

    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    transform:
      translate(-50%, -50%) !important;

    object-fit: contain !important;

    border: none !important;
    border-radius: 0 !important;

    background: none !important;

    box-shadow: none !important;

    opacity: 1 !important;

    overflow: visible !important;
  }


  /* 人生のテーマだけ少し大きく */

  .meguri-fortune-category.category-dragon
  > .meguri-fortune-theme-image {

    width: 120px !important;
    height: 120px !important;
  }

}
/* ==========================================
   FORTUNE THEME
   文字をアイコンの下へ配置
========================================== */

/* ボタン自体は基準位置として使用 */
.meguri-fortune-category {
  overflow: visible !important;
}


/* ==========================================
   PC
========================================== */

@media (min-width: 769px) {

  .meguri-fortune-theme-text {
    position: absolute !important;

    top: calc(50% + 92px);
    left: 50%;

    width: 180px;

    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    z-index: 2;

    pointer-events: none;
  }


  .meguri-fortune-theme-text strong {
    margin: 0 !important;

    color: #fff !important;

    font-size: 17px;

    line-height: 1.4;

    white-space: nowrap;

    text-shadow:
      0 2px 5px rgba(5,3,15,1),
      0 0 10px rgba(5,3,15,.95);
  }


  .meguri-fortune-theme-text small {
    margin-top: 4px !important;

    color:
      rgba(255,255,255,.72) !important;

    font-size: 10px;

    line-height: 1.4;

    white-space: nowrap;

    text-shadow:
      0 2px 5px rgba(5,3,15,.95);
  }


  /* 人生のテーマだけ画像が195pxなので少し下へ */

  .category-dragon
  .meguri-fortune-theme-text {
    top: calc(50% + 104px);
  }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

  .meguri-fortune-theme-text {
    position: absolute !important;

    top: calc(50% + 56px);
    left: 50%;

    width: 125px;

    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    z-index: 2;

    pointer-events: none;
  }


  .meguri-fortune-theme-text strong {
    margin: 0 !important;

    font-size: 13px !important;

    line-height: 1.35;

    white-space: nowrap;
  }


  .meguri-fortune-theme-text small {
    margin-top: 2px !important;

    font-size: 8px !important;

    line-height: 1.35;

    white-space: nowrap;
  }


  /* 人生のテーマは120pxなので少し下 */

  .category-dragon
  .meguri-fortune-theme-text {
    top: calc(50% + 67px);
  }

}
/* ==========================================
   FORTUNE THEME
   PCだけアイコンを小さくする
========================================== */

@media (min-width: 769px) {

  /* 通常8テーマ */
  .meguri-fortune-theme-image {
    width: 125px !important;
    height: 125px !important;
  }


  /* 人生のテーマ */
  .category-dragon
  .meguri-fortune-theme-image {
    width: 165px !important;
    height: 165px !important;
  }


  /* 画像サイズに合わせて文字位置も調整 */
  .meguri-fortune-theme-text {
    top: calc(50% + 60px) !important;
  }


  /* 人生のテーマ */
  .category-dragon
  .meguri-fortune-theme-text {
    top: calc(50% + 88px) !important;
  }

}
/* ==========================================
   MOBILE
   横揺れだけ防止
========================================== */

@media (max-width: 768px) {

  html {
    overflow-x: clip;
  }

  body {
    max-width: 100vw;
    overflow-x: clip;
  }

}
