@charset "utf-8";

/* ----------------------------------------------------------------------
   目次
   1. p-hero  メインスライダー
   2. p-talent  TALENT
   3. p-news  NEWS（HTML側はコメントアウト中）
   4. p-audition  AUDITION
   5. p-about  ABOUT
   6. p-contact  CONTACT
   各コンポーネントの直後に、そのコンポーネントのレスポンシブ指定を置く
   ---------------------------------------------------------------------- */

/* ==========================================================================
   p-hero  メインスライダー
   ========================================================================== */

.p-hero {
  background-color: #f6741b;
}

.p-hero__viewport {
  overflow: hidden;
  /* 縦スクロールはブラウザに任せ、横方向はスワイプ操作に使う */
  touch-action: pan-y;
}

/* ドラッグ中はテキスト選択を止め、掴んでいることを分かるようにする */
.p-hero__viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.p-hero__track {
  --gap: 3rem;
  display: flex;
  gap: var(--gap);
  width: 75%;
  max-width: 108rem;
  margin: 0 auto;
  /* 100% = スライド1枚分の幅。1枚ずつ左へ送る。
     --drag はスワイプ中に指へ追従させるための移動量（assets/js/top.js） */
  transform: translateX(calc(var(--current, 1) * (-100% - var(--gap)) + var(--drag, 0px)));
  transition: transform .5s ease;
}

.p-hero__slide {
  position: relative;
  display: block;
  flex: 0 0 100%;
  aspect-ratio: 1080 / 558;
  overflow: hidden;
}

/* 画像全体がリンクなので、共通のホバー（半透明）は効かせない */
.p-hero__slide:hover {
  opacity: 1;
}

/* Figmaのオーバーレイ rgba(42,42,42,.1) */
.p-hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(42, 42, 42, .1);
}

/* 画像はスライド枠いっぱいに表示する */
.p-hero__slide-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

/* 横幅が足りない画像（縦長など）だけ、切り取らずに収める。
   左右にできる余白は .p-hero__slide-bg のボケで埋める。
   判定と余白幅の算出は inc/acf-fields.php の isfw_hero_side_ratio() */
.p-hero__slide--letterbox .p-hero__slide-img {
  object-fit: contain;
}

/* 左右の余白だけに敷くボケ。--hero-side（片側の余白の割合）はPHPが出力する。
   境界を1%だけ画像側へ潜り込ませて、継ぎ目が出ないようにしている */
.p-hero__slide-bg {
  --hero-edge: calc(var(--hero-side, 0%) + 1%);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1.08rem);
  -webkit-mask-image: linear-gradient(to right,
    #000 0, #000 var(--hero-edge),
    transparent var(--hero-edge), transparent calc(100% - var(--hero-edge)),
    #000 calc(100% - var(--hero-edge)), #000 100%);
  mask-image: linear-gradient(to right,
    #000 0, #000 var(--hero-edge),
    transparent var(--hero-edge), transparent calc(100% - var(--hero-edge)),
    #000 calc(100% - var(--hero-edge)), #000 100%);
}

.p-hero__slide-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 13.4731%; /* 75.18 / 558 */
  background-color: #606060;
  mix-blend-mode: multiply;
}

.p-hero__slide-text {
  position: absolute;
  bottom: 0;
  left: 4.1667%;
  z-index: 4;
  display: flex;
  align-items: center;
  height: 13.4731%;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 3.6rem;
  color: #fff;
  white-space: nowrap;
}

.p-hero__thumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.9rem 0;
}

/* スライドが5枚まで増えても収まるよう、最大168pxで必要なだけ縮む指定にする */
.p-hero__thumb {
  display: flex;
  flex: 0 1 16.81rem;
  min-width: 0;
  align-items: center;
  justify-content: center;
  aspect-ratio: 168.1 / 87;
  cursor: pointer;
  transition: opacity .3s ease;
}

.p-hero__thumb:hover {
  opacity: .7;
}

.p-hero__thumb-img {
  width: 90%;      /* 151.3 / 168.1 */
  height: 89.66%;  /* 78 / 87 */
  object-fit: cover;
}

.p-hero__thumb.is-current .p-hero__thumb-img {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: .876rem solid #fff;
}

@media (max-width: 767px) {
  /* ----- p-hero ----- */
  /* 隣のスライドは覗かせず、1枚を画面幅で表示する */
  .p-hero__track {
    --gap: 1rem;
    width: 100%;
  }

  .p-hero__slide-bg {
    filter: blur(.5rem);
  }

  .p-hero__slide-text {
    font-size: 1.4rem;
    line-height: 1.8rem;
  }

  .p-hero__thumbs {
    gap: .6rem;
    padding: 1.4rem 2rem; /* 5枚のときも画面端に接しないよう左右に余白を残す */
  }

  .p-hero__thumb {
    flex-basis: 28%;
  }

  .p-hero__thumb.is-current .p-hero__thumb-img {
    border-width: .4rem;
  }
}

