/* ============================================
   リセット＆基本設定
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  overflow-x: hidden;
}
body {
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #333;
}
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* ============================================
   ハンバーガーメニュー（モダンデザイン）
   ============================================ */
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.hamburger:hover {
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.hamburger span {
  width: 26px;
  height: 2.5px;
  background: #111111;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 8px);
  background: #CD1724;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -8px);
  background: #CD1724;
}
/* ============================================
   サイドメニュー（モダングラスモーフ）
   ============================================ */
.menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.80) 0%, rgba(35, 35, 35, 0.80) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  padding: 20px;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}
.menu.active {
  right: 0;
}
.menu-header {
  padding: 30px 0 40px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}
.menu-header h2 {
  color: #CD1724;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
}
.menu-link {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  text-decoration: none;
  padding: 16px 20px;
  margin-bottom: 8px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.menu-link:hover {
  background: rgba(205, 23, 36, 0.15);
  border-color: rgba(205, 23, 36, 0.3);
  color: #fff;
  font-size: 110%;
}
.menu-icon {
  font-size: 20px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ============================================
   メインコンテンツ
   ============================================ */
.main {
  flex: 1;
  width: 100%;
  /* 白ベースのキラッとした光グラデーション */
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 255, 0.9) 45%, rgba(240, 244, 255, 0.85) 100%), radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 60%);
  background-blend-mode: lighten;
}
.mv {
  text-align: center;
  width: 100%;
}
.mv img {
  width: 100%;
  height: auto;
  display: block;
}
/* ============================================
   動画セクション
   ============================================ */
.video-wrap {
  max-width: 960px;
  margin: 50px auto;
}
.video-lead {
  background: #000;
  color: #fff;
  padding: 18px 24px;
  border-radius: 8px 8px 0 0;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(205, 23, 36, 0.2);
}
.video-lead span {
  color: #FFF611;
  font-size: 110%;
}


/* ==========================
   動画コンテナ
========================== */
.video-box {
  position: relative;
  background: #000;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

/* Vimeo iframe */
#videoFrame {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 0 0 8px 8px;
  pointer-events: auto; /* ← 最重要 */
}

/* 再生開始オーバーレイ */
.video-start-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.video-start-overlay:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* 再生ボタン */
.play-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  animation: playPulse 1.5s ease-in-out infinite;
}

@keyframes playPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}





















/* ============================================
   Hintセクション
   ============================================ */
