@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) {
  /*必要ならばここにコードを書く*/
}

/*1024px以上 PC専用*/
@media screen and (min-width: 1025px) {

  /*投稿レイアウト*/
  .video-layout {
    display: flex;
  }

  .video-layout-left {
    flex: 2;
  }

  .video-layout-right {
    flex: 3;
  }
}


/* 投稿レイアウト */
.video-layout-left,
.video-layout-right {
  padding: 0 0.625rem;
}

/* 投稿ギャラリー */
.gallery-box {
  margin-bottom: 1.5rem;
}

.gallery-main {
  margin-bottom: 0.625rem;
}

.gallery-main img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-list {
  display: flex;
  gap: 5px;
}


/* section1 評価 */
.rating-box {
  display: flex;
  justify-content: center;
  font-size: clamp(1rem, 3.2vw, 2.4rem);
  white-space: nowrap;
}

/* 評価(左) */
.rating-box-left {
  border: 1px solid var(--cocoon-thin-color);
}

.rating-table {
  border-collapse: collapse;
  border-spacing: 0;
  /* テーマ無効化 */
  margin-bottom: 0 !important;
}

.rating-table tr {
  /* テーマ無効化 */
  background-color: #fff !important;
}

.rating-table tr:not(:last-child) {
  border-bottom: 1px solid var(--cocoon-thin-color);
}

.rating-table th,
.rating-table td {
  /* テーマ無効化 */
  padding: 0.25rem 1rem;
  border: 0;
}

.rating-table tr:first-child th,
.rating-table tr:first-child td {
  width: 1%;
  border-top: 0;
}

.rating-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
}

.rating-stars {
  display: inline-block;
  font-size: 1.25em;
  line-height: 1;
  font-family: "Times New Roman", serif;
  --percent: 0%;
  --star-color: #e1e1e1;
}

.rating-stars::before {
  content: '★★★★★';
  letter-spacing: 0.125rem;
  background: linear-gradient(90deg, var(--star-background) var(--percent), var(--star-color) var(--percent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 各行の星色 */
.rating-table tbody tr:nth-child(1) {
  --star-background: #f5a623;
}

.rating-table tbody tr:nth-child(2) {
  --star-background: #ff4081;
}

.rating-table tbody tr:nth-child(3) {
  --star-background: #3b82f6;
}

/* 評価(右) */
.rating-box-right {
  border: 1px solid var(--cocoon-thin-color);
  border-left: none;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.rating-box-right .total-label {
  margin: 0;
  font-weight: 800;
  font-size: 0.75rem;
  color: #495057;
}

.rating-box-right .total-score {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.video-point {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  line-height: 1.6;
}


/* section2 概要 */


/* section3 口コミ */
.review-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.review-icon {
  flex: 0 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.review-icon svg {
  width: 100%;
  height: auto;
  fill: #999;
}

.review-bubble-wrap {
  flex: 6;
  min-width: 0;
}

.review-bubble {
  position: relative;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
}

.review-bubble::after {
  content: "";
  position: absolute;
  top: 12px;
  left: -9px;
  width: 0;
  height: 0;
  border-width: 10px 10px 10px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
  filter: drop-shadow(-1px 0 0 #e0e0e0);
}

.review-bubble p {
  margin-bottom: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.review-meta {
  color: #666;
  font-size: 0.9rem;
}

.review-name {
  font-weight: 700;
  margin-right: 0.4rem;
  overflow-wrap: anywhere;
}


/* 「購入する」 */
.video-buy {
  text-align: center;
  margin-top: 2rem;
}

.buy-button {
  display: inline-block;
  background: linear-gradient(135deg, #ff4081, #ff7f50);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 3rem;
  border-radius: 42px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.buy-button:hover {
  background: linear-gradient(135deg, #ff2e70, #ff6b3d);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}


/* カテゴリ系ラベルの一括非表示 */
.cat-label,
.entry-card-category,
.post-category,
.meta-category,
.breadcrumb .cat,
.entry-categories,
.cat-icon,
.category-link {
  display: none !important;
}

/* 視覚的に非表示だがスクリーンリーダーには読ませる */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
