@charset "UTF-8";
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
}
*:before, *:after {
  box-sizing: border-box;
}
*:focus {
  outline: none;
}

html {
  font-size: 62.5%;
  min-height: 100%;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

body {
  width: 100%;
  height: 100vh;
  font-family: "m-plus-1p", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-size: 1.25vw;
  line-height: 1.2;
  color: #ffffff;
  background-color: #000;
  position: relative;
  z-index: 0;
}
body .main_bg {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: -1;
  overflow: hidden;
}
body .main_bg::before {
  content: "";
  width: 100%;
  height: 100%;
  background-image: url(../images/bg.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
}
@media screen and (max-width: 767px) {
  body .main_bg::before {
    height: 186.916vw;
    background-image: url(../images/sp/bg.webp?20251125);
  }
}
body img {
  max-width: 100%;
  width: 100%;
}
@media screen and (max-width: 767px) {
  body {
    font-size: 3.74vw;
  }
  body img {
    pointer-events: none;
  }
}

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

.sp_inline {
  display: none;
}
@media screen and (max-width: 767px) {
  .sp_inline {
    display: inline-block;
  }
}

@media screen and (max-width: 767px) {
  .pc {
    display: none;
  }
}
.flex {
  display: flex;
}

.grid {
  display: grid;
}

section {
  position: relative;
  z-index: 0;
}

.inner {
  width: 90%;
  max-width: 36.46vw;
  margin: 0 auto;
}
@media screen and (max-width: 767px) {
  .inner {
    width: 95%;
    max-width: none;
  }
}

.logo_meganikke_online {
  width: 9.583vw;
  position: fixed;
  top: 1.042vw;
  left: 2.083vw;
  z-index: 99;
}
.logo_meganikke_online a {
  display: block;
  transition: all 0.4s;
}
@media screen and (min-width: 767px) {
  .logo_meganikke_online a:hover {
    opacity: 0.6;
  }
}
@media screen and (max-width: 767px) {
  .logo_meganikke_online {
    width: 18.458vw;
    position: absolute;
    top: 2.336vw;
    left: 4.673vw;
  }
}

h1 {
  padding-top: 1.042vw;
}
h1 .h1_img {
  width: 12.031vw;
  margin: 0 auto;
}
@media screen and (max-width: 767px) {
  h1 {
    padding-top: 2.336vw;
  }
  h1 .h1_img {
    width: 23.131vw;
  }
}

h2 {
  margin: 0 auto;
}
h2.h2-clear {
  width: 35.677vw;
  margin-top: 2.604vw;
}
@media screen and (max-width: 767px) {
  h2.h2-clear {
    width: 77.57vw;
    margin-top: 7.009vw;
  }
}
h2.h2-gameover {
  width: 30.156vw;
  margin-top: 2.604vw;
}
@media screen and (max-width: 767px) {
  h2.h2-gameover {
    width: 76.168vw;
    margin-top: 11.682vw;
  }
}
h2.h2-coupon {
  width: 25.833vw;
  margin-top: 2.2vw;
}
@media screen and (max-width: 767px) {
  h2.h2-coupon {
    width: 70.093vw;
    margin-top: 8vw;
  }
}

h3 {
  font-size: 1.667vw;
  height: 3.333vw;
  background-color: #af7a27;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width: 767px) {
  h3 {
    font-size: 4.673vw;
    height: 10.981vw;
  }
}

.btn_yellow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 26.146vw;
  height: 5.156vw;
  background: url(../images/btn_yellow.webp) no-repeat center top/contain;
  font-size: 1.667vw;
  color: #453118;
  margin: 0 auto;
  filter: drop-shadow(0px 0px 0px #ffda6c);
  transition: all 0.4s;
}
@media screen and (min-width: 767px) {
  .btn_yellow:hover {
    filter: drop-shadow(0px 0px 10px #ffda6c);
  }
}
@media screen and (max-width: 767px) {
  .btn_yellow {
    width: 65.187vw;
    height: 12.85vw;
    font-size: 4.206vw;
  }
}

@keyframes tikatika {
  0% {
    filter: drop-shadow(0px 0px 0px #ffda6c);
  }
  50% {
    filter: drop-shadow(0px 0px 5px #ffda6c) drop-shadow(0px 0px 5px #ffda6c);
  }
  100% {
    filter: drop-shadow(0px 0px 0px #ffda6c);
  }
}
.btn_top {
  text-align: center;
  background-color: #000;
  border: 1px solid #ffda6c;
  border-radius: 6px;
  width: 14.688vw;
  height: 3.333vw;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  margin-top: 1.563vw;
  filter: drop-shadow(0px 0px 0px #ffda6c);
  transition: all 0.4s;
  transform: translateZ(0);
}
@media screen and (min-width: 767px) {
  .btn_top:hover {
    filter: drop-shadow(0px 0px 6px #ffda6c);
  }
}
@media screen and (max-width: 767px) {
  .btn_top {
    width: 36.449vw;
    height: 9.579vw;
    margin-top: 4.673vw;
  }
}

main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* モーダル*/
}
main .gema_inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 74%;
}
main .gema_inner .game_wrap {
  position: relative;
  width: 100%;
}
@media screen and (max-width: 767px) {
  main {
    display: block;
    position: static;
    height: auto;
  }
  main .gema_inner {
    display: block;
    height: auto;
  }
  main .gema_inner .game_wrap {
    position: static;
  }
}
main #timer {
  width: 10.156vw;
  height: 3.906vw;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "shuttleblock", "m-plus-1p", sans-serif;
  font-size: 1.25vw;
  color: #ffffff;
  position: absolute;
  top: -4vw;
  right: 16.927vw;
  z-index: 100;
}
main #timer::before {
  content: "";
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0px 0px 2px 0px rgb(0, 0, 0);
  filter: drop-shadow(0px 0px 4px #ffce5f);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}
main #timer span {
  font-size: 2.396vw;
  width: 3.646vw;
  text-align: right;
}
main #timer .timer_inner {
  position: relative;
  width: 7.656vw;
  padding-left: 2.344vw;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
main #timer .timer_inner::before {
  content: "";
  width: 1.771vw;
  height: 1.771vw;
  background-image: url(../images/icon_time.svg);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  filter: brightness(0) invert(1);
}
@media screen and (max-width: 767px) {
  main #timer {
    width: 23.364vw;
    height: 8.879vw;
    font-size: 2.804vw;
    top: 7.009vw;
    right: 4.673vw;
  }
  main #timer span {
    font-size: 5.14vw;
    width: 7.477vw;
  }
  main #timer .timer_inner {
    width: 17.757vw;
    padding-left: 6.075vw;
  }
  main #timer .timer_inner::before {
    width: 3.972vw;
    height: 3.972vw;
  }
}
main #timer.second {
  color: #ff390a;
}
main #timer.second::before {
  border: 2px solid #ff390b;
}
main #timer.second .timer_inner::before {
  filter: brightness(1) invert(0);
}
main #game-board {
  width: 53.125vw;
  height: 25.885vw;
  display: grid;
  grid-template-columns: repeat(6, 7.917vw);
  gap: 1.042vw;
  justify-content: center;
  margin: 4.948vw auto 4.167vw;
  position: relative;
}
main #game-board::before {
  content: "";
  width: 65.938vw;
  height: 34.167vw;
  background-image: url(../images/game_frame.webp);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}
