/* =========================================================
   MODELS / PROFILE
   ---------------------------------------------------------
   ・モデル一覧
   ・モデル詳細
   ・プロフィールSNS
   ・バナー
   ・NEWS / SCHEDULE / WORKS
   ========================================================= */


/* =========================================================
   1) Models / Info Appear Animation
   ========================================================= */

/* 初期状態：非表示 */
.wrap.info{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}

/* 表示状態 */
.wrap.info.is-visible{
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   2) MODELS List
   ---------------------------------------------------------
   モデル一覧 / モデル一覧ページ共通
   ========================================================= */
.models {
  width: min(96%, 2400px);
  margin-inline: auto;
  padding-bottom: 96px;
  overflow: visible;
}

.modelsCover{
  width: min(96%, 960px);
  margin: 0 auto;
  max-width: 960px;
  overflow-x: clip;
  overflow-y: hidden;
}

/* 一覧ページ専用：画像はカード幅に追従し、縦横比を統一する */
.modelsCover-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.modelsCover .models-item-wrap{
  min-width: 0;
  overflow-wrap: anywhere;
}
.modelsCover .models-item-wrap img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.models-grid,
.modelsCover-grid{
  display: grid;
  gap: 50px 30px;
  padding: 0;
}

@media (max-width: 767px){
  .models-grid,
  .modelsCover-grid{
    display: grid;
    gap: 50px 12px;
    padding: 0;
  }
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 767px){

  .models-grid,
  .modelsCover-grid{
    gap: 10px 10px;
    padding: 0;
  }

}

.models-grid{
  grid-template-columns: repeat(5, 1fr);
}

.modelsCover-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.models-item,
.models-item-wrap{
  text-align: center;
}

.models-item a,
.models-item-wrap a{
  display: block;
  position: relative;
  overflow: hidden;
  transition:
    transform .35s cubic-bezier(.2,.8,.2,1),
    box-shadow .35s ease,
    filter .35s ease;
}

.models-item img,
.models-item-wrap img{
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
  transition: transform .5s ease;
}

/* Hover */
.models-item a:hover,
.models-item-wrap a:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.models-item .tag,
.models-item-wrap .tag{
  margin-top: 12px;
  font-size: calc(11px * var(--official-font-scale, 1));
  letter-spacing: .18em;
  color: var(--muted);
}

.models-item .yomi,
.models-item-wrap .yomi{
  margin-top: 4px;
  font-size: calc(11px * var(--official-font-scale, 1));
  letter-spacing: .12em;
  color: var(--muted);
}


/* =========================================================
   3) MODELS Scroll Animation
   ========================================================= */
.models-item{
  opacity: 0;
  transform: translateX(0);
  transition:
    opacity .7s ease,
    transform .7s cubic-bezier(.2,.9,.2,1);
  will-change: opacity, transform;
}

.models-item.from-left{
  transform: translateX(-50px);
}

.models-item.from-right{
  transform: translateX(50px);
}

.models-item.is-visible{
  opacity: 1;
  transform: translateX(0);
}


/* =========================================================
   4) PROFILE Base
   ---------------------------------------------------------
   モデル詳細ページ
   ========================================================= */
.profile-wrap{
  width: min(96%, 960px);
  max-width: 960px;
  margin: 60px auto;
  padding-bottom: 80px;
}

.profile-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;

  opacity: 0;
  transform: scale(1.16);
  transition: opacity 1s ease, transform 1.3s ease;
}

.profile-grid.is-visible{
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 767px){

  .profile-wrap{
    width: min(96%, 960px);
    margin: 0 auto 60px;
  }

  .profile-grid{
    gap: 40px;
    transform: scale(1.08);
  }

  .profile-grid.is-visible{
    opacity: 1;
    transform: scale(1);
  }

}

@media (max-width: 767px){

  .profile-grid{
    grid-template-columns: 1fr;
    gap: 32px;
    transform: translateY(24px);
  }

  .profile-grid.is-visible{
    opacity: 1;
    transform: translateY(0);
  }

}

.profile-image img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Tablet */


.profile-name{
  margin-bottom: 0 !important;
  text-align: left !important;
}

.profile-yomi{
  color: #888;
  margin-bottom: 60px;
}




/* =========================================================
   5) PROFILE Definition List
   ========================================================= */
.profile-list{
  display: grid;
  grid-template-columns: 100px 1fr;
  row-gap: 14px;
  column-gap: 24px;
  margin-bottom: 60px;

  font-size: calc(15px * var(--official-font-scale, 1));
  line-height: 1.6;
  align-items: center;
}

