﻿@charset "UTF-8";
:root {
  --white: #ffffff;
  --background-color: #F5F5F5;
  --footer-background: #1F2C3D;
  --font-default: #000000;
  --font-black: #555555;
  --schedule-even: #F4F3F0;
  --blue:#00A3DF;
  --modal-background: #CCCCCC;
  --border: #D3D3D3;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(70 / 16 * 1rem);
}

body {
  background-color: var(--background-color);
  font-family: "Noto Sans JP", sans-serif;
  color: #000000;
  font-weight: 500;
  overflow-x: clip;
  overflow-wrap: anywhere;
  min-height: 100dvh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  touch-action: manipulation;
}

main {
  margin-top: calc(70 / 16 * 1rem);;
}

.main.is-open,
.header.is-open {
  overflow: auto;
  scrollbar-gutter: stable;
  width: 100%;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  .header__wrapper {
    background-color: var(--white);
    padding-left: 18px;
    padding-right: 8px;
    height: calc(70 / 16 * 1rem);
    display: flex;
    justify-content: space-between;
    align-items: center;

    .header__logo {
      display: flex;
      align-items: center;
      column-gap: 18px;
      a {
        display: block;
        width: calc(76 / 16 * 1rem);
        transition: opacity 0.3s;
        &:focus-visible {
          @media (prefers-reduced-motion: no-preference) {
            opacity: 0.6;
          }
        }
        @media (any-hover: hover) {
          &:hover {
            @media (prefers-reduced-motion: no-preference) {
              opacity: 0.6;
            }
          }
        }
      }
      p {
        color: var(--font-black);
        font-size: calc(13 / 16 * 1rem);
        font-weight: bold;
        line-height: calc(17 / 13);
        @media (max-width: 500px) {
          display: none;
        }
      }
    }
    .header__btn {
      display: flex;
      align-items: center;
      column-gap: 10px;
      .header__share {
        width: calc(36 / 16 * 1rem);
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: opacity 0.3s;
        span {
          font-size: calc(10 / 16 * 1rem);
          font-weight: bold;
          transition: color 0.3s;
        }
        &:focus-visible {
          @media (prefers-reduced-motion: no-preference) {
            opacity: 0.6;
            & span {
              color: var(--blue);
            }
          }
        }
        @media (any-hover: hover) {
          &:hover {
            @media (prefers-reduced-motion: no-preference) {
              opacity: 0.6;
              & span {
                color: var(--blue);
              }
            }
          }
        }
      }
      .header__special-feature {
        display: flex;
        align-items: center;
        a {
          /* padding-right = 元の10px + gap8px + icon8px */
          display: block;
          position: relative;
          isolation: isolate;
          padding: 7px 26px 7px 10px;
          color: var(--blue);
          font-size: calc(12 / 16 * 1rem);
          font-weight: bold;
          line-height: (17 / 12);
          text-decoration: none;
          transition: color 0.3s;

          /* ボーダーボックス（三角形の手前まで） */
          &::before {
            content: "";
            position: absolute;
            inset: 0;
            right: calc(8px + 8px); /* gap + icon幅 */
            border: 0.5px solid var(--blue);
            border-radius: 2.5px;
            z-index: -1;
            transition: background-color 0.3s, border-color 0.3s;
            pointer-events: none;
          }

          /* 三角形アイコン */
          &::after {
            content: "";
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: calc(8 / 16 * 1rem);
            height: calc(10 / 16 * 1rem);
            color: #333333;
            background: currentColor;
            clip-path: polygon(0 0, 100% 50%, 0 100%);
            transition: color 0.3s;
          }

          &:focus-visible {
            @media (prefers-reduced-motion: no-preference) {
              color: var(--white);
              &::before {
                background-color: var(--blue);
                border-color: var(--blue);
              }
              &::after {
                color: var(--blue);
              }
            }
          }
          @media (any-hover: hover) {
            &:hover {
              @media (prefers-reduced-motion: no-preference) {
                color: var(--white);
                &::before {
                  background-color: var(--blue);
                  border-color: var(--blue);
                }
                &::after {
                  color: var(--blue);
                }
              }
            }
          }
        }
      }
    }
  }
}


.mv {
  position: relative; /* 擬似要素の基準 */
  overflow: hidden;   /* はみ出し制御 */
  margin-bottom: 12px;
}

