body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

header {
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

header h1 {
  margin: 0 0 10px 0;
}

header h1 a {
  color: #333;
  text-decoration: none;
}

header h1 a:hover {
  text-decoration: underline;
}

header p {
  margin: 0;
  color: #666;
}

/* 検索ボックス */
.search-box {
  margin-top: 20px;
}

.search-box form {
  display: flex;
  gap: 10px;
  max-width: 400px;
}

.search-box input[type="text"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.search-box input[type="text"]:focus {
  outline: none;
  border-color: #0073bb;
}

.search-box button {
  padding: 8px 20px;
  background-color: #0073bb;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.search-box button:hover {
  background-color: #005a8f;
}

main {
  min-height: 400px;
}

article header {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
}

article header h1 {
  margin-bottom: 10px;
}

article header time {
  color: #666;
  font-size: 0.9em;
}

article .content {
  margin-bottom: 40px;
}

article nav {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.post-list h2 {
  margin: 0 0 5px 0;
  font-size: 1.3em;
}

.post-list a {
  color: #333;
  text-decoration: none;
}

.post-list a:hover {
  text-decoration: underline;
}

.post-list time {
  color: #666;
  font-size: 0.9em;
}

/* Amazon書籍リンクのスタイル */
.amazon-widget {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  background-color: #fafafa;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.amazon-image {
  flex-shrink: 0;
}

.amazon-image img {
  max-width: 120px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.amazon-content {
  flex: 1;
}

.amazon-title {
  margin: 0 0 10px 0;
  font-size: 1.1em;
  font-weight: bold;
}

.amazon-title a {
  color: #0073bb;
  text-decoration: none;
}

.amazon-title a:hover {
  text-decoration: underline;
}

.amazon-author {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 0.9em;
}

.amazon-description {
  margin: 0 0 15px 0;
  color: #555;
  font-size: 0.9em;
  line-height: 1.4;
}

.amazon-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.amazon-link,
.amazon-affiliate-link {
  background-color: #ff9900;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  display: inline-block;
}

.amazon-link:hover,
.amazon-affiliate-link:hover {
  background-color: #e88900;
  text-decoration: none;
}

.amazon-affiliate-link {
  background-color: #232f3e;
}

.amazon-affiliate-link:hover {
  background-color: #1a252f;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
  .amazon-widget {
    flex-direction: column;
    text-align: center;
  }
  
  .amazon-image {
    align-self: center;
  }
  
  .search-box form {
    flex-direction: column;
    max-width: 100%;
  }
  
  .search-box button {
    width: 100%;
  }
}

/* タグナビゲーション */
.tag-navigation {
  margin-bottom: 40px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.tag-navigation h2 {
  margin: 0 0 15px 0;
  font-size: 1.2em;
  color: #495057;
}

.tag-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-link {
  background-color: #6c757d;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background-color 0.2s;
}

.tag-link:hover {
  background-color: #5a6268;
  text-decoration: none;
}

/* タグページ */
.tag-page h1 {
  color: #495057;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.post-preview {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.post-preview h2 {
  margin: 0 0 10px 0;
  font-size: 1.3em;
}

.post-preview h2 a {
  color: #212529;
  text-decoration: none;
}

.post-preview h2 a:hover {
  text-decoration: underline;
}

.post-meta {
  color: #6c757d;
  font-size: 0.9em;
  margin: 0 0 10px 0;
}

.post-excerpt {
  color: #495057;
  line-height: 1.6;
}

.posts-count {
  margin: 30px 0;
  padding: 15px;
  background-color: #e9ecef;
  border-radius: 4px;
  color: #495057;
  text-align: center;
}

.tag-nav {
  margin-top: 40px;
  text-align: center;
}

.tag-nav a {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.9em;
}

.tag-nav a:hover {
  text-decoration: underline;
}

footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: center;
  color: #666;
  font-size: 0.9em;
}