:root {
  --ink: #111418;
  --ink-soft: #344047;
  --muted: #617078;
  --paper: #f5fbfd;
  --surface: #ffffff;
  --line: #d8e7eb;
  --blue: #075fc7;
  --cyan: #36b7e8;
  --green: #18a957;
  --yellow: #f3c64b;
  --pink: #ff8ac5;
  --purple: #8a72ec;
  --shadow: 0 20px 70px rgba(17, 20, 24, 0.1);
  --radius: 8px;
  --radius-lg: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Yu Gothic UI", "Meiryo", "Segoe UI", sans-serif;
  font-size: clamp(18px, 0.95vw, 21px);
  line-height: 1.7;
  letter-spacing: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 46px);
  background: rgba(245, 251, 253, 0.9);
  border-bottom: 1px solid rgba(216, 231, 235, 0.84);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.1;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 800;
}

.nav a {
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
}

.nav a:hover,
.nav .active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 8px 26px rgba(17, 20, 24, 0.07);
}

.nav .nav-cta {
  background: var(--ink);
  color: #fff;
}

.shell {
  width: min(2400px, calc(100% - clamp(24px, 4vw, 72px)));
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px) 0 70px;
}

.gradient {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background:
    radial-gradient(ellipse 72% 58% at 0% 0%, rgba(255, 138, 197, 0.09), rgba(255, 138, 197, 0) 69%),
    radial-gradient(ellipse 76% 62% at 100% 100%, rgba(138, 114, 236, 0.09), rgba(138, 114, 236, 0) 72%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7) 48%, rgba(255, 255, 255, 0.9)),
    conic-gradient(from 214deg at 76% 22%, rgba(54, 183, 232, 0.16), rgba(24, 169, 87, 0.1), rgba(243, 198, 75, 0.16), rgba(255, 138, 197, 0.05), rgba(54, 183, 232, 0.14)),
    linear-gradient(135deg, #ffffff 0%, #effbff 37%, #f1fbf3 68%, #fff9ea 100%);
}

.gradient-ytt {
  background:
    radial-gradient(ellipse 88% 74% at -8% -6%, rgba(255, 138, 197, 0.14), rgba(255, 138, 197, 0) 66%),
    radial-gradient(ellipse 82% 66% at 102% 100%, rgba(138, 114, 236, 0.12), rgba(138, 114, 236, 0) 70%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.64) 48%, rgba(255, 255, 255, 0.9)),
    conic-gradient(from 226deg at 74% 18%, rgba(54, 183, 232, 0.17), rgba(24, 169, 87, 0.13), rgba(243, 198, 75, 0.16), rgba(255, 138, 197, 0.07), rgba(54, 183, 232, 0.14)),
    linear-gradient(135deg, #ffffff 0%, #edfbff 38%, #effbf2 70%, #fff9ea 100%);
}

.gradient-api {
  background:
    radial-gradient(ellipse 74% 60% at 0% 6%, rgba(255, 138, 197, 0.07), rgba(255, 138, 197, 0) 70%),
    radial-gradient(ellipse 80% 66% at 100% 100%, rgba(138, 114, 236, 0.14), rgba(138, 114, 236, 0) 72%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.68) 48%, rgba(255, 255, 255, 0.92)),
    conic-gradient(from 210deg at 78% 22%, rgba(54, 183, 232, 0.18), rgba(7, 95, 199, 0.1), rgba(243, 198, 75, 0.13), rgba(138, 114, 236, 0.09), rgba(54, 183, 232, 0.14)),
    linear-gradient(135deg, #ffffff 0%, #eff8ff 38%, #f3f8ff 70%, #fff9ea 100%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
  min-height: calc(100svh - 124px);
  padding: clamp(30px, 5vw, 62px);
}

.hero-copy,
.page-copy {
  min-width: 0;
  max-width: 1120px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: clamp(1.28rem, 1.8vw, 1.64rem);
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6.2vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p,
.page-hero p,
.lead {
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.35vw, 1.32rem);
}

