/* ===============================================
   oshic.co 更新履歴ページ専用CSS
   =============================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
  line-height: 1.7;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ヘッダー */
.header {
  text-align: center;
  margin-bottom: 32px;
  color: #fff;
}

.back-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 16px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  transition: background 0.2s;
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.25);
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
  font-size: 14px;
  opacity: 0.9;
}

/* 更新カード */
.updates {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.update-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.update-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.update-card.past {
  background: #f8f9fa;
}

.update-card.launch {
  background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
  border: 2px solid #ffd700;
}

/* 日付 */
.update-date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.date {
  font-size: 13px;
  color: #888;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.badge.new {
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #fff;
}

.badge.launch {
  background: linear-gradient(135deg, #ffd700, #ffb800);
  color: #333;
}

/* タイトル */
.update-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

/* コンテンツ */
.update-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.update-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.update-item .icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 10px;
}

.item-content {
  flex: 1;
}

.item-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.item-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

.caution {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: #e74c3c;
  background: #fef5f5;
  padding: 4px 8px;
  border-radius: 4px;
}

/* フッター */
.footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

/* レスポンシブ */
@media (max-width: 480px) {
  .container {
    padding: 16px 12px;
  }

  .header h1 {
    font-size: 24px;
  }

  .update-card {
    padding: 20px 16px;
  }

  .update-title {
    font-size: 18px;
  }

  .update-item .icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .item-content h3 {
    font-size: 14px;
  }

  .item-content p {
    font-size: 13px;
  }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  }

  .update-card {
    background: #2a2a3e;
    color: #e0e0e0;
  }

  .update-card.past {
    background: #222233;
  }

  .update-card.launch {
    background: linear-gradient(135deg, #3a3520 0%, #2a2a3e 100%);
    border-color: #b8860b;
  }

  .update-title {
    color: #fff;
    border-bottom-color: #444;
  }

  .date {
    color: #aaa;
  }

  .item-content h3 {
    color: #f0f0f0;
  }

  .item-content p {
    color: #ccc;
  }

  .update-item .icon {
    background: #3a3a4e;
  }
}