/* ==========================================================================
   p-talent  TALENT
   ========================================================================== */

.p-talent {
  padding: 11rem 0;
  background-color: #f2f2f2;
}

.p-talent__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 2.2rem;
  row-gap: 3.6rem;
  margin-top: 6.4rem;
}

.p-talent__item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.6rem;
}

.p-talent__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

/* 高さではなく比率で指定し、幅が縮んでも写真の比率が変わらないようにする */
.p-talent__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 283.5 / 350;
  overflow: hidden;
  box-shadow: .3rem .3rem 0 0 #ff7f27;
}

/* 画像はFigmaのトリミング済みカット（567×700 / 2倍解像度）を書き出して使用 */
.p-talent__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-talent__name {
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 2.8rem;
  letter-spacing: 1.066rem;
  color: #141414;
  white-space: nowrap;
}

.p-talent__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4rem;
}

.p-talent__links--double {
  justify-content: space-between;
  width: 100%;
}

.p-talent__link {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  color: #f6741b;
  white-space: nowrap;
}

.p-talent__link-icon {
  flex-shrink: 0;
  width: 3.926rem;
  height: 2.4rem;
}

.p-talent__btn {
  display: flex;
  justify-content: center;
  margin-top: 6rem;
}

@media (max-width: 1023px) {
  /* タレント名（26px＋字間10.66px＝183px）が収まる幅を保つため3カラムにする */
  .p-talent__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  /* ----- p-talent ----- */
  .p-talent {
    padding: 6rem 0;
  }

  .p-talent__list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.6rem;
    row-gap: 3rem;
    margin-top: 3rem;
  }

  .p-talent__item {
    gap: 1rem;
  }

  .p-talent__body {
    gap: 1.2rem;
  }

  .p-talent__name {
    font-size: 1.5rem;
    line-height: 1.8rem;
    letter-spacing: .3rem;
  }

    .p-talent__links,
  .p-talent__links--double {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .6rem 1.2rem;
  }

  .p-talent__link {
    gap: .4rem;
    font-size: 1.1rem;
  }

  .p-talent__link-icon {
    width: 2.6rem;
    height: 1.59rem;
  }
}

/* ==========================================================================
   p-news  NEWS（HTML側はコメントアウト中）
   ========================================================================== */

.p-news {
  display: flow-root; /* 見出しの負マージンをセクション外に伝えない */
  padding: 0 0 11rem;
  background-color: #fff;
}

.p-news__list {
  margin-top: 6.4rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid #dfdfdf;
}

.p-news__item + .p-news__item {
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid #dfdfdf;
}

.p-news__link {
  display: flex;
  align-items: center;
  padding-right: 1.4rem;
}

.p-news__head {
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

.p-news__date {
  font-family: "Inter", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  color: #818181;
  white-space: nowrap;
}

.p-news__cat {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12.9rem;
  height: 2.6rem; /* Figmaのラベル実寸 */
  padding: 0 1.2rem;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6rem;
  letter-spacing: .126rem;
  white-space: nowrap;
}

.p-news__cat--stage {
  background-color: #f08300;
  color: #fff;
}

.p-news__cat--audition {
  background-color: #333;
  color: #fff;
}

.p-news__cat--info {
  padding: 0 1.3rem;
  border: 1px solid #f08300;
  background-color: #fff;
  color: #f6741b;
}

.p-news__body {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  margin-left: 5rem;
}

.p-news__talent {
  padding: 0 1.4rem;
  border-right: 1px solid #f6741b;
  border-left: 1px solid #f6741b;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .016rem;
  color: #f6741b;
  white-space: nowrap;
}

.p-news__title {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .016rem;
  color: #333;
}

.p-news__icon {
  flex-shrink: 0;
  width: 2.9633rem;
  height: .8485rem;
  margin-left: auto;
}

.p-news__btn {
  display: flex;
  justify-content: center;
  margin-top: 6rem;
}

@media (max-width: 1023px) {
  .p-news {
    padding: 8rem 0;
  }
}

@media (max-width: 767px) {
  .p-news {
    padding: 6rem 0;
  }

  .p-news__list {
    margin-top: 3rem;
    padding-bottom: 2rem;
  }

  .p-news__item + .p-news__item {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  /* 日付＋ラベルを1行目、タレント名＋タイトルを2行目に折り返す */
  .p-news__link {
    flex-wrap: wrap;
    gap: 1.2rem;
    padding-right: 0;
  }

  .p-news__head {
    gap: 1.6rem;
  }

  .p-news__date {
    font-size: 1.2rem;
  }

  .p-news__cat {
    width: 10.4rem;
    height: 2.4rem;
    padding: 0 .8rem;
    font-size: 1.2rem;
    letter-spacing: .06rem;
  }

  .p-news__cat--info {
    padding: 0 .7rem;
  }

  /* order で「日付・ラベル・矢印」→「タレント名・タイトル」の並びにする */
  .p-news__body {
    order: 1;
    flex-wrap: wrap;
    gap: .6rem 1.2rem;
    width: 100%;
    margin-left: 0;
  }

  .p-news__talent {
    padding: 0 1rem;
    font-size: 1.3rem;
  }

  .p-news__title {
    font-size: 1.4rem;
    line-height: 1.6;
  }

  .p-news__icon {
    width: 2.4rem;
    height: .687rem;
  }

  .p-news__btn {
    margin-top: 4rem;
  }
}

/* ==========================================================================
   p-audition  AUDITION
   ========================================================================== */

.p-audition {
  position: relative;
  display: flow-root; /* 見出しの負マージンをセクション外に伝えない */
  padding: 0 0 8rem;
  background-color: #f2f2f2;
}

/* 背景画像はFigmaのトリミング（left -34.23% / top -64.8% / 141% × 198.29%）を
background-size / position に換算して再現する */
.p-audition::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/audition-bg.jpg");
  background-repeat: no-repeat;
  background-size: 141% 198.29%;
  background-position: 83.49% 65.93%;
}

.p-audition::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(80, 80, 80, .3), rgba(182, 182, 182, .3));
}

