/* ==========================================
   LARGO SUNY Corporate Website
   CSS Stylesheet
   ========================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #111827;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  animation: logoFadeIn 1s ease forwards;
}

.loading-logo img {
  width: 200px;
  height: auto;
}

@media (min-width: 768px) {
  .loading-logo img {
    width: 280px;
  }
}

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

/* Page Fade In */
body.page-loaded .hero,
body.page-loaded .nav {
  animation: pageFadeIn 0.8s ease forwards;
}

@keyframes pageFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.sp {
  display: none;
}

@media (max-width: 768px) {
  .sp {
    display: block;
  }

  .pc {
    display: none !important;
  }
}


/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================
   Navigation
   ========================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-container {
  position: relative;
  z-index: 1001;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

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

.nav-logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.nav-scrolled .nav-logo-img {
  filter: brightness(0);
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
  opacity: 0.7;
}

.nav-scrolled .nav-link {
  color: #111827;
}

/* Hamburger Menu */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  position: relative;
}

.hamburger {
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.nav-scrolled .hamburger,
.nav-scrolled .hamburger::before,
.nav-scrolled .hamburger::after {
  background-color: #111827;
}

.nav-toggle.active .hamburger {
  background-color: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* SPメニュー開時：ロゴ・バツ印を黒に */
@media (max-width: 767px) {
  body.nav-mobile-open .nav-logo-img {
    filter: brightness(0);
  }
  body.nav-mobile-open .hamburger,
  body.nav-mobile-open .hamburger::before,
  body.nav-mobile-open .hamburger::after {
    background-color: #111827;
  }
}

/* Mobile Menu - オーバーレイ（フェード） */
.nav-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-mobile-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Menu - パネル（上からスライド） */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  padding: calc(5rem + env(safe-area-inset-top, 0px)) calc(1.5rem + env(safe-area-inset-right, 0px)) calc(2rem + env(safe-area-inset-bottom, 0px)) calc(1.5rem + env(safe-area-inset-left, 0px));
  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
}

.nav-mobile.active {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile-inner {
  max-width: 400px;
  margin: 0 auto;
}

.nav-mobile-link {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #111827;
  border-bottom: 1px solid #f3f4f6;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.nav-mobile-link:last-child {
  border-bottom: none;
}

.nav-mobile-link:hover {
  color: #134056;
  padding-left: 0.5rem;
}

/* Desktop: モバイルメニュー・オーバーレイは表示しない */
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .nav-mobile-overlay,
  .nav-mobile {
    display: none !important;
  }
}

/* メニュー表示中は body スクロール禁止 */
body.nav-mobile-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ==========================================
   Hero Section - COUNTER Style
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111827;
  overflow: hidden;
}

/* モバイル: アドレスバー・スクロールバー表示で高さが変わらないよう 100svh で固定 */
@supports (height: 100svh) {
  .hero {
    min-height: 100svh;
    height: 100svh;
  }
}

/* SP: 初回ロード時の高さで固定（JS で .hero-height-fixed と --hero-fixed-height を設定） */
@media (max-width: 767px) {
  .hero.hero-height-fixed {
    height: var(--hero-fixed-height, 100svh) !important;
    min-height: var(--hero-fixed-height, 100svh) !important;
  }
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.8) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 1.5rem;
  width: 100%;
  max-width: 1400px;
}

/* Typography */
.hero-typography {
  margin-bottom: 3rem;
}

.hero-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: sans-serif;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-word {
  font-family: sans-serif;
  font-size: clamp(2.5rem, 8vw, 60px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  line-height: 1.2;
}

.hero-word-outline {
  color: transparent;
  -webkit-text-stroke: 2px #fff;
  text-stroke: 2px #fff;
}

@media (min-width: 768px) {
  .hero-word {
    font-size: clamp(3rem, 6vw, 60px);
  }
  
  .hero-word-outline {
    -webkit-text-stroke: 3px #fff;
    text-stroke: 3px #fff;
  }
}

@media (min-width: 1024px) {
  .hero-word {
    font-size: clamp(3.5rem, 5vw, 60px);
  }
}

/* Tagline */
.hero-tagline {
  padding-left: 0.5rem;
  border-left: 3px solid #dc2626;
}

.hero-tagline-jp {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.hero-tagline-sub {
  font-size: 0.9375rem;
  color: #fff;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .hero-tagline {
    padding-left: 1rem;
  }
  
  .hero-tagline-jp {
    font-size: 2rem;
  }
  
  .hero-tagline-sub {
    font-size: 1rem;
  }
}

/* Scroll Indicator - Line Style */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, #fff 50%, transparent 50%);
  background-size: 100% 200%;
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 0% 100%;
  }
}

