@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+Antique:wght@400;500;700;900&display=swap');


:root {
  --color-primary: #e95037;
  --color-secondary: #712d08;
  --color-background-main: #f8f4e9;
  --color-background-sub: #ef9c00;
  --color-background-third: #f2c844;
  --font-family-base: "Zen Kaku Gothic Antique", sans-serif;

  --spacing-md: 20px;
  --spacing-lg: 150px;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--color-background-third);
  background-image: url(image/game/bk_pc.webp);
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 767px) {
  body {
    background-image: url(image/game/bk_sp.webp);
  }
}

main {
  overflow: hidden;
}

.--spacing-md {
  padding: 0 var(--spacing-md);
}


p {
  font-size: 20px;
}


.sp-none {
  display: none;
}

@media (max-width: 768px) {
  .sp-none {
    display: block;
  }
}

.pc-none {
  display: block;
}

@media (max-width: 768px) {
  .pc-none {
    display: none;
  }
}

/* ヘッダー */

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon img {
  width: 100px;
}

@media (max-width: 768px) {
  .logo-icon img {
    width: 60px;
  }

}

/* PC用ナビゲーション */
.nav-menu {
  display: none;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #D63384;
}

/* ハンバーガーメニューボタン */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-color: #D63384;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  position: relative;
}

.hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 5px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.hamburger-text {
  color: #fff;
  font-size: 11px;
  font-weight: bold;
}

/* サイドメニュー（SP用） */
.side-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out;
  z-index: 999;
  overflow-y: auto;
}

.side-menu.active {
  right: 0;
}

.side-menu-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.side-menu-close {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #333;
  float: right;
}

.side-menu ul {
  list-style: none;
  padding: 20px 0;
}

.side-menu li {
  border-bottom: 1px solid #eee;
}

.side-menu a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: background-color 0.3s;
}

.side-menu a:hover {
  background-color: #f5f5f5;
  color: #D63384;
}

/* オーバーレイ */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.overlay.active {
  display: block;
}


/* PC画面用（768px以上） */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .nav-menu {
    display: block;
  }

  .side-menu {
    display: none;
  }
}



.scroll-arrow-area {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translate(-50%, 50%);
}

@media (min-width: 769px) {
  .scroll-arrow-area {
    bottom: 35%;
  }
}

.scroll-arrow {
  position: relative;
  height: 65px;
}

.scroll-arrow .scroll-img {
  margin: 0 auto;
  width: 70px;
}


.scroll_down {
  position: absolute;
  right: calc(50% - 15px);
  animation: arrowmove 1s ease-in-out infinite;
}

@keyframes arrowmove {
  0% {
    bottom: 1%;
  }

  50% {
    bottom: 7%;
  }

  100% {
    bottom: 1%;
  }
}

.scroll_down img {
  width: 30px;
}


/* ===== CSS変数 ===== */
:root {
  --pink: #E8007D;
  --pink-dark: #b0005e;
  --pink-pale: #ffe0f2;
  --pink-ultra: #fff5fb;
  --yellow: #FFD600;
  --teal: #00b9a8;
  --bg: #fdf0f8;
  --white: #ffffff;
  --text: #2a2a2a;
  --gray: #999;
  --shadow: 0 6px 24px rgba(232, 0, 125, .18);
}

.main_container {
  position: relative;
  max-width: 750px;
  margin: 50px auto 0;
  background: #fff;
  border-radius: 20px;
  border: 3px solid var(--color-secondary);
}

@media (max-width: 769px) {
  .main_container {
    margin: 50px 10px 0;
  }
}

.illust_12_img {
  position: absolute;
  width: 150px;
  top: -40px;
  left: -30px;
}

.illust_13_img {
  position: absolute;
  width: 110px;
  top: 410px;
  right: -40px;
}

.illust_14_img {
  position: absolute;
  width: 150px;
  top: 600px;
  left: -30px;
}