.hint {
  max-width: 800px;
  margin: 20px auto;
}
.hint-content {
  background: linear-gradient(135deg, rgba(205, 23, 36, 0.08) 0%, rgba(205, 23, 36, 0.04) 100%);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  border: 2px solid rgba(205, 23, 36, 0.2);
  box-shadow: 0 8px 32px rgba(205, 23, 36, 0.08);
  position: relative;
  overflow: hidden;
}
.hint-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hint-icon {
  font-size: 40px;
  flex-shrink: 0;
}
.hint-text {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: -0.01rem;
}
/* ============================================
   チェックリスト
============================================ */
.center-wrapper {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 2rem;
}
.container {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  width: 100%;
	    margin-top: 20px;
}
.title {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
  width: 100%;
}
.title::before {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #CD1724;
  border-radius: 2px;
}
.checklist {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: #fafbfc;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.checkbox {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
}
.text {
  flex: 1;
  font-size: 18px;
  color: #111111;
  line-height: 1.8;
  font-weight: 500;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.check-item {
  animation: slideIn 0.5s ease-out forwards;
}
.check-item:nth-child(1) {
  animation-delay: 0.1s;
}
.check-item:nth-child(2) {
  animation-delay: 0.2s;
}
.check-item:nth-child(3) {
  animation-delay: 0.3s;
}
.check-item:nth-child(4) {
  animation-delay: 0.4s;
}
/* ============================================
   CTAセクション
============================================ */
.cta.hide {
  display: none;
}
.cta {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ============================================
   CTA 背景（固定画像）
============================================ */
.cta-content {
  background-image: url('../img/bg-cta.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}
/* 背景オーバーレイ（黒ブラー） */
.cta-content::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* ← 黒いオーバーレイ */
  backdrop-filter: blur(2px); /* ← 背景をぼかす */
  z-index: 1;
  border-radius: inherit;
}
/* ライトグリーンの飾りグラデーション */
.cta-content::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(29, 184, 84, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
/* 内容本体 */
.cta-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.cta-text {
  margin-bottom: 40px;
}
.cta h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: 0.05rem;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  /* 中央に向かう鮮やかなゴールド */
  background: linear-gradient(180deg, #fffbe9 0%, /* 明るい金 */ #ffe99f 35%, /* 黄金の中間 */ #f7c950 65%, /* 黄金の芯 */ #c59220 100% /* 奥行きの深金 */
    );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* 説明文 */
.cta p {
  color: #fff;
  font-size: 20px;
  line-height: 1.7;
  font-weight: 400;
}
/* ============================================
   CTAボタン
============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 54px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.35px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  /* ==========================
     グラデーション（発光強化）
     ========================== */
  background: linear-gradient(135deg, #28d05a 0%, /* 発光グリーン（光源） */ #1ab24c 30%, /* 中間の鮮やかグリーン */ #128c38 100% /* 深いグリーン（芯） */
    );
  /* ==========================
     発光＋立体シャドウ（最重要）
     ========================== */
  box-shadow:
    0 0 20px rgba(40, 208, 90, 0.55), /* 外側へ広がる緑のGlow */ 0 0 40px rgba(24, 168, 74, 0.35), /* 柔らかい発光 */ 0 10px 24px rgba(0, 0, 0, 0.35); /* 下方向の立体影 */
  /* ==========================
     白文字が沈まないための Glow
     ========================== */
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.45), 0 0 8px rgba(255, 255, 255, 0.6);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  animation: subtleFloat 3.2s ease-in-out infinite;
}
.btn-primary svg {
  width: 24px;
  height: 24px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* ==========================
   内部から光が滲むインナーグロー
   ========================== */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(80, 255, 160, 0.45) 0%, /* 中央から発光 */ transparent 70%);
  opacity: 0.6;
  transition: opacity 0.5s ease;
}
/* ==========================
   Hover：発光と浮き上がり最大化
   ========================== */
.btn-primary:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow:
    0 0 28px rgba(40, 208, 90, 0.75), 0 0 55px rgba(24, 168, 74, 0.45), 0 14px 34px rgba(0, 0, 0, 0.45);
  background: linear-gradient(135deg, #32e569 0%, #1cc755 40%, #0f7a31 100%);
}
.btn-primary:hover svg {
  transform: translateX(4px);
}
@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
/* ボタンアイコン */
.btn-primary svg {
  width: 20px;
  height: 20px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
/* ボタンの上下アニメーション */
@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
/* グロス効果 */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}
/* 光の揺らぎ */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 60%);
  opacity: 0;
  animation: glow 3.2s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
}
/* ボタン hover */
.btn-primary:hover {
  animation: none;
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 48px rgba(29, 184, 84, 0.4);
  background: linear-gradient(135deg, #16a347 0%, #128c38 100%);
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary:hover svg {
  transform: translateX(4px);
}
/* 注意文 */
.cta-subtext {
  font-size: 16px;
  color: #888;
  margin-top: 24px;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.6;
}
.cta-subtext span {
  font-size: 120%;
}
/* ============================================
   SPレスポンシブ
============================================ */
@media (max-width: 600px) {
  .cta-content {
    padding: 20px;
    min-height: 300px;
  }
  .cta h2 {
    font-size: 28px;
    margin-bottom: 12px;
  }
  .cta p {
    font-size: 16px;
  }
  .cta-text {
    margin-bottom: 32px;
  }
  .btn-primary {
    padding: 14px 40px;
    font-size: 15px;
  }
  .cta-subtext {
    font-size: 12px;
  }
}
/* ============================================
   フッター
   ============================================ */
.footer {
  background: #111111;
  color: #ccc;
  padding: 40px 20px 20px;
  border-top: 1px solid #333;
  margin-top: auto;
}
.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
}
.footer-links a:hover {
  color: #FFF611;
}
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FFF611;
  transition: width 0.3s ease;
}
.footer-links a:hover::after {
  width: 100%;
}
.footer-copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 13px;
  color: #fff;
}
/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 768px) {
  .hamburger {
    top: 30px;
    right: 10px;
    padding: 12px;
  }
  .hamburger span {
    width: 24px;
    height: 2px;
  }
  .menu {
    max-width: 100%;
  }
  .menu-header {
    padding: 24px 0 32px;
    margin-bottom: 24px;
  }
  .menu-header h2 {
    font-size: 24px;
  }
  .video-wrap {
    margin: 10px auto;
    padding: 0 10px;
  }
  .video-lead {
    font-size: 14px;
    letter-spacing: -0.01rem;
    padding: 16px 4px;
  }
  .resume-content {
    padding: 40px 28px;
  }
  .resume-content h3 {
    font-size: 22px;
    margin-bottom: 24px;
  }
  .resume-option {
    padding: 16px 20px;
    margin-bottom: 12px;
  }
  .hint-content {
    padding: 10px;
  }
  .hint-inner {
    flex-direction: column;
  }
  .hint-text {
    font-size: 14px;
  }
  .container {
    padding: 40px 10px;
  }
  .title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .checklist {
    gap: 16px;
  }
  .checkbox {
    width: 24px;
    height: 24px;
  }
  .text {
    font-size: 16px;
    line-height: 1.6;
  }
  .cta h2 {
    font-size: 26px;
  }
  .btn-primary {
    padding: 14px 32px;
    font-size: 20px;
  }
  .footer-links {
    gap: 16px;
    margin-bottom: 20px;
  }
  .footer-links a {
    font-size: 13px;
  }
  .control-btn {
    padding: 6px 8px;
    min-width: 32px;
    font-size: 14px;
  }
  .progress-container {
    min-width: 100px;
  }
  .speed-btn {
    min-width: 45px !important;
    font-size: 12px !important;
  }
  .video-controls {
    gap: 6px;
    padding: 8px 8px;
  }
}
/* SP改行 */
.sp-break {
  display: inline;
}
@media (max-width: 768px) {
  .sp-break {
    display: block;
  }
}
















