/* Wandervogel - 山岳部活動管理システム */
/* カスタムスタイル */

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

/* スクロールバーのスタイリング */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* フォーカススタイルの改善 */
.focus\:ring-2:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* カスタムアニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* テーブルの改善 */
table {
  border-collapse: separate;
  border-spacing: 0;
}

table th:first-child {
  border-top-left-radius: 0.5rem;
}

table th:last-child {
  border-top-right-radius: 0.5rem;
}

/* モーダルの背景 */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

/* レスポンシブ対応の改善 */
@media (max-width: 768px) {
  .md\:w-64 {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 50;
    flex-direction: row;
    padding: 1rem;
  }
  
  .md\:w-64 .text-2xl {
    display: none;
  }
  
  .md\:w-64 ul {
    display: flex;
    justify-content: space-around;
    width: 100%;
  }
  
  .md\:w-64 ul li {
    flex: 1;
  }
  
  .md\:w-64 ul li button {
    flex-direction: column;
    padding: 0.5rem;
    font-size: 0.75rem;
  }
  
  .md\:w-64 ul li button span {
    margin-top: 0.25rem;
    margin-left: 0;
  }
}

/* 山岳部テーマカラー */
.mountain-gradient {
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

.mountain-text {
  color: #334155;
}

/* カードシャドウの改善 */
.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ステータスバッジの改善 */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
}

/* カレンダーグリッドの改善 */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.calendar-day {
  aspect-ratio: 1;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
}

/* エディターのスタイリング */
.editor-content {
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background-color: white;
}

.editor-content:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

/* プリント用スタイル */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-full-width {
    width: 100% !important;
  }
}

/* ダークモード対応（将来の拡張用） */
@media (prefers-color-scheme: dark) {
  /* ダークモードのスタイルは将来的に追加可能 */
}

/* アクセシビリティの改善 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* フォーカスの可視化 */
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* ホバーエフェクトの統一 */
.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}

/* 読み込み中のスピナー */
.spinner {
  border: 2px solid #f3f4f6;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}