*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg: #FFFFFF;
  --bg-alt: #F4FAFC;
  --text: #0A1F2E;
  --text-muted: #5B6B78;
  --border: #DCE8EE;
  --border-dark: #0A1F2E;
  --accent: #0EA5E9;
  --accent-dark: #0284C7;
  --accent-soft: #E0F2FE;
  --accent-gradient: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 60%, #0284C7 100%);
  --container: 1120px;
  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'palt';
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}
.section-head .eyebrow {
  display: inline-flex;
}
.eyebrow-spaced { margin-top: 32px; }

.section {
  padding: 140px 0;
}
.section-alt { background: var(--bg-alt); }

.section-head {
  margin-bottom: 72px;
  text-align: center;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav {
  display: flex;
  gap: 40px;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}
.nav a:hover { opacity: 0.55; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid transparent;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #FFF;
  border-color: transparent;
  box-shadow: 0 6px 20px -8px rgba(14, 165, 233, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -6px rgba(14, 165, 233, 0.65);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-outline:hover {
  background: var(--text);
  color: #FFF;
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Hero */
.hero {
  padding: 100px 0 140px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(56, 189, 248, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(165, 243, 252, 0.35) 0%, transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, #F0F9FF 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.18) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.hero-title {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 20px 0 28px;
}
.hero-title .accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.hero-lead {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 44px;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-avatar-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
}
.hero-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-alt);
  position: relative;
  box-shadow: 0 24px 60px -24px rgba(14, 165, 233, 0.25);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 96px;
  margin-bottom: 96px;
  padding-top: 16px;
}
.about-text p {
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 2;
}
.about-text p:last-child { margin-bottom: 0; }
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-list li {
  padding: 9px 18px;
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.2s;
}
.tag-list li:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}
.clients {
  padding-top: 56px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.client-list {
  list-style: none;
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Works */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}
.work-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s;
}
.work-card:hover { transform: translateY(-6px); }
.work-thumb {
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s;
}
.work-card:hover .work-overlay { background: rgba(0, 0, 0, 0.35); }
.work-overlay svg {
  width: 64px;
  height: 64px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s, transform 0.2s;
}
.work-card:hover .work-overlay svg {
  opacity: 1;
  transform: scale(1);
}
.work-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}
.work-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.works-more {
  text-align: center;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.process-item {
  padding: 36px 0 0;
  border-top: 2px solid var(--text);
  position: relative;
}
.process-item::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-gradient);
}
.process-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Inter', sans-serif;
}
.process-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.process-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
}

/* Contact */
.contact-lead {
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 56px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.contact-card {
  display: block;
  padding: 36px 40px;
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  position: relative;
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -12px rgba(14, 165, 233, 0.3);
}
.contact-card:hover .contact-value {
  color: var(--accent-dark);
}
.contact-card:hover .contact-arrow {
  color: var(--accent);
}
.contact-value { transition: color 0.2s; }
.contact-arrow { transition: transform 0.2s, color 0.2s; }
.contact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}
.contact-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.005em;
  word-break: break-all;
}
.contact-arrow {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 300;
  color: var(--text);
  transition: transform 0.2s;
}
.contact-card:hover .contact-arrow {
  transform: translateY(-50%) translateX(6px);
}

/* Footer */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: #FFF;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  font-family: 'Inter', sans-serif;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.work-card.reveal { transition-delay: 0.05s; }
.work-card:nth-child(2).reveal { transition-delay: 0.1s; }
.work-card:nth-child(3).reveal { transition-delay: 0.15s; }
.work-card:nth-child(4).reveal { transition-delay: 0.05s; }
.work-card:nth-child(5).reveal { transition-delay: 0.1s; }
.work-card:nth-child(6).reveal { transition-delay: 0.15s; }
.process-item.reveal { transition-delay: 0.05s; }
.process-item:nth-child(2).reveal { transition-delay: 0.1s; }
.process-item:nth-child(3).reveal { transition-delay: 0.15s; }
.process-item:nth-child(4).reveal { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .nav-cta { padding: 10px 20px; font-size: 13px; }
  .hero { padding: 72px 0 100px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-actions { justify-content: center; }
  .hero-avatar-wrap { max-width: 220px; margin: 0 auto; }
  .hero-lead br { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .client-list { gap: 24px; font-size: 17px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 56px; }
  .container { padding: 0 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
  body { font-size: 14px; }
  .works-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .work-title { font-size: 12px; }
  .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-card { padding: 28px 24px; }
  .contact-arrow { right: 24px; }
}
