:root {
  --bg-primary: #0b1020;
  --bg-secondary: #121a2f;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --bg-surface-strong: rgba(255, 255, 255, 0.08);
  --text-primary: #f3f6fb;
  --text-secondary: #b3bfd3;
  --text-muted: #8190a8;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #d6dde8;
  --accent-strong: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Avenir Next", "Yu Gothic", "Hiragino Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(126, 148, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #0b1020 0%, #0a0f1b 100%);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 17px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

main {
  overflow: clip;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 860px;
}

.surface-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.surface-section {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.eyebrow {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.page-hero h1,
.hero h1,
.article-header h1,
.article-hero h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Yu Mincho", serif;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 14px 0 18px;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
}

.section-heading h2,
.article-header h1,
.article-hero h1 {
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
}

.section-heading p,
.page-lead,
.hero-lead {
  color: var(--text-secondary);
  max-width: 540px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 16, 32, 0.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.logo a {
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-family: "Iowan Old Style", "Palatino Linotype", "Yu Mincho", serif;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

.nav a.is-active,
.nav a:hover {
  color: var(--accent-strong);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text-primary);
}

section {
  padding: 88px 0;
}

.hero {
  padding: 88px 0 56px;
}

.hero-layout,
.split-layout,
.contact-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
}

.hero-copy {
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 32px;
}

.hero-panel {
  padding: 28px;
}

.panel-label,
.card-index,
.case-tag {
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.check-list,
.bullet-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.check-list li,
.bullet-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
}

.check-list li::before,
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.metric-grid strong {
  display: block;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.metric-grid span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.trust-strip {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.trust-items span {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.service-card,
.case-card,
.contact-card,
.message-block,
.quote-card {
  padding: 28px;
}

.service-card,
.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.service-card h3,
.case-card h3,
.flow-item h3,
.company-stats h3,
.contact-card h2,
.message-block h2,
.service-detail h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Yu Mincho", serif;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 14px 0 12px;
}

.service-card p:last-child,
.case-card p:last-child,
.flow-item p,
.stat-item p,
.contact-card p,
.message-block p,
.service-detail p {
  color: var(--text-secondary);
}

.split-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.align-start {
  align-items: start;
}

.flow-list {
  display: grid;
  gap: 18px;
}

.flow-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.flow-item span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-strong);
  font-weight: 700;
}

.quote-card {
  padding: 36px;
}

.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
}

.quote-text {
  font-size: 1.25rem;
  line-height: 1.65;
  margin-top: 8px;
}

.quote-author {
  margin-top: 24px;
  color: var(--text-muted);
}

.cta-section {
  padding-top: 32px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.cta-panel h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Yu Mincho", serif;
  margin: 10px 0 12px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  letter-spacing: -0.04em;
}

.page-hero {
  padding: 96px 0 32px;
}

.service-stack {
  display: grid;
  gap: 20px;
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) 1fr;
  gap: 28px;
  padding: 28px;
}

.company-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 28px;
}

.stat-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.contact-grid {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  align-items: start;
}

.contact-intro {
  display: grid;
  gap: 20px;
}

.contact-form {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 10, 20, 0.72);
  color: var(--text-primary);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
}

.form-group textarea {
  min-height: 180px;
  resize: vertical;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.submit-button,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--accent);
  color: #0b1020;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.submit-button {
  width: 100%;
  cursor: pointer;
}

.submit-button:hover,
.cta-button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
}

.article-container {
  max-width: 820px;
  margin: 0 auto;
}

.article-content h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Yu Mincho", serif;
  font-size: 1.85rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 42px 0 16px;
}

.article-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.article-meta {
  color: var(--text-muted);
}

.footer {
  padding: 72px 0 36px;
  border-top: 1px solid var(--line);
}

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

.footer-brand h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Yu Mincho", serif;
  font-size: 1.8rem;
  margin: 10px 0 12px;
  letter-spacing: -0.04em;
}

.footer-brand p,
.footer-bottom p,
.footer-links a {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

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

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  .hero-layout,
  .split-layout,
  .contact-grid,
  .service-detail,
  .services-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .trust-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-panel,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .header .container {
    min-height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 18px 24px 24px;
    background: rgba(11, 16, 32, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav.active {
    display: flex;
  }

  section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 88px;
  }

  .hero-actions,
  .form-row,
  .company-stats,
  .trust-items {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .contact-form,
  .quote-card,
  .surface-card,
  .service-card,
  .case-card {
    padding: 24px;
  }
}
