/* ==========================================================================
   CSS Variables (Light Theme with Corporate Colors)
   ========================================================================== */
:root {
  --color-bg: #ffffff;
  --color-bg-light: #f8fafc;
  --color-bg-darker: #f1f5f9;
  --color-bg-deep: #03080f;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  
  /* Spurs Corporate Colors */
  --color-primary: #2d77b5; /* Blue */
  --color-secondary: #f7d303; /* Yellow */
  --color-accent: #30b776; /* Green */

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.05);
  --glass-shadow: rgba(0, 0, 0, 0.05);
  --font-en: 'Outfit', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --z-index-header: 1000;
  --z-index-canvas: -1;
}

/* ==========================================================================
   Reset & Global
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-jp);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

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

/* ==========================================================================
   Moving Background Blobs
   ========================================================================== */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-index-canvas);
  background: var(--color-bg);
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.85; /* さらに濃く */
}

.blob-1 {
  width: 90vw;
  height: 90vw;
  max-width: 1200px;
  max-height: 1200px;
  background-color: rgba(45, 119, 181, 0.7); /* 青を濃く */
  top: -10%;
  left: -10%;
  animation: move-blob1 8s infinite alternate ease-in-out;
}

.blob-2 {
  width: 80vw;
  height: 80vw;
  max-width: 1000px;
  max-height: 1000px;
  background-color: rgba(45, 119, 181, 0.55); /* 少し濃い青 */
  bottom: -20%;
  right: -10%;
  animation: move-blob2 10s infinite alternate ease-in-out;
}

.blob-3 {
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background-color: rgba(247, 211, 3, 0.6); /* 黄を濃く */
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: move-blob3 7s infinite alternate ease-in-out;
}

/* 個別の複雑なアニメーション軌道 */
@keyframes move-blob1 {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30vw, 20vh) scale(1.1); }
  66% { transform: translate(15vw, 50vh) scale(0.9); }
  100% { transform: translate(40vw, 10vh) scale(1.15); }
}

@keyframes move-blob2 {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25vw, -30vh) scale(1.2); }
  66% { transform: translate(-50vw, 10vh) scale(0.85); }
  100% { transform: translate(-30vw, -40vh) scale(1.1); }
}

@keyframes move-blob3 {
  0% { transform: translate(-50%, -50%) scale(1); }
  33% { transform: translate(calc(-50% + 20vw), calc(-50% - 30vh)) scale(1.3); }
  66% { transform: translate(calc(-50% - 30vw), calc(-50% + 20vh)) scale(0.8); }
  100% { transform: translate(calc(-50% + 15vw), calc(-50% + 35vh)) scale(1.1); }
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 0.5em;
  font-family: var(--font-en);
  color: var(--color-text);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   Layout & Reusables
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section.bg-darker {
  background-color: var(--color-bg-darker);
}

.section.bg-deep {
  background-color: var(--color-bg-deep);
}

.section.bg-rich-blue {
  background: linear-gradient(135deg, #1e4d7d 0%, #0c2a4a 100%);
  color: #fff;
}

.section-title-wrap {
  margin-bottom: 4rem;
  text-align: center;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.section-subtitle {
  font-family: var(--font-jp);
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--glass-shadow);
  border-radius: 20px;
  padding: 3rem;
  transition: var(--transition);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-en);
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(45, 119, 181, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(45, 119, 181, 0.4);
  color: #fff;
}

.btn-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.btn-primary:hover .btn-icon {
  transform: translateX(4px);
}

.btn-outline {
  display: inline-flex;
  padding: 0.8rem 2rem;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 50px;
  font-weight: 600;
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ==========================================================================
   Header
   ========================================================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-index-header);
  padding: 1.5rem 0;
  transition: var(--transition);
}

#header.scrolled {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  margin-bottom: 0;
}

.logo a {
  display: block;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.logo a:hover .nav-logo-img {
  opacity: 0.8;
}

/* Logo visibility on different backgrounds */
.dark-theme .nav-logo-img,
#header:not(.scrolled) .nav-logo-img {
  filter: invert(1) brightness(2);
}

/* Revert to original black on scrolled white background */
#header.scrolled .nav-logo-img {
  filter: none;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.global-nav a {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  position: relative;
  color: var(--color-text);
}

.global-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.global-nav a:not(.btn-contact-nav):hover::after {
  width: 100%;
}