.p-audition__inner {
  position: relative;
  z-index: 1;
}

.p-audition__text {
  max-width: 65.6rem;
  margin-top: 6.2rem;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 3.6rem;
  letter-spacing: .054rem;
  color: #333;
}

.p-audition__btn {
  margin-top: 6rem;
}

@media (max-width: 1023px) {
  .p-audition {
    padding: 8rem 0;
  }

    /* 幅が狭いと写真の上に文字が乗るため、トリミングを cover に戻し
    明るいスクリムを重ねて可読性を確保する */
  .p-audition::before {
    background-position: 65% center;
    background-size: cover;
  }

  .p-audition::after {
    background-image: linear-gradient(to right, rgba(242, 242, 242, .9), rgba(242, 242, 242, .62));
  }
}

@media (max-width: 767px) {
  /* ----- p-audition ----- */
  .p-audition {
    padding: 6rem 0 5rem;
  }

  .p-audition__text {
    max-width: none;
    margin-top: 3rem;
    font-size: 1.4rem;
    line-height: 2.6rem;
  }

  .p-audition__btn {
    margin-top: 3rem;
  }
}

/* ==========================================================================
   p-about  ABOUT
   ========================================================================== */

.p-about {
  position: relative;
  padding: 8rem 0 10.9rem;
  background-color: #f2f2f2;
  overflow: hidden;
}

/* 1200px時は 336 + 190 + 674 の配置。幅が縮むときは先に列間を詰め、
40pxまで詰めきってから本文側を縮める。
ボタンはHTML上では本文の後ろにあるので、PCではgridで左カラム下段に置く */
.p-about__inner {
  position: relative;
  display: grid;
  grid-template-columns: 33.6rem minmax(0, 67.4rem);
  justify-content: space-between;
  align-items: start;
  column-gap: 4rem;
}

/* 背景の地図はコンテンツ幅の外側120pxから始まる（Figma基準） */
.p-about__map {
  position: absolute;
  top: -8rem;
  left: -12rem;
  width: 119.9rem;
  max-width: none;
  height: 65.2rem;
}

.p-about__head {
  position: relative;
  grid-column: 1;
}

/* PCでは見出しの下（左カラム）に置く。本文カラムの高さに引っ張られないよう絶対配置 */
.p-about__btn {
  position: absolute;
  top: 21rem;
  left: 0;
}

/* Figmaは本文をキャップハイトでトリムしているため、
行送りの半分（約0.9rem）を差し引いた位置に置く */
.p-about__body {
  position: relative;
  grid-column: 2;
  margin-top: -.9rem;
}

.p-about__text {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 3.6rem;
  letter-spacing: .054rem;
  color: #333;
}

.p-about__works {
  margin-top: 3.1rem; /* Figmaの40px（本文はトリム済みボックス基準）に相当 */
  padding: 4rem 4rem 3rem;
  background-color: #fff;
}

.p-about__works-title {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #f6741b;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.6rem;
  color: #333;
}

.p-about__works-list {
  margin-top: 3rem;
}

.p-about__works-row {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.p-about__works-row + .p-about__works-row {
  margin-top: 1.9rem;
}

.p-about__works-station {
  width: 9rem;
  flex-shrink: 0;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.6rem;
  color: #333;
}

.p-about__works-program {
  position: relative;
  padding-left: 2.2rem;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.6rem;
  color: #333;
}

.p-about__works-program::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1.6rem;
  background-color: #d9d9d9;
}

