:root {
  /* Palette */
  --primary-dark: #0A1A2F;
  --primary-blue: hsl(215, 56%, 23%);
  --secondary-blue: #2D4A8A;
  --accent-gold: #C5A047;
  --light-gold: #E8D9B5;

  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --light-gray: #E9ECEF;
  --medium-gray: #6C757D;
  --dark-gray: #343A40;

  /* Header blend target (deep navy) */
  --header-rgb: 1, 15, 40;
  --header-bg: rgba(var(--header-rgb), 0.92);

  /* Fixed header height (for anchor offset / scroll padding) */
  --nav-height: 84px;

  /* Radius */
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Gradients */
  --gold-gradient: linear-gradient(135deg, var(--accent-gold) 0%, #D4B15A 100%);

  /* Shadow */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-soft: 0 10px 25px rgba(10, 26, 47, 0.08);
  --shadow-elevated: 0 16px 40px rgba(10, 26, 47, 0.14);

  /* Transition */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.18s ease;
  --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-elegant: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);

  /* Fonts */
  --font-primary: 'Inter', 'Noto Sans JP', sans-serif;
  --font-secondary: 'Noto Sans JP', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: light; }

/* anchor時に固定ヘッダーで隠れないように */
html { scroll-padding-top: var(--nav-height); }
section, [id] { scroll-margin-top: var(--nav-height); }

body {
  font-family: var(--font-secondary);
  font-weight: 400;
  color: var(--dark-gray);
  background-color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.highlight { color: var(--accent-gold); position: relative; display: inline-block; }
.highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 92% !important;
  height: 6px;
  background: rgba(197, 160, 71, 0.2);
  z-index: -1;
}

.hero-title .highlight {
  display: inline-block;
  position: relative;
}
.hero-title .highlight::after {
  width: 92%;
  left: 50%;
  transform: translateX(-50%);
}

.no-highlight {
  position: relative;
  z-index: 2;
}

/* Overlay */
.color-transition-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: linear-gradient(
    135deg,
    rgba(197, 160, 71, 0.08) 0%,
    rgba(26, 54, 93, 0.18) 50%,
    rgba(10, 26, 47, 0.22) 100%
  );
}

/* ===========================
   Hero
=========================== */
.hero{
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
  color: var(--white);
  overflow: hidden;
  z-index: 1;

  /* body { padding-top: var(--nav-height) } の分を打ち消してヒーロー背景をナビ裏まで伸ばす */
  margin-top: calc(-1 * var(--nav-height));

  /* センタリングを”物理固定” */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.hero::before{
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(197, 160, 71, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26, 54, 93, 0.2) 0%, transparent 50%);
}

/* Safari / iOS の背景レイヤー偏り対策（該当時のみ効く） */
@supports (-webkit-touch-callout: none){
  .np-hero-silk{
    left: 50% !important;
    right: auto !important;
    width: 140% !important;
    transform: translateX(-50%) rotate(var(--np-rot, -8deg)) scale(1.15) !important;
  }
}

/* content block */
.hero-content{
  position: relative;
  z-index: 3;

  width: min(100% - 40px, 700px);
  max-width: 700px;

  padding-left: 0;
  padding-right: 0;

  margin: 0 auto;

  padding-top: calc(var(--nav-height) + clamp(5rem, 9vh, 7rem));
  padding-bottom: clamp(2.2rem, 5vh, 3.6rem);

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  box-sizing: border-box;
}

.hero-badge{
  display: inline-block;
  background-color: rgba(197, 160, 71, 0.15);
  color: var(--light-gold);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  border: 1px solid rgba(197, 160, 71, 0.3);
}

