@charset "UTF-8";

/*--------------------------------------------------------------
# TOPICS float panel（トップページ右下・最新3件）
--------------------------------------------------------------*/
#topics-float {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 990;
  width: 330px;
  max-width: 100%;
  font-family: inherit;
  text-align: left;
  transition: width .3s ease;
}

/* 閉じているときはタブの幅だけに縮める */
#topics-float.tf-closed {
  width: 150px;
}

/* --- 開閉タブ --- */
#topics-float .tf-tab {
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 16px;
  border: none;
  border-radius: 4px 0 0 0;
  background: #091928;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, .18);
  transition: background .3s;
}

#topics-float .tf-tab:hover {
  background: #3b6394;
}

#topics-float .tf-tab:focus {
  outline: none;
}

#topics-float .tf-tab:focus-visible {
  outline: 2px solid #51d8af;
  outline-offset: -2px;
}

#topics-float .tf-tab-text {
  display: inline-block;
  vertical-align: middle;
}

/* 開閉アイコン（▼／▲） */
#topics-float .tf-tab-icon {
  display: inline-block;
  float: right;
  width: 0;
  height: 0;
  margin-top: 3px;
  margin-left: 12px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #fff;
  transition: transform .3s;
}

#topics-float.tf-closed .tf-tab-icon {
  transform: rotate(180deg);
}

/* --- 本文 --- */
#topics-float .tf-body {
  overflow: hidden;
  max-height: 420px;
  background: #fff;
  border: 1px solid #d5dae1;
  border-top: none;
  border-right: none;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, .12);
  transition: max-height .3s ease, opacity .25s ease;
}

#topics-float.tf-closed .tf-body {
  max-height: 0;
  opacity: 0;
  border-width: 0 0 0 1px;
  box-shadow: none;
}

#topics-float .tf-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

#topics-float .tf-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e3e7ec;
}

#topics-float .tf-list a {
  display: block;
  padding: 10px 16px;
  color: #091928;
  text-decoration: none;
  transition: background .2s, color .2s;
}

#topics-float .tf-list a:hover,
#topics-float .tf-list a:focus {
  background: #f4f7fa;
  color: #51d8af;
}

#topics-float .tf-date {
  display: block;
  margin-bottom: 3px;
  color: #3b6394;
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.2;
}

#topics-float .tf-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
}

/* --- 一覧へのリンク --- */
#topics-float .tf-more {
  padding: 9px 16px 11px;
  text-align: right;
}

#topics-float .tf-more a {
  display: inline-block;
  padding: 4px 12px;
  background: #3b6394;
  color: #fff;
  font-size: 11px;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .3s;
}

#topics-float .tf-more a:hover {
  background: #091928;
  color: #fff;
}

/*Tablet / SP*/
@media (max-width: 699px) {
  #topics-float {
    right: 0;
    width: 280px;
    max-width: 100%;
  }

  #topics-float.tf-closed {
    width: 138px;
  }

  #topics-float .tf-tab {
    padding: 9px 14px;
    font-size: 12px;
  }

  #topics-float .tf-body {
    max-height: 60vh;
  }

  #topics-float .tf-list a {
    padding: 9px 14px;
  }
}
