/* ==========================================
   MOBILE CATEGORY FOCUS
   SIMPLE / STABLE
========================================== */

@media (max-width: 768px) {

  .meguri-fortune-orbit {
    position: relative;

    height: 560px;

    transition:
      height .55s cubic-bezier(.16,1,.3,1),
      margin .55s cubic-bezier(.16,1,.3,1);
  }


  /* ========================================
     選択後
  ======================================== */

  .meguri-fortune-orbit.mobile-category-selected {
  height: 560px;

  margin-bottom: 12px;
}


  /* ========================================
     元の9テーマ
  ======================================== */

  /* ========================================
   元の9テーマ
   四方へ散って消える
======================================== */

.meguri-fortune-category {
  transition:
    translate .72s cubic-bezier(.4,0,.2,1),
    scale .72s cubic-bezier(.4,0,.2,1),
    opacity .48s ease !important;

  will-change:
    translate,
    scale,
    opacity;
}


/* 共通 */

.meguri-fortune-category.mobile-exit {
  opacity: 0 !important;

  scale: .72;

  pointer-events: none;
}


/* ========================================
   上：本質・才能
======================================== */

.category-personality.mobile-exit {
  translate: 0 -150px;
}


/* ========================================
   右上：恋愛
======================================== */

.category-love.mobile-exit {
  translate: 130px -120px;
}


/* ========================================
   右：仕事
======================================== */

.category-work.mobile-exit {
  translate: 170px 0;
}


/* ========================================
   右下：金運
======================================== */

.category-money.mobile-exit {
  translate: 135px 125px;
}


/* ========================================
   下：健康
======================================== */

.category-health.mobile-exit {
  translate: 0 150px;
}


/* ========================================
   左下：相性
======================================== */

.category-compatibility.mobile-exit {
  translate: -135px 125px;
}


/* ========================================
   左：人間関係
======================================== */

.category-relationship.mobile-exit {
  translate: -170px 0;
}


/* ========================================
   左上：結婚
======================================== */

.category-marriage.mobile-exit {
  translate: -130px -120px;
}


/* ========================================
   人生のテーマ
   その場で小さくなって消える
======================================== */

.category-dragon.mobile-exit {
  translate: 0 0 !important;

  scale: .12 !important;

  opacity: 0 !important;

  transition:
    scale .62s cubic-bezier(.4,0,.2,1),
    opacity .42s ease !important;
}

  /* ========================================
     軌道
  ======================================== */

  .mobile-category-selected
  .meguri-fortune-orbit-line,

  .meguri-fortune-orbit.mobile-category-selected::before,

  .meguri-fortune-orbit.mobile-category-selected::after {
    opacity: 0;

    transition:
      opacity .32s ease;
  }
  /* ========================================
   選択されたテーマ本体
======================================== */

.meguri-fortune-category.mobile-selected {

  /*
   * 元のtransformには触れない。
   *
   * JSで計算した差分だけ追加する。
   */
  translate:
    var(--selected-move-x)
    var(--selected-move-y);

  scale: 1;

  opacity: 1 !important;

  z-index: 50;

  pointer-events: auto;

  transition:
    translate .78s cubic-bezier(.16,1,.3,1),
    scale .78s cubic-bezier(.16,1,.3,1),
    opacity .35s ease !important;

  will-change:
    translate,
    scale;
}
.meguri-fortune-orbit.mobile-category-selected
+ .meguri-category-content {
  margin-top: -315px;
}
.category-dragon {
  top: 50%;
  left: 50%;

  transform:
    translate(-50%, -50%);
}
/* ========================================
   選択テーマの画像だけ拡大
======================================== */

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

  width: 180px !important;
  height: 180px !important;

  transition:
    width .78s cubic-bezier(.16,1,.3,1),
    height .78s cubic-bezier(.16,1,.3,1) !important;
}


/* 選択テーマの文字位置 */

.meguri-fortune-category.mobile-selected
.meguri-fortune-theme-text {

  top: calc(50% + 80px) !important;

  transition:
    top .78s cubic-bezier(.16,1,.3,1) !important;
}


/* 選択テーマのタイトル */

.meguri-fortune-category.mobile-selected
.meguri-fortune-theme-text strong {

  font-size: 18px !important;
}


/* 選択テーマのサブタイトル */

.meguri-fortune-category.mobile-selected
.meguri-fortune-theme-text small {

  font-size: 10px !important;
}
/* ========================================
   人生のテーマ
   選択時も150pxまで拡大
======================================== */

.meguri-fortune-category.category-dragon.mobile-selected
> .meguri-fortune-theme-image {
  width: 180px !important;
  height: 180px !important;
  min-width: 180px !important;

  transition:
    width .78s cubic-bezier(.16,1,.3,1),
    height .78s cubic-bezier(.16,1,.3,1) !important;
}
}
/* ==========================================
   POINT SHOP
========================================== */

.point-purchase-modal-inner {
    position: relative;
    width: min(92%, 500px);
    max-height: 88vh;
    overflow-y: auto;

    padding: 44px 28px 30px;

    text-align: center;

    border: 1px solid rgba(201, 174, 111, 0.35);
    border-radius: 24px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(86, 102, 145, 0.38),
            transparent 42%
        ),
        linear-gradient(
            160deg,
            #17243b 0%,
            #101a2d 55%,
            #0b1424 100%
        );

    box-shadow:
        0 24px 60px rgba(4, 10, 22, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    color: #fff;
}


