/* ==========================================================================
   求人LP制作サービス - Custom Styles
   Tailwind CSS (CDN/JIT) を基盤に、Tailwind単体では表現しづらい
   グラデーション・グラスモーフィズム・キーフレームアニメーションを補完する。
   ========================================================================== */

:root {
  --color-black: #0a0a0a;
  --color-black-soft: #121212;
  --color-black-elevated: #181818;
  --color-gold: #d4af37;
  --color-gold-light: #f4e5b2;
  --color-gold-dark: #9c7a24;
  --color-white: #f5f5f0;
  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: "Noto Sans JP", "Montserrat", sans-serif;
  overflow-x: hidden;
}

::selection {
  background: var(--color-gold);
  color: #0a0a0a;
}

/* Custom scrollbar (webkit) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-black);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-gold), var(--color-gold-dark));
  border-radius: 999px;
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.font-display {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
}

.text-gradient-gold {
  background: linear-gradient(100deg, #f4e5b2 0%, #d4af37 35%, #9c7a24 60%, #d4af37 85%, #f4e5b2 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shineText 8s linear infinite;
}

@keyframes shineText {
  0% { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}

/* ==========================================================================
   Glassmorphism card
   ========================================================================== */
.glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(212, 175, 55, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s var(--ease-luxury), border-color 0.5s ease, box-shadow 0.5s ease;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.12), 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Gold bordered outline button */
.btn-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #f4e5b2, #d4af37 40%, #9c7a24 70%, #d4af37);
  background-size: 200% auto;
  color: #0a0a0a;
  transition: background-position 0.6s var(--ease-luxury), transform 0.3s var(--ease-luxury), box-shadow 0.3s ease;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}
.btn-gold:hover {
  background-position: 100% center;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.4);
}

.btn-outline-gold {
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--color-gold-light);
  transition: all 0.4s var(--ease-luxury);
}
.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--color-gold);
  transform: translateY(-3px);
}

/* Shine sweep effect on CTA */
.btn-shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.9s ease;
}
.btn-shine:hover::before {
  left: 125%;
}

/* ==========================================================================
   Section dividers / backgrounds
   ========================================================================== */
.bg-noise {
  background-image: radial-gradient(rgba(212, 175, 55, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
}

.section-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(212, 175, 55, 0.12), transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   Placeholder media block (画像・動画差し替え用)
   ========================================================================== */
.ph-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(155deg, #1b1b1b 0%, #0a0a0a 60%, #161616 100%);
  border: 1px solid rgba(212, 175, 55, 0.15);
  color: rgba(212, 175, 55, 0.55);
}
.ph-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(45deg, rgba(212, 175, 55, 0.05) 25%, transparent 25%, transparent 50%, rgba(212, 175, 55, 0.05) 50%, rgba(212, 175, 55, 0.05) 75%, transparent 75%, transparent);
  background-size: 24px 24px;
}
.ph-media__label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 1rem;
}

/* ==========================================================================
   Loading Screen
   ========================================================================== */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  transition: opacity 0.8s var(--ease-luxury), visibility 0.8s var(--ease-luxury);
}
#loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-mark {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 0.3em;
  color: var(--color-gold);
}

/* ==========================================================================
   Hero background particles
   ========================================================================== */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

/* ==========================================================================
   Counter number
   ========================================================================== */
.counter-num {
  font-family: "Montserrat", sans-serif;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Timeline (制作の流れ)
   ========================================================================== */
.timeline-line {
  background: linear-gradient(180deg, transparent, var(--color-gold) 10%, var(--color-gold) 90%, transparent);
}
@media (min-width: 768px) {
  .timeline-line-h {
    background: linear-gradient(90deg, transparent, var(--color-gold) 6%, var(--color-gold) 94%, transparent);
  }
}

.timeline-dot {
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15), 0 0 20px rgba(212, 175, 55, 0.6);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-item[data-open="true"] .faq-icon {
  transform: rotate(135deg);
}
.faq-icon {
  transition: transform 0.4s var(--ease-luxury);
}
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-luxury), padding 0.4s ease;
}

/* ==========================================================================
   Fixed action buttons
   ========================================================================== */
#fixed-actions {
  transition: transform 0.5s var(--ease-luxury), opacity 0.5s ease;
}
#fixed-actions.is-hidden {
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
}

#mobile-cta-bar {
  transition: transform 0.5s var(--ease-luxury);
}
#mobile-cta-bar.is-hidden {
  transform: translateY(100%);
}

#back-to-top {
  transition: opacity 0.4s ease, transform 0.4s var(--ease-luxury);
}
#back-to-top.is-hidden {
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  pointer-events: none;
}

/* ==========================================================================
   Sticky header
   ========================================================================== */
#site-header {
  transition: background-color 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
}
#site-header.is-scrolled {
  background-color: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   Misc
   ========================================================================== */
.parallax-layer {
  will-change: transform;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