/* 1600px超えたときの左右の繰り返し画像（beforeとafterで左右をカバー） */
.mv::before,
.mv::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  /* 背景画像本体と同じ高さになるよう親に合わせる */
  background-image: url(../images/common/mv_background-add.webp); /* 左右用の画像 */
  background-repeat: repeat-x; /* 横にリピート */
  background-size: auto 100%;  /* 高さ100%に合わせてリピート */
  z-index: 0;
  @media (max-width: 500px) {
    background-image: url(../images/common/mv_background-add-sp.webp);
  }
}

.mv::before {
  left: 0;
  right: calc(50% + 800px); /* 中央から800px（1600px÷2）より左 */
  background-position: right center; /* ← 右起点に変更 */
  @media (max-width: 500px) {
    right: calc(50% + 185px);
  }
}

.mv::after {
  left: calc(50% + 800px);  /* 中央から800px（1600px÷2）より右 */
  right: 0;
  background-position: left center; /* ← デフォルト。左起点 */
  @media (max-width: 500px) {
    left: calc(50% + 185px);
  }
}

.mv__wrapper {
  
  position: relative;
  z-index: 1; /* 擬似要素より前面に */
  max-width: 1600px;
  margin: 0 auto; /* 中央寄せ */
  height: clamp( 513px, calc(0.1266 * 100vw + 407.5px), 610px);
  background-image: url(../images/common/mv_background.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  @media (max-width: 500px) {
    max-width: 370px;
    height: 556px;
    background-image: url(../images/common/mv_background-sp.webp);
  }
  .mv__TVer {
    width: clamp(80px, calc(63.7px + 1.958vw), 95px);
    @media (max-width: 500px) {
      width: clamp(75px, calc(70.92px + 1.089vw), 80px);
    }
  }
  .mv__message {
    margin-top: 45px;
    width: min(100%, clamp(528px, calc(414.8px + 13.577vw), 632px));
    @media (max-width: 500px) {
      margin-top: 26px;
      width: min(100%, clamp(350px, calc(204.6px + 38.78vw), 528px));
    }
  }
  .mv__ARASHI {
    margin-top: 28px;
    width: min(100%, clamp(385px, calc(303.4px + 9.79vw), 460px));
    @media (max-width: 500px) {
      margin-top: 25px;
      width: min(100%, clamp(290px, calc(212.4px + 20.7vw), 385px));
    }
  }
  .mv__COLLECTION {
    margin-top: 26px;
    width: min(100%, clamp(288px, calc(225.94px + 7.441vw), 345px));
    @media (max-width: 500px) {
      margin-top: 17px;
      width: min(100%, clamp(228px, calc(179px + 13.072vw), 288px));
    }
  }
  .mv__part {
    margin-top: 30px;
    width: min(100%, clamp(116px, calc(92.05px + 2.872vw), 138px));
    @media (max-width: 500px) {
      margin-top: 23px;
      width: min(100%, clamp(87px, calc(63.3px + 6.318vw), 116px));
    }
  }
  .mv__ribbon {
    position: absolute;
    top: 40px;
    width: clamp( 756px, calc(595px + 19.321vw), 904px);
    @media (max-width: 500px) {
      top: 28px;
      width: 416px;
    }
  }
}

/* MV フェードインアニメーション */
@media (prefers-reduced-motion: no-preference) {
  @keyframes mvFadeIn {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes mvFadeInRibbon {
    from {
      opacity: 0;
      transform: scale(0.92);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* ロード前は非表示 */
  .mv__wrapper {
    .mv__TVer,
    .mv__message,
    .mv__ARASHI,
    .mv__COLLECTION,
    .mv__part,
    .mv__ribbon {
      opacity: 0;
      img {
        pointer-events: none;
      }
    }
  }

  /* window load 後に .is-mv-loaded が付与されてアニメーション開始 */
  .mv__wrapper.is-mv-loaded {
    .mv__TVer,
    .mv__message,
    .mv__ARASHI,
    .mv__COLLECTION,
    .mv__part,
    .mv__ribbon {
      animation-duration: 0.7s;
      animation-timing-function: ease;
      animation-fill-mode: forwards;
    }

    .mv__TVer        { animation-name: mvFadeIn;       animation-delay: 0.3s; }
    .mv__message     { animation-name: mvFadeIn;       animation-delay: 0.7s; }
    .mv__ARASHI      { animation-name: mvFadeIn;       animation-delay: 1.1s; }
    .mv__COLLECTION  { animation-name: mvFadeIn;       animation-delay: 1.4s; }
    .mv__part        { animation-name: mvFadeIn;       animation-delay: 1.7s; }
    .mv__ribbon      { animation-name: mvFadeInRibbon; animation-delay: 1.1s; }
  }
}

.slider {
  &::before,
  &::after {
    content: "";
    display: block;
    height: clamp(10px, calc(20 / 1600 * 100vw), 20px);
    background-repeat: repeat;
    background-size: clamp(800px, 100vw, 1600px) clamp(10px, calc(20 / 1600 * 100vw), 20px);
    background-position: center top;
  }
  &::before {
    background-image: url(../images/common/slider_deco_top.webp);
  }
  &::after {
    margin-top: -1px;
    background-image: url(../images/common/slider_deco_bottom.webp);
  }
}

.slider__track-wrapper {
  overflow: hidden;
  width: 100%;
  background-color: black;
}

.slider__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.slider__item {
  flex-shrink: 0;
  width: clamp( 170px, calc(6.7px + 19.583vw), 320px);
  aspect-ratio: 320 / 180;
  overflow: hidden;
  @media (max-width: 500px) {
    width: 126px;
    height: 71px;
  }
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
  }
}


/* ========================================
   Contents
======================================== */
.contents {
  position: relative;
  overflow: hidden;
  padding-top: 110px;
  padding-bottom: 140px;
  background-image: url(../images/common/contants-background.webp);
  background-position: center top;
  background-repeat: repeat;
  background-size: 1600px auto;
}

/* 1600px超えたときの左右リピート */
.contents::before,
.contents::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  background-image: url(../images/common/contants-background.webp);
  background-repeat: repeat;
  background-size: 1600px auto;
  z-index: 0;
}

.contents::before {
  left: 0;
  right: calc(50% + 800px);
  background-position: right top;
}

.contents::after {
  left: calc(50% + 800px);
  right: 0;
  background-position: left top;
}

.contents__inner {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0 auto;
  padding-inline: 20px;
  @media screen and (max-width: 768px) {
    padding-inline: 15px;
  }
}

/* ----- タブ ----- */
.contents__tabs {
  display: flex;
  padding-inline: 20px;
  column-gap: 20px;
  margin-bottom: -1px;
}

.contents__tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-bottom: 2px solid transparent;
  border-radius: 20px 20px 0 0 ;
  padding: 20px 16px;
  background-color: var(--border);
  cursor: pointer;
  transition: background-color 0.3s, border 0.3s;
  &:not(.is-active):focus-visible {
    @media (prefers-reduced-motion: no-preference) {
      background-color: var(--font-default);
      border: 1px solid var(--font-default);
      border-bottom: 2px solid transparent;
    }
  }
  @media (any-hover: hover) {
    &:not(.is-active):hover {
      @media (prefers-reduced-motion: no-preference) {
        background-color: var(--font-default);
        border: 1px solid var(--font-default);
        border-bottom: 2px solid transparent;
      }
    }
  }
  img {
    display: block;
    max-width: 280px;
    width: auto;
    transition: filter 0.3s;
  }

  &.is-active {
    background: #fff;
  }
}

.contents__tab:not(.is-active):focus-visible img {
  @media (prefers-reduced-motion: no-preference) {
    filter: invert(1);
  }
}

@media (any-hover: hover) {
  .contents__tab:not(.is-active):hover img {
    @media (prefers-reduced-motion: no-preference) {
      filter: invert(1);
    }
  }
}


/* ----- パネル ----- */
.contents__panel {
  padding-inline: 50px;
  padding-block: 60px;
  display: none;
  background-color: var(--white);
  border: 1px solid var(--border);
  @media screen and (max-width: 800px) {
    padding-inline: 30px;
    
  }
  @media screen and (max-width: 630px) {
    padding-top: 50px;
    padding-inline: 15px;
    padding-bottom: 30px;
  }
  &.is-active {
    display: block;
  }
}


/* ----- アンカーナビ ----- */
.contents__anchors {
  position: sticky;
  top: calc(70 / 16 * 1rem);
  z-index: 100;
  background-color: var(--white);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  @media screen and (max-width: 595px) {
    position: relative;
    top: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, auto));
  }
  @media screen and (max-width: 500px) {
    grid-template-columns: repeat(auto-fit, minmax(140px, auto));
  }

}

