@charset "UTF-8";

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  /* Colors */
  --color-primary: #5c3b6b; /* 落ち着いた紫色（アクセント） */
  --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;
}

/* ==========================================================================
   Layout (Mobile First)
   ========================================================================== */
/* Sidebar / Header */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-bg-base);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding: 0 var(--space-sm);
  background: #2e2e2e;
}

.sidebar-header .logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.sidebar-header .logo picture {
  max-height: 40px;
}

.sidebar-header .logo picture img {
  max-height: 40px;
}
.sidebar-header .logo a {
  font-size: 1.5rem;
  color: var(--color-primary);
  letter-spacing: 0.1em;
}

/* Hamburger Menu */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: 11px;
}
.hamburger span:nth-child(3) {
  bottom: 0;
}

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

/* Navigation */
.global-nav {
  display: none;
  background-color: var(--color-bg-base);
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  z-index: 999;
}

.global-nav.is-active {
  display: block;
}

.global-nav #menu li {
  width: 90%;
  margin: 0 auto;
  border-bottom: 1px solid var(--color-text-muted);
}

.global-nav ul li:last-child {
  border-bottom: none;
}

.global-nav a {
  display: block;
  padding: var(--space-sm) var(--space-sm);
  color: var(--color-text-main);
  font-family: var(--font-serif);
  font-size: 1rem;
}

.global-nav ul#menu a:hover {
  background-color: #4c4c4c;
}

.global-nav ul.row {
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.global-nav ul.row .col {
  width: auto;
  flex: 0 0 auto;
  padding: 0;
}

.global-nav ul.row img {
  width: 60px;
  height: auto;
}

/* Main Content */
.main-content {
  padding-top: var(--header-height); /* スマホ時のヘッダー分下げる */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: var(--space-lg) var(--space-md);
}

.bg-light {
  background-color: var(--color-bg-light);
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  padding: 0 0 var(--space-xl) 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  position: relative;
  letter-spacing: 0.05em;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
  margin: var(--space-sm) auto 0;
}

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

.hero-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/sp_header_bg.png") no-repeat center top;
  background-size: 100% auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-logo {
  width: 75%;
  max-width: 450px;
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  padding: var(--space-md) var(--space-lg);
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-content h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.1em;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--color-text-main);
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   ② News
   ========================================================================== */
.news-list dl {
  border-top: 1px solid var(--color-border);
}

.news-list dt {
  padding: var(--space-sm) 0 0;
  font-weight: bold;
  color: var(--color-primary);
  font-family: var(--font-serif);
}

.news-list dd {
  padding: 0 0 var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  margin-left: 0;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .news-list dl {
    display: flex;
    flex-wrap: wrap;
  }
  .news-list dt {
    width: 25%;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
  }
  .news-list dd {
    width: 75%;
    padding: var(--space-sm) 0;
  }
}

/* ==========================================================================
   ③ Info
   ========================================================================== */
.info-block {
  margin-bottom: var(--space-md);
  background: #fff;
  padding: var(--space-md);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.info-block:last-child {
  margin-bottom: 0;
}

.info-heading {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-xs);
}

/* ==========================================================================
   ④ Access
   ========================================================================== */
.access-place {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.access-content .address {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  text-align: center;
  font-family: var(--font-serif);
}

.map-wrapper {
  margin-bottom: var(--space-md);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.transit-info {
  background: var(--color-bg-light);
  padding: var(--space-md);
  border-radius: 8px;
}

.transit-info ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.transit-info li {
  margin-bottom: var(--space-xs);
}

/* ==========================================================================
   ⑤ Notes
   ========================================================================== */
.notes-list {
  list-style-type: decimal;
  padding-left: 1.5rem;
}

.notes-list li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-xs);
}

/* ==========================================================================
   ⑥ 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;
}
@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;
}

/* ==========================================================================
   Desktop Layout (PC)
   ========================================================================== */
@media (min-width: 992px) {
  body {
    display: flex;
  }

  /* PC Sidebar */
  .sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    border-bottom: none;
    border-right: 1px solid var(--color-border);
    padding: var(--space-md) 0;
    background: #2e2e2e;
  }

  .sidebar-header {
    height: auto;
    padding: 0 var(--space-md) var(--space-lg);
    justify-content: center;
  }

  .sidebar-header .logo picture,
  .sidebar-header .logo picture img {
    max-height: none;
  }

  .logo img {
    max-height: none;
    width: 100%;
  }

  .hamburger {
    display: none; /* PCではハンバーガー非表示 */
  }

  .global-nav {
    display: block !important; /* JSでトグルされてもPCでは常に表示 */
    position: static;
    border-top: none;
    box-shadow: none;
    padding: 0;
    background-color: transparent;
  }

  .global-nav a {
    padding: var(--space-sm);
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    color: #e2e2e2;
  }

  .global-nav a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--color-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: left center;
  }

  .global-nav ul#menu a:hover {
    background-color: #4c4c4c;
  }

  .global-nav ul#menu a:hover::before {
    transform: scaleY(1);
  }

  .hero-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../images/header_bg.png") no-repeat center top / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }
  .hero-logo {
    width: 25%;
    max-width: 450px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    transform: translateX(0);
  }

  /* PC Main Content */
  .main-content {
    padding-top: 0;
    margin-left: var(--sidebar-width);
    flex: 1;
    width: calc(100% - var(--sidebar-width));
  }

  .section {
    padding: var(--space-xl) var(--space-md);
  }
}
