/**
 * CEREC - Creative Entertainment Research & Education Center
 * 共通スタイルシート
 * WordPress Classic Theme 移行用に整理
 */

/* ============================================
   CSS Custom Properties (Theme Variables)
   ============================================ */
:root {
  --bg: #f5f3ef;
  --text: #0f0f0f;
  --primary: #182688;
  --primary-light: #3d4db7;
  --secondary: #4a5568;
  --muted: #5c5c5c;
}

/* ============================================
   Base Styles
   ============================================ */
* {
  box-sizing: border-box;
}

body {
  font-family: "Archivo", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ============================================
   Utility Classes
   ============================================ */

/* Geometric Background Pattern */
.geometric-bg {
  background-image:
    linear-gradient(135deg, var(--primary) 0%, var(--primary) 50%, transparent 50%),
    linear-gradient(225deg, var(--primary-light) 0%, var(--primary-light) 30%, transparent 30%);
  background-size: 100px 100px, 80px 80px;
  background-position: 0 0, 60px 60px;
  opacity: 0.03;
}

/* Diagonal Clip Path */
.clip-diagonal {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* Floating Animation for Shapes */
.shape-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ============================================
   Animation Classes
   ============================================ */

/* Slide In Animation */
.slide-in {
  animation: slideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
  transform: translateX(-30px);
}

@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}

/* Animation Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Hover Lift Effect */
.hover-lift {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
}

/* ============================================
   Component Classes
   ============================================ */

/* Section Label (with horizontal line) */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: "";
  width: 3rem;
  height: 2px;
  background: var(--primary);
}

.section-label span {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

/* Section Label Light Variant (for dark backgrounds) */
.section-label-light::before {
  background: white;
}

.section-label-light span {
  color: white;
}

/* Gradient Text (Hero) */
.gradient-text-hero {
  background: linear-gradient(135deg, #4a6fa5 0%, #6b8cce 50%, #8aa4d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Prose Content (for article/detail pages)
   ============================================ */
.prose-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--muted);
}

.prose-content p {
  margin-bottom: 1.5rem;
}

.prose-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose-content ul,
.prose-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose-content li {
  margin-bottom: 0.5rem;
}

.prose-content a {
  color: var(--primary);
  text-decoration: underline;
}

.prose-content a:hover {
  color: var(--primary-light);
}

.prose-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
}

.prose-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

/* ============================================
   Support Page - Step Number
   ============================================ */
.step-number {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-weight: 900;
  font-size: 1.25rem;
}
