/* ======================================
   🎨 tea-layout.css ver.1.1 2025.07.20
   トップページ・レイアウト共通（整理版）
   ====================================== */

/* トップロゴの配置と調整 */
.top-logo {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  box-sizing: border-box;
}

.logo-frame {
  width: 500px;
  padding: 8px;
  text-align: center;
  margin: 0 auto;
}

/* キャッチコピーのスタイル */
.catch-copy {
  text-align: center;
  font-size: 1.5em; /* サイズ調整 */
  font-weight: 600; /* 太字など */
  margin: 1.5em auto;
  max-width: 90%; /* はみ出し防止 */
}

.top-hero .catch-copy {
  text-align: center !important;
  font-size: 1.2em;
  margin-top: 1rem;
}

/* タイトル中央寄せ（明示的に使用） */
.center-title,
.center-title h2,
.front-content h3 {
  text-align: center;
  margin: 1em auto;
}

/* h1, h2 の中央寄せは解除してデフォルトに戻す */
.entry-content h1,
.entry-content h2 {
  text-align: inherit;
}

/* ボタンを中央に配置（Gutenbergボタン用） */
.wp-block-buttons-is-layout-flex {
  justify-content: center;
}

/* 「紅茶のことば一覧」ブロックを中央寄せ */
.dictionary-buttons {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin: 1.5em auto;
}

.dictionary-btn {
  text-decoration: none;
  padding: 0.6em 1.2em;
  border-radius: 8px;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.dictionary-btn:hover {
  background-color: #e0e0e0;
}

/* セクション全体の中央寄せと幅調整 */
.front-content .max-w-xl {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* サイドバー落下防止・2カラム固定化 */
.content-area.with-sidebar {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

#primary.site-main {
  flex: 0 1 auto;
  width: 70%;
  min-width: 300px;
}

#secondary.site-sidebar {
  flex: 0 1 auto;
  width: 30%;
  min-width: 200px;
}


/* ✅ タグページの横並び調整（*/
body.tax-dictionary_tag .content-wrapper {
  display: flex;
  gap: 2rem;
}

body.tax-dictionary_tag .site-main-content {
  flex: 0 0 60%;
  max-width: 60%;
  padding-right: 2rem;
}

body.tax-dictionary_tag .site-sidebar {
  flex: 0 0 40%;
  max-width: 40%;
  padding-left: 1.5rem;
  border-left: 2px solid #a4d6a4;
}

/* タグページの本文・サイドバーの横並びを完全に制御 */
body.tax-dictionary_tag .content-wrapper {
  display: flex;
  flex-wrap: nowrap; /* これで折り返さないように */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 2rem;
}

/* 本文：60% */
body.tax-dictionary_tag .site-main-content {
  flex: 0 0 66%;
  max-width: 66%;
  padding-right: 2rem;
}

/* サイドバー：40% */
body.tax-dictionary_tag .site-sidebar {
  flex: 0 0 34%;
  max-width: 34%;
  padding-left: 1.5rem;
  border-left: 2px solid #a4d6a4;
}

/*モバイル*/
@media screen and (max-width: 768px) {
  .site-main {
    display: flex;
    flex-direction: column;
  }

  .site-main-content,
  .site-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    border-left: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media screen and (max-width: 768px) {
  .content-area.with-sidebar {
    flex-direction: column !important;
  }

  .site-main,
  .site-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-left: none !important;
  }

  .site-sidebar {
    margin-top: 2rem;
  }
}

/* 🍂 各タグリンクを紅茶色に */
.term-post-list li a {
  color: #8B4513;
  text-decoration: none;
  font-weight: bold;
}

/* 🍂 見出しタイトルも紅茶色に */
.page-title {
  color: #6e350d !important;
}

/* 🍂 タグ一覧全体のスタイル */
.term-post-list {
  position: relative;
  padding-left: 1.5em;
  margin: 0;
  list-style: none;
  border-left: none !important; /* ← 明示的に打ち消す（棒が2本出るのを防ぐ） */
}

.term-post-list {
  position: relative;
  padding-left: 1.5em;
  list-style: none;
  margin: 0;
  border-left: none !important;
}

.term-post-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.3em;
  width: 2px;
  background-color: #8B4513;
}