/* ASTRION Corporate — independent styles */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: "BIZ UDPGothic", "Noto Sans JP", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #2a3340;
  background: #fff;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: #1e4a7a; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid #2d6cb5;
  outline-offset: 3px;
}
h1, h2, h3 {
  font-family: "IBM Plex Sans JP", "IBM Plex Sans", sans-serif;
  font-weight: 600;
  line-height: 1.35;
  color: #0f1c2e;
}
.container { width: min(1120px, 92vw); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: #1e4a7a;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.skip-link:focus { top: 16px; }

/* Header — top bar + horizontal nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid #e2e8ef;
  backdrop-filter: blur(8px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.site-header__start {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.demo-hub-back {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5a6b7d;
  text-decoration: none;
  white-space: nowrap;
}
.demo-hub-back:hover {
  color: #1e4a7a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo-hub-back:focus-visible {
  outline: 2px solid #1e4a7a;
  outline-offset: 3px;
}
.site-logo {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: #0f1c2e;
}
.site-logo span { display: block; font-size: 0.68rem; font-weight: 400; color: #5a6b7d; letter-spacing: 0.04em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 0.9rem; color: #3d4f63; font-weight: 500; }
.site-nav a:hover { color: #1e4a7a; text-decoration: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn--primary { background: #1e4a7a; color: #fff; }
.btn--primary:hover { background: #163a61; text-decoration: none; color: #fff; }
.btn--outline { background: transparent; color: #1e4a7a; border: 1px solid #1e4a7a; }
.btn--outline:hover { background: #f0f5fa; text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }

/* Hero — asymmetric split */
.hero {
  padding: clamp(56px, 8vw, 100px) 0;
  background: linear-gradient(135deg, #f8fafc 0%, #eef3f8 55%, #fff 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__eyebrow {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2d6cb5;
  margin: 0 0 16px;
}
.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 0 20px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.hero__tags li {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e4a7a;
  background: #fff;
  border: 1px solid #c8d8e8;
  border-radius: 4px;
}
.hero__lead { margin: 0 0 28px; color: #4a5a6b; max-width: 32em; white-space: pre-line; line-height: 1.8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #dde4ec;
  aspect-ratio: 16/10;
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: #f6f8fb; }
.section__label {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2d6cb5;
  margin: 0 0 12px;
}
.section__title { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 20px; overflow-wrap: anywhere; }
.section__lead { max-width: 640px; margin: 0 0 48px; color: #4a5a6b; line-height: 1.8; }

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.about__text p { margin: 0 0 1em; max-width: 42em; }

/* Services — visual blocks */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  background: #fff;
  border: 1px solid #e2e8ef;
  border-radius: 4px;
  overflow: hidden;
}
.service-block--reverse { direction: rtl; }
.service-block--reverse > * { direction: ltr; }
.service-block__visual {
  aspect-ratio: 16/10;
  overflow: hidden;
  min-height: 200px;
}
.service-block__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-block__body { padding: 32px 32px 32px 0; }
.service-block--reverse .service-block__body { padding: 32px 0 32px 32px; }
.service-block__num {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.8rem;
  color: #2d6cb5;
  font-weight: 600;
  margin: 0 0 8px;
}
.service-block h3 { margin: 0 0 12px; font-size: 1.2rem; }
.service-block__summary { margin: 0 0 20px; color: #4a5a6b; font-size: 0.95rem; }
.service-detail { margin: 0; }
.service-detail div { margin-bottom: 16px; }
.service-detail dt {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e4a7a;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.service-detail dd { margin: 0; font-size: 0.92rem; color: #4a5a6b; line-height: 1.7; }
.service-detail__result { color: #0f1c2e !important; font-weight: 500; }

/* Legacy service-grid (unused) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid #e2e8ef;
  border-radius: 4px;
}
.service-card__num {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.8rem;
  color: #2d6cb5;
  font-weight: 600;
  margin-bottom: 12px;
}
.service-card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.service-card p { margin: 0; font-size: 0.95rem; color: #4a5a6b; }

/* Strengths — horizontal list */
.strength-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.strength-list li {
  padding-left: 20px;
  position: relative;
  font-weight: 500;
}
.strength-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 2px;
  background: #2d6cb5;
}

/* Cases */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
}
.case-card {
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid #e2e8ef;
  border-left: 3px solid #1e4a7a;
  box-shadow: 0 1px 3px rgba(15,28,46,0.06);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.case-card:hover,
.case-card:focus-visible {
  box-shadow: 0 4px 16px rgba(15,28,46,0.1);
  border-left-color: #2d6cb5;
}
.case-card__num {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #d8e2ec;
  margin: 0 0 8px;
  line-height: 1;
}
.case-card__tag { font-size: 0.75rem; color: #2d6cb5; font-weight: 600; margin: 0 0 8px; }
.case-card h3 { margin: 0 0 12px; font-size: 1.05rem; flex: 1; }
.case-card p { margin: 0; font-size: 0.9rem; color: #4a5a6b; line-height: 1.65; }
.case-card__more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e4a7a;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.stat-item { padding: 24px 16px; background: #f6f8fb; border-radius: 4px; border: 1px solid #e2e8ef; }
.stat-item__value {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: #1e4a7a;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}
.stat-item__label { margin: 10px 0 0; font-size: 0.88rem; color: #5a6b7d; }

/* Message */
.message__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.message__photo {
  aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #dde4ec;
}
.message__photo img { width: 100%; height: 100%; object-fit: cover; }
.message__content p { max-width: 40em; margin: 0 0 1em; }
.message__role { font-size: 0.85rem; color: #5a6b7d; margin: 0 0 4px; }
.message__name { font-size: 1.1rem; font-weight: 600; margin: 0 0 20px; }

/* Company table */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.company-table th,
.company-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8ef;
  text-align: left;
  vertical-align: top;
}
.company-table th { width: 28%; background: #f6f8fb; color: #3d4f63; font-weight: 600; }

/* CTA band */
.cta-band {
  padding: clamp(48px, 6vw, 72px) 0;
  background: #0f1c2e;
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; margin: 0 0 12px; font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.cta-band p { margin: 0 0 24px; opacity: 0.88; }
.cta-band .btn--primary { background: #fff; color: #0f1c2e; }
.cta-band .btn--primary:hover { background: #e8eef5; }

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15,28,46,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open[hidden] { display: flex; }
.modal {
  position: relative;
  width: min(640px, 100%);
  max-height: min(90vh, 800px);
  overflow-y: auto;
  background: #fff;
  border-radius: 4px;
  padding: 40px 32px 32px;
  box-shadow: 0 16px 48px rgba(15,28,46,0.2);
  outline: none;
}
.modal--form { width: min(520px, 100%); }
.modal--thanks { text-align: center; width: min(440px, 100%); }
.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8ef;
  background: #f6f8fb;
  border-radius: 4px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: #4a5a6b;
}
.modal__title { margin: 0 0 24px; font-size: 1.25rem; color: #0f1c2e; }
.case-modal__tag { font-size: 0.8rem; color: #2d6cb5; font-weight: 600; margin: 0 0 8px; }
.case-modal__details { margin: 0 0 24px; }
.case-modal__details div { margin-bottom: 16px; }
.case-modal__details dt { font-size: 0.78rem; font-weight: 600; color: #1e4a7a; margin-bottom: 4px; }
.case-modal__details dd { margin: 0; font-size: 0.92rem; color: #4a5a6b; line-height: 1.65; }
.case-modal__result { color: #0f1c2e !important; font-weight: 500; }
.case-modal__comment {
  margin: 0;
  padding: 20px;
  background: #f6f8fb;
  border-left: 3px solid #1e4a7a;
  font-size: 0.92rem;
  color: #4a5a6b;
}
.case-modal__comment cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.82rem; color: #5a6b7d; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-field label { display: block; font-size: 0.88rem; font-weight: 600; color: #3d4f63; margin-bottom: 6px; }
.required { font-size: 0.72rem; color: #1e4a7a; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dde4ec;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: #2a3340;
}
.form-error { margin: 4px 0 0; font-size: 0.82rem; color: #b91c1c; min-height: 1.1em; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }

/* Footer */
.site-footer {
  padding: 40px 0 24px;
  background: #0a121c;
  color: #9aa8b8;
  font-size: 0.85rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}
.site-footer a { color: #c5d0de; }
.site-footer__demo { font-size: 0.75rem; opacity: 0.75; margin-top: 16px; }
.site-footer__sissue {
  font-size: 0.78rem;
  margin-top: 12px;
}
.site-footer__sissue a { color: #7a9bc4; }

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-height: 360px; }
  .service-block, .service-block--reverse { grid-template-columns: 1fr; direction: ltr; }
  .service-block__body, .service-block--reverse .service-block__body { padding: 24px; }
  .case-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .message__grid { grid-template-columns: 1fr; }
  .message__photo { max-width: 280px; }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid #e2e8ef;
    gap: 12px;
    align-items: stretch;
  }
  .site-nav .btn { width: 100%; }
  .site-nav.is-open { display: flex; }
  .site-header { position: relative; }
  .site-header.is-sticky { position: sticky; top: 0; }
  .nav-toggle { display: block; }
  .strength-list { grid-template-columns: 1fr; }
  .stat-item__value { white-space: normal; }
}

@media (max-width: 390px) {
  .hero__title { font-size: 1.5rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
  .demo-hub-back { font-size: 0.68rem; }
  .site-header__start { gap: 10px; }
}
