@charset "utf-8";

.portfolio {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 50px;
}

.transltation {
    display: none;
}

.tabmenu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    align-self: stretch;
    margin-inline: 4.8%;
}
.tabpanel {
  display: none;
  margin-top: 32px;
}

.tabpanel.is-active {
  display: block;
}

/* tv show */

.tabcontents {
  margin-inline: 4.8%;
}

.tv-show__item {
  display: flex;
  align-items: center;
}

.tvshow__list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-content: center;
}

.tvshow__list img{
  width: 100%;
  height: auto;
  display: block;
}

@media screen and (min-width: 769px) {
  .portfolio {
    gap: 78px;
  }

  .tabmenu {
      gap: 170px;
      margin-inline: 4.8%;
  }
}

/* cf */

.cf__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0;
  list-style: none;
}

/* CFアイテム */
.cf__item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* PCサイズ */
@media screen and (min-width: 768px) {
  .cf__list {
    grid-template-columns: repeat(3, 1fr); /* PC：3列 */
    gap: 32px;
  }
}

/* 再生ボタン */
.cf__item a {
  position: relative;
  display: block;
}

.cf__item a::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  z-index: 2;
  transition: transform 0.3s ease, background 0.3s ease;
}

.cf__item a::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-left: 18px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  transform: translateX(2px);
  z-index: 3;
}

.cf__item a:hover::before {
  background: rgba(229, 0, 0, 0.85); /* YouTubeレッド */
  transform: scale(1.1);
}

/* article */

.article__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0;
  list-style: none;
}

.an__item img {
  display: block;
  width: 100%;
  transition: transform .3s ease, opacity .3s ease;
}

.article__link:hover img {
  opacity: 0.85;
  transform: scale(1.02);
}

.article__title {
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 14px 2% 0;
  letter-spacing: 0.02em;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;

  transition: color .3s ease;
}

.article__link:hover .article__title {
  color: #e5e5e5;
}

@media screen and (min-width: 768px) {
  .article__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* to top button */

.to-top {
  position: fixed;
  right: 16px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.to-top img {
  width: 48px;
  height: auto;
  display: block;
}

.to-top.is-show {
  opacity: 1;
  pointer-events: auto;
}

@media screen and (min-width: 769px) {
  .to-top {
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
  }

  .to-top img {
    width: 64px;
  }
}