/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0a0a14;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-surface-hover: rgba(255, 255, 255, 0.08);
  --color-text: #e0e0e8;
  --color-text-muted: #8888a0;
  --color-accent: #9060dd;
  --color-accent-glow: rgba(144, 96, 221, 0.3);
  --color-purple-deep: #2a1050;
  --font-main: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 1.05rem;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  overflow-x: hidden;
}

/* ===== Particle Canvas ===== */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== Header / Nav ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 10, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Sections ===== */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-inner {
  max-width: 800px;
  width: 100%;
  padding: 100px 24px 60px;
}

/* ===== Home ===== */
.section-home {
  text-align: center;
}

.home-content h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ffffff 0%, #c0a0ff 50%, #8060cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s 0.3s ease-out forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Section Titles ===== */
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 48px;
  letter-spacing: 0.04em;
  color: #fff;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

/* ===== About ===== */
.about-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-item {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-item dt {
  flex-shrink: 0;
  width: 110px;
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 600;
  padding-top: 2px;
}

.about-item dd {
  flex: 1;
  font-size: 1.05rem;
}

.about-sub {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.business-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.business-list li::before {
  content: "\2022";
  color: var(--color-accent);
  margin-right: 8px;
}

/* ===== Works ===== */
.works-content {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 40px;
}

.works-period {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.works-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.works-list li::before {
  content: "\2022";
  color: var(--color-accent);
  margin-right: 8px;
}

.works-more {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* ===== Contact ===== */
.contact-content {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

.contact-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.contact-btn {
  display: inline-block;
  padding: 16px 52px;
  background: linear-gradient(135deg, var(--color-accent), #6040aa);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-accent-glow);
}

.contact-note {
  color: var(--color-text-muted);
  font-size: 0.95rem !important;
  line-height: 1.8;
}

/* ===== Footer ===== */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 24px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links.open {
    max-height: 200px;
  }

  .nav-links a {
    padding: 16px;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }

  .nav-links a::after {
    display: none;
  }

  .about-item {
    flex-direction: column;
    gap: 4px;
  }

  .about-item dt {
    width: auto;
  }

  .works-content,
  .contact-content {
    padding: 24px;
  }

  .section-inner {
    padding: 80px 16px 40px;
  }
}