.scroll-text {
  font-size: 0.625rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* Hero Copyright */
.hero-copyright {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  color: #fff;
  font-size: 11px;
  opacity: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: 10;
}

@media (min-width: 768px) {
  .hero-copyright {
    right: 0.5rem;
    bottom: 1rem;
  }
}

/* ==========================================
   Sections
   ========================================== */
.section {
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 0;
  }
}

.section-white {
  background-color: #fff;
}

.section-gray {
  background-color: #f9fafb;
}

.section-light-gray {
  background-color: #e8e8e8;
}

.section-dark {
  background-color: #111827;
  color: #fff;
}

.section-header {
  margin-bottom: 4rem;
}

/* New Unified Section Header Style */
.section-header-new {
  margin-bottom: 4rem;
}

.section-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  color: #111827;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.section-title-new {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .section-title-new {
    font-size: 2.5rem;
  }
}

/* Section variations */
.section-light-gray .section-label,
.section-light-gray .section-title-new {
  color: #111827;
}

.recruit-contact-section .section-label,
.recruit-contact-section .section-title-new {
  color: #111827;
}

/* Old section styles (kept for compatibility) */
.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.section-dark .section-title {
  color: #fff;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 4.5rem;
  }
}

.section-subtitle {
  font-size: 0.875rem;
  color: #000000;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.section-subtitle-light {
  font-size: 0.875rem;
  color: #9ca3af;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

/* ==========================================
   About Section - White Style
   ========================================== */
.about-section-dark {
  position: relative;
  padding: 6rem 0;
  background: #fff;
  overflow: hidden;
  min-height: 600px;
}

@media (min-width: 768px) {
  .about-section-dark {
    padding: 8rem 0;
    min-height: 700px;
  }
}

/* Diagonal Stripe */
.about-stripe {
  position: absolute;
  top: -20%;
  right: 15%;
  width: 35%;
  height: 140%;
  background: #c73e3a;
  transform: rotate(-20deg);
  transform-origin: center;
  z-index: 1;
}

@media (max-width: 767px) {
  .about-stripe {
    right: -10%;
    width: 50%;
  }
}

/* Outline Text Background */
.about-outline-text {
  position: absolute;
  right: 3%;
  bottom: 8%;
  z-index: 2;
  text-align: right;
  pointer-events: none;
}

@media (max-width: 767px) {
  .about-outline-text {
    top: 20px;
  }
}

.about-outline-text span {
  display: block;
  font-family: sans-serif;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 800;
  color: #c73f3b;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
  text-stroke: 1px rgba(255, 255, 255, 0.5);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-style: italic;
}

@media (min-width: 1024px) {
  .about-outline-text span {
    font-size: clamp(3rem, 5vw, 4.5rem);
  }
}

/* About Inner Container */
.about-inner {
  position: relative;
  z-index: 10;
  max-width: 700px;
}

/* Section Header for White Background */
.about-section-dark .section-header-light .section-label {
  color: #000000;
}

.about-section-dark .section-header-light .section-title-new {
  color: #111827;
}

/* About Lead */
.about-lead-dark {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.6;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .about-lead-dark {
    font-size: 2.25rem;
  }
}

/* About Text */
.about-text-dark {
  margin-bottom: 3rem;
}

.about-text-dark p {
  font-size: 0.9375rem;
  color: #000000;
  line-height: 2;
}

.pc-only {
  display: none;
}

@media (min-width: 768px) {
  .pc-only {
    display: inline;
  }
}

/* About Buttons */
.about-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: 180px;
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  background: #c73e3a;
  color: #fff;
  border: 2px solid #c73e3a;
  transition: all 0.3s ease;
}

.about-btn:hover {
  background: #a83330;
  border-color: #a83330;
}

.about-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.about-btn:hover svg {
  transform: translateX(4px);
}

.about-btn-outline {
  background: transparent;
  border-color: #c73e3a;
  color: #c73e3a;
}

