/* マーケブログUI改善(2026/9): お役立ち資料・関連記事セクション（HTML/表示ロジックは iridge-marketing-blog-ui プラグイン側） */

.marketing-blog-ui.pc-only {
  display: block;
}
.marketing-blog-ui.sp-only {
  display: none;
}
@media (max-width: 767px) {
  .marketing-blog-ui.pc-only {
    display: none;
  }
  .marketing-blog-ui.sp-only {
    display: block;
  }
}

/* ========================================
   TAG SEARCH（タグ一覧・開閉）
======================================== */

.blog-category .marketing-blog.wrapper {
  justify-content: inherit;
}
.blog-category .marketing-blog.wrapper .blog-list {
  margin-right: 28px;
}
#iridge-tag-list {
  margin: 0 0 2.5em;
}

/* ヘッダー行（TAG SEARCH. + 破線 + 開閉ボタン） */
#iridge-tag-list .tag-search-header {
  position: relative;
  display: flex;
  gap: 1em;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

#iridge-tag-list .tag-search-title {
  display: inline-block;
  margin: 0;
  white-space: nowrap;
  text-align: left;
  font-size: 18px;
  font-family: inherit;
  color: #5b81b5;
}

#iridge-tag-list .tag-search-line {
  flex: 1;
  height: 1px;
  border-bottom: 1px dashed #d5d9e0;
}

#iridge-tag-list .tag-search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
}

#iridge-tag-list .tag-search-toggle:hover {
  color: #5b81b5;
}

#iridge-tag-list .tag-search-toggle.is-hidden {
  display: none;
}

/* 丸枠の ＋ / ー アイコン */
#iridge-tag-list .tag-search-toggle-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 1px solid #333;
  border-radius: 50%;
}

#iridge-tag-list .tag-search-toggle-icon::before,
#iridge-tag-list .tag-search-toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background-color: #333;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#iridge-tag-list .tag-search-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* 開いた状態（ー に変化） */
#iridge-tag-list.is-open .tag-search-toggle-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

#iridge-tag-list .tag-search-toggle:hover {
  color: #5b81b5;
}
#iridge-tag-list .tag-search-toggle:hover .tag-search-toggle-icon {
  border-color: #5b81b5;
}
#iridge-tag-list .tag-search-toggle:hover .tag-search-toggle-icon:before,#iridge-tag-list .tag-search-toggle:hover .tag-search-toggle-icon:after {
  background-color: #5b81b5;

}

/* タグ一覧リスト */
#iridge-tag-list .btn_area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  transition: height 0.35s ease;
}

#iridge-tag-list .tab_btn a {
  display: inline-block;
  padding: 5px 10px;
  background-color: #f0f2f5;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #568dc1;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#iridge-tag-list .tab_btn a:hover {
  background-color: #e2e7f0;
}

/* PC初期表示：11個目以降を非表示（最大10個表示） */
#iridge-tag-list:not(.is-open) .tab_btn:nth-child(n + 11) {
  display: none;
}

/* 展開時に追加表示されるタグをふわっとフェードイン */
#iridge-tag-list.is-open .tab_btn:nth-child(n + 11) {
  animation: tagFadeIn 0.35s ease forwards;
}

@media (max-width: 767px) {

  .blog-category .marketing-blog.wrapper .blog-list {
    margin-right: 0;
  }
  #iridge-tag-list {
    padding: 0;
    margin: .2em 0 1.8em;
  }

  #iridge-tag-list .tag-search-header {
    gap: 5px;
    margin-bottom: 0.8em;
  }

  #iridge-tag-list .tab_btn a {
    padding: 6px 12px;
  }

  /* SP初期表示：9個目以降を非表示（最大8個表示） */
  #iridge-tag-list:not(.is-open) .tab_btn:nth-child(n + 9) {
    display: none;
  }
  #iridge-tag-list.is-open .tab_btn:nth-child(n + 9) {
    animation: tagFadeIn 0.35s ease forwards;
  }
  /* 丸枠の ＋ / ー アイコン */
  #iridge-tag-list .tag-search-toggle-icon {
    width: 18px;
    height: 18px;
  }
  #iridge-tag-list .tag-search-toggle-icon::before,
  #iridge-tag-list .tag-search-toggle-icon::after {
    width: 8px;
  }
}

