/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
:root {
  --primary-color: #5c5c5c;
  --secondary-color: #ea6290;
  --color-blue: #094cc9;
  --bg-color: #fafafa;
  --text-color: #333333;
  --text-light: #ffffff;
  --font-main: "Helvetica Neue", Arial, "Yu Gothic", sans-serif;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;

  /* Carousel Variables */
  --carousel-width: 100%;
  --carousel-max-width: 600px;
}

html {
  font-size: 70%;
}
@media (min-width: 768px) {
  html {
    font-size: 62.5%;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
ul {
  margin: 0;
  padding: 0;
}

h3.headline {
  width: 90%;
  max-width: 600px;
  min-height: 50px;
  font-size: 1.2rem;
  margin: 0 auto 2rem;
  padding: 1rem 2rem;
  background: #333333;
  color: #ffffff;
  border-radius: 50px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
@media (max-width: 768px) {
  h3.headline {
    border-radius: 20px;
    padding: 1.2rem 1.5rem;
  }
}

.bg-white {
  background-color: #ffffff;
}
.bg-blue {
  background-color: #d1f1f3;
}
.bg-black {
  background-color: #1f1f1f;
}
.bg-black * {
  color: #ffffff;
}

.bg-hougan {
  background-color: #ffffff;
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 25px,
      rgba(0, 0, 0, 0.04) 26px,
      rgba(0, 0, 0, 0.04) 26px,
      transparent 27px,
      transparent 51px,
      rgba(0, 0, 0, 0.04) 52px,
      rgba(0, 0, 0, 0.04) 52px,
      transparent 53px,
      transparent 77px,
      rgba(0, 0, 0, 0.04) 78px,
      rgba(0, 0, 0, 0.04) 78px,
      transparent 79px,
      transparent 103px,
      rgba(0, 0, 0, 0.04) 104px,
      rgba(0, 0, 0, 0.04) 104px,
      transparent 105px,
      transparent 129px,
      rgba(0, 0, 0, 0.04) 130px,
      rgba(0, 0, 0, 0.04) 130px
    ),
    repeating-linear-gradient(
      to right,
      transparent 25px,
      rgba(0, 0, 0, 0.04) 26px,
      rgba(0, 0, 0, 0.04) 26px,
      transparent 27px,
      transparent 51px,
      rgba(0, 0, 0, 0.04) 52px,
      rgba(0, 0, 0, 0.04) 52px,
      transparent 53px,
      transparent 77px,
      rgba(0, 0, 0, 0.04) 78px,
      rgba(0, 0, 0, 0.04) 78px,
      transparent 79px,
      transparent 103px,
      rgba(0, 0, 0, 0.04) 104px,
      rgba(0, 0, 0, 0.04) 104px,
      transparent 105px,
      transparent 129px,
      rgba(0, 0, 0, 0.04) 130px,
      rgba(0, 0, 0, 0.04) 130px
    );
}

.bg-Lines {
  background-image: linear-gradient(0deg, #dfdfdf 50%, #eeeeee 50%);
  background-size: 5px 5px;
}

.bg-pink {
  background-color: #ffaec9;
}
.bg-prologue {
  background-image: url("../images/bg_prologue.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.bg-gomaotsu {
  background-image: url("../images/bg_gomaotsu.png");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}
.bg-prologue * {
  color: #ffffff;
}

#alice-badges {
  max-width: 350px;
}

.banner-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 2rem;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--bg-color);
  font-weight: 500;
  line-height: 1.8;
  overflow-x: hidden;
  font-size: 1.4rem;
  font-size: 14px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-blue);
  font-weight: bold;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  outline: none;
}

