/* ========================================
   丸忠物産 LP v3.0 - Stitch Design System
   "The Translucent Bridge"
   ======================================== */

/* ----------------------------------------
   Stitch: ベースボディスタイル
   ---------------------------------------- */
body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #1a1c1e;
  background-color: #faf9fc;
}

/* ----------------------------------------
   Stitch: セクション見出し装飾バー
   ---------------------------------------- */
.section-bar::after {
  content: '';
  display: block;
  width: 5rem;
  height: 0.25rem;
  background: #0b61a1;
  margin: 1rem auto 0;
  border-radius: 2px;
}


/* ----------------------------------------
   Stitch: プライマリグラデーント
   ---------------------------------------- */
.primary-gradient {
  background: linear-gradient(135deg, #002444 0%, #1B3A5C 100%);
}

/* ----------------------------------------
   Stitch: グロウカード（ホバー光彩）
   ---------------------------------------- */
.glow-card {
  position: relative;
  z-index: 1;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: linear-gradient(135deg, #0b61a1, #1b3a5c);
  border-radius: 1rem;
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
}

.glow-card:hover::before {
  opacity: 0.2;
}

/* ----------------------------------------
   スクロールアニメーション
   ---------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------
   スムーズスクロール
   ---------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ----------------------------------------
   FAQ アコーディオン
   ---------------------------------------- */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.3s ease-out;
}

.faq-content.open {
  max-height: 500px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* ----------------------------------------
   ヘッダー - スクロール時の影
   ---------------------------------------- */
#header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ----------------------------------------
   FV 背景画像フォールバック
   ---------------------------------------- */
#fv {
  background: linear-gradient(135deg, #002444 0%, #1B3A5C 100%);
}

/* ----------------------------------------
   CTAボタン ホバーエフェクト
   ---------------------------------------- */
a[href="#contact"],
a[href="#jobseeker-form"],
button[type="submit"] {
  transition: all 0.3s ease;
}

a[href="#contact"]:hover,
a[href="#jobseeker-form"]:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
}

/* ----------------------------------------
   CTA強化: 脈動アニメーション
   ---------------------------------------- */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(255, 107, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.cta-pulse {
  animation: pulse-ring 2.5s ease-in-out infinite;
}

/* CTA ボタン（オレンジ） */
.cta-enhanced {
  background: #FF6B35 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-enhanced:hover {
  background: #E85D1A !important;
  color: #ffffff !important;
  box-shadow: 0 6px 25px rgba(232, 93, 26, 0.4);
  transform: scale(0.98);
}

/* ----------------------------------------
   数値カウンターアニメーション
   ---------------------------------------- */
.counter-section .counter {
  font-variant-numeric: tabular-nums;
}



/* ----------------------------------------
   SNS フローティングボタン（LINE の上）
   ---------------------------------------- */
.sns-floating {
  position: fixed;
  bottom: 160px;
  right: 20px;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: line-bounce 2s ease-in-out infinite;
}
.sns-floating-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sns-floating-btn:hover {
  transform: scale(1.15);
}
.sns-coming-soon {
  position: relative;
}
.sns-tooltip {
  display: none;
  position: absolute;
  right: 54px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  background: white;
  color: #374151;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  white-space: nowrap;
}
.sns-coming-soon:hover .sns-tooltip {
  display: block;
}
@media (min-width: 1024px) {
  .sns-floating {
    bottom: 110px;
    right: 30px;
  }
  .sns-floating-btn {
    width: 48px;
    height: 48px;
  }
}
@media (max-width: 1023px) {
  .sns-floating {
    bottom: 80px;
  }
}

/* ----------------------------------------
   LINE フローティングボタン
   ---------------------------------------- */
.line-floating {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 49;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #06C755;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(6, 199, 85, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.line-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(6, 199, 85, 0.5);
}

@keyframes line-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.line-floating-animate {
  animation: line-bounce 2s ease-in-out infinite;
}

/* デスクトップではフローティングボタンを少し上に */
@media (min-width: 1024px) {
  .line-floating {
    bottom: 30px;
    right: 30px;
    width: 68px;
    height: 68px;
  }
}

/* LINE QRセクション */
.line-qr-section {
  background: linear-gradient(135deg, #06C755 0%, #05a847 100%);
}

/* LINE CTA ボタン */
.line-btn {
  background: #06C755;
  color: white;
  transition: all 0.3s ease;
}

.line-btn:hover {
  background: #05a847;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}

/* ----------------------------------------
   料金プランカード ホバー
   ---------------------------------------- */
.plan-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
}

/* ----------------------------------------
   コスト比較表
   ---------------------------------------- */
#cost-comparison table {
  border-spacing: 0;
}

@media (max-width: 640px) {
  #cost-comparison th,
  #cost-comparison td {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 0.75rem;
  }
}

/* ----------------------------------------
   対応分野カード ホバー
   ---------------------------------------- */
#service .group:hover img {
  transform: scale(1.05);
}

/* ----------------------------------------
   モバイル固定バー
   ---------------------------------------- */
#mobile-cta-bar {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-cta-bar.hidden {
  transform: translateY(100%);
  opacity: 0;
}

#mobile-cta-bar.show {
  transform: translateY(0);
  opacity: 1;
}

/* ----------------------------------------
   フォーム入力フォーカス
   ---------------------------------------- */
input:focus,
select:focus,
textarea:focus {
  border-color: #0b61a1;
  box-shadow: 0 0 0 3px rgba(11, 97, 161, 0.1);
}

/* ----------------------------------------
   会社概要テーブル レスポンシブ
   ---------------------------------------- */
@media (max-width: 640px) {
  #company table,
  #company tbody,
  #company tr,
  #company th,
  #company td {
    display: block;
    width: 100%;
  }

  #company th {
    padding-bottom: 0;
    border-bottom: none;
  }

  #company td {
    padding-top: 4px;
  }

  #company tr {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  }
}

/* ----------------------------------------
   セレクションハイライト
   ---------------------------------------- */
::selection {
  background: rgba(0, 36, 68, 0.2);
  color: #002444;
}

/* ----------------------------------------
   スクロールバーカスタム
   ---------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f4f3f6;
}

::-webkit-scrollbar-thumb {
  background: #0b61a1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #002444;
}

/* ----------------------------------------
   ダウンロードモーダル
   ---------------------------------------- */
#download-modal.active {
  display: flex;
}

#download-modal .bg-white {
  animation: modal-in 0.3s ease-out;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ----------------------------------------
   候補者動画カルーセル (B-7)
   ---------------------------------------- */
.talents-scroll {
  scrollbar-width: thin;
  scrollbar-color: #0b61a1 transparent;
}

.talents-scroll::-webkit-scrollbar {
  height: 6px;
}

.talents-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.talents-scroll::-webkit-scrollbar-thumb {
  background: #0b61a1;
  border-radius: 3px;
}

.talent-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.talent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 36, 68, 0.15);
}

/* ----------------------------------------
   YouTubeビデオモーダル (B-7)
   ---------------------------------------- */
#video-modal.flex {
  display: flex;
}

#video-modal .relative {
  animation: modal-in 0.3s ease-out;
}
