header {
  background-color: #fefcf5;
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
}

/* ==================== ヘッダー ==================== */
.header-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 2.2em;
  font-weight: bold;
  color: #6b8e23;
  margin: 0;
}

.site-title-area {
  display: flex;
  flex-direction: column;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-subtitle {
  font-size: 0.9em;
  color: #6b8e23;
  margin-top: 5px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.main-nav a {
  text-decoration: none;
  color: #6b8e23;
  font-weight: bold;
}

.main-nav a:hover {
  color: #a3c293;
}

.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  gap: 20px;
}

/* ==================== サイドバー ==================== */
.content {
  flex: 4;
}

.sidebar {
  flex: 1.5;
  background-color: #fefcf5;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* ==================== プロフィールカード ==================== */
.profile-card {
  background-color: #fefcf5;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.profile-card h3 {
  font-size: 1.2em;
  color: #6b8e23;
  margin-bottom: 15px;
  font-family: 'Zen Maru Gothic', sans-serif;
}

.profile-card img {
  width: 120px;
  height: 120px;
  margin-bottom: 15px;
  object-fit: cover;
  border: none;
  border-radius: 10px;
}

.profile-card p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1.4em;
}

/* ==================== プロフィールリンク ==================== */
.profile-caption {
  font-size: 0.9em;
  font-weight: bold;
  color: #888;
  margin-top: 8px;
}

.profile-links {
  margin-top: 12px;
  text-align: center;
}

.profile-links a {
  color: #6b8e23;
  font-size: 1em;
  margin: 0 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.profile-links a:hover {
  color: #a3c293;
}

/* ==================== 記事カード ==================== */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: start;
  grid-auto-rows: 1fr;
}


/* 記事カード */
.article-card {
  border: 1px solid #c3e6d2;   /* 薄い緑の枠線 */
  border-radius: 5px;
  overflow: hidden;
  padding: 12px;
  box-sizing: border-box;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  width: auto;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.article-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}



.article-card-content {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-card-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: #333;
}

.article-card-tags {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 6px;
}

.article-card-tags .tag {
  display: inline-block;
  background-color: #d9e8d4;
  color: #4a7d38;
  padding: 2px 8px;
  font-size: 0.8em;
  border-radius: 12px;
  margin-right: 4px;
}

/* ==================== 記事リンク先 ==================== */

.post-content {
  background-color: #fefcf5;
  border: 1px solid #e0e0d8;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  line-height: 1.8;
  font-size: 1em;
  color: #333;
}

blockquote {
  background-color: #f2f2f2; /* 薄いグレー */
  padding: 16px 20px;
  border-left: 4px solid #ccc;
  margin: 20px 0;
  font-style: italic;
  border-radius: 6px;
}

.post-h1 {
  font-size: 1.8em;
  color: #4a7d38; /* より濃い緑 */
  text-align: center;
  margin-bottom: 25px;
  font-family: 'Zen Maru Gothic', sans-serif;
  border-bottom: 2px solid #e0e0d8;
  padding-bottom: 12px;
  font-weight: bold;
}

.post-title {
  font-size: 1.5em; /* 少し小さめに */
  color: #6b8e23;
  text-align: center;
  margin-bottom: 20px;
  font-family: 'Zen Maru Gothic', sans-serif;
  border-bottom: 1px solid #e0e0d8;
  padding-bottom: 8px;
}

.post-image {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 30px auto;
  border-radius: 5px;
}

.post-content h3 {
  margin-top: 35px;
  margin-bottom: 15px;
  color: #444;
  border-left: 4px solid #a3c293;
  padding-left: 10px;
  font-size: 1.2em;
}

.post-content p,
.post-content ul {
  margin-bottom: 20px;
}

.post-content ul {
  padding-left: 20px;
  list-style: disc;
}

hr {
  border: none;
  border-top: 1px solid #6b8e23;  /* 明るい緑系 */
  margin: 30px auto;
  width: 90%;
}


/* ==================== CTAボタン ==================== */
.cta-button {
  display: inline-block;
  background-color: #6b8e23;
  color: #fff;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  margin-top: 30px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #a3c293;
}

/* ==================== カテゴリリスト ==================== */
.category-list {
  margin-top: 20px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-sizing: border-box;
}

.category-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
}

.category-list li {
  margin: 0;
  margin-bottom: 8px;
}


