@charset "UTF-8";

/* ====================================
魔法特集LPベース
==================================== */

/* LP全体ラッパー */
#lp-mahomagic {
  width: 100%;

  max-width: 770px;
  /* ★スマホ　max-width: 480px; */

  margin: 0 auto;
  background-color: #8b86e6;

  color: #292929;
  font-size: 100%;
  font-weight: normal;
  text-align: left;

  border: 0;
  overflow: hidden;
}

/* LP内画像 */
#lp-mahomagic img {
  display: block;
  border: none;

  max-width: 100%;
  height: auto;
}

/* LP内リンクの下線はナシ */
#lp-mahomagic a,
#lp-mahomagic a:hover {
  text-decoration: none;
}

/* ====================================
星空背景
==================================== */

#lp-mahomagic {
  background-image: url("/auto/images/fix/feature/260223_mahomagic/bg_star.png");
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% auto;
}

/* ====================================
見出し画像
==================================== */

.lp-head {
  text-align: center;
  margin: 0 auto;
}

.lp-head__img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ====================================
自動カルーセル
==================================== */

#lp-mahomagic .koma-slider {
  margin: 0 auto 24px;
}

#lp-mahomagic .koma-slider__stage {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

/* 背景・コマ・枠を重ねる */
#lp-mahomagic .koma-slider__bg,
#lp-mahomagic .koma-slider__panel,
#lp-mahomagic .koma-slider__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 画像の高さを確保 */
#lp-mahomagic .koma-slider__stage::before {
  content: "";
  display: block;
  /* 画像サイズ 770x840 */
  padding-top: calc(840 / 770 * 100%);
}

/* 重なり順 */
#lp-mahomagic .koma-slider__bg {
  z-index: 0;
}

#lp-mahomagic .koma-slider__panel {
  z-index: 1;
  transition: opacity 1s ease !important;
}

#lp-mahomagic .koma-slider__frame {
  z-index: 2;
  pointer-events: none;
}

/* フェード（白に） */
#lp-mahomagic .koma-slider__stage.is-out .koma-slider__panel {
  opacity: 0;
}

/* 自動カルーセル全体にもドロップシャドウ */
/* heal */
.theme--heal .koma-slider {
  filter: drop-shadow(0 0 32px rgba(255, 172, 209, 0.7));
}

/* strong */
.theme--strong .koma-slider {
  filter: drop-shadow(0 0 32px rgba(255, 238, 172, 0.7));
}

/* color */
.theme--color .koma-slider {
  filter: drop-shadow(0 0 32px rgba(203, 255, 172, 0.5));
}

/* fate */
.theme--fate .koma-slider {
  filter: drop-shadow(0 0 32px rgba(190, 193, 255, 0.9));
}

/* ====================================
テーマ別背景色
==================================== */

.theme__body {
  position: relative;
  background: transparent;
}

/* 疑似要素（背景ふんわり） */
.theme__body::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  z-index: 0;

  filter: blur(24px);
  transform: scale(1.04);
  will-change: transform, filter;
  pointer-events: none;

  background: linear-gradient(to bottom,
      rgba(255, 172, 209, 0) 0%,
      rgba(255, 172, 209, 0.5) 5%,
      rgba(255, 172, 209, 0.5) 95%,
      rgba(255, 172, 209, 0) 100%);
}

/* 中身を前面に */
.theme__body>* {
  position: relative;
  z-index: 1;
}

/* テーマ別背景色 */
.theme--heal .theme__body::before {
  background: linear-gradient(to bottom,
      rgba(255, 172, 209, 0) 0%,
      rgba(255, 172, 209, 0.4) 5%,
      rgba(255, 172, 209, 0.4) 95%,
      rgba(255, 172, 209, 0) 100%);
}

.theme--strong .theme__body::before {
  background: linear-gradient(to bottom,
      rgba(255, 238, 172, 0) 0%,
      rgba(255, 238, 172, 0.4) 5%,
      rgba(255, 238, 172, 0.4) 95%,
      rgba(255, 238, 172, 0) 100%);
}

.theme--color .theme__body::before {
  background: linear-gradient(to bottom,
      rgba(203, 255, 172, 0) 0%,
      rgba(203, 255, 172, 0.4) 5%,
      rgba(203, 255, 172, 0.4) 95%,
      rgba(203, 255, 172, 0) 100%);
}

.theme--fate .theme__body::before {
  background: linear-gradient(to bottom,
      rgba(190, 193, 255, 0) 0%,
      rgba(190, 193, 255, 0.4) 5%,
      rgba(190, 193, 255, 0.4) 95%,
      rgba(190, 193, 255, 0) 100%);
}