.about-btn-outline:hover {
  background: #c73e3a;
  color: #fff;
}

/* Old about styles removed - using new dark design */

/* ==========================================
   Grid Layouts
   ========================================== */
.grid-2 {
  display: grid;
  gap: 4rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
}

.grid-3 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================
   Content Blocks
   ========================================== */
.content-block {
  display: flex;
  flex-direction: column;
}

.text-content {
  margin-bottom: 2rem;
}

.text-content p {
  color: #000000;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.text-content p:last-child {
  margin-bottom: 0;
}

.image-block {
  position: relative;
  height: 24rem;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .image-block {
    height: 31rem;
  }
}

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

.section-dark .image-block {
  background-color: #1f2937;
}

.section-dark .image-block img {
  opacity: 0.7;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-outline {
  border: 1px solid #111827;
  color: #111827;
  background: transparent;
}

.btn-outline:hover {
  background: #111827;
  color: #fff;
}

.btn-dark {
  background: #111827;
  color: #fff;
}

.btn-dark:hover {
  background: #1f2937;
}

/* ==========================================
   Cards
   ========================================== */
.card {
  background: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.card-text {
  font-size: 0.875rem;
  color: #000000;
  line-height: 1.75;
}

/* ==========================================
   News Section - New Layout
   ========================================== */

/* News Date */
.news-date {
  font-size: 0.875rem;
  color: #000000;
}

.news-date::before {
  content: '●';
  margin-right: 0.5rem;
  font-size: 0.5rem;
  vertical-align: middle;
}

/* News Tags */
.news-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid #000000;
  border-radius: 9999px;
  color: #000000;
  background: transparent;
}

.news-tag-dark {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

/* Featured News */
.news-featured {
  display: block;
  border-top: 1px solid #d1d5db;
  border-bottom: 1px solid #d1d5db;
  padding: 2rem 0;
  margin-bottom: 2rem;
  transition: opacity 0.3s ease;
}

.news-featured:hover {
  opacity: 0.8;
}

.news-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.news-featured-content {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .news-featured-content {
    grid-template-columns: 240px 1fr auto;
    gap: 2rem;
    align-items: center;
  }
}

.news-featured-image {
  width: 100%;
  height: 160px;
  border-radius: 0.25rem;
  overflow: hidden;
  background: #d1d5db;
}

@media (min-width: 768px) {
  .news-featured-image {
    width: 240px;
    height: 140px;
  }
}

.news-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-featured-body {
  flex: 1;
}

.news-featured-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.news-featured-text {
  font-size: 0.875rem;
  color: #000000;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-featured-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid #111827;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.news-featured-arrow svg {
  width: 20px;
  height: 20px;
  stroke: #111827;
}

.news-featured:hover .news-featured-arrow {
  background: #111827;
}

.news-featured:hover .news-featured-arrow svg {
  stroke: #fff;
}

/* News Grid */
.news-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid #d1d5db;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-grid-item {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  border-bottom: 1px solid #d1d5db;
  position: relative;
  transition: background-color 0.3s ease;
}

@media (min-width: 768px) {
  .news-grid-item {
    padding: 1.5rem;
    border-bottom: none;
    border-right: 1px solid #d1d5db;
  }
  
  .news-grid-item:nth-child(3n) {
    border-right: none;
  }
  
  .news-grid-item:nth-child(n+4) {
    border-top: 1px solid #d1d5db;
  }
}

.news-grid-item:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.news-grid-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.news-grid-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #111827;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.news-grid-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: all 0.3s ease;
}

.news-grid-arrow svg {
  width: 16px;
  height: 16px;
  stroke: #000000;
}

.news-grid-item:hover .news-grid-arrow {
  background: #111827;
  border-color: #111827;
}

.news-grid-item:hover .news-grid-arrow svg {
  stroke: #fff;
}

/* News More Button */
.news-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 3rem;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.btn-arrow:hover svg {
  transform: translateX(4px);
}

/* ==========================================
   Service Section - New Design
   ========================================== */
.service-section {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .service-section {
    padding: 8rem 0;
  }
}

.service-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.service-intro {
  font-size: 1rem;
  color: #000000;
  line-height: 2;
  margin-bottom: 4rem;
  max-width: 700px;
}