.hero-title{
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto clamp(1.2rem, 1.8vw, 1.8rem);
  margin-inline: auto;
  text-align: center;

  font-size: clamp(3.2rem, 5.2vw, 5.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-subtitle,
.hero h3{
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero h3{
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.05vw, 1.12rem);
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.78);
  margin-top: 0;
  margin-bottom: clamp(1.55rem, 2.2vw, 2.1rem);
}

.hero-actions{
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(0.35rem, 0.8vw, 0.7rem);
}

.btn-primary{
  background: var(--gold-gradient);
  color: var(--primary-dark);
  text-decoration: none;
  padding: 0.95rem 2.2rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

/* ===== Scroll indicator（ここが中央固定の本体） ===== */
.hero-scroll{
  position: absolute !important;
  bottom: 2rem !important;

  /* safe-area左右差も吸収して“見た目の中央”へ */
  left: 50%;
  transform: translateX(-50%);
  right: auto !important;

  transform: translateX(-50%) !important;

  width: max-content !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  gap: 0.5rem !important;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  z-index: 5 !important;
  text-align: center !important;
}

.scroll-line{
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, rgba(197,160,71,.75), rgba(197,160,71,.25), transparent);
  position: relative;
}
.scroll-line::after{
  content: '';
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(197,160,71,.95);
  box-shadow: 0 0 18px rgba(197,160,71,.55);
  animation: npScrollDot 1.8s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes npScrollDot{
  0%  { opacity: .15; transform: translate(-50%, 0); }
  25% { opacity: 1; }
  80% { opacity: .15; transform: translate(-50%, 42px); }
  100%{ opacity: .12; transform: translate(-50%, 42px); }
}

.hero-content, .hero-scroll{ position: relative; z-index: 3; }

/* ===========================
   Hero Silk / Vignette
=========================== */
.np-hero-silk{
  position: absolute;
  inset: -14%;
  z-index: 1;
  pointer-events: none;
  opacity: .92;
  filter: blur(14px) saturate(1.12) contrast(1.06);
  will-change: transform, filter;
  transform: translateZ(0) rotate(var(--np-rot, -8deg)) scale(1.15);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: paint;
  background:
    radial-gradient(1200px 820px at var(--np-x1, 30%) var(--np-y1, 35%), rgba(255,255,255,.18), transparent 60%),
    radial-gradient(980px 760px at var(--np-x2, 68%) var(--np-y2, 40%), rgba(255,255,255,.14), transparent 62%),
    radial-gradient(1100px 900px at var(--np-x3, 55%) var(--np-y3, 70%), rgba(255,255,255,.11), transparent 66%),
    linear-gradient(120deg, rgba(6,20,48,.98) 0%, rgba(8,32,74,.94) 44%, rgba(10,52,112,.92) 100%);
  background-size: 120% 120%;
}
.np-hero-silk .np-silk-sweep{
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.00) 35%, rgba(255,255,255,.24) 48%, rgba(255,255,255,.00) 62%, transparent 100%);
  mix-blend-mode: soft-light;
  opacity: .85;
  filter: blur(18px);
  transform: translate3d(var(--np-swx, 0%), var(--np-swy, 0%), 0) rotate(var(--np-swrot, 0deg)) scale(1.15);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: paint;
}
.np-hero-silk::before{
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(920px 620px at var(--np-x4, 35%) var(--np-y4, 55%), rgba(255,255,255,.22), transparent 62%),
    radial-gradient(860px 560px at var(--np-x5, 72%) var(--np-y5, 62%), rgba(255,255,255,.16), transparent 60%);
  mix-blend-mode: soft-light;
  opacity: .95;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: paint;
}
.np-hero-silk::after{
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 760px at var(--np-x6, 44%) var(--np-y6, 58%), rgba(0,0,0,.28), transparent 64%),
    radial-gradient(980px 680px at var(--np-x7, 78%) var(--np-y7, 34%), rgba(0,0,0,.18), transparent 62%);
  mix-blend-mode: multiply;
  opacity: .55;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: paint;
}
.np-hero-vignette{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(1200px 800px at 50% 45%, transparent 0%, rgba(0,0,0,.18) 70%, rgba(0,0,0,.32) 100%);
  opacity: .65;
}
.np-accent-blue{ color: var(--primary-blue); }

