@charset "utf-8";
/* ========================================
   Modern CSS Award Level Effects
   Created: 2026-02-10
   ======================================== */

/* ========================================
   CSS Variables - Design System
   ======================================== */
:root {
  /* カラーパレット */
  --primary: #004EB3;
  --primary-light: #0066E0;
  --primary-dark: #003A85;
  --secondary: #054CA0;
  --accent: #28bbf8;
  --text-main: #191919;
  --text-muted: #64748b;
  --bg-light: #F8F5E5;
  --white: #ffffff;
  
  /* グラスモーフィズム */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  
  /* シャドウ */
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.15);
  
  /* イージング */
  --ease-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Blob Background Animation
   ======================================== */
.blob-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: morph 20s ease-in-out infinite;
  will-change: transform;
}

.blob-1 {
  top: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #0066E0, #28bbf8);
  animation-delay: 0s;
}

.blob-2 {
  bottom: 5%;
  right: -5%;
  width: 700px;
  height: 700px;
  background: linear-gradient(135deg, #004EB3, #0066E0);
  animation-delay: 5s;
}

.blob-3 {
  top: 40%;
  left: 50%;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #28bbf8, #6ee7b7);
  animation-delay: 10s;
  transform: translateX(-50%);
}

@keyframes morph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: translate(30px, -30px) rotate(90deg);
  }
  50% {
    border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
    transform: translate(-20px, 20px) rotate(180deg);
  }
  75% {
    border-radius: 70% 40% 50% 60% / 40% 50% 60% 50%;
    transform: translate(15px, 30px) rotate(270deg);
  }
}

@media (max-width: 768px) {
  .blob {
    filter: blur(60px);
    opacity: 0.2;
  }
  .blob-1, .blob-2, .blob-3 {
    width: 80vw;
    height: 80vw;
  }
}

/* ========================================
   Glass Morphism Effects
   ======================================== */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s var(--ease-quart);
}

.glass-effect:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

/* ヘッダーにグラスモーフィズム適用 */
#fh5co-header-section.fh5co-scrolled {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
}

/* バッジ */
.badge-glass {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 78, 179, 0.3);
  border-radius: 99px;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* カードにグラスエフェクト適用 */
.news-contant,
.about_us-contant,
.service-conyainer,
.feature-container,
.fandq-container,
.company-prof {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: var(--shadow-soft) !important;
  transition: all 0.3s var(--ease-quart);
}

.achievements-white {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-soft) !important;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s var(--ease-quart);
}

.achievements-white:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong) !important;
}

/* ========================================
   Gradient Text Effects
   ======================================== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* セクションタイトルにグラデーション適用 */
.section-title.gradient-title {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ========================================
   Modern Button Styles
   ======================================== */
.btn-modern {
  position: relative;
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 78, 179, 0.3);
  transition: all 0.3s var(--ease-quart);
  overflow: hidden;
  cursor: pointer;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 78, 179, 0.4);
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-modern:active {
  transform: translateY(-1px);
}

/* 既存のボタンを改善 */
.btn-type01 {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  box-shadow: 0 10px 30px rgba(0, 78, 179, 0.3) !important;
  transition: all 0.3s var(--ease-quart) !important;
}

.btn-type01:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 78, 179, 0.4) !important;
}

.info-buttons a button {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  box-shadow: 0 8px 25px rgba(0, 78, 179, 0.3) !important;
  transition: all 0.3s var(--ease-quart) !important;
}

.info-buttons a button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 78, 179, 0.4) !important;
}

/* ========================================
   Scroll Reveal Animation
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s var(--ease-quart);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 要素ごとに遅延を追加 */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========================================
   Custom Cursor
   ======================================== */
body.custom-cursor-enabled {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.8;
  transition: transform 0.2s ease;
  mix-blend-mode: difference;
}

.custom-cursor-follower {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  transition: all 0.15s ease;
}

.custom-cursor.expand {
  transform: scale(1.5);
}

.custom-cursor-follower.expand {
  width: 48px;
  height: 48px;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .custom-cursor,
  .custom-cursor-follower {
    display: none;
  }
  body.custom-cursor-enabled {
    cursor: auto;
  }
}

/* ========================================
   Smooth Image Hover Effects
   ======================================== */
.image-hover-zoom {
  overflow: hidden;
  border-radius: 20px;
}

.image-hover-zoom img {
  transition: transform 0.5s var(--ease-quart);
  will-change: transform;
}

