/*
Theme Name: MyBlog
Theme URI: https://example.com/myblog
Author: MyBlog Team
Author URI: https://example.com
Description: シンプルで使いやすいブログ・お知らせ用WordPressテーマ。レスポンシブ対応。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myblog
Tags: blog, custom-menu, featured-images, translation-ready
*/

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  color: #333;
  background: #f8f9fa;
  line-height: 1.8;
}

a { color: #4a90d9; text-decoration: none; transition: color 0.2s; }
a:hover { color: #357abd; }
img { max-width: 100%; height: auto; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 3px solid #4a90d9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 0.05em;
}
.site-title a { color: inherit; text-decoration: none; }
.site-title span { color: #4a90d9; }

/* Navigation */
.main-navigation a {
  margin-left: 28px;
  color: #555;
  font-size: 0.95rem;
  font-weight: 500;
}
.main-navigation a:hover { color: #4a90d9; }
.main-navigation ul { list-style: none; display: flex; }
.main-navigation li { display: inline-block; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
  color: #fff;
  padding: 60px 24px;
  text-align: center;
}
.hero h1 { font-size: 2rem; margin-bottom: 12px; font-weight: 700; }
.hero p { font-size: 1.05rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* Main Layout */
.site-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

/* Post Cards */
.posts-list { display: flex; flex-direction: column; gap: 28px; }

.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.post-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.post-thumbnail-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e8f0fe, #d4e4f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.post-body { padding: 24px; }

.post-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: #888;
}
.post-category {
  background: #e8f0fe;
  color: #4a90d9;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.78rem;
}

.post-body h2 { font-size: 1.2rem; margin-bottom: 10px; color: #2c3e50; }
.post-body h2 a { color: inherit; }
.post-body h2 a:hover { color: #4a90d9; }

.post-excerpt { color: #666; font-size: 0.92rem; margin-bottom: 14px; }

.read-more {
  display: inline-block;
  color: #4a90d9;
  font-size: 0.88rem;
  font-weight: 600;
}
.read-more:hover { text-decoration: underline; }

/* Single Post */
.single-post-content {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.single-post-content h1 { font-size: 1.6rem; color: #2c3e50; margin-bottom: 16px; }
.single-post-content .entry-content { font-size: 0.95rem; line-height: 2; }
.single-post-content .entry-content p { margin-bottom: 1.5em; }

/* Sidebar & Widgets */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.widget {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.widget h3, .widget-title {
  font-size: 1rem;
  color: #2c3e50;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4a90d9;
}
.widget ul { list-style: none; }
.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: #555; }
.widget ul li a:hover { color: #4a90d9; }

/* Search */
.search-form {
  display: flex;
  gap: 0;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px 0 0 8px;
  font-size: 0.9rem;
  outline: none;
}
.search-form input[type="search"]:focus { border-color: #4a90d9; }
.search-form button, .search-form input[type="submit"] {
  background: #4a90d9;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Tag Cloud */
.tagcloud a, .tag {
  display: inline-block;
  background: #f0f4f8;
  color: #4a90d9;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem !important;
  margin: 3px;
  transition: background 0.2s;
}
.tagcloud a:hover, .tag:hover { background: #4a90d9; color: #fff; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.pagination a {
  background: #fff;
  color: #555;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.pagination a:hover { background: #4a90d9; color: #fff; }
.pagination .current { background: #4a90d9; color: #fff; }

/* Footer */
.site-footer {
  background: #2c3e50;
  color: #aab;
  padding: 40px 24px;
  margin-top: 60px;
  text-align: center;
}
.site-footer a { color: #7eb8e8; }
.site-footer p { font-size: 0.85rem; }

/* Responsive */
@media (max-width: 768px) {
  .site-content { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 12px; }
  .main-navigation a { margin-left: 16px; }
  .hero h1 { font-size: 1.5rem; }
  .single-post-content { padding: 24px; }
}
