@charset "utf-8";

.xreaAdArea {
  width: 100%;
  min-height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 9999;
  flex-shrink: 0;
}

html,
body {
  font-family: "Monomaniac One", "Permanent Marker", "Kaisei Opti", sans-serif;
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

main {
  width: 100%;
  flex: 1;
  display: grid;
  place-items: center;
  position: relative;
}

body.inner {
  min-height: 100vh;
}

.inner {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: linear-gradient(180deg, #C493C3, #B44C97, #915da3);
}

.scene {
  position: relative;
  width: min(1000px, 100vw);
  height: 500px;
  margin: auto;
  perspective: 1200px;
}

.carousel {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(15deg);
}

.item {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  width: 120px;
  transform-style: preserve-3d;
  pointer-events: none;
  opacity: 0.4;
  transition: 0.3s;
}

.item.active {
  pointer-events: auto;
  opacity: 1;
}

.item img {
  width: 200px;
  height: auto;
  display: block;
}

.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  pointer-events: auto;
  z-index: 10;
}

.center img {
  display: block;
  width: 400px;
  transform: translateZ(-50px);
}

/* 回転アイテムの配置 */
.item:nth-child(2) {
  transform: rotateY(0deg) translateZ(250px);
}

.item:nth-child(3) {
  transform: rotateY(60deg) translateZ(250px);
}

.item:nth-child(4) {
  transform: rotateY(120deg) translateZ(250px);
}

.item:nth-child(5) {
  transform: rotateY(180deg) translateZ(250px);
}

.item:nth-child(6) {
  transform: rotateY(240deg) translateZ(250px);
}

.item:nth-child(7) {
  transform: rotateY(300deg) translateZ(250px);
}

/* weatherエリアへのリンクボタン */
.shigureBtn {
  position: fixed;
  right: 30%;
  bottom: 42px;
  width: 120px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 20;
}

.shigureBtn img {
  width: 100%;
  animation: fluffy 3s ease-in-out infinite;
}

@keyframes fluffy {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* キャラクターの紹介モーダル */
.characterModal {
  font-family: "M PLUS U", sans-serif;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.characterModal.isOpen {
  display: block;
}

.characterModalBg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.characterModalContent {
  position: relative;
  z-index: 1;
  width: min(90%, 420px);
  margin: 80px auto;
  padding: 28px 24px;
  background: #fff;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.characterModalClose {
  position: absolute;
  top: -12px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 52px;
  cursor: pointer;
}

.characterModalImg {
  width: 140px;
  margin-bottom: 12px;
  pointer-events: none;
}

#characterTitle {
  font-size: 36px;
  margin: 0;
}

.characterModalNickname {
  color: #777;
  margin: 8px 0 16px;
}

.characterModalText {
  line-height: 1.9;
  text-align: center;
}

.characterModalLink {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #915da3;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 0 #6f3f82;
  transform: translateY(0);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.characterModalLink:hover {
  background: #a86fba;
  transform: translateY(-3px);
  box-shadow: 0 9px 0 #6f3f82;
}

.characterModalLink:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 #6f3f82;
}

.noScroll {
  overflow: hidden;
}

/* コピーライトエリア */
.copyright {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1;
}

.copyrightLine {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin: 0 auto 12px;
}

.copyright p {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}


/* ローディング表示 */
.loading {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.loadingCenter {
  position: relative;
  width: 300px;
  height: 120px;
  margin: 0 auto;
}

#loadingPaw,
#loadingText {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.4s ease;
}

#loadingPaw {
  width: 70px;
  left: 0;
}

#loadingText {
  font-family: "Permanent Marker", sans-serif;
  width: 100%;
  text-align: center;
  font-size: 24px;
}

.hidden {
  opacity: 0;
}

/* 歩きアニメーション */
@keyframes step {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.8);
  }

  50% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(2px) scale(0.95);
  }
}

