/* 目的別FXおすすめタブ */
.fx-topic-tabs {
  margin: 14px 0 18px;
  padding: 6px;
  border: 1px solid #d9e3e8;
  border-radius: 10px;
  background: #f5f8fa;
}

.fx-topic-tabs__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-topic-tabs__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 8px 7px;
  border: 1px solid #d5e1e6;
  border-radius: 7px;
  background: #fff;
  color: #16455a;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.fx-topic-tabs__line {
  display: block;
  white-space: nowrap;
}

.fx-topic-tabs__item.is-active .fx-topic-tabs__link,
.fx-topic-tabs__link:hover,
.fx-topic-tabs__link:focus-visible {
  border-color: #5ba4d6;
  background: #5ba4d6;
  color: #fff;
}

.fx-topic-tabs__link:focus-visible {
  outline: 3px solid rgba(209, 164, 0, .45);
  outline-offset: 2px;
}

@media screen and (max-width: 767px) {
  .fx-topic-tabs {
    margin: 10px 0 14px;
    padding: 5px;
    overflow: hidden;
  }

  .fx-topic-tabs__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    min-width: 0;
  }

  .fx-topic-tabs__item {
    min-width: 0;
  }

  .fx-topic-tabs__link {
    min-height: 54px;
    padding: 5px 0;
    font-size: 0.9rem;
    letter-spacing: -0.1em;
    line-height: 1.25;
  }
}

@media screen and (max-width: 374px) {
  .fx-topic-tabs__link {
    font-size: 0.85rem;
  }
}