.profile-list dt{
  color: #888;
  font-size: calc(12px * var(--official-font-scale, 1));
  letter-spacing: 0.05em;
  align-self: center;
}

.profile-list dd{
  margin: 0;
  font-weight: 400;
  color: #222;
  align-self: center;
}

/* 区切り余白 */
.profile-list dt:not(:first-of-type),
.profile-list dd:not(:first-of-type){
  padding-top: 8px;
}


/* =========================================================
   6) PROFILE SNS Links
   ========================================================= */
.profile-links{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.profile-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: calc(11px * var(--official-font-scale, 1));
  line-height: 1.5;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

.profile-link:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.profile-link-icon{
  display: flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}

.profile-link-icon svg{
  width: 14px;
  height: 14px;
}

.profile-link-text{
  min-width: 0;
  font-size: inherit;
  letter-spacing: .03em;
  overflow-wrap: anywhere;
}

/* ブランドカラー */
.profile-link.is-x{
  background: #000;
}

.profile-link.is-instagram{
  background: linear-gradient(
    45deg,
    #f58529,
    #dd2a7b,
    #8134af,
    #515bd4
  );
}

.profile-link.is-tiktok{
  background: #111;
}

.profile-link.is-youtube{
  background: #FF0000;
}

.profile-link.is-twitch{
  background: #9146FF;
}

.profile-link.is-note{
  background: #2f2f2f;
}

.profile-link.is-other{
  background: #555;
}

.profile-link.is-works{
  background: #5A7DAF;
  color: #fff;
}

/* TikTokアイコンだけ少し装飾 */
.is-tiktok .profile-link-icon{
  box-shadow:
    -2px 0 0 #25F4EE,
     2px 0 0 #FE2C55,
     0 5px 14px rgba(0, 0, 0, .35);
}


/* =========================================================
   7) PROFILE Banners
   ========================================================= */
.profile-banners{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;

  list-style: none;
  padding: 0;
  margin: 40px 0;
}

@media (max-width: 767px){

  .profile-banners{
    gap: 5px;
    margin: 0;
  }

}

.profile-banner-item img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}


/* =========================================================
   8) PROFILE Information Animation
   ---------------------------------------------------------
   NEWS / SCHEDULE / WORKS
   ========================================================= */
.scheduleWrap,
.newsWrap,
.workWrap{
  opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
}

.scheduleWrap{
  transform: translateY(12px);
}

.newsWrap{
  transform: translateY(24px);
}

.workWrap{
  transform: translateY(36px);
}

.scheduleWrap.is-visible,
.newsWrap.is-visible,
.workWrap.is-visible{
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   9) Responsive
   ---------------------------------------------------------
   Tablet
   ========================================================= */
@media (max-width: 767px){

  .models-grid,
  .modelsCover-grid{
    grid-template-columns: repeat(3, 1fr);
  }

}


/* =========================================================
   10) Responsive
   ---------------------------------------------------------
   Mobile
   ========================================================= */
@media (max-width: 767px){

  .models-item-wrap{
    padding-bottom: 24px;
  }

  .profile-grid{
    grid-template-columns: 1fr;
  }

  .profile-list{
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .profile-list dt{
    font-size: calc(13px * var(--official-font-scale, 1));
    color: #aaa;
  }

  .profile-list dd{
    margin-bottom: 14px;
    font-size: calc(15px * var(--official-font-scale, 1));
  }

}


@media (max-width: 640px){

  .models-grid,
  .modelsCover-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .models-item.from-bottom{
    transform: translateY(40px);
  }

}
/* 768px以上：プロフィールの2列を均等に縮める */
@media (min-width: 768px){
  .profile-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-grid > *{ min-width: 0; overflow-wrap: anywhere; }
}

/* スマホ・タブレット：index.html の .wrap（88%）と横幅を揃える */
@media (max-width: 1024px){
  .modelsCover,
  .profile-wrap,
  .profile_ig,
  .profile_x,
  .profile_tk{
    width: 88%;
    max-width: none;
    margin-inline: auto;
  }
}

/* スマホ：SNSリンクはアイコンのみ。文字は読み上げ用に残す */
@media (max-width: 767px){
  .profile-links .profile-link{
    position: relative;
    width: 40px;
    height: 40px;
    padding: 8px;
    gap: 0;
  }
  .profile-links .profile-link-text{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

/* タブレット：写真と基本情報の列間隔を控えめにする */
@media (min-width: 768px) and (max-width: 1024px){
  .profile-grid{
    gap: 30px;
  }
}