/* ==========================================
   POINT SHOP
========================================== */

.point-purchase-kicker {
    margin: 0 0 8px;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;

    color: #d4ba7c;
}


/* ==========================================
   Title
========================================== */

.point-purchase-modal-inner h3 {
    margin: 0;

    font-size: 25px;
    font-weight: 500;
    letter-spacing: 0.08em;

    color: #fff;
}


/* ==========================================
   Lead
========================================== */

.point-purchase-lead {
    margin: 13px auto 26px;

    font-size: 13px;
    line-height: 1.8;

    color: rgba(255, 255, 255, 0.66);
}


/* ==========================================
   Products
========================================== */

.point-purchase-products {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin-top: 8px;
}


/* ==========================================
   Product
========================================== */

.point-purchase-product {
    position: relative;

    width: 100%;
    min-height: 72px;

    padding: 14px 20px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    border: 1px solid rgba(207, 181, 119, 0.34);
    border-radius: 14px;

    background:
    linear-gradient(
        110deg,
        rgba(91, 108, 158, 0.28),
        rgba(49, 64, 105, 0.22)
    );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


/* 左側のポイント数 */

.point-purchase-product strong {
    font-size: 21px;
    font-weight: 500;
    letter-spacing: 0.04em;

    color: #fff;
}


/* 右側の価格 */

.point-purchase-product span {
    min-width: 90px;

    padding: 8px 13px;

    border: 1px solid rgba(213, 187, 125, 0.32);
    border-radius: 20px;

    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;

    color: #e1c98f;

    background:
        rgba(210, 181, 112, 0.08);
}


/* ==========================================
   Hover
========================================== */

@media (hover: hover) {

    .point-purchase-product:hover {
        transform: translateY(-2px);

        border-color:
            rgba(215, 188, 123, 0.62);

        background:
            linear-gradient(
                110deg,
                rgba(210, 184, 123, 0.14),
                rgba(255, 255, 255, 0.04)
            );

        box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
}


/* ==========================================
   Disabled
========================================== */

.point-purchase-product:disabled {
    opacity: 0.5;
    cursor: wait;
    transform: none;
}


/* ==========================================
   Message
========================================== */

.point-purchase-message {
    min-height: 18px;

    margin: 17px 0 0;

    font-size: 12px;
    line-height: 1.6;

    color: #e1c98f;
}


/* ==========================================
   Note
========================================== */

.point-purchase-note {
    margin: 8px auto 0;

    font-size: 11px;
    line-height: 1.7;

    color: rgba(255, 255, 255, 0.45);
}


/* ==========================================
   Close
========================================== */

.point-purchase-modal-inner .point-modal-close {
    color: rgba(255, 255, 255, 0.7);
}


/* ==========================================
   Mobile
========================================== */

@media (max-width: 600px) {

    .point-purchase-modal-inner {
        width: calc(100% - 26px);

        padding:
            40px
            17px
            24px;

        border-radius: 20px;
    }


    .point-purchase-modal-inner h3 {
        font-size: 22px;
    }


    .point-purchase-lead {
        margin-bottom: 21px;

        font-size: 12px;
    }


    .point-purchase-products {
        gap: 9px;
    }


    .point-purchase-product {
        min-height: 66px;

        padding:
            12px
            14px;

        border-radius: 12px;
    }


    .point-purchase-product strong {
        font-size: 18px;
    }


    .point-purchase-product span {
        min-width: 82px;

        padding:
            7px
            11px;

        font-size: 12px;
    }
}
/* ==========================================
   FOR YOU
   SUB RECOMMEND CARD
========================================== */

.meguri-recommended-small,
.meguri-recommended-small:hover,
.meguri-recommended-small:focus,
.meguri-recommended-small:focus-visible,
.meguri-recommended-small:active {

    position: relative;

    min-height: 150px;

    margin: 0;
    padding: 22px 48px 20px 22px;

    box-sizing: border-box;

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

    background-color: transparent !important;

    background-image:
        url("https://tm-meguri.com/wp-content/uploads/recommendSubCard.png") !important;

    background-size:
        100% 100% !important;

    background-position:
        center center !important;

    background-repeat:
        no-repeat !important;

    box-shadow: none !important;

    color: #fff;

    -webkit-appearance: none;
    appearance: none;

    -webkit-tap-highlight-color:
        transparent;

    filter: none;

    overflow: visible;

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


/* PCだけ浮かせる */

@media (hover: hover) {

    .meguri-recommended-small:hover {
        transform:
            translateY(-4px) !important;

        filter:
            brightness(1.08);
    }

}


/* MOBILE */

@media (max-width: 768px) {

    .meguri-recommended-small,
    .meguri-recommended-small:hover,
    .meguri-recommended-small:focus,
    .meguri-recommended-small:focus-visible,
    .meguri-recommended-small:active {

        height: 125px !important;
        min-height: 125px !important;
        max-height: 125px !important;

        padding:
            19px
            45px
            18px
            18px;

        transform:
            none !important;

        filter:
            none !important;

        box-shadow:
            none !important;
    }

}