.illust_15_img {
  position: absolute;
  bottom: -40px;
  width: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.illust_16_img {
  position: absolute;
  width: 120px;
  bottom: -150px;
  right: -50px;
}

@media (max-width: 769px) {
  .illust_12_img {
    width: 110px;
    left: 20px;
  }

  .illust_13_img {
    width: 70px;
    top: 200px;
    right: -15px;
  }

  .illust_14_img {
    width: 110px;
    top: 450px;
    left: -10px;
  }

  .illust_15_img {
    width: 35%;
  }

  .illust_16_img {
    width: 80px;
    bottom: -95px;
    right: -30px;
  }
}

h1 img {
  width: 60%;
  margin: 80px auto;
}


.card-section {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
  background-color: #ffffff;
}

@media (max-width: 769px) {
  .card-section {
    padding: 0 20px 40px;
  }
}

.heading-badge {
  display: inline-block;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 32px;
  font-weight: 900;
  padding: 10px 30px;
  border-radius: 50px;
  letter-spacing: 0.05em;
  margin-bottom: 36px;
}

@media (max-width: 769px) {
  .heading-badge {
    font-size: 16px;
  }
}

.body-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.body-text p {
  color: var(--color-secondary);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: 0.04em;
  letter-spacing: -1px;
}

@media (min-width: 769px) {
  .body-text p {
    font-size: 24px;
    line-height: 1.7;
  }
}

.scroll-continer {
  position: relative;
  height: 100px;
}

.scroll-arrow-area {
  top: 50%;
  transform: translate(-50%, -50%);
}

.step1 {
  background-color: var(--color-background-main);
  margin: 100px 30px;
  text-align: center;
  padding: 40px;
  border-radius: 20px;
  position: relative;
  height: 600px;
}

.svg1 {
  position: absolute;
  top: 270px;
  left: 10px;
  width: 270px;
}

.svg2 {
  position: absolute;
  top: 180px;
  width: 270px;
  right: 0;
  left: 0;
  margin: auto;
  transform: translateX(-50%);
}

.svg3 {
  position: absolute;
  top: 200px;
  width: 270px;
  right: 10px;
}

@media (max-width: 769px) {
  .svg1 {
    position: absolute;
    top: 240px;
    left: -20px;
    width: 160px;
  }

  .svg2 {
    position: absolute;
    top: 180px;
    width: 160px;
    right: 0;
    left: 0;
    margin: auto;
    transform: translateX(-50%);
  }

  .svg3 {
    position: absolute;
    top: 200px;
    width: 160px;
    right: -20px;
  }


}

.fadein {
  opacity: 0;
  transform: translate(0, 0);
  transition: all 1.5s;
}

.fadein-left {
  transform: translate(-30px, 0);
}

.fadein-right {
  transform: translate(30px, 0);
}

.fadein-bottom {
  transform: translate(0, 30px);
}

.scrollin {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

.step2 {
  background-color: var(--color-background-main);
  margin: 30px;
  text-align: center;
  padding: 40px;
  border-radius: 20px;
  position: relative;
}

.step1_img,
.step2_img {
  position: absolute;
  top: -40px;
  width: 40%;
  left: 50%;
  transform: translateX(-50%);
}

.circle_img {
  position: absolute;
  top: -80px;
  width: 150px;
  right: -20px;

}

.step1 h2 img {
  width: 90%;
  margin: 50px auto;
}

.step2 h2 img {
  width: 50%;
  margin: 80px auto;
}

@media (max-width: 769px) {

  .step1 {
    margin: 100px 10px;
    height: 450px;
  }

  .step2 {
    padding: 40px 10px;
    margin: 30px 10px;
  }

  .step1_img,
  .step2_img {
    top: -20px;
  }

  .step2 h2 img {
    width: 80%;
    margin: 0px auto 30px;
  }

  .circle_img {
    width: 100px;

  }
}

/* ===== 選択エリア：4カラムグリッド ===== */
.picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 14px 16px;
  max-width: 750px;
  margin-top: 20px;
}

.picker-block {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 769px) {

  .picker-grid {
    padding: 0;
  }

  .picker-block {
    gap: 5px;

  }
}

/* カテゴリヘッダー */
.cat-head {
  background: var(--color-secondary);
  padding: 9px 10px 7px;
  text-align: center;
  position: relative;
  margin: 0 auto;
  width: 100px;
}

@media (max-width: 769px) {
  .cat-head {
    width: 100%;
  }
}

.cat-head .cat-name {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
}

.cat-head .belta-sm {
  position: absolute;
  top: 6px;
  right: 7px;
  background: var(--yellow);
  color: var(--pink-dark);
  font-size: .48rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 10px;
  letter-spacing: .08em;
}

/* ===== Splideラッパー ===== */
.splide-wrap {
  flex: 1;
}

/* Splideカスタマイズ */
.splide__arrow {
  background: #cccccc00 !important;
  opacity: 1 !important;
}

.splide__arrow:disabled {
  opacity: .3 !important;
}

.splide__arrow svg {
  display: none;
}

/* 矢印画像のスタイル（画像を指定する場合） */
.splide__arrow--prev::before,
.splide__arrow--next::before {
  content: '';
  display: block;
  width: 60px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.splide__arrow--prev::before {
  /* 前へボタンの画像 - 実際の画像URLに置き換えてください */
  background-image: url('image/game/prev.webp');
  width: 15px;
}

.splide__arrow--next::before {
  /* 次へボタンの画像 - 実際の画像URLに置き換えてください */
  background-image: url('image/game/next.webp');
  width: 15px;
}

.splide__arrow--prev {
  left: -6px !important;
}

.splide__arrow--next {
  right: -6px !important;
}

/* ===== カードスライド（画像のみ） ===== */
.life-card {
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--color-secondary);
  display: block;
  width: 100%;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}

/* カード画像ゾーン（4:3比率） */
.card-img-zone {
  width: 100%;
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--pink-pale) 0%, #f8d0e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-zone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== 選択ボタン ===== */
.btn-wrap {
  padding: 8px 0 12px;
}

.select-btn {
  width: 100%;
  padding: 9px 6px;
  border: none;
  border-radius: 30px;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all .2s;
  background: var(--color-background-third);
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.select-btn.done {
  background: #28a745;
  color: var(--color-background-main);
}

@media (max-width: 769px) {
  .select-btn {
    border-radius: 14px;
    font-size: 10px;
  }
}

/* ===== 結果エリア ===== */
.result-section {
  background: var(--color-primary);
  max-width: 750px;
  margin: 0px auto 28px;
  padding: 100px 15px;
  position: relative;
  overflow: hidden;
}

.result-heading {
  text-align: center;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: .05em;
}

.result-heading em {
  color: var(--pink);
  font-style: normal;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.result-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-cat-label {
  font-size: .66rem;
  font-weight: 800;
  color: #bbb;
  text-align: center;
  letter-spacing: .05em;
}

@media (max-width: 769px) {
  .result-section {
    margin: 0px auto 28px;
    padding: 50px 10px;
  }

}

/* ===== フリップカード ===== */
.flip-card-outer {
  perspective: 900px;
  height: 210px;
}

@media (max-width: 430px) {
  .flip-card-outer {
    height: 110px;
  }

}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .78s cubic-bezier(.45, .05, .55, .95);
}

/* 4枚揃った時にフリップ */
.flip-card-outer.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* 共通の面スタイル */
.flip-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* ── 裏面（カード裏画像） ── */
.flip-back {
  background: var(--color-background-main);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-secondary);
}

.flip-back .empty-msg {
  color: var(--color-secondary);
  font-size: .7rem;
  font-weight: 700;
  text-align: center;
  padding: 10px;
}

.flip-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── 表面（フリップ後に見えるカード表画像） ── */
.flip-front {
  transform: rotateY(180deg);
  background: var(--pink-pale);
  border: 2px solid var(--color-secondary);
}

.flip-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== リセットボタン ===== */
.reset-wrap {
  text-align: center;
  margin-top: 18px;
}

@media (max-width: 430px) {
  .reset-wrap {
    margin-top: 15px;
  }

}

.reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 200px;
  padding: 11px 5px;
  border: 2px solid #ddd;
  border-radius: 30px;
  background: var(--white);
  color: #999;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all .22s;
}

.reset-btn:active {
  transform: translateY(0);
}

.reset-btn svg {
  width: 20px;
}

.result-text {
  margin-top: 20px;
}

.result-text p {
  color: var(--color-background-main);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  line-height: 1.7;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

@media (min-width: 769px) {
  .result-text p {
    font-size: 24px;
  }
}

/* ===== レスポンシブ ===== */
@media (max-width: 750px) {

  .picker-grid,
  .result-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 420px) {

  .picker-grid,
  .result-grid {
    gap: 5px;
  }
}

.img_title_04 {
  width: 60%;
  margin: 100px auto;
}

@media (max-width: 750px) {
  .img_title_04 {
    margin: 50px auto;
  }

}

.banner_prev {
  max-width: 750px;
  margin: 50px auto;
}

@media (max-width: 750px) {
  .banner_prev {
    margin: 50px 10px;
  }
}