/*
Theme Name: TechYamada Blog NOAS Style v2
Theme URI: https://tecymd.com/
Author: TechYamada
Description: Two-column blog theme matching the TechYamada corporate site header/footer, NOAS-style layout. Fixed sidebar always visible.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: techyamada-blog-noas-style-v2
*/

body {
  font-family: 'Zen Kaku Gothic New', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ====== Blog Layout ====== */
.blog-main-wrapper {
  max-width: 1100px;
  margin: 120px auto 80px;
  padding: 0 20px;
}

.blog-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* main content */
.blog-main-content {
  flex: 1 1 70%;
}

/* sidebar */
.blog-sidebar {
  flex: 0 0 260px;
}

/* post list / single common */
.blog-post {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 24px 24px 32px;
  margin-bottom: 32px;
}

.blog-post .post-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.blog-post .post-title a {
  text-decoration: none;
  color: #111827;
}

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

.blog-post .post-meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 16px;
}

.blog-post .post-excerpt {
  font-size: 14px;
  line-height: 1.9;
  color: #374151;
}

.blog-post .post-excerpt p {
  margin-bottom: 1em;
}

.blog-post .read-more {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 9999px;
  border: 1px solid #2563eb;
  color: #2563eb;
  text-decoration: none;
}

.blog-post .read-more:hover {
  background: #2563eb;
  color: #ffffff;
}

/* single content */
.single-content {
  font-size: 15px;
  line-height: 1.9;
  color: #111827;
}

.single-content img {
  max-width: 100%;
  height: auto;
}

/* sidebar widgets (固定出力用) */
.blog-sidebar .widget {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 16px 18px 20px;
  margin-bottom: 20px;
  font-size: 13px;
}

.blog-sidebar .widget-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
  border-left: 4px solid #2563eb;
  padding-left: 8px;
}

.blog-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-sidebar li {
  padding: 4px 0;
}

.blog-sidebar li a {
  color: #111827;
  text-decoration: none;
  font-size: 13px;
}

.blog-sidebar li a:hover {
  text-decoration: underline;
}

/* pagination */
.blog-pagination {
  text-align: center;
  margin-top: 24px;
}

.blog-pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid #d1d5db;
  color: #374151;
}

.blog-pagination .current {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* responsive */
@media (max-width: 900px) {
  .blog-main-wrapper {
    margin-top: 100px;
  }
  .blog-layout {
    flex-direction: column;
  }
  .blog-sidebar {
    flex: 1 1 auto;
  }
}
