/*
Theme Name: Lazy Society Theme
Theme URI: https://tools.namakemono-zzznote.com/
Author: AI Extension Creator
Author URI: https://x.com/namake_mono_zzz
Description: サイバーパンクと究極の怠惰を融合させた、AI Extension Creatorのポートフォリオ用カスタムテーマ。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lazy-society
*/

/* ==========================================================================
   1. Design Tokens (CSS Variables) & Base Setup
   ========================================================================== */
:root {
  --bg-color: #0a0a0a;
  --panel-bg: #121212;
  --panel-border: #1f1f1f;
  --text-color: #f5f5f5;
  --text-muted: #888888;
  --accent-blue: #00f3ff;
  --accent-red: #ff003c;
  --accent-blue-glow: rgba(0, 243, 255, 0.3);
  --accent-red-glow: rgba(255, 0, 60, 0.3);
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Noto Serif JP', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================================================
   2. Typography & Core Layout
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

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

a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--accent-blue);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   3. Header & Navigation Menu
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
  padding: 16px 0;
  transition: background 0.3s;
}

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

.site-logo {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 0 0 10px var(--accent-blue-glow);
}

.site-logo span {
  color: var(--accent-blue);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-menu a {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--accent-blue);
  text-shadow: 0 0 8px var(--accent-blue);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: 0.3s;
}

/* ==========================================================================
   4. Footer Layout & Escaping Button
   ========================================================================== */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--panel-border);
  padding: 60px 0 30px;
  margin-top: 100px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h3, .footer-links h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  border-top: 1px solid var(--panel-border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Escaping Button Styles */
.labor-escape-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.btn-escape {
  display: inline-block;
  padding: 10px 20px;
  background-color: transparent;
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.3s ease;
  z-index: 99;
}

.btn-escape:hover {
  box-shadow: 0 0 15px var(--accent-red-glow);
  color: #fff;
  background-color: var(--accent-red);
}

/* ==========================================================================
   5. Hero / Front Page Styles
   ========================================================================== */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

/* Cyber grid background */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.9)),
              linear-gradient(90deg, rgba(31, 31, 31, 0.4) 1px, transparent 1px),
              linear-gradient(rgba(31, 31, 31, 0.4) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  min-height: 4.5rem; /* Prevents layout shift during typing */
  color: #fff;
}

.hero-title span.cursor {
  display: inline-block;
  background-color: var(--accent-blue);
  width: 10px;
  height: 3.2rem;
  margin-left: 5px;
  animation: blink 0.8s infinite;
  vertical-align: middle;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-family: var(--font-sans);
}

/* Parallax Decorative Orbs */
.decor-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}

.orb-blue {
  background: var(--accent-blue);
  opacity: 0.15;
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
}

.orb-red {
  background: var(--accent-red);
  opacity: 0.1;
  width: 400px;
  height: 400px;
  bottom: 10%;
  right: 5%;
}

/* Navigation Cards for Front Page */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.nav-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 30px;
  border-radius: 8px;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 220px;
}

.nav-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 10px 30px rgba(0, 243, 255, 0.05);
  transform: translateY(-5px);
}

.nav-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.nav-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.nav-card .card-arrow {
  color: var(--accent-blue);
  font-weight: bold;
  align-self: flex-end;
  font-size: 1.2rem;
  margin-top: 20px;
}

/* ==========================================================================
   6. About Page (Philosophy) Styles
   ========================================================================== */
.page-hero {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--panel-border);
  position: relative;
  background: linear-gradient(180deg, #050505 0%, var(--bg-color) 100%);
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.page-hero .subtitle {
  color: var(--accent-blue);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.content-section {
  padding: 80px 0;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: center;
}

.philosophy-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.philosophy-text p {
  margin-bottom: 24px;
}

.philosophy-media {
  position: relative;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  background-color: var(--panel-bg);
}

/* Glitch styling or frame */
.philosophy-media::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent-blue);
  border-radius: 8px;
  pointer-events: none;
  opacity: 0.3;
}

.philosophy-media img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1) contrast(1.2);
  transition: filter 0.5s ease;
}

.philosophy-media:hover img {
  filter: grayscale(0.2) contrast(1);
}

