/* ======================================
   🎨 sidebar.css ver.1.0 2025.07.20
   サイドバー・レイアウト共通
   ====================================== */

/* サイドバー全体の中央揃え */
.sidebar-inner {
  text-align: center;
}

/* 検索フォームの中央揃え */
.sidebar-search form {
  display: inline-block;
  position: relative;
  text-align: left; /* ボタンを入力欄の右下に揃えるため */
}

/* 入力欄 */
.sidebar-search input[type="text"],
.sidebar-search input[type="search"] {
  padding: 8px;
  width: 200px;
  box-sizing: border-box;
}

/* 検索ボタンを右下に配置 */
.sidebar-search button,
.sidebar-search input[type="submit"] {
  position: absolute;
  bottom: 4px;
  right: 4px;
  padding: 5px 10px;
  background-color: #854739; /* 紅茶色に調整 */
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* SNSアイコンの中央揃えと整列 */
.sns-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.sns-links img {
  width: 24px;
  height: 24px;
}

/* はじめましての方への装飾 */
.welcome-link a {
  font-size: 1.2rem;  /* お好みで 1.4rem くらいまで試せます */
  font-weight: bold;  /* より目立たせたい場合 */
  color: #854739;      /* 紅茶色で統一感UP */
  text-decoration: none;
}

.welcome-link a:hover {
  text-decoration: underline;
}
 /* 矢印を紅茶系の濃い色で統一感UP */
.welcome-link a::before {
  content: "▶ ";
  color: #b55a40; /* 紅茶系の濃い色で統一感UP */
  margin-right: 0.2em;
}

/* タグクラウドの下切れを予防 */
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  max-width: 100%;
  padding: 0.5em 0;

  /* ← ここを追加！ */
  overflow: visible;
}
/*タグページのサイドバー幅 */
body.tax-dictionary_tag .site-main-content {
  width: 60% !important;
  padding-right: 2rem !important;
}

body.tax-dictionary_tag .site-sidebar {
  width: 40% !important;
  min-width: 260px !important;
  padding-left: 1.5rem !important;
  border-left: 2px solid #cbe5c5 !important;
}

 /* モバイル対応 */
@media screen and (max-width: 768px) {
  .site-main-content,
  .site-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem !important;
    border-left: none !important;
  }

  .site-main {
    flex-direction: column !important;
    display: flex;
  }
}