/* ========================================
   変な会社サイト - スタイルシート
   ダークテーマ・宇宙エフェクト
   ======================================== */

/* --- リセット & 基本設定 --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0015;
  --bg-section: #120025;
  --bg-card: #1a0033;
  --purple-main: #6b0099;
  --purple-light: #cc00ff;
  --purple-glow: #9900cc;
  --text-primary: #e8d0ff;
  --text-secondary: #b380d9;
  --text-muted: #7755a0;
  --accent: #ff66cc;
  --gold: #ffcc00;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- ヘッダー --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 0, 21, 0.95);
  border-bottom: 1px solid var(--purple-main);
}

.header-scroll {
  overflow-x: auto;
  white-space: nowrap;
  padding: 8px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--purple-main) transparent;
}

.header-scroll::-webkit-scrollbar {
  height: 4px;
}

.header-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.header-scroll::-webkit-scrollbar-thumb {
  background: var(--purple-main);
  border-radius: 2px;
}

.header-company-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--purple-light);
  letter-spacing: 1px;
}

.header-nickname {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: 12px;
}

.header-nav {
  display: flex;
  gap: 4px;
  padding: 6px 20px;
  border-top: 1px solid rgba(107, 0, 153, 0.3);
  justify-content: center;
  flex-wrap: wrap;
}

.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 4px;
  transition: all 0.3s;
}

.header-nav a:hover {
  color: var(--purple-light);
  background: rgba(204, 0, 255, 0.1);
}

/* --- ヒーロー --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 60px;
  background: radial-gradient(ellipse at center, #1a0040 0%, var(--bg-dark) 70%);
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(24px, 5vw, 56px);
  line-height: 1.4;
  color: var(--text-primary);
  text-shadow: 0 0 24px rgba(204, 0, 255, 0.35);
  margin-bottom: 24px;
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 28px);
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.hero-tagline {
  font-size: clamp(14px, 2vw, 20px);
  color: var(--text-muted);
  font-style: italic;
}

/* --- 共通セクション --- */
.section {
  padding: 100px 0;
  border-top: 1px solid rgba(107, 0, 153, 0.2);
}

.section:nth-child(even) {
  background: var(--bg-section);
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 60px;
  color: var(--purple-light);
  text-shadow: 0 0 20px rgba(204, 0, 255, 0.3);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
  margin: 16px auto 0;
}

/* --- フェードインアニメーション --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 会社概要 --- */
.about-grid {
  display: grid;
  gap: 24px;
}

.about-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 8px;
  border-left: 3px solid var(--purple-main);
}

.about-label {
  font-weight: bold;
  color: var(--accent);
  font-size: 14px;
}

.about-value {
  color: var(--text-primary);
  word-break: break-all;
}

.about-disclaimer {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* --- サービス --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid rgba(107, 0, 153, 0.3);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(204, 0, 255, 0.15);
  border-color: var(--purple-light);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 8px;
}

.service-example {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  background: rgba(107, 0, 153, 0.15);
  padding: 8px 12px;
  border-radius: 6px;
}

/* --- 実績 --- */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  text-align: center;
}

.achievement-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.achievement-number {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: bold;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
}

.achievement-unit {
  font-size: clamp(16px, 2.5vw, 24px);
  color: var(--gold);
}

.achievement-label {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: bold;
}

.achievement-detail {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.achievements-disclaimer {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-muted);
}

/* --- チーム --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.team-card {
  text-align: center;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 40px 24px;
  border: 1px solid rgba(107, 0, 153, 0.2);
  transition: transform 0.3s;
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-avatar {
  font-size: 64px;
  margin-bottom: 16px;
}

.team-name {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 12px;
}

.team-role {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  word-break: break-all;
}

/* --- お問い合わせ --- */
.contact-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--purple-main);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(204, 0, 255, 0.15);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--purple-main), var(--purple-glow));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 24px rgba(204, 0, 255, 0.4);
}

.submit-btn:active {
  transform: scale(0.98);
}

.contact-disclaimer {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* --- フッター --- */
.site-footer {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid rgba(107, 0, 153, 0.3);
  background: rgba(0, 0, 0, 0.3);
}

.footer-joke {
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: bold;
}

.footer-company {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 12px;
  word-break: break-all;
  line-height: 1.4;
}

.footer-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .about-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .header-nav {
    gap: 0;
    padding: 6px 12px;
  }

  .header-nav a {
    font-size: 12px;
    padding: 4px 8px;
  }

  .section {
    padding: 60px 0;
  }

  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 20px;
  }

  .section-title {
    font-size: 24px;
  }
}
