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

.insert-page.insert-page-729  {
    border: 1px solid #000; /* 枠線の太さと色 */
    padding: 20px; /* 内側の余白 */
    border-color: #c1c1c1;
}



/* WebP画像用プレイヤーUI */
.webp-player-container {
    position: relative;
    max-width: 100%;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    margin: 20px 0;
}

.webp-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
}

.webp-player-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

/* 中央の再生ボタン */
.webp-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ff1493, #ff69b4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(255, 20, 147, 0.5);
    transition: transform 0.3s ease;
}

.webp-play-overlay::before {
    content: '';
    position: absolute;
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

.webp-play-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 35px solid #fff;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    margin-left: 8px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.webp-player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 40px 16px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.webp-play-pause-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.webp-play-pause-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.webp-progress-container {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.webp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff1493, #ff69b4);
    width: 0%;
    border-radius: 2px;
}

.webp-time-display {
    color: #fff;
    font-size: 13px;
    min-width: 100px;
    text-align: center;
    flex-shrink: 0;
}

.webp-time-display::before {
    content: "0:00";
}

.webp-time-display::after {
    content: " / 0:00";
}

.webp-volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.webp-volume-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webp-volume-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.webp-fullscreen-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.webp-fullscreen-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* タブレット対応 (768px以下) */
@media (max-width: 768px) {
    .webp-play-overlay {
        width: 100px;
        height: 100px;
    }
    
    .webp-play-overlay::before {
        width: 90px;
        height: 90px;
    }
    
    .webp-play-overlay::after {
        border-left: 30px solid #fff;
        border-top: 18px solid transparent;
        border-bottom: 18px solid transparent;
        margin-left: 6px;
    }
    
    .webp-player-controls {
        gap: 8px;
        padding: 30px 12px 12px;
    }
    
    .webp-time-display {
        min-width: 80px;
        font-size: 12px;
    }
    
    .webp-play-pause-btn,
    .webp-volume-btn,
    .webp-fullscreen-btn {
        width: 32px;
        height: 32px;
    }
    
    .webp-play-pause-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .webp-volume-btn svg,
    .webp-fullscreen-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* スマホ対応 (480px以下) */
@media (max-width: 480px) {
    .webp-play-overlay {
        width: 90px;
        height: 90px;
    }
    
    .webp-play-overlay::before {
        width: 80px;
        height: 80px;
    }
    
    .webp-play-overlay::after {
        border-left: 26px solid #fff;
        border-top: 16px solid transparent;
        border-bottom: 16px solid transparent;
        margin-left: 5px;
    }
    
    .webp-player-container {
        border-radius: 4px;
        margin: 15px 0;
    }
    
    .webp-player-controls {
        gap: 6px;
        padding: 25px 10px 10px;
    }
    
    .webp-time-display {
        min-width: 70px;
        font-size: 11px;
    }
    
    .webp-play-pause-btn,
    .webp-volume-btn,
    .webp-fullscreen-btn {
        width: 28px;
        height: 28px;
    }
    
    .webp-play-pause-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .webp-volume-btn svg,
    .webp-fullscreen-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .webp-progress-container {
        height: 3px;
    }
}

/* 極小デバイス対応 (360px以下) */
@media (max-width: 360px) {
    .webp-play-overlay {
        width: 75px;
        height: 75px;
    }
    
    .webp-play-overlay::before {
        width: 68px;
        height: 68px;
    }
    
    .webp-play-overlay::after {
        border-left: 22px solid #fff;
        border-top: 14px solid transparent;
        border-bottom: 14px solid transparent;
        margin-left: 4px;
    }
    
    .webp-player-controls {
        gap: 4px;
        padding: 20px 8px 8px;
    }
    
    .webp-time-display {
        min-width: 65px;
        font-size: 10px;
    }
    
    .webp-play-pause-btn,
    .webp-volume-btn,
    .webp-fullscreen-btn {
        width: 24px;
        height: 24px;
    }
    
    .webp-play-pause-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .webp-volume-btn svg,
    .webp-fullscreen-btn svg {
        width: 14px;
        height: 14px;
    }
}





/*MP4用クリックボタン*/
.mp4-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    cursor: pointer;
}

.mp4-wrap video {
    display: block;
    width: 100%;
}

/* 中央の再生ボタン */
.mp4-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ff1493, #ff69b4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(255, 20, 147, 0.5);
    transition: transform 0.2s ease;
    z-index: 10;
}

.mp4-wrap:hover .mp4-overlay {
    transform: translate(-50%, -50%) scale(1.08);
}

.mp4-overlay::before {
    content: '';
    position: absolute;
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: mp4pulse 2s ease-in-out infinite;
}

@keyframes mp4pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50%       { transform: scale(1.1); opacity: 0.4; }
}

.mp4-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 35px solid #fff;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    margin-left: 8px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* 初回クリック後はオーバーレイ非表示 */
.mp4-wrap.clicked .mp4-overlay {
    display: none;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .mp4-overlay { width: 100px; height: 100px; }
    .mp4-overlay::before { width: 90px; height: 90px; }
    .mp4-overlay::after { border-left: 30px solid #fff; border-top: 18px solid transparent; border-bottom: 18px solid transparent; }
}
@media (max-width: 480px) {
    .mp4-overlay { width: 80px; height: 80px; }
    .mp4-overlay::before { width: 72px; height: 72px; }
    .mp4-overlay::after { border-left: 24px solid #fff; border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
}



/* スマホのブログタイトルを小さくする */
@media screen and (max-width: 480px) {
  .site-name-text {
    font-size: 15px !important;
  }
.logo-text {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
	}
}

h1 {
	font-size: 0.8em !important;
}