@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px) {
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px) {
  /*必要ならばここにコードを書く*/
}

/************************************
** FNZ 共通スタイル
************************************/

/* レイアウトコンテナ */
.video-archive-main {
  max-width: 1000px;
  margin: 0 auto;
}

.actress-archive-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
  background: transparent;
}

.favorites-main {
  max-width: 960px;
  margin: 0 auto;
}

.search-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
}

.about-site-main {
  line-height: 1.7;
  font-size: 15px;
  padding: 10px;
}

@media (max-width: 768px) {
  .about-site-main {
    padding: 1.8em 1.2em;
  }
}

/* 共通見出し */
.video-archive-main > h1,
.favorites-main > h1,
.search-heading,
.genre-list-wrapper h1 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 0.8em;
}

.video-archive-main > h1 {
  margin-bottom: 0.6em;
}

.genre-list-wrapper h1 {
  margin-bottom: 16px;
}

.search-heading {
  margin-bottom: 0.8em;
}

.about-site-main h1 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 1em;
}

.about-site-main h2 {
  font-size: 18px;
  font-weight: bold;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.about-site-main p {
  margin: 0 0 1em;
}

.about-site-main .about-site-mail {
  font-weight: bold;
}

/* 本文ベース */
body.home .main,
body.front-page .main,
body.tax-genre .main,
body.tax-maker .main,
body.tax-label .main,
body.tax-director .main,
body.page-template-page-genre-list .main,
body.page-template-page-favorites-xpost .main,
body.page-template-page-favorites-actress .main,
body.page-template-page-about-site .main {
  padding: 20px;
}

body.post-type-archive-actress .main,
.no-scrollable-main .main {
  padding: 10px;
}

body.single-x_post .main {
  background-color: #f4f5f7;
  padding: 10px;
}

body.single-actress .main {
  margin: 0 auto;
  background-color: #f4f5f7;
  padding: 0;
}

/* カードグリッド */
.video-list-grid,
.related-videos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

@media (max-width: 900px) {
  .video-list-grid,
  .related-videos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .favorites-main .video-list-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* 動画カード */
.video-card,
.related-video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px #ccc;
  color: #222;
  transition: box-shadow 0.2s;
}

.video-card:hover,
.related-video-card:hover {
  box-shadow: 0 4px 16px #bbb;
}

.video-card__link,
.related-video-card__link,
.actress-card-link,
.actress-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.video-thumb-wrapper,
.thumbnail-wrapper,
.related-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #1b1b1b;
  margin-bottom: 0.7em;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.video-thumb-wrapper img,
.thumbnail-wrapper img,
.related-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-thumb-wrapper .no-image,
.thumbnail-wrapper .no-image,
.related-video-thumb .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 1em;
}

.video-thumb-wrapper .video-duration,
.thumbnail-wrapper .video-duration,
.related-video-thumb .video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
}

.video-title,
.related-video-title {
  font-size: 0.7em;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin-bottom: 0.3em;
  padding: 0 1em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  white-space: normal;
  line-height: 1.4;
  max-height: 2.8em;
}

.video-title--center,
.related-video-title {
  text-align: center;
  padding-bottom: 1em;
}

.video-card__favorite,
.related-video-card__favorite,
.actress-card__favorite {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
}

.actress-card__favorite {
  top: 0;
  right: 0;
}

.fnz-favorites-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #ff6b6b;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.fnz-favorites-button:hover {
  transform: scale(1.05);
}

.fnz-favorites-button.active {
  color: #ff3f3f;
}

.video-card__favorite .fnz-fav-label,
.related-video-card__favorite .fnz-fav-label,
.actress-card__favorite .fnz-fav-label {
  display: none;
}

.simplefavorite-button {
  font-size: 2rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

/* フィルター */
.video-filters,
.search-filters,
.actress-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1rem 0;
  font-size: 14px;
}

.video-filters select,
.actress-search-form select {
  flex: 1 1 240px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.video-filters label,
.search-filters label,
.actress-search-form .favorites-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex: 0 0 auto;
}

.video-filters input[type="checkbox"],
.search-filters input[type="checkbox"],
.actress-search-form .favorites-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.search-filters {
  flex-direction: column;
  margin-bottom: 16px;
}

