:root {
  --primary: #69C27D;
  --primary-dark: #2F7A46;
  --accent: #F7B955;
  --brown: #6B5344;
  --text: #2F3437;
  --muted: #6B7280;
  --bg: #FAFCFA;
  --card: #FFFFFF;
  --border: #E5EFE7;
  --warning-bg: #FFF7E6;
  --warning-border: #FAD79B;
  --shadow: 0 10px 30px rgba(47, 52, 55, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(105, 194, 125, 0.12), transparent 36rem),
    radial-gradient(circle at top right, rgba(247, 185, 85, 0.14), transparent 32rem),
    var(--bg);
  line-height: 1.85;
}

a {
  color: var(--primary-dark);
  font-weight: 700;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brown);
  text-decoration: none;
  font-weight: 900;
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: auto;
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--primary-dark);
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.brand-logo-block {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 auto 32px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  white-space: nowrap;
  font-size: 13px;
}

.language-switcher a {
  color: var(--muted);
  text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a[aria-current="page"] {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brand-logo-block img {
  max-width: 290px;
  width: min(85%, 290px);
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.hero-logo {
  max-width: 520px;
  width: min(100%, 520px);
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.logo-block {
  text-align: center;
  margin: 18px 0 36px;
}

.logo-block img {
  max-width: 520px;
  width: min(100%, 520px);
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.brand-hero-logo {
  width: min(100%, 260px);
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-brand {
  text-align: center;
  padding: 56px 0 48px;
}

.hero-brand .hero-card {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 32px;
  padding: 48px 36px;
}

.hero-brand h1 {
  color: var(--primary-dark);
}

.hero-brand .lead {
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.hero {
  padding: 48px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 3vw, 36px);
  align-items: stretch;
}

.hero-card,
.card,
.feature-card,
.screenshot-card,
.character-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: 28px;
  padding: clamp(32px, 3.5vw, 44px);
  height: 100%;
}

.hero-visual {
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(105, 194, 125, 0.95), rgba(247, 185, 85, 0.9));
  box-shadow: var(--shadow);
  color: white;
  padding: clamp(28px, 3.2vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  height: 100%;
}

.hero-visual img {
  width: 168px;
  height: 150px;
  border-radius: 34px;
  background: white;
  align-self: flex-end;
  box-shadow: 0 16px 32px rgba(47, 52, 55, 0.18);
}

.hero-visual .brand-hero-logo {
  width: min(100%, 260px);
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  align-self: center;
  margin: 0 auto;
}

.hero-visual > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero-visual > div > * {
  margin: 0;
}

.hero-visual .app-hero-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 34px;
  background: white;
  align-self: flex-end;
  box-shadow: 0 16px 32px rgba(47, 52, 55, 0.18);
}

.hero-visual strong {
  max-width: 18em;
  font-size: clamp(24px, 2.35vw, 28px);
  line-height: 1.35;
  display: block;
}

.hero-visual p {
  max-width: 34em;
  line-height: 1.75;
}

.badge {
  display: inline-block;
  background: #EAF7EE;
  color: var(--primary-dark);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.badge-app {
  background: rgba(247, 185, 85, 0.22);
  color: #7C4A03;
}

h1 {
  margin: 16px 0 10px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.18;
}

#hero-heading {
  max-width: 12em;
  margin: 16px 0 22px;
  font-size: clamp(36px, 3.7vw, 46px);
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: normal;
}

#hero-heading span {
  display: block;
}

.hero-card .lead {
  max-width: 34em;
  margin: 0;
  line-height: 1.8;
}

.hero-card .button-row {
  justify-content: flex-start;
  gap: 12px 16px;
  margin-top: 28px;
}

.page-title {
  color: var(--primary-dark);
}

h2 {
  margin-top: 34px;
  color: var(--primary-dark);
  font-size: 26px;
  line-height: 1.35;
}

.section-intro {
  margin-top: 0;
}

.card h2:first-child,
.faq-item h2,
.character-card h2 {
  margin-top: 0;
}

h3 {
  margin-top: 24px;
  font-size: 20px;
  color: var(--brown);
}

.lead,
.page-description {
  color: var(--muted);
  font-size: 18px;
}

.page-description {
  text-align: center;
  margin-bottom: 32px;
}

.card {
  border-radius: 22px;
  padding: 28px;
  margin: 28px 0;
}

.legal-prose p + p {
  margin-top: 1rem;
}

.meta-line {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 1.5rem;
}

.feature-grid,
.character-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.feature-grid.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.character-card {
  border-radius: 20px;
  padding: 24px;
}

.character-card {
  text-align: center;
}

.character-image {
  width: 160px;
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
}

.feature-card .icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 8px;
}
.character-card .role {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  margin: 4px 0 10px;
}

.character-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.screenshot-section {
  margin-top: 42px;
}

.screenshot-gallery,
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.screenshot-card,
.screenshot-grid figure {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 12px 12px 10px;
  box-shadow: var(--shadow);
  text-align: center;
  margin: 0;
}

.screenshot-card img,
.screenshot-grid img {
  width: 88%;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 16px;
  object-fit: contain;
}

.screenshot-card p,
.screenshot-grid figcaption {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 4px 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #3D2E12;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(247, 185, 85, 0.35);
}

.button.secondary {
  background: white;
  color: var(--primary-dark);
  border: 1px solid var(--border);
  box-shadow: none;
}

.button.green {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 20px rgba(105, 194, 125, 0.28);
}

.button.is-disabled {
  background: var(--muted);
  color: white;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

/* Brand movie and story */
.brand-movie-page {
  max-width: 1180px;
}

.brand-movie-intro {
  padding: 18px 0 34px;
  text-align: center;
}

.brand-movie-eyebrow,
.brand-story-kicker {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-movie-intro h1 {
  color: var(--brown);
  margin-top: 8px;
}

.brand-movie-frame {
  margin: 34px auto 0;
  max-width: 1040px;
  overflow: hidden;
  border: 1px solid rgba(47, 122, 70, 0.18);
  border-radius: 28px;
  background: #eef6ec;
  box-shadow: 0 18px 50px rgba(47, 52, 55, 0.12);
}

.brand-movie-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #eef6ec;
}

.brand-movie-message {
  max-width: 760px;
  margin: 34px auto 0;
}

.brand-movie-message p {
  margin: 10px 0;
}

.brand-movie-message .brand-movie-tagline {
  margin-bottom: 18px;
  color: var(--primary-dark);
  font-size: 28px;
  font-weight: 900;
}

.brand-story {
  margin-top: 72px;
}

.brand-story-heading {
  max-width: 700px;
  margin: 0 auto 32px;
  text-align: center;
}

.brand-story-heading h2 {
  margin: 0 0 10px;
  color: var(--brown);
  font-size: 38px;
}

.brand-story-heading > p:last-child {
  color: var(--muted);
}

.brand-story-list {
  display: grid;
  gap: 36px;
}

.brand-story-item {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(47, 122, 70, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.brand-story-item.is-reversed {
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
}

.brand-story-item.is-reversed img {
  order: 2;
}

.brand-story-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.brand-story-copy {
  padding: 34px;
}

.brand-story-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf7ee;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 900;
}

.brand-story-copy h3 {
  margin: 6px 0 14px;
  color: var(--brown);
  font-size: 26px;
}

.brand-story-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.brand-movie-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: stretch;
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid rgba(47, 122, 70, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.brand-movie-card > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.brand-movie-card-copy {
  display: flex;
  padding: 32px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.brand-movie-card-copy h2 {
  margin: 16px 0 10px;
  color: var(--brown);
}

.brand-movie-card-copy p {
  margin: 0 0 22px;
  color: var(--muted);
}

.brand-movie-card-copy .button {
  margin-top: 0;
}

.warning {
  color: #7C4A03;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  padding: 18px;
  border-radius: 16px;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

ul {
  padding-left: 1.3rem;
}

li {
  margin: 0.3rem 0;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 26px 0;
}

.faq-item + .faq-item {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 16px;
}

.footer-nav a {
  font-size: 14px;
}

.footer-sep {
  color: var(--border);
  user-select: none;
}

.footer-tagline {
  color: var(--brown);
  font-weight: 700;
  margin: 0 0 8px;
}

.footer-motto {
  margin: 0 0 8px;
}

.footer-note {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 1040px) {
  .language-switcher {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  #hero-heading {
    max-width: none;
  }

  .feature-grid.four-col,
  .screenshot-gallery,
  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .brand-story-item,
  .brand-story-item.is-reversed,
  .brand-movie-card {
    grid-template-columns: 1fr;
  }

  .brand-story-item.is-reversed img {
    order: 0;
  }

  .brand-story-item img,
  .brand-movie-card > img {
    min-height: 0;
    height: auto;
  }
}

@media (max-width: 700px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  main {
    padding: 32px 18px 56px;
  }

  .hero-card,
  .hero-visual,
  .hero-brand .hero-card {
    border-radius: 22px;
    padding: 28px 22px;
  }

  #hero-heading {
    margin-bottom: 18px;
    font-size: 32px;
    line-height: 1.32;
  }

  .hero-card .button-row {
    gap: 12px;
  }

  .feature-grid,
  .feature-grid.four-col,
  .character-grid,
  .screenshot-gallery,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo-block img {
    width: min(72%, 246px);
  }

  .screenshot-card,
  .screenshot-grid figure {
    max-width: 360px;
    margin: 0 auto;
  }

  .brand-movie-intro {
    padding-top: 8px;
  }

  .brand-movie-frame {
    margin-top: 24px;
    border-radius: 18px;
  }

  .brand-movie-message .brand-movie-tagline {
    font-size: 23px;
  }

  .brand-story {
    margin-top: 52px;
  }

  .brand-story-heading h2 {
    font-size: 32px;
  }

  .brand-story-item,
  .brand-movie-card {
    border-radius: 20px;
  }

  .brand-story-copy,
  .brand-movie-card-copy {
    padding: 24px 22px;
  }

  .brand-story-copy h3 {
    font-size: 23px;
  }

  .brand-movie-card-copy .button {
    width: 100%;
    text-align: center;
  }
}