.contents__anchor-btn {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--font-default);
  white-space: nowrap;
  text-decoration: none;
  background-color: var(--font-default);
  color: var(--white);
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.12em;
  transition: background 0.3s, color 0.3s;
  @media screen and (max-width: 595px) {
    justify-content: center;
  }
  @media screen and (max-width: 500px) {
    padding: 10px 20px;
  }
  &:focus-visible {
    @media (prefers-reduced-motion: no-preference) {
      background-color: var(--white);
      color: var(--font-default);
      .contents__anchor-icon { filter: invert(1); }
    }
  }
  @media (any-hover: hover) {
    &:hover {
      @media (prefers-reduced-motion: no-preference) {
        background-color: var(--white);
        color: var(--font-default);
        .contents__anchor-icon { filter: invert(1); }
      }
    }
  }
}

.contents__anchor-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: filter 0.3s;
}

/* ----- メンバーセクション ----- */
.member-section {
  padding: 50px 0 30px;
  opacity: 0;
  transition: opacity 0.6s ease;
  border-bottom: 1px solid #E0E0E0;
  @media screen and (max-width: 768px) {
    padding: 50px 0 30px;
  }
  @media screen and (max-width: 630px) {
    padding: 50px 0 30px;
  }
}

#panel-part2 .member-section {
  border-bottom: unset;
}

