/*
Theme Name: 深夜作業 (Midnight Work)
Theme URI: 
Author: Maya Kajima
Author URI: 
Description: 宇宙と未来感をテーマにした、フリーランス「梶間真矢」の深夜稼働向けLPテーマ。
Version: 1.0.0
Text Domain: midnight-work
*/

/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
:root {
  --bg-deep: #02050f;
  --bg-starry: #080d1f;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --accent-cyan: #00f3ff;
  --accent-magenta: #ff00ea;
  --glass-bg: rgba(10, 15, 30, 0.5);
  --glass-border: rgba(0, 243, 255, 0.2);
  --font-en: 'Orbitron', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-jp);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-magenta);
  text-shadow: 0 0 10px var(--accent-magenta);
}

/* ==========================================================================
   Starry Background Animation
   ========================================================================== */
#stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(circle at center, var(--bg-starry) 0%, var(--bg-deep) 100%);
  overflow: hidden;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.2; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 5px white; }
}

/* ==========================================================================
   Layout & Components
   ========================================================================== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 60px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 243, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
  transform: skewX(-25deg);
  animation: shine 8s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.section-title {
  text-align: center;
  font-family: var(--font-en);
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 40px;
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.btn-neon {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bg-deep);
  background: var(--accent-cyan);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 0 15px var(--accent-cyan);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.btn-neon:hover {
  background: var(--accent-magenta);
  color: #fff;
  box-shadow: 0 0 25px var(--accent-magenta);
  text-shadow: none;
}

/* ==========================================================================
   Sections
   ========================================================================== */
/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--accent-cyan);
  letter-spacing: 5px;
  margin-bottom: 10px;
  animation: fadeInDown 1s ease forwards;
  opacity: 0;
}

.hero-title {
  font-size: 5rem;
  font-family: var(--font-en);
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px var(--accent-cyan);
  margin-bottom: 20px;
  letter-spacing: 10px;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

.hero-jp {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 50px;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 5px 15px rgba(0, 243, 255, 0.1);
}

.service-card h3 {
  color: var(--accent-cyan);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* Pricing */
.pricing-info {
  text-align: center;
}

.price-big {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px var(--accent-magenta);
  margin: 20px 0;
}

.price-condition {
  display: inline-block;
  background: rgba(255, 0, 234, 0.1);
  border: 1px solid var(--accent-magenta);
  padding: 10px 20px;
  border-radius: 4px;
  color: var(--accent-magenta);
  font-size: 0.9rem;
  margin-top: 20px;
}

/* Contact */
.contact-section {
  text-align: center;
  padding-bottom: 100px;
}

.contact-desc {
  margin-bottom: 30px;
  color: var(--text-muted);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 3rem; letter-spacing: 5px; }
  .hero-jp { font-size: 1.1rem; }
  .glass-panel { padding: 25px; }
  .header-inner { flex-direction: column; }
  .main-navigation ul { margin-top: 15px; }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: rgba(5, 10, 21, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 243, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding a {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.8);
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-navigation a {
  color: var(--text-main);
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--font-en);
  letter-spacing: 1px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan);
}

/* ==========================================================================
   Pages & Blog
   ========================================================================== */
.page-content {
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: calc(100vh - 150px);
}

.entry-content {
  color: var(--text-main);
}

.entry-content h1, .entry-content h2, .entry-content h3 {
  color: var(--accent-cyan);
  margin-top: 40px;
  margin-bottom: 20px;
}

.entry-content p {
  margin-bottom: 20px;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  margin-bottom: 0;
  padding: 30px;
}

.blog-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.blog-title a {
  color: #fff;
}

.blog-title a:hover {
  color: var(--accent-cyan);
}

.blog-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

/* Pagination */
.nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.nav-links a {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--accent-cyan);
  border-radius: 4px;
}

.nav-links a:hover {
  background: rgba(0, 243, 255, 0.1);
}
