/* ==========================================================================
   Saimei Trading — theme stylesheet
   Rebuilt from the original WordPress/Visual Composer site as a static
   HTML/CSS foundation for the future Node.js + React port.

   Design direction: "brand blue + gold" — matches the SAIMEI logo's deep
   blue wordmark and gold/yellow swirl mark, on a cool off-white canvas,
   fully rounded/curvy buttons and cards, soft colored shadows instead of
   flat bordered edges. Variable NAMES below are kept from earlier palette
   iterations (to avoid re-touching every var() consumer in this file) but
   now hold blue/gold-family values — see the value comments for what each
   one actually renders as.
   ========================================================================== */

:root {
  --navy: #14337a;        /* brand blue (logo wordmark) — solid fills: CTA buttons, dark sections */
  --navy-2: #0c2557;      /* deep blue — hover/darker shade, gradient dark stop */
  --navy-text: #14337a;   /* brand blue — headings & emphasis text */
  --ink: #1e252d;
  --slate: #57626d;
  --slate-light: #8a94a0;
  --border: #dce3f0;      /* soft blue-tinted border */

  --gold: #f5b400;        /* brand gold (logo swirl) — underlines, icon accents, badge borders */
  --gold-bright: #ffd666; /* light gold — bright labels/text on dark blue backgrounds */
  --gold-deep: #8a5a00;   /* deep amber — hover/active text on light backgrounds (readable on white) */
  --mint: #fdecc8;        /* pale gold tint — success/positive accents, cert badges */
  --bg-soft: #eef2fa;     /* alternate light section background */
  --bg-navy-tint: #e4eaf7;

  --gradient-navy: linear-gradient(135deg, #1b4db0 0%, #0c2557 100%);
  --gradient-gold: linear-gradient(135deg, #ffd666 0%, #f5b400 100%);
  --shadow-navy: 0 10px 30px rgba(12, 37, 87, 0.18);
  --shadow-navy-soft: 0 4px 20px rgba(12, 37, 87, 0.1);
  --shadow-gold-hover: 0 10px 24px rgba(245, 180, 0, 0.4);

  --white: #fff;
  --cream: #f6f7fa;       /* base page canvas — cards/surfaces stay pure white on top of this */

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --font-heading: 'Manrope', 'Noto Sans JP', sans-serif;
  --font-display: 'Barlow', 'Noto Sans JP', sans-serif;
  --font-banner: 'Roboto', 'Noto Sans JP', sans-serif;
  /* 'Noto Sans' + 'Noto Sans JP' are drawn by the same foundry to share
     metrics/weight, so Latin, Vietnamese-diacritic and Japanese text sit at a
     consistent size and rhythm when the language switcher swaps content —
     picked for legibility across a JA/VI/EN multi-page site rather than the
     display-only Barlow/Manrope pairing used for headings. */
  --font-body: 'Noto Sans', 'Noto Sans JP', sans-serif;
}

/* -------------------------------- Reset -------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
input[type="submit"], input[type="reset"], input[type="button"] { cursor: pointer; }
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-heading); }

section[id] { scroll-margin-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------- Scroll progress ---------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--gradient-gold);
  z-index: 200;
}

/* ------------------------------ Reveal on scroll ------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 0.8, 0.24, 1), transform 0.8s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

.mission-grid .mission-card:nth-child(2) { transition-delay: 0.1s; }
.mission-grid .mission-card:nth-child(3) { transition-delay: 0.2s; }

.strategy-grid .strategy-card:nth-child(2) { transition-delay: 0.1s; }

.business-columns .business-column:nth-child(2) { transition-delay: 0.12s; }

.consulting-grid .consulting-card:nth-child(2) { transition-delay: 0.12s; }

.news-grid-secondary > .reveal:nth-child(2) { transition-delay: 0.1s; }
.news-grid-secondary > .reveal:nth-child(3) { transition-delay: 0.2s; }

.team-grid .team-card:nth-child(2) { transition-delay: 0.06s; }
.team-grid .team-card:nth-child(3) { transition-delay: 0.12s; }
.team-grid .team-card:nth-child(4) { transition-delay: 0.18s; }
.team-grid .team-card:nth-child(5) { transition-delay: 0.24s; }

/* -------------------------------- Header --------------------------------
   Note: the glass-blur lives on a separate .header-bg layer (not on
   #header itself). backdrop-filter/transform/filter on an ancestor
   creates a new containing block for position:fixed descendants — since
   the mobile #main-menu overlay is fixed and needs to size against the
   viewport (not the header bar), #header must stay free of those
   properties. -------------------------------------------------------- */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(12, 37, 87, 0.08);
  transition: box-shadow 0.35s ease;
}
#header.scrolled .header-bg {
  box-shadow: 0 8px 30px rgba(12, 37, 87, 0.12), inset 0 -2px 0 var(--gold);
}

.navbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.navbar-brand img {
  height: 56px;
  width: auto;
  padding: 12px 0;
  transition: height 0.35s ease, padding 0.35s ease;
}
#header.scrolled .navbar-brand img {
  height: 42px;
  padding: 8px 0;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 5px;
}
.navbar-toggle .icon-bar {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
}

#main-menu {
  display: flex;
  align-items: center;
  margin: 0;
}

#main-menu ul {
  display: flex;
  align-items: center;
}

#main-menu li a {
  display: block;
  position: relative;
  padding: 28px 18px;
  font-weight: bold;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--navy-text);
  transition: color 0.3s;
  white-space: nowrap;
}

#main-menu li a:hover { color: var(--gold-deep); }

#main-menu a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 20px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 0.8, 0.24, 1);
}
#main-menu a:not(.nav-cta):hover::after { transform: scaleX(1); }

/* CTA button styling is keyed off .nav-cta rather than :last-child since the
   language switcher sits after the "お問い合わせ" link in the menu list. */
#main-menu a.nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 13px 26px;
  margin: 0 6px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-navy-soft);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
#main-menu a.nav-cta:hover { background: var(--navy-2); box-shadow: var(--shadow-navy); transform: translateY(-2px); }

.button-close { display: none; }

/* ------------------------------ Hero ------------------------------
   A real, mostly-undimmed photo banner spanning the full viewport width
   (not inset in the container like the .bg-navy panels elsewhere) — the
   image is only ever darkened at its bottom third (a gradient, not a
   flat wash) so the text has somewhere to sit while the rest of the
   photo stays fully bright and visible. */
.hero-block { background: var(--cream); }
.hero-banner-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 78vh;
  min-height: 560px;
  max-height: 760px;
}
.hero-banner-img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 20, 48, 0.82) 0%, rgba(8, 20, 48, 0.48) 34%, rgba(8, 20, 48, 0) 64%);
}
.hero-banner-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 64px;
}
.hero-text-inner { max-width: 640px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.hero-eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--gold-bright); }
.hero-banner-content h1 {
  font-size: 42px;
  line-height: 1.28;
  font-weight: 800;
  font-family: var(--font-heading);
  color: white;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 0 30px;
}
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  font-size: 15px;
  padding: 17px 32px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-navy-soft);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.hero-cta-primary:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: var(--shadow-navy); }
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--navy-text);
  font-weight: 800;
  font-size: 15px;
  padding: 17px 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: border-color 0.3s, color 0.3s, transform 0.3s, background 0.3s;
}
.hero-cta-secondary:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
.hero-cta-secondary-ondark {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}
.hero-cta-secondary-ondark:hover { background: white; color: var(--navy-text); border-color: white; }

.hero-stats-wrap { background: var(--gradient-navy); padding: 48px 0; }

/* Hero content fades/slides up on load (not scroll-triggered) */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.hero-animate { opacity: 0; animation: heroUp 0.9s cubic-bezier(0.16, 0.8, 0.24, 1) forwards; }

@media (max-width: 900px) {
  .hero-banner-frame { height: 80vh; min-height: 420px; }
  .hero-banner-content { padding-bottom: 40px; }
  .hero-banner-content h1 { font-size: 32px; }
  .hero-stats-wrap { padding: 32px 0; }
}
@media (max-width: 560px) {
  .hero-banner-frame { height: 82vh; min-height: 480px; }
  .hero-banner-content { padding-bottom: 28px; }
  .hero-banner-content h1 { font-size: 26px; }
  .hero-title-break { display: none; }
  .hero-sub { font-size: 14px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-primary, .hero-cta-secondary { justify-content: center; padding: 15px 24px; }
}

/* -------------------------------- Quote -------------------------------- */
.quote-block {
  padding: 80px 0;
  text-align: center;
}
.quote--icon img { width: 40px; margin: 0 auto 24px; filter: sepia(1) saturate(4) hue-rotate(-10deg) brightness(0.8); }
.quote--icon.flip img { transform: rotate(180deg); margin: 24px auto 0; }
.quote-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.8;
  color: var(--navy-text);
  font-weight: 500;
}

/* --------------------------- Section titles --------------------------- */
.section-title {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding-bottom: 8px;
  margin-bottom: 48px;
  position: relative;
}
.section-title p {
  order: -1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 14px;
}
.section-title p::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold);
  flex: 0 0 auto;
}
.section-title h3 {
  color: var(--navy-text);
  font-size: 38px;
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 20px;
}
.section-title:after {
  content: '';
  display: block;
  width: 0;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient-gold);
  transition: width 0.7s cubic-bezier(0.16, 0.8, 0.24, 1) 0.25s;
}
.section-title.is-visible:after { width: 56px; }

