@charset "utf-8";
/* CSS Document */

/* 細かい調整用スタイル */

/* リンクスタイル */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* フォーカススタイル */
a:focus,
button:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* 強調テキスト */
strong {
  font-weight: 700;
  color: var(--text-color);
}

.warning {
  color: #dc2626;
  font-weight: 600;
}

/* スクロールバーカスタマイズ */
.schedule-table-container::-webkit-scrollbar {
  height: 8px;
}

.schedule-table-container::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 4px;
}

.schedule-table-container::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.schedule-table-container::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* フッター */
.footer {
  background: var(--text-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease;
}

.footer-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.copyright {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* アニメーション */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* スクロール時のアニメーション用クラス */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* プリント用スタイル */
@media print {
  .header,
  .nav,
  .application-button,
  .footer {
    display: none;
  }

  .main {
    margin-top: 0;
  }

  .hero {
    height: auto;
    min-height: auto;
    page-break-after: always;
  }

  section {
    page-break-inside: avoid;
  }

  .schedule-table-container {
    overflow: visible;
  }

  .schedule-table {
    font-size: 0.8rem;
  }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --secondary-color: #0000ff;
    --text-color: #000000;
    --border-color: #000000;
  }
}

/* ダークモード対応（将来的な拡張用） */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --text-color: #f9fafb;
    --text-light: #d1d5db;
    --border-color: #374151;
    --bg-light: #1f2937;
    --bg-white: #111827;
  }
}

/* アクセシビリティ：モーション軽減 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* 小さなデバイス用の追加調整 */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .card {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}