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

/* ===============================
   動画カードのタイトル
=============================== */
.video-title {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.video-item {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.thumb-img {
    width: 100%;
    border-radius: 6px;
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin:20px 0;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
}

.section-more {
    font-size: 14px;
    color: #aaa;
    text-decoration: none;
}

.section-more:hover {
    text-decoration: underline;
}

.tag-archive-header {
  margin: 20px;
}

.tag-archive-title {
  font-size: 20px;
  font-weight: bold;
}

.video-search {
  display: flex;
  gap: 10px;
  padding: 20px;
}

.video-search input[type="search"] {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.video-search button {
  padding: 10px 14px;
  border-radius: 6px;
  background: #333;
  color: #fff;
  border: none;
}

.search-result-header {
  padding: 20px;
}

.search-title {
  font-size: 18px;
  font-weight: bold;
}

.search-count {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.no-result {
  padding: 40px 20px;
  text-align: center;
}

.no-result-sub {
  font-size: 14px;
  color: #777;
  margin-top: 8px;
}

.video-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
}

.video-tag-item {
  font-size: 13px;
  padding: 6px 10px;
  background: #222;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}

.video-tag-item:hover {
  background: #333;
}

.video-section {
  padding: 20px 0;
}

/* ===============================
   single video
=============================== */

.single-sample {
  mmargin: 0 auto 16px;
  max-width: 1100px;
}

.single-sample-iframe {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.single-sample-iframe iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.single-title {
  font-size: 16px;
  margin: 0px 0px 16px;
}

.single-fanza {
  text-align: center;
  margin: 12px 0 20px;
}

.single-fanza-btn {
  display: inline-block;
  padding: 14px 30px;
  background: #e53935;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
}

.single-fanza-btn:hover {
  opacity: 0.85;
}

.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 20px;
}

.single-tag {
  font-size: 13px;
  padding: 6px 10px;
  background: #222;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}

.single-tag:hover {
  background: #333;
}

.single-related {
  margin-top: 30px;
}

.single-related-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0 20px 12px;
}

/* ===============================
   タグページ（taxonomy-video_tag）
=============================== */

/* 全体 */
.tag-header {
  padding: 28px 20px 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

/* タグ名 */
.tag-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* タグコピー */
.tag-copy {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  max-width: 680px;
}

/* 動画一覧（既存gridを流用） */
.tax-video_tag .video-grid {
  padding: 0 20px 20px;
}

/* ===============================
   関連タグ
=============================== */

.related-tags {
  padding: 24px 20px 32px;
  border-top: 1px solid #eee;
  margin-top: 24px;
}

.related-tags-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
}

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

.related-tag {
  display: inline-block;
  font-size: 13px;
  padding: 6px 10px;
  background: #222;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}

.related-tag:hover {
  background: #333;
}

/* ===============================
   スマホ最適化
=============================== */

/*1023px以下*/
@media screen and (max-width: 1023px){
  .single-sample {
    max-width: 1280px;
    margin-bottom: 20px;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  
}

/*480px以下*/
@media screen and (max-width: 480px){
    .video-grid{
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    
    .video-title {
        font-size: 13px;
    }
    
    .tag-header {
        padding: 20px 16px 16px;
    }

　  .tag-title {
        font-size: 20px;
    }

  　.tag-copy {
        font-size: 13px;
    }

  　.tax-video_tag .video-grid {
        padding: 0 16px 16px;
  　}

  　.related-tags {
        padding: 20px 16px 28px;
  　}
}