/* Sections on a dark navy background — full-bleed, spanning the full
   viewport width to match the hero and page-header banners rather than
   an inset card, so the whole site reads as one consistent full-width
   system. */
.bg-navy {
  background: var(--gradient-navy);
  color: rgba(255, 255, 255, 0.86);
}
.bg-navy .section-title h3 { color: white; }
.bg-navy .section-title p { color: var(--gold-bright); }

.bg-soft { background: var(--bg-soft); }

section.block { padding: 96px 0; }

/* Shine sweep for primary CTA buttons */
.btn-blue, .blue-button, .form-buttons input[type="submit"] {
  position: relative;
  overflow: hidden;
}
.btn-blue::before, .blue-button::before, .form-buttons input[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
}
.btn-blue:hover::before, .blue-button:hover::before, .form-buttons input[type="submit"]:hover::before { left: 130%; }

/* -------------------------------- About -------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}
/* Default assumes a light section background (dark text); .bg-navy below
   overrides for the dark navy variant. */
.about-text p {
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 20px;
  color: var(--ink);
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--gold-deep); font-weight: 700; }
.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 320px;
}
.about-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(245, 180, 0, 0.35);
  box-shadow: 0 20px 44px rgba(8, 20, 48, 0.35);
  border-radius: var(--radius-lg);
  transition: transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.about-photos img:hover { transform: scale(1.05); }
.about-quote {
  position: relative;
  margin: 0;
  background: var(--bg-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 36px 40px 36px 80px;
  font-size: 17px;
  line-height: 1.9;
  font-style: normal;
  font-weight: 500;
  color: var(--navy-text);
}
.about-quote::before {
  content: '\201C';
  position: absolute;
  top: 14px;
  left: 28px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: normal;
  font-size: 60px;
  line-height: 1;
  color: var(--gold-deep);
  opacity: 0.5;
}

/* Dark navy section variant */
.bg-navy .about-text p { color: rgba(255, 255, 255, 0.78); }
.bg-navy .about-text strong { color: var(--gold-bright); }
.bg-navy .about-quote {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  font-style: italic;
  font-weight: normal;
}
.bg-navy .about-quote::before { color: var(--gold); opacity: 0.65; }

/* -------------------------------- Section banner image -------------------------------- */
.section-banner {
  overflow: hidden;
  box-shadow: var(--shadow-navy);
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
  height: 320px;
  position: relative;
}
.section-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(245, 180, 0, 0.3);
  pointer-events: none;
}
.section-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.94);
  transition: transform 0.8s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.section-banner:hover img { transform: scale(1.04); }

/* -------------------------------- Mission -------------------------------- */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mission-card {
  background: white;
  padding: 32px;
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius-md);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.mission-card:hover { transform: translateY(-6px); border-top-color: var(--gold); box-shadow: var(--shadow-navy-soft); }
.mission-card-label {
  display: inline-block;
  background: var(--navy);
  color: white;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 6px 20px;
  margin-bottom: 20px;
  border-radius: var(--radius-pill);
}
.mission-card ul { display: flex; flex-direction: column; gap: 14px; }
.mission-card li {
  font-size: 14px;
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
  color: var(--slate);
}
.mission-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--gold);
}

/* -------------------------------- Strategy -------------------------------- */
.strategy-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: stretch;
}
.strategy-image {
  overflow: hidden;
  box-shadow: var(--shadow-navy);
  border-radius: var(--radius-lg);
  min-height: 280px;
}
.strategy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.strategy-image:hover img { transform: scale(1.06); }
.strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.strategy-card {
  background: var(--bg-soft);
  padding: 32px;
  border-top: 3px solid transparent;
  border-radius: var(--radius-md);
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.strategy-card:hover { transform: translateY(-6px); border-top-color: var(--gold); }
.strategy-card-label {
  color: var(--navy-text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 20px;
}
.strategy-card ul { display: flex; flex-direction: column; gap: 14px; }
.strategy-card li {
  font-size: 14px;
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
  color: var(--slate);
}
.strategy-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--navy);
}

/* -------------------------------- Business columns -------------------------------- */
.business-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.business-column {
  background: white;
  padding: 32px;
  box-shadow: var(--shadow-navy);
  border-radius: var(--radius-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.business-column:hover { transform: translateY(-4px); }
.business-column-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--navy-text);
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold);
}
.business-group { margin-bottom: 24px; }
.business-group:last-child { margin-bottom: 0; }
.business-group-label {
  font-weight: bold;
  font-size: 15px;
  color: var(--navy-text);
  margin-bottom: 10px;
}
.business-group ul { display: flex; flex-direction: column; gap: 8px; }
.business-group li {
  font-size: 14px;
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
  color: var(--slate);
}
.business-group li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--gold-deep);
}

