/**
 * JUSTCMS Sumifru — residual visual overrides
 *
 * 親オプション / tokens.css で吸収できない見た目だけを書く。
 * main-style.scss の複製はしない。
 */

/* 1. トップスライダー */
.custom-slider {
  background: var(--base-bg-color6);
}

/* 2. カテゴリ・タグチップ */
.swiper-slide__txtspace-cat,
.entry-meta__cat-links .post-categories li a,
.entry-meta__category-links .post-categories li a,
.posts-navi__category,
.multi-type__output-tag a,
.multi-type__output-tag span,
.popularPost__tag {
  border: none;
  background: var(--sumifru-chip-bg);
  color: var(--sumifru-chip-color);
  filter: none;
}

.swiper-slide__txtspace-cat:hover,
.entry-meta__cat-links .post-categories li a:hover,
.entry-meta__category-links .post-categories li a:hover,
.posts-navi__links:hover .posts-navi__category,
.multi-type__output-tag a:hover,
.popularPost__tag:hover {
  background: var(--sumifru-chip-color);
  color: #fff;
  filter: none;
  opacity: 1;
}

.entry-meta__tag-links a,
.entry-meta__tag-links > a,
.box-list .entry-meta__tag-links a,
.box-card .entry-meta__tag-links a {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: none;
  border-radius: 6px;
  background: var(--sumifru-tag-bg);
  color: var(--sumifru-tag-color);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  filter: none;
  text-decoration: none;
}

@media (min-width: 992px) {
  .entry-meta__tag-links a,
  .entry-meta__tag-links > a,
  .box-list .entry-meta__tag-links a,
  .box-card .entry-meta__tag-links a {
    font-size: 12px;
  }
}

