/**
 * YouTubeランディングページ専用CSS
 * ファイル名: youtube-landing-page.css
 * バージョン: 1.0.0
 */

/* ===============================================
   メインセクション
   =============================================== */
.ytlp-section {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Serif JP', 'Playfair Display', serif;
    height: 100vh;
    background: url('https://guritest.com/wp-content/themes/taisei-wp2025/assets/images/recruit/back.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* 画像の上にオーバーレイ */
.ytlp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* 追加のアニメーション効果 */
.ytlp-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(120, 119, 198, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 119, 198, 0.2) 0%, transparent 50%);
    animation: ytlp-backgroundShift 12s ease-in-out infinite;
}

@keyframes ytlp-backgroundShift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ===============================================
   コンテナ
   =============================================== */
.ytlp-container {
    text-align: center;
    z-index: 10;
    position: relative;
    max-width: 800px;
    width: 90%;
}

/* ===============================================
   キャッチコピー
   =============================================== */
.ytlp-catchcopy {
    color: white;
    font-family: 'Noto Serif JP', serif;
    font-size: 2.6rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
    opacity: 0;
    animation: ytlp-fadeInUp 1s ease-out 0.5s forwards;
    letter-spacing: 0.08em;
    text-align: center;
    position: relative;
}

.ytlp-catchcopy::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: ytlp-fadeInUp 1s ease-out 1.2s forwards;
    opacity: 0;
}

/* ===============================================
   ビデオコンテナ
   =============================================== */
.ytlp-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    margin: 2rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: ytlp-fadeInUp 1s ease-out 1s forwards;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ytlp-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

/* ホバーエフェクト */
.ytlp-video-container:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* ===============================================
   サブタイトル
   =============================================== */
.ytlp-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Noto Serif JP', serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 2.5rem;
    opacity: 0;
    animation: ytlp-fadeInUp 1s ease-out 1.5s forwards;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    font-style: italic;
}

/* ===============================================
   アニメーション
   =============================================== */
@keyframes ytlp-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================================
   パーティクル効果
   =============================================== */
.ytlp-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ytlp-particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.1;
    animation: ytlp-float 6s ease-in-out infinite;
}

.ytlp-particle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.ytlp-particle:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.ytlp-particle:nth-child(3) {
    width: 3px;
    height: 3px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.ytlp-particle:nth-child(4) {
    width: 5px;
    height: 5px;
    top: 30%;
    left: 70%;
    animation-delay: 1s;
}

@keyframes ytlp-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* ===============================================
   レスポンシブデザイン
   =============================================== */
@media (max-width: 768px) {
    .ytlp-catchcopy {
        font-size: 2rem;
    }
    
    .ytlp-container {
        width: 95%;
    }
    
    .ytlp-video-container {
        margin: 1.5rem 0;
        border-radius: 15px;
    }
    
    .ytlp-subtitle {
        font-size: 1rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .ytlp-catchcopy {
        font-size: 1.6rem;
        letter-spacing: 0.06em;
        margin-bottom: 2rem;
    }
    
    .ytlp-container {
        width: 90%;
    }
    
    .ytlp-video-container {
        margin: 1.2rem 0;
        border-radius: 12px;
    }
    
    .ytlp-subtitle {
        font-size: 0.9rem;
        margin-top: 1.8rem;
        letter-spacing: 0.08em;
    }
    
    .ytlp-section {
        height: 100vh;
        padding: 20px 0;
    }
}

/* ===============================================
   アクセシビリティ対応
   =============================================== */
@media (prefers-reduced-motion: reduce) {
    .ytlp-catchcopy,
    .ytlp-video-container,
    .ytlp-subtitle {
        animation: none;
        opacity: 1;
        transform: translateY(0);
    }
    
    .ytlp-section::after {
        animation: none;
    }
    
    .ytlp-particle {
        animation: none;
    }
    
    .ytlp-video-container:hover {
        transform: none;
        transition: none;
    }
}

/* ハイコントラストモード */
@media (prefers-contrast: high) {
    .ytlp-section::before {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .ytlp-catchcopy,
    .ytlp-subtitle {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
    }
    
    .ytlp-video-container {
        border: 2px solid rgba(255, 255, 255, 0.8);
    }
}

/* ===============================================
   印刷用スタイル
   =============================================== */
@media print {
    .ytlp-section {
        height: auto;
        background: white;
        color: black;
        padding: 40px 20px;
    }
    
    .ytlp-section::before,
    .ytlp-section::after {
        display: none;
    }
    
    .ytlp-particles {
        display: none;
    }
    
    .ytlp-catchcopy,
    .ytlp-subtitle {
        color: black;
        text-shadow: none;
    }
    
    .ytlp-video-container {
        display: none;
    }
    
    .ytlp-video-container::after {
        content: 'YouTube動画: https://www.youtube.com/embed/a7sv0CWYaoM';
        display: block;
        padding: 20px;
        border: 1px solid #ccc;
        text-align: center;
        font-size: 14px;
        color: #666;
    }
}

/* ===============================================
   WordPress統合用のクラス
   =============================================== */
.wp-block-html .ytlp-section {
    /* WordPressブロックエディター内での調整 */
    margin: 0;
}

.single-post .ytlp-section,
.page .ytlp-section {
    /* 投稿・固定ページでの調整 */
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* ===============================================
   テーマ統合用のバリエーション
   =============================================== */
.ytlp-section.theme-dark {
    background-blend-mode: multiply;
}

.ytlp-section.theme-light::before {
    background: rgba(255, 255, 255, 0.3);
}

.ytlp-section.theme-light .ytlp-catchcopy,
.ytlp-section.theme-light .ytlp-subtitle {
    color: #333;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}