main #game-board .card {
  width: 7.917vw;
  height: 7.917vw;
  perspective: 600px;
  cursor: pointer;
  position: relative;
  transition: opacity 0s 0.5s;
}
main #game-board .card .card-inner {
  width: 100%;
  height: 100%;
  position: absolute;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
main #game-board .card.flipped .card-inner {
  transform: rotateY(180deg);
}
main #game-board .card .card-front,
main #game-board .card .card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
}
main #game-board .card .card-front img,
main #game-board .card .card-back img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
main #game-board .card .card-front {
  transform: rotateY(180deg);
}
main #game-board .card.matched {
  opacity: 0.7;
  pointer-events: none;
}
@media only screen and (max-width: 767px) {
  main #game-board {
    width: 60.28vw;
    height: 118.224vw;
    grid-template-columns: repeat(3, 74px);
    gap: 2.103vw 5.841vw;
    margin: 10.514vw auto 8.178vw;
  }
  main #game-board::before {
    width: 89.019vw;
    height: 134.346vw;
    background-image: url(../images/sp/game_frame.webp);
    top: 52%;
  }
  main #game-board .card {
    width: 18.692vw;
    height: 18.692vw;
  }
}
main #message {
  font-family: "shuttleblock", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-style: italic;
  font-size: 9.167vw;
  width: 18.385vw;
  height: 18.385vw;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
