/* =====================================================================
   video-popup.css — 「一枚ができるまで」動画ポップアップ（全ページ共通・一度だけ）
   ・構造 _theme/templates/video_popup.mtml、出し分け /assets/js/video-popup.js
   ・固定ヘッダー(99999)・メガメニュー(100000)・動画モーダル(100001)・相談会ポップアップ(100002) より上
   ・背景は網掛け＋ぼかし。閉じるのは × だけ（背景クリック・Esc では閉じない）。背面のスクロールは止めない
   ===================================================================== */
.psc-vpop {
  position: fixed;
  inset: 0;
  z-index: 100003;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity .25s ease;
}

.psc-vpop[hidden] { display: none; }
.psc-vpop.is-open { opacity: 1; }

.psc-vpop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 48, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.psc-vpop__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
  transform: translateY(12px) scale(.97);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.psc-vpop.is-open .psc-vpop__dialog { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .psc-vpop, .psc-vpop__dialog { transition: none; }
}

.psc-vpop__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(35, 24, 21, .35);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}

.psc-vpop__close:hover,
.psc-vpop__close:focus-visible { background: rgba(35, 24, 21, .85); }
.psc-vpop__close .material-symbols-outlined { font-size: 1.2rem; line-height: 1; }

.psc-vpop__media {
  margin: 14px 14px 0;               /* 動画を白い枠で囲む */
  border-radius: 10px;
  overflow: hidden;
  background: #10202c;
  aspect-ratio: 16 / 9;
}

.psc-vpop__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #10202c;
}

.psc-vpop__body {
  padding: .9rem 14px 14px;
  font-feature-settings: "palt";
}

.psc-vpop__desc {
  margin: 0 0 .9rem;
  font-size: .88rem;
  line-height: 1.65;
  color: #3a3a3a;
}

.psc-vpop__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .8rem;
  align-items: center;
}

.psc-vpop__btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .7rem 1.2rem;
  border: 1.5px solid #231815;
  border-radius: 100px;
  color: #231815;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.psc-vpop__btn:hover { background: #f3f3f1; text-decoration: none; transform: translateY(-1px); }

.psc-vpop__btn--main {
  background: #231815;
  color: #fff;
  box-shadow: 0 4px 0 #E8D843;
}

.psc-vpop__btn--main:hover { background: #000; color: #fff; }
.psc-vpop__btn .material-symbols-outlined { font-size: 1.1rem; line-height: 1; }

@media (max-width: 767px) {
  .psc-vpop { padding: .75rem; align-items: flex-end; }
  .psc-vpop__dialog { border-radius: 14px; }
  .psc-vpop__media { margin: 10px 10px 0; border-radius: 8px; }
  .psc-vpop__body { padding: .8rem 10px 10px; }
  .psc-vpop__desc { font-size: .84rem; }
  .psc-vpop__btn { width: 100%; justify-content: center; }
}