/* -------------------------------- Consulting -------------------------------- */
.consulting-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: stretch;
}
.consulting-intro-image {
  overflow: hidden;
  box-shadow: var(--shadow-navy);
  border-radius: var(--radius-lg);
  min-height: 220px;
}
.consulting-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.consulting-intro-image:hover img { transform: scale(1.06); }
.consulting-intro .about-quote { display: flex; align-items: center; }
.consulting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.consulting-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.consulting-card:hover { transform: translateY(-6px); border-top-color: var(--gold); box-shadow: var(--shadow-navy-soft); }
.consulting-num {
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: white;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 50%;
}
.consulting-title {
  font-weight: bold;
  font-size: 17px;
  margin-bottom: 16px;
  color: var(--navy-text);
}
.consulting-card ul { display: flex; flex-direction: column; gap: 10px; }
.consulting-card li {
  font-size: 14px;
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
  color: var(--slate);
}
.consulting-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--gold);
}

.capability-block { margin-top: 64px; }
.capability-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.capability-list > div {
  background: var(--bg-soft);
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.7;
  position: relative;
  padding-left: 44px;
  color: var(--slate);
  border-radius: var(--radius-md);
}
.capability-list > div::before {
  content: '✓';
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--gold-deep);
  font-weight: bold;
}

/* ---------------------------- Common utility ---------------------------- */
.common-desc {
  text-align: center;
  font-size: 18px;
  line-height: 32px;
  font-weight: 500;
  max-width: 752px;
  margin: 0 auto;
}

/* -------------------------------- Online -------------------------------- */
.online-block { position: relative; }
.online-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 56px;
}
.online-contact_text {
  max-width: 315px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.btn-blue {
  background: var(--navy);
  box-shadow: var(--shadow-navy-soft);
  color: white;
  font-size: 16px;
  font-weight: 700;
  line-height: 23px;
  padding: 20px;
  width: 100%;
  max-width: 266px;
  text-align: center;
  border-radius: var(--radius-pill);
  transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
}
.btn-blue:hover { transform: translateY(-2px); background: var(--navy-2); }
.bg-navy .btn-blue {
  background: white;
  color: var(--navy-text);
  box-shadow: 0 10px 24px rgba(8, 20, 48, 0.3);
}
.bg-navy .btn-blue:hover { box-shadow: var(--shadow-gold-hover); background: var(--bg-soft); }

/* -------------------------------- Products -------------------------------- */
.product-category {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 64px;
}
.product-category:last-child { margin-bottom: 0; }
.product-category.reverse .product-category-image { order: 2; }
.product-category-image {
  overflow: hidden;
  box-shadow: var(--shadow-navy);
  border-radius: var(--radius-lg);
  height: 320px;
}
.product-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.product-category:hover .product-category-image img { transform: scale(1.06); }
.product-category-body h4 {
  font-size: 22px;
  color: var(--navy-text);
  margin-bottom: 16px;
  font-weight: 800;
}
.product-category-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
  margin: 0 0 20px;
}
.cert-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-badges span {
  display: inline-block;
  background: var(--mint);
  color: var(--navy-text);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
}

/* ---------------------------------- News ---------------------------------- */
.news-grid-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.news-grid-main .news-content { display: flex; flex-direction: column; justify-content: center; }
.news-grid-main h5 a {
  font-size: 21px;
  line-height: 32px;
  color: var(--navy-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-grid-main .date { font-size: 14px; margin: 8px 0; color: var(--slate-light); }
.news-grid-main .excerpt a {
  font-size: 14px;
  line-height: 22px;
  color: var(--slate);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-grid-main .readmore a { color: var(--gold-deep); font-size: 14px; font-weight: bold; display: inline-block; transition: transform 0.3s, color 0.3s; }
.news-grid-main .news-content:hover .readmore a { transform: translateX(4px); }
.news-grid-main h5 a { transition: color 0.3s; }
.news-grid-main .news-content:hover h5 a { color: var(--gold-deep); }
.item-image { background: var(--border); min-height: 260px; overflow: hidden; border-radius: var(--radius-lg); }
.item-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1); }
.news-grid-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-grid-secondary > div {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-navy-soft);
  transition: transform 0.35s ease;
}
.news-grid-secondary > div:hover { transform: translateY(-4px); }
.news-grid-secondary .item-image { overflow: hidden; border-radius: 0; }
.news-grid-secondary .item-image img { transition: transform 0.6s cubic-bezier(0.16, 0.8, 0.24, 1); }
.news-grid-secondary > div:hover .item-image img { transform: scale(1.08); }
.news-grid-secondary h5 a {
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  color: var(--navy-text);
  margin-top: 16px;
  padding: 0 4px 16px;
  display: block;
  transition: color 0.3s;
}
.news-grid-secondary > div:hover h5 a { color: var(--gold-deep); }