.hero p,
.page-hero p {
  margin: 22px 0 0;
}

.hero-media {
  margin: 0;
}

.image-zoom {
  display: block;
  padding: 2px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(255, 138, 197, 0.34), rgba(54, 183, 232, 0.34) 34%, rgba(24, 169, 87, 0.2) 62%, rgba(138, 114, 236, 0.34)) border-box;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) + 5px);
  box-shadow:
    0 20px 70px rgba(17, 20, 24, 0.12),
    0 0 34px rgba(54, 183, 232, 0.16);
  cursor: zoom-in;
  text-decoration: none;
}

.hero-media img,
.media-frame img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(17, 20, 24, 0.18);
}

.hero-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
}

.feature-stack {
  display: grid;
  gap: 16px;
}

.feature-chip {
  position: relative;
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 24px 24px 24px 96px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(216, 231, 235, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 20px 54px rgba(17, 20, 24, 0.08);
}

.feature-chip::before {
  content: "";
  position: absolute;
  inset: auto -18% -46% 32%;
  height: 150px;
  background: radial-gradient(ellipse at center, rgba(54, 183, 232, 0.2), rgba(54, 183, 232, 0));
}

.feature-chip span {
  position: absolute;
  left: 22px;
  top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: var(--ink);
  background: linear-gradient(135deg, #adff8f, #8ff4ff 54%, #99a0ff);
  border-radius: 50%;
  font-weight: 950;
}

.feature-chip strong,
.feature-chip em {
  position: relative;
  display: block;
}

.feature-chip strong {
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
  line-height: 1.05;
}

.feature-chip em {
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 900;
}

.chip-ytt::before {
  background: radial-gradient(ellipse at center, rgba(24, 169, 87, 0.2), rgba(24, 169, 87, 0));
}

.chip-translation::before {
  background: radial-gradient(ellipse at center, rgba(255, 138, 197, 0.18), rgba(255, 138, 197, 0));
}

.chip-api::before {
  background: radial-gradient(ellipse at center, rgba(138, 114, 236, 0.18), rgba(138, 114, 236, 0));
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 28px;
}

.language-link {
  display: block;
  min-height: 58px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(216, 231, 235, 0.9);
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.language-link strong,
.language-link span {
  display: block;
  line-height: 1.25;
}

.language-link span {
  color: var(--muted);
  font-size: 1.02rem;
}

.language-link:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 95, 199, 0.36);
  box-shadow: 0 14px 34px rgba(17, 20, 24, 0.08);
}

.note {
  padding: 13px 15px;
  margin-top: 18px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.82);
  border-left: 5px solid var(--blue);
  border-radius: 6px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(17, 20, 24, 0.12);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  padding: clamp(30px, 5vw, 62px);
}

.stack-hero {
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: auto;
}

.stack-hero .hero-copy,
.stack-hero .page-copy {
  max-width: 1280px;
}

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

.stack-hero .feature-panel {
  min-height: 0;
}

.stack-hero .feature-panel ol {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

.hero-actions {
  margin-top: 0;
}

.product-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.panel {
  position: relative;
  min-height: 230px;
  padding: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(216, 231, 235, 0.9);
  border-radius: var(--radius);
  text-decoration: none;
}

.panel h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.16;
}

.panel p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.panel-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  color: var(--ink);
  background: linear-gradient(135deg, #adff8f, #8ff4ff 54%, #99a0ff);
  border-radius: 50%;
  font-weight: 950;
  box-shadow: inset 0 -2px 0 rgba(17, 20, 24, 0.08);
}

.feature-panel {
  align-self: stretch;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 420px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(ellipse 80% 62% at 0% 0%, rgba(255, 138, 197, 0.12), rgba(255, 138, 197, 0) 70%),
    radial-gradient(ellipse 76% 64% at 100% 100%, rgba(138, 114, 236, 0.12), rgba(138, 114, 236, 0) 72%),
    rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(216, 231, 235, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(17, 20, 24, 0.1);
}

.feature-panel.compact {
  min-height: 320px;
}

.feature-panel h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2.8rem);
  line-height: 1.08;
}

