/* Modern Scroll Design with Parallax Effects */

:root {
  --font-serif: "Noto Serif JP", "Cormorant Garamond", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Global wbr tag support */
wbr {
  display: inline;
  white-space: normal;
}

/* Force wbr to work even with word-break: keep-all */
.hero-subtitle wbr,
.hero-title wbr {
  display: inline;
}

/* Override word-break for hero elements to allow wbr to work */
.hero-subtitle,
.hero-title {
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: auto;
  word-wrap: break-word;
}

/* Japanese Text Line Breaking - Solution 2: keep-all + overflow-wrap */
h1, h2, h3, h4, h5, h6, .section-subtitle, .section-title {
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-wrap: break-word;
  line-height: 1.6;
}

p {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* Prevent line breaks within specific elements */
.nowrap {
  white-space: nowrap;
}

/* Desktop Navigation Styles */
.desktop-nav {
  display: block;
}

.desktop-nav ul {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav a {
  white-space: nowrap;
  font-size: 0.9rem;
  text-decoration: none;
}

/* Dropdown Menu Styles */
.desktop-nav .has-dropdown {
  position: relative;
}

.desktop-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  z-index: 1000;
  list-style: none;
  flex-direction: column;
  gap: 0;
}

.desktop-nav .has-dropdown:hover .dropdown-menu {
  display: flex;
}

.desktop-nav .dropdown-menu li {
  margin: 0;
  padding: 0;
}

.desktop-nav .dropdown-menu a {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  color: #333;
  transition: color 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.desktop-nav .dropdown-menu a::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #007bff;
  transition: width 0.3s ease;
}

.desktop-nav .dropdown-menu a:hover {
  color: #007bff;
}

.desktop-nav .dropdown-menu a:hover::after {
  width: calc(100% - 2.5rem);
}

/* Mobile Dropdown Menu Styles */
.mobile-nav .has-dropdown > a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav .has-dropdown > a .dropdown-icon {
  margin-left: 0.5rem;
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.mobile-nav .has-dropdown.active > a .dropdown-icon {
  transform: rotate(180deg);
}

.mobile-nav .dropdown-menu {
  display: none;
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav .has-dropdown.active .dropdown-menu {
  display: flex;
}

.mobile-nav .dropdown-menu a {
  padding: 0.5rem 0;
  color: #666;
  font-size: 0.9em;
}

/* Fix grid layouts for desktop - Override word-break where needed */
@media (min-width: 1025px) {
  /* Ensure desktop navigation is visible */
  .desktop-nav {
    display: block;
  }

  .mobile-menu-btn {
    display: none;
  }

  /* Restore proper grid layouts for desktop */
  .service-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .news-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Ensure cards themselves don't break the layout */
  .promise-card,
  .service-card,
  .news-card {
    word-break: normal;
    overflow-wrap: break-word;
  }
}

/* Better spacing for Japanese text */
h3 {
  word-spacing: 0.05em;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.container {
  max-width: 95%;
  margin: 0 auto;
  padding: 0 1.5rem;
}









.btn-outline-light {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-light:hover {
  background-color: white;
  color: #1a2b4a;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-outline {
  background-color: transparent;
  color: #4a7c9e;
  border: 2px solid #4a7c9e;
}

.btn-outline:hover {
  background-color: #4a7c9e;
  color: white;
  transform: translateY(-2px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: 1rem;
}

.header-btn {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.jobseeker-btn {
  background: rgba(26, 35, 50, 0.85);
  color: white;
}

.jobseeker-btn:hover {
  background: rgba(26, 35, 50, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.company-btn {
  background: #2c5f41;
  color: white;
}

.company-btn:hover {
  background: #3a7a54;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  background-color: #1a2b4a;
  padding: 1rem 0;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 0.8rem 2rem;
  transition: background-color 0.3s ease;
}

.mobile-nav a:hover {
  background-color: #4a7c9e;
}

/* Hero Section with Parallax */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  animation: subtle-zoom 20s ease-in-out infinite alternate;
  overflow: hidden;
}

@keyframes subtle-zoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

/* Mobile optimization - reduce zoom animation */
@media (max-width: 768px) {
  .hero-bg-placeholder {
    animation: subtle-zoom-mobile 20s ease-in-out infinite alternate;
  }

  @keyframes subtle-zoom-mobile {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(1.02);
    }
  }

  .coming-soon-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    overflow: hidden;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .coming-soon-image {
    max-width: 100%;
    overflow: hidden;
  }

  .coming-soon-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .coming-soon-service {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 120px;
  }

  .coming-soon-image {
    overflow: hidden;
  }

  .coming-soon-image img {
    max-width: 100%;
    height: auto;
  }
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: -2;
  transform: translateZ(0);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 43, 74, 0.8), rgba(74, 124, 158, 0.6));
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 1;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease 0.8s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease 1.1s forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2rem;
  animation: bounce 2s infinite;
}

.scroll-indicator a {
  color: white;
  text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #1a2b4a;
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #666;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Fade In Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger Animation */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Promises Section */
.promises {
  background-color: #f8f9fa;
}

.promise-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}

.promise-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  flex: 1 1 300px;
  min-width: 280px;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
}

.promise-card:hover {
  transform: translateY(-10px);
}

.promise-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #4a7c9e, #1a2b4a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.promise-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1a2b4a;
}

.promise-card p {
  color: #666;
  line-height: 1.8;
  flex-grow: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  white-space: normal;
}

/* Services Section */
.services {
  background: linear-gradient(135deg, #1a2b4a, #4a7c9e);
  color: white;
}

.services .section-title,
.services .section-subtitle {
  color: white;
}

.service-tabs {
  margin-top: 3rem;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid white;
  color: white;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
  background: white;
  color: #1a2b4a;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.service-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.service-icon {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2.5rem;
}

.service-icon.secondary {
  background: rgba(74, 124, 158, 0.3);
}

.service-intro h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-intro p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  width: 100%;
  box-sizing: border-box;
}

.service-card {
  background: rgba(255,255,255,0.1);
  padding: 1.8rem;
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card-icon {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.service-card-icon.secondary {
  background: rgba(74, 124, 158, 0.3);
}

.service-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}

.service-card p {
  opacity: 0.9;
  line-height: 1.5;
  font-size: 0.95rem;
  flex-grow: 1;
}

.service-cta {
  text-align: center;
  margin-top: 3rem;
}

.btn-secondary {
  background-color: #ff6b35;
  color: white;
}

.btn-secondary:hover {
  background-color: #e55a2b;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background-color: white;
  color: #1a2b4a;
}

/* Coming Soon Section */
.coming-soon {
  background-color: #f8f9fa;
}

.coming-soon-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.coming-soon-text {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.coming-soon-text h3 {
  font-size: 2.5rem;
  color: #1a2b4a;
  margin-bottom: 0.5rem;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.2;
}

.coming-soon-text h4 {
  font-size: 1.3rem;
  color: #4a7c9e;
  margin-bottom: 1.5rem;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.coming-soon-text p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.coming-soon-services {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.coming-soon-service {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.coming-soon-service-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  background: linear-gradient(135deg, #4a7c9e, #1a2b4a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
  box-sizing: border-box;
}

.coming-soon-service span {
  font-weight: 500;
  color: #1a2b4a;
  white-space: nowrap;
}

/* Coming Soon Section specific button styling */
.coming-soon .btn-outline,
.coming-soon .btn-secondary {
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  color: white;
  border: 2px solid #ff6b35;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.coming-soon .btn-outline:hover,
.coming-soon .btn-secondary:hover {
  background: linear-gradient(135deg, #e55a2b, #d14d20);
  border-color: #e55a2b;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.5);
  color: white;
}

.coming-soon-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* News Section */
.news {
  background: white;
}

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

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

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

.news-item a {
  display: flex;
  padding: 1rem 0;
  text-decoration: none;
  color: #333;
  transition: opacity 0.3s ease;
}

.news-item a:hover {
  opacity: 0.8;
}

.news-date {
  flex-shrink: 0;
  margin-right: 2rem;
  opacity: 0.6;
}

.news-title {
  flex: 1;
}

.news-more {
  text-align: center;
  margin-top: 3rem;
}

/* About Section */
.about {
  background-color: #f8f9fa;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.about-text {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-section {
  margin-bottom: 2rem;
}

.about-section h3 {
  font-size: 1.8rem;
  color: #1a2b4a;
  margin-bottom: 1rem;
}

.about-highlight {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4a7c9e;
  margin-bottom: 1rem;
}

.mission-vision-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a2b4a;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.mission-vision-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #4a7c9e, #6fcf97);
  border-radius: 2px;
}

.about-section p {
  color: #666;
  line-height: 1.8;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, #1a2b4a 0%, #4a7c9e 100%);
  color: white;
  text-align: center;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.05"><polygon points="0,0 1000,0 1000,100"/></svg>');
  background-size: 100% 100%;
}

.cta-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.cta-subtitle {
  font-size: 1.4rem;
  margin-bottom: 4rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.cta-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-bottom: 5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.cta-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.cta-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-card:hover::before {
  left: 100%;
}

.cta-card-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.cta-card-icon.secondary {
  background: rgba(74, 124, 158, 0.3);
}

.cta-card:hover .cta-card-icon {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.cta-card h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.cta-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.cta-card .btn {
  min-width: 200px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.btn-secondary {
  background-color: #4a7c9e;
  color: white;
  border: 2px solid #4a7c9e;
}

.btn-secondary:hover {
  background-color: white;
  color: #4a7c9e;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.company-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.company-info-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.company-info-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.company-info-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.company-info-text h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.company-info-text p {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.5;
}



.footer-links-column h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
}

.footer-links-column h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: #4a7c9e;
  border-radius: 1px;
}

.footer-links-column ul {
  list-style: none;
}

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

.footer-links-column a {
  color: #b8c5d1;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: inline-block;
  position: relative;
}

.footer-links-column a:hover {
  color: #4a7c9e;
  transform: translateX(5px);
}

.footer-links-column a::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: #4a7c9e;
  transition: width 0.3s ease;
}

.footer-links-column a:hover::before {
  width: 8px;
}

.footer-social h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
}

.footer-social h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: #4a7c9e;
  border-radius: 1px;
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: rgba(74, 124, 158, 0.2);
  border: 1px solid rgba(74, 124, 158, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a7c9e;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-icon:hover {
  background: #4a7c9e;
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(74, 124, 158, 0.4);
  border-color: #4a7c9e;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(74, 124, 158, 0.2);
}

.copyright {
  color: #8a9bb0;
  font-size: 0.9rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: #8a9bb0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #4a7c9e;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .cta-cards {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .company-info {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .promise-card {
    flex: 1 1 280px;
    min-width: 250px;
  }
}

@media (max-width: 1024px) {
  /* Disable horizontal animations on tablet/mobile to prevent overflow */
  .fade-in-left,
  .fade-in-right {
    transform: none !important;
  }

  .fade-in-left.visible,
  .fade-in-right.visible {
    transform: none !important;
  }
}

/* ハンバーガーメニュー表示切り替え - 1024px以下 */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

  .header-btn {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-nav.active {
    display: block;
  }
}

/* モバイルレイアウト調整 - 768px以下 */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .service-intro h3 {
    font-size: 2rem;
  }

  .service-intro p {
    font-size: 1.1rem;
  }

  .coming-soon-text h3 {
    font-size: 2rem;
  }

  .coming-soon-text h4 {
    font-size: 1.1rem;
  }

  .coming-soon-content,
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .about-text {
    overflow-wrap: break-word;
    word-break: keep-all;
    min-width: 0;
  }

  .coming-soon-services {
    flex-direction: column;
    gap: 1rem;
  }

  .tab-buttons {
    flex-direction: column;
    align-items: center;
  }

  .promise-cards {
    justify-content: center;
  }

  .promise-card {
    flex: 1 1 280px;
    max-width: 400px;
  }

  .cta {
    padding: 5rem 0;
  }

  .cta-title {
    font-size: 2.5rem;
  }

  .cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
  }

  .cta-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .cta-card {
    padding: 2.5rem 2rem;
  }

  .company-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .company-info-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-brand {
    max-width: 100%;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  /* Footer accordion for mobile */
  .footer-links-column[data-accordion] h3 {
    cursor: pointer;
    position: relative;
    padding-right: 40px;
    margin-bottom: 0;
  }

  .footer-links-column[data-accordion] h3::after {
    content: '';
    display: none;
  }

  .footer-links-column[data-accordion] h3::before {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    font-weight: 300;
    color: white;
    transition: all 0.3s ease;
    line-height: 1;
  }

  .footer-links-column[data-accordion].active h3::before {
    content: '−';
  }

  .footer-links-column[data-accordion] ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 0;
  }

  .footer-links-column[data-accordion].active ul {
    max-height: 500px;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .promise-cards {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }

  .promise-card {
    flex: 1 1 auto;
    min-width: auto;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 1.5rem;
  }

  .service-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
    padding: 0;
  }

  .service-card {
    padding: 1.5rem;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin: 0;
    min-height: 180px;
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  .promise-cards {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
  }

  .promise-card {
    flex: 1 1 auto;
    min-width: auto;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 1.5rem;
  }

  .service-cards {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin: 1.5rem 0;
    width: 100%;
    padding: 0;
  }

  .service-card {
    padding: 1.2rem;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin: 0;
    min-height: 150px;
    box-sizing: border-box;
  }

  .talent-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .talent-card {
    min-width: auto;
    max-width: none;
    padding: 1.5rem;
  }

  .talent-card-header {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }

  .talent-card-right {
    text-align: center;
  }

  .talent-card-title,
  .talent-card-target {
    text-align: center;
  }

  .news-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .news-card {
    min-width: auto;
    max-width: none;
    padding: 1.5rem;
  }

  .cta-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-card {
    min-width: auto;
    max-width: none;
    padding: 2rem 1.5rem;
  }

  .talent-card-header {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
  }

  .talent-card-right {
    text-align: center;
  }

  .talent-card-title,
  .talent-card-target {
    text-align: center;
  }
}

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

  /* Header buttons - even smaller on very small screens */
  .header-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
  }

  .header-actions {
    gap: 0.3rem;
  }
}

@media (max-width: 450px) {
  /* Hide header buttons on very small screens */
  .header-btn {
    display: none !important;
  }

  /* All cards should have smaller padding and no min-width on very small screens */
  .promise-card,
  .service-card,
  .talent-card,
  .news-card,
  .cta-card {
    padding: 1rem;
    min-width: auto;
    max-width: 100%;
    margin: 0;
    width: 100%;
  }

  .service-cards {
    gap: 1rem;
    margin: 1rem 0;
    width: 100%;
    padding: 0;
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 130px;
    padding: 0.9rem;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .talent-card-header {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  .talent-card-right {
    text-align: center;
  }

  .talent-card-title,
  .talent-card-target {
    text-align: center;
  }

  /* Fix mobile text overflow and line breaks */
  h3 {
    font-size: 1.2rem;
    line-height: 1.4;
    word-break: auto-phrase;
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Specific fixes for service titles */
  .service-card h3,
  .consulting-section h3 {
    font-size: 1.1rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  /* Better spacing for service sections */
  .service-section,
  .consulting-section {
    padding: 1rem;
    margin-bottom: 2rem;
  }

  /* Ensure text doesn't get cut off */
  .service-card,
  .consulting-card {
    min-height: auto;
    height: auto;
    overflow: visible;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .service-intro h3 {
    font-size: 1.6rem;
  }

  .service-intro p {
    font-size: 1rem;
  }

  .coming-soon-text h3 {
    font-size: 1.6rem;
  }

  .coming-soon-text h4 {
    font-size: 1rem;
  }

  .service-cards,
  .news-cards {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 4rem 0;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-subtitle {
    font-size: 1.1rem;
  }

  .cta-cards {
    gap: 1.5rem;
  }

  .cta-card {
    padding: 2rem 1.5rem;
  }

  .cta-card h3 {
    font-size: 1.5rem;
  }

  .cta-card p {
    font-size: 1rem;
  }

  .cta-card .btn {
    min-width: 180px;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }

  .company-info-item {
    padding: 1.2rem;
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-content {
    gap: 2rem;
  }

  .footer-logo .logo-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .footer-logo .logo-text .logo-title {
    font-size: 1.5rem;
  }

  .footer-links-column h3 {
    font-size: 1.1rem;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* 4つの貴重な人材カテゴリー */
.talent-categories {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.talent-categories::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(116,125,136,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.talent-categories .container {
  position: relative;
  z-index: 2;
}

.talent-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.talent-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* カードヘッダー部分を2カラムに */
.talent-card-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.talent-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.talent-card-right {
  flex: 1;
  text-align: left;
  min-width: 0;
  overflow: hidden;
}

.talent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-gradient-start), var(--card-gradient-end));
  transition: height 0.4s ease;
}

.talent-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.talent-card:hover::before {
  height: 8px;
}

/* カテゴリー別カラー */
.talent-card-senior {
  --card-gradient-start: #1a2b4a;
  --card-gradient-end: #2c3e50;
}

.talent-card-ladies {
  --card-gradient-start: #1a2b4a;
  --card-gradient-end: #2c3e50;
}

.talent-card-guns {
  --card-gradient-start: #1a2b4a;
  --card-gradient-end: #2c3e50;
}

.talent-card-lions {
  --card-gradient-start: #1a2b4a;
  --card-gradient-end: #2c3e50;
}

.talent-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--card-gradient-start), var(--card-gradient-end));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.talent-card:hover .talent-card-icon {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.talent-card-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--card-gradient-start), var(--card-gradient-end));
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.talent-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a2b4a;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.talent-card-target {
  font-size: 0.95rem;
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.talent-card-description {
  font-size: 1rem;
  color: #495057;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-align: left;
}

.talent-card-values {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.talent-card-values li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #495057;
  line-height: 1.5;
}

.talent-card-values li i {
  color: var(--card-gradient-start);
  font-size: 0.8rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.talent-card-values li:last-child {
  margin-bottom: 0;
}

/* レスポンシブデザイン */
@media (max-width: 1200px) {
  .talent-cards {
    gap: 1.5rem;
  }

  .talent-card {
    padding: 2rem;
  }
}

@media (max-width: 1024px) {
  .talent-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .talent-card-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .talent-categories {
    padding: 3rem 0;
  }

  .talent-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .talent-card {
    padding: 2rem 1.5rem;
  }

  .talent-card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .talent-card-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .talent-card {
    padding: 1.5rem 1rem;
  }

  .talent-card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .talent-card-title {
    font-size: 1.2rem;
  }

  .talent-card-values li {
    font-size: 0.85rem;
  }
}