/* ====================================
作品紹介リスト（作品グリッド）
==================================== */

/* グリッド全体 */
#lp-mahomagic .work-grid {
  list-style: none;

  width: 90%;

  margin: 0 auto 140px;
  /* ★スマホ  margin: 0 auto 80px; */

  padding: 0;

  display: grid;

  gap: 64px 20px;
  /* ★スマホ gap: 44px 12px; */

  grid-template-columns: repeat(3, 1fr);
}

/* カード内を中央寄せ */
#lp-mahomagic .work-grid__item {
  display: flex;
  justify-content: center;
}

/* カードのサイズ（最大232px） */
#lp-mahomagic .work-card__inner {
  width: 100%;
  max-width: 232px;
  margin: 0 auto;
}

/* aがinline扱いにならないように */
#lp-mahomagic a.work-card,
#lp-mahomagic .theme-featured__cta {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

/* 書影は幅いっぱいに */
#lp-mahomagic .work-card__img {
  display: block;
  width: 100%;
  height: auto;
}

/* 書影_ドロップシャドウ */
/* heal */
.theme--heal .work-card__img {
  box-shadow: 0 4px 20px rgba(255, 172, 209, 0.7);
}

/* strong */
.theme--strong .work-card__img {
  box-shadow: 0 4px 20px rgba(255, 238, 172, 0.7);
}

/* color */
.theme--color .work-card__img {
  box-shadow: 0 4px 20px rgba(203, 255, 172, 0.5);
}

/* fate */
.theme--fate .work-card__img {
  box-shadow: 0 4px 20px rgba(190, 193, 255, 0.9);
}

/* 書影_枠 */
.theme--heal .work-card__imgWrap,
.theme--strong .work-card__imgWrap,
.theme--color .work-card__imgWrap,
.theme--fate .work-card__imgWrap {
  border: 1px solid #6259e1;
  margin: 0 0 8px;
}

/* 上下余白 */
#lp-mahomagic .work-card__cam,
#lp-mahomagic .work-card__title {
  margin: 0 0 10px;
}

#lp-mahomagic .work-card__btn {
  margin: 0;
}

/* 作品名 */
#lp-mahomagic .work-card__title {
  color: #292929;

  font-size: 14px;
  /* ★スマホ font-size: 12px; */

  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  word-break: break-word;
}

/* カード全体にもドロップシャドウ */
/* heal */
.theme--heal .work-card__inner {
  filter: drop-shadow(0 0 32px rgba(255, 172, 209, 0.7));
}

/* strong */
.theme--strong .work-card__inner {
  filter: drop-shadow(0 0 32px rgba(255, 238, 172, 0.7));
}

/* color */
.theme--color .work-card__inner {
  filter: drop-shadow(0 0 32px rgba(203, 255, 172, 0.5));
}

/* fate */
.theme--fate .work-card__inner {
  filter: drop-shadow(0 0 32px rgba(190, 193, 255, 0.9));
}

/* ====================================
購入はこちらボタン
==================================== */

#lp-mahomagic .work-card__btn {
  display: block;

  padding: 14px 0 12px;
  /* ★スマホ padding: 12px 0 10px; */

  text-align: center;

  font-size: 16px;
  /* ★スマホ font-size: 13px; */

  font-weight: bold;
  line-height: 1;

  border-radius: 999px;
  background: #6259e1;
  color: #fff;

  transition: opacity 0.2s ease;
}

#lp-mahomagic a.work-card:hover .work-card__btn,
#lp-mahomagic .theme-featured__cta:hover .work-card__btn {
  background: #4f4aa3;
  color: #fff;
}

/* ====================================
キャンペーン内容記載枠
==================================== */

#lp-mahomagic .work-card__cam {
  padding: 8px 2px 6px;

  background: #ffffff;
  border: 2px solid #6259e1;
  color: #6259e1;

  font-size: 13px;
  /* ★スマホ font-size: 11px; */

  font-weight: 700;
  line-height: 1;
  text-align: center;

  border-radius: 8px;
}

/* ====================================
作品紹介（あらすじ有）
==================================== */

#lp-mahomagic .theme-featured {
  width: 80%;
  /* ★スマホ width: 84%; */

  margin: 0 auto;
}

/* 横並び */
#lp-mahomagic .theme-featured__inner {
  width: 100%;

  margin: 0 auto 28px;
  /* ★スマホ margin: 0 auto 8px; */

  display: grid;

  gap: 20px;
  /* ★スマホ gap: 12px; */

  align-items: flex-start;
  grid-template-columns: 1fr 1.3fr;
}

