/* =======================================================
   Light Corporate Theme Overrides
   - White base, navy accents
   - Keeps existing layout; focuses on colors/typography/surfaces
   ======================================================= */

:root {
  /* Light theme palette */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-hi: #f6f8fb;
  --text: #111827;
  --muted: #6b7280;
  --accent: #0b3b7a;
  --accent-ink: #ffffff;
  --line: #e5e7eb;
  --line-soft: rgba(17, 24, 39, 0.08);
  --radius: 12px;
  --shadow: 0 10px 28px rgba(17, 24, 39, .10);
  --gap: clamp(16px, 3vw, 28px);
  --h1: clamp(2rem, 3.2vw, 3rem);
  --h2: clamp(1.5rem, 2.4vw, 2.25rem);
  --h3: 1.125rem;
  --p: 1rem;
  --small: .925rem;

  /* Hero / dark section palette */
  --navy: #0b132b;
  --navy-2: #1a1a2e;
  --lime: #4a90e2;
  --lime-2: #6baed6;
  --gold: #d4a853;
  --font-base: "Zen Kaku Gothic New", "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-padding-top: 80px;
}

html,
body {
  background: var(--bg) !important;
  color: var(--text) !important;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-base);
}

a {
  color: var(--accent) !important;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  background: rgba(255, 255, 255, .92) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line) !important;
}

nav a {
  color: var(--text) !important;
  font-weight: 600;
}

nav a:hover {
  color: var(--accent) !important;
}

button,
.btn,
.cta-button,
.primary-button {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  border: 1px solid rgba(11, 59, 122, .15) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(11, 59, 122, .14) !important;
}

button:hover,
.btn:hover,
.cta-button:hover,
.primary-button:hover {
  filter: brightness(.96);
  text-decoration: none;
}

.card,
.feature-card,
.service-card,
.project-card,
.info-card {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}

section,
.section {
  background: transparent !important;
}

.section-alt,
.alt,
.bg-alt {
  background: var(--surface-hi) !important;
  border-top: 1px solid var(--line-soft) !important;
  border-bottom: 1px solid var(--line-soft) !important;
}

/* Hero section: keep dark Navy design, do NOT override to white */
.hero-ubs {
  background: #1a1a2e !important;
  color: #ffffff !important;
}

.hero-ubs .hero-header {
  background: linear-gradient(180deg, rgba(11, 19, 43, 0.6), transparent) !important;
  border-bottom: none !important;
}

.hero-ubs .hero-header .logo {
  color: #fff !important;
}

.hero-ubs .hero-header .nav a {
  color: rgba(255, 255, 255, 0.85) !important;
}

.hero-ubs .hero-header .nav a:hover {
  color: #fff !important;
}

.hero-ubs .hero-header .btn-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.hero-ubs h1 {
  color: #ffffff !important;
}

.hero-ubs .tagline {
  color: rgba(255, 255, 255, 0.9) !important;
}

.hero-ubs .hero-right-image {
  border-radius: 0 !important;
}

.hero-ubs .hero-credit {
  color: rgba(255, 255, 255, 0.7) !important;
}

footer {
  background: var(--surface-hi) !important;
  border-top: 1px solid var(--line) !important;
  color: var(--muted) !important;
}

/* =======================================================
   Readability fixes for original (dark-theme) base CSS
   - The original style.css sets many headings/paragraphs to white.
   - On this light theme those become unreadable.
   ======================================================= */

/* Base section typography */
.section h2 {
  color: var(--text) !important;
}

.section h3 {
  color: var(--text) !important;
}

.section p {
  color: var(--muted) !important;
}

.section strong {
  color: var(--text) !important;
}

/* Lists that were tuned for dark background */
.industry-list {
  color: var(--muted) !important;
}

.industry-list li {
  color: var(--muted) !important;
}

.history-list li,
.philosophy-list li {
  color: var(--muted) !important;
}

.history-list li span,
.philosophy-list li span {
  color: var(--text) !important;
}

/* Legacy navbar/footer classes */
.navbar {
  background: rgba(255, 255, 255, .92) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line) !important;
}

.navbar .logo,
.navbar .nav-links li a {
  color: var(--text) !important;
}