.category-list a {
  display: inline-block;
  text-align: left; 
  background-color: #d9e8d4;
  color: #4a7d38;
  padding: 8px 12px;
  font-size: 0.9em;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.category-list a:hover {
  background-color: #c3e6d2;
  color: #3a6d28;
}

.category-list h3 {
  margin-top: 0;
  font-size: 1.1em;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
}

/* ==================== 人気記事 ==================== */
.popular-posts {
  margin-top: 20px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.popular-posts h3 {
  margin-top: 0;
  font-size: 1.1em;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
}

.popular-posts ul {
  list-style: none;
  padding: 0;
}

.article-image {
  display: block;
  margin: 1.5em auto;
  width: 100%;
  max-width: 700px;
  height: 400px;
  object-fit: cover;
  border-radius: 5px;
}

/* ==================== 人気記事リスト ==================== */
/* 人気記事リストの写真を左寄せ、文字を中央に揃える横並びデザイン */
.popular-posts li {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  margin-bottom: 12px;
  padding-left: 16px;
  column-gap: 24px; 
}

.popular-posts img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  margin-right: 10px;
  margin-bottom: 0;
}

.popular-posts a {
  display: flex;
  align-items: center;
  color: #333;
  text-decoration: none;
  line-height: 1.2;
}

.article-card-date {
  font-size: 0.85em;
  color: #888;
  margin-left: auto;
}

.breadcrumb {
  font-size: 0.9em;
  margin-bottom: 0.5em;
  color: #888;
  background-color: #fefcf5;
  padding: 8px 12px;
  border-radius: 6px;
}

.breadcrumb ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.breadcrumb li::after {
  content: ">";
  margin: 0 6px;
  color: #bbb;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  text-decoration: none;
  color: #6b8e23;
  font-weight: bold;
}

.breadcrumb a:hover {
  color: #a3c293;
}

.breadcrumb::after {
  content: "";
  display: block;
  border-bottom: 1px solid #ddd;
  margin-top: 12px;
}

article img {
  display: block;
  margin: 1em auto;
  border-radius: 8px;
  width: 100%;
  max-width: 40em;
  height: auto;
}

/* ==================== スマホ対応 ==================== */
@media screen and (max-width: 768px) {
  .container {
    display: block !important;
    flex-direction: initial !important;
  }

  .content,
  .sidebar {
    width: 100% !important; 
    flex: none !important;
    order: unset !important;
  }

  .sidebar {
    margin-top: 30px !important;
    order: 2 !important;
  }

  .content {
    order: 1 !important;
  }

  .article-list {
    display: block !important; 
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .article-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box;
  }

  .main-nav ul {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 0 !important;
}

.main-nav li {
  flex: 1 1 calc(50% - 10px) !important;
  max-width: calc(50% - 10px) !important;
  box-sizing: border-box !important;
}

.main-nav a {
  display: block !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  font-size: min(3.8vw, 0.9em) !important;
  padding: 10px 4px !important;
  border: 1px solid #ddd !important;
  border-radius: 5px !important;
  background-color: #fefcf5 !important;
  text-align: center !important;
}

  .site-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: clamp(1.2em, 6vw, 1.6em) !important;
    font-weight: bold !important;
    text-align: center !important;
  }

  .site-subtitle {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 2.8vw !important;
    text-align: center !important;
    padding-left: 1.5em !important;
  }

  .profile-card,
  .category-list,
  .popular-posts {
    padding: 12px !important;
    margin: 20px auto !important;
    width: calc(100% - 40px) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .sidebar {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

  .category-list ul {
    display: block !important;
    padding: 0 !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .category-list li {
    display: block !important;
    margin: 8px 0 !important;
  }

  .category-list a {
    display: inline-block !important;
    text-align: center !important;
    margin: 0 auto !important;
    width: auto !important;
    background-color: #d9e8d4 !important;
    color: #4a7d38 !important;
    padding: 2px 8px !important;
    font-size: 0.8em !important;
    border-radius: 12px !important;
  }



  


}

/* ==================== SNSシェアボタン ==================== */
.sns-share {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2px;
  margin-top: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  font-size: 0.9em;
}

.sns-share p {
  margin: 0;
  line-height: 1;
  padding-right: 8px;
  display: flex;
  align-items: center;
}

.sns-share a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.85em;
  font-weight: bold;
  color: white;
  transition: background-color 0.3s ease;
}

.sns-share a i {
  font-size: 1em;
}

/* X (Twitter) */
.sns-share .twitter {
  background-color: #1da1f2;
}
.sns-share .twitter:hover {
  background-color: #0d95e8;
}

/* Facebook */
.sns-share .facebook {
  background-color: #3b5998;
}
.sns-share .facebook:hover {
  background-color: #2d4373;
}

/* LINE */
.sns-share .line {
  background-color: #00c300;
}
.sns-share .line:hover {
  background-color: #00a900;
}

.site-footer {
  margin-top: 2em;
  padding: 1em 0;
  border-top: 1px solid #e0e0e0;
  font-size: 0.75em;
  text-align: center;
  color: #999;
  display: flex;
  justify-content: center;
  gap: 1.5em;
  flex-wrap: wrap;
}

.site-footer a {
  text-decoration: none;
  color: #666;
  transition: color 0.2s;
}

.site-footer a:hover {
  text-decoration: underline;
  color: #444;
}

.page-background {
  background-color: #fdfdf7;
  padding: 2em;
}
.category-header-block {
  background-color: #fefcf5;
  text-align: center;
  padding: 12px 20px;
  margin: 6px auto;
  border-radius: 10px;
  max-width: 1000px;
  box-sizing: border-box;
  border: 1px solid #c3e6d2;
}

.category-header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.category-header-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 2em;
  color: #444;
  margin-bottom: 0.5em;
}

.category-header-subtitle {
  font-size: 1.1em;
  font-weight: bold;
  color: #6b8e23;
  margin-bottom: 0.5em;
}

.category-header-block p {
  font-size: 1em;
  color: #555;
  line-height: 1.7;
}

body {
  font-family: 'Zen Maru Gothic', sans-serif;
  background-color: #fffdf8;
  color: #333;
  margin: 0;
  padding: 0;
}
/* ==================== 長いURLの折り返し対策 ==================== */
.post-content a {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
}

.load-more-container {
  background-color: #fefcf5;
  padding: 12px 20px;
  margin: 30px auto;
  border-radius: 10px;
  max-width: 1000px;
  box-sizing: border-box;
  border: 1px solid #c3e6d2;
  display: flex;
  justify-content: center;
}

#loadMore {
  padding: 10px 24px;
  font-size: 16px;
  color: #4a4a4a;
  background-color: #fff;
  border: 2px solid #a0c3a8; /* 緑系でMAYA風 */
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#loadMore:hover {
  background-color: #a0c3a8;
  color: #fff;
}

.load-more-container.grid-insert {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  grid-column: span 1;
}