/* Bento Grid */
.service-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .service-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-bento {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
  }
}

/* Service Cards */
.service-card {
  position: relative;
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card-number {
  font-size: 5rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.03);
  position: absolute;
  top: -1rem;
  right: 1rem;
  line-height: 1;
}

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

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.service-card-text {
  font-size: 0.875rem;
  color: #000000;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-card-tags span {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: #f3f4f6;
  color: #134056;
  border-radius: 9999px;
  font-weight: bold;
}

.service-card-icon {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border-radius: 12px;
}

/* TOPページのサービスセクションではアイコン非表示 */
.home .service-card-icon {
  display: none;
}

.service-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: #9ca3af;
}

/* Card Sizes */
@media (min-width: 1024px) {
  .service-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    position: relative;
  }
  
  .service-bento::after {
    content: 'and more ...';
    position: absolute;
    left: calc(50% + 80px);
    bottom: 20px;
    transform: translateY(-50%);
    font-size: 60px;
    font-weight: 700;
    color: #d1d5db;
    letter-spacing: 0.05em;
    font-style: italic;
  }
  
  .service-card-large {
    grid-column: span 1;
    grid-row: span 2;
    padding: 2.5rem;
  }
  
  .service-card-large .service-card-number {
    font-size: 8rem;
  }
  
  .service-card-large .service-card-title {
    font-size: 1.75rem;
  }
  
  .service-card-large .service-card-text {
    font-size: 1rem;
  }
  
  .service-card-medium {
    grid-column: span 1;
  }
}

.service-cta {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

/* ==========================================
   Company Section - New Grid Design
   ========================================== */
.company-section-new {
  position: relative;
  padding: 6rem 0;
  background: #fff;
  overflow: hidden;
}

@media (min-width: 768px) {
  .company-section-new {
    padding: 8rem 0;
  }
}

/* Grid Background Pattern */
.company-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* Company Logo Background */
.company-logo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1200px;
  pointer-events: none;
  z-index: 0;
}

.company-logo-bg img {
  width: 100%;
  height: auto;
  opacity: 0.08;
}

/* Company Container */
.company-section-new .container {
  position: relative;
  z-index: 1;
}

/* Company Cards Grid */
.company-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .company-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .company-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Company Card New Style */
.company-card-new {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 1.5rem;
  transition: all 0.3s ease;
}

.company-card-new:hover {
  transform: translateY(-4px);
}

/* Coming Soon Overlay */
.company-card-coming-soon {
  pointer-events: none;
}

.company-card-coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.company-card-coming-soon-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #bdbebe;
  letter-spacing: 0.1em;
}

@media (min-width: 768px) {
  .company-card-coming-soon-text {
    font-size: 1.5rem;
  }
}

/* Red Accent Line */
.company-card-accent {
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: #dc2626;
  border-radius: 4px;
}

/* Card Header */
.company-card-header {
  margin-bottom: 2rem;
}

.company-card-num {
  display: block;
  font-size: 0.875rem;
  color: #000000;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.company-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.company-card-title-new {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .company-card-title-new {
    font-size: 1.125rem;
  }
}

/* Arrow Icon */
.company-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-card-arrow svg {
  width: 24px;
  height: 24px;
  stroke: #111827;
  transition: all 0.3s ease;
}

.company-card-new:hover .company-card-arrow svg {
  stroke: #dc2626;
  transform: translateX(4px);
}

/* Card Image */
.company-card-img {
  margin-top: auto;
  width: 100%;
  height: 180px;
  border-radius: 0.25rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .company-card-img {
    height: 160px;
  }
}

.company-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.company-card-new:hover .company-card-img img {
  transform: scale(1.05);
}

/* Separator lines between cards */
@media (min-width: 1024px) {
  .company-card-new {
    border-right: 1px solid #e5e7eb;
    padding-right: 1.5rem;
  }
  
  .company-card-new:last-child {
    border-right: none;
  }
}

/* Company Info Summary */
.company-info-summary {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #e5e7eb;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .company-info-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .company-info-summary {
    grid-template-columns: repeat(4, 1fr);
  }
}

.company-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.company-info-summary .company-info-label {
  font-size: 0.75rem;
  color: #000000;
  letter-spacing: 0.05em;
}

.company-info-summary .company-info-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.5;
}