.navbar .nav-links li a:hover {
  color: var(--accent) !important;
}

.footer {
  background: var(--surface-hi) !important;
  border-top: 1px solid var(--line) !important;
  color: var(--muted) !important;
}

/* =======================================================
   Photo decoration: scattered rectangles behind photos
   - Used for photos below the hero section
   - Apply by adding .photo-decor to the image wrapper
   ======================================================= */

.photo-decor {
  position: relative;
  isolation: isolate;
}

.photo-decor::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: 0;
  pointer-events: none;
  opacity: .16;
  border-radius: calc(var(--radius) + 10px);

  background-image:
    linear-gradient(rgba(11, 59, 122, .25) 0 0),
    linear-gradient(rgba(11, 59, 122, .18) 0 0),
    linear-gradient(rgba(11, 59, 122, .22) 0 0),
    linear-gradient(rgba(11, 59, 122, .16) 0 0),
    linear-gradient(rgba(11, 59, 122, .20) 0 0),
    linear-gradient(rgba(11, 59, 122, .14) 0 0),
    linear-gradient(rgba(11, 59, 122, .18) 0 0),
    linear-gradient(rgba(11, 59, 122, .12) 0 0),
    linear-gradient(rgba(11, 59, 122, .16) 0 0),
    linear-gradient(rgba(11, 59, 122, .10) 0 0);

  background-size:
    110px 64px,
    70px 70px,
    140px 72px,
    66px 110px,
    160px 56px,
    84px 56px,
    116px 52px,
    56px 56px,
    96px 42px,
    52px 88px;

  background-position:
    10% 14%,
    76% 10%,
    88% 56%,
    18% 78%,
    52% 58%,
    6% 46%,
    62% 86%,
    36% 8%,
    92% 86%,
    44% 92%;

  background-repeat: no-repeat;
  filter: blur(.2px);
}

.photo-decor img,
.photo-decor picture,
.photo-decor video {
  position: relative;
  z-index: 1;
}

/* Round the gallery images a bit */
.gallery-item .gallery-photo {
  border-radius: 12px;
}

/* Keep spacing clean for project cards (since image is wrapped) */
.project-photo {
  margin-bottom: .75rem;
}

.project-photo .project-image {
  margin-bottom: 0;
  border-radius: 12px;
}

@media (max-width: 640px) {
  .photo-decor::before {
    inset: -8px;
    opacity: .12;
  }
}

/* =======================================================
   Sticky Site Header
   ======================================================= */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none !important;
  box-shadow: none;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

#site-header.header-scrolled {
  background: rgba(11, 19, 43, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* 後方互換（recruit.htmlのhardcodedクラス用） */
#site-header.header-visible {
  background: rgba(11, 19, 43, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#site-header .header-logo {
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff !important;
  text-decoration: none !important;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

#site-header .header-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

#site-header .header-nav a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}

#site-header .header-nav a:hover {
  color: #fff !important;
}

#site-header .header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--lime);
  transition: width 0.3s;
}

#site-header .header-nav a:hover::after {
  width: 100%;
}

#site-header .header-nav a.header-cta {
  background: #fff !important;
  color: var(--navy) !important;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

#site-header .header-nav a.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  text-decoration: none !important;
  color: var(--navy) !important;
}

@media (max-width: 900px) {
  #site-header {
    padding: 0 16px;
  }
}

/* =======================================================
   Stats Counter Section
   ======================================================= */
.stats-section {
  padding: 64px 2rem;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 36px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(17, 24, 39, 0.12);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-number .stat-suffix {
  font-size: 1.2rem;
  font-weight: 700;
  margin-left: 2px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* =======================================================
   Recruitment Teaser Section
   ======================================================= */
.recruit-teaser {
  position: relative;
  overflow: hidden;
  padding: 80px 2rem;
  background: linear-gradient(135deg, #0b132b 0%, #1a2744 50%, #0b3b7a 100%) !important;
  text-align: center;
  color: #ffffff !important;
  margin-top: -1px !important;
  margin-bottom: 0 !important;
}

.recruit-teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.recruit-teaser .recruit-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.recruit-teaser h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
  font-weight: 900;
  color: #ffffff !important;
  margin-bottom: 16px;
}

.recruit-teaser .recruit-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.8;
  margin-bottom: 32px;
}

.recruit-teaser .recruit-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.recruit-teaser .recruit-badge {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.85rem;
  color: #ffffff !important;
}

.recruit-teaser .recruit-cta {
  display: inline-block;
  background: #ffffff !important;
  color: var(--accent) !important;
  padding: 14px 40px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  transition: transform 0.3s, box-shadow 0.3s;
}

.recruit-teaser .recruit-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-decoration: none !important;
}

