/* common.css
 * Shared + migrated base styles from former symphonic2.css
 */

@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@500;700&family=Oxanium:wght@500;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");

html,
body {
  --font-line-seed-jp: "LINE Seed JP", "LINE Seed JP_TTF", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  background: #040000;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  width: 100%;
  padding: 20px 16px;
}

.global-nav {
  width: min(100%, 1280px);
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 0;
  padding: 10px 12px;
}

.global-nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.global-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 12px;
}

.global-nav__list li {
  flex: 1;
  text-align: left;
}

.global-nav__list a {
  display: block;
  font-family: "Oxanium", "M PLUS 1p", "Zen Kaku Gothic New", sans-serif;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 10px 8px;
  border-radius: 6px;
  background: transparent;
  white-space: nowrap;
  font-size: clamp(18px, 1.5vw, 24px);
  position: relative;
  padding-bottom: 24px;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;

}

.global-nav__list a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.global-nav__list a.is-closed {
  opacity: 0.68;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 180, 235, 0.16);
}

.global-nav__list a.is-closed::after {
  content: "CLOSED";
  position: absolute;
  right: 8px;
  top: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(70, 20, 56, 0.8);
  border: 1px solid rgba(255, 180, 235, 0.3);
  color: #ffd8f5;
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1;
  box-shadow: 0 0 8px rgba(255, 95, 210, 0.16);
}

.global-nav__list a.is-closed:hover,
.global-nav__list a.is-closed:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}

.global-nav__list a.is-closed .nav-en,
.global-nav__list a.is-closed .nav-ja {
  opacity: 0.9;
  text-shadow:
    0 0 2px rgba(255, 145, 230, 0.35),
    0 0 6px rgba(255, 95, 210, 0.18);
}

.global-nav__list a.is-closed[aria-disabled="true"] {
  pointer-events: none;
}

.page-main {
  min-height: 60vh;
  flex: 1 0 auto;
}

