/* ベーススタイル */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* アニメーション */
.animate-bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* STUDYアイコンの点滅アニメーション */
@keyframes pulse {
  0% {
    opacity: 1;
    background-color: rgba(255, 107, 107, 0.8);
  }
  50% {
    opacity: 0.6;
    background-color: rgba(255, 107, 107, 0.5);
  }
  100% {
    opacity: 1;
    background-color: rgba(255, 107, 107, 0.8);
  }
}

@keyframes textPulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.study-icon {
  animation: pulse 2s infinite ease-in-out;
}

.study-label {
  animation: textPulse 2s infinite ease-in-out;
  z-index: 10;
}

/* FAQアコーディオン */
.faq-content {
  display: none;
}

.faq-content.show {
  display: block;
}

.faq-trigger.active .chevron-icon {
  transform: rotate(180deg);
}

/* フッターアコーディオン */
.footer-accordion-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.minus-icon {
  font-size: 20px;
  line-height: 1;
  font-weight: 300;
  margin-top: -2px;
}

/* モバイル対応 */
@media screen and (max-width: 599.98px) {
  /* 固定CTAフッターのモバイル対応 */
  .fixed.bottom-0 {
    padding: 10px 0;
  }

  .fixed.bottom-0 .max-w-7xl {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .fixed.bottom-0 p {
    margin-bottom: 4px;
  }

  .fixed.bottom-0 button {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  /* フッターの下部余白を追加 */
  footer {
    padding-bottom: 8rem !important; /* 128px */
  }
}

/* トランジション効果 */
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.translate-y-full {
  transform: translateY(100%);
}

.opacity-0 {
  opacity: 0;
}

/* ホバー効果 */
.hover\:bg-gray-50:hover {
  background-color: rgb(249 250 251);
}

.hover\:bg-gray-100:hover {
  background-color: rgb(243 244 246);
}

.hover\:bg-\[\#0077B6\]:hover {
  background-color: #0077b6;
}

.hover\:text-\[\#0077B6\]:hover {
  color: #0077b6;
}

.hover\:border-\[\#00B4D8\]:hover {
  border-color: #00b4d8;
}

/* カスタムカラー */
.text-primary {
  color: #00b4d8;
}

.bg-primary {
  background-color: #00b4d8;
}

.border-primary {
  border-color: #00b4d8;
}

.text-secondary {
  color: #caf0f8;
}

.bg-secondary {
  background-color: #caf0f8;
}

/* 会社情報の暗い背景スタイル */
.company-info-dark {
  background: rgba(0, 0, 0, 0.05);
  padding: 12px 16px;
  border-radius: 8px;
  margin: -6px -6px 16px -6px;
}

.company-info-dark .text-gray-600 {
  color: #6b7280;
  opacity: 0.8;
}

/* 勉強会カードのオーバーレイ効果を追加 */
.study-card-overlay {
  position: relative;
}

.study-card-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
  z-index: 1;
}

.study-card-overlay:hover::before {
  background: rgba(0, 0, 0, 0.5);
}

/* オーバーレイ上のコンテンツのz-indexを調整 */
.study-card-overlay .absolute {
  z-index: 2;
}

/* 勉強会カード全体のホバー効果を強化 */
.study-card {
  transition: all 0.3s ease;
}

.study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.mission-title {
  font-size: 2.75rem;
  line-height: 3.75rem;
}

/* 新しいスタイル追加 */
.new-style {
  color: #ffffff;
  background-color: #000000;
}

.new-style:hover {
  background-color: #333333;
}

/* 連続スクロールアニメーション */
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ティッカーコンテナのスタイル */
.ticker-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  background: rgba(0, 180, 216, 0.05);
  padding: 20px 0;
  margin-bottom: 0;
}

.ticker-content {
  display: inline-flex;
  animation: scrollLeft 40s linear infinite;
  gap: 2rem;
  width: 200%; /* 重複分を含めた幅 */
}

.ticker-card {
  flex-shrink: 0;
  width: 280px;
  display: inline-block;
  white-space: normal;
}

/* 信頼性メッセージを確実に静的に */
.trust-message {
  position: relative;
  z-index: 10;
  background: white;
}

/* styles.css に追加するCSS */

/* ティッカーコンテナのスタイル（修正版） */
.ticker-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  background: rgba(0, 180, 216, 0.05);
  padding: 20px 0;
  margin-bottom: 0;
}

.ticker-content {
  display: inline-flex;
  animation: scrollLeft 40s linear infinite;
  gap: 2rem;
  width: 200%; /* 重複分を含めた幅 */
}

/* ホバー時にアニメーションを停止 */
.ticker-container:hover .ticker-content {
  animation-play-state: paused;
}

.ticker-card {
  flex-shrink: 0;
  width: 280px;
  display: inline-block;
  white-space: normal;
  /* ホバー時のトランジション効果を追加 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 個別のカードにホバー効果を追加（オプション） */
.ticker-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 180, 216, 0.2);
  z-index: 10;
  position: relative;
}

/* 連続スクロールアニメーション（既存のまま） */
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