.btn-img {
  width: 80%;
  max-width: 200px;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.1em;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 0.5rem;
  font-family: "WDXL Lubrifont JP N", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.section-title.white {
  color: #ffffff;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
}

/* ==========================================================================
   Header (Hero Area)
   ========================================================================== */
.hero-header {
  position: relative;
  width: 100%;
  height: 100vh; /* 全画面表示 */
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  width: 50%;
  height: 100%;
  background: url("../images/all_bg.png") no-repeat center center/cover;
  z-index: 1;
}

.hero-content {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  text-align: center;
  background-color: #ffffff;
}

.logo img {
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInDown 1s ease forwards;
}

@media (max-width: 768px) {
  .hero-header {
    flex-direction: column;
  }
  .hero-bg,
  .hero-content {
    width: 100%;
    height: 50vh;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Character Section (Carousel)
   ========================================================================== */
.character-section {
  background-color: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
}

.carousel-wrapper {
  position: relative;
  max-width: var(--carousel-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
  width: 100%;
  min-width: 100%;
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
}

.carousel-btn {
  position: absolute;
  top: 20%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

.prev-btn {
  left: -25px;
}
.next-btn {
  right: -25px;
}

.character-text {
  width: 100%;
  padding: 2rem;
  border-radius: 0.2rem;
  background: #ffffff;
}

@media (max-width: 768px) {
  .prev-btn {
    left: -10px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .next-btn {
    right: -10px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

.carousel-nav {
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
}

.nav-item {
  transition: all 0.3s ease;
}

.nav-item:hover {
  background-color: #ddd;
}

.nav-item.is-active {
  background-color: var(--secondary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(252, 163, 17, 0.4);
}

/* ==========================================================================
   Generic Blocks (Campaign, etc)
   ========================================================================== */

#campaign-step .step {
  width: 90%;
  max-width: 380px;
  background: #dfdfdf;
  margin: 0 auto;
  border-radius: 16px;
  margin-top: 2rem;
}
#campaign-step h3 {
  width: 75px;
  height: 75px;
  margin: -35px auto 0;
}
#campaign-step .arrow {
  margin: 1.5rem auto;
  max-width: 40px;
}
@media (min-width: 992px) {
  #campaign-step .step {
    width: 30%;
    max-width: none;
    margin: 0 0 0 auto;
  }
  #campaign-step .arrow {
    width: 5%;
    max-width: 30px;
    margin: 0;
  }
  #campaign-step h3 {
    width: 100px;
    height: 100px;
    margin: -20px auto 0;
  }
}
.generic-block {
  background-color: var(--bg-color);
}

.generic-block.bg-light {
  background-color: #ffffff;
}

.generic-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.generic-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.generic-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.generic-text {
  padding: 2rem;
}

.generic-heading {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Tablet and PC variants for Generic Block */
@media (min-width: 768px) {
  .generic-item {
    flex-direction: row;
    align-items: center;
  }
  .generic-image {
    width: 50%;
    flex-shrink: 0;
  }
  .generic-text {
    width: 50%;
    padding: 3rem;
  }
}

/* ==========================================================================
   Game Intro
   ========================================================================== */
.game-intro__container {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.game-intro__image {
  width: 100%;
}

.game-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-intro__text {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-intro__text h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 0.5rem;
}

.game-intro__text h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-color);
}

.game-intro__text p {
  color: var(--text-color);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .game-intro__container {
    flex-direction: row;
  }

  .game-intro__container.reverse {
    flex-direction: row-reverse;
  }

  .game-intro__image {
    width: 30%;
    flex-shrink: 0;
  }

  .game-intro__text {
    width: 75%;
    padding: 3rem;
  }
}

.btn-game-intro {
  display: inline-block;
  background-color: #ff9c07;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 1rem 3rem;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(255, 156, 7, 0.3);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  text-decoration: none;
}

.btn-game-intro:hover {
  opacity: 0.8;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Schedule Display
   ========================================================================== */
.schedule-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
  width: 100%;
}
.schedule-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.3s ease;
}
.schedule-item:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.6);
}
@media (min-width: 768px) {
  .schedule-item {
    flex-direction: row;
    padding: 1.2rem 2rem;
    justify-content: flex-start;
  }
}
.schedule-badge {
  background: var(--secondary-color);
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.3rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(234, 98, 144, 0.4);
}
@media (min-width: 768px) {
  .schedule-badge {
    margin-bottom: 0;
    margin-right: 1.5rem;
  }
}
.schedule-date {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  color: #ffffff;
}
@media (min-width: 768px) {
  .schedule-date {
    text-align: left;
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  width: 100%;
  font-size: 0.6rem;
  background-color: #000;
  text-align: center;
  margin: 0 auto;
  padding: 4rem 0;
  color: #999;
  position: relative;
}
@media screen and (min-width: 992px) {
  footer {
    font-size: 1rem;
  }
}
footer p {
  line-height: 1.8;
}
footer a {
  color: #fff;
}
footer a.link {
  display: block;
  margin: 1em auto;
}
footer .app-explain h2 {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
}
@media screen and (min-width: 992px) {
  footer .app-explain h2 {
    font-size: 1.8rem;
  }
}
footer .app-explain p {
  font-size: 0.8rem;
  margin: 0.5em auto;
}
@media screen and (min-width: 992px) {
  footer .app-explain p {
    font-size: 1.2rem;
  }
}
footer .site-notice {
  font-size: 0.8rem;
  padding: 0 2rem;
}
@media screen and (min-width: 992px) {
  footer .site-notice {
    font-size: 1rem;
  }
}
footer .app-info {
  margin: 0 auto;
  text-align: center;
}
footer .app-info .app-icon {
  width: 30vw;
  max-width: 100px;
  margin: 2rem auto;
  text-align: center;
  border-radius: 2rem;
  overflow: hidden;
}
footer .app-info .app-badge {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem auto 3rem;
  flex-wrap: wrap;
  gap: 10px;
}
@media screen and (min-width: 992px) {
  footer .app-info .app-badge {
    padding: 0;
    margin: 1rem auto 2rem;
    gap: 20px;
  }
}
footer .app-info .app-badge .appstoreBtn {
  width: 140px;
  height: 45px;
  background: url("../images/btn_appstore.png") center center no-repeat;
  background-size: contain;
}
@media screen and (min-width: 992px) {
  footer .app-info .app-badge .appstoreBtn {
    width: 150px;
    height: 50px;
  }
}
footer .app-info .app-badge .googleplayBtn {
  width: 140px;
  height: 45px;
  background: url("../images/btn_googleplay.png") center center no-repeat;
  background-size: contain;
}
@media screen and (min-width: 992px) {
  footer .app-info .app-badge .googleplayBtn {
    width: 150px;
    height: 50px;
  }
}
footer .app-info .app-badge .amazonBtn {
  width: 140px;
  height: 45px;
  background: url("../images/btn_amazon.png") center center no-repeat;
  background-size: contain;
}
@media screen and (min-width: 992px) {
  footer .app-info .app-badge .amazonBtn {
    width: 150px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .generic-text,
  .character-text,
  .game-intro__text,
  #campaign-step p {
    padding: 1.2rem;
  }
}
footer div.site-info {
  width: 100%;
  margin: 0 auto;
}
footer div.site-info .logo {
  width: 20vw;
  display: block;
  margin: 0 auto 1rem;
}
@media screen and (min-width: 992px) {
  footer div.site-info .logo {
    width: 70px;
  }
}
footer div.site-info .logo img {
  display: block;
  margin: 0 auto;
  width: 100%;
}
footer div.site-info .copy {
  font-size: 0.8rem;
  margin: 0 auto;
}
@media screen and (min-width: 992px) {
  footer div.site-info .copy {
    font-size: 1.2rem;
  }
}
footer div.site-info .link {
  font-size: 1rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--secondary-color);
}
.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-list {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}
.nav-list li {
  margin: 0 1rem;
}
.nav-list li.off {
  opacity: 0.5;
  pointer-events: none;
}
.nav-list a {
  display: block;
  padding: 1rem 0;
  font-weight: bold;
  font-size: 2rem;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
  font-family: "WDXL Lubrifont JP N", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #ffffff;
}
.nav-list a:hover {
  opacity: 0.7;
}
.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-list a:hover::after {
  transform: scaleX(1);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  width: 50px;
  height: 50px;
  position: relative;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  position: absolute;
  left: 13px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.hamburger span:nth-child(1) {
  top: 16px;
}
.hamburger span:nth-child(2) {
  top: 24px;
}
.hamburger span:nth-child(3) {
  top: 32px;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 991px) {
  .hamburger {
    display: block;
  }
  .nav-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 50px;
    left: 0;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);

    /* Animation for smooth slide */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
  }
  .nav-list.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-list li {
    margin: 0;
    border-top: 1px solid #333;
  }
  .nav-list a {
    padding: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   Official Links Styling
   ========================================================================== */
.official-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .official-links {
    flex-direction: row;
    gap: 2rem;
  }
}
.official-link-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: #ffffff;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color) !important;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none !important;
  min-width: 250px;
  justify-content: center;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.official-link-btn:hover {
  background-color: var(--secondary-color);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(234, 98, 144, 0.3);
  opacity: 1;
}

/* X specific styling */
.official-link-btn.x-link {
  border-color: #000000;
  color: #000000 !important;
}
.official-link-btn.x-link:hover {
  background-color: #000000;
  color: #ffffff !important;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
