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

:root {
  --primary: #0d4d8b;
  --primary-deep: #082f57;
  --primary-ink: #0b1e34;
  --primary-soft: #dce9f6;
  --accent: #d5dde8;
  --accent-strong: #f4f7fb;
  --canvas: #f5f8fc;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --surface-dark: #0d2037;
  --ink: #102038;
  --muted: #5c6b7d;
  --line: rgba(13, 77, 139, 0.14);
  --shadow: 0 26px 60px rgba(6, 27, 52, 0.16);
  --shadow-soft: 0 18px 40px rgba(10, 34, 64, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --nav-height: 88px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(13, 77, 139, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(213, 221, 232, 0.45), transparent 30%),
    var(--canvas);
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(245, 248, 252, 0.84);
  border-bottom: 1px solid rgba(13, 77, 139, 0.1);
}

.header-inner,
.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(8, 47, 87, 0.24);
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  display: block;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-tag {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-current {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--primary-ink);
  border-radius: 999px;
}

.button,
.store-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 15px 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button,
.store-button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #1a6dc0);
  box-shadow: 0 18px 34px rgba(13, 77, 139, 0.24);
}

.ghost-button,
.store-button.secondary {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(13, 77, 139, 0.14);
  box-shadow: var(--shadow-soft);
}

.button:hover,
.button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-2px);
}

main {
  padding-bottom: 64px;
}

.hero {
  padding: 48px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.visual-card,
.surface-card,
.content-card,
.legal-card,
.contact-card,
.download-card,
.form-shell,
.stat-panel,
.principle-card,
.faq-card,
.mobile-about {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(213, 221, 232, 0.6), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(13, 77, 139, 0.08);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.02em;
}

h1,
.hero-title {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.05;
}

h2 {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.45rem;
}

.lead,
.hero-copy p,
.section-intro p,
.legal-summary,
.contact-note {
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-copy p {
  margin: 22px 0 28px;
  max-width: 58ch;
}

.hero-actions,
.button-row,
.store-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats,
.stats-grid,
.support-grid,
.download-grid,
.feature-grid,
.principles-grid,
.legal-meta,
.contact-rail,
.timeline-grid,
.mini-grid {
  display: grid;
  gap: 16px;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.mini-stat {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.mini-stat strong,
.stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.mini-stat span,
.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.visual-card {
  overflow: hidden;
  padding: 18px;
  display: grid;
  gap: 18px;
  min-height: 100%;
}

.hero-photo,
.section-photo,
.device-photo,
.contact-photo {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
}

.hero-photo {
  aspect-ratio: 4 / 4.3;
}

.visual-stack {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.visual-tile {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(8, 47, 87, 0.98), rgba(13, 77, 139, 0.94));
  color: #ffffff;
  min-height: 170px;
  position: relative;
  overflow: hidden;
}

.visual-tile.light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(220, 233, 246, 0.84));
  color: var(--ink);
}

.visual-tile img {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: 0 14px 30px rgba(10, 34, 64, 0.24);
}

.visual-tile strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.visual-tile span {
  color: inherit;
  opacity: 0.8;
  font-size: 0.95rem;
}

.section {
  padding: 36px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-header p {
  max-width: 58ch;
  color: var(--muted);
  margin: 0;
}

.surface-card {
  padding: 28px;
}

.feature-layout,
.story-layout,
.contact-layout,
.download-layout,
.split-layout,
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: 28px;
  align-items: stretch;
}

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

.feature-card,
.insight-row,
.step-card,
.policy-card,
.contact-detail,
.compat-card,
.faq-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.feature-card strong,
.step-card strong,
.policy-card strong,
.contact-detail strong,
.compat-card strong,
.faq-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.04rem;
}

.feature-card p,
.step-card p,
.policy-card p,
.contact-detail p,
.compat-card p,
.faq-card p {
  margin: 0;
  color: var(--muted);
}

.feature-badge,
.step-number,
.legal-index,
.principle-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  margin-bottom: 18px;
  background: rgba(13, 77, 139, 0.1);
  color: var(--primary);
  font-weight: 800;
}

