/* One Team. Global — aligned with the Japanese official-site design */
:root {
  --fg: #1d2330;
  --muted: #5a6475;
  --accent: #5ba6ff;
  --card: #fff;
  --stroke: #e5e7eb;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --topbar-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; margin: 0; overflow-x: hidden; }
body {
  color: var(--fg);
  background:
    radial-gradient(1200px 800px at 20% 0%, #f6f8fb, #fff 40%),
    radial-gradient(1000px 700px at 80% 100%, #f8fbff, #fff 35%);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

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

#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  filter: blur(14px) saturate(130%) contrast(112%);
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.topbar-inner {
  min-height: var(--topbar-h);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.navbar-logo img {
  width: auto;
  height: 40px;
  transition: transform 0.3s ease;
}
.navbar-logo:hover img { transform: scale(1.05); }
.topnav { display: flex; align-items: center; gap: 0.6rem; }
.topnav a {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.3s ease;
}
.topnav a:hover {
  color: var(--accent);
  background: rgba(91, 166, 255, 0.1);
  transform: translateY(-1px);
}
.navbar-right { display: flex; align-items: center; gap: 8px; }
.my-apps-button {
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
  background: #43a2d8;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.3s ease;
}
.my-apps-button:hover {
  background: #2980b9;
  box-shadow: 0 4px 12px rgba(67, 162, 216, 0.4);
  transform: translateY(-2px);
}

.hamb {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
}
.hamb span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--fg);
}
.drawer {
  position: fixed;
  top: var(--topbar-h);
  right: 0;
  z-index: 60;
  width: min(84vw, 360px);
  height: calc(100vh - var(--topbar-h));
  border-left: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -16px 0 28px rgba(0, 0, 0, 0.12);
}
.drawer[hidden] { display: none; }
.drawer a {
  display: block;
  min-height: 48px;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--stroke);
  text-decoration: none;
}

main, footer { position: relative; z-index: 1; }
header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10vh 6vw 8vh;
  text-align: center;
}
.lead {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 22px);
}
h1 {
  margin: 0.1rem 0 0.8rem;
  font-size: clamp(36px, 6vw, 68px);
  letter-spacing: 0.02em;
}
.edition {
  margin: 0;
  color: #43a2d8;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8vh 6vw;
  scroll-margin-top: var(--topbar-h);
}
.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(26px, 3.8vw, 40px);
}
.section p {
  max-width: 72ch;
  color: var(--muted);
}
.section-subtitle { margin: -0.6rem 0 1.2rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  z-index: 1;
  max-width: 380px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.card:hover {
  border-color: transparent;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 0 0 2px rgba(91, 166, 255, 0.2);
  transform: translateY(-8px);
}
.thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  background: linear-gradient(135deg, #eef3ff, #f7f0ff);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.card:hover .thumb img { transform: scale(1.06); }
.card-body {
  flex: 1;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(to bottom, #fff, #fcfdfd);
}
.tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 8px;
  background: #1c65ad;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.title {
  margin-bottom: -4px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.4;
}
.reading {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.meta { color: var(--muted); font-size: 13px; font-weight: 500; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.btn {
  min-height: 42px;
  padding: 0.65rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: #fff;
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s ease;
}
.btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.store1, .primary { border-color: #43a2d8; background: #43a2d8; color: #fff; }
.store2 { border-color: #1d2330; background: #1d2330; color: #fff; }
.coming-soon {
  min-width: 132px;
  border-color: rgba(67, 162, 216, 0.28);
  background: rgba(67, 162, 216, 0.1);
  color: #247fae;
  cursor: default;
}
.coming-soon:hover {
  border-color: rgba(67, 162, 216, 0.28);
  transform: none;
}
.availability { color: var(--muted); font-size: 0.72rem; }
.contact-button { margin-top: 0.6rem; }

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.policy-card { max-width: none; }
.policy-thumb {
  height: 190px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.policy-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.policy-card:hover .policy-thumb img { transform: scale(1.025); }
.policy-tag-ip { background: #8b5cf6; }
.policy-tag-streaming { background: #d19830; }
.policy-tag-privacy { background: #3b82f6; }

#shared-footer { min-height: 86px; }
.shared-footer-frame {
  position: relative;
  z-index: 20;
  width: 100%;
  min-height: 86px;
  display: block;
  border: 0;
  background: #333;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .topnav, .navbar-right { display: none; }
  .hamb { display: block; }
  .policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --topbar-h: 56px; }
  .topbar-inner { min-height: var(--topbar-h); padding: 0.4rem 0.6rem; }
  .navbar-logo img { height: 35px; }
  header { padding: 8vh 4vw 6vh; }
  .section { padding: 6vh 4vw; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .policy-grid { grid-template-columns: 1fr; gap: 14px; }
  .card { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  #scene { display: none; }
  .reveal { opacity: 1; transform: none; }
}
