/* ========================================
   LincleOne - Corporate Site
   ======================================== */

:root {
  --color-bg: #0a0a0c;
  --color-surface: #12121a;
  --color-surface-alt: #1a1a24;
  --color-text: #e8e8ed;
  --color-text-muted: #8a8a9a;
  --color-accent: #6366f1;
  --color-accent-hover: #818cf8;
  --color-border: rgba(255, 255, 255, 0.08);
  --font-sans: 'Outfit', 'Noto Sans JP', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --header-height: 72px;
  --container: min(92vw, 1100px);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.25s var(--ease-in-out);
}

a:hover {
  color: var(--color-accent-hover);
}

/* ========================================
   Header (Fixed)
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.header.is-scrolled {
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.logo:hover {
  color: var(--color-text);
  opacity: 0.9;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav-link:hover {
  color: var(--color-text);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.35s var(--ease-out-expo), opacity 0.25s;
}

.header.is-open .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header.is-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.header.is-open .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: var(--color-bg);
  padding: 32px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.header.is-open .nav-overlay {
  opacity: 1;
  visibility: visible;
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 24px;
}

.nav-mobile-link {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
}

/* ========================================
   Hero
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 48px) 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(99, 102, 241, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 640px;
  text-align: center;
}

.hero-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.35s forwards;
}

.hero-title-line {
  display: block;
}

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--color-text-muted);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.5s forwards;
}

.hero-cta {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-bg);
  background: var(--color-accent);
  border-radius: 8px;
  transition: background 0.3s, transform 0.25s var(--ease-out-expo);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.65s forwards;
}

.hero-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  color: var(--color-bg);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out-expo) 1s forwards;
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
  border-radius: 1px;
  animation: scrollLine 2s var(--ease-in-out) infinite;
}

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

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ========================================
   Sections (common)
   ======================================== */

.section {
  padding: 100px 24px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 48px;
}

/* ========================================
   Services (事業内容)
   ======================================== */

.section-services {
  background: var(--color-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s, box-shadow 0.4s var(--ease-out-expo);
  opacity: 0;
  animation: cardReveal 0.7s var(--ease-out-expo) calc(0.1s * var(--delay)) forwards;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
}

.service-icon {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.service-desc strong {
  color: var(--color-text);
  font-weight: 500;
}

.service-cta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.service-cta-link {
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-cta-link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease-in-out);
}

.service-cta-link:hover::after {
  width: 12px;
  margin-left: 4px;
}

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

/* ========================================
   About (会社概要)
   ======================================== */

.section-about {
  background: var(--color-bg);
}

.about-content {
  max-width: 560px;
}

.about-list {
  display: grid;
  gap: 20px;
}

.about-list dt {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.about-list dd {
  font-size: 1rem;
  color: var(--color-text);
}

.about-list dd a {
  color: var(--color-accent);
}

/* ========================================
   Privacy (プライバシーポリシー)
   ======================================== */

.section-privacy {
  background: var(--color-surface);
}

.privacy-content {
  max-width: 640px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.privacy-updated {
  font-size: 0.85rem;
  margin-bottom: 24px;
  color: var(--color-text-muted);
  opacity: 0.8;
}

.privacy-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 28px;
  margin-bottom: 10px;
}

.privacy-content p {
  margin-bottom: 12px;
  line-height: 1.8;
}

/* ========================================
   Contact (お問い合わせ)
   ======================================== */

.section-contact {
  background: var(--color-bg);
}

.contact-content {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

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

.contact-email {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: var(--color-accent);
  display: inline-block;
  padding: 16px 28px;
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  transition: background 0.3s, color 0.3s, transform 0.25s var(--ease-out-expo);
}

.contact-email:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  transform: translateY(-2px);
}

/* ========================================
   Footer
   ======================================== */

.footer {
  padding: 32px 24px;
  border-top: 1px solid var(--color-border);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ========================================
   Responsive (スマホ重視)
   ======================================== */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 28px 24px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-overlay {
    display: block;
  }

  .section {
    padding: 72px 20px;
  }

  .section-title {
    margin-bottom: 36px;
  }

  .hero {
    padding: calc(var(--header-height) + 32px) 20px 64px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .contact-email {
    font-size: 1rem;
    padding: 14px 22px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0 16px;
  }

  .section {
    padding: 56px 16px;
  }

  .container {
    width: 100%;
  }

  .service-card {
    padding: 24px 20px;
  }

  .about-list dt,
  .about-list dd {
    font-size: 0.9rem;
  }

  .privacy-content {
    font-size: 0.9rem;
  }
}
