:root {
  --background: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --text: #17202a;
  --text-muted: #5f6b76;
  --heading: #0b3f78;
  --border: #d9e1e8;
  --accent: #0b4f95;
  --accent-hover: #073d75;
  --orange: #f6a01a;
  --footer: #0d263f;
  --footer-text: #e7edf3;

  --content-width: 1080px;
  --radius: 12px;
  --shadow: 0 10px 28px rgb(13 38 63 / 8%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #ffffff;
  background: #000000;
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

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

/* Header */

.site-header {
  position: relative;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-name {
  color: var(--heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-en {
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.07em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding-block: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

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

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--orange);
}

/* Hero */

.hero {
  display: grid;
  place-items: center;
  min-height: 590px;
  padding-block: 88px;
  background:
    radial-gradient(circle at 78% 18%, rgb(246 160 26 / 16%), transparent 30%),
    radial-gradient(circle at 18% 82%, rgb(11 79 149 / 10%), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--background) 100%);
  text-align: center;
}

.hero-content {
  max-width: 820px;
}

.hero-logo {
  width: min(256px, 64vw);
  margin: 0 auto 28px;
  border-radius: 16px;
}

.eyebrow,
.page-header-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.page-header h1 {
  margin: 0;
  color: var(--heading);
  line-height: 1.3;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: 0.03em;
}

.hero-subtitle {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.08em;
}

.hero-description {
  max-width: 680px;
  margin: 30px auto 0;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.hero-notice {
  display: inline-block;
  margin: 24px 0 0;
  padding: 8px 16px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
}

/* Page header */

.page-header {
  padding-block: 74px;
  background:
    radial-gradient(circle at 82% 18%, rgb(246 160 26 / 14%), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--background) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.page-header-description {
  max-width: 700px;
  margin: 20px auto 0;
  color: var(--text-muted);
}

/* Sections */

.section {
  padding-block: 82px;
}

.surface-section {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-heading {
  margin: 0 0 38px;
  color: var(--heading);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.4;
  text-align: center;
}

.section-heading-en {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 12px;
  color: var(--heading);
  font-size: 1.14rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

/* Company table and documents */

.company-card,
.document-card {
  max-width: 920px;
  margin-inline: auto;
  padding: 16px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 21px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: 0;
}

.company-table th {
  width: 28%;
  color: var(--heading);
  font-weight: 700;
}

.business-list {
  margin: 0;
  padding-left: 1.3em;
}

.business-list li + li {
  margin-top: 6px;
}

.document-card {
  padding-block: 36px;
}

.document-card h2 {
  margin: 2.2em 0 0.65em;
  color: var(--heading);
  font-size: 1.3rem;
  line-height: 1.5;
}

.document-card h2:first-of-type {
  margin-top: 1.4em;
}

.document-card p,
.document-card ul {
  margin-top: 0;
}

.document-card ul {
  padding-left: 1.4em;
}

.note {
  max-width: 920px;
  margin: 26px auto 0;
  padding: 18px 22px;
  color: var(--text-muted);
  background: var(--surface);
  border-left: 4px solid var(--orange);
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
}

.security-action-mark {
  max-width: 920px;
  margin: 26px auto 0;
  text-align: center;
}

.security-action-mark img {
  display: inline-block;
  width: 179px;
  height: auto;
}

/* Product and support pages */

.breadcrumb {
  padding-block: 14px;
  color: var(--text-muted);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  margin-right: 8px;
  color: var(--text-muted);
  content: "/";
}

.status-badge {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 13px;
  color: #6b4300;
  background: #fff2d8;
  border: 1px solid #efc878;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.lead {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.04rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.button-link {
  display: inline-block;
  padding: 11px 20px;
  color: #ffffff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  color: #ffffff;
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button-link.secondary {
  color: var(--accent);
  background: var(--surface);
}

.button-link.secondary:hover {
  color: var(--accent-hover);
  background: var(--surface-soft);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
  margin-inline: auto;
}

.summary-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.summary-card h2,
.summary-card h3 {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 1.16rem;
}

.summary-card p,
.summary-card ul {
  margin-top: 0;
}

.summary-card > :last-child {
  margin-bottom: 0;
}

.help-topic-card-wide {
  grid-column: 1 / -1;
}

.help-search-link {
  max-width: 920px;
  margin: 0 auto 28px;
  padding: 24px 26px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.help-search-link h2,
.help-related-authorities h2 {
  margin-top: 0;
}

.help-secondary-text {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.help-related-authorities {
  margin-top: 28px;
}

.support-positioning {
  margin-top: 28px;
}

.site-search-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--heading);
  font-weight: 700;
}

.site-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.site-search-controls input,
.site-search-controls button {
  min-height: 46px;
  padding: 10px 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  font: inherit;
}

.site-search-controls button {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  cursor: pointer;
  font-weight: 700;
}

.site-search-controls input:focus-visible,
.site-search-controls button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.site-search-status {
  min-height: 1.6em;
  margin-top: 24px;
  color: var(--text-muted);
}

.site-search-results {
  padding-left: 1.5em;
}

.site-search-results li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.site-search-results a {
  font-weight: 700;
}

.site-search-results p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.help-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 28px;
  padding: 16px 20px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.help-step-list li + li,
.error-check-list li + li {
  margin-top: 8px;
}

.error-code-table code {
  white-space: nowrap;
}

.help-boundary-note {
  margin-top: 28px;
}

.product-screenshot {
  max-width: 920px;
  margin: 0 auto;
}

.product-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  background: #101218;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.product-screenshot figcaption {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.feature-stories {
  display: grid;
  gap: 28px;
  max-width: 980px;
  margin-inline: auto;
}

.feature-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 30px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-story-reverse .feature-story-copy {
  order: 2;
}

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

.feature-story-copy h3 {
  margin: 0 0 14px;
  color: var(--heading);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.5;
}

.feature-story-copy p {
  margin: 0;
}

.feature-story-copy p + p {
  margin-top: 14px;
}

.feature-kicker {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.feature-caution {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.feature-shot {
  position: relative;
  min-width: 0;
  margin: 0;
}

.feature-shot-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.feature-shot-viewport {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #101218;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: zoom-in;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-shot-viewport:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(10, 102, 112, 0.16);
}

.feature-shot-toggle:focus-visible + .feature-shot-viewport {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.feature-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-shot-extraction img {
  object-position: center bottom;
}

.feature-shot-filter img {
  object-position: center 48%;
}

.feature-shot-defang img,
.feature-shot-local-analysis img {
  object-position: center 28%;
}

.feature-shot-action {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  color: #ffffff;
  background: rgb(16 24 32 / 86%);
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.feature-shot-action-collapse {
  display: none;
}

.feature-shot-toggle:checked + .feature-shot-viewport {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  width: 100vw;
  height: 100vh;
  padding: clamp(48px, 6vw, 84px) clamp(18px, 4vw, 64px);
  place-items: center;
  overflow: auto;
  aspect-ratio: auto;
  background: rgb(7 14 21 / 94%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: zoom-out;
}

.feature-shot-toggle:checked + .feature-shot-viewport img {
  width: auto;
  height: auto;
  max-width: min(calc(100vw - clamp(36px, 8vw, 128px)), 1662px);
  max-height: 86vh;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgb(0 0 0 / 46%);
}

.feature-shot-toggle:checked + .feature-shot-viewport .feature-shot-action-expand {
  display: none;
}

.feature-shot-toggle:checked + .feature-shot-viewport .feature-shot-action-collapse {
  position: fixed;
  top: 16px;
  right: 18px;
  bottom: auto;
  display: inline-flex;
  min-height: 36px;
  padding-inline: 14px;
}

body:has(.feature-shot-toggle:checked) {
  overflow: hidden;
}

.feature-shot figcaption {
  margin-top: 9px;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

.feature-groups {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 32px auto 0;
}

.feature-group {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: 0 6px 18px rgb(13 38 63 / 5%);
}

.feature-group summary {
  padding: 19px 54px 19px 22px;
  color: var(--heading);
  cursor: pointer;
  font-weight: 700;
  list-style-position: inside;
}

.feature-group summary:hover {
  background: var(--surface-soft);
}

.feature-group[open] summary {
  border-bottom: 1px solid var(--border);
}

.feature-group-content {
  min-width: 0;
  padding: 20px 24px 22px;
  color: var(--text-muted);
}

.feature-group-content > :first-child {
  margin-top: 0;
}

.feature-group-content > :last-child {
  margin-bottom: 0;
}

.feature-group-content ul {
  padding-left: 1.4em;
}

.feature-group-content li + li {
  margin-top: 7px;
}

.price {
  margin: 0;
  color: var(--heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
}

.price small {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.document-card h3 {
  margin: 1.7em 0 0.55em;
  color: var(--heading);
  font-size: 1.08rem;
}

.document-card ol {
  padding-left: 1.5em;
}

.document-card li + li {
  margin-top: 8px;
}

.document-meta {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.document-signature {
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.important-note {
  max-width: 920px;
  margin: 0 auto 28px;
  padding: 20px 22px;
  color: var(--text);
  background: #fff9ec;
  border: 1px solid #efd49b;
  border-left: 5px solid var(--orange);
  border-radius: 8px;
}

.important-note > :first-child {
  margin-top: 0;
}

.important-note > :last-child {
  margin-bottom: 0;
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li + li {
  margin-top: 12px;
}

.link-list a {
  font-weight: 700;
}

code {
  padding: 0.12em 0.32em;
  background: var(--surface-soft);
  border-radius: 4px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.9em;
}

.document-card pre,
.feature-group-content pre {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

/* Contact */

.contact {
  text-align: center;
}

.contact p {
  margin: 0;
  color: var(--text-muted);
}

.contact-link {
  display: inline-block;
  margin-top: 22px;
  padding: 11px 20px;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.contact-link:hover {
  color: #ffffff;
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Footer */

.site-footer {
  padding-block: 38px;
  color: var(--footer-text);
  background: var(--footer);
}

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

.footer-company,
.copyright {
  margin: 0;
}

.footer-company {
  font-size: 0.9rem;
  font-weight: 700;
}

.copyright {
  margin-top: 4px;
  color: rgb(231 237 243 / 80%);
  font-size: 0.8rem;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--footer-text);
  font-size: 0.82rem;
}

/* Responsive */

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding-block: 16px;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .site-nav ul {
    width: max-content;
    gap: 18px;
  }

  .hero {
    min-height: 0;
    padding-block: 66px;
  }

  .page-header {
    padding-block: 58px;
  }

  .section {
    padding-block: 58px;
  }

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

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

  .feature-story {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .feature-story-reverse .feature-story-copy {
    order: 0;
  }

  .company-card,
  .document-card {
    padding: 10px 20px;
  }

  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table tr {
    padding-block: 14px;
    border-bottom: 1px solid var(--border);
  }

  .company-table tr:last-child {
    border-bottom: 0;
  }

  .company-table th,
  .company-table td {
    padding: 4px 0;
    border: 0;
  }

  .company-table th {
    font-size: 0.86rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 0.94rem;
  }

  .site-nav a {
    font-size: 0.86rem;
  }

  .hero-logo {
    width: min(220px, 70vw);
  }

  .card {
    padding: 24px;
  }

  .company-card,
  .document-card {
    padding-inline: 16px;
  }

  .feature-story {
    padding: 20px;
  }

  .feature-shot-viewport {
    aspect-ratio: 4 / 3;
  }

  .site-search-controls {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .contact-link,
  .footer-nav {
    display: none;
  }

  body,
  .page-header,
  .surface-section {
    color: #000000;
    background: #ffffff;
  }

  .card,
  .company-card,
  .document-card {
    box-shadow: none;
  }

  .section,
  .page-header {
    padding-block: 32px;
  }

  .feature-group:not([open]) > :not(summary) {
    display: block;
  }
}
