/* =========================
   AI Novel Form - Hologram Theme
   ========================= */

/* Design Tokens (CSS vars) */
:root {
  --bg: #0a0a0a;
  --panel-bg: rgba(0, 0, 0, 0.8);
  --panel-border: rgba(0, 255, 255, 0.3);
  --accent-cyan: #00ffff;
  --accent-magenta: #ff00ff;
  --accent-green: #00ff00;
  --text-strong: #ffffff;
  --text-dim: #cccccc;
  --radius-xl: 20px;
  --radius-md: 12px;
  --glow-outer: 20px;
  --glow-inner: 8px;
  --space: clamp(16px, 2.5vw, 28px);
  --cta-h: 60px;
  --speed-fast: 300ms;
  --speed-med: 800ms;
  --speed-slow: 1200ms;
  --bez: cubic-bezier(.24,.8,.24,1);
}

/* AI Form Wrapper */
.ai-form-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: 
    linear-gradient(45deg, #000000 0%, #1a1a1a 50%, #000000 100%),
    radial-gradient(circle at 30% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
  color: var(--text-strong);
  font: 16px/1.6 "Courier New", monospace;
  position: relative;
  overflow: hidden;
}

/* ホログラム背景エフェクト */
.ai-form-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 255, 0.1) 2px, rgba(0, 255, 255, 0.1) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 0, 255, 0.1) 2px, rgba(255, 0, 255, 0.1) 4px);
  animation: scanLines 10s linear infinite;
  z-index: 1;
}

/* ホログラムテーマ用の背景を確実に表示 */
body.design-holo .ai-form-wrapper::before {
  display: block !important;
}

/* ホログラムテーマの背景エフェクトを確実に表示 */
body.design-holo .ai-form-wrapper {
  background: 
    linear-gradient(45deg, #000000 0%, #1a1a1a 50%, #000000 100%),
    radial-gradient(circle at 30% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 0, 255, 0.1) 0%, transparent 50%) !important;
}

/* ホログラムスキャンエフェクト（薄い緑色の帯が左から右に流れる） */
body.design-holo .ai-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.08), transparent);
  animation: hologramScan 3s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes hologramScan {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes scanLines {
  0% { transform: translateY(0); }
  100% { transform: translateY(100px); }
}

/* KV Card (ホログラムパネル) */
.ai-form-kv {
  position: relative;
  width: min(1100px, 94vw);
  padding: calc(var(--space)*1.2) calc(var(--space)*1.2) calc(var(--space)*1.4);
  border-radius: var(--radius-xl);
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.8)),
    var(--panel-bg);
  backdrop-filter: blur(15px);
  box-shadow:
    0 0 var(--glow-outer) rgba(0, 255, 255, 0.3),
    0 0 calc(var(--glow-outer)*1.5) rgba(255, 0, 255, 0.2) inset,
    0 0 var(--glow-inner) rgba(0, 255, 0, 0.2) inset;
  border: 2px solid var(--panel-border);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

/* ホログラム光の効果 */
.ai-form-kv::after {
  content: "";
  position: absolute; inset: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: holoGlow 4s ease-in-out infinite;
}

@keyframes holoGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* タイトル */
.ai-form-title {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: calc(var(--space)*1.2);
  letter-spacing: .08em;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  font-family: "Courier New", monospace;
  position: relative;
}

.ai-form-title span { position: relative; }

/* タイトル両端のグラデーションライン */
.ai-form-title span::before, .ai-form-title span::after {
  content: ""; 
  position: absolute;
  top: 50%;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  transform: translateY(-50%);
}

.ai-form-title span::before {
  left: -80px;
}

.ai-form-title span::after {
  right: -80px;
}

@media screen and (max-width: 768px) {
  .ai-form-title span::before { left: -65px; }
  .ai-form-title span::after { right: -65px; }
}