.loading.hide {
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

@keyframes bounceStep {
  0% {
    transform: translateY(var(--y)) scale(1) rotate(var(--r));
  }

  40% {
    transform: translateY(calc(var(--y) - 6px)) scale(1.1) rotate(var(--r));
  }

  100% {
    transform: translateY(var(--y)) scale(1) rotate(var(--r));
  }
}

/* 足跡フェード */
@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* ローディング消える演出 */
.loading.hide {
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

/* ドロワーメニュー */
.noScroll {
  overflow: hidden;
}

.pawBtn {
  position: absolute;
  left: 30%;
  bottom: 48px;
  top: auto;
  right: auto;
  width: 60px;
  height: 60px;
  z-index: 1100;
  border: none;
  background: transparent;
  cursor: pointer;
}

.pawBtn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.7;
  display: block;
}

/* 閉じるボタン */
.closeBtn {
  position: absolute;
  bottom: 80px;
  left: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.drawerNav {
  height: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 34px;
}

.drawerNavItem {
  width: 260px;
  padding: 0;
  margin: 0;
}

.drawerNavItem a {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  column-gap: 16px;
  width: 100%;
  color: #fff;
  text-decoration: none;
}

.drawerNavText {
  font-size: 36px;
  line-height: 1;
  display: block;
}

/* ホバー・アクティブ時対応 */
.drawerNavText:hover,
.drawerNavText:active,
.drawerNavText:focus {
  color: #38A1DB;
}

.pawIcon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.75;
  display: block;
  justify-self: center;
  transform: translateY(5px);
}

.drawer {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 100%;
  background: linear-gradient(135deg, #C493C3, #B44C97, #915da3);
  transform: translateX(-100%);
  transition: transform .4s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 1800;
}

.drawer.active {
  transform: translateX(0);
}

.overLay {
  display: none;
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  width: 100%;
  margin: 0 auto;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 1700;
}

.overLay.active {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer ul li a:hover .pawBtn {
  opacity: 1;
}







@media screen and (max-width: 768px) {

  /* 全体：SPでも中央に配置 */
  html,
  body {
    overflow: hidden;
  }

  .inner {
    min-height: 100svh;
    padding: 0 16px;
    box-sizing: border-box;
  }

  /* 3Dカルーセル全体 */
  .scene {
    width: 100%;
    height: 360px;
    perspective: 900px;
    transform: translateY(-20px);
  }

  /* 中央画像 */
  .center img {
    width: 230px;
  }

  /* 外周アイテム */
  .item {
    width: 80px;
  }

  .item img {
    width: 110px;
  }

  /* しぐれっちボタン */
  .shigureBtn {
    right: 12px;
    bottom: 72px;
    width: 120px;
  }

  /* コピーライト */
  .copyright {
    bottom: 16px;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .copyright p {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  /* キャラクターモーダル */
  .characterModal.isOpen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
  }

  .characterModalContent {
    width: min(90%, 340px);
    max-height: calc(100svh - 48px);
    margin: 0;
    padding: 36px 18px 24px;
    box-sizing: border-box;
  }

  .characterModalClose {
    top: 4px;
    right: 12px;
    font-size: 42px;
  }

  .characterModalImg {
    width: 110px;
    margin-bottom: 8px;
  }

  #characterTitle {
    font-size: 30px;
  }

  .characterModalNickname {
    margin: 6px 0 12px;
  }

  .characterModalText {
    font-size: 15px;
    line-height: 1.7;
  }

  .characterModalLink {
    margin-top: 14px;
    padding: 10px 18px;
    font-size: 15px;
    box-shadow: 0 4px 0 #6f3f82;
  }

  /* ドロワー */
  .pawBtn {
    top: auto;
    left: 12px;
    bottom: 60px;
    width: 54px;
    height: 54px;
  }

  .drawer {
    width: 80%;
    max-width: 320px;
  }

  .drawerNav {
    gap: 28px;
  }

  .drawerNavItem {
    width: 220px;
  }

  .drawerNavItem a {
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
  }

  .drawerNavText {
    font-size: 30px;
  }

  .pawIcon {
    width: 32px;
    height: 32px;
  }

  .drawerNavItem a:active .drawerNavText,
  .drawerNavItem a:focus .drawerNavText {
    color: #38A1DB;
  }
}