.section-title-white {
  color: #fff;
}

/* ==========================================
   Recruit & Contact Section
   ========================================== */
.recruit-contact-section {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .recruit-contact-section {
    padding: 8rem 0;
  }
}

.recruit-contact-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.recruit-contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .recruit-contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* RC Cards Base */
.rc-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 480px;
}

@media (min-width: 768px) {
  .rc-card {
    min-height: 520px;
  }
}

.rc-card:hover {
  transform: translateY(-8px);
}

.rc-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Background Image */
.rc-card-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.rc-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.rc-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.rc-card-overlay-light {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.92) 40%,
    rgba(255, 255, 255, 0.75) 70%,
    rgba(255, 255, 255, 0.5) 100%
  );
}

.rc-card-overlay-dark {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.97) 0%,
    rgba(15, 23, 42, 0.92) 40%,
    rgba(15, 23, 42, 0.8) 70%,
    rgba(15, 23, 42, 0.6) 100%
  );
}

.rc-card-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (min-width: 768px) {
  .rc-card-content {
    padding: 3rem;
  }
}

/* Recruit Card */
.rc-card-recruit {
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.rc-card-recruit:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Contact Card */
.rc-card-contact {
  background: #0f172a;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.rc-card-contact:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* Card Header */
.rc-card-header {
  margin-bottom: 2rem;
}

.rc-card-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .rc-card-title {
    font-size: 3rem;
  }
}

.rc-card-title-light {
  color: #fff;
}

.rc-card-subtitle {
  font-size: 0.875rem;
  color: #000000;
  letter-spacing: 0.05em;
}

.rc-card-subtitle-light {
  color: rgba(255, 255, 255, 0.6);
}

/* Card Body */
.rc-card-body {
  flex: 1;
}

.rc-card-lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .rc-card-lead {
    font-size: 1.5rem;
  }
}

.rc-card-lead-light {
  color: #fff;
}

.rc-card-text {
  font-size: 0.9375rem;
  color: #000000;
  line-height: 1.85;
  max-width: 400px;
}

.rc-card-text-light {
  color: rgba(255, 255, 255, 0.7);
}

/* Card Footer */
.rc-card-footer {
  margin-top: auto;
  padding-top: 2rem;
}

/* CTA Button */
.rc-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.25rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  background: #111827;
  color: #fff;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.rc-cta-btn:hover {
  background: #1f2937;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

.rc-cta-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.rc-cta-btn:hover svg {
  transform: translateX(4px);
}

.rc-cta-btn-light {
  background: #fff;
  color: #111827;
}

.rc-cta-btn-light:hover {
  background: #f8fafc;
  box-shadow: 0 10px 40px -10px rgba(255, 255, 255, 0.3);
}

/* ==========================================
   Footer - New Design
   ========================================== */
.footer-new {
  background: #1a1f2e;
  color: #fff;
}

/* Logo Marquee */
.footer-marquee {
  padding: 3rem 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-marquee-track {
  display: flex;
}

.footer-marquee-item {
  padding: 0 3rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.footer-marquee-item img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.3;
  transition: opacity 0.3s ease;
  object-fit: contain;
}

.footer-marquee-item:hover img {
  opacity: 0.6;
}

@media (min-width: 768px) {
  .footer-marquee-item img {
    height: 80px;
  }
}

/* Footer Main */
.footer-main {
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 2fr auto;
    gap: 4rem;
  }
}

/* Footer Company Info */
.footer-company {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: inline-flex;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 0.8;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-address {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

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

.footer-social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: #fff;
  color: #1a1f2e;
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

/* Footer Navigation */
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav-col a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-nav-col a:hover {
  color: #fff;
}

.external-icon {
  font-size: 0.75rem;
  margin-left: 0.25rem;
  opacity: 0.6;
}

/* Back to Top Button */
.footer-top-btn-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.footer-top-btn {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
}

.footer-top-btn:hover {
  background: #fff;
  color: #1a1f2e;
}

.footer-top-btn svg {
  width: 24px;
  height: 24px;
}

/* Footer Bottom */
.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

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

.footer-partners a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer-partners a:hover {
  color: #fff;
}

.footer-copyright-new {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   Utility Classes
   ========================================== */
.text-center {
  text-align: center;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-16 {
  margin-top: 4rem;
}