/* フォーム */
.ai-form-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: var(--space) clamp(16px, 2vw, 24px);
  justify-items: center;
  align-items: start;
  margin-bottom: calc(var(--space)*1.4);
}
.ai-form-field {
  width: 100%;
}
.ai-form-label {
  color: var(--text-dim);
  font-size: .95rem;
  margin-bottom: 12px;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

/* セレクトボックス */
.ai-form-select {
  position: relative;
}
.ai-form-select select {
  appearance: none;
  width: 100%;
  height: 56px;
  padding: 0 48px 0 16px;
  border-radius: var(--radius-md);
  color: var(--text-strong);
  border: 2px solid rgba(0, 255, 255, 0.4);
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.05)),
    rgba(0, 0, 0, 0.6);
  box-shadow:
    0 0 15px rgba(0, 255, 255, 0.2) inset,
    0 8px 24px rgba(0,0,0,0.4);
  outline: none;
  transition: box-shadow var(--speed-fast) var(--bez), transform var(--speed-fast) var(--bez);
  font-family: "Courier New", monospace;
}
.ai-form-select select:focus {
  box-shadow:
    0 0 25px rgba(255, 0, 255, 0.3) inset,
    0 0 0 3px rgba(255, 0, 255, 0.4);
}
.ai-form-select .chev {
  position: absolute; right: 14px; top: 0; height: 56px; width: 22px;
  display: grid; place-items: center;
  color: var(--accent-cyan); pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.7));
  font-size: 1.2em;
}

/* CTAボタン */
.ai-form-cta {
  position: relative;
  width: min(820px, 92%);
  height: var(--cta-h);
  border-radius: calc(var(--radius-md) + 8px);
  border: 2px solid rgba(0, 255, 255, 0.3);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  color: #000000;
  font-weight: 700;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
  font-family: "Courier New", monospace;
  box-shadow:
    0 0 25px rgba(0, 255, 255, 0.4),
    0 0 40px rgba(255, 0, 255, 0.3),
    0 12px 32px rgba(0,0,0,0.4);
  transition: transform var(--speed-fast) var(--bez), box-shadow var(--speed-fast) var(--bez), filter var(--speed-fast) var(--bez), opacity var(--speed-fast);
  padding: 0 1rem;
}

.ai-form-cta-text {
  flex: 1;
  text-align: center;
}

.ai-form-cta-counter {
  position: absolute;
  right: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 255, 255, 0.3);
  min-width: 3rem;
  text-align: center;
  transition: all var(--speed-fast) var(--bez);
  font-family: "Courier New", monospace;
}

.ai-form-cta-counter.limit-reached {
  color: #ff4444;
  background: rgba(255, 68, 68, 0.2);
  border-color: rgba(255, 68, 68, 0.5);
  text-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
}
.ai-form-cta:hover { 
  transform: translateY(-3px) scale(1.02); 
  filter: saturate(1.1); 
  box-shadow:
    0 0 35px rgba(0, 255, 255, 0.6),
    0 0 50px rgba(255, 0, 255, 0.4),
    0 15px 40px rgba(0,0,0,0.5);
}
.ai-form-cta:active { 
  transform: translateY(-1px); 
}
.ai-form-cta:disabled {
  opacity: .6;
  filter: grayscale(.3) saturate(.7);
  cursor: not-allowed;
}

/* ステータス行 */
.ai-form-status {
  position: relative;
  text-align: center;
  min-height: 56px;
  display: grid; place-items: center;
  margin-top: var(--space);
  color: var(--text-dim);
  font-family: "Courier New", monospace;
}

/* 進捗リング */
.ai-form-progress {
  --size: 96px;
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--speed-fast);
}
.ai-form-progress svg { 
  width: var(--size); height: var(--size); 
  filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.5)); 
}
.ai-form-progress .track { 
  stroke: rgba(0, 255, 255, 0.2); 
}
.ai-form-progress .arc {
  stroke: var(--accent-cyan);
  stroke-linecap: round;
  transform-origin: 50% 50%;
  animation: spinArc var(--speed-slow) linear infinite;
}
@keyframes spinArc { 
  to { transform: rotate(360deg); } 
}