/* -------------------------------- Profile -------------------------------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: start;
}
.profile-table--row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  min-height: 56px;
  border-bottom: 1px solid var(--border);
}
.profile-table--row:nth-of-type(even) { background: var(--bg-soft); }
.profile-table--row > div {
  padding: 20px 24px;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0.05em;
}
.profile-table--row > div:first-of-type {
  text-align: center;
  font-weight: 700;
  color: var(--navy-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-table--row { transition: background-color 0.3s; }
.profile-table--row:hover { background: var(--bg-navy-tint); }

.profile-image { overflow: hidden; box-shadow: var(--shadow-navy); border-radius: var(--radius-lg); }
.profile-image img { filter: saturate(0.9); transition: transform 0.8s cubic-bezier(0.16, 0.8, 0.24, 1); }
.profile-image:hover img { transform: scale(1.05); }

/* -------------------------------- Team -------------------------------- */
/* Flexbox (not grid) so an incomplete last row — e.g. 5 cards as 3 + 2 —
   centers itself instead of hugging the left edge under the first columns. */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.team-card {
  flex: 0 1 calc(33.333% - 16px);
  background: white;
  padding: 28px;
  text-align: center;
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-navy);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.team-card:hover { transform: translateY(-6px); }

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
  background: var(--gradient-navy);
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 26px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(12, 37, 87, 0.3);
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  transition: transform 0.4s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.team-card:hover .team-avatar { transform: scale(1.06); }
/* Drop a <img> inside .team-avatar to swap in a real headshot — it will
   automatically fill the circle and the initials span can be removed. */
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }

.team-name { font-weight: bold; font-size: 17px; color: var(--navy-text); margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--gold-deep); font-weight: bold; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.team-contact { font-size: 13px; line-height: 1.8; color: var(--slate); word-break: break-word; }

/* -------------------------------- Access -------------------------------- */
.access-address {
  font-size: 16px;
  font-weight: bold;
  color: var(--navy-text);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  text-align: center;
}
.access-map {
  overflow: hidden;
  box-shadow: var(--shadow-navy);
  margin-bottom: 32px;
}
.access-map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
  filter: grayscale(0.15);
}
.button-access { text-align: center; }
.blue-button {
  display: inline-block;
  background: var(--navy);
  box-shadow: var(--shadow-navy-soft);
  padding: 20px 40px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  border-radius: var(--radius-pill);
  transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
}
.blue-button:hover { transform: translateY(-2px); background: var(--navy-2); }

/* -------------------------------- Contact -------------------------------- */
.contact-block { position: relative; overflow: hidden; }
.contact-block::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 340px 460px;
  border-color: transparent transparent var(--bg-soft) transparent;
  z-index: 0;
}
.contact-block .container { position: relative; z-index: 1; }
.contact-intro {
  max-width: 752px;
  margin: 0 auto 32px;
  font-size: 14px;
  line-height: 22px;
  color: var(--slate);
}
.contact-form { max-width: 752px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-label { font-size: 14px; margin-bottom: 10px; }
.form-label.bold { font-weight: bold; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  background: white;
  border-radius: var(--radius-sm);
  transition: border-color 0.25s;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { max-height: 152px; resize: vertical; }
.radio-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.radio-group label, .checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.form-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 16px;
}
.form-buttons input[type="submit"] {
  background: var(--navy);
  box-shadow: var(--shadow-navy-soft);
  padding: 14px;
  min-width: 170px;
  font-size: 16px;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: var(--radius-pill);
  transition: background 0.25s, transform 0.25s;
}
.form-buttons input[type="submit"]:hover { background: var(--navy-2); transform: translateY(-2px); }
.form-buttons input[type="reset"] {
  background: white;
  padding: 14px;
  min-width: 170px;
  font-size: 16px;
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: bold;
  border-radius: var(--radius-pill);
  transition: border-color 0.25s, color 0.25s;
}
.form-buttons input[type="reset"]:hover { border-color: var(--gold); color: var(--navy-text); }

/* -------------------------------- Footer -------------------------------- */
footer { background: var(--navy); color: rgba(255, 255, 255, 0.82); border-top: 3px solid var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  padding: 56px 0 40px;
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 20px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-menu a { font-size: 14px; position: relative; display: inline-block; width: fit-content; transition: color 0.3s; }
.footer-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.footer-menu a:hover { color: var(--gold-bright); }
.footer-menu a:hover::after { transform: scaleX(1); }

.footer-contact { display: flex; flex-direction: column; gap: 16px; }
.footer-contact-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  font-size: 14px;
  line-height: 1.7;
}
.footer-contact-row > span:first-child {
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
  padding-top: 2px;
}
.footer-contact-row a { color: rgba(255, 255, 255, 0.85); transition: color 0.25s; }
.footer-contact-row a:hover { color: var(--gold-bright); }

.copy-right {
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.55);
  padding: 14px;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 44px 0 32px; }
  .footer-contact-row { grid-template-columns: 84px 1fr; }
}
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-navy-soft);
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.3s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { box-shadow: var(--shadow-gold-hover); transform: translateY(-3px); }
.back-to-top img { width: 24px; height: 24px; }

