@charset "UTF-8";
/* ========================================
   最先端デザインエフェクト
   Modern Effects & Interactions
   ======================================== */
/* グラスモーフィズム共通スタイル */
.glass-effect {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* 最新シャドウシステム */
.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shadow-md {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.shadow-lg {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.shadow-xl {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.shadow-2xl {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

/* ========================================
   ナビゲーション最先端化
   ======================================== */
.navbar {
  background: rgba(179, 27, 27, 0.85) !important;
  backdrop-filter: blur(30px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
}

.navbar.scrolled {
  background: rgba(179, 27, 27, 0.92) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18) !important;
}

/* ナビメニューアイテムのマイクロインタラクション */
.nav-menu a {
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-menu a::before {
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, #fff, transparent);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateX(-50%);
}

.nav-menu a:hover::before {
  width: 100%;
}

.nav-menu a:hover {
  transform: translateY(-2px);
}

/* サブメニュー3D効果 */
.submenu {
  background: rgba(179, 27, 27, 0.95) !important;
  backdrop-filter: blur(30px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
}

.submenu a {
  position: relative;
  overflow: hidden;
}

.submenu a::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  content: "";
  background: linear-gradient(180deg, transparent, #fff, transparent);
  transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.submenu a:hover::before {
  height: 100%;
}

.submenu a::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateX(-100%);
}

.submenu a:hover::after {
  transform: translateX(100%);
}

/* ========================================
   ヒーローセクション最先端化
   ======================================== */
.hero {
  position: relative;
  overflow: hidden;
}

/* 自然な赤の背景エフェクト（控えめ） */
.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse at 50% 50%, rgba(179, 27, 27, 0.08) 0%, transparent 70%);
  animation: heroSubtleGlow 10s ease-in-out infinite alternate;
}

@keyframes heroSubtleGlow {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.8;
  }
}
.hero-title {
  position: relative;
  z-index: 10;
}

/* 赤い後光を削除 */
.hero-title::before {
  display: none;
}

/* 白いシャインエフェクト（クリーンな光） */
.hero-title::after {
  position: absolute;
  top: 0;
  left: -100%;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.3) 60%, transparent);
  animation: cleanShine 5s ease-in-out infinite;
}

@keyframes cleanShine {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}
/* クリーンなテキストシャドウ */
.hero-title {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ヒーローサブタイトルのフェードイン強化 */
.hero-subtitle {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: fadeInUpSmooth 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes fadeInUpSmooth {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* ========================================
   カード最先端化
   ======================================== */
.business-card,
.works-card,
.news-card,
.service-card {
  position: relative;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.business-card::before,
.works-card::before,
.news-card::before,
.service-card::before {
  position: absolute;
  inset: -2px;
  z-index: -1;
  content: "";
  background: linear-gradient(135deg, rgba(179, 27, 27, 0.4), rgba(179, 27, 27, 0) 50%, rgba(179, 27, 27, 0.4));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* カード画像ホバー効果 */
.business-card img,
.works-card img,
.news-card img,
.service-card img {
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.business-card:hover img,
.works-card:hover img,
.news-card:hover img,
.service-card:hover img {
  filter: brightness(1.1) contrast(1.05);
  transform: scale(1.08) rotate(1deg);
}

/* ========================================
   ボタン最先端化
   ======================================== */
.btn,
.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(179, 27, 27, 0.3);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn::before,
.btn-primary::before,
.btn-secondary::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  content: "";
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transition: width 0.6s ease, height 0.6s ease;
  transform: translate(-50%, -50%);
}

.btn:hover::before,
.btn-primary:hover::before,
.btn-secondary:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover {
  box-shadow: 0 12px 35px rgba(179, 27, 27, 0.5);
  transform: translateY(-4px) scale(1.05);
}

.btn:active,
.btn-primary:active,
.btn-secondary:active {
  transform: translateY(-2px) scale(1.02);
}

/* ========================================
   セクションアニメーション強化
   ======================================== */
.section {
  position: relative;
}

@keyframes sectionLine {
  to {
    height: 100px;
  }
}
/* セクションタイトル強化 */
.section-title,
.section-title-en {
  position: relative;
  display: inline-block;
}

/* Prevent letter elements from having underlines */
.section-title .letter,
.section-title-en .letter {
  position: static;
}

.section-title .letter::after,
.section-title-en .letter::after {
  display: none;
}

@keyframes titleUnderline {
  to {
    width: 100%;
  }
}
/* ========================================
   スクロールインジケーター強化
   ======================================== */
.scroll-indicator {
  position: relative;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator::before {
  position: absolute;
  inset: -10px;
  content: "";
  background: radial-gradient(circle, rgba(179, 27, 27, 0.2) 0%, transparent 70%);
  filter: blur(10px);
  border-radius: 50%;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}
@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}
/* ========================================
   ローディングアニメーション
   ======================================== */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}
.shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* ========================================
   マイクロインタラクション
   ======================================== */
.interactive {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.interactive:hover {
  transform: scale(1.05);
}

.interactive:active {
  transform: scale(0.98);
}

/* ========================================
   グリッドアニメーション
   ======================================== */
.grid-item {
  animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.grid-item:nth-child(1) {
  animation-delay: 0.1s;
}

.grid-item:nth-child(2) {
  animation-delay: 0.2s;
}

.grid-item:nth-child(3) {
  animation-delay: 0.3s;
}

.grid-item:nth-child(4) {
  animation-delay: 0.4s;
}

.grid-item:nth-child(5) {
  animation-delay: 0.5s;
}

.grid-item:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* ========================================
   スクロールトップボタン最先端化
   ======================================== */
.scroll-to-top {
  background: linear-gradient(135deg, #B31B1B, #D32F2F) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(179, 27, 27, 0.4) !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.scroll-to-top::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-to-top:hover {
  box-shadow: 0 15px 40px rgba(179, 27, 27, 0.6) !important;
  transform: translateY(-8px) scale(1.1) rotate(5deg) !important;
}

.scroll-to-top:hover::before {
  opacity: 1;
}

.scroll-to-top:active {
  transform: translateY(-4px) scale(1.05) !important;
}

/* ========================================
   パララックス効果
   ======================================== */
.parallax-slow {
  transform: translateZ(-1px) scale(1.1);
}

.parallax-medium {
  transform: translateZ(-2px) scale(1.2);
}

.parallax-fast {
  transform: translateZ(-3px) scale(1.3);
}

/* ========================================
   レスポンシブ最適化
   ======================================== */
@media (max-width: 768px) {
  .business-card:hover,
  .works-card:hover,
  .news-card:hover,
  .service-card:hover {
    transform: translateY(-8px) scale(1.01);
  }
  .btn:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: translateY(-2px) scale(1.02);
  }
}
/* ========================================
   パフォーマンス最適化
   ======================================== */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ========================================
   ダークモード対応（将来用）
   ======================================== */
@media (prefers-color-scheme: dark) {
  .glass-effect {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
}