.member-section__content {
  transform: translateY(40px);
  transition: transform 0.6s ease;
}

.member-section.is-visible {
  opacity: 1;
}

.member-section.is-visible .member-section__content {
  transform: translateY(0);
}

.member-section__header {
  margin-bottom: 40px;
  @media screen and (max-width: 650px) {
    margin-inline: auto;
    margin-bottom: 30px;
    max-width: 460px;
  }
  img {
    pointer-events: none;
  }
}

/* ----- ドラマリスト ----- */
.drama-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;

}

.drama-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  padding: 20px 30px;
  @media screen and (max-width: 650px) {
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    gap: 10px;
  }
}

.drama-item__thumb {
  flex-shrink: 0;
  width: 280px;
  aspect-ratio: 280 / 158;
  overflow: hidden;
  border-radius: 2px;
  @media screen and (max-width: 650px) {
    max-width: 400px;
    width: 100%;
  }
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
  }
}

.drama-item__body {
  flex: 1;
  min-width: 0;
  @media screen and (max-width: 650px) {
    width: 100%;
    max-width: 400px;
  }
}

.drama-item__wrapper {
  display: flex;
  flex-direction: column;
  row-gap: 4px;
  /* align-items: flex-start;
  column-gap: 14px;
  @media screen and (max-width: 768px) {
    row-gap: 4px;
    flex-direction: column;
  }
  @media screen and (max-width: 650px) {
    flex-direction: row;
  }
  @media screen and (max-width: 400px) {
    flex-direction: column;
  } */
}

.drama-item__first {
  margin-top: 0.25rem;
  display: block;
  width: fit-content;
  padding: 3px 6px;
  font-size: 1rem;
  font-weight: 500;
  line-height: calc(19 / 16);
  letter-spacing: 0.1em;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.drama-item__title {
  flex: 1;
  font-size: calc(24 / 16 * 1rem);
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  line-height: 1.4;
  span {
    display: inline-block;
  }
}

#panel-part2 .drama-item__title {
  margin-bottom: 10px;
}

.drama-item__coming-soon {
  width: 85px;
}

.drama-item__btns {
  display: flex;
  column-gap: 10px;
  row-gap: 12px;
  flex-wrap: wrap;
  @media screen and (max-width: 650px) {
    flex-direction: column;
    justify-content: center;
  }
}

/* ----- ボタン共通 ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 205px;
  max-width: 300px;
  width: 100%;
  gap: 10px;
  padding: 15px 12px;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 500;
  line-height: calc(18 / 16);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.2));
  @media screen and (max-width: 650px) {
    max-width: unset;
    min-width: unset;
  }
}

.btn--schedule {
  flex: 1;
  border: 1px solid #999;
  background: #fff;
  color: #000;
  transition: background 0.3s, color 0.3s, border-color 0.3s;

  &:focus-visible {
    @media (prefers-reduced-motion: no-preference) {
      background: #000;
      color: #fff;
      border-color: #000;
    }
  }
  @media (any-hover: hover) {
    &:hover {
      @media (prefers-reduced-motion: no-preference) {
        background: #000;
        color: #fff;
        border-color: #000;
      }
    }
  }
}

.btn--watch {
  flex: 1;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  transition: background 0.3s, color 0.3s, border-color 0.3s;

  .btn__play {
    display: block;
    width: calc(18 / 16 * 1rem);
    height: calc(18 / 16 * 1rem);
    flex-shrink: 0;
    transition: filter 0.3s;
  }

  &:focus-visible {
    @media (prefers-reduced-motion: no-preference) {
      background: #fff;
      color: var(--blue);
      border-color: var(--blue);
      .btn__play {
        border: 1px solid var(--blue);
        border-radius: 50%;
      }
    }
  }
  @media (any-hover: hover) {
    &:hover {
      @media (prefers-reduced-motion: no-preference) {
        background: #fff;
        color: var(--blue);
        border-color: var(--blue);
        .btn__play {
          border: 1px solid var(--blue);
          border-radius: 50%;
        }
      }
    }
  }
}


/* ========================================
   モーダル
======================================== */
.modal {
  /* display は常に flex のまま。opacity + visibility で表示制御 */
  display: flex;
  position: fixed;
  inset: 0;
  top: calc(70 / 16 * 1rem);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  /* 非表示の初期状態 */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  
  &.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-background);
  opacity: 0.8;
  cursor: pointer;
  pointer-events: none; /* 非表示時は明示的に無効化 */
}

