@charset "utf-8";
/*
Theme Name: GENESIS child
Theme URI:https://tcd-theme.com/tcd103/
Description:WordPressテーマ「GENESIS」の子テーマ
Template:genesis_tcd103
Author:TCD
Author URI:https://tcd-theme.com/
Version:1.0
*/

/*
 * 制作実績サイドバー：デモ（.widget_categories）と同じ見た目
 * ※「未分類」を出さないため sidebar.php も必ずアップロードしてください
 */

/* 見出し：親 .widget_headline を継承、margin のみ調整 */
#side_col .widget_works_category_widget .widget_headline {
  margin-bottom: -1px;
}

/* リスト：デモと同じボーダー・白線 */
#side_col .widget_works_category_widget ul:first-of-type {
  position: relative;
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
}

#side_col .widget_works_category_widget ul:first-of-type ul {
  border: none;
}

#side_col .widget_works_category_widget ul:first-of-type:after {
  content: '';
  display: block;
  height: 1px;
  width: 100%;
  background: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
}

#side_col .widget_works_category_widget ul:first-of-type ul:after {
  display: none;
}

#side_col .widget_works_category_widget li {
  margin: 0;
  padding: 0;
  position: relative;
}

/* カテゴリーリンク：デモと同じ高さ・パディング・ホバー色 */
#side_col .widget_works_category_widget li a {
  display: block;
  background: #fff;
  color: #000;
  border: 1px solid #ddd;
  border-top: none;
  padding: 0 30px;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 60px;
  line-height: 60px;
  transition: color 0.2s ease;
}

#side_col .widget_works_category_widget li a:hover {
  color: var(--tcd-main-color);
}

#side_col .widget_works_category_widget li .title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  visibility: visible;
}

#side_col .widget_works_category_widget li li a {
  padding-left: calc(30px + 1em);
}

#side_col .widget_works_category_widget li li li a {
  padding-left: calc(30px + 2em);
}

#side_col .widget_works_category_widget li .post-count {
  background: #f2f2f2;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 100%;
  text-align: center;
  font-size: 12px;
  position: absolute;
  right: 20px;
  top: 10px;
  pointer-events: none;
}

/* スマホ：デモ（親 responsive.css .widget_categories）と同じ */
@media screen and (max-width: 800px) {
  #side_col .widget_works_category_widget .widget_headline {
    padding: 0 20px;
    height: 50px;
    line-height: 50px;
    font-size: 14px;
  }

  #side_col .widget_works_category_widget li a {
    padding: 0 20px;
    height: 50px;
    line-height: 50px;
    font-size: 14px;
  }

  #side_col .widget_works_category_widget li li a {
    padding-left: calc(20px + 1em);
  }

  #side_col .widget_works_category_widget li li li a {
    padding-left: calc(20px + 2em);
  }

  #side_col .widget_works_category_widget li .post-count {
    right: 12px;
    top: 8px;
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 11px;
  }
}