@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+HK:wght@900&display=swap");

:root {
  --navy-950: #0d1a2a;
  --navy-900: #112237;
  --navy-800: #18314d;
  --navy-700: #1d3e66;
  --brand: #235bb3;
  --brand-strong: #184793;
  --brand-soft: #eaf2ff;
  --surface: #ffffff;
  --surface-alt: #f4f7fb;
  --surface-soft: #eef4fb;
  --line: #d9e3f1;
  --text: #122033;
  --text-soft: #52637a;
  --shadow-sm: 0 10px 26px rgba(18, 32, 51, 0.08);
  --shadow-md: 0 16px 30px rgba(17, 31, 49, 0.12);
  --radius: 0px;
  --max-width: 1460px;
  --font-latin: "Inter", "Segoe UI", sans-serif;
  --font-ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-zh: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-ui: "Inter", "Noto Sans JP", "Noto Sans SC", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #f5f8fc;
  font-family: var(--font-ui);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 26, 42, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  padding: 0;
}

.brand-wordmark {
  color: #ffffff;
  font-family: 'Noto Serif HK', ui-serif, Georgia, 'Times New Roman', serif;
  font-size: clamp(1.05rem, 0.73rem + 0.88vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1vw, 18px);
  margin-left: auto;
  margin-right: 18px;
}

.main-nav a {
  position: relative;
  color: rgba(237, 244, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #ffffff;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-picker {
  position: relative;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: #edf4ff;
  border-radius: 999px;
  padding: 9px 13px;
  min-width: 140px;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lang-button:hover,
.lang-button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.lang-button .caret {
  font-size: 0.8rem;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 170px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 8px;
  display: none;
}

.language-picker.is-open .lang-menu {
  display: block;
}

.lang-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.lang-option:hover,
.lang-option:focus-visible,
.lang-option.is-active {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #edf4ff;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0 16px;
}

.mobile-menu .mobile-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu a,
.mobile-menu button {
  width: 100%;
  color: #edf4ff;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

main {
  padding-bottom: 64px;
}

.page-intro {
  padding: 72px 0 36px;
}

.page-intro-copy {
  max-width: 820px;
}

.page-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-prelude {
  max-width: 70ch;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.industry-item {
  min-height: 170px;
  padding-bottom: 24px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.industry-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
}

.industry-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-media--placeholder,
.solution-media--placeholder {
  background: #e9eff5;
}

.industry-item > strong,
.industry-item > p {
  margin-left: 22px;
  margin-right: 22px;
}

.industry-item > strong {
  margin-top: 20px;
}

.industry-item strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy-800);
  font-size: 1.05rem;
}

.industry-item p {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.94rem;
}

.section {
  padding: 80px 0;
}

.section-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 18px;
  color: var(--text);
  line-height: 1.2;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.4rem, 1.5rem + 2.7vw, 4.2rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2rem, 1.2rem + 1.8vw, 2.8rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.35rem, 1rem + 0.9vw, 1.9rem);
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

.lead {
  font-size: 1.06rem;
  max-width: 62ch;
}

.site-button,
.site-button-secondary,
.site-button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.9rem 1.45rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.site-button:hover,
.site-button-secondary:hover,
.site-button-ghost:hover {
  transform: translateY(-1px);
}

.site-button {
  background: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.site-button-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.site-button-ghost {
  background: transparent;
  color: var(--brand-strong);
  border-color: rgba(35, 91, 179, 0.2);
}

.card-grid {
  display: grid;
  gap: 22px;
}

.card-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.service-card,
.feature-card,
.list-card,
.contact-card,
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.service-card,
.feature-card,
.list-card,
.product-card {
  padding: 22px 22px 18px;
}

.service-card img,
.feature-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}

.service-card h3,
.product-card h3,
.feature-card h3,
.list-card h3 {
  margin-bottom: 10px;
}

.service-card p,
.feature-card p,
.list-card p,
.product-card p {
  margin-bottom: 0;
}

.service-link,
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--brand-strong);
  font-weight: 700;
}

.accordion {
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 22px 0;
  color: var(--text);
  font-weight: 700;
  font-size: 1.06rem;
  cursor: pointer;
}

.accordion-trigger .icon {
  font-size: 1.5rem;
  color: var(--brand);
  line-height: 1;
}

.accordion-panel {
  padding: 0 0 26px;
  color: var(--text-soft);
}

.accordion-panel p,
.accordion-panel ul {
  margin: 0;
}

.accordion-panel ul {
  padding-left: 1.2rem;
}

.accordion-panel li + li {
  margin-top: 0.5rem;
}

.page-hero {
  padding: 76px 0 40px;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.page-hero-copy {
  max-width: 640px;
}

.page-hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.page-hero-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list .label {
  min-width: 110px;
  font-weight: 700;
  color: var(--text);
}

.info-list .value {
  color: var(--text-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-card {
  padding: 28px 22px;
}

.contact-card h3,
.default-card h3 {
  margin-bottom: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text);
  padding: 0.9rem 1rem;
}

.field textarea {
  resize: vertical;
  min-height: 150px;
}

.form-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.site-footer {
  background: var(--navy-900);
  color: rgba(237, 244, 255, 0.84);
  padding: 40px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px;
}

.footer-brand strong {
  font-size: 1.05rem;
  color: #f3f8ff;
}

.footer-copy,
.footer-contact {
  font-size: calc(1rem - 1px);
  color: rgba(237, 244, 255, 0.74);
}

.footer-contact p,
.footer-copy p {
  margin: 0 0 8px;
}

.site-footer p,
.site-footer address {
  color: #d5dfec;
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 26px;
  padding-top: 18px;
  font-size: calc(0.9rem - 1px);
  color: rgba(237, 244, 255, 0.7);
}

@media (max-width: 920px) {
  .mobile-menu:not([hidden]) {
    display: block;
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .page-hero-inner,
  .contact-layout,
  .footer-inner,
  .industry-grid,
  .card-grid.cols-4,
  .card-grid.cols-3,
  .card-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 68px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-wordmark {
    font-size: 0.98rem;
    letter-spacing: 0.05em;
  }

  .lang-button {
    min-width: 96px;
    padding-inline: 10px;
    font-size: 0.84rem;
  }

  .header-tools { gap: 6px; }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .site-button,
  .site-button-secondary,
  .site-button-ghost {
    width: 100%;
  }
}

/* Shared homepage footer appearance across all pages. */
.site-footer { background: rgba(13, 26, 42, 0.98); }
.footer-company { display: block; margin-bottom: 12px; font-size: 1.05rem; color: #f3f8ff; }