/* =======================================================
   Rich Footer
   ======================================================= */
.site-footer {
  background: #0b132b !important;
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 60px 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h4::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--lime);
  margin-top: 8px;
  border-radius: 2px;
}

.footer-col p,
.footer-col li {
  font-size: 0.88rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}

.footer-logo {
  font-weight: 900;
  font-size: 1.1rem;
  color: #ffffff !important;
  display: block;
  margin-bottom: 16px;
  text-decoration: none !important;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5) !important;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5) !important;
  text-decoration: none !important;
  margin-left: 20px;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

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

  .site-footer {
    padding: 40px 24px 0;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* =======================================================
   Dark Theme Services & Projects Sections
   ======================================================= */
.section-dark-services,
.section-dark-projects {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 80px 2rem;
  color: #fff !important;
  overflow: hidden;
}

/* Services: Tech/Engineering Vibe (Gradient + Grid) */
.section-dark-services {
  background: linear-gradient(160deg, #0b132b 0%, #1c2a4a 100%) !important;
}

.section-dark-services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.section-dark-services .section-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

/* Projects: Trust/Field Vibe (Photo + Dark Overlay) */
.section-dark-projects {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: -1px !important;
}

.section-dark-projects .bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(30%);
}

.section-dark-projects .project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 43, 0.94) !important;
  z-index: 1;
}

.section-dark-projects .section-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.section-dark-projects .project-cards {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 2rem;
}

/* Text overrides for dark sections */
#services.section-dark-services h2,
#projects.section-dark-projects h2,
.section-dark-services h2,
.section-dark-projects h2 {
  color: #fff !important;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-dark-services p,
.section-dark-projects p,
.section-dark-services strong,
.section-dark-projects strong {
  color: rgba(255, 255, 255, 0.9) !important;
  text-align: center;
}

.section-dark-services p {
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Project cards in dark section: white background */
.section-dark-projects .project-card {
  background: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Service cards: photo background with gradient overlay */
.section-dark-services .service-card {
  background-color: var(--navy) !important;
  border: none !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}

.section-dark-services .service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.72) 50%,
      rgba(0, 0, 0, 0.30) 100%);
  z-index: 1;
}

.service-card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.service-card-content {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.5rem 1.5rem;
}

.section-dark-services .service-card .icon {
  color: var(--lime);
  margin-bottom: 0.5rem;
}

.services-container {
  grid-template-columns: repeat(4, 1fr) !important;
}