/* -------------------------------- Divider image -------------------------------- */
.image-divider img { width: 100%; filter: saturate(0.9) brightness(0.95); }

/* ------------------------------- Responsive ------------------------------- */
@media (max-width: 900px) {
  .news-grid-secondary, .mission-grid, .capability-list { grid-template-columns: repeat(2, 1fr); }
  .team-card { flex-basis: calc(50% - 12px); }
  .profile-grid, .about-grid, .business-columns, .consulting-grid, .strategy-grid,
  .strategy-layout, .consulting-intro { grid-template-columns: 1fr; }
  .about-photos { height: 260px; margin-top: 24px; }
  .strategy-image { min-height: 220px; }
  .consulting-intro-image { min-height: 200px; }
  .product-category, .product-category.reverse { grid-template-columns: 1fr; }
  .product-category-image, .product-category.reverse .product-category-image { order: 0; height: 260px; }
  section.block { padding: 72px 0; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .navbar-toggle { display: flex; }
  #main-menu {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 60, 0.97);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 0.8, 0.24, 1);
  }
  #main-menu ul li {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  #main-menu.open ul li {
    opacity: 1;
    transform: none;
  }
  #main-menu.open ul li:nth-child(1) { transition-delay: 0.08s; }
  #main-menu.open ul li:nth-child(2) { transition-delay: 0.13s; }
  #main-menu.open ul li:nth-child(3) { transition-delay: 0.18s; }
  #main-menu.open ul li:nth-child(4) { transition-delay: 0.23s; }
  #main-menu.open ul li:nth-child(5) { transition-delay: 0.28s; }
  #main-menu.open ul li:nth-child(6) { transition-delay: 0.33s; }
  #main-menu.open ul li:nth-child(7) { transition-delay: 0.38s; }
  #main-menu.open ul li:nth-child(8) { transition-delay: 0.43s; }
  #main-menu.open { transform: translateX(0); }
  #main-menu ul { flex-direction: column; }
  #main-menu li a { color: white; font-size: 22px; padding: 16px; }
  #main-menu li a::after { display: none; }
  #main-menu a.nav-cta { background: none; color: var(--gold-bright) !important; }
  .button-close {
    display: block;
    position: absolute;
    top: 16px;
    right: 24px;
    color: white;
    font-size: 28px;
    background: none;
    border: none;
  }
  .hero-banner-content h1 { font-size: 30px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: 0.2em; }
  .section-title h3 { font-size: 28px; }
  .news-grid-secondary, .news-grid-main, .online-contact, .form-row, .mission-grid, .capability-list { grid-template-columns: 1fr; }
  .team-card { flex-basis: 100%; }
  .section-banner { height: 200px; margin-bottom: 32px; }
  .about-photos { grid-template-columns: 1fr; height: auto; }
  .about-photos img { height: 200px; }
  .about-quote { padding: 30px 24px 26px 56px; }
  .about-quote::before { font-size: 44px; top: 10px; left: 18px; }
  .contact-block::before { border-width: 0 0 200px 260px; }
}

/* ==========================================================================
   Multi-page site additions — active nav state, language switcher, inner
   page headers, sub-page anchor nav, tabs, document cards, flow steps,
   strengths grid, news listing.
   ========================================================================== */

/* Active nav link (set per-page on the matching <a>) */
#main-menu a.current:not(.nav-cta) { color: var(--gold-deep); }
#main-menu a.current:not(.nav-cta)::after { transform: scaleX(1); background: var(--gold); }
.footer-menu a.current { color: var(--gold-bright); }
.footer-menu a.current::after { transform: scaleX(1); }

/* -------------------------------- Language switcher --------------------------------
   Styled to match the surrounding #main-menu links (full-height padding, gold
   underline on hover/active) rather than a separate boxed pill, so it reads as
   part of one nav rather than a cramped extra panel. Thin dividers between the
   three letters keep it legible as a single grouped control. */