.p-about__works-note {
  margin-top: 3rem;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.6rem;
  text-align: right;
  color: #333;
}

@media (max-width: 1023px) {
  /* 2カラムのままだと本文側が狭くなり出演実績が細かく折り返すため縦積みにする */
  .p-about {
    padding: 8rem 0;
  }

  /* 1カラムにし、HTMLの順（見出し → 本文 → ボタン）で並べる */
  .p-about__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4rem;
  }

    .p-about__head,
    .p-about__body,
  .p-about__btn {
    grid-column: 1;
  }

  .p-about__body {
    margin-top: 0;
  }

  .p-about__btn {
    position: static;
  }
}

@media (max-width: 767px) {
  /* ----- p-about ----- */
  .p-about {
    padding: 6rem 0;
  }

  .p-about__inner {
    row-gap: 3rem;
  }

  .p-about__map {
    top: -6rem;
    left: 8rem;
    width: 52rem;
    height: auto;
  }

  .p-about__text {
    font-size: 1.4rem;
    line-height: 2.6rem;
  }

  .p-about__works {
    margin-top: 3rem;
    padding: 2.4rem 2rem 2rem;
  }

  .p-about__works-title {
    padding-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .p-about__works-list {
    margin-top: 2rem;
  }

  .p-about__works-row {
    align-items: flex-start;
    gap: 1.2rem;
  }

  .p-about__works-row + .p-about__works-row {
    margin-top: 1.4rem;
  }

  .p-about__works-station {
    width: 7.4rem;
    font-size: 1.3rem;
    line-height: 1.8rem;
  }

  .p-about__works-program {
    padding-left: 1.2rem;
    font-size: 1.3rem;
    line-height: 1.8rem;
  }

  /* 2行に折り返しても区切り線が伸びるように */
  .p-about__works-program::before {
    height: 100%;
  }

  .p-about__works-note {
    margin-top: 2rem;
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   p-contact  CONTACT
   ========================================================================== */

.p-contact {
  padding: 8rem 0;
  background-color: #333;
}

/* TOPのCONTACTは108px・白抜き・和文との間隔24px */
.p-contact .c-heading {
  --heading-size: 10.8rem;
  align-items: center;
  gap: 2.4rem;
  margin-right: auto;
  margin-left: auto;
}

.p-contact .c-heading__en {
  letter-spacing: .216rem;
}

.p-contact__list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  width: min(120rem, 100% - 8rem);
  margin: 5rem auto 0;
}

.p-contact__card {
  position: relative;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  max-width: 59rem;
  align-items: center;
  justify-content: center;
  gap: 2.6rem;
  /* 左の余白でテキストがカード中央に来る（矢印アイコン分だけ左寄り） */
  padding: 6.1rem 0 6.1rem 9.2rem;
  background-color: #000;
  overflow: hidden;
}

.p-contact__card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none; /* トリミング値で100%超の幅を指定するため */
  object-fit: cover;
  opacity: .4;
}

.p-contact__card-bg--casting {
  inset: auto;
  top: -186.2%;
  left: -43.41%;
  width: 161.29%;
  height: 325.38%;
}

.p-contact__card-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
  color: #fff;
  white-space: nowrap;
}

.p-contact__card-main {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.61;
  letter-spacing: .175rem;
}

.p-contact__card-sub {
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.61;
  letter-spacing: .126rem;
}

.p-contact__card-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 6.2457rem;
  height: 3.8486rem;
}

@media (max-width: 1023px) {
  /* 2枚並びだとテキストと矢印が入りきらないため縦積みにする */
  .p-contact__list {
    flex-direction: column;
    align-items: center;
  }

  .p-contact__card {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 767px) {
  /* ----- p-contact ----- */
  .p-contact {
    padding: 6rem 0;
  }

  .p-contact .c-heading {
    --heading-size: 4.8rem;
    gap: 1.4rem;
  }

  .p-contact__list {
    flex-direction: column;
    gap: 1.6rem;
    width: 90%;
    margin-top: 3rem;
  }

  .p-contact__card {
    flex: none; /* 縦並びになるとflex-basisが高さに効くため解除する */
    max-width: none;
    padding: 3rem 2rem;
  }

  /* テキストはカードの中央に置き、矢印は流れから外して右端へ寄せる */
  .p-contact__card-icon {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
  }

  .p-contact__card-main {
    font-size: 1.8rem;
  }

  .p-contact__card-sub {
    font-size: 1.3rem;
  }

  .p-contact__card-icon {
    width: 4rem;
    height: 2.464rem;
  }
}