/* Success Mark */
.ai-form-success {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity var(--speed-fast);
  filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.6));
}
.ai-form-success .ring {
  width: 110px; height: 110px; border-radius: 999px;
  border: 6px solid rgba(0, 255, 255, 0.9);
  box-shadow: 0 0 35px rgba(0, 255, 255, 0.5) inset, 0 0 45px rgba(0, 255, 255, 0.4);
}
.ai-form-success .check {
  position: absolute; width: 64px; height: 32px; 
  border-left: 6px solid #00ffff; border-bottom: 6px solid #00ffff;
  transform: translateY(-2px) rotate(-45deg);
}

/* 生成制限表示 */
.ai-form-limit {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-dim, #cccccc);
  opacity: 0.8;
  font-family: "Courier New", monospace;
}

/* 状態クラスの切り替え */
.ai-form-kv.is-generating .ai-form-progress { opacity: 1; }
.ai-form-kv.is-generating .ai-form-cta { cursor: wait; }
.ai-form-kv.is-success .ai-form-success { opacity: 1; }

/* レスポンシブ */
@media (max-width: 920px) {
  .ai-form-content { 
    grid-template-columns: 1fr; 
  }
}

@media (max-width: 768px) {
  .ai-form-content { 
    margin-bottom: calc(var(--space)*2.5); 
  }

  .ai-form-cta { 
    padding-right: 5.75rem !important; 
  }
}

/* 動きを抑制したいユーザー向け */
@media (prefers-reduced-motion: reduce) {
  .ai-form-kv, .ai-form-cta, .ai-form-select select { 
    transition: none !important; 
  }
  .ai-form-progress .arc { 
    animation-duration: 2.5s; 
  }
  .ai-form-wrapper::before,
  .ai-form-kv::after,
  .ai-form-title::before,
  .ai-form-title::after {
    animation: none;
  }
} 

/* カスタムドロップダウン（ホログラムテーマ） */
.hsel-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px; height: 1px;
  transform: translateX(-9999px);
}

.hsel {
  position: relative;
  width: 100%;
}

.hsel-trigger {
  width: 100%; height: 56px;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  padding: 0 46px 0 16px;
  border-radius: var(--radius-md);
  color: var(--text-strong);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 20, 0.8));
  border: 1px solid rgba(0, 255, 255, 0.5);
  box-shadow: 
    0 0 15px rgba(0, 255, 255, 0.3),
    0 0 30px rgba(255, 0, 255, 0.2);
  transition: all var(--speed-fast) var(--bez);
}

.hsel-trigger:focus-visible {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.5),
    0 0 40px rgba(255, 0, 255, 0.3);
}

.hsel-trigger .hsel-label { 
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}

.hsel-trigger .hsel-chev { 
  color: var(--accent-cyan); 
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
}

.hsel-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  max-height: min(56px*7, 60vh);
  overflow-y: auto; overflow-x: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 255, 255, 0.5);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 20, 0.95));
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.3),
    0 0 40px rgba(255, 0, 255, 0.2);
  transform-origin: 50% 0%;
  opacity: 0; pointer-events: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hsel-panel::-webkit-scrollbar { 
  width: 0 !important; height: 0 !important; 
}

.hsel-panel::-webkit-scrollbar-track {
  display: none !important;
}

.hsel-panel::-webkit-scrollbar-thumb {
  display: none !important;
}

.hsel-option {
  display: flex; align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--text-strong);
  cursor: pointer; position: relative;
  box-sizing: border-box;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: all var(--speed-fast) var(--bez);
}

.hsel-option + .hsel-option { 
  border-top: 1px solid rgba(0, 255, 255, 0.3); 
}

.hsel-option[aria-selected="true"] {
  background: rgba(0, 255, 255, 0.1);
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
}

.hsel-option[data-active="true"], .hsel-option:hover {
  background: rgba(0, 255, 255, 0.15);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}

@keyframes holoFadeIn {
  from { 
    opacity: 0; 
    transform: translateY(-4px) scale(0.95); 
    filter: blur(2px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
    filter: blur(0);
  }
}

.hsel-panel.is-open { 
  pointer-events: auto; 
  opacity: 1;
  animation: holoFadeIn var(--speed-fast) var(--bez) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hsel-panel.is-open { animation: none; }
}

/* プレビュー表示エリア */
.ai-form-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  overflow: hidden;
}