@keyframes navDropIn {
  0% {
    opacity: 0;
    transform: translateY(-40px) scaleY(0.92);
  }
  70% {
    opacity: 1;
    transform: translateY(6px) scaleY(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.site-header {
  animation: navDropIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: top center;
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    animation: none;
  }
}

/* page-wide background */
body {
  background-color: #040000;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../image/top/mv.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  opacity: 0.25;
  filter: blur(4px);
  transform: scale(1.04);
  z-index: 0;
  pointer-events: none;
}

.site-header,
.page-main {
  position: relative;
  z-index: 1;
}


@media (max-width: 767px) {
  .site-header {
    padding: 10px 8px;
  }

  .global-nav {
    width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .global-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .global-nav__list {
    display: flex;
    margin-top: 8px;
    margin-left: auto;
    margin-right: 0;
    width: 30%;
    min-width: 150px;
    flex-direction: column;
    gap: 4px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 0;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.32s ease, visibility 0.28s;
  }

  .global-nav.is-open .global-nav__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 480px;
  }

  .global-nav__list li { width: 100%; }
  .global-nav__list a { text-align: center; padding: 10px 8px; }
  .global-nav__list a.is-closed::after { right: 10px; top: 6px; font-size: 9px; }

}

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

}

/* common footer (rebuild) */
.site-footer {
  width: 100%;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.footer-info-bar {
  width: min(100%, 1280px);
  font-family: "Oxanium", "M PLUS 1p", "Zen Kaku Gothic New", sans-serif;
  position: relative;
  z-index: 2;
  height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(34px, 3.8vw, 56px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(100deg, rgb(59, 44, 143) 0%, rgb(125, 45, 151) 35%, rgb(217, 77, 158) 68%, rgb(240, 106, 169) 100%);
}

.footer-top-visual {
  width: min(100%, 1280px);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

.footer-top-visual__mv {
  width: 40%;
  aspect-ratio: 1417 / 2000;
  background-image: url("../image/top/mv.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0) 100%
  );
}

.footer-top-visual__logo {
  width: 60%;
  min-height: 0;
  background-image: url("../image/common/logo_smp.png");
  background-repeat: no-repeat;
  background-position: center 20px;
  background-size: min(80%, 560px) auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(178px, 24.5vw, 308px) 16px 16px;
  gap: 8px;
}

.footer-bottom {
  width: min(100%, 1280px);
  position: relative;
  z-index: 2;
  height: 300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(100deg, rgb(59, 44, 143) 0%, rgb(125, 45, 151) 35%, rgb(217, 77, 158) 68%, rgb(240, 106, 169) 100%);
}

.footer-bottom__logo-link {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-bottom__logo-link:hover {
  transform: scale(1.08);
  filter: brightness(1.08);
}

.footer-bottom__logo-link img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(80vw, 420px);
}

@media (max-width: 767px) {
  .footer-top-visual {
    display: block;
    width: min(100%, 1280px);
  }

  .footer-top-visual__mv {
    display: none;
  }

  .footer-top-visual__logo {
    width: 100%;
    min-height: 0;
    background-position: center 16px;
    background-size: min(78%, 440px) auto;
    padding: clamp(144px, 40vw, 222px) 10px 12px;
    gap: 0;
  }

  .footer-product-meta {
    width: min(98%, 640px);
    font-size: clamp(18px, 5.2vw, 24px);
  }

  .footer-specs {
    width: min(100%, 680px);
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-info-bar {
    height: 76px;
    font-size: 28px;
  }

  .footer-bottom {
    height: 220px;
  }

  .footer-bottom__logo-link img {
    max-width: 70vw;
  }
}

.global-nav__list .nav-en {
  display: block;
  position: relative;
  padding-bottom: 8px;
  text-shadow:
    0 0 4px rgba(255, 110, 220, 0.95),
    0 0 10px rgba(255, 80, 200, 0.75),
    0 0 18px rgba(255, 40, 180, 0.55);
  transform: scale(1);
  transition: transform 0.28s ease, text-shadow 0.35s ease;
}

.global-nav__list .nav-en::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2px;
  width: 148px;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.global-nav__list .nav-ja {
  display: block;
  margin-top: 6px;
  font-family: var(--font-line-seed-jp);
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: 0.02em;
  opacity: 0.95;
  font-weight: 700;
  text-shadow:
    0 0 3px rgba(255, 120, 220, 0.75),
    0 0 8px rgba(255, 80, 200, 0.45);
  transform: scale(1);
  transition: transform 0.28s ease, text-shadow 0.35s ease;
}

.global-nav__list a:hover .nav-en,
.global-nav__list a:focus-visible .nav-en {
  transform: scale(1.08);
  text-shadow:
    0 0 4px rgba(120, 255, 170, 0.95),
    0 0 10px rgba(70, 255, 145, 0.8),
    0 0 18px rgba(30, 255, 130, 0.65);
}

.global-nav__list a:hover .nav-ja,
.global-nav__list a:focus-visible .nav-ja {
  transform: scale(1.05);
  text-shadow:
    0 0 3px rgba(130, 255, 180, 0.85),
    0 0 8px rgba(70, 255, 145, 0.55);
}

.global-nav__list .nav-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(4px);
}

.global-nav__list a.is-active {
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 120, 220, 0.65),
    0 0 14px rgba(255, 80, 200, 0.35);
}

.global-nav__list a.is-active .nav-en,
.global-nav__list a.is-active .nav-ja {
  color: #ffffff;
  text-shadow:
    0 0 5px rgba(255, 135, 230, 0.95),
    0 0 12px rgba(255, 85, 205, 0.75),
    0 0 22px rgba(255, 55, 185, 0.6);
}

.global-nav__list a.is-active .nav-en::after {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 150, 235, 1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.story-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
}

/* shared top caption for non-index pages */
.story-page .site-header,
.character-page .site-header,
.gallery-page .site-header,
.download-page .site-header,
.shop-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
}

.story-page .story-main,
.character-page .sub-main,
.gallery-page .sub-main,
.download-page .sub-main,
.shop-page .sub-main {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0;
}

.story-page .story-caption,
.character-page .sub-caption,
.gallery-page .sub-caption,
.download-page .sub-caption,
.shop-page .sub-caption {
  width: min(100%, 1280px);
  margin: 0 auto;
  min-height: clamp(180px, 24vw, 500px);
  position: relative;
  background-image: url("../image/common/caption.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.story-page .story-caption::before,
.character-page .sub-caption::before,
.gallery-page .sub-caption::before,
.download-page .sub-caption::before,
.shop-page .sub-caption::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.45) 18%,
    rgba(0, 0, 0, 0) 30%
  );
  pointer-events: none;
}

@media (max-width: 767px) {
  .story-page .story-main,
  .character-page .sub-main,
  .gallery-page .sub-main,
  .download-page .sub-main,
  .shop-page .sub-main {
    padding: 0;
  }

  .story-page .story-caption::after,
  .character-page .sub-caption::after,
  .gallery-page .sub-caption::after,
  .download-page .sub-caption::after,
  .shop-page .sub-caption::after {
    content: "";
    position: absolute;
    left: 2%;
    top: 8%;
    width: min(36%, 220px);
    aspect-ratio: 1116 / 639;
    background-image: url("../image/common/logo.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
  }
}

.story-page .sub-title-bar,
.character-page .sub-title-bar,
.gallery-page .sub-title-bar,
.download-page .sub-title-bar,
.shop-page .sub-title-bar {
  width: min(100%, 1280px);
  height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Oxanium", "M PLUS 1p", "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(34px, 3.8vw, 56px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(100deg, rgb(59, 44, 143) 0%, rgb(125, 45, 151) 35%, rgb(217, 77, 158) 68%, rgb(240, 106, 169) 100%);
}

@media (max-width: 767px) {
  .story-page .sub-title-bar,
  .character-page .sub-title-bar,
  .gallery-page .sub-title-bar,
  .download-page .sub-title-bar,
  .shop-page .sub-title-bar {
    height: 76px;
    font-size: 28px;
  }
}

.footer-info-bar__text {
  display: inline-block;
  transform: scaleY(0.7);
  transform-origin: center;
  letter-spacing: 0.02em;
}

.sub-title-bar__text {
  display: inline-block;
  transform: scaleY(0.7);
  transform-origin: center;
  letter-spacing: 0.02em;
}

.footer-product-meta {
  position: static;
  width: min(92%, 620px);
  text-align: center;
  color: #fff;
  font-family: "Oxanium", "M PLUS 1p", "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(22px, 1.9vw, 32px);
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-product-meta p {
  margin: 0;
  line-height: 1;
}

.footer-product-meta p:last-child {
  margin-bottom: 0;
}

.footer-product-meta p {
  transform: scaleY(0.7);
  transform-origin: center;
}

.footer-product-meta .meta-label {
  display: inline-block;
  font-size: 0.68em;
  letter-spacing: 0.06em;
  opacity: 0.95;
  line-height: 1;
}

.footer-product-meta p + p {
  margin-top: 4px;
}

.footer-product-meta .meta-label,
.footer-product-meta .meta-name {
  display: block;
}

.footer-product-meta .meta-label {
  margin-bottom: 5px;
  color: #ffd6f4;
  text-shadow:
    0 0 3px rgba(255, 145, 230, 0.95),
    0 0 8px rgba(255, 95, 210, 0.85),
    0 0 16px rgba(255, 55, 190, 0.65);
}

.footer-product-meta .meta-name {
  line-height: 1;
  color: #d9ffe8;
  text-shadow:
    0 0 3px rgba(120, 255, 170, 0.95),
    0 0 8px rgba(70, 255, 145, 0.78),
    0 0 15px rgba(35, 235, 120, 0.58);
}

.footer-product-meta .meta-symbol {
  color: #fff;
  text-shadow: none;
}

.footer-specs {
  position: static;
  width: min(99%, 820px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.footer-specs__row {
  display: grid;
  grid-template-columns: minmax(104px, 34%) 1fr;
  align-items: stretch;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 180, 235, 0.55);
  box-shadow: 0 0 10px rgba(255, 120, 220, 0.25);
}

.footer-specs__row dt,
.footer-specs__row dd {
  margin: 0;
  padding: 6px 9px;
  font-family: "Oxanium", "M PLUS 1p", "Zen Kaku Gothic New", sans-serif;
  transform: scaleY(0.7);
  transform-origin: center;
  line-height: 1.05;
  white-space: nowrap;
}

.footer-specs__row dt {
  background: linear-gradient(100deg, rgba(104, 46, 146, 0.96) 0%, rgba(218, 83, 167, 0.96) 100%);
  color: #fff;
  text-align: center;
  font-size: clamp(15px, 1.16vw, 21px);
  letter-spacing: 0.03em;
}

.footer-specs__row dd {
  background: rgba(255, 255, 255, 0.92);
  color: #1f1630;
  font-size: clamp(13px, 0.98vw, 17px);
  font-weight: 700;
  letter-spacing: 0.01em;
  transform: scaleY(0.82);
  transform-origin: center;
}

@media (max-width: 1100px) {
  .footer-specs {
    grid-template-columns: 1fr;
  }
}

