@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-10217  {
    border: 1px solid #000; /* 枠線の太さと色 */
    padding: 20px; /* 内側の余白 */
    border-color: #c1c1c1;
}


.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* グラデーション */
    padding: 12px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

.sticky-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

.sticky-footer-title {
    color: white;
    font-weight: 600;
    font-size: 15px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.sticky-footer-button {
    color: #667eea;
    background-color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 25px;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    font-size: 15px;
}

.sticky-footer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    background-color: #fff;
}

/* タブレット対応 */
@media (max-width: 768px) {
    .sticky-footer {
        padding: 10px 15px;
    }
    
    .sticky-footer-title {
        font-size: 13px;
    }
    
    .sticky-footer-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* スマホ対応 */
@media (max-width: 480px) {
    .sticky-footer {
        padding: 10px 12px;
    }
    
    .sticky-footer-content {
        gap: 10px;
    }
    
    .sticky-footer-title {
        font-size: 12px;
        max-width: 50%;
    }
    
    .sticky-footer-button {
        padding: 10px 18px;
        font-size: 12px;
    }
}

/* コンテンツが隠れないように余白追加 */
body {
    padding-bottom: 70px;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }
}


/*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; }
}




/* 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-wrap {
    position: relative;
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    cursor: pointer;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.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;
}

/* カスタムコントロールバー */
.mp4-controls {
    position: relative;
    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;
}

.mp4-playbtn,
.mp4-mutebtn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}

.mp4-playbtn svg,
.mp4-mutebtn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 再生ボタンの三角形は塗りつぶし */
.mp4-playbtn svg polygon {
    fill: #fff;
    stroke: none;
}

/* 一時停止ボタンの四角形は塗りつぶし */
.mp4-playbtn svg rect {
    fill: #fff;
    stroke: none;
}

.mp4-time,
.mp4-duration {
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

.mp4-seek-wrapper {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.mp4-seek {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 20px;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.mp4-seek-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff1493, #ff69b4);
    border-radius: 2px;
    pointer-events: none;
    width: 0%;
}

/* タブレット */
@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; }
    .mp4-controls { gap: 8px; padding: 30px 12px 12px; }
    .mp4-playbtn, .mp4-mutebtn { width: 32px; height: 32px; }
    .mp4-playbtn svg, .mp4-mutebtn svg { width: 20px; height: 20px; }
    .mp4-time, .mp4-duration { font-size: 12px; }
}

/* スマホ */
@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; }
    .mp4-controls { gap: 6px; padding: 25px 10px 10px; }
    .mp4-playbtn, .mp4-mutebtn { width: 28px; height: 28px; }
    .mp4-playbtn svg, .mp4-mutebtn svg { width: 18px; height: 18px; }
    .mp4-time, .mp4-duration { font-size: 11px; }
    .mp4-seek-wrapper { height: 3px; }
}

/* 極小デバイス */
@media (max-width: 360px) {
    .mp4-overlay { width: 75px; height: 75px; }
    .mp4-overlay::before { width: 68px; height: 68px; }
    .mp4-overlay::after { border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
    .mp4-controls { gap: 4px; padding: 20px 8px 8px; }
    .mp4-playbtn, .mp4-mutebtn { width: 24px; height: 24px; }
    .mp4-playbtn svg, .mp4-mutebtn svg { width: 16px; height: 16px; }
    .mp4-time, .mp4-duration { font-size: 10px; }
}