@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500;1,700;1,800&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --bg-white: #ffffff;
  --bg-black: #000000;
  --text-white: #ffffff;
  --text-black: #000000;
  --text-muted-white: #a0a0a0;
  --text-muted-black: #555555;
  --border-light: rgba(0, 0, 0, 0.12);
  --border-dark: rgba(255, 255, 255, 0.2);
  --font-heading: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  font-size: 16px;
}

body {
  background-color: var(--bg-white);
  color: var(--text-black);
  font-family: var(--font-heading);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

p, span, li {
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.75;
}

/* ==========================================================================
   Section Base Layout (Full-Viewport Scroll Snap)
   ========================================================================== */
.section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: clamp(36px, 7vh, 90px) clamp(20px, 7vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.section.white {
  background-color: var(--bg-white);
  color: var(--text-black);
}

.section.black {
  background-color: var(--bg-black);
  color: var(--text-white);
}

.section-inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.section-category {
  font-family: var(--font-heading);
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted-black);
  margin-bottom: 0.4rem;
  display: block;
}

.section-category.white-text {
  color: var(--text-muted-white);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1rem, 2.5vh, 1.75rem);
  line-height: 1.1;
}

.section-footnote {
  position: absolute;
  bottom: clamp(1.25rem, 3.5vh, 2.25rem);
  left: clamp(20px, 7vw, 90px);
  font-size: 0.85rem;
  color: var(--text-muted-white);
  font-weight: 400;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.section-hero {
  position: relative;
}

.hero-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-logo {
  font-family: var(--font-heading);
  font-size: clamp(4.2rem, 14vw, 10.5rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin-bottom: 1.5rem;
  animation: slideIn 0.6s var(--transition-smooth) both;
}

.hero-sub {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3.6vw, 2.5rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.25;
  animation: slideIn 0.8s var(--transition-smooth) both;
}

.hero-sub a {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-quote {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.6vw, 2.1rem);
  line-height: 1.7;
  font-weight: 400;
  max-width: 900px;
  color: #eeeeee;
}

/* Notes About Specific */
.notes-catchphrase {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.notes-lead {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: #cccccc;
  margin-bottom: clamp(1.25rem, 3vh, 2.25rem);
  max-width: 800px;
}

.notes-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  list-style: none;
}

.notes-feature-item {
  border-top: 1px solid var(--border-dark);
  padding-top: 1rem;
}

.notes-feature-item h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.notes-feature-item p {
  font-size: 0.95rem;
  color: #dddddd;
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.notes-quote {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted-white);
}

/* ==========================================================================
   Section 4: How to Get? Platforms Grid (Compact Full-Viewport Layout)
   ========================================================================== */
.get-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2.25rem);
  margin-top: clamp(1rem, 2.5vh, 1.75rem);
  margin-bottom: clamp(1rem, 2.5vh, 1.75rem);
  width: 100%;
}

@media (max-width: 860px) {
  .get-platforms {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
}

.get-card {
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  box-sizing: border-box;
}

.get-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.get-platform-name {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-black);
}

.get-platform-sub {
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 1.3vw, 0.85rem);
  color: var(--text-muted-black);
  line-height: 1.4;
}

.get-card-action {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.get-code-box {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: #111111;
  color: #eeeeee;
  border-radius: 0;
  padding: 0 0.85rem;
  height: 44px;
  box-sizing: border-box;
  overflow-x: auto;
}

.get-code-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.74rem, 1.3vw, 0.82rem);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Aligned App Store Badges & Action Buttons (Uniform 44px Visible Height)
   ========================================================================== */
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  line-height: 0;
}

ms-store-badge {
  display: inline-flex;
  align-items: center;
  height: 44px;
  line-height: 0;
}

ms-store-badge::part(img) {
  height: 44px !important;
  width: auto !important;
  display: block;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 1.25rem;
  border-radius: 0;
  background-color: #f2f4f7;
  color: #5e6c84;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px dashed #d8dee6;
  letter-spacing: 0.02em;
}

.homebrew-box {
  margin-top: 0.5rem;
  max-width: 680px;
  width: 100%;
}

.homebrew-code {
  background: #111111;
  color: #eeeeee;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  line-height: 1.5;
  overflow-x: auto;
  margin-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
}

.homebrew-note {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted-black);
  display: block;
}

.store-badge-img {
  width: auto;
  display: block;
}

/* Compensate for Google Play official PNG transparent clear-space so visible box is 42px tall */
.store-badge-img.en {
  height: 62.5px;
  margin: -10.25px;
}

.store-badge-img.ja {
  height: 55px;
  margin: -6.5px 0;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 42px;
  padding: 0 1.3rem;
  border: 1.5px solid var(--text-black);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-black);
  background: transparent;
  transition: all var(--transition-fast);
}

.btn-link:hover {
  background: var(--text-black);
  color: var(--text-white);
  opacity: 1;
}

/* ==========================================================================
   SNS & Contact Section
   ========================================================================== */
.contact-block {
  margin-bottom: 2.75rem;
}

.contact-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.sns-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.sns-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  color: var(--text-white);
  transition: all var(--transition-fast);
}

.sns-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.sns-link:hover {
  background-color: var(--text-white);
  color: var(--text-black);
  border-color: var(--text-white);
  opacity: 1;
  transform: translateY(-2px);
}

.email-address {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 500;
  color: #ffffff;
  display: inline-block;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 4px;
}

.footer-meta {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted-white);
}

.footer-meta.light-border {
  border-top-color: var(--border-light);
  color: var(--text-muted-black);
}

.footer-links-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links-inline a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   Subpages (Policy / Help)
   ========================================================================== */
.doc-card {
  max-width: 820px;
  border-top: 2px solid var(--text-black);
  padding-top: 2rem;
}

.doc-card p, .doc-card h5 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: #222222;
}

.doc-card .doc-note {
  font-size: 0.9rem;
  color: var(--text-muted-black);
}

/* ==========================================================================
   Difference Hamburger Menu (Floating)
   ========================================================================== */
.menu-btn {
  position: fixed;
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  right: clamp(1.5rem, 4vw, 2.5rem);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #ffffff;
  mix-blend-mode: difference;
  z-index: 1000;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: none;
  outline: none;
  transition: transform var(--transition-fast);
}

.menu-btn:hover {
  transform: scale(1.08);
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #000000;
  transition: all var(--transition-smooth);
}

/* Checkbox Toggle State */
#menu-toggle-input {
  display: none;
}

#menu-toggle-input:checked ~ .menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#menu-toggle-input:checked ~ .menu-btn span:nth-child(2) {
  opacity: 0;
}

#menu-toggle-input:checked ~ .menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay Navigation Panel */
.menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.96);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 8vw, 6rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

#menu-toggle-input:checked ~ .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

.menu-overlay ul {
  list-style: none;
  max-width: 600px;
}

.menu-overlay li {
  margin-bottom: clamp(0.85rem, 2.5vh, 1.65rem);
}

.menu-overlay a {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4.5vw, 3.1rem);
  font-weight: 700;
  font-style: italic;
  color: #ffffff;
  display: inline-block;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-overlay a:hover {
  transform: translateX(12px);
  opacity: 0.8;
}

.menu-overlay .lang-switch {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  font-style: normal;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--text-muted-white);
}

.menu-overlay .lang-switch a {
  font-style: normal;
  font-size: inherit;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