/* ===========================
   Services
=========================== */
.services-section{
  padding: 6rem 0;
  background-color: var(--off-white) !important;
  position: relative;
  z-index: 1;
}

.section-header{
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}
.section-label{ font-size: 2.2rem; }
.section-subtitle{
  color: var(--medium-gray);
  font-size: 1.1rem;
  margin-top: 1rem;
}

.services-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card{
  background-color: var(--white) !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card:hover{ transform: translateY(-10px); box-shadow: var(--shadow-xl); }

.service-icon{ padding: 2rem 2rem 0; }
.icon-circle{
  width: 70px;
  height: 70px;
  background: rgba(2, 121, 160, 0.06);
  border: 2px solid rgba(2, 121, 160, 0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0279a0;
  font-size: 1.8rem;
  transition: background .3s ease, border-color .3s ease, color .3s ease, transform .4s cubic-bezier(.4,0,.2,1);
}

.service-card:hover .icon-circle{
  background: rgba(2, 121, 160, 0.13);
  border-color: #0279a0;
  color: #0279a0;
  transform: scale(1.08);
}

.service-content{
  padding: 1.5rem 2rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-category{
  display: inline-block;
  background: rgba(108, 117, 125, 0.10);
  border: 1px solid rgba(108, 117, 125, 0.18);
  color: rgba(52, 58, 64, 0.85);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

.service-title{
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}
.service-desc{
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features{ list-style: none; margin-bottom: 1.5rem; }
.service-features li{
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
  font-size: 0.95rem;
}
.service-features li::before{
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

.service-link{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.service-link:hover{ gap: 0.8rem; }

.service-card:hover .icon-circle{ transform: scale(1.06) rotate(4deg); }

.service-card[data-category="iam"]:hover .service-category{
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.10), rgba(79, 70, 229, 0.05));
  color: #4F46E5;
  border-color: rgba(79, 70, 229, 0.35);
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.15);
}
.service-card[data-category="network"]:hover .service-category{
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.10), rgba(5, 150, 105, 0.05));
  color: #059669;
  border-color: rgba(5, 150, 105, 0.35);
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.15);
}
.service-card[data-category="rpa"]:hover .service-category{
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.10), rgba(220, 38, 38, 0.05));
  color: #DC2626;
  border-color: rgba(220, 38, 38, 0.35);
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.15);
}
.service-card[data-category="ekyc"]:hover .service-category{
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.10), rgba(124, 58, 237, 0.05));
  color: #7C3AED;
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}
.service-card[data-category="security"]:hover .service-category{
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.10), rgba(234, 88, 12, 0.05));
  color: #EA580C;
  border-color: rgba(234, 88, 12, 0.35);
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.15);
}
.service-card[data-category="training"]:hover .service-category{
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.10), rgba(8, 145, 178, 0.05));
  color: #0891B2;
  border-color: rgba(8, 145, 178, 0.35);
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(8, 145, 178, 0.15);
}

/* ===========================
   News
=========================== */
.news-section{
  padding: 8rem 0;
  background: var(--off-white) !important;
  position: relative;
  z-index: 1;
}
.news-section::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 26, 47, 0.1), transparent);
}

.maintenance-link-wrapper{
  text-align: right;
  margin-top: .75rem;
}

.maintenance-link{
  display: inline-flex;
  align-items: center;
  gap: .5rem;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-left: none !important;

  color: rgba(26,54,93,0.55);
  font-weight: 500;
  font-size: .88rem;
  letter-spacing: .02em;
  text-decoration: none;
}
.maintenance-link i{ color: rgba(26,54,93,0.35); font-size: .85rem; }
.maintenance-link span{ text-decoration: none; opacity: .9; }
.maintenance-link:hover{ color: rgba(26,54,93,0.78); }
.maintenance-link:hover i{ color: rgba(197,160,71,0.55); }