#main-menu li.lang-switch-item { align-self: stretch; }
.lang-switch {
  display: flex;
  align-items: stretch;
  height: 100%;
}
.lang-switch button {
  position: relative;
  border: none;
  background: none;
  padding: 28px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--slate);
  transition: color 0.25s;
}
.lang-switch button + button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: var(--border);
}
.lang-switch button::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 20px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.lang-switch button:hover { color: var(--navy-text); }
.lang-switch button:hover::after { transform: scaleX(1); }
.lang-switch button.active {
  color: var(--gold-deep);
  font-weight: 800;
}
.lang-switch button.active::after { transform: scaleX(1); }

@media (max-width: 768px) {
  .lang-switch-item { margin-top: 32px; }
  .lang-switch { justify-content: center; height: auto; }
  .lang-switch button { color: rgba(255, 255, 255, 0.6); font-size: 16px; padding: 6px 18px; }
  .lang-switch button + button::before { background: rgba(255, 255, 255, 0.25); }
  .lang-switch button::after { display: none; }
  .lang-switch button:hover { color: white; }
  .lang-switch button.active { color: var(--gold-bright); }
}

/* -------------------------------- Inner page header --------------------------------
   Full-bleed photo banner matching the homepage hero's language: a real,
   mostly-undimmed photo spanning the full viewport width, darkened only
   at the bottom where the text sits. */
.page-header {
  position: relative;
  overflow: hidden;
  height: 46vh;
  min-height: 340px;
  max-height: 460px;
  text-align: left;
}
.page-header-img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 20, 48, 0.85) 0%, rgba(8, 20, 48, 0.5) 38%, rgba(8, 20, 48, 0.05) 78%);
}
.page-header-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 40px;
}
.page-header-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.page-header-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold-bright); }
.page-header h1 {
  font-size: 38px;
  font-weight: 800;
  color: white;
  line-height: 1.3;
  margin-bottom: 10px;
}
.page-header p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0;
}
.breadcrumb {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.75); transition: color 0.25s; }
.breadcrumb a:hover { color: var(--gold-bright); }
.breadcrumb span { margin: 0 8px; color: rgba(255, 255, 255, 0.35); }

@media (max-width: 768px) {
  .page-header { height: 50vh; min-height: 300px; }
  .page-header h1 { font-size: 26px; }
  .page-header-content { padding-bottom: 28px; }
}

/* -------------------------------- Sub-page anchor nav -------------------------------- */
.subnav {
  position: sticky;
  top: 72px;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.subnav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 14px 0;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex: 0 0 auto;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--slate);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.subnav a:hover { color: var(--navy-text); }
.subnav a.active { color: var(--gold-deep); border-color: var(--gold); }

@media (max-width: 768px) {
  .subnav { top: 64px; }
}

/* -------------------------------- Tabs (Documents page) -------------------------------- */
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.tab-buttons button {
  border: 1px solid var(--border);
  background: white;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  color: var(--slate);
  border-radius: var(--radius-pill);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.tab-buttons button:hover { border-color: var(--gold); color: var(--navy-text); }
.tab-buttons button.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* -------------------------------- Document cards -------------------------------- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.doc-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.doc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-navy-soft); }
.doc-cover {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-soft);
}
.doc-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); }

/* Placeholder image slot — used where a real photo hasn't been supplied yet.
   Swap the parent's content for a plain <img> once one is available. */
.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--slate-light);
  background: repeating-linear-gradient(135deg, var(--bg-soft), var(--bg-soft) 10px, #eceff3 10px, #eceff3 20px);
}

.doc-cover-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--slate-light);
  background: repeating-linear-gradient(135deg, var(--bg-soft), var(--bg-soft) 10px, #eceff3 10px, #eceff3 20px);
}
.doc-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.doc-title { font-weight: 700; font-size: 16px; color: var(--navy-text); line-height: 1.5; }
.doc-meta { font-size: 12px; color: var(--slate-light); letter-spacing: 0.02em; }
.doc-actions { margin-top: auto; display: flex; gap: 10px; }
.doc-actions a, .doc-actions span {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.doc-actions a.doc-download { background: var(--navy); border-color: var(--navy); color: white; }
.doc-actions a.doc-download:hover { background: var(--navy-2); }
.doc-actions a.doc-preview { color: var(--navy-text); }
.doc-actions a.doc-preview:hover { border-color: var(--gold); color: var(--gold-deep); }
.doc-card.is-placeholder { opacity: 0.72; }
.doc-card.is-placeholder .doc-actions span {
  background: var(--bg-soft);
  color: var(--slate-light);
  cursor: not-allowed;
}
.badge-soon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--navy);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  z-index: 1;
}