.entry-meta__tag-links a::before,
.box-list .entry-meta__tag-links a::before {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px 0 0;
  padding: 0;
  content: "";
  background-image: url("../img/icon_tagmark_01.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 12px 12px;
  color: var(--sumifru-tag-color);
  filter: none;
}

@media (min-width: 992px) {
  .entry-meta__tag-links a::before,
  .box-list .entry-meta__tag-links a::before {
    width: 16px;
    height: 18px;
    margin: 0 10px 0 0;
    background-size: 16px 18px;
  }
}

.entry-meta__tag-links a:hover,
.box-list .entry-meta__tag-links a:hover {
  background: var(--sumifru-tag-hover-bg);
  color: var(--sumifru-tag-color);
  filter: none;
  text-decoration: none;
}

.entry-meta__tag-links a:hover::before,
.box-list .entry-meta__tag-links a:hover::before {
  background-image: url("../img/icon_tagmark_02.svg");
  filter: none;
}

.swiper-slide__txtspace-link,
.swiper-slide__txtspace-link:hover {
  background: transparent;
}

.swiper-slide__txtspace-link:hover {
  color: var(--sumifru-chip-color);
  text-decoration: none;
}

/* 3. カードとプロフィール */
.box-list,
.box-list:hover {
  box-shadow: none;
}

.editor-profile,
.editor-intro {
  border: 2px solid var(--sumifru-profile-border);
  box-shadow: none;
}

.editor-profile__tit {
  background-image: url("../img/bg_editor-profile.svg");
}

/* 4. アクション色 */
.snsbtn a,
.snsbtn li a,
.editor-profile__snsbtn a,
.editor-intro__snsbtn a {
  color: var(--sumifru-action-color);
}

.snsbtn a:hover,
.snsbtn li a:hover,
.editor-profile__snsbtn a:hover,
.editor-intro__snsbtn a:hover {
  background-color: var(--sumifru-action-color);
  color: #fff;
}

.entry-outline__link,
.entry-content .entry-outline__link {
  color: var(--sumifru-action-color);
  text-decoration: none;
  border: none;
}

.entry-outline__link:hover,
.entry-content .entry-outline__link:hover {
  color: var(--sumifru-action-color);
  text-decoration: underline;
  border: none;
}

.multi-type__btn-link {
  border-color: var(--sumifru-action-color);
  background-color: #fff;
  color: var(--sumifru-action-color);
}

.multi-type__btn-link::after {
  background-image: url("../img/icon_arrow_04.svg");
}

.multi-type__btn-link:hover {
  background-color: var(--sumifru-action-color);
  border-color: var(--sumifru-action-color);
  color: #fff;
}

.multi-type__btn-link:hover::after {
  background-image: url("../img/icon_arrow_03.svg");
}

/* 5. ランキングアイコン（4位以降の非表示は親オプション） */
.popularPost__icons {
  left: -12px;
  top: -14px;
  width: 46px;
  height: 46px;
}

.popularPost__icons.icon-rank1,
.popularPost__icons.icon-rank2,
.popularPost__icons.icon-rank3 {
  width: 46px;
  height: 46px;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  background-size: 28px 28px, 46px 46px;
}

.popularPost__icons.icon-rank1 {
  background-image: url("../img/icon_rank_label_01.svg"), url("../img/ellipse_01.svg");
}

.popularPost__icons.icon-rank2 {
  background-image: url("../img/icon_rank_label_02.svg"), url("../img/ellipse_01.svg");
}

.popularPost__icons.icon-rank3 {
  background-image: url("../img/icon_rank_label_03.svg"), url("../img/ellipse_01.svg");
}

.pickup-rank .rank-icon {
  left: -12px;
  top: -14px;
  width: 71px;
  height: 71px;
}

.pickup-rank .rank-icon.icon-rank1,
.pickup-rank .rank-icon.icon-rank2,
.pickup-rank .rank-icon.icon-rank3 {
  width: 71px;
  height: 71px;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  background-size: 48px 38px, 71px 71px;
}

.pickup-rank .rank-icon.icon-rank1 {
  background-image: url("../img/icon_rank_label_01.svg"), url("../img/ellipse_01_white.svg");
}

.pickup-rank .rank-icon.icon-rank2 {
  background-image: url("../img/icon_rank_label_02.svg"), url("../img/ellipse_01_white.svg");
}

.pickup-rank .rank-icon.icon-rank3 {
  background-image: url("../img/icon_rank_label_03.svg"), url("../img/ellipse_01_white.svg");
}

/* 6. 補助表示 */
.header-area__blog .gnavi-list a:hover,
.header-area__website .gnavi-list a:hover {
  background-color: #fff;
  color: var(--sumifru-chip-color);
}

.header-area__website .gnavi-list a:hover::after {
  border-top-color: var(--sumifru-chip-color);
  border-right-color: var(--sumifru-chip-color);
}

.site-footer,
.site-footer__bottom {
  background-color: #fff;
}

.custom-footer {
  max-width: 315px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.custom-footer__container {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 20px;
  box-sizing: border-box;
  background-color: var(--sumifru-surface-bg);
  color: var(--sumifru-tag-color);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  text-align: left;
}

.custom-footer .container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.custom-footer__container a {
  color: var(--sumifru-tag-color);
}

.custom-footer__container::after {
  display: none;
}

@media (min-width: 992px) {
  .custom-footer {
    max-width: 1160px;
    padding: 0 20px;
  }

  .custom-footer__container {
    padding: 28px 20px 24px;
  }
}

.site-footer__navi {
  background-color: transparent;
}

.site-footer__copy,
.site-footer__copy a,
.site-footer__navi li a,
.site-footer__bottom .site-footer__copy,
.site-footer__bottom .site-footer__copy a,
.site-footer__bottom .site-footer__navi li a {
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  color: gray;
}

.site-footer__logo-img {
  display: block;
  width: auto;
  max-width: none;
  max-height: 40px;
  height: auto;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .site-footer__logo-img {
    max-height: 48px;
  }
}

/* 14. フッター3カラム（左：ナビ｜中央：ロゴ｜右：コピー） */
.site-footer__bottom {
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 315px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.site-footer__links,
.site-footer__logo,
.site-footer__copy-wrap {
  flex: 0 0 auto;
  width: auto;
}

.site-footer__links {
  order: 0;
}

.site-footer__logo {
  order: 1;
  width: 100%;
  text-align: center;
}

.site-footer__copy-wrap {
  order: 2;
  width: 100%;
  text-align: center;
}

.site-footer__navi,
.site-footer__bottom .site-footer__navi {
  margin: 0;
  padding: 0;
  background-color: transparent;
}

.site-footer__navi-container {
  max-width: none;
  margin: 0;
  padding: 0;
}

.site-footer__navi ul,
.site-footer__bottom .site-footer__navi ul {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.site-footer__navi li,
.site-footer__bottom .site-footer__navi li {
  width: auto;
  margin: 0;
  padding: 0;
}

.site-footer__bottom .site-footer__navi li + li {
  margin-left: 0;
}

.site-footer__bottom .site-footer__navi li + li::before {
  content: none;
}

.site-footer__copy {
  display: block;
  margin: 0;
  padding: 0;
  background-color: transparent;
  text-align: center;
}

@media (min-width: 992px) {
  .site-footer__bottom {
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    max-width: 1160px;
    padding: 30px 20px;
  }

  .site-footer__logo {
    width: auto;
  }

  .site-footer__copy-wrap {
    width: auto;
    text-align: right;
  }

  .site-footer__navi ul,
  .site-footer__bottom .site-footer__navi ul {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
  }

  .site-footer__bottom .site-footer__navi li + li {
    margin-left: 18px;
  }

  .site-footer__bottom .site-footer__navi li + li::before {
    content: " | ";
    margin-right: 9px;
    color: gray;
  }

  .site-footer__copy {
    text-align: right;
  }
}

/* 7. サーフェス背景（親 --base-bg-color3 は CTA 等でも使うため一括変更しない） */
.widget {
  background-color: var(--sumifru-surface-bg);
}

.entry-outline {
  background-color: var(--sumifru-surface-bg);
}

/* 8. 見出しアクセント線 */
.widget__title::before {
  width: 183px;
  background: var(--sumifru-accent-line);
}

.multi-type__header {
  border-bottom-color: var(--sumifru-accent-line);
}

.entry-content h2::before {
  background: var(--sumifru-accent-line);
}

/* 9. multi-type カード（prd は shadow / 角丸なし） */
.multi-type__output-item,
.multi-type__output-item:hover {
  box-shadow: none;
  border-radius: 0;
}

.multi-type__image,
.multi-type__image img {
  border-radius: 0;
}

/* 10. サイドバー widget 間余白 */
.widget-area .widget {
  margin-bottom: 30px;
}

/* 11. サイドバー カテゴリ／アーカイブリンク（初期は下線なし） */
.widget-catelist__item-link,
.widget_archive a,
.wp-block-archives a {
  text-decoration: none;
}

.widget-catelist__item-link:hover,
.widget_archive a:hover,
.wp-block-archives a:hover {
  text-decoration: underline;
}

/* 12. 一覧2列：タグなしカードはメタを下寄せしない */
@media (min-width: 992px) {
  .justcms-archive-two-column .box-list__details .entry-meta:not(:has(.entry-meta__tag-links a)) {
    margin-top: 0;
  }
}

/* 13. 関連記事：カテゴリをカード下端に揃える */
.pickup-related .multi-type__output-detail {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.pickup-related .multi-type__output-tag {
  margin-top: auto;
}