.modal.is-open .modal__backdrop {
  pointer-events: auto; /* 開いているときだけクリック閉じを有効化 */
}

.modal__dialog {
  pointer-events: none; /* 非表示時は明示的に無効化 */
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  width: min(580px, calc(100% - 32px));
  container-type: inline-size;
  height: calc(100dvh - calc(70 / 16 * 1rem) - 32px);
  max-height: fit-content;
  display: flex;
  flex-direction: column;
  padding-block: 40px;
  padding-inline: clamp( 10px, calc(-39.9px + 13.333vw), 40px);
  filter: drop-shadow(0px 0px 40px rgba(0, 0, 0, 0.2));
  /* 非表示時は少し下に下げておく */
  transform: translateY(24px);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* 表示時はダイアログを定位置に戻す・ポインターイベントを有効化 */
.modal.is-open .modal__dialog {
  pointer-events: auto;
  transform: translateY(0);
}

.modal__title {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 2px;
  align-items: center;
  font-size: calc(20 / 16 * 1rem);
  font-weight: bold;
  margin-bottom: 12px;
  flex-shrink: 0;
  span {
    display: inline-block;
    font-weight: 500;
  }
}

.modal__body {
  overflow-y: auto;
}

.modal__row {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  padding: 12px clamp( 10px, calc(-37.5px + 12.5cqw), 20px);;
  container-type: inline-size;
  font-size: clamp(12px, calc(5.23px + 2.778cqw), 18px);
  font-weight: 500;
  color: var(--font-black);
  letter-spacing: 0.1em;
  & > span:first-child {
    color: var(--font-default);
    width: clamp( 46px, calc(-9.42px + 19.44cqw), 80px);
    min-width: max-content;


    margin-right: min(calc(12 / 1440 * 100vw), 12px);
  }

  & > span:nth-child(2) {
    width: clamp( 100px, calc(28.444px + 25.556cqw), 146px);
    min-width: max-content;
    display: flex;
    justify-content: space-between;
  }
  & > span:nth-child(3) {
    margin-inline: clamp( 6px, calc(-6.43px + 4.444cqw), 14px);
  }
  & > span:nth-child(4) {
    width: clamp( 100px, calc(28.444px + 25.556cqw), 146px);
    min-width: max-content;
    display: flex;
    justify-content: space-between;
  }

  &:nth-child(even) {
    background: var(--schedule-even);
  }
}

.modal__close {
  flex-shrink: 0;
  margin-top: 30px;
  padding: 16px 74px;
  border: 1px solid var(--font-default);
  background: var(--white);
  color: var(--font-default);
  border-radius: 9999px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  width: max-content;
  margin-inline: auto;
  transition: background-color 0.3s, color 0.3s;
  &:focus-visible {
    @media (prefers-reduced-motion: no-preference) {
      background-color: var(--font-default);
      color: var(--white);
    }
  }
  @media (any-hover: hover) {
    &:hover {
      @media (prefers-reduced-motion: no-preference) {
        background-color: var(--font-default);
        color: var(--white);
      }
    }
  }
}

/* ========================================
  TVerタレントページをチェック
======================================== */
.contents__links {
  margin-top: 100px;
  padding: 50px 50px 60px;
  background-color: var(--white);
  text-align: center;
  @media screen and (max-width: 480px) {
    padding-inline: 15px;
  }
  h2 {
    display: inline-block;
    position: relative;
    font-size: calc(22 / 16 * 1rem);
    font-weight: bold;
    letter-spacing: 0.14em;
    span {
      display: inline-block;
      font-size: inherit;
      font-weight: inherit;
      letter-spacing: inherit;
    }
    br {
      display: none;
      @media screen and (max-width: 581px) {
        display: block;
      }
    }
    @media screen and (max-width: 581px) {
      font-size: calc(20 / 16 * 1rem);
    }
  }
  h2::before,
  h2::after {
    position: absolute;
    content: "▼";
    display: block;
    top: 50%;
    transform: translateY(-50%);
    color: var(--font-default);
    font-size: calc(22 / 16 * 1rem);
    font-weight: bold;
    width: fit-content;
    @media screen and (max-width: 581px) {
      font-size: calc(20 / 16 * 1rem);
    }
  }
  h2::before {
    left: -30px;
  }
  h2::after {
    right: -30px;
  }
  nav{
    margin-top: 40px;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    @media screen and (max-width: 581px) {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, auto));
    }
  }
}