/* ============================================
   動画フレーム
   ============================================ */
#videoFrame {
  width: 100%;
  aspect-ratio: 16/9;
  pointer-events: auto !important;
  display: block;
  border-radius: 0 0 0 0;
}

/* ============================================
   再生ボタンオーバーレイ
   ============================================ */
.video-start-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
  pointer-events: auto;
}

.video-start-overlay:hover {
  background: rgba(0, 0, 0, 0.6);
}

.play-content {
  text-align: center;
  color: #fff;
}

.play-icon {
  font-size: 40px;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 8px rgba(205, 23, 36, 0.5));
  animation: playPulse 1.5s ease-in-out infinite;
  width: 90px;
  height: 90px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
  margin-left: auto;
  margin-right: auto;
}

.play-text {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@keyframes playPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ============================================
   カスタムシークバー
   ============================================ */
.custom-seekbar-wrapper {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  box-sizing: border-box;
}

.time-display {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
  user-select: none;
}

.seekbar-bg {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 4px;
}

.seekbar-fill {
  height: 100%;
  background: linear-gradient(90deg, #CD1724 0%, #e74c3c 100%);
  width: 0;
  transition: width 0.1s linear;
  pointer-events: none;
}

.seekbar-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  z-index: 5;
}

.seekbar-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-top: -2px;
}

.seekbar-input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border: none;
  margin-top: -2px;
}

.seekbar-input:disabled {
  cursor: not-allowed;
}

/* ============================================
   動画コントロール
   ============================================ */
.video-controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
  flex-wrap: wrap;
  position: relative;
  border-radius: 0 0 8px 8px;
}