/* 右エリア */
#lp-mahomagic .theme-featured__content {
  flex: 1;
}

/* あらすじ */
#lp-mahomagic .theme-featured__desc {
  font-size: 18px;
  /* ★スマホ　font-size: 13px; */

  line-height: 1.8;
}

/* 装飾ライン */
#lp-mahomagic .theme-featured__line {
  padding: 16px 0;
  text-align: center;
}

#lp-mahomagic .theme-featured__line img {
  max-width: 100%;
  height: auto;
}

/* 上下余白 */
#lp-mahomagic .theme-featured .work-card__cam {
  margin: 0 0 24px;
  /* ★スマホ margin: 0 0 8px; */
}

#lp-mahomagic .work-card__title {
  margin: 0 0 12px;
  /* ★スマホ margin: 0 0 8px; */
}

/* 作品名 */
#lp-mahomagic .theme-featured .work-card__title {
  font-size: 18px;
  color: #292929 !important;
  /* ★スマホ　font-size: 14px; */
}

/* あらすじ */
.theme--heal .theme-featured__desc {
  color: #292929 !important;
}

/* キャンペーン内容記載枠*/
#lp-mahomagic .theme-featured .work-card__cam {
  font-size: 18px;
  /* ★スマホ　font-size: 12px; */
}

/* あらすじ&作品名部分_ドロップシャドウ */
.theme--heal .theme-featured__desc,
.theme--heal .work-card__title {
  filter: drop-shadow(0 0 8px rgba(255, 172, 209, 1)) drop-shadow(0 0 40px rgba(255, 172, 209, 0.8));
}

.theme--strong .theme-featured__desc,
.theme--strong .work-card__title {
  filter: drop-shadow(0 0 8px rgba(255, 238, 172, 1)) drop-shadow(0 0 40px rgba(255, 238, 172, 0.8));
}

.theme--color .theme-featured__desc,
.theme--color .work-card__title {
  filter: drop-shadow(0 0 8px rgba(203, 255, 172, 1)) drop-shadow(0 0 40px rgba(203, 255, 172, 0.8));
}

.theme--fate .theme-featured__desc,
.theme--fate .work-card__title {
  filter: drop-shadow(0 0 8px rgba(190, 193, 255, 1)) drop-shadow(0 0 40px rgba(190, 193, 255, 1));
}

/* 作品紹介（あらすじ有）全体にもドロップシャドウ */
/* heal */
.theme--heal .theme-featured {
  filter: drop-shadow(0 0 32px rgba(255, 172, 209, 0.7));
}

/* strong */
.theme--strong .theme-featured {
  filter: drop-shadow(0 0 32px rgba(255, 238, 172, 0.7));
}

/* color */
.theme--color .theme-featured {
  filter: drop-shadow(0 0 32px rgba(203, 255, 172, 0.5));
}

/* fate */
.theme--fate .theme-featured {
  filter: drop-shadow(0 0 32px rgba(190, 193, 255, 0.9));
}

/* ==================================================
  魔法タイプ占い
================================================== */

#lp-mahomagic .fortune {
  margin: 0 auto 80px;
  /* ★スマホ margin: 0 auto 40px; */
}

#lp-mahomagic .fortune__wrap {
  width: 100%;
  max-width: 704px;
  margin: 0 auto;
}

/* ステージ比率（bg_fortune_crysta.png: 704x696） */
#lp-mahomagic .fortune__stage {
  position: relative;
  width: 100%;
}

#lp-mahomagic .fortune__stage::before {
  content: "";
  display: block;
  padding-top: calc(696 / 704 * 100%);
}

/* 背景（台座＋キラキラ） */
#lp-mahomagic .fortune__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
}

/* 水晶一式：上に重ねる（fortune_crystal.png: 704x624） */
#lp-mahomagic .fortune__crystalWrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

#lp-mahomagic .fortune__crystalWrap::before {
  content: "";
  display: block;
  padding-top: calc(624 / 704 * 100%);
}

/* 水晶画像・魔法タイプ */
#lp-mahomagic .fortune__crystal,
#lp-mahomagic .fortune__type {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

#lp-mahomagic .fortune__crystal {
  z-index: 1;
}

/* result + data-type の時だけ1枚表示 */
#lp-mahomagic .fortune__wrap[data-state="result"][data-type="heal"] .fortune__type--heal,
#lp-mahomagic .fortune__wrap[data-state="result"][data-type="strong"] .fortune__type--strong,
#lp-mahomagic .fortune__wrap[data-state="result"][data-type="color"] .fortune__type--color,
#lp-mahomagic .fortune__wrap[data-state="result"][data-type="fate"] .fortune__type--fate {
  opacity: 1;
}

