/* 
 * ultra-defeat-child main styles 
 * FOUC（白飛び）対策：最上位で背景黒を強制
 */
:root {
  --red: #CC0000;
  --red-bright: #FF1111;
  --black: #050505;
}

html, body {
  background-color: #050505 !important;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: #CC0000; }

/* 微細なノイズ（Film Grain） - Mockup equivalent */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.4;
}

/* Hero video BG simulation */
.hero-bg {
  background: linear-gradient(135deg, #0A0000 0%, #050505 40%, #1A0000 70%, #050505 100%);
  position: relative;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(204,0,0,0.08) 0%, transparent 70%);
}

/* Red line accent */
.red-line { width: 3rem; height: 2px; background: #CC0000; }
.red-line-full { height: 1px; background: linear-gradient(90deg, #CC0000, transparent); }

/* Glitch text effect */
.glitch { position: relative; }
.glitch::before {
  content: attr(data-text);
  position: absolute; left: 2px; top: 0;
  color: #CC0000; clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
  opacity: 0.7;
}

/* Card hover */
.content-card {
  position: relative; overflow: hidden;
  border: 1px solid #1A1A1A;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.content-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(204,0,0,0.05), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.content-card:hover { border-color: #CC0000; transform: translateY(-4px); box-shadow: 0 20px 60px rgba(204,0,0,0.15); }
.content-card:hover::before { opacity: 1; }
.content-card img { transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
.content-card:hover img { transform: scale(1.05); }

/* Nav */
.nav-link { position: relative; letter-spacing: 0.15em; }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: #CC0000;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Member badge */
.member-badge {
  background: linear-gradient(135deg, #8B0000, #CC0000);
  border: 1px solid #FF1111;
}

/* Category tab */
.cat-tab { border-bottom: 2px solid transparent; transition: all 0.3s; letter-spacing: 0.2em; }
.cat-tab.active, .cat-tab:hover { border-color: #CC0000; color: #fff; }

/* Price badge */
.price-badge { background: rgba(204,0,0,0.15); border: 1px solid rgba(204,0,0,0.4); }

/* Marquee */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { animation: marquee 20s linear infinite; white-space: nowrap; }

/* Shimmer on hover */
.shimmer {
  position: relative; overflow: hidden;
}
.shimmer::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transition: left 0.6s;
}
.shimmer:hover::after { left: 150%; }

/* Divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #2A2A2A 30%, #CC0000 50%, #2A2A2A 70%, transparent);
}

/* Plan card */
.plan-card { border: 1px solid #2A2A2A; transition: all 0.4s; }
.plan-card:hover { border-color: #CC0000; box-shadow: 0 0 40px rgba(204,0,0,0.1); }
.plan-card.featured { border-color: #CC0000; box-shadow: 0 0 60px rgba(204,0,0,0.2); }

/* Keep legacy class just in case */
.banner-responsive {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Age Gate Custom Styles */
#age-gate-overlay {
    background: radial-gradient(circle at center, #1a0000 0%, #050505 100%);
}

/* Neon Glow for Transparent Logo */
.logo-neon-glow {
    filter: drop-shadow(0 0 8px rgba(204, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(204, 0, 0, 0.4));
    transition: filter 0.5s ease;
}

/* Fluid Shimmer for Logo (Masked to opaque parts only) */
.logo-shimmer-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.logo-shimmer-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        transparent 35%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 65%
    );
    background-size: 200% 200%;
    animation: fluid-shimmer 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 5;
    
    /* Masking: Only show on the logo itself */
    -webkit-mask-image: var(--logo-url);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: var(--logo-url);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

@keyframes fluid-shimmer {
    0% { background-position: -150% -150%; }
    100% { background-position: 150% 150%; }
}

/* SF Scanline Button with Pulse */
.btn-sf-scanline {
    position: relative;
    background: #CC0000;
    overflow: hidden;
    animation: btn-pulse 3s infinite ease-in-out;
}
.btn-sf-scanline::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    opacity: 0.3;
}
.btn-sf-scanline:hover {
    background: #FF1111;
    box-shadow: 0 0 40px rgba(204, 0, 0, 0.8);
    animation-play-state: paused;
}

@keyframes btn-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(204, 0, 0, 0.3); }
    50% { box-shadow: 0 0 35px rgba(204, 0, 0, 0.6); }
}

.cinematic-text {
    letter-spacing: 0.15em;
    line-height: 1.8;
}

.age-gate-btn-no {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.05);
}

/* ===== CART PAGE: シネマティック・コクピット ===== */

/* 数量入力フィールドのダーク化 */
.woocommerce-cart .qty,
.woocommerce .qty {
    background: #0A0A0A !important;
    border: 1px solid #2A2A2A !important;
    color: #ffffff !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 1.2rem !important;
    letter-spacing: 0.1em !important;
    text-align: center !important;
    width: 60px !important;
    padding: 8px 4px !important;
    outline: none !important;
    transition: border-color 0.3s;
}
.woocommerce-cart .qty:focus,
.woocommerce .qty:focus {
    border-color: #CC0000 !important;
    box-shadow: 0 0 12px rgba(204,0,0,0.3) !important;
}

/* WooCommerce デフォルトの白背景を上書き */
.woocommerce-cart table.cart,
.woocommerce-cart #content table.cart {
    background: transparent !important;
    border: none !important;
}
.woocommerce-cart table.cart td,
.woocommerce-cart table.cart th {
    border: none !important;
    background: transparent !important;
}

/* チェックアウトボタン グロー持続パルス */
@keyframes checkout-pulse {
    0%, 100% { box-shadow: 0 12px 40px rgba(204,0,0,0.5), 0 0 0 1px rgba(204,0,0,0.4); }
    50%       { box-shadow: 0 16px 55px rgba(204,0,0,0.7), 0 0 0 2px rgba(204,0,0,0.6); }
}
.btn-checkout-glitch {
    animation: checkout-pulse 2.5s ease-in-out infinite;
}
.btn-checkout-glitch:hover {
    animation-play-state: paused;
    box-shadow: 0 20px 60px rgba(204,0,0,0.8), 0 0 0 2px #CC0000 !important;
    transform: translateY(-2px);
}

/* WooCommerce 送料計算フォームを非表示整形 */
.woocommerce-shipping-calculator { display: none; }

/* 
 * Intercepted Communication v2.0 (Contact Form 7)
 * — 日本語化・項目拡張・ネオングロー強化
 */

/* コンテナ */
.haiboku-comm-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2.5rem 4rem;
  background: rgba(5, 5, 5, 0.85);
  border: 1px solid #1A1A1A;
  position: relative;
  font-family: 'Noto Serif JP', 'Inter', sans-serif;
}
.haiboku-comm-container::before {
  content: 'ENCRYPTED CHANNEL v2.0';
  position: absolute; top: -11px; right: 24px;
  background: #050505; color: #CC0000;
  font-size: 0.58rem; font-family: monospace;
  padding: 0 10px; border: 1px solid #CC0000;
  letter-spacing: 0.2em;
}

/* ── 警告ブロック ────────────────────────────── */
.haiboku-red-alert {
  margin-bottom: 3rem;
  padding: 1rem 1.5rem;
  border: 1px solid #CC0000;
  border-left: 4px solid #CC0000;
  background: rgba(204, 0, 0, 0.06);
  color: #FF4444;
  font-size: 0.8rem;
  font-family: 'Noto Serif JP', sans-serif;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.05em;
  position: relative;
}
.haiboku-red-alert::before {
  content: '⚠';
  margin-right: 0.5rem;
  opacity: 0.9;
}

/* ── グループ ────────────────────────────────── */
.haiboku-comm-group { margin-bottom: 2.5rem; }
.haiboku-comm-group--checkboxes { margin-bottom: 2.5rem; }

/* ── バイリンガルラベル ─────────────────────── */
.haiboku-comm-label {
  display: block;
  margin-bottom: 1rem;
  cursor: default;
}
.haiboku-comm-label__en {
  display: block;
  color: #CC0000;
  font-size: 0.58rem;
  font-family: monospace;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.haiboku-comm-label__ja {
  display: block;
  color: #888;
  font-size: 0.75rem;
  font-family: 'Noto Serif JP', sans-serif;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.haiboku-required {
  color: #CC0000;
  text-decoration: none;
  font-style: normal;
  margin-left: 4px;
}

/* ── 入力フィールド ──────────────────────────── */
.haiboku-comm-field {
  width: 100%; background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #2A2A2A !important;
  color: #fff !important;
  font-family: 'Noto Serif JP', 'Inter', sans-serif !important;
  font-size: 1rem !important;
  padding: 0.85rem 0 !important;
  outline: none !important;
  transition: border-bottom-color 0.35s ease, box-shadow 0.35s ease;
}
.haiboku-comm-field:focus {
  border-bottom-color: #CC0000 !important;
  box-shadow: 0 6px 20px -6px rgba(204, 0, 0, 0.55) !important;
}
.haiboku-comm-field::placeholder {
  color: #3A3A3A;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-family: 'Noto Serif JP', 'Inter', sans-serif;
}
/* textarea 固有 */
textarea.haiboku-comm-field {
  resize: vertical;
  min-height: 100px;
  border: 1px solid #2A2A2A !important;
  border-radius: 0 !important;
  padding: 0.85rem !important;
  background: rgba(10,10,10,0.6) !important;
}
textarea.haiboku-comm-field:focus {
  border-color: #CC0000 !important;
  background: rgba(20,0,0,0.5) !important;
}

/* ── チェックボックス ────────────────────────── */
.haiboku-comm-checkbox span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0.75rem 0.4rem 0;
  cursor: pointer;
  color: #aaa;
  font-size: 0.82rem;
  font-family: 'Noto Serif JP', sans-serif;
  letter-spacing: 0.04em;
  transition: color 0.25s;
}
.haiboku-comm-checkbox span:hover { color: #fff; }
.haiboku-comm-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border: 1px solid #444;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.25s;
}
.haiboku-comm-checkbox input[type="checkbox"]:checked {
  border-color: #CC0000;
  background: rgba(204,0,0,0.15);
}
.haiboku-comm-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3px; top: 0px;
  width: 5px; height: 9px;
  border-right: 2px solid #CC0000;
  border-bottom: 2px solid #CC0000;
  transform: rotate(40deg);
}

/* ── 送信ボタン (TRANSMIT) ─────────────────── */
.haiboku-comm-submit {
  width: 100%; cursor: pointer;
  background: linear-gradient(135deg, #CC0000 0%, #8B0000 100%) !important;
  border: none !important; color: #fff !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1.6rem !important; letter-spacing: 0.25em !important;
  padding: 1.35rem !important; margin-top: 2rem;
  position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s !important;
  box-shadow: 0 8px 32px rgba(204, 0, 0, 0.25);
  display: block;
}
.haiboku-comm-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(204, 0, 0, 0.55);
}
.haiboku-comm-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.06) 3px, rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
}

/* CF7 スピナー */
.wpcf7-spinner { display: none; }

/* ── CF7 レスポンスメッセージ ──────────────── */
.wpcf7-response-output {
  margin: 2rem 0 0 !important;
  padding: 1.25rem 1.5rem !important;
  background: rgba(0, 0, 0, 0.85) !important;
  border: 1px solid #2A2A2A !important;
  color: #777 !important;
  font-family: monospace !important;
  font-size: 0.72rem !important; line-height: 1.7 !important;
  text-transform: uppercase; letter-spacing: 0.12em;
  text-align: center;
}
.wpcf7-mail-sent-ok {
  border-color: #00AA44 !important;
  color: #00CC55 !important;
}
.wpcf7-mail-sent-ok::before {
  content: '[ STATUS: COMMUNICATION SUCCESSFUL ]';
  font-weight: bold; display: block; margin-bottom: 0.5rem;
  color: #00FF66;
}
.wpcf7-validation-errors,
.wpcf7-aborted,
.wpcf7-mail-sent-ng {
  border-color: #CC0000 !important;
  color: #CC0000 !important;
}
.wpcf7-validation-errors::before {
  content: '[ STATUS: CONNECTION FAILED — RETRY ]';
  font-weight: bold; display: block; margin-bottom: 0.5rem;
}

/* バリデーション */
.wpcf7-not-valid-tip {
  color: #FF4444 !important;
  font-size: 0.65rem !important;
  font-family: monospace !important;
  margin-top: 8px;
  display: block;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════════════════
 * DATA VERIFICATION OVERLAY — 通信プロトコル v2.1
 * ═══════════════════════════════════════════════════════════════ */
#haiboku-verify-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(3, 0, 0, 0.96);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 5rem 1.5rem 4rem;
  /* スキャンライン */
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(204,0,0,0.02) 0px, rgba(204,0,0,0.02) 1px,
      transparent 1px, transparent 5px
    );
  /* 初期は非表示 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
#haiboku-verify-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ── インナー ── */
.hv-inner {
  width: 100%;
  max-width: 720px;
  background: rgba(8, 2, 2, 0.9);
  border: 1px solid #2A2A2A;
  position: relative;
  animation: hv-slide-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes hv-slide-in {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── ヘッダー ── */
.hv-header {
  padding: 2.5rem 2.5rem 1.5rem;
  border-bottom: 1px solid #1A1A1A;
  position: relative;
}
.hv-header::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, transparent, #CC0000 30%, #CC0000 70%, transparent);
}
.hv-label-top {
  color: #CC0000;
  font-size: 0.58rem;
  font-family: monospace;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.hv-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  letter-spacing: 0.15em;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1;
  text-shadow: 0 0 40px rgba(204,0,0,0.25);
}
.hv-subtitle {
  color: #555;
  font-size: 0.72rem;
  font-family: 'Noto Serif JP', 'Inter', sans-serif;
  line-height: 1.7;
  margin: 0;
  letter-spacing: 0.04em;
}

/* ── データ本体 ── */
.hv-body {
  padding: 0 2.5rem;
}
.hv-row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #111;
  align-items: baseline;
}
.hv-row__label {
  color: #CC0000;
  font-size: 0.6rem;
  font-family: monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.5;
  flex-shrink: 0;
}
.hv-row__value {
  color: #DDD;
  font-size: 0.88rem;
  font-family: 'Noto Serif JP', 'Inter', sans-serif;
  line-height: 1.75;
  word-break: break-all;
  border-left: 1px solid #2A2A2A;
  padding-left: 1.25rem;
}

/* ── フッター（ボタン行） ── */
.hv-footer {
  padding: 2rem 2.5rem 2.5rem;
  display: flex;
  gap: 1rem;
  align-items: stretch;
  flex-wrap: wrap;
}
.hv-btn {
  cursor: pointer;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
  line-height: 1;
}
.hv-btn:hover { transform: translateY(-2px); }
.hv-btn__en {
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  display: block;
}
.hv-btn__ja {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
  font-family: 'Noto Serif JP', sans-serif;
  display: block;
  font-weight: 400;
}

/* RE-EDIT ボタン */
.hv-btn--reedit {
  flex: 1;
  min-width: 160px;
  padding: 1.1rem 1.5rem;
  background: transparent;
  border: 1px solid #333 !important;
  color: #777;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.hv-btn--reedit:hover {
  border-color: #CC0000 !important;
  color: #fff;
}

/* CONFIRM TRANSMISSION ボタン */
.hv-btn--confirm {
  flex: 2;
  min-width: 220px;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, #CC0000 0%, #8B0000 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(204,0,0,0.25);
}
.hv-btn--confirm::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.07) 3px, rgba(0,0,0,0.07) 4px
  );
  pointer-events: none;
}
.hv-btn--confirm:hover {
  box-shadow: 0 16px 48px rgba(204,0,0,0.55);
}

/* レスポンシブ */
@media (max-width: 600px) {
  .hv-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .hv-row__value { border-left: none; padding-left: 0; border-top: 1px solid #1A1A1A; padding-top: 0.5rem; }
  .hv-footer { flex-direction: column; }
  .hv-btn--reedit, .hv-btn--confirm { flex: none; width: 100%; }
}