.section-dark-services .service-card h3 {
  color: #fff !important;
  text-align: left;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.section-dark-services .service-card p {
  color: #fff !important;
  text-align: left;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  min-height: 4.8em;
}

.section-dark-projects .project-card h3,
.section-dark-projects .project-card p {
  color: var(--text) !important;
  text-align: left;
}

.service-card h3,
.service-card p,
.project-card h3,
.project-card p {
  text-align: center !important;
}

/* =======================================================
   お問い合わせセクション
   ======================================================= */

.section-dark-contact h2 {
  font-size: 2rem;
  margin-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-lead {
  font-size: 1rem;
  line-height: 1.8;
  border-left: 3px solid var(--lime);
  padding-left: 1rem;
}

.contact-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-detail-list svg {
  color: var(--navy);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail-list div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted) !important;
}

.contact-detail-value {
  font-size: 1rem;
  font-weight: 600;
}

.contact-detail-note {
  font-size: 0.8rem;
  color: var(--muted) !important;
}

.contact-detail-list a {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

/* CTAボックス */
.contact-cta-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.contact-cta-icon {
  color: var(--navy);
}

.contact-cta-box h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
}

.contact-cta-box p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

.contact-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.5rem;
  background: var(--navy);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-cta-btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

.contact-cta-note {
  font-size: 0.75rem !important;
  color: var(--muted) !important;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* =======================================================
   Legacy button / header / footer helpers
   ======================================================= */
.button,
.btn {
  background: var(--lime);
  color: var(--navy);
}

header,
footer {
  color: #eaf2ff;
}

/* =======================================================
   Hero Section – Dark Navy "Trust & Solid"
   ======================================================= */
.hero-ubs {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
  background: var(--navy-2);
  font-family: var(--font-base);
}

.hero-ubs .hero-bg-updated {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(11, 19, 43, 0.85) 0%, rgba(11, 19, 43, 0.65) 40%, rgba(11, 19, 43, 0.4) 60%, rgba(11, 19, 43, 0.85) 85%, rgba(11, 19, 43, 0.98) 100%),
    url('images/34146447_m.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-ubs .hero-bg-updated::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-ubs .hero-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-ubs .hero-right::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11, 19, 43, 0.95) 0%, rgba(11, 19, 43, 0.6) 15%, transparent 40%);
  z-index: 2;
}

.hero-ubs .hero-right-image {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 60% center;
  width: 100%;
  height: 100%;
  transition: opacity 0.6s ease;
}

.hero-ubs .hero-header {
  display: none !important;
  z-index: 10;
  background: linear-gradient(180deg, rgba(11, 19, 43, 0.6), transparent);
}

.hero-ubs .logo {
  font-weight: 900;
  font-size: 1.15rem;
  color: #fff !important;
  text-decoration: none;
}

.hero-ubs .nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.hero-ubs .nav a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.hero-ubs .nav a:hover {
  color: #fff !important;
}

.hero-ubs .btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s;
}

.hero-ubs .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-ubs .hero-main {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 56px 120px;
  max-width: 50%;
}

.hero-ubs h1 {
  font-size: clamp(34px, 5vw, 76px);
  line-height: 1.18;
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #fff !important;
}

.hero-ubs .tagline {
  margin-top: 28px;
  font-size: clamp(14px, 1.1vw, 17px);
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.04em;
  border-left: 3px solid var(--lime);
  padding-left: 16px;
}

.hero-ubs .hero-link {
  margin-top: 36px;
  display: inline-block;
  width: fit-content;
  font-size: 15px;
  color: #fff !important;
  background: var(--lime);
  border: none;
  border-radius: 4px;
  text-decoration: none;
  padding: 14px 36px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-ubs .hero-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 144, 226, 0.5);
  text-decoration: none;
}

.hero-ubs .hero-badges {
  position: absolute;
  bottom: 48px;
  left: 56px;
  z-index: 5;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.hero-ubs .laurel {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.hero-ubs .laurel span {
  font-weight: 900;
  font-size: 40px;
  color: var(--gold);
  margin: 0 3px;
  line-height: 1;
}

.hero-ubs .subnote {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
}

.hero-ubs .scroll-pill {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-decoration: none;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.hero-ubs .scroll-pill:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* =======================================================
   ヒーロー – ケンバーンズ & テキスト入場アニメーション
   ======================================================= */

@keyframes kenburns {
  0%   { transform: scale(1.08); }
  100% { transform: scale(1.0); }
}

.hero-img-kenburns {
  animation: kenburns 7s ease-out forwards;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-ubs h1 {
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.1s;
}

.hero-ubs .tagline {
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.3s;
}

.hero-ubs .hero-link {
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.5s;
}

.hero-ubs .hero-badges {
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.65s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-img-kenburns,
  .hero-ubs h1,
  .hero-ubs .tagline,
  .hero-ubs .hero-link,
  .hero-ubs .hero-badges {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero-ubs .hero-main {
    max-width: 100%;
    padding: 120px 24px 80px;
  }

  .hero-ubs .hero-right {
    opacity: 0.65;
    width: 100%;
    clip-path: none;
  }

  .hero-ubs .hero-right::after {
    background: linear-gradient(to bottom,
      rgba(11, 19, 43, 0.4) 0%,
      rgba(11, 19, 43, 0.2) 50%,
      rgba(11, 19, 43, 0.4) 100%);
  }

  .hero-ubs .hero-header {
    padding: 14px 20px;
  }

  .hero-ubs .nav {
    gap: 10px;
  }

  .hero-ubs .nav a {
    font-size: 0.78rem;
  }

  .hero-ubs .hero-badges {
    left: 24px;
    bottom: 28px;
  }
}

/* =======================================================
   Utility classes (extracted from index.html inline styles)
   ======================================================= */

/* お知らせ */
.news-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.news-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 0;
}

.news-date {
  color: var(--lime-2);
  font-weight: bold;
  margin-right: 15px;
}

.news-badge {
  background: #e53e3e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 8px;
}

/* 会社概要 */
.about-text .about-subheading {
  margin-top: 28px;
  font-size: 1.1em;
  color: var(--lime-2) !important;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  width: 100%;
}

.about-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.about-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.license-box {
  margin-top: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.license-heading {
  margin-top: 0;
  font-size: 1.1em;
  border-bottom: 1px solid var(--lime);
  display: inline-block;
  padding-bottom: 5px;
}

.license-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

/* 見える化ソリューション */
.dx-box {
  margin-top: 48px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.10);
}

.dx-new-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  background: #e53e3e;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.08em;
}

.dx-content {
  position: relative;
  z-index: 1;
}

.dx-box .dx-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin: 0 0 8px;
  color: #0b3b7a !important;
}

.dx-box .dx-description {
  color: #111827 !important;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 700px;
}

.dx-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.dx-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  background: #f4f7ff;
  border: 1px solid rgba(11, 59, 122, 0.12);
  border-radius: 12px;
  text-align: center;
}

.dx-feature-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.dx-feature-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0b3b7a;
  line-height: 1.4;
}

