:root {
  --ink: #392d2b;
  --muted: #74635f;
  --cream: #fff8f2;
  --paper: #fffdf9;
  --peach: #f7b8a8;
  --rose: #e87891;
  --tea: #85ad73;
  --mint: #78c9bd;
  --line: rgba(94, 63, 54, .16);
  --shadow: 0 24px 70px rgba(95, 55, 45, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 248, 242, .62), rgba(255, 248, 242, .62)),
    url("../ServiceBG_Country.png") center / cover fixed;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.8;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(255, 248, 242, .78);
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(18px);
}

.site-logo {
  font-weight: 900;
  letter-spacing: 0;
}

.site-logo span {
  display: block;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  transition: color .2s ease;
}

.site-nav a:hover {
  color: var(--rose);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #f5d7cd;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(57, 45, 43, .72), rgba(57, 45, 43, .14) 52%, rgba(255, 248, 242, .14)),
    linear-gradient(0deg, rgba(255, 248, 242, .98), rgba(255, 248, 242, .14) 42%, rgba(255, 248, 242, 0) 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 36px));
  padding: 160px 0 12svh;
  margin-left: clamp(18px, 7vw, 96px);
  color: #fffdf9;
  text-shadow: 0 4px 26px rgba(45, 28, 24, .42);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose);
  font-family: Poppins, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffe1d5;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 620px;
  margin-bottom: 30px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #fff;
  background: var(--rose);
  box-shadow: 0 14px 32px rgba(204, 74, 104, .3);
}

.button--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, .88);
}

.section {
  padding: clamp(70px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.section__heading {
  width: min(1080px, 100%);
  margin: 0 auto 34px;
}

.section__heading h2,
.store-panel h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.18;
  letter-spacing: 0;
}

.intro-grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.intro-grid article {
  min-height: 248px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(95, 55, 45, .08);
}

.intro-number {
  display: block;
  margin-bottom: 16px;
  color: var(--tea);
  font-family: Poppins, system-ui, sans-serif;
  font-size: 32px;
  font-weight: 700;
}

.intro-grid h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.intro-grid p,
.store-panel p {
  color: var(--muted);
}

.character-section {
  background: rgba(255, 253, 249, .68);
  overflow: hidden;
}

.character-carousel {
  position: relative;
  width: min(1220px, 100%);
  margin: 0 auto;
}

.character-track {
  display: grid;
  grid-auto-columns: minmax(280px, 370px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 28px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--peach) transparent;
}

.character-card {
  position: relative;
  min-height: 590px;
  display: grid;
  align-content: end;
  overflow: hidden;
  scroll-snap-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent), white 72%), #fff 62%);
  border: 1px solid color-mix(in srgb, var(--accent), white 52%);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.character-card img {
  position: absolute;
  top: 8px;
  left: 50%;
  width: min(94%, 340px);
  height: 430px;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
}

.character-card__text {
  position: relative;
  z-index: 1;
  min-height: 230px;
  padding: 26px;
  background: rgba(255, 253, 249, .92);
  border-top: 1px solid color-mix(in srgb, var(--accent), white 62%);
}

.character-card__label {
  margin-bottom: 4px;
  color: var(--accent);
  font-family: Poppins, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.character-card h3 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.2;
}

.character-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.9;
}

.carousel-button {
  position: absolute;
  z-index: 2;
  top: 42%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  box-shadow: 0 12px 30px rgba(201, 91, 111, .32);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.carousel-button--prev {
  left: -14px;
}

.carousel-button--next {
  right: -14px;
}

.gallery-section {
  background: rgba(255, 248, 242, .48);
}

.screenshot-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 10px solid #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.news-section {
  background: rgba(255, 253, 249, .58);
}

.x-panel {
  width: min(760px, 100%);
  min-height: 640px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 24px);
  background: rgba(255, 253, 249, .9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.x-panel iframe {
  border-radius: 8px;
}

.x-panel__fallback {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 180px;
  padding: 24px;
  text-align: center;
}

.x-panel__fallback p {
  margin: 0;
  color: var(--muted);
}

.twitter-timeline-rendered + .x-panel__fallback {
  display: none;
}

.store-section {
  background: rgba(255, 248, 242, .54);
}

.store-panel {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(30px, 5vw, 54px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.store-panel p {
  max-width: 620px;
  margin: 18px 0 0;
}

.store-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 206px;
  min-height: 62px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, .8);
  background: #201b1a;
  font-family: Poppins, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: 0 16px 34px rgba(32, 27, 26, .24);
  transition: transform .2s ease, box-shadow .2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(32, 27, 26, .3);
}

.store-badge small {
  display: block;
  font-size: 10px;
  font-weight: 600;
}

.store-badge__icon {
  font-size: 30px;
}

.footer {
  padding: 30px clamp(18px, 5vw, 72px);
  color: #fff9f5;
  background: #392d2b;
}

.footer__inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer p {
  margin: 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
  font-size: 14px;
}

.legal-page {
  min-height: 100svh;
  padding: 120px clamp(18px, 5vw, 72px) 72px;
  background: rgba(255, 248, 242, .54);
}

.legal-card {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legal-card h1 {
  color: var(--ink);
  font-size: clamp(32px, 5vw, 56px);
  text-shadow: none;
}

.legal-card h2 {
  margin: 34px 0 8px;
  font-size: 22px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--rose);
  font-weight: 800;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-logo span {
    max-width: calc(100vw - 36px);
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .hero {
    min-height: 88svh;
  }

  .hero__shade {
    background:
      linear-gradient(0deg, rgba(57, 45, 43, .76), rgba(57, 45, 43, .1) 62%),
      linear-gradient(0deg, rgba(255, 248, 242, .98), rgba(255, 248, 242, 0) 24%);
  }

  .hero__content {
    margin: 0 auto;
    padding-bottom: 10svh;
  }

  .intro-grid,
  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .store-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .hero__content {
    width: calc(100% - 28px);
  }

  .button {
    width: 100%;
  }

  .intro-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .character-track {
    grid-auto-columns: minmax(260px, 84vw);
  }

  .character-card {
    min-height: 560px;
  }

  .carousel-button {
    display: none;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__links {
    justify-content: flex-start;
  }
}
