/*
Theme Name: MAYA Note Theme
Theme URI: https://maya-note.com
Author: MAYA
Author URI: https://maya-note.com
Description: MAYAが構築するWordPressテーマ。ふるさと納税・日用品・お金の工夫の3本柱。
Version: 1.0
*/
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 {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
}

/* ==================== サイドバー ==================== */
.content {
  width: 72%;
}

.sidebar {
  width: 22%;
  margin-left: 2%;
  padding: 20px;
}

/* ==================== プロフィールカード ==================== */
/* サイドバー全体 */
.sidebar {
  padding: 20px;
}

/* プロフィールカード */
.profile-box {
  background-color: #fdfcf9;
  border: 1px solid #cfe9d7;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  font-family: 'Zen Maru Gothic', sans-serif;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

/* タイトル（プロフィール） */
.profile-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #7d9e4d;
  letter-spacing: 0.15em;
}

/* 名前 */
.profile-name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 12px;
}

/* 画像 */
.profile-image {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
}

/* プロフィールテキスト */
.profile-text {
  font-size: 1rem;
  line-height: 1.9;
  color: #333;
  margin-bottom: 20px;
}

/* SNSリンクのコンテナ */
.profile-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

/* SNSリンクの見た目 */
.profile-link {
  font-size: 1.2rem;
  color: #7d9e4d;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-link i {
  font-size: 1.3rem;
}
/* ==================== 記事カード ==================== */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-content: center;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 20px;
}

.article-list-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}


/* 記事カード */
.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;
  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 {
  display: block;
  background: linear-gradient(90deg, #f3f8f4 0%, rgba(243, 248, 244, 0) 65%); /* うっすらハイライト */
  color: #2f5d2f;                       /* 深めのグリーンで可読性UP */
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 800;                      /* しっかり太字 */
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); /* 余裕のあるサイズ感 */
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 16px 24px 18px;              /* すっきり目の内側余白 */
  border: none;                          /* 枠線は排除してミニマルに */
  border-radius: 12px;                   /* やわらかさは残す */
  margin: 4px 0 26px;                    /* 上を詰めて下に少し抜けを作る */
  box-shadow: none;                      /* 影はなくしてフラットに */
  position: relative;                    /* 下線装飾の基準 */
}

.post-h1::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;                         /* タイトルのすぐ下に細線 */
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, rgba(163,194,147,0), #a3c293 40%, #a3c293 60%, rgba(163,194,147,0));
  border-radius: 2px;
}

@media screen and (max-width: 768px) {
  .post-h1 {
    font-size: clamp(1.6rem, 5.0vw, 2.0rem);
    padding: 14px 16px 16px;
    border-radius: 10px;
  }
  .post-h1::after {
    width: 120px;
    bottom: -9px;
  }
}

/* 本文内タイトルのみ（カードには適用しない） */
.post-content .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;
}

/* ---- Card title (cards only): fixed height (5 lines) & vertical centering ---- */
.article-card-content .post-title {
  margin: 6px 0 8px;               /* 上の余白を詰める */
  line-height: 1.35;
  display: grid;                   /* 縦方向中央寄せ */
  align-content: center;
  min-height: calc(1.35em * 5);    /* 5行分の高さ確保 */
  padding: 0;                      /* 本文用の余白・罫線を無効化 */
  border: 0;
  text-align: center;
  color: #6b8e23;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.5em;
  overflow: hidden;
}

/* タイトルテキストを5行でクランプ */
.article-card-content .post-title .post-title-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

/* スマホでは2行制限 */
@media screen and (max-width: 768px) {
  .article-card-content .post-title {
    min-height: calc(1.35em * 2);
  }
  .article-card-content .post-title .post-title-text {
    -webkit-line-clamp: 2;
  }
}

/* 記事カードの画像サイズを統一（横幅に合わせてトリミング） */
.article-card-content .post-image {
  width: 100%;
  height: 180px;           /* ここで縦の高さを統一 */
  object-fit: cover;       /* はみ出す分はトリミング */
  display: block;
  margin: 10px 0 12px;     /* カード内の余白を詰める */
  border-radius: 6px;
}

@media screen and (max-width: 768px) {
  .article-card-content .post-image {
    height: 150px;         /* モバイルは少し低く */
  }
}

/* ==================== 見出し（Gutenberg対応） ==================== */
/* H2 / H3：メイン見出し（WPの「見出し」ブロックの既定＝H2に対応） */
.post-content h2,
.post-content h3,
.post-content .wp-block-heading:not(h4):not(h5):not(h6) {
  position: relative;
  background-color: #fdfcf9;
  color: #4a7d38;
  font-size: 1.3em;
  font-weight: 700;
  padding: 12px 16px;
  border-left: 6px solid #a3c293;
  border-radius: 6px;
  margin: 40px 0 20px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
}

/* H4〜H6：サブ見出し */
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #5d7e2f;
  font-size: 1.15em;
  font-weight: 600;
  border-left: 4px solid #c3e6d2;
  padding-left: 10px;
  margin: 30px 0 15px;
  line-height: 1.6;
}

/* 見出し直前に薄い区切り線を自動挿入（H2〜H6） */
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.post-content .wp-block-heading {
  position: relative;
}