.ai-form-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.ai-form-preview-header h3 {
  color: var(--accent-cyan);
  font-size: 1.5rem;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
  font-family: "Courier New", monospace;
}

.ai-form-preview-close {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all var(--speed-fast) var(--bez);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.ai-form-preview-close:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: scale(1.1);
}

.ai-form-preview-content {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 20, 0.95));
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 900px;
  height: 85vh;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.3),
    0 0 60px rgba(255, 0, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.ai-form-preview-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.ai-form-preview-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.ai-form-preview-meta span {
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
  font-family: "Courier New", monospace;
}

.ai-form-preview-text {
  color: var(--text-strong, #ffffff);
  line-height: 1.8;
  font-size: 1.1rem;
  text-align: justify;
  white-space: pre-wrap;
  font-family: "Courier New", monospace;
  flex: 1;
  overflow-y: auto;
  padding-right: 1rem;
  margin-right: -1rem;
}

.ai-form-preview-text::-webkit-scrollbar {
  width: 8px;
}

.ai-form-preview-text::-webkit-scrollbar-track {
  background: rgba(0, 255, 255, 0.1);
  border-radius: 4px;
}

.ai-form-preview-text::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 255, 0.3);
  border-radius: 4px;
}

.ai-form-preview-text::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 255, 0.5);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .ai-form-preview {
    padding: 1rem;
  }
  
  .ai-form-preview-content {
    padding: 1.5rem;
    max-height: 90vh;
  }
  
  .ai-form-preview-header h3 {
    font-size: 1.2rem;
  }
  
  .ai-form-preview-meta {
    flex-direction: column;
    gap: calc(var(--space) * 0.5);
  }
  
  .ai-form-preview-meta span {
    text-align: center;
  }
} 

/* 結果表示エリア */
.ai-form-result {
  margin-top: calc(var(--space) * 1.5);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 20, 0.95));
  border: 2px solid var(--accent-cyan);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.3),
    0 0 60px rgba(255, 0, 255, 0.2);
  position: relative;
}

.ai-form-result::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  animation: scanLine 3s linear infinite;
}

.ai-form-result-container {
  padding: calc(var(--space) * 1.2);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 20, 0.95));
  backdrop-filter: blur(10px);
}

.ai-form-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--space) * 1);
  padding-bottom: calc(var(--space) * 0.8);
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.ai-form-result-title {
  color: var(--accent-cyan);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
  font-family: "Courier New", monospace;
}

.ai-form-result-meta {
  display: flex;
  gap: calc(var(--space) * 0.5);
  flex-wrap: wrap;
}

.ai-form-result-meta span {
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
  font-family: "Courier New", monospace;
}

.ai-form-result-content {
  margin-bottom: calc(var(--space) * 1.2);
}

.ai-form-result-text {
  color: var(--text-strong, #ffffff);
  line-height: 1.8;
  font-size: 1rem;
  text-align: justify;
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
  padding: calc(var(--space) * 0.8);
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 255, 255, 0.3);
  font-family: "Courier New", monospace;
}

.ai-form-result-text::-webkit-scrollbar {
  width: 8px;
}

.ai-form-result-text::-webkit-scrollbar-track {
  background: rgba(0, 255, 255, 0.1);
  border-radius: 4px;
}

.ai-form-result-text::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 255, 0.3);
  border-radius: 4px;
}

.ai-form-result-text::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 255, 0.5);
}

.ai-form-result-actions {
  display: flex;
  gap: calc(var(--space) * 0.8);
  justify-content: center;
  flex-wrap: wrap;
}

.ai-form-result-action {
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: var(--radius-md);
  color: var(--text-strong, #ffffff);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--speed-fast) var(--bez);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Courier New", monospace;
}

.ai-form-result-action-text {
  flex: 1;
}

.ai-form-result-action-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0.8;
  display: block;
  margin-top: 2px;
}