.actress-search-form {
  gap: 8px;
  margin-bottom: 16px;
}

.actress-search-form input[type="search"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.actress-search-form button {
  padding: 8px 16px;
  border: none;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
}

.actress-search-form .favorites-toggle {
  line-height: 1;
  order: 3;
  flex: 1 1 50%;
  margin-top: 0;
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .video-filters select,
  .video-filters label {
    flex: 1 1 100%;
  }

  .actress-search-form input[type="search"],
  .actress-search-form select,
  .actress-search-form .favorites-toggle {
    flex: 1 1 100%;
  }

  .actress-pagination .prev,
  .actress-pagination .next {
    display: none !important;
  }
}

/* ページネーション */
.actress-pagination,
.pagination-wrapper,
.search-pagination {
  margin: 1rem 0;
  text-align: center;
}

.actress-pagination .page-numbers,
.pagination-wrapper .page-numbers,
.search-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2em;
  padding: 0.4em 0.6em;
  box-sizing: border-box;
  white-space: nowrap;
  border-radius: 6px;
}

.pagination-wrapper .page-numbers,
.search-pagination .page-numbers {
  margin: 0 4px;
  border: 1px solid #d0d3d8;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}

.pagination-wrapper .page-numbers.current,
.search-pagination .page-numbers.current {
  background: #ccc;
  border-color: #ccc;
  font-weight: bold;
}

@media (max-width: 600px) {
  .actress-pagination .page-numbers {
    min-width: 3em;
    padding: 0.35em 0.5em;
    font-size: 0.9em;
  }
}

/* お気に入り関連 */
.favorites-main h1 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 0.8em;
}

.favorites-actress h1 {
  text-align: center;
}

.favorites-summary {
  font-size: 16px;
  color: #666;
  margin-bottom: 1.5em;
  text-align: center;
}

.favorites-empty {
  text-align: center;
  color: #666;
  margin-top: 2em;
}

.card-favorite-action {
  margin-top: 1em;
}

.favorites-action {
  margin: 0 10px;
}

.favorites-action button {
  font-size: 2rem;
  background-color: transparent;
  border: none;
  color: #ff6b6b;
  cursor: pointer;
}

.favorites-action i::before {
  vertical-align: middle;
}

/* 女優カード */
.actress-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.actress-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 1.4em 1.1em 1em;
  color: #222;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.actress-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.actress-card-link {
  gap: 12px;
}

.actress-card__link {
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.actress-card__link:hover,
.actress-card-link:hover {
  text-decoration: none;
}

.actress-thumb-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.actress-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.actress-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: center;
}

.actress-ruby {
  color: #888;
  font-size: 0.8em;
}

.actress-name {
  font-size: 16px;
  font-weight: bold;
}

.actress-name .actress-count {
  font-size: 12px;
  color: #ff6b6b;
  margin-left: 4px;
  font-weight: normal;
}

@media (max-width: 720px) {
  .actress-thumb-wrapper {
    width: 96px;
    height: 96px;
  }

  .actress-name {
    font-size: 14px;
  }
}

.actress-card__favorite .fnz-favorites-button {
  width: 36px;
  height: 36px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.actress-card__favorite button {
  font-size: 2rem;
  background-color: transparent;
  border: none;
  color: #ff6b6b;
  padding: 1rem;
  cursor: pointer;
}

/* 女優アーカイブ専用 */
.actress-summary {
  font-size: 16px;
  color: #666;
  margin-bottom: 16px;
}

.actress-archive-main .actress-list-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.actress-archive-main .actress-card {
  align-items: stretch;
}

.actress-archive-main .actress-thumb-wrapper {
  margin-bottom: 1em;
}

.actress-archive-main .actress-meta {
  text-align: left;
}

.actress-archive-main .actress-ruby {
  font-size: 0.7em;
  line-height: 1;
  margin-bottom: -4px;
}

.actress-archive-main .actress-name {
  font-size: 15px;
}

@media (max-width: 900px) {
  .actress-archive-main .actress-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .actress-archive-main .actress-card {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0.8em 0.6em;
    gap: 12px;
  }

  .actress-archive-main .actress-thumb-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .actress-archive-main .actress-meta {
    gap: 2px;
    min-width: 0;
  }

  .actress-archive-main .actress-name {
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .actress-archive-main .actress-name .actress-count {
    font-size: 10px;
    margin-left: 2px;
  }
}

/* 女優詳細ページ */
.actress-profile {
  width: 100%;
  margin: 0 0 2em;
  padding: 1.2em;
  border-radius: 12px;
  box-shadow: 0 2px 8px #ccc;
  background: #fff;
}

.actress-profile-inner {
  display: flex;
  gap: 1.5em;
}

.actress-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  box-shadow: 0 2px 8px #ccc;
  align-self: center;
  display: block;
}

.profile-ruby {
  color: #888;
  font-size: 1em;
  line-height: 1;
  margin-bottom: 0;
}

.actress-heading-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 20px;
}

