:root {
  color-scheme: light dark;
  --bg: #f7f9fc;
  --bg-soft: #edf3fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-muted: #e8eef7;
  --text: #14213a;
  --text-strong: #0b172d;
  --muted: #53647c;
  --line: #cdd8e8;
  --line-strong: #aebed5;
  --accent: #2563d9;
  --accent-hover: #1f54b8;
  --accent-soft: #dfeaff;
  --accent-text: #174a9e;
  --shadow: 0 28px 80px rgba(31, 67, 119, 0.17);
  --shadow-soft: 0 12px 32px rgba(31, 67, 119, 0.1);
  --radius: 16px;
  --max: 1200px;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 4%, rgba(37, 99, 217, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--text-strong);
  color: var(--surface-solid);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell,
.nav-shell,
.footer-shell {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--bg) 87%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
}

.nav-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  color: var(--text-strong);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
}

.nav-shell nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.75rem);
}

.nav-shell nav a,
.site-footer nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-shell nav a:hover,
.nav-shell nav a[aria-current="page"],
.site-footer nav a:hover {
  color: var(--accent);
}

.locale-link {
  min-width: 4.3rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  text-align: center;
}

.hero {
  width: min(calc(100% - 3rem), 1360px);
  min-height: calc(100dvh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(3rem, 4vw, 4.5rem);
  padding-block: clamp(3.5rem, 7vh, 5.5rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.status-label {
  width: fit-content;
  margin: 0 0 1.3rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text-strong);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.08;
  overflow-wrap: normal;
  text-wrap: balance;
}

p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] p,
html[lang="ja"] li {
  line-break: strict;
  word-break: auto-phrase;
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: 1.4rem;
  font-size: clamp(3.2rem, 4vw, 4.35rem);
}

.hero-body {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.65;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.12rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--accent);
  color: #f8fbff;
  box-shadow: 0 8px 22px rgba(37, 99, 217, 0.22);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text-strong);
}

.button-secondary:hover {
  border-color: var(--accent);
}

.button.button-disabled {
  cursor: not-allowed;
  opacity: 0.72;
  box-shadow: none;
}

.button.button-disabled:hover,
.button.button-disabled:active {
  transform: none;
  background: var(--accent);
}

.hero-visual {
  position: relative;
  isolation: isolate;
  min-height: 540px;
  display: grid;
  align-items: center;
}

.hero-backdrop {
  position: absolute;
  inset: 3% 0 3% -4%;
  z-index: -1;
  width: 104%;
  height: 94%;
  border-radius: var(--radius);
  object-fit: cover;
  opacity: 0.86;
  box-shadow: var(--shadow-soft);
}

