/* ADSUR homepage — rebuilt from adsur_homepage.html (2026-09-09 mockup).
   This "home" library is attached ONLY on the /adsur route (page--adsur.html.twig),
   which strips the theme's dark "global" library (see landing_page_page_attachments_alter),
   so it is safe for these rules to target body/html/a/h1 unscoped — nothing else
   on the site loads this stylesheet. The shared nav reused on cloud-infra node
   pages (127-129/138/139/224) uses the separate, class-scoped home-nav.css instead. */

:root {
  --navy: #092342;
  --navy-2: #07345c;
  --blue: #087ab7;
  --cyan: #37a9df;
  --ink: #101b2b;
  --muted: #586573;
  --line: #dbe2e8;
  --surface: #ffffff;
  --page: #f8fafc;
  color-scheme: light;
}

.adsur-home * { box-sizing: border-box; }
.adsur-home { scroll-behavior: smooth; }

body { margin: 0; }
.adsur-home {
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* Fill the viewport: header + hero + footer keep natural size, the light
     pillars section absorbs any extra height so there is no blank band under
     the footer and the dark hero stays a compact band (not a viewport slab). */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.adsur-home a { color: inherit; }
.adsur-home button { font: inherit; }

.adsur-home .container {
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
}

/* ---------- header ---------- */
.adsur-home .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 54px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(15,35,57,.07);
  backdrop-filter: blur(12px);
}

.adsur-home .header-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.adsur-home .brand {
  color: #0878bd;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}

.adsur-home .nav-wrap, .adsur-home .nav-links { display: flex; align-items: center; }
.adsur-home .nav-wrap { gap: 14px; }
.adsur-home .nav-links { gap: 22px; }

.adsur-home .nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s ease;
}

.adsur-home .nav-links a:hover, .adsur-home .nav-links a:focus-visible { color: var(--blue); }

.adsur-home .utility {
  display: flex;
  align-items: center;
  gap: 6px;
}

.adsur-home .icon-button {
  min-width: 42px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #e1e7ec;
  border-radius: 9px;
  background: #fff;
  color: #15253a;
  text-decoration: none;
  cursor: pointer;
}

.adsur-home .menu-button { display: none; }

/* ---------- hero ---------- */
.adsur-home .hero {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  color: #0c2748;
  border-bottom: 1px solid #dbe6ef;
  background:
    radial-gradient(circle at 78% 55%, rgba(0,153,211,.10), transparent 40%),
    linear-gradient(118deg, #eef4fb 0%, #e7f1f9 54%, #ddecf6 100%);
}

.adsur-home .hero-content { padding: 12px 0 14px; }

.adsur-home .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 6px;
  padding: 4px 11px;
  border: 1px solid rgba(12,39,72,.14);
  border-radius: 999px;
  background: rgba(12,39,72,.05);
  color: #2a5b80;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
}

.adsur-home .eyebrow .slash { color: #7aa9c8; }

.adsur-home h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: .015em;
  text-wrap: balance;
}

.adsur-home .hero-copy {
  max-width: 710px;
  margin: 8px 0 0;
  color: #4b5864;
  font-size: 14px;
  line-height: 1.5;
}

.adsur-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.adsur-home .button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 7px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}

.adsur-home .button:hover { transform: translateY(-2px); }
.adsur-home .button.primary { border-color: var(--cyan); background: var(--cyan); color: #05223a; }
.adsur-home .button.secondary:hover { background: rgba(255,255,255,.08); }

/* ---------- pillars ---------- */
.adsur-home .pillars {
  flex: 1 0 auto;
  padding: 12px 0 16px;
  background: #fff;
}

.adsur-home .section-heading { margin-bottom: 8px; }
.adsur-home .section-heading h2 { margin: 0; font-size: 18px; line-height: 1.2; }
.adsur-home .section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }

.adsur-home .card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.adsur-home .card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 18px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(14,31,48,.045);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.adsur-home .card:hover {
  transform: translateY(-4px);
  border-color: #b9d7e8;
  box-shadow: 0 13px 30px rgba(14,52,79,.11);
}

