/* ===== Cookie バナー ===== */

.nyc-cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 99999;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
  pointer-events: none;
}

.nyc-cookie-banner.nyc-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nyc-cookie-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
}

/* 位置 */
.nyc-pos-bottom-bar {
  width: 100%;
}

.nyc-pos-bottom-right {
  right: 16px;
  left: auto;
  bottom: 16px;
  border-radius: 12px;
  max-width: 420px;
}

/* テーマ */
.nyc-theme-dark {
  background: rgba(17, 17, 17, 0.65); /* 半透明＋ガラス感 */
  color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  backdrop-filter: blur(6px);
}

.nyc-theme-light {
  background: rgba(255, 255, 255, .98);
  color: #111;
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}

/* テキスト */
.nyc-cookie-text {
  flex: 1;
  font-size: 13px;
}

.nyc-cookie-link {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  text-decoration: underline;
}

.nyc-theme-dark .nyc-cookie-link {
  color: #dbe5ff;
}
.nyc-theme-light .nyc-cookie-link {
  color: #2c63c9;
}

/* ボタン */
.nyc-cookie-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.nyc-cookie-btn {
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .1s ease, box-shadow .1s ease, opacity .15s ease;
}

.nyc-cookie-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* 同意ボタン（メイン） */
.nyc-theme-dark .nyc-cookie-accept {
  background: #2c63c9;
  color: #fff;
  box-shadow: 0 4px 10px rgba(44,99,201,.55);
}
.nyc-theme-light .nyc-cookie-accept {
  background: #2c63c9;
  color: #fff;
  box-shadow: 0 4px 10px rgba(44,99,201,.3);
}

/* 拒否ボタン（サブ） */
.nyc-theme-dark .nyc-cookie-reject {
  background: transparent;
  color: #eee;
  border: 1px solid rgba(255,255,255,.35);
}
.nyc-theme-light .nyc-cookie-reject {
  background: #f2f4f8;
  color: #333;
  border: 1px solid #d5d9e2;
}

/* ホバー */
.nyc-cookie-btn:hover {
  opacity: .9;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .nyc-cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
  }

  .nyc-cookie-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px 14px;
  }

  .nyc-cookie-buttons {
    justify-content: flex-end;
  }
}

/* ===== YouTube 埋め込み制御用 ===== */

.nyc-yt-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.nyc-yt-iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.nyc-yt-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  box-sizing: border-box;
  font-size: 13px;
}

.nyc-yt-message {
  margin: 0 0 8px;
}

.nyc-yt-consent-btn {
  border: none;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
  background: #2c63c9;
  color: #fff;
  box-shadow: 0 4px 10px rgba(44,99,201,.55);
  transition: opacity .15s ease, transform .1s ease, box-shadow .1s ease;
}

.nyc-yt-consent-btn:hover {
  opacity: .9;
}

.nyc-yt-consent-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

@media (max-width: 768px) {
  .nyc-yt-overlay {
    font-size: 12px;
    padding: 10px;
  }
}