/* -------------------------------- Flow steps (ご利用の流れ) -------------------------------- */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
}
.flow-step {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
}
.flow-step-num {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.flow-step-label { font-weight: 700; font-size: 14px; color: var(--navy-text); }
.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -13px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
  display: none;
}
/* @media (min-width: 901px) {
  .flow-step:not(:last-child)::after { display: block; }
} */

@media (max-width: 900px) {
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .flow-steps { grid-template-columns: 1fr; }
}

/* -------------------------------- Strength grid (SAIMEIの強み) -------------------------------- */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.strength-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.strength-card:hover { transform: translateY(-6px); border-top-color: var(--gold); }
.strength-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 12px;
}
.strength-title { font-weight: 700; font-size: 16px; color: var(--navy-text); margin-bottom: 10px; }
.strength-desc { font-size: 14px; line-height: 1.75; color: var(--slate); }

@media (max-width: 900px) { .strength-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .strength-grid, .doc-grid { grid-template-columns: 1fr; } }

/* -------------------------------- Home: services split layout -------------------------------- */
.services-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.services-intro { position: sticky; top: 110px; }
.services-intro-desc { font-size: 16px; line-height: 1.85; color: var(--slate); margin: 0 0 32px; }
.services-list { display: flex; flex-direction: column; gap: 20px; }
.service-row {
  display: flex;
  gap: 24px;
  background: white;
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-navy-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-navy); }
.service-row-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}
.service-row-title { font-weight: 700; font-size: 18px; color: var(--navy-text); margin-bottom: 8px; }
.service-row-desc { font-size: 14px; line-height: 1.75; color: var(--slate); margin-bottom: 14px; }

@media (max-width: 900px) {
  .services-layout { grid-template-columns: 1fr; gap: 40px; }
  .services-intro { position: static; }
}
@media (max-width: 560px) {
  .service-row { flex-direction: column; gap: 16px; padding: 24px; }
}

/* -------------------------------- Home: service/product summary cards -------------------------------- */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.summary-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.summary-card:hover { transform: translateY(-6px); border-top-color: var(--gold); box-shadow: var(--shadow-navy-soft); }
.summary-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold-deep);
  font-size: 18px;
  border-radius: var(--radius-sm);
}
.summary-title { font-weight: 700; font-size: 18px; color: var(--navy-text); margin-bottom: 10px; }
.summary-desc { font-size: 14px; line-height: 1.75; color: var(--slate); margin-bottom: 16px; }
.summary-link { font-size: 13px; font-weight: 700; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.25s; }
.summary-link:hover { gap: 10px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 36px; color: white; }
.stat-label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-bright); margin-top: 8px; }

@media (max-width: 900px) { .summary-grid { grid-template-columns: 1fr 1fr; } .stat-row { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 768px) { .summary-grid { grid-template-columns: 1fr; } }

/* -------------------------------- News listing page -------------------------------- */
.news-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.news-filter button {
  border: 1px solid var(--border);
  background: white;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.news-filter button.active { background: var(--navy); border-color: var(--navy); color: white; }
.news-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-list-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.news-list-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-navy-soft); }
.news-list-card .item-image { height: 200px; border-radius: 0; }
.news-list-card .news-list-body { padding: 20px; }
.news-list-card .news-list-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  background: var(--bg-soft);
  padding: 4px 10px;
  margin-bottom: 12px;
  border-radius: var(--radius-pill);
}
.news-list-card .date { font-size: 12px; color: var(--slate-light); margin-bottom: 6px; }
.news-list-card h5 a { font-size: 15px; line-height: 1.6; color: var(--navy-text); font-weight: 700; transition: color 0.25s; }
.news-list-card:hover h5 a { color: var(--gold-deep); }

@media (max-width: 900px) { .news-list-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .news-list-grid { grid-template-columns: 1fr; } }

/* -------------------------------- Contact channels grid -------------------------------- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.channel-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.channel-card:hover { transform: translateY(-5px); border-top-color: var(--gold); }
.channel-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.03em;
  border-radius: 50%;
}
.channel-title { font-weight: 700; font-size: 15px; color: var(--navy-text); margin-bottom: 8px; }
.channel-desc { font-size: 13px; color: var(--slate); line-height: 1.7; margin-bottom: 12px; }
.channel-action { font-size: 13px; font-weight: 700; color: var(--gold-deep); }

@media (max-width: 900px) { .channel-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .channel-grid { grid-template-columns: 1fr; } }

/* -------------------------------- i18n readiness -------------------------------- */
[data-i18n], [data-i18n-html] { transition: opacity 0.15s ease; }
html.i18n-loading [data-i18n], html.i18n-loading [data-i18n-html] { opacity: 0.4; }
