* {
  box-sizing: border-box;
}

:root {
  --bg: #0a0f15;
  --bg-alt: #101822;
  --surface: #172230;
  --surface-hover: #1c2a3a;
  --text: #f4f7fa;
  --muted: #aeb8c3;
  --line: #2b3a4a;
  --accent: #4198f2;
  --max-width: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans JP",
    "Yu Gothic UI",
    "Yu Gothic",
    sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  min-height: 72px;
  display: flex;
  align-items: center;
  padding-inline: max(20px, calc((100vw - var(--max-width)) / 2));
}

.brand {
  font-weight: 750;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.hero {
  min-height: 390px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 15%, rgba(65, 152, 242, 0.18), transparent 35%),
    linear-gradient(180deg, #0b1119 0%, #0a0f15 100%);
  text-align: center;
}

.hero-inner {
  padding-block: 110px 80px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.08em;
}

.section {
  padding-block: 72px;
}

.news {
  border-bottom: 1px solid var(--line);
}

.products {
  background: var(--bg-alt);
}

.section-heading {
  margin-bottom: 28px;
}

.section-label {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.news-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.news-list article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: center;
  min-height: 66px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.news-list article:last-child {
  border-bottom: 0;
}

.news-list time {
  color: var(--muted);
  font-size: 0.88rem;
}

.news-list p {
  margin: 0;
}

.news-list .muted p {
  color: var(--muted);
}

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

.product-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #41698f;
  background: var(--surface-hover);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.product-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.product-card img {
  width: 102px;
  height: 102px;
  object-fit: contain;
  margin-bottom: 28px;
}

.product-card h3 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.25;
}

.version {
  margin: 12px 0 22px;
  color: #b8dafe;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tagline {
  margin: auto 0 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.description {
  max-width: 380px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding-block: 38px;
  border-top: 1px solid var(--line);
  background: #080c11;
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
  }

  .hero {
    min-height: 330px;
  }

  .section {
    padding-block: 54px;
  }

  .news-list article {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px;
  }

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

  .product-card {
    min-height: 390px;
  }
}

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

  .product-card {
    padding: 34px 22px;
  }

  .product-card img {
    width: 90px;
    height: 90px;
  }
}


/* Product support page */
.product-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: #080c11;
}

.product-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 10%, rgba(65, 152, 242, 0.17), transparent 34%),
    linear-gradient(180deg, #0b1119 0%, #0a0f15 100%);
}

.product-hero-inner {
  padding-block: 48px 72px;
  text-align: center;
}

.back-link {
  display: block;
  width: fit-content;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.back-link:hover {
  color: var(--text);
}

.product-page-icon {
  width: 102px;
  height: 102px;
  object-fit: contain;
  margin-bottom: 22px;
}

.product-hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 4.8rem);
  line-height: 1.1;
}

.product-page-tagline {
  margin: 18px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.product-page-description {
  margin: 8px 0 0;
  color: var(--muted);
}

.support-section {
  padding-block: 68px;
}

.support-section-alt {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
}

.support-container {
  max-width: 900px;
}

.support-heading {
  margin-bottom: 24px;
}

.support-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.support-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.release-panel,
.action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.support-panel h3 {
  margin: 10px 0 16px;
  font-size: 1.35rem;
}

.support-panel p {
  margin: 0;
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding-inline: 11px;
  border: 1px solid #486986;
  border-radius: 999px;
  color: #b9dcff;
  font-size: 0.75rem;
  font-weight: 700;
}

.release-info {
  margin: 0;
}

.release-info div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding-block: 5px;
}

.release-info dt {
  color: var(--muted);
}

.release-info dd {
  margin: 0;
}

.support-button {
  min-width: 220px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.support-button.disabled {
  border-color: var(--line);
  color: #7f8b98;
  background: rgba(255, 255, 255, 0.02);
  cursor: default;
}

.empty-panel {
  text-align: center;
}

@media (max-width: 700px) {
  .product-hero-inner {
    padding-block: 36px 56px;
  }

  .support-section {
    padding-block: 52px;
  }

  .release-panel,
  .action-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .support-button {
    width: 100%;
    min-width: 0;
  }
}


/* Voicon support layout revision */
.compact-product-hero {
  padding-block: 0;
}

.compact-product-hero .container {
  padding-block: 32px 42px;
}

.product-summary-row {
  display: flex;
  align-items: center;
  gap: 26px;
  text-align: left;
}

.product-summary-row .product-page-icon {
  width: 102px;
  height: 102px;
  flex: 0 0 102px;
  margin: 0;
}

.product-summary-row h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.product-summary-row .product-page-tagline {
  margin-top: 10px;
}

.product-support-area {
  padding-block: 64px;
  background: var(--bg-alt);
}

.product-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: 32px;
  align-items: start;
}