.news-row,
.news-item {
  display: grid;
  grid-template-columns: 140px 150px 1fr;
  align-items: center;
  gap: 1.5rem;
}

.news-date {
  white-space: nowrap;
}

.news-category,
.news-badge,
.news-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  max-width: 140px;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-title {
  min-width: 0;
  line-height: 1.6;
}

.news-list-container{
  max-width: 900px;
  margin: 0 auto 4rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}
.news-list-container::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  z-index: -1;
}

.news-item{
  background-color: var(--white);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: 140px 150px 1fr;
  align-items: center;
  gap: 1.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.news-item::before{
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 0;
  background: var(--gold-gradient);
  transition: var(--transition-smooth);
}
.news-item:hover{ background: rgba(249, 250, 251, 0.8); padding-left: 3rem; }
.news-item:hover::before{ height: 100%; }
.news-item:last-child{ border-bottom: none; }

.news-date{
  min-width: 140px;
  font-size: 0.95rem;
  color: var(--medium-gray);
  font-weight: 500;
  padding-top: 0.25rem;
  transition: var(--transition-smooth);
}
.news-item:hover .news-date{ color: var(--accent-gold); transform: translateX(4px); }

.news-content{ flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }

.news-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
  text-transform: uppercase;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
  animation: pulse 2s infinite;
}

.news-title{
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-blue);
  line-height: 1.4;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition-smooth);
  letter-spacing: -0.2px;
}
.news-title:hover{ color: var(--accent-gold); transform: translateX(4px); }

.has-icon::after{
  font-size: 1em;
  margin-left: 0.5rem;
  display: inline-block;
  transition: var(--transition-fast);
}
.news-title.has-icon:hover::after{ transform: scale(1.2); }

.news-archive{ text-align: center; margin-top: 4rem; position: relative; }

.archive-link{
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  padding: 1rem 2.5rem;
  border: 2px solid rgba(26, 54, 93, 0.2);
  border-radius: var(--radius-full);
  background: transparent;
  position: relative;
  overflow: hidden;
}
.archive-link::before{
  content: '';
  position: absolute;
  inset: 0;
  left: -100%;
  background: var(--gold-gradient);
  transition: var(--transition-smooth);
  z-index: -1;
}
.archive-link:hover{
  color: var(--primary-blue);
  gap: 1rem;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 160, 71, 0.25);
}
.archive-link:hover::before{ left: 0; }