.btn-contact-nav {
  background: rgba(0,0,0,0.03);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--color-text);
}

.btn-contact-nav:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Hamburger (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
}

.hero::before {
  content: '';
  flex: 1; /* Pushes content perfectly to the middle */
}

.hero-content {
  max-width: 1200px; /* Expand container so text doesn't wrap on large screens */
  padding: 0 2rem;
  z-index: 2;
  flex: 0 0 auto; /* Prevent squeezing */
}

.hero-logo {
  width: clamp(200px, 22vw, 800px); /* Dynamically scales with screensize */
  height: auto;
  margin: 0 auto 3vw auto; /* Relative spacing */
  display: block;
}

.hero-title {
  font-size: clamp(2.2rem, 7vw, 20rem); /* Max unlocked to scale proportionally */
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 2vw; /* Relative margin */
  letter-spacing: 0.05em;
  white-space: nowrap; /* Forcibly prevent wrapping Japanese text */
}

.hero-title .gradient-text {
  padding-left: 0.5em; /* Optically centers the text by counteracting the blank space inside the full-width "。" */
}

.hero-title-en {
  display: block;
  font-size: clamp(1.8rem, 6vw, 15rem); /* Max unlocked to scale proportionally */
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: clamp(1.2rem, 2vw, 5rem); /* Relative scaling */
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 5vw; /* Relative margin */
}

.scroll-indicator {
  flex: 1; /* Takes up bottom remaining space to balance the ::before */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Push scroll indicator to the bottom */
  align-items: center;
  gap: 10px;
  opacity: 0.6;
  padding-bottom: 8vh; /* Increased from 40px to move it further up */
  margin-top: 60px; /* Minimal gap from text */
}

.scroll-indicator span {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text);
  font-weight: 600;
}

.scroll-indicator .line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-text), transparent);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   Vision Section (Sticky Scroll)
   ========================================================================== */
.vision-section {
  height: 400vh; /* Scroll length for the animation */
  position: relative;
  background: transparent;
}

.sticky-vision {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.container-vision {
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.9);
  -webkit-mask-image: radial-gradient(circle at center, rgb(0,0,0) 0%, rgba(0,0,0,0) 0%);
  mask-image: radial-gradient(circle at center, rgb(0,0,0) 0%, rgba(0,0,0,0) 0%);
  will-change: opacity, transform, mask-image, -webkit-mask-image;
}



.vision-content {
  text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 2.2;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 2rem;
}

.anim-text {
  margin-bottom: 0.5rem;
}

.pt-0 {
  padding-top: 0 !important;
}

.simulation-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(45, 119, 181, 0.1), rgba(247, 211, 3, 0.1));
  border: 1px solid rgba(45, 119, 181, 0.3);
  overflow: hidden; /* Hide overflow from marquee */
}

/* Background Marquee Container (Precise Top/Bottom positioning) */
.marquee-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-bg .track-left {
  position: absolute;
  top: 10px; /* Precise gap from top edge */
  left: 0;
}

.marquee-bg .track-right {
  position: absolute;
  bottom: 10px; /* Precise gap from bottom edge - well below the text */
  left: 0;
}

.simulation-text {
  position: relative;
  z-index: 1;
}

.simulation-text h3 {
  font-size: 1.5rem;
  color: var(--color-text);
  font-family: var(--font-jp);
}

.simulation-card .btn-outline {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Services Section (Dynamic Background)
   ========================================================================== */
.services-section {
  position: relative;
  overflow: hidden;
}

.services-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.services-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  opacity: 0.3;
}

.services-noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.services-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  mix-blend-mode: multiply;
}

.s-blob-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #2d77b5 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: float-service-1 25s infinite alternate ease-in-out;
}

.s-blob-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #1a4d7d 0%, transparent 70%); /* Darker blue */
  bottom: -100px;
  left: -150px;
  animation: float-service-2 22s infinite alternate-reverse ease-in-out;
}

.s-blob-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #4a90e2 0%, transparent 70%); /* Lighter blue */
  top: 40%;
  left: 25%;
  animation: float-service-3 18s infinite alternate ease-in-out;
}

@keyframes float-service-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-100px, 150px) scale(1.1); }
}

@keyframes float-service-2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(150px, -100px) rotate(30deg); }
}

@keyframes float-service-3 {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.3) translate(50px, 80px); }
}

