:root {
  --primary: #111418;
  --brand-blue: #075fc7;
  --brand-cyan: #3db5e6;
  --brand-green: #0bab31;
  --brand-purple: #7c5ce6;
  --neutral: #f5fbfd;
  --surface: #ffffff;
  --surface-soft: #eef6f8;
  --text: #222222;
  --muted: #4f5b60;
  --border: #d9e5e8;
  --shadow: 0 18px 60px rgba(17, 20, 24, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--neutral);
  color: var(--text);
  font-family: "Yu Gothic UI", "Meiryo", "Segoe UI", sans-serif;
  font-size: clamp(18px, 0.95vw, 21px);
  line-height: 1.68;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.notranslate {
  color: var(--brand-blue);
  font-weight: 800;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 44px);
  background: rgba(247, 250, 249, 0.94);
  border-bottom: 1px solid var(--border);
}

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

.brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.brand p,
.brand h1 {
  margin: 0;
}

.eyebrow {
  color: var(--brand-green);
  font-size: clamp(1.28rem, 1.8vw, 1.64rem);
  font-weight: 800;
  text-transform: uppercase;
}

.brand h1 {
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.2;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 700;
}

.header-links a {
  text-decoration: none;
}

.header-links a:hover {
  color: var(--brand-blue);
}

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

.gradient-panel {
  background:
    radial-gradient(ellipse 76% 59% at 4% 4%, rgba(255, 126, 196, 0.12), rgba(255, 176, 214, 0.05) 34%, rgba(255, 176, 214, 0) 72%),
    radial-gradient(ellipse 76% 59% at 96% 96%, rgba(124, 92, 230, 0.12), rgba(158, 132, 240, 0.05) 36%, rgba(158, 132, 240, 0) 74%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.68) 46%, rgba(255, 255, 255, 0.9) 100%),
    conic-gradient(from 215deg at 78% 22%, rgba(61, 181, 230, 0.23), rgba(11, 171, 49, 0.11), rgba(255, 221, 119, 0.24), rgba(255, 145, 181, 0.09), rgba(61, 181, 230, 0.2)),
    linear-gradient(34deg, rgba(13, 96, 201, 0.15) 0%, rgba(13, 96, 201, 0) 44%),
    linear-gradient(148deg, rgba(255, 255, 255, 0) 12%, rgba(11, 171, 49, 0.15) 48%, rgba(255, 255, 255, 0) 76%),
    linear-gradient(222deg, rgba(255, 221, 119, 0.24) 0%, rgba(255, 221, 119, 0) 48%),
    linear-gradient(315deg, rgba(255, 180, 200, 0.11) 4%, rgba(255, 180, 200, 0) 48%),
    linear-gradient(135deg, #ffffff 0%, #f0faff 36%, #f3fbf4 64%, #fff9e8 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.theme-home {
  background:
    radial-gradient(ellipse 70% 56% at 8% 0%, rgba(255, 126, 196, 0.11), rgba(255, 176, 214, 0) 68%),
    radial-gradient(ellipse 70% 58% at 100% 100%, rgba(124, 92, 230, 0.11), rgba(158, 132, 240, 0) 70%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.88) 100%),
    conic-gradient(from 210deg at 76% 20%, rgba(61, 181, 230, 0.22), rgba(11, 171, 49, 0.12), rgba(255, 221, 119, 0.22), rgba(255, 145, 181, 0.08), rgba(61, 181, 230, 0.18)),
    linear-gradient(135deg, #ffffff 0%, #f0faff 38%, #f3fbf4 66%, #fff9e8 100%);
}

.theme-ytt {
  background:
    radial-gradient(ellipse 72% 58% at 2% 2%, rgba(255, 126, 196, 0.14), rgba(255, 176, 214, 0.04) 38%, rgba(255, 176, 214, 0) 74%),
    radial-gradient(ellipse 72% 58% at 98% 96%, rgba(124, 92, 230, 0.13), rgba(158, 132, 240, 0.05) 38%, rgba(158, 132, 240, 0) 74%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.64) 46%, rgba(255, 255, 255, 0.9) 100%),
    conic-gradient(from 230deg at 72% 18%, rgba(61, 181, 230, 0.24), rgba(11, 171, 49, 0.17), rgba(255, 221, 119, 0.24), rgba(255, 145, 181, 0.1), rgba(61, 181, 230, 0.2)),
    linear-gradient(135deg, #ffffff 0%, #edfbff 34%, #effbf0 68%, #fff9e8 100%);
}

.theme-translation {
  background:
    radial-gradient(ellipse 68% 54% at 0% 12%, rgba(255, 176, 214, 0.08), rgba(255, 176, 214, 0) 70%),
    radial-gradient(ellipse 70% 56% at 96% 96%, rgba(124, 92, 230, 0.1), rgba(158, 132, 240, 0) 72%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.7) 48%, rgba(255, 255, 255, 0.9) 100%),
    conic-gradient(from 205deg at 78% 24%, rgba(61, 181, 230, 0.22), rgba(11, 171, 49, 0.15), rgba(255, 221, 119, 0.16), rgba(61, 181, 230, 0.2)),
    linear-gradient(135deg, #ffffff 0%, #effbff 40%, #edf9f2 72%, #fffdf0 100%);
}