.control-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  min-width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.control-btn:active {
  transform: scale(0.95);
}

.pause-btn {
  background: rgba(205, 23, 36, 0.9) !important;
  border-color: rgba(205, 23, 36, 1) !important;
  min-width: 44px;
}

.pause-btn:hover {
  background: rgba(205, 23, 36, 1) !important;
}

.rewind-btn {
  font-size: 14px;
  padding: 8px 10px;
}

.rewind-btn .rewind-icon {
  font-size: 14px;
  line-height: 1;
}

.rewind-btn .movie-icon {
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
}

.mute-btn {
  position: relative;
}

.control-btn svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.icon-volume-off {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.icon-volume-off.show {
  opacity: 1;
  visibility: visible;
}

.icon-volume-on {
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.icon-volume-on.hide {
  opacity: 0;
  visibility: hidden;
}

/* ============================================
   速度コントロール
   ============================================ */
.speed-control {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.speed-btn {
  min-width: 50px !important;
  font-size: 14px !important;
  padding: 8px 12px !important;
  font-weight: 700;
}

.speed-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: rgba(40, 40, 40, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
  overflow: hidden;
  min-width: 100px;
  z-index: 500;
  display: none;
  backdrop-filter: blur(10px);
}

.speed-dropdown.show {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.speed-option {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: center;
  display: block;
}

.speed-option:hover {
  background: rgba(205, 23, 36, 0.4);
  color: #fff;
}

.speed-option.active {
  background: rgba(205, 23, 36, 0.7);
  color: #fff;
  font-weight: 700;
}

/* ============================================
   全画面ボタン
   ============================================ */
.fullscreen-btn {
  margin-left: auto;
}

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

/* ============================================
   全画面時のスタイル
   ============================================ */
.video-box:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
}

.video-box:fullscreen #videoFrame {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: unset;
}

.video-box:fullscreen .custom-seekbar-wrapper {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  width: 100%;
  padding: 12px 16px;
  box-sizing: border-box;
}

.video-box:fullscreen .video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  border-radius: 0;
}

/* ============================================
   レスポンシブ対応
   ============================================ */
@media (max-width: 768px) {
  .custom-seekbar-wrapper {
    height: 6px;
  }

  .control-btn {
    padding: 6px 8px;
    min-width: 32px;
    font-size: 12px;
    height: 36px;
  }

  .pause-btn {
    min-width: 36px;
  }

  .control-btn svg {
    width: 20px;
    height: 20px;
  }

  .rewind-btn {
    font-size: 12px;
    padding: 6px 8px;
  }

  .speed-btn {
    min-width: 45px !important;
    font-size: 12px !important;
  }

  .fullscreen-btn {
    margin-left: auto;
  }
}











/* ============================================
   動画コントロール（下部配置 - Vimeo風）
   ============================================ */
.video-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
  position: relative;
  border-radius: 0 0 8px 8px;
}

/* 左側ボタングループ */
.video-controls > button:nth-child(1),
.video-controls > button:nth-child(2) {
  /* 左寄せ - デフォルト配置 */
}

/* スペーサー */
.video-controls > div {
  flex: 1;
}

.control-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  min-width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.control-btn:active {
  transform: scale(0.95);
}

.pause-btn {
  background: rgba(205, 23, 36, 0.9) !important;
  border-color: rgba(205, 23, 36, 1) !important;
  min-width: 44px;
}

.pause-btn:hover {
  background: rgba(205, 23, 36, 1) !important;
}

.rewind-btn {
  font-size: 14px;
  padding: 8px 10px;
  position: relative;
}

.rewind-btn .rewind-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  margin-bottom: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
}

.rewind-btn:hover .rewind-tooltip {
  opacity: 1;
  visibility: visible;
}

.mute-btn {
  position: relative;
  overflow: hidden;
}

/* SVGアイコン */
.control-btn svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
  fill: currentColor;
}

/* PNGアイコン（画像） */
.icon-btn img {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
  transition: filter 0.2s ease;
}

