/* ============================================================
   Shared CTA band + Footer (aligned with company-overview.html)
   Load this AFTER page CSS so styles win over legacy footers.
   ============================================================ */

/* ============================================================
   Shared page hero background (aligned with cases.html)
   Index fullscreen slider uses header#hdr + .hero — excluded.
   ============================================================ */
.page-hero,
.article-hero,
.case-hero,
.talent-hero,
header:not(#hdr) ~ .hero {
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy-dark) 48%, var(--navy-mid) 78%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}

/* Kill page-unique pattern overlays that fight the shared look */
.page-hero .hero-grid-deco,
.page-hero .hero-lines-deco,
.page-hero .hero-hex-deco,
.page-hero .hero-dots {
  display: none !important;
}

/* Gold left accent — shared */
.hero-deco-line {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(200,160,32,.2) 100%);
  z-index: 3;
  pointer-events: none;
}

/* Watermark text used on contact / news / privacy etc. */
header:not(#hdr) ~ .hero .hero-bg-text {
  right: 20px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(56px, 11vw, 90px);
  font-weight: 300;
  color: rgba(255,255,255,.04);
  letter-spacing: .1em;
  line-height: 1;
}

/* Replace horizontal-line overlays with cases-style circle */
.article-hero::before,
.case-hero::before,
header:not(#hdr) ~ .hero::before {
  content: '';
  position: absolute;
  inset: auto;
  top: -60px;
  right: 220px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(200,160,32,.1);
  background: none;
  pointer-events: none;
}

/* Keep gold bar on article / case / contact-style heroes */
.article-hero::after,
.case-hero::after,
header:not(#hdr) ~ .hero::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(200,160,32,.2) 100%);
  pointer-events: none;
}

.cta-band {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-dark) 42%, var(--navy-mid) 72%, var(--navy) 100%);
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.05);
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -50px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(200,160,32,.05);
}
.cta-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.cta-tag,
.cta-tag-el {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .22em;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}
.cta-title {
  font-family: 'Noto Serif JP', serif;
  font-size: calc(clamp(23px, 3vw, 36px) * 0.9);
  font-weight: 600;
  color: var(--white);
  line-height: 1.55;
  margin-bottom: calc(20px + 1em);
  letter-spacing: .04em;
}
.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-w {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-ink);
  background: var(--white);
  border: none;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: .07em;
  transition: transform .15s, background .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-cta-w:hover { background: #eef3ff; transform: translateY(-2px); }
.btn-cta-o {
  font-size: 13px;
  color: var(--white);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.32);
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: .07em;
  transition: transform .15s, background .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-cta-o:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-cta-g {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-ink);
  background: var(--gold);
  border: none;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: .07em;
  transition: transform .15s, background .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-cta-g:hover { background: var(--gold-light); transform: translateY(-2px); }

footer {
  background: var(--navy-deep);
  padding: 72px 40px 0;
  color: rgba(255,255,255,.65);
}
footer .footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
footer .footer-addr {
  font-size: 12px;
  color: rgba(255,255,255,.46);
  line-height: 2;
  font-style: normal;
}
footer .fcol-title,
footer .footer-col-title {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,.4);
  letter-spacing: .16em;
  margin-bottom: 18px;
  font-family: 'Montserrat', sans-serif;
}
footer .flinks {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
footer .flink {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  transition: color .2s;
  text-decoration: none;
}
footer .flink:hover { color: var(--white); }
footer .footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: none;
}
footer .footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,.26);
  letter-spacing: .04em;
}

@media (max-width: 860px) {
  footer .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cta-band { padding-left: 20px; padding-right: 20px; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  footer { padding-left: 20px; padding-right: 20px; }
  footer .footer-inner { grid-template-columns: 1fr; }
}