/* Contact Specific Blobs */
.c-blob-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #2d77b5 0%, transparent 70%);
  bottom: -200px;
  right: -100px;
  animation: float-service-1 28s infinite alternate ease-in-out;
}

.c-blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #1a4d7d 0%, transparent 70%);
  top: -100px;
  left: -150px;
  animation: float-service-2 24s infinite alternate-reverse ease-in-out;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  perspective: 2000px; /* Enable 3D space */
}

.service-card {
  position: relative;
  padding: 3rem 2.5rem;
  height: 320px;
  display: flex;
  flex-direction: column;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 20px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(45, 119, 181, 0.12), transparent 70%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s;
}

.service-card:hover::before {
  opacity: 1;
}

/* Hover State */
.service-card:hover {
  transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
  border-color: rgba(45, 119, 181, 0.3);
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.06),
    0 0 20px rgba(45, 119, 181, 0.1);
}

.service-decal {
  position: absolute;
  right: -5px;
  bottom: -15px;
  font-family: var(--font-en);
  font-size: 8rem;
  font-weight: 900;
  color: var(--color-primary);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 0;
}

.service-card:hover .service-decal {
  opacity: 0; /* Hide 01, 02 on hover to make room for name */
}

.service-bg-text {
  position: absolute;
  left: 2rem;
  bottom: 1.5rem;
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.service-card:hover .service-bg-text {
  opacity: 0.08; /* Very faint and professional */
  transform: translateY(0);
}

.service-icon {
  position: relative;
  z-index: 1;
  width: 65px;
  height: 65px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(45, 119, 181, 0.1), rgba(45, 119, 181, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 2rem;
  transition: all 0.5s ease;
}

.service-card:hover .service-icon {
  transform: translateZ(20px); /* Lift the icon in 3D */
  box-shadow: 0 10px 20px rgba(45, 119, 181, 0.2);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  transition: all 0.5s ease;
}

.service-card:hover .service-icon svg {
  transform: rotate(5deg) scale(1.1);
}

.service-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--color-text);
  font-weight: 700;
  transition: all 0.4s ease;
}

.service-card p.service-desc {
  position: relative;
  z-index: 1;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  transition: all 0.4s ease;
}

/* Hide main info on hover */
.service-card:hover h3,
.service-card:hover p.service-desc {
  opacity: 0;
  transform: translateY(-15px); /* Reduced movement to avoid feeling too jumpy */
  pointer-events: none;
}

.service-detail {
  position: absolute;
  top: 130px; /* Lowered further to avoid clashing with the icon */
  left: 2.5rem;
  right: 2.5rem;
  opacity: 0;
  transform: translateY(15px); /* Subtler rise */
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  z-index: 2;
}

.service-card:hover .service-detail {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.service-detail ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-banner {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(45, 119, 181, 0.1);
}

.product-logo-img {
  max-width: 140px;
  height: auto;
  display: block;
}

.service-detail li {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.service-detail li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* ==========================================================================
   Information Section
   ========================================================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 1rem;
}

.section-header .section-title-wrap {
  margin-bottom: 0;
  text-align: left;
}

.view-all {
  color: var(--color-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-all::after {
  content: '→';
  transition: transform 0.3s;
}

.view-all:hover::after {
  transform: translateX(5px);
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.3s;
}

.news-item a {
  display: flex;
  align-items: center;
  padding: 2rem 1rem;
}

.news-item:hover {
  background: rgba(0,0,0,0.02);
}

.news-meta {
  display: flex;
  gap: 1rem;
  min-width: 200px;
}

.news-date {
  font-family: var(--font-en);
  color: var(--color-text-muted);
  font-weight: 500;
}

.news-category {
  background: rgba(45, 119, 181, 0.15);
  color: var(--color-primary);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0;
  font-family: var(--font-jp);
  color: var(--color-text);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.bg-gradient {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-darker) 100%);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 4rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.contact-info .section-title {
  color: #fff;
  text-align: left;
  margin-bottom: 1.5rem;
}

.contact-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3rem;
}

.company-details {
  border-left: 2px solid var(--color-primary);
  padding-left: 1.5rem;
}

.company-details p {
  margin-bottom: 0.5rem;
  color: #fff;
}

.company-details .tel {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-en);
  color: var(--color-primary);
  margin: 1rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

/* Conditional Fields Animation */
.conditional-fields,
#dynamic-fields.reveal-visible {
  animation: slideFadeIn 0.4s ease-out forwards;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.required {
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 10px;
  vertical-align: middle;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08); /* 少し濃くして文字を浮かせる */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* ドロップダウンメニュー内の選択肢を見やすく */
select option {
  background: #fff;
  color: #1e293b;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 15px rgba(45, 119, 181, 0.4);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.65); /* 視認性を上げるために濃く */
}


.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '▼';
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  pointer-events: none;
}

select {
  appearance: none;
  cursor: pointer;
}

.w-100 {
  width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 4rem 0 2rem;
  background: #f8fafc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.footer-logo {
  margin-bottom: 1.2rem;
}

.footer-logo img {
  max-width: 210px;
  height: auto;
  display: block;
}

.footer-contact {
  margin-top: 1.5rem;
  padding-left: 1rem;
}

.footer-contact p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--color-text);
  font-family: var(--font-en);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--color-text-muted);
  font-weight: 500;
}