.app-screen {
  width: 100%;
  margin-left: 0;
  border: 1px solid rgba(132, 162, 203, 0.45);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modes-section,
.features-section,
.privacy-highlight,
.closing-section {
  padding-block: clamp(5rem, 10vw, 8rem);
}

.section-heading {
  max-width: 62rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-heading h2,
.pricing-layout h2,
.privacy-highlight h2,
.closing-section h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.section-heading p,
.pricing-body,
.privacy-highlight p,
.closing-section p {
  max-width: 43rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.25fr;
  border-top: 1px solid var(--line-strong);
}

.mode-item {
  min-height: 220px;
  padding: 1.8rem 1.3rem 1.5rem;
  border-right: 1px solid var(--line);
}

.mode-item:first-child {
  padding-left: 0;
}

.mode-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.mode-item h3 {
  margin: 2.8rem 0 0.7rem;
  font-size: 1.4rem;
}

.mode-item p {
  margin: 0;
  color: var(--muted);
}

.features-section {
  scroll-margin-top: 80px;
}

.product-tour {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  margin-bottom: clamp(4rem, 8vw, 6.5rem);
}

.product-screen {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.product-screen-frame {
  padding: clamp(0.35rem, 0.8vw, 0.65rem);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent-soft) 42%, var(--surface));
}

.product-screen-frame img {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  border-radius: calc(var(--radius) - 7px);
  background: var(--surface-solid);
}

.product-screen figcaption {
  align-self: stretch;
  padding: clamp(1.1rem, 2.2vw, 1.55rem);
}

.product-screen h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.product-screen p {
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.feature-group {
  min-height: 330px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.feature-group-1,
.feature-group-4 {
  background:
    linear-gradient(145deg, rgba(37, 99, 217, 0.12), transparent 62%),
    var(--surface);
}

.feature-group-2 {
  transform: translateY(2.5rem);
}

.feature-group-3 {
  min-height: 290px;
}

.feature-group-4 {
  min-height: 290px;
  transform: translateY(2.5rem);
}

.feature-group h3 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.feature-group > p {
  max-width: 35rem;
  margin: 0;
  color: var(--muted);
}

.feature-group ul {
  display: grid;
  gap: 0.7rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-group li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text);
  font-weight: 600;
}

.feature-group li::before {
  content: "";
  position: absolute;
  top: 0.67em;
  left: 0;
  width: 0.48rem;
  height: 2px;
  background: var(--accent);
}

.pricing-section {
  scroll-margin-top: 80px;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-block: clamp(5rem, 9vw, 7.5rem);
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.pro-note {
  padding: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

.pro-note span {
  color: var(--accent-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.pro-note h3 {
  margin: 0.9rem 0;
  font-size: 1.8rem;
}

.pro-note p {
  margin: 0;
  color: var(--muted);
}

.privacy-highlight {
  display: grid;
  grid-template-columns: 0.35fr 1.4fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.privacy-mark {
  width: min(100%, 210px);
  border-radius: var(--radius);
  filter: drop-shadow(0 16px 36px rgba(37, 99, 217, 0.2));
}

.text-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--accent-text);
  font-weight: 700;
}

.closing-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line-strong);
}

.site-footer {
  padding-block: 2.6rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-brand img {
  border-radius: 9px;
}

.footer-brand strong {
  color: var(--text-strong);
}

.footer-brand p,
.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.legal-main {
  width: min(calc(100% - 3rem), 940px);
  margin-inline: auto;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.legal-document {
  padding: clamp(1.5rem, 5vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

.legal-document h1 {
  margin-bottom: 1.3rem;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

.policy-intro {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-strong);
}

.policy-intro span {
  color: var(--accent-text);
  font-size: 0.86rem;
  font-weight: 750;
}

.policy-intro p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.legal-document h2 {
  margin: 3.6rem 0 1rem;
  padding-top: 0.8rem;
  color: var(--text-strong);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.legal-document h3 {
  margin: 2.2rem 0 0.8rem;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.legal-document p,
.legal-document li {
  color: var(--text);
  line-height: 1.82;
}

.legal-document ul {
  padding-left: 1.3rem;
}

.legal-document li {
  margin-block: 0.38rem;
  padding-left: 0.35rem;
}

.legal-document code {
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: var(--surface-muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
}

.legal-document a {
  color: var(--accent-text);
  font-weight: 650;
}

.support-main {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.support-hero {
  max-width: 760px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.support-hero h1,
.not-found-main h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 6vw, 5rem);
}

.support-hero > p:last-child,
.not-found-main > p {
  max-width: 46rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.14rem;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.contact-panel p {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-panel div > a {
  color: var(--accent-text);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 750;
}

.support-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  margin-top: clamp(4rem, 8vw, 7rem);
}

.support-grid h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.support-grid p {
  color: var(--muted);
}

.support-details ol {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: support;
}

.support-details li {
  counter-increment: support;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: baseline;
  gap: 0.7rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-strong);
  font-weight: 650;
}

.support-details li::before {
  content: counter(support, decimal-leading-zero);
  color: var(--accent);
  font-size: 0.78rem;
}

.support-notes section {
  padding: 0 0 2.2rem;
}

.support-notes section + section {
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}

.support-notes p {
  margin-bottom: 0;
}

.support-privacy-link {
  margin-top: 3rem;
}

.not-found-main {
  min-height: calc(100dvh - 220px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 5rem;
}

.error-code {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.not-found-main .button-row {
  margin-top: 2rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1423;
    --bg-soft: #101d30;
    --surface: rgba(18, 33, 54, 0.9);
    --surface-solid: #122136;
    --surface-muted: #1b304d;
    --text: #d8e3f2;
    --text-strong: #f4f7fb;
    --muted: #aab9cd;
    --line: #2b405d;
    --line-strong: #3b5577;
    --accent: #3565ca;
    --accent-hover: #315fc1;
    --accent-soft: #142f59;
    --accent-text: #9bbaf7;
    --shadow: 0 28px 80px rgba(0, 7, 18, 0.48);
    --shadow-soft: 0 12px 32px rgba(0, 7, 18, 0.3);
  }

  .hero-backdrop {
    opacity: 0.52;
    filter: brightness(0.6) saturate(0.8);
  }

  .button-primary {
    color: #f8fbff;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
    gap: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 4.5vw, 3.6rem);
  }

  .hero-visual {
    min-height: 450px;
  }

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

  .mode-item,
  .mode-item:first-child,
  .mode-item:last-child {
    min-height: 190px;
    padding: 1.4rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .mode-item:nth-child(2n) {
    border-right: 0;
  }

  .mode-item h3 {
    margin-top: 2rem;
  }
}

@media (max-width: 820px) {
  .section-shell,
  .nav-shell,
  .footer-shell,
  .legal-main {
    width: min(calc(100% - 2rem), var(--max));
  }

  .nav-optional {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2.8rem;
    padding-block: 4rem;
  }

  .hero-copy {
    max-width: 42rem;
  }

  .hero h1 {
    max-width: 13ch;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-backdrop {
    inset: -7% -8%;
    width: 116%;
    height: 114%;
  }

  .app-screen {
    width: 100%;
    margin: 0;
  }

  .feature-grid,
  .product-tour,
  .pricing-layout,
  .privacy-highlight,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .feature-group-2,
  .feature-group-4 {
    transform: none;
  }

  .privacy-mark {
    width: 96px;
  }

  .closing-section,
  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .nav-shell {
    min-height: 64px;
    gap: 0.7rem;
  }

  .brand {
    font-size: 1rem;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .nav-shell nav {
    gap: 0.7rem;
  }

  .nav-shell nav > a:not(.locale-link) {
    display: none;
  }

  .locale-link {
    min-width: auto;
  }

  .hero {
    gap: 2rem;
    padding-block: 3.2rem 4rem;
  }

  .hero-visual {
    width: min(100%, 310px);
    justify-self: center;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 3.3rem);
  }

  .button-row,
  .button {
    width: 100%;
  }

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

  .mode-item,
  .mode-item:first-child,
  .mode-item:last-child {
    min-height: auto;
    padding: 1.5rem 0;
    border-right: 0;
  }

  .mode-item h3 {
    margin-top: 1rem;
  }

  .feature-group {
    min-height: auto;
  }

  .product-screen figcaption {
    padding: 1rem;
  }

  .legal-main {
    width: 100%;
    padding: 0;
  }

  .legal-document {
    padding: 2.5rem 1rem 4rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .legal-document h1 {
    font-size: 2.35rem;
  }

  .contact-panel {
    padding: 1.25rem;
  }

  .contact-panel .button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .surface {
    background: var(--bg);
    backdrop-filter: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .policy-intro {
    display: none;
  }

  body,
  .legal-document {
    background: #fff;
    color: #111;
    box-shadow: none;
  }

  .legal-main {
    width: 100%;
    padding: 0;
  }

  .legal-document {
    padding: 0;
    border: 0;
  }

  a {
    color: #111;
  }
}