.theme-upload {
  background:
    radial-gradient(ellipse 72% 58% at 4% 4%, rgba(255, 126, 196, 0.09), rgba(255, 176, 214, 0) 72%),
    radial-gradient(ellipse 78% 60% at 98% 98%, rgba(124, 92, 230, 0.16), rgba(158, 132, 240, 0.06) 36%, rgba(158, 132, 240, 0) 74%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.68) 46%, rgba(255, 255, 255, 0.9) 100%),
    conic-gradient(from 215deg at 78% 22%, rgba(61, 181, 230, 0.26), rgba(13, 96, 201, 0.13), rgba(255, 221, 119, 0.16), rgba(124, 92, 230, 0.12), rgba(61, 181, 230, 0.2)),
    linear-gradient(135deg, #ffffff 0%, #eff8ff 36%, #f2f8ff 70%, #fff9e8 100%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  padding: clamp(26px, 5vw, 58px);
}

.hero-text {
  max-width: 1120px;
}

.hero h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 1040px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.35vw, 1.32rem);
}

.hero-visual {
  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(61, 181, 230, 0.34) 34%, rgba(11, 171, 49, 0.2) 62%, rgba(124, 92, 230, 0.34)) border-box;
  border: 1px solid transparent;
  border-radius: calc(var(--radius-md) + 5px);
  box-shadow:
    0 20px 70px rgba(17, 20, 24, 0.12),
    0 0 34px rgba(61, 181, 230, 0.16);
  cursor: zoom-in;
  text-decoration: none;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 22px 70px rgba(17, 20, 24, 0.16);
}

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

.language-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-top: 26px;
}

.language-title h3 {
  margin: 0;
  font-size: 1.08rem;
}

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

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

.language-chip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 54px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.language-chip strong {
  font-size: 1.04rem;
  line-height: 1.2;
}

.language-chip span {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.25;
}

.language-chip:hover {
  border-color: rgba(7, 95, 199, 0.45);
  box-shadow: 0 12px 28px rgba(17, 20, 24, 0.08);
  transform: translateY(-1px);
}

.hero .translation-note {
  margin-top: 14px;
  font-size: 1rem;
}

.language-section,
.feature-section,
.download-section {
  margin-top: clamp(28px, 5vw, 56px);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  line-height: 1.08;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
}

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

.language-card {
  display: flex;
  flex-direction: column;
  min-height: 112px;
  justify-content: space-between;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(17, 20, 24, 0.06);
}

.language-card strong {
  font-size: 1.18rem;
}

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

.language-card:hover {
  border-color: rgba(7, 95, 199, 0.45);
  box-shadow: 0 16px 42px rgba(17, 20, 24, 0.1);
  transform: translateY(-1px);
}

.translation-note {
  margin-top: 18px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--brand-blue);
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.feature-overview {
  padding: clamp(26px, 5vw, 48px);
}

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

.feature-grid-title {
  margin: 30px 0 0;
  font-size: clamp(1.32rem, 2.5vw, 1.9rem);
  line-height: 1.2;
}

.feature-link,
.feature-panel {
  display: block;
  min-width: 0;
  min-height: 100%;
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(217, 229, 232, 0.9);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.feature-link h3,
.feature-panel h3 {
  margin: 0;
  font-size: clamp(1.28rem, 2.4vw, 1.72rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.feature-link p,
.feature-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.feature-link:hover {
  border-color: rgba(7, 95, 199, 0.45);
  box-shadow: 0 16px 42px rgba(17, 20, 24, 0.09);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  padding: clamp(28px, 5vw, 58px);
}

.feature-section-link {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.feature-section-link.detail-layout {
  padding-right: clamp(84px, 8vw, 128px);
  padding-bottom: clamp(74px, 7vw, 104px);
}

.feature-section-link:hover,
.feature-section-link:focus-visible {
  border-color: rgba(7, 95, 199, 0.4);
  box-shadow: 0 24px 74px rgba(17, 20, 24, 0.14);
  transform: translateY(-1px);
}

.feature-section-link:focus-visible {
  outline: 3px solid rgba(7, 95, 199, 0.34);
  outline-offset: 4px;
}

.section-arrow {
  position: absolute;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 30px);
  width: clamp(42px, 5vw, 72px);
  height: auto;
  opacity: 0.58;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.feature-section-link:hover .section-arrow,
.feature-section-link:focus-visible .section-arrow {
  opacity: 0.82;
  transform: translateX(5px);
}

.section-heading,
.detail-layout .section-heading,
.detail-layout .section-heading h2,
.feature-list,
.feature-list li,
.feature-list span {
  min-width: 0;
}

.detail-layout .section-heading h2,
.feature-list span,
.button-primary,
.button-secondary {
  overflow-wrap: anywhere;
  hyphens: auto;
}

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

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

.feature-list b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: #111418;
  color: #fff;
  font-size: 1.28rem;
  line-height: 1;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}

.button-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
}

.download-panel {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 16px;
  align-items: center;
  padding: clamp(22px, 4vw, 38px);
}

.download-panel h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.15;
}

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

.screenshot-section {
  margin-top: clamp(28px, 5vw, 56px);
  padding: clamp(26px, 5vw, 48px);
}

.capture-section {
  margin-top: clamp(28px, 5vw, 56px);
  padding: clamp(26px, 5vw, 48px);
}

.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: #111418;
  border-radius: var(--radius-md);
}

.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-md);
}

.hero-visual .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(217, 229, 232, 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-md);
}

.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: var(--radius-sm);
  cursor: pointer;
  font-weight: 800;
}

.site-footer {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
}

.footer-links a {
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero,
  .detail-layout,
  .download-panel {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .hero,
  .feature-overview,
  .detail-layout,
  .download-panel,
  .capture-section {
    padding: 22px 18px;
  }

  .hero h2 {
    font-size: clamp(2.35rem, 14vw, 4rem);
  }

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

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

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

  .language-card {
    min-height: 86px;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .feature-section-link.detail-layout {
    padding-right: 18px;
    padding-bottom: 74px;
  }

  .section-arrow {
    right: 18px;
    bottom: 18px;
    width: 44px;
  }
}
