:root {
  --nav-offset: 0;
}
html {
  scroll-padding-top: 0;
  overflow-x: hidden;
}
body {
  display: block;
  padding-top: 0;
  background-color: #ecedeb;
  background-image: none;
  min-height: auto;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
}
header {
  position: static;
  top: auto;
  left: auto;
  width: 100%;
  z-index: auto;
  text-align: center;
}
#footer {
  height: auto;
  background-color: transparent;
  background-image: none;
  display: block;
}
#bg_scroll_l {
  position: fixed;
  left: -20px;
  bottom: -10px;
  z-index: -1;
  opacity: 0.7;
}
#bg_scroll_r {
  position: fixed;
  right: -20px;
  bottom: -10px;
  z-index: -1;
  opacity: 0.7;
}
#bg_characters {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 800vh;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}
#bg_characters img {
  position: absolute;
  top: 0;
  max-width: 50vw;
  height: auto;
  max-height: 100vh;
  object-fit: contain;
}
#bg_characters .bgchara-left {
  left: 0;
  object-position: left top;
}
#bg_characters .bgchara-right {
  right: 0;
  object-position: right top;
}
#top_header {
  position: relative;
  width: 100%;
  max-width: 1960px;
  margin: 0 auto;
  text-align: center;
  padding-top: 0;
}
#top_header_image {
  max-width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 1120px) {
  #top_header_image {
    width: 1120px;
    height: auto;
  }
}
@media (max-width: 800px) {
  #bg_characters {
    display: none;
  }
  #top_header_image {
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 850px) {
  h2 {
    width: 80%;
    aspect-ratio: auto;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 0.5rem;
    padding-bottom: 2.05rem;
    display: block;
  }
  h2::before {
    background-image: url("../img/midashi_base.png");
  }
  h2 .h2-inner {
    white-space: normal;
    max-width: none;
  }
}
html.is-mobile-portrait h2 {
  width: 80%;
  aspect-ratio: auto;
  padding-left: 5%;
  padding-right: 5%;
  padding-top: 0.5rem;
  padding-bottom: 2.05rem;
  display: block;
}
html.is-mobile-portrait h2::before {
  background-image: url("../img/midashi_base.png");
}
html.is-mobile-portrait h2 .h2-inner {
  white-space: normal;
  max-width: none;
}
.container {
  position: relative;
}
section {
  position: relative;
  width: 80vw;
  max-width: 1120px;
  margin: 0 auto 40px;
  padding: 40px;
  background-color: rgba(255,235,245,0.65);
  box-shadow: rgba(255,235,245,0.65) 0 0 15px 5px;
  border-radius: 10px;
  text-align: left;
}
@media (max-width: 800px) {
  h2,
  .product-descriptions h3,
  #saien-overview p {
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  section {
    width: calc(100vw - 20px);
    padding: 10px;
  }
  #basic-set {
    padding: 10px;
  }
  #basic-set .product-card {
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: 100%;
  }
  #basic-set .product-card::before {
    content: none;
  }
}
.history-section {
  line-height: 2;
}
.history-centered {
  text-align: center;
}
#steam-demo iframe {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}
section p {
  color: #150702;
  line-height: 1.7;
  font-weight: normal;
  margin-top: 4px;
  margin-bottom: 14px;
  font-size: 1.18rem;
}
section p:last-child {
  margin-bottom: 4px;
}
.product-descriptions p {
  font-size: 1.18rem;
  color: #150702;
  text-indent: 0;
}
@media (max-width: 800px) {
  section p,
  .product-descriptions p {
    font-size: 0.95rem;
  }
}
section ul li {
  color: #150702;
  list-style: inside disc;
  padding-left: 1em;
  text-indent: -1em;
  margin-bottom: 8px;
}
.komidashi {
  width: 100%;
  font-size: 22px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  line-height: 2;
  text-align: center;
  background: no-repeat bottom/contain url("../ad/2605/images/komidashi.png");
  margin: 20px auto;
  color: #77566a;
  text-shadow: 0 1px 1px #8b7083;
}
.paragraph {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 14px;
}
.contents-content,
.contents-image {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contents-image {
  flex: 1 0 320px;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
@media (max-width: 640px) {
  .contents-image {
    flex-shrink: 1;
    flex-basis: 45%;
    min-width: 160px;
  }
}
.contents-image img {
  position: sticky;
  top: 0;
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.contents-content {
  flex: 1 2 auto;
}
.contents-megami {
  margin: 0 auto;
  text-align: center;
  max-width: 701px;
  min-width: 350px;
}
.contents-megami > img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
}
#basic-set .product-detail {
  align-items: center;
}
.product-card h3,
.megami5-text h3 {
  font-size: 1.35rem;
}
.megami5-layout {
  display: flex;
  align-items: center;
  gap: 24px;
}
.megami5-images {
  flex: 0 0 auto;
  width: 50%;
}
.megami5-images .contents-megami {
  min-width: 0;
  max-width: 100%;
}
.megami5-text {
  flex: 1 1 auto;
}
.megami5-text h3 {
  font-weight: bold;
  color: #444;
  margin-bottom: 0.3rem;
  padding: 0;
  border-bottom: none;
}
@media (max-width: 640px) {
  .megami5-layout {
    flex-direction: column;
  }
  .megami5-images {
    width: 100%;
  }
}
#bg_characters .bgchara-1,
#bg_characters .bgchara-2,
#bg_characters .bgchara-3,
#bg_characters .bgchara-4,
#bg_characters .bgchara-5,
#bg_characters .bgchara-6 {
  display: block;
}
#bg_characters .bgchara-1.bgchara-left {
  top: calc(1000px * 1);
}
#bg_characters .bgchara-1.bgchara-right {
  top: calc(1000px * 1);
}
#bg_characters .bgchara-2.bgchara-left {
  top: calc(1000px * 2);
}
#bg_characters .bgchara-2.bgchara-right {
  top: calc(1000px * 2);
}
#bg_characters .bgchara-3.bgchara-left {
  top: calc(1000px * 3);
}
#bg_characters .bgchara-3.bgchara-right {
  top: calc(1000px * 3);
}
#bg_characters .bgchara-4.bgchara-left {
  top: calc(1000px * 4);
}
#bg_characters .bgchara-4.bgchara-right {
  top: calc(1000px * 4);
}
#bg_characters .bgchara-5.bgchara-left {
  top: calc(1000px * 5);
}
#bg_characters .bgchara-5.bgchara-right {
  top: calc(1000px * 5);
}
#bg_characters .bgchara-6.bgchara-left {
  top: calc(1000px * 6);
}
#bg_characters .bgchara-6.bgchara-right {
  top: calc(1000px * 6);
}
#bg_characters .bgchara-1.bgchara-left.second {
  top: calc(1000px * 7);
}
#bg_characters .bgchara-1.bgchara-right.second {
  top: calc(1000px * 7);
}
#bg_characters .bgchara-2.bgchara-left.second {
  top: calc(1000px * 8);
}
#bg_characters .bgchara-2.bgchara-right.second {
  top: calc(1000px * 8);
}
#bg_characters .bgchara-3.bgchara-left.second {
  top: calc(1000px * 9);
}
#bg_characters .bgchara-3.bgchara-right.second {
  top: calc(1000px * 9);
}
#bg_characters .bgchara-4.bgchara-left.second {
  top: calc(1000px * 10);
}
#bg_characters .bgchara-4.bgchara-right.second {
  top: calc(1000px * 10);
}
#bg_characters .bgchara-5.bgchara-left.second {
  top: calc(1000px * 11);
}
#bg_characters .bgchara-5.bgchara-right.second {
  top: calc(1000px * 11);
}
.backtotop {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 99;
}
.lp-back-to-top {
  text-align: center;
  padding: 40px 0 20px;
}
#catchcopy {
  text-align: center;
  padding: 50px auto;
  background-color: transparent;
  box-shadow: none;
}
.catchcopy-years {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  color: #8b6070;
  letter-spacing: 0.5em;
  margin-bottom: 0.5em;
}
.catchcopy-headline {
  display: block;
  max-width: 700px;
  width: 80%;
  height: auto;
  margin: 0.2em auto 0.3em;
}
.catchcopy-game-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #62381c;
  letter-spacing: 0.3em;
  margin: 0.6em 0;
}
.catchcopy-desc {
  font-size: 1rem;
  color: #4a2a20;
  line-height: 2;
  margin-top: 1.5em;
  opacity: 0.85;
}
#comic {
  padding: 20px 0 16px;
  overflow: hidden;
}
.comic-viewer {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.comic-btn {
  flex-shrink: 0;
  width: 44px;
  background: transparent;
  border: none;
  color: #1a0a06;
  font-size: 1.8rem;
  cursor: pointer;
  transition: text-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.comic-btn:hover {
  background: transparent;
  text-shadow: 0 0 8px #ff4fd1, 0 0 8px #ff4fd1;
}
.comic-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
@media (max-width: 480px) {
  .comic-btn {
    width: 28px;
    font-size: 1.2rem;
  }
}
.comic-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding: 0 20px 12px;
  user-select: none;
  scroll-behavior: smooth;
}
.comic-scroll-wrapper:active {
  cursor: grabbing;
}
.comic-scroll-track {
  display: flex;
  gap: 4px;
  width: max-content;
}
.comic-page {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 78vh;
  max-height: 800px;
}
.comic-page img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  max-height: 800px;
  object-fit: contain;
  border: 1px solid rgba(0,0,0,0.08);
  -webkit-user-drag: none;
  pointer-events: none;
}
.comic-footer-note {
  font-size: 0.8rem;
  color: #6a5060;
  text-align: center;
  margin-top: 8px;
  padding: 0 20px;
  opacity: 0.8;
}
@media (max-width: 800px) {
  .comic-scroll-wrapper {
    padding: 0 0 12px;
  }
  .comic-page {
    height: auto;
    max-height: none;
    aspect-ratio: 2/3;
  }
  .comic-page img {
    max-height: none;
    height: auto;
    width: 100%;
  }
}
#characters {
  padding: 0;
  overflow: hidden;
}
.chara-carousel {
  width: 100%;
  user-select: none;
}
.chara-inner {
  display: flex;
  align-items: center;
}
.chara-track {
  flex: 1;
  position: relative;
  aspect-ratio: 4/3;
  cursor: grab;
}
.chara-track:active {
  cursor: grabbing;
}
.chara-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  pointer-events: none;
  -webkit-user-drag: none;
}
.chara-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.chara-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #1a0a06;
  font-size: 1.8rem;
  width: 48px;
  height: 80px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.chara-btn:hover {
  background: transparent;
  text-shadow: 0 0 8px #ff4fd1, 0 0 8px #ff4fd1;
}
.chara-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 12px;
}
.chara-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.25s, opacity 0.25s;
  opacity: 0.55;
}
.chara-dot img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  transition: filter 0.25s;
}
.chara-dot.active {
  transform: scale(1.15);
  opacity: 1;
}
.chara-dot.active img {
  filter: brightness(1.1) drop-shadow(0 0 0.5rem #ff4fd1) drop-shadow(0 0 0.5rem #ff4fd1);
}
.chara-dot:hover {
  opacity: 0.85;
}
.chara-btn-sp {
  display: none;
}
.chara-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 480px) {
  #characters {
    overflow: visible;
  }
  .chara-carousel {
    margin-left: -10px;
    margin-right: -10px;
    width: 100vw;
    max-width: 100vw;
  }
  .chara-btn-pc {
    display: none;
  }
  .chara-btn-sp {
    display: flex;
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #1a0a06;
    font-size: 1.3rem;
    width: 34px;
    height: 44px;
    cursor: pointer;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  .chara-btn-sp:hover {
    text-shadow: 0 0 8px #ff4fd1, 0 0 8px #ff4fd1;
  }
  .chara-dots {
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
    padding: 8px 0;
  }
  .chara-dot {
    width: 36px;
    height: 36px;
  }
}
#game-intro {
  padding: 30px 40px;
}
.game-world {
  text-align: center;
  margin-bottom: 30px;
}
.game-world img {
  max-width: 100%;
  height: auto;
}
.game-section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  color: #62381c;
  border-left: 4px solid #8b4513;
  padding-left: 12px;
  margin: 30px 0 16px;
}
.game-outline-block {
  margin-bottom: 20px;
}
.game-outline-block > img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 12px;
}
.game-outline-text-pair {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.game-outline-text-pair > img {
  flex: 0 0 auto;
  max-width: 40%;
  height: auto;
}
.game-outline-texts {
  flex: 1 1 auto;
  font-size: 0.95rem;
  line-height: 1.85;
  color: #150702;
}
.game-rule-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.game-rule-step {
  background: rgba(255,245,250,0.6);
  border-radius: 6px;
  padding: 12px;
  text-align: center;
}
.game-rule-step img {
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
}
.game-rule-step p {
  text-align: left;
}
@media (max-width: 800px) {
  .game-outline-text-pair {
    flex-direction: column;
  }
  .game-outline-text-pair > img {
    max-width: 100%;
  }
  #game-intro {
    padding: 16px 10px;
  }
}
.history-note {
  font-size: 0.85rem;
  opacity: 0.7;
  font-style: italic;
  border-top: 1px solid rgba(139,69,19,0.2);
  padding-top: 12px;
  margin-top: 16px;
}
.product-release-info {
  text-align: center;
  margin-bottom: 28px;
  padding: 16px;
  background: rgba(139,69,19,0.07);
  border-radius: 6px;
  border: 1px solid rgba(139,69,19,0.2);
}
.product-release-badge {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  color: #62381c;
  margin-bottom: 4px;
}
.product-release-general {
  font-size: 1rem;
  color: #4a2a20;
  margin: 0;
}
.product-note {
  opacity: 0.8;
  margin-top: 16px;
}
.product-name {
  font-family: 'Noto Serif JP', serif;
  color: #2b140b;
  margin: 0 0 12px;
  line-height: 1.6;
}
.social-link-wrap {
  text-align: center;
  margin: 24px 0 12px;
}
.social-x-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.social-x-btn:hover {
  opacity: 0.8;
  color: #fff;
}
.social-x-btn svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: #fff;
  flex-shrink: 0;
}
.social-hashtag {
  text-align: center;
  font-size: 0.9rem;
  color: #62381c;
  letter-spacing: 0.1em;
  opacity: 0.8;
}
.beginner-events-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 12px;
}
.beginner-events-table th {
  background: #4a2a2a;
  color: #fff;
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
}
.beginner-events-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.beginner-events-table .beginner-event-row {
  cursor: pointer;
  transition: background 0.15s;
}
.beginner-events-table .beginner-event-row:hover {
  background: rgba(255,79,209,0.08);
}
.beginner-events-status {
  text-align: center;
  padding: 16px 0;
  color: #6a5060;
  font-size: 0.9rem;
}
@media (max-width: 800px) {
  #beginner-events-list {
    width: 100vw;
    margin-left: -10px;
    overflow-x: auto;
  }
  .beginner-events-table {
    font-size: 0.82rem;
  }
  .beginner-events-table th,
  .beginner-events-table td {
    padding: 6px 8px;
  }
}
