/* Archive Page Styles */
.archive-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #ffa500;
}

.archive-title {
  font-size: 28px;
  color: #212529;
  margin-bottom: 10px;
}

.archive-description {
  font-size: 16px;
  color: #6c757d;
  line-height: 1.6;
}

/* Yearly Archive Styles */
.yearly-archive {
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

.year-section {
  margin-bottom: 20px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}

.year-toggle {
  width: 100%;
  padding: 15px 20px;
  background: #f8f9fa;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: #212529;
  transition: background 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.year-toggle:hover {
  background: #e9ecef;
}

.toggle-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.year-content {
  padding: 20px;
  background: #fff;
  border-top: 1px solid #dee2e6;
}

.archive-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-items li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f3f4;
  position: relative;
}

.archive-items li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.archive-item-link {
  display: block;
  padding: 10px 15px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.archive-item-link:hover {
  background: #e3f2fd;
  border-color: #007bff;
  color: #0056b3;
}

.archive-item-link.active {
  background: #ffa500;
  color: #fff;
  border-color: #ffa500;
}

.archive-detail-area {
  margin-top: 15px;
  margin-left: 0;
  padding: 15px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  border-left: 4px solid #ffa500;
  width: 100%;
}

.archive-detail-content {
  position: relative;
}

.archive-detail-title {
  font-size: 16px;
  font-weight: bold;
  color: #212529;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}

.archive-detail-body {
  font-size: 14px;
  line-height: 1.6;
  color: #495057;
}

.archive-detail-body img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

.archive-detail-body table {
  width: 80%;
  border-collapse: collapse;
  margin: 5px auto;
  table-layout: auto;
  min-width: 80%;
  font-size: 10px;
}

.archive-detail-body {
  overflow-x: auto;
}

.archive-detail-body table th,
.archive-detail-body table td {
  padding: 2px 4px;
  border: 1px solid #dee2e6;
  text-align: left;
  font-size: 10px;
}

.archive-detail-body table th {
  background: #f8f9fa;
  font-weight: bold;
}

.archive-detail-body .note {
  margin-top: 20px;
  padding: 15px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  font-size: 13px;
  color: #856404;
}

.archive-detail-body .note ul {
  margin: 10px 0 0 20px;
}

.archive-detail-body .note li {
  margin-bottom: 5px;
}

.archive-note {
  margin-top: 20px;
  padding: 10px 15px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  font-size: 12px;
  color: #856404;
}

/* Loading indicator */
.loading {
  text-align: center;
  padding: 20px;
  color: #6c757d;
}

.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #dee2e6;
  border-top: 2px solid #ffa500;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

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

/* Error display */
.error {
  padding: 15px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  color: #721c24;
  font-size: 14px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .archive-title {
    font-size: 24px;
  }
  
  .year-toggle {
    padding: 12px 15px;
    font-size: 16px;
  }
  
  .year-content {
    padding: 15px;
  }
  
  .archive-item-link {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .archive-detail-area {
    margin-left: 10px;
    padding: 12px;
  }
}