/* ========================================
   記事一覧,記事ページ下部タイトル部分
======================================== */
.blog-category .marketing-list-header,.blog-detail .marketing-list-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1em;
  padding-bottom: 10px;
  margin-bottom: 1em;
}
.blog-category .marketing-list-header:before,.blog-detail .marketing-list-header:before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: -webkit-linear-gradient(right, #fa7c05, #1d53df);
  background: -o-linear-gradient(left, #fa7c05, #1d53df);
  background: -moz-linear-gradient(left, #fa7c05, #1d53df);
  background: linear-gradient(to left, #fa7c05, #1d53df);
  position: absolute;
  left: 0;
  bottom: 0
}
.blog-category .marketing-list-header .marketing-list-tit,.blog-detail .marketing-list-header .marketing-list-tit {
  font-size: 20px;
  margin-bottom: 0;
}

@media (max-width: 767px) {

  .blog-category .marketing-list-header,.blog-detail .marketing-list-header {
    margin-bottom: 1.8em;
  }
  .blog-category .marketing-list-header .marketing-list-tit {
    font-size: 18px;
    margin-bottom: 0;
  }
  .blog-detail .marketing-list-header:before {
    height: 2px;
  }
  .blog-detail #iridge-related-materials .marketing-list-header .marketing-list-tit,
  .blog-detail #iridge-related-articles .marketing-list-header .marketing-list-tit {
    font-size: 20px;
    margin-bottom: 0;
    padding: 0;
    border: 0;
  }

}

/* ========================================
 マーケブログUI改善(2026/11): 検索窓・検索結果ページ
======================================== */

.blog-search-area {
  margin-top: -0.8em;
  margin-bottom: 2em;
}
.blog-search-area form {
  display: flex;
  border: 2px solid #334d90;
  border-radius: 6px;
  overflow: hidden;
}
.blog-search-area input[type="search"] {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 6px 5px 6px 12px;
  border: none;
  background: #f0f0f0;
  font: inherit;
  font-family: "Work Sans", "游ゴシック", YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, Verdana, sans-serif;
}
.blog-search-area button {
  padding: 0 8px 0 10px;
  border: none;
  background-color: #334d90;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}
.blog-search-area button:hover {
  background-color: #334d90;
}
.ph2-blog-category .search-notice {
  margin: 20px 0;
}
@media (max-width: 767px) {
  .blog-search-area {
    margin-top: 0;
    margin-bottom: 2.5em;
  }
  .blog-search-area input[type="search"] {
    padding: 8px 12px;
  }
  .blog-search-area button {
    padding: 0 12px 0 14px;
  }
  .blog-search-area button .search-icon {
    width: 20px;
    height: auto;
  }
}
/* ========================================
  お役立ち資料,関連記事
======================================== */

#iridge-related-materials,
#iridge-related-articles {
  max-width: 1000px;
  margin: 40px auto 70px;
}
#iridge-related-materials ul.list.post__item,
#iridge-related-articles ul.list.post__item {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}
#iridge-related-materials ul.list.post__item > li.item,
#iridge-related-articles ul.list.post__item > li.item {
  position: relative;
  padding-bottom: 30px;
  box-sizing: border-box;
  list-style: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}
#iridge-related-materials ul.list.post__item > li.item {
  width: calc((100% - 45px) / 4) ;
}
#iridge-related-articles ul.list.post__item > li.item {
  width: calc((100% - 30px) / 3) ;
}

#iridge-related-materials ul.list.post__item > *:nth-child(n + 5),
#iridge-related-articles ul.list.post__item > *:nth-child(n + 4) {
  display: none;
}

#iridge-related-materials .item a,
#iridge-related-articles .item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

#iridge-related-materials .thumbnail img {
  width: 100%;
  height: 135px;
  display: block;
  object-fit: cover;
  object-position: top;
}
#iridge-related-articles .thumbnail img {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
  object-position: top;
}

#iridge-related-materials .postttl,
#iridge-related-articles .postttl {
  padding: 1em 1em 1.5em 1em;
  font-size: 13px;
  font-weight: bold;
}

#iridge-related-materials .tag-list,
#iridge-related-articles .postdate {
  position: absolute;
  bottom: 15px;
  left: 15px;
  font-size: 11px;
}


@media (max-width: 767px) {
  #iridge-related-materials,
  #iridge-related-articles {
    margin: 4em auto 2.5em;
  }
  #iridge-related-materials ul.list.post__item,
  #iridge-related-articles ul.list.post__item {
    gap: 20px;
    width: 92%;
    margin: 0 auto;
    padding: 0;
  }
  #iridge-related-materials ul.list.post__item > li.item,
  #iridge-related-articles ul.list.post__item > li.item {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 0;
  }
  #iridge-related-materials .thumbnail img,
  #iridge-related-articles .thumbnail img {
    width: 100%;
    height: auto;
    max-height: 48vw;
  }

  #iridge-related-materials .postttl,
  #iridge-related-articles .postttl {
    padding: 1em 1em 1.2em 1em;
    font-size: 18px;
    font-weight: bold;
  }

  #iridge-related-materials .tag-list,
  #iridge-related-articles .postdate {
    position: inherit;
    font-size: 14px;
    padding: 0 1.3em 1.3em;
  }
}

.blog-list-content {
  display: flex;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .ph2-blog-category .keyv {
    padding-top: 10px;
  }
}