.dx-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.dx-image-frame {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dx-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dx-box .dx-caption {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #6b7280 !important;
  text-align: center;
}

.services-industries {
  margin-top: 32px;
  font-size: 0.95rem;
}

@media (max-width: 768px) {

  .about-gallery,
  .dx-image-grid {
    grid-template-columns: 1fr;
  }

  .dx-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .dx-box {
    padding: 32px 20px;
  }
}

/* =======================================================
   Hamburger Menu Button
   ======================================================= */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  padding: 0;
  z-index: 1010;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* =======================================================
   Mobile Responsive (900px以下)
   ======================================================= */
@media (max-width: 900px) {
  /* ハンバーガー表示 */
  .hamburger { display: flex; }

  /* #site-header ナビ：ドロワー化（常にfixed、transform/visibilityで開閉） */
  #site-header .header-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(11, 19, 43, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 24px;
    gap: 0;
    transform: translateY(-100%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                visibility 0s linear 0.3s;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
  }

  #site-header.nav-open {
    background: rgba(11, 19, 43, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  #site-header.nav-open .header-nav {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                visibility 0s linear 0s;
  }

  #site-header .header-nav a {
    font-size: 0.95rem !important;
    padding: 14px 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
  }

  #site-header .header-nav a::after { display: none; }

  #site-header .header-nav a.header-cta {
    margin: 16px 24px 0;
    width: calc(100% - 48px);
    text-align: center;
    padding: 12px 20px !important;
    border-bottom: none;
  }

  /* projects.html ナビバー */
  .navbar {
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    position: relative;
  }

  .navbar .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-top: 0.5rem;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .navbar.nav-open .nav-links { display: flex; }

  .navbar .nav-links li { list-style: none; }

  .navbar .nav-links a {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
  }

  /* サービスカード：2カラム */
  .services-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* 施工事例カード：2カラム */
  .section-dark-projects .project-cards {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem;
  }
}

/* =======================================================
   Small Phone (480px)
   ======================================================= */
@media (max-width: 480px) {
  /* サービス・施工事例：1カラム */
  .services-container {
    grid-template-columns: 1fr !important;
  }

  .section-dark-projects .project-cards {
    grid-template-columns: 1fr !important;
  }

  /* DXフィーチャー：1カラム */
  .dx-features {
    grid-template-columns: 1fr;
  }

  /* 統計数字：小さく */
  .stat-number { font-size: 2.2rem; }

  /* セクションパディング：狭く */
  .section { padding: 3rem 1.25rem; }

  /* フッターパディング */
  .site-footer { padding-left: 20px; padding-right: 20px; }
}