.support-main-column,
.support-side-column {
  display: grid;
  gap: 34px;
}

.support-block {
  min-width: 0;
}

.vertical-release-panel {
  align-items: stretch;
  flex-direction: column;
}

.full-width-button {
  width: 100%;
  margin-top: 24px;
}

.side-action-panel h3 {
  margin-top: 0;
}

.side-action-panel p {
  min-height: 54px;
}

@media (max-width: 860px) {
  .product-support-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .product-summary-row {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .product-summary-row .product-page-icon {
    width: 90px;
    height: 90px;
    flex-basis: 90px;
  }

  .support-side-column {
    grid-template-columns: 1fr;
  }

  .product-support-area {
    padding-block: 48px;
  }
}

/* Support page */
.support-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.support-product-card{display:grid;gap:12px;padding:30px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.support-product-card h2{margin:0 0 8px}
.support-link,.support-page-link{display:flex;min-height:46px;align-items:center;justify-content:center;padding:10px 16px;border:1px solid var(--line);border-radius:8px;text-align:center;text-decoration:none}
.support-link:hover,.support-page-link:hover{border-color:#4c6a88;background:rgba(255,255,255,.05)}
.disabled-link{color:#7e8b99;pointer-events:none}
.product-support-link-section{padding-block:28px;border-top:1px solid var(--line);background:var(--bg)}
.support-page-link{width:min(100%,320px);margin-inline:auto}
.legal-links a{color:inherit;text-decoration:none}
.legal-links a:hover{color:var(--text)}
@media(max-width:760px){.support-product-grid{grid-template-columns:1fr}}


/* Legal pages */
.legal-hero {
  padding-block: 52px 44px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(65, 152, 242, 0.12), transparent 34%),
    var(--bg);
}

.legal-container {
  max-width: 900px;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

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

.legal-section {
  padding-block: 64px;
  background: var(--bg-alt);
}

.legal-document {
  display: grid;
  gap: 28px;
}

.legal-document section {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.legal-document h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.legal-document p {
  margin-bottom: 12px;
}

.legal-document p:last-child {
  margin-bottom: 0;
}

.legal-document ol {
  margin: 0;
  padding-left: 1.5rem;
}

.legal-document li + li {
  margin-top: 10px;
}

.commerce-list {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.commerce-list > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 2fr);
  border-bottom: 1px solid var(--line);
}

.commerce-list > div:last-child {
  border-bottom: 0;
}

.commerce-list dt,
.commerce-list dd {
  margin: 0;
  padding: 20px 22px;
}

.commerce-list dt {
  color: #c6d8eb;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.025);
}

.commerce-list dd a {
  color: #8ec6ff;
}

@media (max-width: 680px) {
  .legal-section {
    padding-block: 48px;
  }

  .legal-document section {
    padding: 22px 20px;
  }

  .commerce-list > div {
    grid-template-columns: 1fr;
  }

  .commerce-list dt {
    padding-bottom: 8px;
  }

  .commerce-list dd {
    padding-top: 8px;
  }
}


/* Unified site shell */
.unified-header {
  position: relative;
}

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

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--text);
}

.site-footer .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.site-footer .legal-links a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer .legal-links a:hover {
  color: var(--text);
}

@media (max-width: 560px) {
  .unified-header-inner {
    min-height: 64px;
  }

  .main-nav {
    gap: 16px;
    font-size: 0.9rem;
  }
}


/* Header overlap fix */
.site-header.unified-header {
  position: relative;
  inset: auto;
  display: block;
  min-height: 72px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header.unified-header .unified-header-inner {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 72px;
  margin-inline: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-header.unified-header .brand,
.site-header.unified-header .main-nav {
  position: static;
  margin: 0;
  flex-shrink: 0;
}

.site-header.unified-header .main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 560px) {
  .site-header.unified-header,
  .site-header.unified-header .unified-header-inner {
    min-height: 64px;
  }

  .site-header.unified-header .unified-header-inner {
    width: min(calc(100% - 28px), var(--max-width));
  }
}


/* Manual two-guide layout */
.manual-guide-list {
  display: grid;
  gap: 18px;
}

.manual-guide-list .side-action-panel p {
  min-height: 54px;
}


/* DCS Localizer product introduction */
.product-introduction {
  padding-block: 72px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 18%, rgba(65, 152, 242, 0.12), transparent 28%),
    var(--bg);
}

.introduction-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.introduction-heading h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.introduction-heading > p:last-child {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.product-screenshot-panel {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.product-screenshot-panel img {
  display: block;
  width: 100%;
  height: auto;
  background: #eef3f8;
}

.product-screenshot-panel figcaption {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

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

.feature-card {
  min-height: 218px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28, 42, 58, 0.88), var(--surface));
}

.feature-number {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.feature-card > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .product-introduction {
    padding-block: 52px;
  }

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

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


/* Voicon introduction */
.voicon-feature-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.voicon-feature-grid .feature-card {
  min-height: 250px;
}

.voicon-strengths {
  margin-top: 72px;
}

.strengths-heading {
  margin-bottom: 26px;
}

.strengths-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.strength-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(65, 152, 242, 0.08), transparent 38%),
    var(--surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.strength-panel + .strength-panel {
  margin-top: 24px;
}

.strength-panel-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.strength-panel-heading .feature-number {
  margin: 5px 0 0;
}

.strength-panel-heading h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.strength-lead {
  margin: 8px 0 0;
  color: #dce9f5;
  font-weight: 700;
}

.strength-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  margin-top: 28px;
}

.strength-content-grid section {
  min-width: 0;
}

.strength-content-grid h4 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.strength-content-grid h4:not(:first-child) {
  margin-top: 28px;
}

.strength-content-grid p {
  margin: 0;
  color: var(--muted);
}

.strength-content-grid p + p {
  margin-top: 14px;
}

.pronunciation-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pronunciation-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(8, 12, 17, 0.34);
}

.pronunciation-table th,
.pronunciation-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.pronunciation-table th {
  color: #cde4fb;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  background: rgba(65, 152, 242, 0.08);
}

.pronunciation-table td:first-child {
  width: 32%;
  color: var(--text);
  font-weight: 750;
  white-space: nowrap;
}

.pronunciation-table tbody tr:last-child td {
  border-bottom: 0;
}

.strength-note {
  margin-top: 16px !important;
}

.license-note {
  margin: 28px 0 0;
  padding: 14px 16px;
  border: 1px solid #49647f;
  border-radius: 10px;
  color: #c8dbed;
  background: rgba(65, 152, 242, 0.07);
  font-size: 0.88rem;
}

@media (max-width: 1080px) {
  .voicon-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .strength-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .voicon-feature-grid {
    grid-template-columns: 1fr;
  }

  .voicon-feature-grid .feature-card {
    min-height: 0;
  }

  .voicon-strengths {
    margin-top: 54px;
  }

  .strength-panel {
    padding: 24px 20px;
  }

  .strength-panel-heading {
    gap: 14px;
  }

  .pronunciation-table th,
  .pronunciation-table td {
    padding: 11px 12px;
  }
}


/* Voicon detail screenshots */
.feature-screenshot-panel {
  overflow: hidden;
  margin: 28px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.feature-screenshot-panel img {
  display: block;
  width: 100%;
  height: auto;
  background: #eef3f8;
}

.feature-screenshot-panel figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.single-detail-grid {
  grid-template-columns: 1fr;
}


/* License purchase */
.license-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.license-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.license-panel h3 {
  margin-top: 0;
}

.license-price {
  margin: 6px 0 10px;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text);
}

.license-notes {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(23, 34, 48, 0.55);
  color: var(--muted);
  font-size: 0.88rem;
}

.license-notes p {
  margin: 3px 0;
}

@media (max-width: 760px) {
  .license-options-grid {
    grid-template-columns: 1fr;
  }
}