.feature-panel ol {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-panel li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  color: var(--ink-soft);
  font-size: clamp(1.42rem, 2.2vw, 2rem);
  font-weight: 900;
  line-height: 1.38;
}

.feature-panel li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  color: var(--ink);
  background: linear-gradient(135deg, #adff8f, #8ff4ff 54%, #99a0ff);
  border-radius: 50%;
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1;
}

.section {
  margin-top: clamp(30px, 5vw, 58px);
  padding: clamp(26px, 5vw, 52px);
}

.section.plain {
  padding-left: 0;
  padding-right: 0;
}

.section-head {
  max-width: 1240px;
}

.section-head h2,
.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.04;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.number-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.number-list li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.number-list b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: var(--ink);
  background: linear-gradient(135deg, #adff8f, #8ff4ff 54%, #99a0ff);
  box-shadow: inset 0 -2px 0 rgba(17, 20, 24, 0.08);
}

.capture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 24px);
  margin-top: 24px;
}

.capture-card {
  margin: 0;
}

.capture-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ink);
  border-radius: var(--radius);
}

.capture-card figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 1rem;
}

.product-screenshot {
  width: 100%;
  margin: 28px 0 0;
}

.product-screenshot .image-zoom {
  width: 100%;
  padding: clamp(8px, 0.9vw, 14px);
}

.product-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  background: #fff;
  border-radius: var(--radius);
}

.hero-media .image-zoom img,
.media-frame .image-zoom img,
.product-screenshot .image-zoom img,
.capture-card .image-zoom img {
  border: 0;
  box-shadow: none;
}

.product-screenshot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
}

.image-lightbox {
  width: min(94vw, 1840px);
  max-height: 92vh;
  padding: 18px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(216, 231, 235, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 120px rgba(17, 20, 24, 0.35);
}

.image-lightbox:not([open]) {
  display: none;
}

.image-lightbox::backdrop {
  background: rgba(17, 20, 24, 0.66);
  backdrop-filter: blur(4px);
}

.image-lightbox img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.image-lightbox-close {
  position: absolute;
  right: 12px;
  top: 12px;
  min-height: 36px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(17, 20, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 5vw, 52px);
  align-items: start;
}

.form-preview {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-preview label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-weight: 900;
}

.form-preview input,
.form-preview select {
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.download-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.download-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
}

.warning {
  margin-top: 22px;
  padding: 17px 18px;
  color: #3b2217;
  background: #fff3da;
  border: 1px solid #f3c64b;
  border-radius: var(--radius);
  font-weight: 800;
}

.step-preview {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.step-preview li {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.footer {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 10px;
}

.footer a {
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    justify-content: stretch;
  }

  .nav a {
    text-align: center;
    padding: 8px 6px;
    font-size: 1rem;
  }

  .hero,
  .page-hero,
  .two-col {
    grid-template-columns: 1fr;
  }

  .stack-hero .feature-stack,
  .stack-hero .feature-panel ol {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .number-list,
  .download-list,
  .capture-grid {
    grid-template-columns: 1fr;
  }

  .feature-panel {
    min-height: 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.15rem);
    line-height: 1.05;
  }

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

@media (max-width: 720px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand strong {
    font-size: 1rem;
  }

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

  .nav a {
    min-width: 0;
    white-space: normal;
  }

  .shell {
    width: min(100% - 24px, 2400px);
    padding-top: 16px;
  }

  .hero,
  .page-hero,
  .section {
    padding: 22px 18px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(1.5rem, 7.4vw, 2rem);
    line-height: 1.16;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }

  .hero p,
  .page-hero p,
  .lead {
    font-size: 1.02rem;
  }

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

  .button {
    width: 100%;
  }
}
