/* =================================================
   Sidebar その他 ウィジェット整形 – PC
   ================================================= */

/* サイドバー全体 */
.lc-sidebar {
  padding-left: 8px;
}

/* 各ウィジェット */
.lc-widget {
  margin-bottom: 56px;
}

/* タイトル（ブロックウィジェット対応） */
.lc-widget-title,
.lc-sidebar .wp-block-heading {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0 0 20px 0;
  color: #222;
}

/* 余計なラッパー余白をリセット */
.lc-sidebar .wp-block-group,
.lc-sidebar .wp-block-group__inner-container {
  margin: 0;
  padding: 0;
}

/* リスト共通 */
.lc-sidebar ul,
.lc-sidebar ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lc-sidebar li {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* リンク */
.lc-sidebar a {
  text-decoration: none;
  color: #333;
  transition: color .15s ease;
}

.lc-sidebar a:hover {
  color: var(--lc-accent-color);
}

/* 検索ブロック */
.lc-sidebar .wp-block-search__label {
  display: none; /* タイトルで十分 */
}

.lc-sidebar .wp-block-search__inside-wrapper {
  display: flex;
  gap: 8px;
}

.lc-sidebar .wp-block-search__input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 0.9rem;
}

.lc-sidebar .wp-block-search__button {
  padding: 8px 14px;
  font-size: 0.85rem;
  border: 1px solid rgba(0,0,0,0.2);
  background: #fff;
  cursor: pointer;
  transition: background .15s ease;
}

.lc-sidebar .wp-block-search__button:hover {
  background: rgba(0,0,0,0.05);
}

/* タグクラウド */
.lc-sidebar .wp-block-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lc-sidebar .wp-block-tag-cloud a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.8rem !important;
  font-weight: 300;
  text-decoration: none;
  color: #555;
  background: #fff;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.lc-sidebar .wp-block-tag-cloud a::before {
  content: "#";
}

.lc-sidebar .wp-block-tag-cloud a:hover {
  background: #f4f4f4;
  border-color: rgba(0, 0, 0, 0.08);
  color: #555;
}

/* 投稿タイトル制御 */
.lc-sidebar .wp-block-latest-posts__post-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Grid内で長い文字が列幅を押し広げるのを防ぐ */
.lc-layout.has-sidebar > .lc-content,
.lc-layout.has-sidebar > .lc-sidebar {
  min-width: 0;
}

/* 画像・メディアははみ出さない */
.lc-sidebar img,
.lc-sidebar video,
.lc-sidebar iframe {
  max-width: 100%;
  height: auto;
}

/* 見出しのサイズ暴走を抑える（h1～h6が来てもOK） */
.lc-sidebar h1,
.lc-sidebar h2,
.lc-sidebar h3,
.lc-sidebar h4,
.lc-sidebar h5,
.lc-sidebar h6 {
  font-size: 1rem;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

/* 段落の暴走を抑える */
.lc-sidebar p {
  margin: 0 0 14px 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* テーブルが来ても崩れない */
.lc-sidebar table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.lc-sidebar th,
.lc-sidebar td {
  padding: 6px 8px;
  border: 1px solid rgba(0,0,0,0.08);
  text-align: center;
}

/* ボタンブロック */
.lc-sidebar .wp-block-button__link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.85rem;
  text-decoration: none;
}

/* グローバル section 余白の打ち消し */
  .lc-sidebar .lc-widget {
    margin: 0;
  }

