@charset "UTF-8";

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  /* Colors */
  --color-primary: #0c0011; /* 落ち着いた紫色（アクセント） */
  --color-primary-light: #7b558d;
  --color-bg-base: #ffffff; /* 白基調 */
  --color-bg-light: #f7f5f8; /* 極薄い紫/グレー（セクション背景用） */
  --color-text-main: #333333;
  --color-text-muted: #666666;
  --color-border: #e0dce2;

  /* Fonts */
  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Layout */
  --sidebar-width: 280px;
  --header-height: 60px;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   ⑥ Footer
   ========================================================================== */
footer {
  width: 100%;
  font-size: 0.6rem;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  text-align: center;
  margin: 0 auto;
  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;
  margin-bottom: 2rem;
}
@media screen and (min-width: 992px) {
  footer .app-explain h2 {
    font-size: 1.8rem;
  }
}
footer .app-explain p {
  font-size: 0.8rem;
}
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("./goma_footer/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("./goma_footer/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("./goma_footer/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;
}