/* 書影 */
#lp-mahomagic .fortune__pick {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 42.3%;
  z-index: 3;

  width: 23%;
  /* ★スマホ width: 22%; */

  max-width: 160px;

  border: 1px solid #6259e1;
}

#lp-mahomagic .fortune__coverLink {
  display: block;
  width: 100%;
}

#lp-mahomagic .fortune__cover {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;

  /* ふわっとグロー */
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 48px rgba(255, 255, 255, 1));
}

/* CTAボタン */
#lp-mahomagic .fortune__btnLink--css {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  bottom: 13%;
  /* ★スマホ bottom: 11%; */

  z-index: 3;

  width: 38%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px 4px;
  /* ★スマホ padding: 6px 0; */

  border-radius: 999px;
  border: 2px solid #6b63ff;
  background: rgba(255, 255, 255, 0.35);
  color: #6b63ff;

  font-size: 13px;
  /* ★スマホ font-size: 10px; */

  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
}

/* タイプ：最初は全部消す */
#lp-mahomagic .fortune__type,
#lp-mahomagic .fortune__pick,
#lp-mahomagic .fortune__btnLink--css {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

/* フェード対象（タイプ/書影/ボタン） */
#lp-mahomagic .fortune__type,
#lp-mahomagic .fortune__pick,
#lp-mahomagic .fortune__btnLink--css {
  transition: opacity 4.5s ease;
  will-change: opacity;
}

/* idle：結果を隠す */
#lp-mahomagic .fortune__wrap[data-state="idle"] .fortune__type,
#lp-mahomagic .fortune__wrap[data-state="idle"] .fortune__pick,
#lp-mahomagic .fortune__wrap[data-state="idle"] .fortune__btnLink--css {
  opacity: 0;
  pointer-events: none;
}

/* result：書影＆ボタン表示 */
#lp-mahomagic .fortune__wrap[data-state="result"] .fortune__pick,
#lp-mahomagic .fortune__wrap[data-state="result"] .fortune__btnLink--css {
  opacity: 1;
  pointer-events: auto;
}

/* もう一度占う時：resultのまま全部消す */
#lp-mahomagic .fortune__wrap.is-fadeout .fortune__type,
#lp-mahomagic .fortune__wrap.is-fadeout .fortune__pick,
#lp-mahomagic .fortune__wrap.is-fadeout .fortune__btnLink--css {
  opacity: 0;
  pointer-events: none;
}

/* もう一度占うボタン：場所確保 */
#lp-mahomagic .fortune__retry {
  display: block;
  margin: 0 auto;
  padding: 4px;
  border: 0;
  background: none;
  color: #fff;

  font-size: 20px;
  /* ★スマホ font-size: 16px; */

  text-decoration: underline;
  text-underline-offset: 8px;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#lp-mahomagic .fortune__wrap[data-state="result"]~.fortune__retry {
  opacity: 1;
  pointer-events: auto;
}

/* 水晶ふわふわ発光 */
#lp-mahomagic .fortune__crystal {
  animation: crystalGlow 4s ease-in-out infinite;
}

@keyframes crystalGlow {
  0% {
    filter: brightness(1) drop-shadow(0 0 0px rgba(255, 255, 255, 0)) drop-shadow(0 0 0px rgba(255, 255, 255, 0));
  }

  60% {
    /* 最も強く光る */
    filter: brightness(1.08) drop-shadow(0 0 40px rgba(255, 255, 255, 0.55)) drop-shadow(0 0 160px rgba(255, 255, 255, 0.45));
  }

  100% {
    filter: brightness(1) drop-shadow(0 0 0px rgba(255, 255, 255, 0)) drop-shadow(0 0 0px rgba(255, 255, 255, 0));
  }
}

/* retry時、テーマ画像も必ず消す */
#lp-mahomagic .fortune__wrap.is-fadeout .fortune__type {
  opacity: 0 !important;
}

/* 水晶エリア内の retry を完全になしに */
#lp-mahomagic .fortune__crystalWrap button {
  display: none !important;
}

/* タップ範囲用 */
/* 当たり判定（idle時のみON） */
#lp-mahomagic .fortune__tapHit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48%;
  height: 55%;
  transform: translate(-50%, -50%);
  border-radius: 50%;

  background: transparent;

  z-index: 10;

  pointer-events: none;
}

/* idle時のみ当たり判定ON */
#lp-mahomagic .fortune__wrap[data-state="idle"] .fortune__tapHit {
  pointer-events: auto;
  cursor: pointer;
}