.contents__links-btn {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--font-default);
  border-radius: 9999px;
  white-space: nowrap;
  text-decoration: none;
  background-color: var(--font-default);
  color: var(--white);
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.1em;
  transition: background 0.3s, color 0.3s;
  @media screen and (max-width: 581px) {
    justify-content: center;
  }
  &:focus-visible {
    @media (prefers-reduced-motion: no-preference) {
      background-color: var(--white);
      color: var(--font-default);
      .contents__links-icon { filter: invert(1); }
    }
  }
  @media (any-hover: hover) {
    &:hover {
      @media (prefers-reduced-motion: no-preference) {
        background-color: var(--white);
        color: var(--font-default);
        .contents__links-icon { filter: invert(1); }
      }
    }
  }
}

.contents__links-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transform: rotate(-90deg);
  transition: filter 0.3s;
}
/* ========================================
  フッター
======================================== */
.footer {
  text-align: center;
  padding-block: 60px;
  background-color: var(--footer-background);
  .footer__inner {
    padding-inline: 20px;
    @media screen and (max-width: 630px) {
      padding-inline: 15px;
    }
    .footer__back-to-top {
      /* text-align: center; */
      a {
        color: var(--blue);
        display: inline-grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: baseline;
        column-gap: 20px;
        padding: 10px 30px;
        border-radius: 9999px;
        background-color: var(--white);
        cursor: pointer;
        transition: background 0.3s, color 0.3s;
        &::before {
          content: "";
        }
        &:focus-visible {
          @media (prefers-reduced-motion: no-preference) {
            background: var(--blue);
            color: var(--white);
          }
        }
        @media (any-hover: hover) {
          &:hover {
            @media (prefers-reduced-motion: no-preference) {
              background: var(--blue);
              color: var(--white);
            }
          }
        }
      }
    }

    .footer__back-to-top-label {
      color: inherit;
      font-size: calc(20 / 16 * 1rem);
      font-weight: 500;
      letter-spacing: 0.1em;
    }

    .footer__back-to-top-arrow {
      display: block;
      justify-self: end;
      width: 10px;
      height: 10px;
      border-color: var(--blue);
      border-top: 2px solid currentColor;
      border-right: 2px solid currentColor;
      transform: rotate(-45deg);
      transition: border-color 0.3s;
    }
    .footer__logo {
      margin-top: 60px;
      width: 94px;
      display: inline-block;
      a {
        transition: opacity 0.3s;
        &:focus-visible {
          @media (prefers-reduced-motion: no-preference) {
            opacity: 0.6;
          }
        }
        @media (any-hover: hover) {
          &:hover {
            @media (prefers-reduced-motion: no-preference) {
              opacity: 0.6;
            }
          }
        }
      }

    }
    ul {
      margin-top: 30px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      column-gap: 30px;
      row-gap: 10px;
      @media screen and (max-width: 500px) {
        flex-direction: column;
        align-items: flex-start;
        max-width: 300px;
        margin-inline: auto;
      }
    }
    li a{
      padding-block: 10px;
      color: var(--white);
      font-size: calc(14 / 16 * 1rem);
      font-weight: 500;
      letter-spacing: 0.1em;
      transition: opacity 0.3s;
      &:focus-visible {
        @media (prefers-reduced-motion: no-preference) {
          opacity: 0.6;
        }
      }
      @media (any-hover: hover) {
        &:hover {
          @media (prefers-reduced-motion: no-preference) {
            opacity: 0.6;
          }
        }
      }
    }
    small {
      margin-top: 20px;
      display: inline-block;
      color: var(--white);
    }
  }
}