/* ===========================
   Animations
=========================== */
@keyframes fadeInUp{
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse{
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
.fade-in{ animation: fadeInUp 0.8s ease-out forwards; }

.scroll-animate{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-animate.scrolled{ opacity: 1; transform: translateY(0); }

/* ===========================
   Responsive
=========================== */
@media (min-width: 769px){
  .hero-content{
    width: min(100% - 48px, 820px) !important;
    max-width: 820px !important;
  }
}

@media (min-width: 1440px){
  .container{ max-width: 1400px; }
  .hero-title{ font-size: 4.5rem; }
  .services-grid{ grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

@media (max-width: 992px){
  .container{ padding: 0 1.5rem; }

  .hero-title{ font-size: 3rem; }
  .hero-subtitle{ max-width: 90%; }

  .hero-content{
    align-items: center;
    text-align: center;
  }
  .hero-title,
  .hero-subtitle,
  .hero h3{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .maintenance-link-wrapper{ text-align: left; width: 100%; }
  .maintenance-link{ width: 100%; justify-content: center; }

  .hero-actions{ flex-direction: column; align-items: center; }
  .btn-primary{ width: 100%; max-width: 280px; }
}

@media (max-width: 768px){
  .container{ padding: 0 1rem; }

  .hero{
    min-height: 90vh;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero-content{
    width: 100% !important;
    max-width: none !important;

    padding-left: 20px !important;
    padding-right: 20px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .hero-title{
    display: inline-block !important;

    width: auto !important;
    max-width: none !important;

    margin-left: auto !important;
    margin-right: auto !important;

    text-align: center !important;

    font-size: clamp(2.2rem, 8vw, 2.9rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.04em !important;

    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  .hero-title .highlight{
    display: inline-block !important;
    white-space: nowrap !important;
  }

  .hero-title br{
    display: block;
    content: "";
    margin-top: 0.18em;
  }

  .hero-subtitle{
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
  }

  .hero h3{
    font-size: 0.98rem;
    margin-bottom: 1.6rem;
  }

  .hero-subtitle,
  .hero h3,
  .hero-actions{
    width: 100% !important;
    text-align: center !important;
  }

  .hero-actions{
    display: flex !important;
    justify-content: center !important;
  }

  .btn-primary{
    width: min(100%, 320px) !important;
  }

  .services-section, .news-section{ padding: 4rem 0; }
  .services-grid{ grid-template-columns: 1fr; }

  .news-row,
  .news-item{
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 1.5rem 1.5rem;
  }
  .news-category,
  .news-badge,
  .news-tag {
    width: fit-content;
    min-width: auto;
  }
  .news-date{ min-width: auto; padding-top: 0; }

  .np-hero-silk,
  .np-hero-vignette{
    display: none !important;
  }

  .hero::before{
    display: none !important;
  }

  .hero{
    background:
      radial-gradient(circle at 50% 45%, rgba(80,110,150,.55) 0%, rgba(10,26,47,1) 68%) !important;
  }

}

@media (max-width: 480px){
  .hero-title{ font-size: 2rem; }
  .hero-subtitle{ font-size: 0.95rem; }
  .hero-badge{ font-size: 0.75rem; }
}

@media (max-width: 360px){
  .hero-title{ font-size: 1.8rem; }
  .container{ padding: 0 0.75rem; }
}

/* ===========================
   Dark mode (manual only)
=========================== */
body.dark{
  background-color: #0f172a;
  color: #e2e8f0;
}
body.dark .services-section,
body.dark .news-section{
  background-color: #1e293b !important;
}
body.dark .service-card,
body.dark .news-list-container,
body.dark .news-item{
  background-color: #1e293b !important;
}
body.dark .service-title{ color: #e2e8f0; }
body.dark .service-desc,
body.dark .service-features li,
body.dark .section-subtitle,
body.dark .news-date{ color: rgba(226, 232, 240, 0.75); }

/* ===========================
   Print
=========================== */
@media print{
  .navbar,
  .hero-actions,
  .hero-scroll,
  .color-transition-overlay,
  .nav-actions,
  .news-archive,
  footer{ display: none !important; }

  body{
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .hero{
    background: none !important;
    color: #000 !important;
    min-height: auto;
  }

  .hero-title .highlight{
    color: #000 !important;
    background: none !important;
  }

  .service-card{
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .container{ max-width: 100%; }
  a{ color: #000 !important; text-decoration: underline; }
}

/* ===== Hero layout ===== */
html, body{
  overflow-x: hidden;
  width: 100%;
}

.hero{
  width: 100vw;
  left: 0 !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  overflow-x: hidden !important;
}

.hero-content{
  position: static !important;
  transform: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title,
.hero-subtitle,
.hero-content h1,
.hero-content h2,
.hero-content h3{
  width: 100%;
  text-align: center;
  margin: 0 auto 1.5rem;
}

.hero-content .hero-actions{
  width: 100%;
  text-align: center;
}

@media (max-width: 991px){
  .hero-content{
    padding-top: 80px;
  }
}

@media (max-width: 768px){
  .hero{
    min-height: 100svh;
  }
  .hero-content{
    width: min(100% - 40px, 420px);
    max-width: 420px;
    margin: 0 auto;
    padding: 0;
  }
  .hero-content h3{
    word-break: keep-all;
    font-size: 0.9rem;
  }
}
