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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
.user_wrap {
    display: flex
;
    margin: 30px 0;
    padding: 13px 20px;
    border-radius: 4px;
    background: rgb(65 68 122);
}

.user_img img {
    border-radius: 150px;
    vertical-align: bottom;
}

.user_right_wrap {
    display: inline-block;
    max-width: 70%;
    float: left;
    margin: 17px 0 0 20px;
    color: #ffffff;
}

.user_scname {
    color: #d971f2;
}
.user_follower  {
    color: #d971f2;
}

.video-card {
    margin: 3em;
}

.download-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}
.download-btn:hover {
    background: #388e3c;
}
.download-btn i {
    margin-right: 8px;
}

div.video-card p {
    text-align: right;
    font-size: small;
}

/* style.css または子テーマCSS */
.tiktok-feed {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
}

.tiktok-video {
    width: 100%;
    max-width: 400px;
    margin: 10px auto;
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 177.78%; /* 9:16 アスペクト比 */
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.video-info {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    font-size: 14px;
}

.tiktok-secondary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    font-size: 13px;
}

.tiktok-secondary-meta a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.video-actions {
    position: absolute;
    top: 20px;      /* 右上配置（調整可） */
    right: 15px;    /* 右寄せ */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.share-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.3s;
}

.share-btn:hover {
    background: rgba(255,255,255,0.4);
}

/* カテゴリー/タグのスタイル */
.categories, .tags {
    margin-top: 10px;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-link {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.filter-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.like-section {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 10;
}

.like-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #ff6b6b;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: background 0.3s;
}

.like-btn:hover {
    background: rgba(255,255,255,0.3);
}

.like-btn.liked {
    color: #ff4757;
    background: rgba(255,71,87,0.3);
}

.like-count {
    font-weight: bold;
}

/* 可愛い関連動画カード */
.related-posts-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fdf2f8 0%, #e0f2fe 100%);
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.related-post-item {
    flex: 0 0 150px;
    max-width: 150px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 18px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-post-item:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0,0,0,0.18);
    z-index: 10;
}

.related-post-item a {
    text-decoration: none;
    display: block;
    color: inherit;
}

.related-post-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    transition: transform 0.3s ease;
}

.related-post-item:hover img {
    transform: scale(1.08);
}

.related-post-item .title {
    padding: 0.6rem 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(to bottom, #fff, #f8f9fa);
    border-radius: 0 0 16px 16px;
    line-height: 1.3;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .related-post-item {
        flex: 0 0 130px;
        max-width: 130px;
    }
    .related-post-item img {
        height: 130px;
    }
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
	.video-card {
		margin: 1em;
	}
}

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

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

