/* Kaigansen shared design system */
:root {
  --bg: #f5f8fb;
  --bg-soft: #eef6fb;
  --card: #ffffff;
  --text: #14233a;
  --muted: #51677f;
  --line: #cbdceb;
  --blue: #0f66b3;
  --blue-dark: #082f5f;
  --green: #0a8fc5;
  --yellow: #f5b84b;
  --red: #e46b61;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 22px 52px rgba(8, 47, 95, .14);
  --shadow-soft: 0 12px 34px rgba(8, 47, 95, .10);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  color: var(--text);
  line-height: 1.8;
  letter-spacing: .02em;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(188, 211, 230, .85);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #07345f;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0c5aa6, #05a3d6);
  box-shadow: 0 12px 28px rgba(12, 90, 166, .24);
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #334155;
  font-size: 14px;
}

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover,
.nav-button:hover {
  transform: translateY(-2px);
}

.nav-button,
.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0c5aa6, #1d7ed0);
  box-shadow: 0 12px 28px rgba(12, 90, 166, .24);
}

.button-secondary {
  color: var(--blue-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.contact-cta {
  padding: 0 24px 48px !important;
  background: transparent !important;
  color: inherit !important;
  text-align: center;
}

.contact-band,
.contact-cta .page-inner,
.page-cta {
  width: 100%;
  max-width: var(--max);
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 42px !important;
  border-radius: 34px !important;
  box-sizing: border-box;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.16), transparent 26rem),
    linear-gradient(135deg, #063a73, #0f66b3 52%, #1898cf);
  box-shadow: 0 24px 52px rgba(8, 47, 95, .22);
}

.contact-band {
  margin-top: 36px;
}

.page-cta {
  width: min(100% - 48px, var(--max));
  margin-top: 0 !important;
  margin-bottom: 48px !important;
}

.contact-band h2,
.contact-cta h2,
.page-cta h2 {
  color: #ffffff;
}

.contact-band p,
.contact-cta p,
.page-cta p {
  max-width: 760px;
  margin: 16px auto 0;
  color: rgba(255,255,255,.86) !important;
}

.contact-band .button,
.contact-cta .button,
.page-cta .button {
  margin-top: 24px;
  background: #ffffff;
  color: #07345f;
  box-shadow: 0 12px 28px rgba(8, 47, 95, .18);
}

.site-footer {
  padding: 32px 24px;
  background: #071b30;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}

.footer-inner,
.footer-inner.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.footer-brand strong {
  display: inline !important;
  margin: 0 !important;
  color: #ffffff;
  font-size: inherit !important;
  font-weight: 700;
}

.footer-brand p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.66);
}

.footer-nav {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px !important;
  margin: 0 !important;
  color: rgba(255,255,255,.78);
  font-weight: inherit !important;
  line-height: 1.8;
}

.footer-nav a {
  color: #ffffff;
}

.footer-bottom {
  max-width: var(--max) !important;
  margin: 18px auto 0 !important;
  padding: 18px 0 0 !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.55);
  font-size: 13px !important;
}

@media (max-width: 900px) {
  .global-nav {
    display: none;
    background: rgba(255,255,255,.98);
    border-color: rgba(184, 207, 226, .95);
  }

  .global-nav.is-open {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .global-nav a {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
  }

  .global-nav .nav-button {
    justify-content: center;
  }

  .global-nav a:hover {
    background: rgba(15,102,179,.08);
  }

  .contact-cta {
    padding: 0 8px 16px !important;
  }

  .contact-band,
  .contact-cta .page-inner,
  .page-cta {
    padding: 34px 24px !important;
    border-radius: 24px !important;
  }

  .page-cta {
    width: calc(100% - 16px);
    margin-bottom: 16px !important;
  }

  .site-footer {
    padding: 28px 8px;
  }

  .footer-inner,
  .footer-bottom {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .footer-nav {
    justify-content: flex-start;
    margin-top: 14px !important;
  }
}

@media (max-width: 640px) {
  .contact-cta {
    padding-bottom: 14px !important;
  }

  .contact-band,
  .contact-cta .page-inner,
  .page-cta {
    padding: 30px 20px !important;
    border-radius: 22px !important;
  }

  .page-cta {
    margin-bottom: 14px !important;
  }
}\n
/* Header logo image */
.logo-image-link {
  display: inline-flex;
  align-items: center;
}

.logo-image {
  display: block;
  width: auto;
  height: 46px;
  max-width: 260px;
}
\n
/* Header logo size adjustment */
.logo-image {
  height: 68px;
  max-width: 360px;
}

/* Header logo size final override */
.site-header .logo-image {
  height: 92px !important;
  max-width: 520px !important;
  width: auto !important;
}

/* Header logo size final fine-tune */
.site-header .logo-image {
  height: 78px !important;
  max-width: 440px !important;
}

/* Header logo vertical balance */
.site-header .logo-image {
  transform: translateY(3px);
}

/* Header width align with top hero visual */
.header-inner {
  max-width: 1480px;
}

/* Header compact final adjustment */
.site-header .header-inner {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.site-header .logo-image {
  height: 62px !important;
  max-width: 360px !important;
  width: auto !important;
  transform: none !important;
}

/* Header inner width align with hero visual */
.site-header .header-inner {
  width: calc(100% - 24px) !important;
  max-width: 1480px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Footer width align with header and hero visual */
.site-footer .footer-inner,
.site-footer .footer-inner.footer-grid,
.site-footer .footer-bottom {
  max-width: 1480px !important;
}

/* Footer QR code */
.footer-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.4;
}

.footer-qr img {
  width: 88px;
  height: 88px;
  display: block;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 760px) {
  .footer-qr {
    display: none;
  }
}


/* Footer QR left layout */
.footer-brand-with-qr {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.footer-brand-with-qr .footer-qr {
  flex: 0 0 auto;
}

.footer-brand-text {
  padding-top: 6px;
}