.icon-btn:hover img {
  filter: brightness(1.3);
}

/* ============================================
   ミュートボタン - アイコン切り替え
   ============================================ */
.mute-btn .icon-volume-on,
.mute-btn .icon-volume-off {
  position: absolute;
  width: 24px;
  height: 24px;
  transition: opacity 0.2s ease;
}

.mute-btn .icon-volume-on {
  opacity: 1;
  visibility: visible;
}

.mute-btn .icon-volume-off {
  opacity: 0;
  visibility: hidden;
}

.mute-btn.muted .icon-volume-on {
  opacity: 0;
  visibility: hidden;
}

.mute-btn.muted .icon-volume-off {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   速度コントロール
   ============================================ */
.speed-control {
  position: relative;
  display: flex;
  align-items: center;
}

.speed-btn {
  min-width: 50px !important;
  font-size: 14px !important;
  padding: 8px 12px !important;
  font-weight: 700;
}

.speed-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: rgba(40, 40, 40, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
  overflow: hidden;
  min-width: 100px;
  z-index: 500;
  display: none;
  backdrop-filter: blur(10px);
}

.speed-dropdown.show {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.speed-option {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: center;
  display: block;
}

.speed-option:hover {
  background: rgba(205, 23, 36, 0.4);
  color: #fff;
}

.speed-option.active {
  background: rgba(205, 23, 36, 0.7);
  color: #fff;
  font-weight: 700;
}

/* ============================================
   全画面ボタン
   ============================================ */
.fullscreen-btn {
  position: relative;
}

/* ============================================
   全画面時のスタイル
   ============================================ */
.video-box:fullscreen #videoFrame {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: unset;
}

.video-box:fullscreen .video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  border-radius: 0;
  padding: 8px 16px;
}

/* ============================================
   モバイルレスポンシブ
   ============================================ */
@media (max-width: 768px) {
  .control-btn {
    padding: 6px 8px;
    min-width: 32px;
    font-size: 12px;
    height: 36px;
  }

  .pause-btn {
    min-width: 36px;
  }

  .control-btn svg {
    width: 20px;
    height: 20px;
  }

  .icon-btn img {
    width: 20px;
    height: 20px;
  }

  .rewind-btn {
    font-size: 12px;
    padding: 6px 8px;
  }

  .speed-btn {
    min-width: 45px !important;
    font-size: 12px !important;
  }

  .video-controls {
    gap: 6px;
  }
}

/* ============================================
   モーダル（再生位置選択）
   ============================================ */
.resume-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.resume-modal.hide {
  display: none;
}
.resume-content {
  background: #fff;
  border-radius: 24px;
  padding: 50px 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.4s ease;
  position: relative;
}
@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.close-modal-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.close-modal-btn:hover {
  background: #f0f0f0;
  color: #111;
}
.resume-content h3 {
  font-size: 26px;
  color: #111111;
  margin-bottom: 32px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.resume-option {
  width: 100%;
  padding: 20px 24px;
  margin-bottom: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #f9f9f9;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}
.resume-option:hover {
  border-color: #CD1724;
  background: rgba(205, 23, 36, 0.05);
  transform: translateX(4px);
}
.resume-btn {
  border-color: #CD1724;
  color: #CD1724;
}
.restart-btn {
  color: #111111;
}
.option-label {
  font-weight: 700;
  font-size: 16px;
}
.option-time {
  font-size: 14px;
  color: #999;
  font-weight: 500;
}
/* ============================================
   メーター＆時間表示
   ============================================ */
.meter {
  margin-top: 20px;
}
.meter-bar {
  background: #e8e8e8;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
}
#meterFill {
  height: 100%;
  background: linear-gradient(90deg, #CD1724 0%, #e74c3c 100%);
  width: 0;
  transition: width 0.3s ease;
}
#timeDisplay {
  text-align: center;
  font-size: 15px;
  margin-top: 10px;
  color: #777;
  font-weight: 500;
}


.video-box {
  position: relative;
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}