/* ============================================================
   modal-video.css
   ① YouTube動画モーダル
   ② Cookie同意バナー（モーダルを閉じた後・初回のみ）
   ③ ページ内 動画埋め込みセクション（横浜エクセレンス グリーン）
   ※ 既存 style.css に一切変更なし。puc- プレフィックスで分離。
   ============================================================ */

/* ---- カラー変数 ---- */
:root {
  --puc-ex-green:      #1e7c3a;   /* エクセレンス グリーン */
  --puc-ex-green-dark: #145c2b;   /* 深いグリーン */
  --puc-ex-green-bg:   #0f3d1e;   /* 背景用ダークグリーン */
  --puc-red:           #e8333a;   /* パンプアップチキン レッド */
}


/* ============================================================
   1. モーダル本体
   ============================================================ */

.puc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.puc-modal[hidden] { display: none !important; }

.puc-modal:not([hidden]) {
  animation: pucModalFadeIn 0.35s ease forwards;
}

@keyframes pucModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.puc-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.puc-modal__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 840px;
  background: #111;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.9);
}

.puc-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.puc-modal__close:hover,
.puc-modal__close:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  outline: none;
}

.puc-modal__video__wrap {
  position: relative;
  padding-top: 56.25%;
  height: 0;
  overflow: hidden;
}

.puc-modal__video__wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

body.puc-modal--open { overflow: hidden; }

@media (max-width: 600px) {
  .puc-modal__close { top: -38px; width: 30px; height: 30px; font-size: 14px; }
}


/* ============================================================
   2. Cookie同意バナー（画面下部スライドイン）
   ============================================================ */

.puc-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a1a;
  border-top: 2px solid var(--puc-red);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.puc-cookie-banner[hidden] { display: none !important; }

.puc-cookie-banner:not([hidden]) {
  animation: pucBannerSlideUp 0.4s ease forwards;
}

@keyframes pucBannerSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.puc-cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.puc-cookie-banner__txt {
  flex: 1 1 300px;
  font-size: 13px;
  line-height: 1.75;
  color: #ccc;
  margin: 0;
}

.puc-cookie-banner__txt strong { color: #fff; }
.puc-cookie-banner__txt a { color: #e8a0a3; text-decoration: underline; }
.puc-cookie-banner__txt a:hover { color: #fff; }

.puc-cookie-banner__btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.puc-cookie-banner__btn {
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1;
  white-space: nowrap;
}

.puc-cookie-banner__btn--accept {
  background: var(--puc-red);
  color: #fff;
  border-color: var(--puc-red);
}

.puc-cookie-banner__btn--accept:hover,
.puc-cookie-banner__btn--accept:focus {
  background: #c9282e;
  border-color: #c9282e;
  outline: none;
}

.puc-cookie-banner__btn--decline {
  background: transparent;
  color: #aaa;
  border-color: #555;
}

.puc-cookie-banner__btn--decline:hover,
.puc-cookie-banner__btn--decline:focus {
  color: #fff;
  border-color: #aaa;
  outline: none;
}

@media (max-width: 600px) {
  .puc-cookie-banner__inner { padding: 16px; gap: 14px; }
  .puc-cookie-banner__txt { font-size: 12px; }
  .puc-cookie-banner__btns { width: 100%; justify-content: center; }
  .puc-cookie-banner__btn { flex: 1; text-align: center; padding: 10px 16px; font-size: 13px; }
}


/* ============================================================
   3. ページ内 動画セクション（横浜エクセレンス グリーン）
   ============================================================ */

.puc-video-section {
  background: linear-gradient(160deg, #061510 0%, #0d3320 50%, #061a0d 100%);
  position: relative;
}

/* 斜線テクスチャ */
.puc-video-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    rgba(255,255,255,0.018) 0px,
    rgba(255,255,255,0.018) 1px,
    transparent 1px,
    transparent 52px
  );
  pointer-events: none;
  z-index: 0;
}

/* 上部グリーンライン */
.puc-video-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--puc-ex-green) 30%, #3dbc65 50%, var(--puc-ex-green) 70%, transparent 100%);
  z-index: 0;
}

/* ラッパー */
.puc-video-section__wrap {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  padding-bottom: 80px;
}

@media (min-width: 1024px) {
  .puc-video-section__wrap { padding-top: 112px; padding-bottom: 112px; }
}

/* 見出し：c-head02 の文字色を白・緑に上書き */
.puc-video-section .c-head02__ja {
  color: #fff;
}

.puc-video-section .puc-video-section__en {
  color: var(--puc-ex-green) !important;
}

/* リード：大きく・太く・白で力強く */
.puc-video-section__lead {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 700;
  line-height: 2;
  color: #fff;
  text-align: center;
  margin: 0;
}

/* 動画プレーヤー */
.puc-video-section__player {
  max-width: 840px;
  margin: 0 auto 48px;
}

.puc-video-section__iframe-wrap {
  position: relative;
  padding-top: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid rgba(30, 124, 58, 0.6);
  box-shadow:
    0 0 0 1px rgba(61, 188, 101, 0.15),
    0 24px 64px rgba(0, 0, 0, 0.7);
}

.puc-video-section__iframe-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* キャプション：やや大きく・明るめ */
.puc-video-section__caption {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 500;
  line-height: 2;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0 auto;
  max-width: 680px;
}

@media (max-width: 768px) {
  .puc-video-section__wrap { padding-top: 56px; padding-bottom: 64px; }
  .puc-video-section__lead { font-size: 15px; text-align: left; }
  .puc-video-section__player { margin-bottom: 32px; }
  .puc-video-section__caption { font-size: 13px; text-align: left; }
}
