:root {
  --primary: #4DD2F3;
  --secondary: #2C59BD;
  --bg: #020617;
  --surface: #1E293B;
  --text: #F8FAFC;
  --text-muted: #A8B8C8;
  --border: #334155;
  --glow: rgba(77, 210, 243, 0.4);
  --glow-soft: rgba(77, 210, 243, 0.15);
  --radius: 8px;
  --font-heading: 'Inter', 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background-color: var(--bg); color: var(--text); line-height: 1.8; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn-primary:focus-visible, .btn-cta:focus-visible { outline-offset: 4px; box-shadow: 0 0 0 4px rgba(77, 210, 243, 0.3), 0 0 30px var(--glow); }
.btn-outline:focus-visible { outline-offset: 4px; box-shadow: 0 0 0 4px rgba(77, 210, 243, 0.3); }
.nav a:focus-visible { outline-offset: 6px; }
.menu-toggle:focus-visible { outline-offset: 6px; border-radius: 4px; }
.footer-nav a:focus-visible, .footer-privacy:focus-visible { outline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; }
.bg-grid { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; background-image: linear-gradient(rgba(77, 210, 243, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(77, 210, 243, 0.03) 1px, transparent 1px); background-size: 60px 60px; }
.bg-glow-orb { position: fixed; width: 600px; height: 600px; border-radius: 50%; filter: blur(120px); opacity: 0.12; pointer-events: none; z-index: 0; }
.bg-glow-orb--1 { top: -200px; right: -100px; background: var(--primary); }
.bg-glow-orb--2 { bottom: 30%; left: -200px; background: var(--secondary); opacity: 0.08; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in-up { opacity: 0; animation: fadeInUp 0.8s ease-out forwards; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; } .delay-3 { animation-delay: 0.3s; } .delay-4 { animation-delay: 0.4s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { position: relative; z-index: 1; }
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; transition: all 0.3s ease; background: rgba(2, 6, 23, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(2, 6, 23, 0.9); border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img#headerLogo { height: 50px; width: auto; max-height: 50px; object-fit: contain; }
.logo-company { height: 30px !important; max-height: 30px !important; width: auto; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); transition: color 0.3s ease; letter-spacing: 0.02em; }
.nav a:hover { color: var(--primary); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: all 0.3s ease; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; height: 800px; background: radial-gradient(circle, var(--glow-soft) 0%, transparent 70%); pointer-events: none; }
.hero h1 { font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 28px; letter-spacing: -0.03em; }
.hero h1 .highlight { color: var(--primary); text-shadow: 0 0 40px var(--glow); }
.hero-desc { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-muted); max-width: 640px; margin: 0 auto 48px; line-height: 2; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 16px 40px; font-size: 1rem; font-weight: 700; color: var(--bg); background: var(--primary); border: none; border-radius: var(--radius); cursor: pointer; transition: all 0.3s ease; font-family: var(--font-body); box-shadow: 0 0 30px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px var(--glow); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 16px 40px; font-size: 1rem; font-weight: 700; color: var(--primary); background: transparent; border: 2px solid var(--primary); border-radius: var(--radius); cursor: pointer; transition: all 0.3s ease; font-family: var(--font-body); }
.btn-outline:hover { background: rgba(77, 210, 243, 0.1); transform: translateY(-2px); }
.services { padding: 120px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  text-align: center;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 64px;
  letter-spacing: -0.02em;
  text-align: center;
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card { padding: 24px 32px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.4s ease; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: 0; transition: opacity 0.4s ease; }
.service-card:hover { border-color: rgba(77, 210, 243, 0.3); transform: translateY(-8px); box-shadow: 0 0 40px rgba(77, 210, 243, 0.1); }
.service-card:hover::before { opacity: 1; }
.service-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(77, 210, 243, 0.1); margin-bottom: 20px; color: var(--primary); flex-shrink: 0; }
.service-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.01em; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.9; }
.service-card p br { display: none; }
.service-card p br.pc-br { display: inline; }
.philosophy { padding: 120px 0; max-width: 100%; }
.philosophy-inner { max-width: 800px; margin: 0 auto; text-align: left; }
.philosophy h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  text-align: center;
}
.philosophy-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 36px;
  text-align: center;
}
.philosophy-points { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.philosophy-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  font-size: 0.95rem;
  justify-content: center;
}
.philosophy-points li .icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(77, 210, 243, 0.1); color: var(--primary); flex-shrink: 0; }
.philosophy-points li .icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.company { padding: 120px 0; }
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 900px; margin: 0 auto; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { padding: 16px 0; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.95rem; vertical-align: top; }
.company-table th { color: var(--primary); font-weight: 600; width: 120px; white-space: nowrap; font-family: var(--font-heading); }
.company-table td { color: var(--text-muted); line-height: 1.8; }
.works-heading { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.works-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.works-item { padding: 20px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.3s ease; }
.works-item:hover { border-color: rgba(77, 210, 243, 0.3); }
.works-item-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; font-family: var(--font-heading); }
.works-item-name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.works-item-desc { font-size: 0.85rem; color: var(--text-muted); }
@media (max-width: 968px) {
  .company-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .company { min-height: 100vh; padding: 60px 16px 24px; display: flex; align-items: center; }
  .company .container { width: 100%; }
  .company .section-title { margin-bottom: 16px; }
  .company-grid { gap: 16px; }
  .company-table th, .company-table td { font-size: 0.8rem; padding: 8px 0; line-height: 1.6; }
  .company-table th { width: 80px; }
  .works-list { gap: 8px; }
  .works-item { padding: 10px 14px; }
  .works-item-label { font-size: 0.6rem; margin-bottom: 2px; }
  .works-item-name { font-size: 0.85rem; margin-bottom: 2px; }
  .works-item-desc { font-size: 0.75rem; }
  .company h3 { font-size: 1rem !important; margin-bottom: 12px !important; }
}
.cta { padding: 100px 0; text-align: center; position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(77, 210, 243, 0.08), rgba(44, 89, 189, 0.08)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 600px; background: radial-gradient(circle, var(--glow-soft) 0%, transparent 70%); pointer-events: none; }
.cta h2 { font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 20px; letter-spacing: -0.02em; }
.cta-desc { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 44px; }
.btn-cta { display: inline-flex; align-items: center; gap: 10px; padding: 20px 52px; font-size: 1.1rem; font-weight: 700; color: var(--bg); background: var(--primary); border: none; border-radius: var(--radius); cursor: pointer; transition: all 0.3s ease; font-family: var(--font-body); box-shadow: 0 0 40px var(--glow); position: relative; z-index: 1; }
.btn-cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 0 60px var(--glow); }
.cta-footer { display: none; }
.footer { padding: 48px 0; border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.footer-company { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text); }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--primary); }
.footer-bottom { display: flex; gap: 24px; align-items: center; }
.footer-privacy { font-size: 0.8rem; color: var(--text-muted); transition: color 0.3s ease; }
.footer-privacy:hover { color: var(--primary); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); opacity: 0.6; }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 968px) {
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    background: var(--bg);
    justify-content: center;
    align-items: center;
    gap: 0;
    z-index: 99;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease 0.3s, visibility 0s linear 0.65s;
  }
  .nav.active {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s ease, visibility 0s linear;
  }
  .nav a {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.08em;
    padding: 24px 0;
    position: relative;
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.7, 0, 0.3, 1), color 0.3s ease;
  }
  .nav a:nth-child(4) { transition-delay: 0s; }
  .nav a:nth-child(3) { transition-delay: 0.08s; }
  .nav a:nth-child(2) { transition-delay: 0.16s; }
  .nav a:nth-child(1) { transition-delay: 0.24s; }
  .nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--border);
  }
  .nav a:last-of-type::after { display: none; }
  .nav a:hover { color: var(--primary); }
  .nav.active a {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  }
  .nav.active a:nth-child(1) { transition-delay: 0.15s; }
  .nav.active a:nth-child(2) { transition-delay: 0.25s; }
  .nav.active a:nth-child(3) { transition-delay: 0.35s; }
  .nav.active a:nth-child(4) { transition-delay: 0.45s; }
  .menu-toggle { display: flex; position: relative; z-index: 101; }
  .services-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  body.swipe-mode { overflow: hidden; }
  .logo img#headerLogo { height: 32px; max-height: 32px; }
  .logo-company { height: 26px !important; max-height: 26px !important; }
  .swipe-dots { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; }
  .swipe-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); opacity: 0.4; transition: all 0.3s ease; }
  .swipe-dot.active { background: var(--primary); opacity: 1; height: 16px; border-radius: 3px; }
  .hero { min-height: 100vh; padding: 80px 24px 40px; text-align: center; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); margin-bottom: 20px; }
  .hero-desc { font-size: 0.9rem; margin-bottom: 32px; line-height: 1.8; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 12px; }
  .btn-primary, .btn-outline { width: 100%; max-width: 280px; justify-content: center; padding: 14px 32px; }
  .services { min-height: 100vh; padding: 60px 16px 24px; display: flex; align-items: center; }
  .services .container { width: 100%; padding: 0 16px; }
  .services .section-label { margin-bottom: 8px; }
  .services .section-title { margin-bottom: 16px; font-size: 1.3rem; }
  .section-title { margin-bottom: 24px; font-size: 1.5rem; }
  .section-label { display: block; text-align: center; }
  .section-title { text-align: center; }
  .philosophy h2 { text-align: center; }
  .services-grid { grid-template-columns: 1fr; gap: 8px; }
  .service-card { padding: 10px 14px; display: flex; align-items: center; gap: 12px; }
  .service-card-text { flex: 1; }
  .service-icon { width: 32px; height: 32px; margin-bottom: 0; }
  .service-icon svg { width: 16px; height: 16px; }
  .service-card h3 { font-size: 0.9rem; margin-bottom: 2px; }
  .service-card p { font-size: 0.8rem; line-height: 1.5; }
  .service-card p br { display: inline; }
  .service-card p br.pc-br { display: inline; }
  .philosophy { min-height: 100vh; padding: 80px 24px 40px; display: flex; align-items: center; }
  .philosophy .container { width: 100%; }
  .philosophy h2 { font-size: 1.5rem; margin-bottom: 16px; }
  .philosophy-text { font-size: 0.9rem; margin-bottom: 20px; line-height: 1.8; }
  .philosophy-points li { font-size: 0.9rem; }
  .cta { min-height: 100vh; padding: 80px 24px 40px; display: flex; align-items: center; }
  .cta .container { width: 100%; }
  .cta h2 { font-size: 1.5rem; margin-bottom: 16px; }
  .cta-desc { font-size: 1rem; margin-bottom: 24px; }
  .btn-cta { padding: 16px 36px; font-size: 1rem; }
  .footer { display: none; }
  .cta-footer { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; }
  .cta-footer a, .cta-footer p { font-size: 0.7rem; color: var(--text-muted); opacity: 0.6; }
  .cta-footer a:hover { color: var(--primary); opacity: 1; }
}