.actress-heading {
  margin: 0;
  padding: 0;
  line-height: 1.1;
}

.actress-heading-favorite {
  display: flex;
  align-items: center;
}

.actress-heading-favorite .fnz-favorites-button {
  width: 48px;
  height: 48px;
}

.actress-info-table {
  font-size: 1em;
  margin: 0;
  border-collapse: collapse;
}

.actress-info-table th {
  text-align: left;
  padding-right: 0.5em;
}

.profile-actions {
  margin-top: 1em;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.profile-actions .profile-link {
  display: inline-block;
  color: #fff;
  background: #e91e63;
  padding: 0.5em 1.2em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

@media (max-width: 900px) {
  .actress-profile {
    padding: 1em;
  }

  .actress-profile-inner {
    align-items: center;
    text-align: center;
    flex-direction: column;
  }

  .actress-heading-row {
    justify-content: center;
  }

  .actress-photo {
    width: 100px;
    height: 100px;
  }
}

/* 単一動画ページ */
.x_post {
  width: 100%;
}

.x_post h1 {
  font-size: 18px;
}

.video-wrapper {
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-wrapper video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.action-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.action-bar__button {
  display: flex;
  justify-content: center;
}

.action-bar__button a {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  background: #ff6b6b;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
}

.action-bar__favorite {
  position: absolute;
  right: 0;
  display: flex;
  justify-content: flex-end;
}

.iframe-wrapper {
  height: 720px;
  max-height: min(100%, 75vw);
}

.iframe-wrapper div {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 14px;
}

.iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  max-width: 1280px;
  position: absolute;
  top: 0;
  left: 0;
}

.center {
  text-align: center;
}

.fanza-link-wrapper {
  background-color: #fff;
  padding: 20px 50px;
}

@media (max-width: 900px) {
  .fanza-link-wrapper {
    padding: 20px;
  }
}

.fanza-link-wrapper .title a {
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
}

.fanza-product-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.fanza-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fanza-video-title {
  display: flex;
  align-items: center;
  white-space: nowrap;
  margin-bottom: 10px;
  font-weight: bold;
  color: #ff6b6b;
  overflow: hidden;
  gap: 12px;
}

.fanza-video-title::before,
.fanza-video-title::after {
  content: "";
  flex-grow: 1;
  border-top: 3px solid #ff6b6b;
}

.single-x_post .genre-wrapper {
  margin: 40px 0;
}

.single-x_post .genre-wrapper .title {
  font-weight: bold;
  font-size: 16px;
}

.genre-list-wrapper .genre-wrapper {
  margin-top: 30px;
}

.genre-list-wrapper .genre-wrapper .title {
  font-size: 16px;
  color: #666;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background-color: #f2f2f2;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background-color 0.2s, color 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.genre-tag:hover {
  background-color: #ff6b6b;
  color: #fff;
}

.video-taxonomy-table {
  font-size: 20px;
}

/* 関連動画 */
.related-videos {
  margin: 48px 0;
}

.related-videos__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
}

.related-videos__title {
  font-size: 18px;
  font-weight: bold;
}

/* 検索ページ */
.search-summary {
  font-size: 16px;
  color: #666;
  margin-bottom: 1.2em;
}

.search-pagination .page-numbers {
  color: #333;
}

/* テキスト装飾 */
.no-image {
  color: #aaa;
}