main #message.fade-out {
  opacity: 0;
  visibility: hidden;
}
main #message::before {
  content: "";
  width: 100%;
  height: 100%;
  background-image: url(../images/count_fame.webp);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  animation: Rotation 2.5s linear infinite;
  animation: Rotation 1s linear infinite;
}
@media screen and (max-width: 767px) {
  main #message {
    font-size: 19.159vw;
    width: 35.514vw;
    height: 35.514vw;
    top: 43%;
  }
  main #message::before {
    animation: Rotation 2s linear infinite;
    animation: Rotation 1s linear infinite;
  }
}
@keyframes Rotation {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}
main #warning {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 99;
}
main #warning .warnig_box {
  width: 100%;
  height: 11.927vw;
  position: absolute;
  left: 0;
}
main #warning .warnig_box::before {
  content: "";
  width: 100%;
  height: 3.906vw;
  background-image: url(../images/warning.webp?20251203);
  background-repeat: repeat-x;
  background-size: auto 100%;
  position: absolute;
  left: 0;
}
main #warning .warnig_box-top {
  background: rgb(255, 57, 10);
  background: linear-gradient(180deg, rgba(255, 57, 10, 0.8) 0%, rgba(128, 29, 5, 0) 100%);
  top: 0;
}
main #warning .warnig_box-top::before {
  bottom: 0;
}
main #warning .warnig_box-bottom {
  background: rgb(255, 57, 10);
  background: linear-gradient(0deg, rgba(255, 57, 10, 0.8) 0%, rgba(128, 29, 5, 0) 100%);
  bottom: 0;
}
main #warning .warnig_box-bottom::before {
  top: 2.083vw;
}
@media screen and (max-width: 767px) {
  main #warning .warnig_box {
    height: 31.308vw;
  }
  main #warning .warnig_box::before {
    height: 9.346vw;
  }
  main #warning .warnig_box-bottom {
    top: 142vw;
    bottom: auto;
  }
  main #warning .warnig_box-bottom::before {
    top: 0;
  }
}
main #warning.active {
  animation: OpacityAnimation 1.5s linear infinite;
}
main #warning.active .warnig_box::before {
  animation: scroll-bg 13s linear infinite;
}
@media screen and (max-width: 767px) {
  main #warning.active .warnig_box::before {
    animation: scroll-bg 23s linear infinite;
  }
}
main #warning.active .warnig_box-bottom::before {
  animation-direction: reverse;
}
@keyframes OpacityAnimation {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes scroll-bg {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -1920px 0;
  }
}
main .modal_box {
  background-color: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s;
}
@media screen and (max-width: 767px) {
  main .modal_box {
    height: 100svh;
  }
}
main .modal_box .modal_box_inner {
  width: 90%;
  max-width: 41.51vw;
  margin: 0 auto;
  text-align: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  transform: translateY(10%);
  transition: all 0.4s;
  position: relative;
}
@media screen and (max-width: 767px) {
  main .modal_box .modal_box_inner {
    max-width: 88.785vw;
  }
}
main .modal_box .modal_box_inner::before {
  content: "";
  width: 47.76vw;
  height: 8.438vw;
  background-image: url(../images/frame_deco-01.webp);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: -4.167vw;
  left: -3.906vw;
}
@media screen and (max-width: 767px) {
  main .modal_box .modal_box_inner::before {
    width: 102.103vw;
    height: 17.991vw;
    background-image: url(../images/sp/frame_deco-01.webp);
    top: -8.411vw;
    left: -8.411vw;
  }
}
main .modal_box .modal_box_inner::after {
  content: "";
  width: 6.458vw;
  height: 5.99vw;
  background-image: url(../images/frame_deco-02.webp);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 8.333vw;
  right: 0;
}
@media screen and (max-width: 767px) {
  main .modal_box .modal_box_inner::after {
    width: 9.813vw;
    height: 9.112vw;
    background-image: url(../images/sp/frame_deco-02.webp);
    top: 14.019vw;
    right: 1.636vw;
  }
}
main .modal_box.active {
  opacity: 1;
  pointer-events: all;
}
main .modal_box.active .modal_box_inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}
main #clear .modal_box_inner {
  height: 30.417vw;
  background-image: url(../images/clear_frame.webp);
}
main #clear .modal_box_inner p {
  font-size: 1.563vw;
  line-height: 1.6;
}
main #clear .modal_box_inner p:first-of-type {
  margin-top: 1.563vw;
}
main #clear .modal_box_inner .btn_yellow {
  margin-top: 1.042vw;
}
main #clear .modal_box_inner .shear_box p {
  color: #ffda6c;
}
main #clear .modal_box_inner .shear_box a {
  display: block;
  width: 26.146vw;
  margin: 0 auto;
  margin-top: 0.521vw;
}
@media screen and (max-width: 767px) {
  main #clear .modal_box_inner {
    height: 81.075vw;
    background-image: url(../images/sp/clear_frame.webp);
  }
  main #clear .modal_box_inner p {
    font-size: 4.206vw;
  }
  main #clear .modal_box_inner p:first-of-type {
    margin-top: 3.505vw;
  }
  main #clear .modal_box_inner .btn_yellow {
    margin-top: 2.336vw;
  }
  main #clear .modal_box_inner .shear_box a {
    width: 77.57vw;
    margin-top: 2.336vw;
  }
}
main #gameover .modal_box_inner {
  height: 19.531vw;
  background-image: url(../images/gameover_frame.webp);
}
main #gameover .modal_box_inner::before, main #gameover .modal_box_inner::after {
  content: none;
}
main #gameover .modal_box_inner .btn_yellow {
  margin-top: 1.563vw;
}
@media screen and (max-width: 767px) {
  main #gameover .modal_box_inner {
    height: 63.318vw;
    background-image: url(../images/sp/gameover_frame.webp);
  }
  main #gameover .modal_box_inner .btn_yellow {
    margin-top: 7.009vw;
  }
}
main #coupon .modal_box_inner {
  height: 38.2vw;
  background-image: url(../images/coupon_frame.webp?20251215);
}
main #coupon .modal_box_inner::after {
  content: none;
}
main #coupon .modal_box_inner p.coupon_txt {
  font-size: 1.563vw;
  font-weight: 900;
}
main #coupon .modal_box_inner .attention_ul {
  text-align: left;
  font-size: 0.96vw;
  font-weight: 500;
  width: 33.333vw;
  margin: 0 auto;
  margin-top: 1.563vw;
}
main #coupon .modal_box_inner .attention_ul li {
  margin-top: 0.521vw;
  transform: rotate(0.05deg);
}
main #coupon .modal_box_inner .attention_ul li a {
  text-decoration: underline;
  text-decoration-thickness: 0.104vw;
}
main #coupon .modal_box_inner .btn_coupon_copy {
  font-size: 0.938vw;
  font-weight: 500;
  margin-top: 0.781vw;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: pointer;
  touch-action: manipulation;
  transform: rotate(0.05deg);
}
main #coupon .modal_box_inner .btn_coupon_copy span {
  position: relative;
  padding-right: 1.406vw;
  transform: rotate(0.05deg);
}
main #coupon .modal_box_inner .btn_coupon_copy span::after {
  content: "";
  width: 0.729vw;
  height: 0.885vw;
  background-image: url(../images/icon_copy.svg);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateZ(0);
  will-change: transform;
}
main #coupon .modal_box_inner .btn_coupon_copy::before {
  content: "Copied!";
  position: absolute;
  top: 30px;
  right: -30px;
  color: #453118;
  background: #ffda6c;
  border-radius: 20px;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s;
}
main #coupon .modal_box_inner .btn_coupon_copy::after {
  content: "";
  position: absolute;
  top: 25px;
  right: 3px;
  width: 10px;
  height: 10px;
  background: #ffda6c;
  opacity: 0;
  transform: rotate(45deg);
  pointer-events: none;
  transition: all 0.4s;
}
main #coupon .modal_box_inner .btn_coupon_copy.active::before, main #coupon .modal_box_inner .btn_coupon_copy.active::after {
  opacity: 1;
}
main #coupon .modal_box_inner .coupon_box {
  background-color: #ffda6c;
  border-radius: 2.344vw;
  color: #453118;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 33.333vw;
  height: 4.688vw;
  margin: 0 auto;
  margin-top: 1.563vw;
}
main #coupon .modal_box_inner .btn_yellow {
  font-size: 1.042vw;
  margin-top: 1.563vw;
}
main #coupon .modal_box_inner .btn_yellow span {
  position: relative;
  padding-right: 1.563vw;
  transform: rotate(0.05deg);
}
main #coupon .modal_box_inner .btn_yellow span::after {
  content: "";
  width: 0.938vw;
  height: 0.99vw;
  background-image: url(../images/icon_link.svg);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}