.footer-col ul li a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-family: var(--font-en);
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-init {
  animation: revealUp 1s cubic-bezier(0.5, 0, 0, 1) forwards;
}

@keyframes revealUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  .simulation-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .global-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }

  .global-nav.active {
    right: 0;
  }

  .global-nav ul {
    flex-direction: column;
    font-size: 1.5rem;
  }

  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--color-text); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--color-text); }

  .hero-title {
    font-size: 2.5rem;
  }
  .section {
    padding: 5rem 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .news-item a {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Updated Marquee styles for background use */
.marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
}

.marquee-content {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-around;
  padding-right: 1.5rem;
}

.track-left { animation: marquee-scroll-left 40s linear infinite; }
.track-right { 
  transform: translateX(-50%);
  animation: marquee-scroll-right 45s linear infinite; 
}

@keyframes marquee-scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes marquee-scroll-right { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

.marquee-item {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff; /* Switch to white for maximum contrast on gradients */
  padding: 0 1rem;
  white-space: nowrap;
  letter-spacing: 0.05em;
  opacity: 0.6; /* Increased opacity for clear visibility */
}

/* ==========================================================================
   Page Transition Overlay
   ========================================================================== */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  pointer-events: none;
  visibility: hidden; /* Hide by default */
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.page-transition.is-animating,
.page-transition.is-entering {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: none; /* Instant show when active */
}

/* Three overlapping layers */
.pt-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(100%);
  will-change: transform;
}

/* Ensure entrance layers start at 0 to avoid jump */
.page-transition.is-entering .pt-layer {
  transform: translateY(0);
}

.pt-layer-1 { background-color: var(--color-secondary); z-index: 1; }
.pt-layer-2 { background-color: #30b776; z-index: 2; }
.pt-layer-3 { 
  background-color: var(--color-primary); 
  z-index: 3; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt-logo-img {
  width: clamp(200px, 40vw, 600px);
  height: auto;
  opacity: 0;
  transform: scale(0.95);
  will-change: opacity, transform;
}

/* --- OUTGOING (Animating out) --- */
.page-transition.is-animating .pt-layer {
  animation: sweepLayerOut 0.8s cubic-bezier(0.86, 0, 0.07, 1) forwards;
}
.page-transition.is-animating .pt-layer-1 { animation-delay: 0s; }
.page-transition.is-animating .pt-layer-2 { animation-delay: 0.15s; }
.page-transition.is-animating .pt-layer-3 { animation-delay: 0.3s; }

.page-transition.is-animating .pt-logo-img {
  animation: fadeLogoIn 0.5s ease forwards;
  animation-delay: 0.7s; /* Only after the blue layer covers the screen */
}

@keyframes sweepLayerOut {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

@keyframes fadeLogoIn {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* --- ENTERING (Animating in) --- */
.page-transition.is-entering .pt-layer {
  transform: translateY(0);
  animation: sweepLayerIn 0.8s cubic-bezier(0.86, 0, 0.07, 1) forwards;
}
.page-transition.is-entering .pt-layer-3 { animation-delay: 0s; }    /* Blue leaves first */
.page-transition.is-entering .pt-layer-2 { animation-delay: 0.1s; } /* Then green */
.page-transition.is-entering .pt-layer-1 { animation-delay: 0.2s; }  /* Then yellow */

.page-transition.is-entering .pt-logo-img {
  opacity: 1;
  transform: translateY(0);
  animation: fadeLogoOut 0.4s ease forwards;
  animation-delay: 0s;
}

@keyframes sweepLayerIn {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

@keyframes fadeLogoOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); }
}

/* Recruit Button Specifics */
.mt-4 {
  margin-top: 4rem;
}

.btn-recruit {
  background: linear-gradient(135deg, var(--color-primary), #30b776);
  box-shadow: 0 10px 30px rgba(48, 183, 118, 0.3);
  padding: 1.2rem 4rem;
  font-size: 1.4rem;
}

.btn-recruit:hover {
  box-shadow: 0 15px 40px rgba(48, 183, 118, 0.5);
}

/* ==========================================================================
   Salary Simulator Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    position: relative;
    padding: 3rem;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
}

.simulator-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.step-indicator {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.5rem;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.simulator-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.simulator-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Styles Inside Modal */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.range-input {
    width: 100%;
    margin-top: 1rem;
}

.range-value {
    text-align: right;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-en);
    font-size: 1.2rem;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-chip {
    padding: 0.8rem 1.5rem;
    background: rgba(45, 119, 181, 0.1);
    border: 1px solid rgba(45, 119, 181, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.skill-chip.selected {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(45, 119, 181, 0.3);
}

/* Result Box */
.result-box {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(45, 119, 181, 0.05), rgba(48, 183, 118, 0.05));
    border-radius: 20px;
}

.result-label {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.result-amount {
    font-family: var(--font-en);
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 1rem 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
}

.result-amount .currency,
.result-amount .unit {
    font-size: 1.5rem;
}

.result-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.simulator-footer {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-text {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-weight: 600;
    cursor: pointer;
}

.btn-text:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Recruit Page Specific (Sunrise & Passion Edition)
   ========================================================================== */
.recruit-page .blob-1 { background: rgba(255, 69, 0, 0.4); } /* Sunrise Orange */
.recruit-page .blob-2 { background: rgba(255, 215, 0, 0.3); } /* Golden Sun */
.recruit-page .blob-3 { background: rgba(48, 183, 118, 0.2); } /* Faded Brand Green */

.passion-sun {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vw;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.passion-gradient {
  background: linear-gradient(90deg, #FF6B6B, #FFD700);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: glowPulse 4s infinite ease-in-out;
}

@keyframes glowPulse {
  0% { filter: drop-shadow(0 0 0px rgba(255, 215, 0, 0)); }
  50% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5)); }
  100% { filter: drop-shadow(0 0 0px rgba(255, 215, 0, 0)); }
}

.passion-flare {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: flareMove 8s infinite linear;
  pointer-events: none;
  z-index: 1;
}

@keyframes flareMove {
  0% { left: -150%; }
  100% { left: 150%; }
}

.recruit-hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-label {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  color: var(--color-primary);
  margin-bottom: 2rem;
  display: block;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.8;
}

.scroll-indicator-recruit {
  position: absolute;
  bottom: 5vh;
  left: var(--container-padding);
  display: flex;
  align-items: center;
  gap: 15px;
}

.scroll-indicator-recruit .line {
  width: 40px;
  height: 1px;
  background: var(--color-text);
  transform-origin: left;
  animation: lineExtend 2s infinite;
}

.scroll-indicator-recruit span {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  font-weight: 600;
}

@keyframes lineExtend {
  0% { transform: scaleX(0); }
  50% { transform: scaleX(1); }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* Message Section */
.recruit-message {
  padding: 10rem 0;
  text-align: center;
}

.container.narrow {
  max-width: 800px;
}

.message-label {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--color-primary);
  display: block;
  margin-bottom: 2.5rem;
}

.message-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.5;
  margin-bottom: 3rem;
  font-weight: 800;
}

.message-text {
  font-size: 1.2rem;
  line-height: 2.2;
  color: var(--color-text-muted);
  text-align: left;
}

/* Culture Grid */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.culture-card {
  padding: 4rem 3rem;
  position: relative;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.culture-card:hover {
  transform: translateY(-15px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-primary);
}

.culture-num {
  font-family: var(--font-en);
  font-size: 8rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-primary);
  opacity: 0.1;
  position: absolute;
  top: -20px;
  right: 20px;
  z-index: 0;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}

.culture-card:hover .culture-num {
  opacity: 0.25;
  transform: translateY(-20px) scale(1.1);
  -webkit-text-stroke: 1px var(--color-secondary);
}


.culture-card h4 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, #fff, var(--color-primary), #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 1rem;
  font-style: italic;
  transform: translateX(-10px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}

.culture-card:hover h4 {
  transform: translateX(0);
  background-position: right center;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.culture-card h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1), background 0.4s ease;
}

.culture-card:hover h4::after {
  width: 80px;
  background: var(--color-secondary);
}


.culture-card p {
  line-height: 1.8;
  color: var(--color-text-muted);
}

/* Jobs Section */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.job-card {
  padding: 3rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.job-icon {
  width: 60px;
  height: 60px;
  color: var(--color-primary);
  margin-bottom: 2rem;
  transition: var(--transition);
}

.job-card:hover .job-icon {
  transform: scale(1.1) rotate(-5deg);
  color: var(--color-secondary);
}

.job-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #000;
}


.job-stack {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  background: rgba(45, 119, 181, 0.1);
  display: inline-block;
  border-radius: 4px;
}

.job-note {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  opacity: 0.7;
  margin-top: -1.2rem;
  margin-bottom: 1.5rem;
  display: block;
}

.job-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* 採用予定職種のタイトル色を変更 */
.recruit-jobs .section-title,
.recruit-jobs .section-subtitle {
  color: #000 !important;
}

.cta-freelance {
  display: inline-block;
  margin: 1.5rem 0 2.5rem;
  padding: 0.8rem 2.5rem;
  background: rgba(45, 119, 181, 0.08);
  border: 1.5px dashed var(--color-primary);
  border-radius: 100px;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.1rem;
  animation: subtleFloat 3s infinite ease-in-out;
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Recruit CTA */
.recruit-cta {
  padding: 10rem 0;
}

.cta-inner {
  padding: 6rem 4rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.cta-inner h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.3;
  margin-bottom: 2rem;
  font-weight: 900;
}

.cta-inner p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 4rem;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .recruit-hero {
    height: auto;
    padding: 15rem 0 10rem;
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .cta-inner {
    padding: 4rem 2rem;
  }
  .cta-btns {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Navigation active state */
.global-nav a.active {
  color: var(--color-primary);
}

.global-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
}

/* News Detail Page Styling */
.news-detail-page {
  background: var(--color-bg);
  min-height: 100vh;
}

.news-main {
  padding: 12rem 0 6rem;
}

.news-article {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5rem 6rem;
  border-radius: 30px;
}

.news-header {
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.news-h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  margin-top: 1.5rem;
  color: #fff;
}

.news-body {
  font-size: 1.15rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
}

.news-body h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin: 4rem 0 2rem;
  padding-left: 1.5rem;
  border-left: 5px solid var(--color-primary);
  background: linear-gradient(to right, rgba(45, 119, 181, 0.1), transparent);
}

/* News Detail Body Content */
.news-body {
  font-size: 1.15rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
}

.news-body h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin: 4rem 0 2rem;
  padding-left: 1.5rem;
  border-left: 5px solid var(--color-primary);
  background: linear-gradient(to right, rgba(45, 119, 181, 0.1), transparent);
}

.news-body p {
  margin-bottom: 2rem;
}

.news-body img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  margin: 3rem 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.news-body ul {
  margin: 2rem 0;
  padding-left: 0;
  list-style: none;
}

.news-body ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.news-body ul li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0.15em;
  color: var(--color-primary);
  font-size: 0.8rem;
}

.news-body ol {
  margin: 2rem 0;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.news-body ol li {
  margin-bottom: 1rem;
}

.news-back-to-top {
  margin-top: 6rem;
  text-align: center;
}

/* News Content Spacing (Common) */
.news-detail-page, .news-list-page {
  background: var(--color-bg);
  min-height: 100vh;
}

.news-main, .news-archive-main {
  padding: 12rem 0 6rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* News Detail Article styling */
.news-article {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5rem 6rem;
  border-radius: 30px;
  margin-bottom: 4rem;
}

.news-header {
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  margin-top: 1.5rem;
  color: #fff;
}

/* Archive List styling */
.archive-list {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 4rem;
}

.archive-list .news-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.archive-list .news-item:last-child {
  border-bottom: none;
}

.loading-news {
  padding: 100px 0;
  text-align: center;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .news-main, .news-archive-main {
    padding: 10rem 1rem 4rem;
  }
  .news-article {
    padding: 3rem 2rem;
    border-radius: 20px;
  }
  .news-h1 {
    font-size: 2.2rem;
  }
}