.post-content h2::before,
.post-content h3::before,
.post-content h4::before,
.post-content h5::before,
.post-content h6::before,
.post-content .wp-block-heading::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;              /* place the line above the heading box */
  height: 1px;
  background: #e6eedf;     /* thin pale line */
  border-radius: 1px;
  pointer-events: none;
}

/* 最初の見出しだけは余分な上線を抑える場合（必要なら有効化）
.post-content h2:first-of-type::before,
.post-content h3:first-of-type::before,
.post-content h4:first-of-type::before,
.post-content h5:first-of-type::before,
.post-content h6:first-of-type::before,
.post-content .wp-block-heading:first-of-type::before {
  display: none;
}
*/

.post-content h2 + p,
.post-content h3 + p,
.post-content h4 + p {
  margin-top: 10px;
}

.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;
  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;
}

/* 本文中の画像サイズを一括制御（WPエディタで挿入された画像） */
.post-content .wp-block-image img,
.post-content img {
  display: block;
  margin: 1.25em auto;             /* 上下の余白＆中央寄せ */
  border-radius: 8px;
  width: auto;                      /* 小さい画像を無理に拡大しない */
  max-width: min(100%, 500px);      /* 画面幅か600pxの小さい方に制限 */
  height: auto;
}

/* キャプション付き画像 */
.post-content .wp-caption {
  max-width: min(100%, 600px);
  margin: 1.25em auto;
}
.post-content .wp-caption img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0 auto;
}
.post-content .wp-caption-text {
  font-size: 0.9em;
  color: #666;
  text-align: center;
  margin-top: 0.4em;
}

/* アライン（左寄せ/右寄せ）対応：PCでは回り込み、モバイルでは中央寄せに戻す */
.post-content .alignleft {
  float: left;
  margin: 0.2em 1em 0.8em 0;
}
.post-content .alignright {
  float: right;
  margin: 0.2em 0 0.8em 1em;
}
.post-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  float: none;
}

.post-content .alignwide img {
  max-width: min(100%, 800px);
}
.post-content .alignfull img {
  max-width: 100%;
}

@media screen and (max-width: 768px) {
  .post-content .alignleft,
  .post-content .alignright {
    float: none;
    margin: 1em auto;
    text-align: center;
  }
}

/* Do not expand 1x1 tracking pixels (A8/Rakuten etc.) */
article img[width="1"][height="1"],
article img[src*="a8.net"],
article img[src*="//px.a8.net"],
article img[src$="/0.gif"] {
  display: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}


/* ==================== スマホ対応 ==================== */
@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;
  justify-content: center;
  gap: 1.5em;
  flex-wrap: wrap;
  clear: both;
  width: 100%;
}

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

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

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  list-style: none;
}

.page-background {
  background-color: #fdfdf7;
  padding: 2em;
}
.category-header-block {
  background-color: #fefcf5;
  text-align: center;
  padding: 0 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;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

.main-wrapper {
  overflow: visible;
}

.post-body {
  overflow: initial;
  max-height: none;
  white-space: normal;
}

.footer-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2em;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  list-style: none;
}

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

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

.article-single .post-body {
  max-height: none;
  overflow: visible;
  white-space: normal;
}

.site-title-with-image {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-profile-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* ==================== ウィジェット共通スタイル ==================== */
.widget {
  background-color: #fdfcf9;
  border: 1px solid #cfe9d7;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  font-family: 'Zen Maru Gothic', sans-serif;
}

.widget-title {
  font-size: 1.2rem;
  color: #6b8e23;
  margin-bottom: 12px;
  border-bottom: 1px solid #c3e6d2;
  padding-bottom: 4px;
}

/* カテゴリウィジェットのリスト */
.widget_categories ul,
.widget_recent_entries ul,
.widget_archive ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.widget_categories li,
.widget_recent_entries li,
.widget_archive li {
  margin-bottom: 8px;
  padding-left: 1em;
  position: relative;
}

.widget_categories li::before,
.widget_recent_entries li::before,
.widget_archive li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #7d9e4d;
}

.widget_categories a {
  background-color: #d9e8d4;
  color: #4a7d38;
  padding: 6px 10px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s;
}

.widget_categories a:hover {
  background-color: #c3e6d2;
}

.post-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10;
  overflow: hidden;
  position: relative;
  line-height: 1.7;
  max-height: calc(1.7em * 10);
}


/* Ensure 10-line clamp applies even when the_excerpt() outputs a <p> tag */
.post-excerpt,
.post-excerpt p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10;
  overflow: hidden;
  line-height: 1.7;
  max-height: calc(1.7em * 10);
  margin: 0;
}

/* 強制的に 10 行に統一（最優先で） */
.post-excerpt,
.post-excerpt p {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 10 !important;
  overflow: hidden !important;
  line-height: 1.7 !important;
  max-height: calc(1.7em * 10) !important;
  margin: 0 !important;
}

/* AddToAny ボタンの調整 */
.a2a_kit {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #e6eedf; /* 上部に薄い仕切り線 */
}

.a2a_button_twitter,
.a2a_button_line,
.a2a_button_facebook {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.a2a_button_twitter:hover,
.a2a_button_line:hover,
.a2a_button_facebook:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}