.ai-form-result-action-counter {
  font-size: 12px;
  color: var(--accent-cyan);
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 4px;
  padding: 2px 6px;
  min-width: 40px;
  text-align: center;
  backdrop-filter: blur(5px);
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
}

.ai-form-result-action:hover {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  transform: translateY(-2px);
}

.ai-form-result-action:active {
  transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .ai-form-result {
    margin-top: calc(var(--space) * 1.5);
  }
  
  .ai-form-result-container {
    padding: calc(var(--space) * 1);
  }
  
  .ai-form-result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--space) * 0.5);
  }
  
  .ai-form-result-title {
    font-size: 20px;
  }
  
  .ai-form-result-meta {
    gap: calc(var(--space) * 0.3);
  }
  
  .ai-form-result-actions {
    flex-direction: column;
    gap: calc(var(--space) * 0.5);
  }
  
  .ai-form-result-action {
    justify-content: center;
  }
  
  .ai-form-result-action-counter {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .ai-form-result-container {
    padding: calc(var(--space) * 0.8);
  }
  
  .ai-form-result-title {
    font-size: 18px;
  }
  
  .ai-form-result-text {
    font-size: 14px;
  }
  
  .ai-form-result-actions {
    gap: calc(var(--space) * 0.4);
  }
  
  .ai-form-result-action {
    font-size: 13px;
  }
  
  .ai-form-result-action-counter {
    font-size: 10px;
  }
} 

/* 3Dパララックス（ホログラムテーマ用） */
.ai-form-kv[data-parallax="on"] { 
  transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}
.ai-form-kv[data-parallax="on"].tilt {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
} 

/* ファンタジーテーマ用の魔法陣画像をホログラムテーマ時は非表示 */
.magic-circle-image {
  display: none;
}

/* ファンタジーテーマ用の粒子エフェクトをホログラムテーマ時は非表示 */
.magic-particles {
  display: none !important;
}

.magic-particles .particle {
  display: none !important;
}

/* ホログラムテーマ時はファンタジーテーマのエフェクトを完全に無効化 */
body.design-holo .magic-particles {
  display: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

body.design-holo .magic-particles .particle {
  display: none !important;
  opacity: 0 !important;
} 

/* ホログラムテーマ時はGoogle Fontsを無効化し、システムフォントを使用 */
body.design-holo {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* ヘッダー要素は除外して、ページコンテンツのみにフォントを適用 */
body.design-holo .ai-form-wrapper,
body.design-holo .ai-form-wrapper *,
body.design-holo .ai-form-kv,
body.design-holo .ai-form-kv * {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* ホログラムテーマ用のフォント設定（AI小説生成ページの要素のみ） */
body.design-holo .ai-form-title {
  font-family: 'Courier New', monospace !important;
}

body.design-holo .ai-form-cta {
  font-family: 'Courier New', monospace !important;
}

body.design-holo .ai-form-select select {
  font-family: 'Courier New', monospace !important;
}

body.design-holo .ai-form-limit {
  font-family: 'Courier New', monospace !important;
}

body.design-holo .ai-form-status {
  font-family: 'Courier New', monospace !important;
}

body.design-holo .ai-form-cta-counter {
  font-family: 'Courier New', monospace !important;
}

body.design-holo .hsel-trigger {
  font-family: 'Courier New', monospace !important;
}

body.design-holo .hsel-option {
  font-family: 'Courier New', monospace !important;
}

body.design-holo .ai-form-preview-header h3 {
  font-family: 'Courier New', monospace !important;
}

body.design-holo .ai-form-preview-meta span {
  font-family: 'Courier New', monospace !important;
}

body.design-holo .ai-form-preview-text {
  font-family: 'Courier New', monospace !important;
}

body.design-holo .ai-form-result-title {
  font-family: 'Courier New', monospace !important;
}

body.design-holo .ai-form-result-meta span {
  font-family: 'Courier New', monospace !important;
}

body.design-holo .ai-form-result-text {
  font-family: 'Courier New', monospace !important;
}

body.design-holo .ai-form-result-action {
  font-family: 'Courier New', monospace !important;
} 