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

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

/* 動画（埋め込み）: 横幅を記事の幅に合わせる。HTML は書き換えず、CSS だけで整える */
.entry-content figure.wp-block-embed {
  margin: 0 0 1em;
}
.entry-content figure.wp-block-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* 再生する前の画面（サムネイルと再生ボタン）。枠は 16:9。押されたら、同じ枠いっぱいに iframe が出る */
.entry-content figure.wp-block-embed.has-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.entry-content figure.wp-block-embed.has-poster iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.embed-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  /* サムネイルは、切らずに全体を見せる（枠と形が違うときは、左右か上下が黒くなる） */
  background: #000 center / contain no-repeat;
  cursor: pointer;
}
.embed-play[hidden] {
  display: none;
}
/* 再生の印（丸の中に三角） */
.embed-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
}
.embed-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -14px 0 0 -9px;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent #fff;
}
.embed-play:hover::before {
  background: rgba(0, 0, 0, 0.8);
}

/* 動画の切り替えボタン（2 本以上あるときだけ、javascript.js が作る） */
.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.5em;
}
.entry-content figure.wp-block-embed.is-tabbed {
  margin-bottom: 8px;
}
.tab-button {
  min-width: 48px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
}
.tab-button.is-active {
  border-color: #333;
  background: #333;
  color: #fff;
}
.entry-content figure.wp-block-embed.is-hidden {
  display: none;
}
.entry-content figure.wp-block-embed.is-tabbed figcaption {
  display: none;
}

/* カテゴリー・女優・タグの欄: それぞれ行を分ける。女優とタグの行は、先頭に名前を付ける */
.entry-categories-tags .entry-categories,
.entry-categories-tags .entry-tags {
  display: block;
  margin: 0;
}
.entry-row-label {
  display: inline-block;
  min-width: 4.5em;
  margin-right: 8px;
  font-size: 13px;
  font-weight: bold;
}

/* カテゴリー・女優・タグなどのボタン: 指で押しやすい大きさにする（親テーマは、高さ 26px・文字 12px・すき間 2px）。
   記事ページの欄と、一覧のページ（女優一覧・タグ一覧など）の両方に効く */
.entry-categories-tags .cat-link,
.entry-categories-tags .tag-link,
.entry-content .entry-tags .tag-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 0 8px 8px 0;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.3;
  vertical-align: middle;
}
.entry-content .entry-tags .tag-link {
  min-height: 40px;
}
.entry-categories-tags .tag-link .fa,
.entry-categories-tags .cat-link .fa,
.entry-content .entry-tags .tag-link .fa {
  margin-right: 5px;
}
.entry-categories-tags .entry-row-label {
  vertical-align: middle;
  margin-bottom: 8px;
}

/* 本文のあとの表（商品番号・元動画タイトル）: 左の列を、項目の名前の幅にする */
.entry-content .wp-block-table td:first-child {
  width: 9em;
  background: #f6f6f6;
  font-weight: bold;
  white-space: nowrap;
}

/* スマホ・タブレットのヘッダーのメニュー: 親テーマは 2 列（1 項目が幅の半分）。
   項目が 6 つあるので、3 列 × 2 行に並べる（1 行に 3 つずつ。端数が出ても、左から詰める） */
#navi .navi-in > .menu-mobile {
  flex-wrap: wrap;
  justify-content: flex-start;
}
#navi .navi-in > .menu-mobile > li {
  flex: 0 0 33.333%;
  width: 33.333%;
  min-width: 0;
}

/* サイドバーの「さらに見る」のボタン */
.top-terms-more {
  margin: 10px 0 0;
  text-align: center;
}
.top-terms-more-link {
  display: block;
  padding: 8px 12px;
  border: 1px solid #bbb;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
}
.top-terms-more-link:hover {
  background: #f3f3f3;
}

/* ヘッダーのサイト名の左に、サイトのアイコンを出す（絵のアドレスは functions.php が入れる。アイコンが無ければ何も出ない） */
#header .site-name-text {
  display: inline-flex;
  align-items: center;
}
#header .site-name-text::before {
  content: "";
  flex: none;
  width: 1.6em;
  height: 1.6em;
  margin-right: 0.35em;
  background: center / contain no-repeat;
}

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

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

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

/* お気に入り（プラグイン Favorites）: 記事ページのボタンは、動画の下に置く。押しやすい高さにする */
.favorite-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 1.5em;
}
/* 番号のボタンは左、お気に入りのボタンは右端 */
.favorite-row .tab-buttons {
  margin: 0 auto 0 0;
}
.entry-content .simplefavorite-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
}
.entry-content .simplefavorite-button.active {
  border-color: #333;
  background: #333;
  color: #fff;
  opacity: 1;
}
/* お気に入りの一覧のページ: トップの一覧と同じカード（親テーマの見た目）を使う。
   ここでは、本文の中のリスト・図・リンクに付く見た目だけを消す */
.entry-content ul.favorites-list {
  margin: 1em 0;
  padding: 0;
  list-style: none;
}
.entry-content ul.favorites-list > li {
  margin: 0;
  padding: 0;
  border: 0;
}
.entry-content ul.favorites-list .entry-card-thumb {
  margin-top: 0;
  margin-bottom: 0;
}
.entry-content ul.favorites-list .entry-card-thumb a {
  display: block;
}
.entry-content ul.favorites-list .entry-card-title a {
  color: inherit;
  text-decoration: none;
}
/* 一覧の中のお気に入りのボタン: カードの右下（日付のすぐ上）に、右寄せで置く。
   親テーマのカードは、サムネイルを左に浮かせる作りで、右側の高さがサムネイルとそろわない。
   ここだけ横並び（flex）にして、右側をカードの高さいっぱいにし、ボタンと日付を下に寄せる */
.entry-content ul.favorites-list .entry-card {
  display: flex;
  align-items: stretch;
}
.entry-content ul.favorites-list .entry-card-thumb {
  flex: 0 0 40%;
  float: none;
  width: 40%;
}
.entry-content ul.favorites-list .entry-card-content {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  margin-left: 2%;
  padding-bottom: 0;
}
.entry-content ul.favorites-list .entry-card-meta {
  position: static;
}
.favorite-item-button {
  display: flex;
  justify-content: flex-end;
  margin: auto 0 6px;
  padding-top: 8px;
}
