@charset "UTF-8";

/* ==========================================================================
   動画紹介ページ用スタイル (njm_movie.css)
   ========================================================================== */


/* ==========================================
   1. コンテンツエリア＆動画グリッド
   ========================================== */
/* 動画セクション全体 */
.movie-section {
  padding: 40px 20px 80px;
}

/* インナーコンテナ */
.movie-section .row-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* 動画カードグリッドレイアウト */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px;
}

/* 動画カード */
.video-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 動画カード（ホバー時） */
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 16:9 動画埋め込み枠（iframe用） */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  height: 0;
  background-color: #000;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 16:9 動画サムネイル枠（画像＋リンク用） */
.video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  height: 0;
  overflow: hidden;
  background-color: #f1f5f9;
}

.video-thumbnail a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* サムネイル画像（ホバー時） */
.video-thumbnail a:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

/* 再生ボタンアイコン（オーバーレイ表示） */
.video-thumbnail a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 77, 0, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 24px no-repeat;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
  pointer-events: none;
}

/* 再生ボタンアイコン（ホバー時） */
.video-thumbnail a:hover::after {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: rgba(0, 104, 55, 0.95);
}

/* 動画タイトルテキスト */
.video-title {
  padding: 20px;
  font-size: 1.05rem;
  font-weight: bold;
  line-height: 1.6;
  color: #1e293b;
  margin: 0;
  background-color: #ffffff;
  flex-grow: 1;
}


/* ==========================================
   2. レスポンシブ調整
   ========================================== */
/* タブレット・スマートフォンサイズ（768px以下） */
@media screen and (max-width: 768px) {
  .page-header {
    padding: 20px 15px 30px;
  }

  .page-title .en {
    font-size: 1rem;
  }

  .page-title .ja {
    font-size: 1.5rem;
  }

  .movie-section {
    padding: 20px 15px 60px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .video-title {
    padding: 15px;
    font-size: 0.95rem;
  }

  .video-thumbnail a::after {
    width: 44px;
    height: 44px;
    background-size: 20px;
  }
}
