@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/************************************
** AV特定：女優ページデザイン補正
************************************/

/* 女優ページ全体の横幅崩れ防止 */
.tax-actress_tag .entry-content,
.tax-actress_tag .article,
.tax-actress_tag .main,
.tax-actress_tag main {
  max-width: 100%;
  box-sizing: border-box;
}

/* ヒーロー全体 */
.tax-actress_tag .avtok-actress-hero,
.tax-actress_tag .avtok-actor-hero {
  clear: both;
  width: 100%;
  max-width: 100%;
  grid-column: 1 / -1;
  box-sizing: border-box;
  writing-mode: horizontal-tb;
}

/* プロフィール枠 */
.tax-actress_tag .avtok-actress-profile,
.tax-actress_tag .avtok-actor-profile {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 22px;
  background: #fff7f8;
  border-radius: 16px;
  border: 1px solid #ffe1e5;
  box-sizing: border-box;
  writing-mode: horizontal-tb;
}

/* 画像枠：画像がなくても必ず幅を確保 */
.tax-actress_tag .avtok-actress-profile-image,
.tax-actress_tag .avtok-actor-profile-image {
  width: 150px;
  height: 150px;
  min-width: 150px;
  max-width: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff0f4, #ffe3ea);
  border: 4px solid #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  color: #d64b70;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

/* 画像なしの場合のプレースホルダー */
.tax-actress_tag .avtok-actress-profile-image:empty::before,
.tax-actress_tag .avtok-actor-profile-image:empty::before {
  content: "NO IMAGE";
}

/* imgがある場合 */
.tax-actress_tag .avtok-actress-profile-image img,
.tax-actress_tag .avtok-actor-profile-image img {
  width: 150px;
  height: 150px;
  max-width: 150px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* プロフィール本文側：文字が縦に落ちるのを防ぐ */
.tax-actress_tag .avtok-actress-profile-body,
.tax-actress_tag .avtok-actor-profile-body,
.tax-actress_tag .avtok-actress-profile-content,
.tax-actress_tag .avtok-actor-profile-content,
.tax-actress_tag .avtok-actress-profile-text,
.tax-actress_tag .avtok-actor-profile-text {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  writing-mode: horizontal-tb;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.8;
  box-sizing: border-box;
}

/* 見出し類 */
.tax-actress_tag .avtok-actress-hero h1,
.tax-actress_tag .avtok-actor-hero h1,
.tax-actress_tag .avtok-actress-profile h1,
.tax-actress_tag .avtok-actor-profile h1,
.tax-actress_tag .avtok-actress-profile h2,
.tax-actress_tag .avtok-actor-profile h2 {
  writing-mode: horizontal-tb;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.5;
}

/* プロフィール内のpやdiv */
.tax-actress_tag .avtok-actress-profile p,
.tax-actress_tag .avtok-actor-profile p,
.tax-actress_tag .avtok-actress-profile div,
.tax-actress_tag .avtok-actor-profile div {
  max-width: 100%;
  writing-mode: horizontal-tb;
  word-break: normal;
  overflow-wrap: break-word;
}

/* タグ・リンク周り */
.tax-actress_tag .avtok-actress-tags,
.tax-actress_tag .avtok-actor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tax-actress_tag .avtok-actress-tags a,
.tax-actress_tag .avtok-actor-tags a,
.tax-actress_tag .avtok-actress-tags span,
.tax-actress_tag .avtok-actor-tags span {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #ffd6df;
  color: #d64b70;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

/* 注目作品 */
.tax-actress_tag .avtok-actress-featured-row,
.tax-actress_tag .avtok-actor-featured-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tax-actress_tag .avtok-actress-work-card,
.tax-actress_tag .avtok-actor-work-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.tax-actress_tag .avtok-actress-work-card img,
.tax-actress_tag .avtok-actor-work-card img {
  width: 92px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.tax-actress_tag .avtok-actress-work-title,
.tax-actress_tag .avtok-actor-work-title {
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.5;
}

/* 一覧カードの崩れ防止 */
.tax-actress_tag .entry-card,
.tax-actress_tag .related-entry-card,
.tax-actress_tag .a-wrap {
  max-width: 100%;
  box-sizing: border-box;
}

.tax-actress_tag .entry-card-title,
.tax-actress_tag .related-entry-card-title {
  word-break: normal;
  overflow-wrap: break-word;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/

/*1023px以下*/
@media screen and (max-width: 1023px) {
  .tax-actress_tag .avtok-actress-featured-row,
  .tax-actress_tag .avtok-actor-featured-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/*834px以下*/
@media screen and (max-width: 834px) {
  .tax-actress_tag .avtok-actress-profile,
  .tax-actress_tag .avtok-actor-profile {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
  }

  .tax-actress_tag .avtok-actress-profile-image,
  .tax-actress_tag .avtok-actor-profile-image,
  .tax-actress_tag .avtok-actress-profile-image img,
  .tax-actress_tag .avtok-actor-profile-image img {
    width: 130px;
    height: 130px;
    min-width: 130px;
    max-width: 130px;
  }
}

/*768px以下*/
@media screen and (max-width: 768px) {
  .tax-actress_tag .avtok-actress-profile,
  .tax-actress_tag .avtok-actor-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tax-actress_tag .avtok-actress-profile-image,
  .tax-actress_tag .avtok-actor-profile-image {
    margin: 0 auto;
  }

  .tax-actress_tag .avtok-actress-featured-row,
  .tax-actress_tag .avtok-actor-featured-row {
    grid-template-columns: 1fr;
  }

  .tax-actress_tag .avtok-actress-work-card,
  .tax-actress_tag .avtok-actor-work-card {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .tax-actress_tag .avtok-actress-work-card img,
  .tax-actress_tag .avtok-actor-work-card img {
    width: 90px;
    height: 68px;
  }
}

/*480px以下*/
@media screen and (max-width: 480px) {
  .tax-actress_tag .avtok-actress-profile,
  .tax-actress_tag .avtok-actor-profile {
    padding: 16px;
    border-radius: 14px;
  }

  .tax-actress_tag .avtok-actress-profile-image,
  .tax-actress_tag .avtok-actor-profile-image,
  .tax-actress_tag .avtok-actress-profile-image img,
  .tax-actress_tag .avtok-actor-profile-image img {
    width: 120px;
    height: 120px;
    min-width: 120px;
    max-width: 120px;
  }

  .tax-actress_tag .avtok-actress-work-card,
  .tax-actress_tag .avtok-actor-work-card {
    grid-template-columns: 1fr;
  }

  .tax-actress_tag .avtok-actress-work-card img,
  .tax-actress_tag .avtok-actor-work-card img {
    width: 100%;
    height: auto;
    max-height: 180px;
  }
}