/* スムーススクロールの実装 */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  overflow-x: hidden;
}

/* ローディングスピナーのスタイル */
.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* フォーム送信状態のスタイル */
.form-sending {
  opacity: 0.7;
  pointer-events: none;
}

.form-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: none;
}

.form-error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: none;
}

/* 画像遅延読み込み用のプレースホルダー */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s;
  background-color: #f3f4f6;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lazy-image.loaded {
  opacity: 1;
}

.lazy-placeholder {
  color: #9ca3af;
  font-size: 0.875rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn-primary {
  background-color: #005c99;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background-color: #004080;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: #c00258;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background-color: #a00246;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  border: 2px solid #7136a0;
  color: #7136a0;
  background-color: white;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s;
  display: inline-block;
  text-align: center;
}

.btn-outline:hover {
  background-color: #7136a0;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #c00258;
}

/* 課題セクションのタイトル用スタイル */
.section-title.text-white:after {
  background-color: white;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  padding: 24px;
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.fixed-buttons {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fixed-button {
  padding: 12px 20px;
  border-radius: 50px;
  background-color: #005c99;
  color: white;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fixed-button:hover {
  transform: translateX(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.feature-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #e6f3ff;
  color: #005c99;
  font-size: 2rem;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #7136a0;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.accordion-item {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.accordion-header {
  background-color: #f9f9f9;
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: white;
}

.accordion-content.show {
  padding: 16px 20px;
  max-height: 500px;
}

.form-group {
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: #005c99;
  box-shadow: 0 0 0 3px rgba(0, 92, 153, 0.2);
}

.testimonial {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

/* ライトボックス風エフェクト用CSS */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox-overlay:target {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  border: 3px solid white;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  line-height: 1;
}

.image-hover-effect a {
  display: block;
  width: 100%;
  height: 100%;
}

/* 課題セクション専用のスタイル */
.problem-section {
  background: linear-gradient(135deg, #4b5563 0%, #6b7280 50%, #9ca3af 100%);
  position: relative;
  overflow: hidden;
}

.problem-section::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="%23d1d5db" stroke-width="0.5" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.problem-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.problem-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

/* 解決策セクション専用のスタイル */
.solution-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
  position: relative;
  overflow: hidden;
}

.solution-card {
  background: white;
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 92, 153, 0.1);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #005c99, #0ea5e9);
}

.solution-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 92, 153, 0.2);
  border-color: #005c99;
}

/* アニメーション効果 */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* ローディング画面のスタイル */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loading-text {
  color: white;
  font-size: 18px;
  margin-top: 20px;
  font-weight: 500;
}

/* カスタム色の定義 */
.bg-custom-red {
  background-color: #c00258;
}

.bg-custom-red-50 {
  background-color: #fef2f2;
}

.bg-custom-red-100 {
  background-color: #fee2e2;
}

.bg-custom-red-200 {
  background-color: #fecaca;
}

.text-custom-red {
  color: #c00258;
}

.text-custom-red-100 {
  color: #fee2e2;
}

.text-custom-red-600 {
  color: #c00258;
}

.text-custom-red-800 {
  color: #991b1b;
}

.border-custom-red-200 {
  border-color: #fecaca;
}

.border-custom-red-300 {
  border-color: #fca5a5;
}

.hover\:border-custom-red-300:hover {
  border-color: #fca5a5;
}

.hover\:bg-custom-red-50:hover {
  background-color: #fef2f2;
}

.hover\:bg-custom-red-100:hover {
  background-color: #fee2e2;
}

.focus\:ring-custom-red:focus {
  --tw-ring-color: #c00258;
}

.from-custom-red-50 {
  --tw-gradient-from: #fef2f2;
}

.to-custom-red-100 {
  --tw-gradient-to: #fee2e2;
}

.from-custom-red-100 {
  --tw-gradient-from: #fee2e2;
}

.to-custom-red-200 {
  --tw-gradient-to: #fecaca;
}

.from-custom-red-500 {
  --tw-gradient-from: #c00258;
}

.to-custom-red-600 {
  --tw-gradient-to: #c00258;
}

.from-custom-red-600 {
  --tw-gradient-from: #c00258;
}

.to-custom-red-700 {
  --tw-gradient-to: #c00258;
}

.hover\:from-custom-red-600:hover {
  --tw-gradient-from: #c00258;
}

.hover\:to-custom-red-600:hover {
  --tw-gradient-to: #c00258;
}

/* その他のスタイル */
.hero-bg {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(168, 85, 247, 0.1) 100%
  );
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.animate-pulse-slow {
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* フェードインアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* detailsタグが開いている[open]状態の時、中のiタグを180度回転させる */
details[open] summary i {
  transform: rotate(180deg);
}

/* レスポンシブ対応（無効化：PCレイアウトを維持） */
/* @media (max-width: 768px) {
  .fixed-buttons {
    bottom: 0;
    top: auto;
    right: 0;
    left: 0;
    transform: none;
    flex-direction: row;
    background-color: white;
    padding: 8px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    justify-content: space-around;
    gap: 4px;
    z-index: 999;
  }

  .fixed-button {
    font-size: 0.7rem;
    padding: 6px 8px;
    width: 22%;
    border-radius: 20px;
  }

  .fixed-button i {
    margin-right: 2px;
    font-size: 0.8rem;
  }

  /* モバイルでフッターが固定ボタンに隠れないよう余白を追加 */
  footer {
    margin-bottom: 60px;
  }

  /* フッターのレスポンシブ対応 */
  footer .flex {
    flex-direction: column !important;
  }

  footer .mb-6 {
    margin-bottom: 1.5rem !important;
    text-align: center !important;
  }

  footer .gap-4 {
    gap: 1rem !important;
    flex-direction: column !important;
  }

  .problem-card,
  .solution-card {
    padding: 25px 20px;
  }

  .problem-card i,
  .solution-card i {
    font-size: 4rem !important;
  }

  .problem-section,
  .solution-section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }
} */

/* デスクトップでのフッター調整（無効化：PCレイアウトを維持） */
/* @media (min-width: 769px) {
  footer .flex {
    flex-direction: row !important;
  }

  footer .mb-6 {
    margin-bottom: 0 !important;
    text-align: left !important;
  }

  footer .gap-4 {
    flex-direction: row !important;
    gap: 2.5rem !important;
  }
} */

/* PCレイアウト固定設定 - スマホ・タブレットでも同じレイアウトを維持 */
/* viewportの width=1280 設定により、全デバイスで自動的にフィットして表示されます */

/* ヒーローセクションの高さを全デバイスで適切に調整 */
/* コンテンツに応じて高さを自動調整し、背景画像全体を表示 */
#hero .lazy-image {
  height: auto;
  min-height: 850px;
  /* 背景画像全体が表示されるよう、コンテンツの高さに合わせる */
  padding-bottom: 2rem;
}

/* Tailwindのレスポンシブクラスを無効化して常にデスクトップ表示 */
@media (max-width: 1279px) {
  /* 固定ボタンは右側に配置（デスクトップスタイル維持） */
  .fixed-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* フッターはデスクトップスタイルを維持 */
  footer .flex {
    flex-direction: row !important;
  }

  footer .mb-6 {
    margin-bottom: 0 !important;
    text-align: left !important;
  }

  footer .gap-4 {
    flex-direction: row !important;
    gap: 2.5rem !important;
  }
}
