:root {
  --blue: #2b6fd6;
  --blue-deep: #225bb0;
  --blue-bright: #4a90e2;
  --ink: #1d2632;
  --ink-soft: #526071;
  --muted: #7c8999;
  --surface: #fafbfc;
  --surface-blue: #f2f7ff;
  --line: #e1e8f1;
  --success: #16875b;
  --warning: #9a5a08;
  --shadow: 0 24px 70px rgba(29, 52, 84, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(43, 111, 214, 0.34);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

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

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(225, 232, 241, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.header-row {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.brand .zip {
  color: var(--blue);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--blue);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px !important;
  font-weight: 600 !important;
}

.language-switch::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.header-download {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 16px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
}

.header-download:hover {
  background: var(--blue-deep);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 74px;
  background:
    linear-gradient(rgba(43, 111, 214, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 111, 214, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #fff 0%, #f7faff 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

.hero::after {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -240px;
  bottom: -300px;
  border: 90px solid rgba(74, 144, 226, 0.1);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 62px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--blue-deep);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  background: var(--blue);
  content: "";
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(44px, 5.1vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero h1 span {
  color: var(--blue);
}

.hero-lead {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

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

.button-primary {
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(43, 111, 214, 0.25);
  color: #fff;
}

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

.button-secondary {
  border-color: #b9cdea;
  background: #fff;
  color: var(--blue-deep);
}

.button-secondary:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 20px rgba(29, 52, 84, 0.1);
}

.cta-note {
  display: block;
  width: 100%;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.mobile-pc-note {
  display: none;
}

.product-window {
  position: relative;
  padding: 10px;
  border: 1px solid #d6e1ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  animation: window-in 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.product-window img {
  width: 100%;
  height: auto;
  border-radius: 11px;
}

.window-label {
  position: absolute;
  right: 24px;
  bottom: -20px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid #cfe0f7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(29, 52, 84, 0.13);
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 600;
}

.window-label::before {
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(22, 135, 91, 0.18);
  content: "";
}

@keyframes window-in {
  from { opacity: 0; transform: translateY(18px) rotate(0.5deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.trust-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  padding: 24px 26px;
  border-right: 1px solid var(--line);
}

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

.trust-item b {
  display: block;
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
}

.trust-item span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.section {
  padding: 96px 0;
}

.section-tint {
  background: var(--surface);
}

.section-head {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 48px;
  margin-bottom: 44px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.section-head p {
  max-width: 680px;
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.encoding-stage {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
  gap: 16px;
}

.encoding-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(29, 52, 84, 0.09);
}

.encoding-card img {
  width: 100%;
  height: auto;
}

.encoding-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
}

.status-before {
  color: var(--warning);
}

.status-after {
  color: var(--success);
}

.encoding-arrow {
  display: grid;
  width: 54px;
  height: 54px;
  margin: auto;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(43, 111, 214, 0.24);
  color: #fff;
  font-size: 25px;
  place-items: center;
}

.encoding-note {
  max-width: 760px;
  margin: 26px auto 0;
  color: var(--ink-soft);
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature {
  min-height: 240px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.feature-code {
  color: var(--blue);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
}

.feature h3 {
  margin: 38px 0 10px;
  font-family: var(--font-en);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.proof-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.proof-copy h2 {
  margin: 0 0 20px;
  font-family: var(--font-en);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.proof-copy > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.proof-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  position: relative;
  padding-left: 27px;
  color: var(--ink-soft);
}

.proof-list li::before {
  position: absolute;
  left: 0;
  color: var(--success);
  content: "✓";
  font-weight: 800;
}

.proof-shot {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.proof-shot img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.format-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.format-fact {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.format-fact:last-child {
  border-right: 0;
}

.format-fact strong {
  display: block;
  color: var(--blue-deep);
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 700;
}

.format-fact span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.format-disclaimer {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

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

.faq-grid details {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-grid p {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.final-cta {
  padding: 84px 0;
  background: var(--ink);
  color: #fff;
}

.final-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.final-cta h2 {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.final-cta p {
  margin: 14px 0 0;
  color: #bac4d0;
}

.final-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.final-actions .button-secondary {
  border-color: #566374;
  background: transparent;
  color: #fff;
}

.site-footer {
  padding: 42px 0 30px;
  border-top: 1px solid #303b49;
  background: var(--ink);
  color: #b4bfcc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
}

.footer-grid p,
.footer-grid a {
  color: #aeb9c7;
  font-size: 13px;
}

.footer-grid a {
  display: block;
  margin: 7px 0;
  text-decoration: none;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #34404e;
  color: #8996a6;
  font-size: 12px;
}

/* 法務ページ */
.legal .site-header {
  position: static;
}

.legal-main {
  width: min(780px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 90px;
}

.legal-main h1 {
  margin: 0 0 8px;
  font-family: var(--font-en);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.legal-date {
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 12px;
}

.legal-main h2 {
  margin: 38px 0 12px;
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.legal-main p,
.legal-main li {
  color: var(--ink-soft);
}

.legal-main li + li {
  margin-top: 8px;
}

.legal-main a {
  color: var(--blue-deep);
}

.legal .site-footer {
  padding-top: 28px;
}

@media (max-width: 960px) {
  .site-nav a:not(.language-switch) { display: none; }
  .hero { padding-top: 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 720px; }
  .product-window { max-width: 780px; }
  .section-head,
  .proof-grid { grid-template-columns: 1fr; gap: 24px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, 1160px); }
  .header-row { min-height: 60px; gap: 10px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 30px; height: 30px; }
  .site-nav { margin-left: auto; }
  .header-download { display: none; }
  .download-choice-btn,
  .cta-note { display: none; }
  .mobile-pc-note {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #b9cdea;
    border-radius: 10px;
    background: var(--surface-blue);
    color: var(--blue-deep);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
  }
  .final-actions .mobile-pc-note {
    border-color: #566374;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }
  .hero { padding: 58px 0 52px; background-size: 32px 32px, 32px 32px, auto; }
  .hero h1 { font-size: clamp(39px, 12vw, 56px); }
  .hero-lead { font-size: 16px; }
  .button { width: 100%; }
  .window-label { right: 12px; bottom: -18px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 18px 16px; border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-last-child(-n+2) { border-bottom: 0; }
  .section { padding: 70px 0; }
  .section-head h2,
  .proof-copy h2 { font-size: 37px; }
  .encoding-stage { grid-template-columns: 1fr; }
  .encoding-arrow { transform: rotate(90deg); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: auto; }
  .feature h3 { margin-top: 26px; }
  .format-facts { grid-template-columns: 1fr; }
  .format-fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .format-fact:last-child { border-bottom: 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .final-grid { grid-template-columns: 1fr; }
  .final-actions { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .legal-main { width: min(100% - 32px, 780px); padding: 52px 0 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
