YouTube動画プレイヤー

上記にYouTubeのURLを入力して「動画を読み込む」ボタンを押してください

音量: 100%

サンプル動画:

* { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; width: 100%; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #333; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; min-height: 100vh; } h1 { text-align: center; color: white; margin-bottom: 30px; font-size: 2.5rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); } .input-section { background: rgba(255, 255, 255, 0.95); padding: 25px; border-radius: 15px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); margin-bottom: 30px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); } .input-section label { display: block; margin-bottom: 10px; font-weight: bold; font-size: 1.1rem; color: #444; } #youtube-url { width: 100%; padding: 15px; border: 2px solid #ddd; border-radius: 10px; font-size: 16px; margin-bottom: 15px; transition: border-color 0.3s ease; } #youtube-url:focus { outline: none; border-color: #667eea; box-shadow: 0 0 10px rgba(102, 126, 234, 0.3); } #load-video { width: 100%; padding: 15px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 10px; font-size: 16px; font-weight: bold; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; } #load-video:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); } .video-section { background: rgba(255, 255, 255, 0.95); padding: 25px; border-radius: 15px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); margin-bottom: 30px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); } #video-container { text-align: center; min-height: 400px; display: flex; align-items: center; justify-content: center; background: #f8f9fa; border-radius: 10px; border: 2px dashed #ddd; } #video-container iframe { width: 100%; max-width: 800px; height: 450px; border: none; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); } #placeholder-text { color: #666; font-size: 1.1rem; line-height: 1.5; max-width: 400px; } .controls-section { background: rgba(255, 255, 255, 0.95); padding: 25px; border-radius: 15px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); margin-bottom: 30px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); display: flex; flex-wrap: wrap; gap: 15px; align-items: center; justify-content: center; } .controls-section button { padding: 12px 20px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; transition: all 0.2s ease; font-size: 14px; } #play-btn { background: #28a745; color: white; } #pause-btn { background: #ffc107; color: #333; } #stop-btn { background: #dc3545; color: white; } .controls-section button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,0.2); } .controls-section button:disabled { opacity: 0.5; cursor: not-allowed; } #volume-slider { width: 200px; height: 6px; background: #ddd; border-radius: 3px; outline: none; } #volume-slider::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; background: #667eea; border-radius: 50%; cursor: pointer; } #volume-text { font-weight: bold; color: #555; } .sample-videos { background: rgba(255, 255, 255, 0.95); padding: 25px; border-radius: 15px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); } .sample-videos h3 { margin-bottom: 15px; color: #444; text-align: center; } .sample-videos { display: flex; flex-direction: column; align-items: center; } .sample-videos h3 { width: 100%; text-align: center; } .sample-videos div { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 15px; } .sample-btn { padding: 12px 20px; background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; transition: all 0.2s ease; } .sample-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); } /* レスポンシブデザイン */ @media (max-width: 768px) { .container { padding: 15px; } h1 { font-size: 2rem; } .input-section, .video-section, .controls-section, .sample-videos { padding: 20px; } #video-container iframe { height: 250px; } .controls-section { flex-direction: column; } #volume-slider { width: 150px; } }