.image-hover-zoom:hover img {
  transform: scale(1.08);
}

/* News画像にホバーエフェクト */
.news-contant img,
.about_us-contant img {
  transition: transform 0.5s var(--ease-quart);
}

.news-contant a:hover img {
  transform: scale(1.05);
}

/* ABOUT US: ホバー時の画像拡大はデザイン崩れのため無効化（.about_us-contant は対象外） */

/* ========================================
   Typography Enhancements
   ======================================== */
.section-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  font-weight: 500;
  opacity: 0.9;
}

/* テキストにグローエフェクト */
.text-glow {
  text-shadow: 0 0 20px rgba(0, 78, 179, 0.3);
}

/* ========================================
   Number Animation
   ======================================== */
.blue-number {
  position: relative;
  display: inline-block;
}

.blue-number::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-quart);
}

.feature-container:hover .blue-number::after {
  transform: scaleX(1);
}

/* ========================================
   Accordion Improvements
   ======================================== */
.accordion-008 {
  background: rgba(227, 239, 255, 0.6) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 78, 179, 0.2);
  transition: all 0.3s var(--ease-quart);
}

.accordion-008:hover {
  background: rgba(227, 239, 255, 0.8) !important;
  box-shadow: 0 8px 24px rgba(0, 78, 179, 0.15);
}

.accordion-008 summary {
  transition: all 0.3s ease;
}

.accordion-008:hover summary {
  padding-left: 2.5em;
}

/* ========================================
   Progress Bar Enhancement
   ======================================== */
.progress-bar-modern {
  position: relative;
  height: 8px;
  background: rgba(0, 78, 179, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 70%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 78, 179, 0.3);
  animation: progressLoad 2s var(--ease-quart);
}

@keyframes progressLoad {
  from {
    width: 0%;
  }
}

/* ========================================
   Navigation Improvements
   ======================================== */
/* 全ナビリンクの高さを統一（現在ページの下線位置に合わせる） */
#fh5co-primary-menu > li > a,
#fh5co-header-section.fh5co-scrolled #fh5co-primary-menu > li > a {
  padding-bottom: 2px !important;
}

.sf-menu a {
  position: relative;
  transition: all 0.3s ease !important;
}

.sf-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease-quart);
}

/* 非現在ページ: ホバーで下線表示（現在ページと同じ高さ） */
.sf-menu a:hover::after {
  width: 80%;
}

/* 現在ページ: ホバー時は追加の下線を表示しない */
.sf-menu li.active > a:hover::after {
  width: 0;
}

/* ハンバーガーメニュー: ホバー時に下線アニメーション */
@media (max-width: 768px) {
  #fh5co-mobile-menu #fh5co-mobile-menu-ul a {
    position: relative;
  }

  #fh5co-mobile-menu #fh5co-mobile-menu-ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: width 0.3s var(--ease-quart);
  }

  #fh5co-mobile-menu #fh5co-mobile-menu-ul a:hover::after {
    width: 80%;
  }

  #fh5co-mobile-menu #fh5co-mobile-menu-ul li.active > a:hover::after {
    width: 0;
  }

  /* ハンバーガーメニュー開時: 背景をぼかす（メニューとハンバーガーボタンは除外して操作可能に） */
  body.fh5co-mobile-menu-visible > *:not(#fh5co-mobile-menu):not(#fh5co-logo-mobile-wrap) {
    filter: blur(4px);
    -webkit-filter: blur(4px);
    transition: filter 0.3s ease, -webkit-filter 0.3s ease;
  }
}

/* ========================================
   Floating Animation
   ======================================== */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* ========================================
   Parallax Effect
   ======================================== */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  will-change: transform;
  z-index: -1;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 992px) {
  .section-title {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 36px;
  }
  
  .btn-modern,
  .btn-type01 {
    padding: 14px 32px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 28px;
  }
  
  .blob {
    display: none;
  }
}

/* ========================================
   Browser Compatibility
   ======================================== */
@supports not (backdrop-filter: blur(20px)) {
  .glass-effect,
  .news-contant,
  .about_us-contant,
  .service-conyainer,
  .feature-container,
  .achievements-white {
    background: rgba(255, 255, 255, 0.95) !important;
  }
  
  #fh5co-header-section.fh5co-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
  }
}

/* ========================================
   Performance Optimization
   ======================================== */
.will-change-transform {
  will-change: transform;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}