/* Parody Quote Block */
.parody-quote-box {
  margin: 60px 0;
  background: linear-gradient(135deg, #121212 0%, #1c1c1c 100%);
  border-left: 4px solid var(--accent-blue);
  padding: 40px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.parody-quote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
}

.parody-quote::before {
  content: '“';
  font-size: 4rem;
  color: var(--accent-blue);
  opacity: 0.2;
  position: absolute;
  top: -30px;
  left: -20px;
}

.parody-author {
  font-family: var(--font-sans);
  color: var(--text-muted);
  text-align: right;
  font-weight: 500;
  font-style: italic;
}

/* Fade-in Animation Classes (Intersection Observer) */
.fade-up-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   7. Works Page (Artifacts Grid)
   ========================================================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.work-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 10px 30px rgba(0, 243, 255, 0.05);
}

.work-img-container {
  height: 240px;
  background-color: #1a1a1a;
  overflow: hidden;
  position: relative;
}

.work-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-img-container img {
  transform: scale(1.05);
}

.work-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.work-info h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.work-info h3 span {
  font-size: 0.8rem;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  padding: 2px 8px;
  border-radius: 12px;
  font-family: var(--font-sans);
}

.work-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.btn-work-link {
  display: inline-block;
  align-self: flex-start;
  padding: 10px 20px;
  background: var(--accent-blue);
  color: #000;
  font-weight: 700;
  font-family: var(--font-sans);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-work-link:hover {
  background: #fff;
  box-shadow: 0 0 15px rgba(255,255,255,0.4);
  color: #000;
  text-shadow: none;
}

/* ==========================================================================
   8. FAQ & Contact (Forms / Accordions / Running Form Button)
   ========================================================================== */
.faq-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.faq-section h2, .contact-form-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: var(--panel-bg);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent-blue);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--accent-red);
}

.faq-content {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid var(--panel-border);
  padding-top: 20px;
}

/* Contact Form & Escaping Submit Button */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background: #1a1a1a;
  border: 1px solid var(--panel-border);
  padding: 12px;
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue-glow);
}

/* Container to handle relative positioning for the escaping button */
.submit-btn-container {
  height: 60px;
  position: relative;
  margin-top: 10px;
}

.btn-form-submit {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--accent-red);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 700;
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 0;
  transition: background-color 0.3s;
}

.btn-form-submit:hover {
  background-color: #ff3366;
  box-shadow: 0 0 15px var(--accent-red-glow);
}

/* Alternative Contact Option Section */
.alt-contact-box {
  margin-top: 40px;
  padding: 30px;
  background: var(--panel-bg);
  border: 1px dashed var(--panel-border);
  border-radius: 8px;
}

.alt-contact-box h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.alt-contact-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.btn-alt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #1e1e1e;
  border: 1px solid var(--accent-blue);
  border-radius: 4px;
  color: var(--accent-blue);
  font-weight: bold;
}

.btn-alt-link:hover {
  background-color: var(--accent-blue);
  color: #000;
}

/* ==========================================================================
   9. Legal & Disclaimer Styles
   ========================================================================== */
.legal-content-box {
  max-width: 800px;
  margin: 0 auto;
}

.legal-section-block {
  margin-bottom: 48px;
}

.legal-section-block h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 12px;
  margin-bottom: 20px;
  color: var(--accent-blue);
}

.legal-section-block p,
.legal-section-block li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-section-block p {
  margin-bottom: 16px;
}

.legal-section-block ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-section-block li {
  margin-bottom: 8px;
}

/* ==========================================================================
   10. 404 Page Styles
   ========================================================================== */
.error-404-container {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 120px;
}

.error-404-content {
  max-width: 600px;
}

.error-404-code {
  font-size: 8rem;
  font-family: var(--font-serif);
  color: var(--accent-red);
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 20px var(--accent-red-glow);
}

.error-404-title {
  font-size: 2rem;
  margin-bottom: 24px;
}

.error-404-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.btn-back-home {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--accent-blue);
  color: #000;
  font-weight: 700;
  border-radius: 4px;
}

.btn-back-home:hover {
  background-color: #fff;
  box-shadow: 0 0 15px rgba(255,255,255,0.4);
  color: #000;
}

/* ==========================================================================
   11. Animations & Keyframes
   ========================================================================== */
@keyframes blink {
  50% { opacity: 0; }
}

/* ==========================================================================
   12. Responsive Design (Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .nav-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .works-grid {
    grid-template-columns: 1fr;
  }
  .faq-contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 73px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 73px);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    border-top: 1px solid var(--panel-border);
  }
  
  .nav-menu.is-active {
    left: 0;
  }
  
  .nav-menu a {
    font-size: 1.2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
}