@media screen and (max-width: 767px) {
  main #coupon .modal_box_inner {
    height: 132vw;
    background-image: url(../images/sp/coupon_frame.webp?20251215);
  }
  main #coupon .modal_box_inner p.coupon_txt {
    font-size: 4.206vw;
  }
  main #coupon .modal_box_inner .attention_ul {
    font-size: 3.271vw;
    line-height: 1.5;
    width: 78.972vw;
    margin-top: 4.673vw;
  }
  main #coupon .modal_box_inner .attention_ul li {
    margin-top: 2.336vw;
  }
  main #coupon .modal_box_inner .attention_ul li a {
    text-decoration-thickness: 1px;
  }
  main #coupon .modal_box_inner .btn_coupon_copy {
    font-size: 3.271vw;
    margin-top: 2.336vw;
  }
  main #coupon .modal_box_inner .btn_coupon_copy span {
    padding-right: 5.374vw;
  }
  main #coupon .modal_box_inner .btn_coupon_copy span::after {
    width: 2.336vw;
    height: 2.804vw;
  }
  main #coupon .modal_box_inner .btn_coupon_copy::before {
    top: 20px;
    right: -30px;
    font-size: 12px;
  }
  main #coupon .modal_box_inner .btn_coupon_copy::after {
    top: 16px;
    right: 0px;
  }
  main #coupon .modal_box_inner .coupon_box {
    border-radius: 10.514vw;
    width: 77.57vw;
    height: 10.981vw;
    margin-top: 4.673vw;
  }
  main #coupon .modal_box_inner .btn_yellow {
    width: 77.57vw;
    height: 15.421vw;
    font-size: 3.271vw;
    font-size: 3.271vw;
    margin-top: 4.673vw;
  }
  main #coupon .modal_box_inner .btn_yellow span {
    padding-right: 4.907vw;
  }
  main #coupon .modal_box_inner .btn_yellow span::after {
    width: 2.336vw;
    height: 2.57vw;
  }
}

footer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: -1;
}
footer .footer_inner {
  width: 98%;
  max-width: none;
  justify-content: flex-end;
  align-items: end;
}
footer .copy {
  width: 16.563vw;
}
footer .logo {
  width: 9.427vw;
  margin-left: 2.083vw;
}
footer .logo a {
  display: block;
  transition: all 0.4s;
}
@media screen and (min-width: 767px) {
  footer .logo a:hover {
    opacity: 0.6;
  }
}
@media screen and (max-width: 767px) {
  footer {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 15.4vw;
  }
  footer .footer_inner {
    width: 95%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  footer .copy {
    width: 74.299vw;
  }
  footer .copy img {
    vertical-align: baseline;
  }
  footer .logo {
    width: 29.907vw;
    margin-top: 2.336vw;
    margin-left: 0;
  }
}/*# sourceMappingURL=style_game.css.map */