.section-photo {
  aspect-ratio: 4 / 3;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-panel {
  padding: 24px;
}

.stat-panel p {
  color: var(--muted);
  margin: 8px 0 0;
}

.timeline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-row {
  display: flex;
  align-items: start;
  gap: 16px;
}

.insight-row span {
  color: var(--muted);
}

.legal-hero,
.page-hero,
.contact-hero,
.download-hero {
  padding: 40px 0 18px;
}

.page-heading,
.legal-heading {
  padding: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(220, 233, 246, 0.8));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.page-heading p,
.legal-heading p {
  margin: 18px 0 0;
  color: var(--muted);
  max-width: 60ch;
}

.legal-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.legal-card {
  padding: 18px;
}

.legal-card strong {
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.legal-card span {
  display: block;
  font-size: 1.04rem;
  font-weight: 800;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(280px, 0.24fr);
  gap: 24px;
  align-items: start;
}

.legal-main {
  display: grid;
  gap: 18px;
}

.content-card,
.contact-card,
.download-card,
.form-shell {
  padding: 28px;
}

.content-card ol,
.content-card ul,
.legal-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.content-card li + li,
.legal-list li + li {
  margin-top: 8px;
}

.legal-note {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(13, 77, 139, 0.1), rgba(220, 233, 246, 0.85));
  color: var(--primary-ink);
  font-weight: 700;
}

.support-grid {
  grid-template-columns: 1fr;
}

.contact-layout,
.download-layout {
  align-items: start;
}

.contact-photo {
  aspect-ratio: 4 / 3;
  margin-top: 22px;
}

.contact-detail a,
.footer-links a,
.text-link {
  color: var(--primary);
}

.form-shell form {
  display: grid;
  gap: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(13, 77, 139, 0.16);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 77, 139, 0.12);
}

.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: start;
  color: var(--muted);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-feedback {
  display: none;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}

.form-feedback.is-visible {
  display: block;
}

.form-feedback.success {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}

.form-feedback.error {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
}

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

.device-photo {
  aspect-ratio: 4 / 3;
  margin-top: 20px;
}

.system-list,
.update-list,
.footnote-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.system-item,
.update-item,
.footnote-item {
  display: flex;
  gap: 14px;
  align-items: start;
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.system-item strong,
.update-item strong,
.footnote-item strong {
  display: block;
  margin-bottom: 4px;
}

.system-item span,
.update-item span,
.footnote-item span {
  color: var(--muted);
}

.site-footer {
  padding: 22px 0 46px;
}

.footer-shell {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(8, 47, 87, 0.98), rgba(13, 77, 139, 0.96));
  color: #ffffff;
  box-shadow: var(--shadow);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-only {
  display: none;
}

.mobile-about-wrap {
  padding: 22px 0 46px;
}

.mobile-about {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 22px;
}

.mobile-about .brand-plate {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.mobile-about .brand-plate img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
}

.mobile-about .hero-photo {
  aspect-ratio: 4 / 5;
  margin-bottom: 18px;
}

.mobile-about .stack-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.mobile-about .stack-block + .stack-block {
  margin-top: 14px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-14 {
  margin-top: 14px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-18 {
  margin-top: 18px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-22 {
  margin-top: 22px;
}

.mt-28 {
  margin-top: 28px;
}

.headline-mobile {
  font-size: 2.6rem;
}

.brand-strong {
  display: block;
  font-size: 1.15rem;
}

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

.object-top-third {
  object-position: center 35%;
}

.object-bottom-third {
  object-position: center 62%;
}

.principles-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principle-card.pad-28 {
  padding: 28px;
}

@media (max-width: 1024px) {
  .hero-grid,
  .feature-layout,
  .story-layout,
  .contact-layout,
  .download-layout,
  .split-layout,
  .about-layout,
  .legal-shell {
    grid-template-columns: 1fr;
  }

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

  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .principles-three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    inset: var(--nav-height) 16px auto;
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.76);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-header.menu-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .menu-toggle {
    display: inline-block;
  }

  .header-actions .button {
    display: none;
  }

  .hero,
  .section {
    padding: 28px 0;
  }

  .hero-copy,
  .surface-card,
  .content-card,
  .contact-card,
  .download-card,
  .form-shell,
  .page-heading,
  .legal-heading {
    padding: 24px;
  }

  .feature-grid,
  .field-grid,
  .download-grid,
  .legal-meta,
  .hero-stats,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .visual-stack {
    grid-template-columns: 1fr;
  }

  .section-header,
  .footer-top,
  .footer-bottom {
    align-items: start;
  }
}