.adsur-home .card-kicker {
  color: #267a9f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.adsur-home .card h3 { margin: 4px 0 3px; font-size: 15px; line-height: 1.25; }
.adsur-home .card p { margin: 0; color: #4b5864; font-size: 13.5px; line-height: 1.45; }

.adsur-home .card ul {
  margin: 4px 0 0;
  padding-left: 1.25em;
  color: #253342;
  font-size: 13.5px;
  line-height: 1.45;
}

.adsur-home .card-link {
  margin-top: auto;
  padding-top: 4px;
  color: #0878ad;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.adsur-home .card-link::after { content: " →"; }
.adsur-home .card-link:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.adsur-home .site-footer {
  padding: 12px 0;
  color: #cad7e2;
  background: #091c30;
  font-size: 13px;
}

.adsur-home .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.adsur-home .footer-inner a { color: #e2edf5; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .adsur-home .nav-links { gap: 14px; }
  .adsur-home .nav-links a { font-size: 13px; }
  .adsur-home .brand { font-size: 15px; }
}

@media (max-width: 880px) {
  .adsur-home .site-header { height: 58px; }
  .adsur-home .menu-button { display: grid; }
  .adsur-home .nav-links {
    position: absolute;
    top: 58px;
    right: 14px;
    left: 14px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 35px rgba(9,31,53,.17);
  }

  .adsur-home .nav-links.open { display: flex; }
  .adsur-home .nav-links a { padding: 11px 12px; border-radius: 7px; }
  .adsur-home .nav-links a:hover { background: #f2f7fa; }
  .adsur-home .card-grid { grid-template-columns: 1fr; }
  .adsur-home .card { min-height: 0; }
}

@media (max-width: 600px) {
  .adsur-home .container { width: min(100% - 32px, 1160px); }
  .adsur-home .header-inner { padding-inline: 12px; }
  .adsur-home .brand { max-width: 68vw; overflow: hidden; text-overflow: ellipsis; }
  .adsur-home .utility .theme-toggle { display: none; }
  .adsur-home .hero { min-height: 450px; }
  .adsur-home .hero-content { padding: 50px 0 56px; }
  .adsur-home h1 { font-size: 34px; }
  .adsur-home .hero-copy { font-size: 15px; }
  .adsur-home .button { width: 100%; }
  .adsur-home .pillars { padding: 44px 0 55px; }
  .adsur-home .footer-inner { align-items: flex-start; flex-direction: column; }
}

/* ---------- dark mode toggle (real <body> class, only reachable via /adsur) ---------- */
body.dark {
  --ink: #ebf3f8;
  --muted: #aebbc5;
  --line: #2a4257;
  --surface: #10283c;
  --page: #0b1f31;
}

body.dark .adsur-home { background: var(--page); }
body.dark .adsur-home .site-header,
body.dark .adsur-home .pillars,
body.dark .adsur-home .nav-links { background: rgba(10,28,44,.97); }
body.dark .adsur-home .brand { color: #54bce9; }
body.dark .adsur-home .icon-button { color: #edf6fb; background: #102b43; border-color: #29455b; }
body.dark .adsur-home .card p, body.dark .adsur-home .card ul { color: #c2ced7; }
body.dark .adsur-home .nav-links a:hover { background: #173248; }

/* Dark mode keeps the original deep-navy hero; light mode uses a pale band. */
body.dark .adsur-home .hero {
  color: #fff;
  border-bottom: 0;
  background:
    radial-gradient(circle at 78% 55%, rgba(0,153,211,.13), transparent 36%),
    linear-gradient(118deg, #0c2748 0%, #08294e 54%, #004d74 100%);
}
body.dark .adsur-home .eyebrow {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #d8ecf8;
}
body.dark .adsur-home .eyebrow .slash { color: #5da8cf; }
body.dark .adsur-home .hero-copy { color: #d5e0ea; }

.adsur-home :focus-visible { outline: 3px solid #5fc5ef; outline-offset: 3px; }
