/* ==========================================================================
   Base
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Neue Haas Grotesk", "Helvetica Neue", "Inter", system-ui, -apple-system, sans-serif;
  background: #FFFFFF;
  color: #0000E6;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-error,
.field-error {
  color: #b00020;
}

.contact-confirm .field {
  border-bottom: 1px solid #000;
  padding: 24px 0;
}

.confirm-label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}

.contact-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

.submit-btn-secondary {
  background: transparent;
  color: #000;
  border: 1px solid #000;
}

.contact-back-top {
  display: inline-block;
  margin-top: 32px;
}

a {
  color: #0000E6;
  text-decoration: none;
}

a:hover {
  color: #0000E6;
}

input,
textarea {
  font-family: inherit;
}

@keyframes logo-reveal {
  from { opacity: 0; transform: scale(1.14); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Custom cursor
   ========================================================================== */
.cursor-dot {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: transform .15s ease-out, opacity .2s ease;
}

.cursor-dot-inner {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0000E6;
  border: 1.5px solid #FFFFFF;
  transform: scale(1);
  transition: transform .45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) and (pointer: fine) {
  .cursor-dot {
    display: block;
  }

  * {
    cursor: none;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid #0000E6;
}

.logo-link {
  display: block;
  line-height: 0;
}

.header-logo {
  height: 20px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links-scroll {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color .2s ease;
}

.nav-cta {
  padding: 10px 24px;
  background: #0000E6;
  color: #FFFFFF;
  border-radius: 9999px;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  display: inline-block;
}

.nav-cta:hover {
  background: #FFFFFF;
  color: #0000E6;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #0000E6;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* ==========================================================================
   Scroll progress bar
   ========================================================================== */
.progress-bar {
  position: fixed;
  top: 64px;
  left: 0;
  height: 3px;
  background: #0000E6;
  z-index: 99;
  width: 0%;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 40px;
  margin-top: 64px;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.hero-dots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, #0000E6 0.5px, transparent 0.5px);
  background-size: 48px 48px;
  opacity: 0.3;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1200px;
}

.hero-logo-wrap {
  margin: 0;
}

.hero-logo-img {
  width: min(90vw, 900px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: url(#wave-distort);
  animation: logo-reveal 3s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

/* ==========================================================================
   Section title (shared)
   ========================================================================== */
.title-block {
  --title-size: clamp(4rem, 11.5vw, 9.5rem);
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 48px;
}

.title-number {
  flex: none;
  writing-mode: vertical-rl;
  text-orientation: sideways;
  font-size: calc(var(--title-size) * 0.53);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #0000E6;
  padding-bottom: 6px;
  position: relative;
  top: 0.075em;
  opacity: 0;
  transition: opacity .6s ease;
}

.title-number.revealed {
  opacity: 1;
}

.section-title {
  font-weight: 800;
  font-size: var(--title-size);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transform-origin: left center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .9s cubic-bezier(0.33, 1, 0.68, 1), transform .9s cubic-bezier(0.33, 1, 0.68, 1);
}

.title-dot {
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  margin-left: 0.08em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: baseline;
}

.section-title.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  padding: 160px 40px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  scroll-margin-top: 64px;
}

.about-lead {
  align-self: flex-start;
  text-align: left;
  font-family: "Lexend Giga", "Neue Haas Grotesk", "Helvetica Neue", "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 56px;
  max-width: 1300px;
}

.about-body {
  align-self: flex-end;
  text-align: justify;
  font-size: 1rem;
  line-height: 1.6;
  color: #0000E6;
  max-width: 340px;
  letter-spacing: 0.01em;
  margin-bottom: 64px;
}

.business-list {
  width: 100%;
  max-width: 1100px;
  border-top: 1px solid rgba(0, 0, 230, 0.12);
}

.business-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(0, 0, 230, 0.12);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.business-row.revealed {
  opacity: 1;
  transform: translateY(0);
}

.business-index {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(0, 0, 230, 0.35);
  flex: none;
  width: 28px;
}

.business-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 1;
}

.business-en {
  font-weight: 700;
  font-size: 1.25rem;
  text-align: left;
}

.business-jp {
  font-size: 0.75rem;
  color: rgba(0, 0, 230, 0.4);
  text-align: right;
  flex: none;
}

/* ==========================================================================
   Works
   ========================================================================== */
.works {
  padding: 160px 40px;
  background: #0000E6;
  color: #FFFFFF;
  scroll-margin-top: 64px;
}

.works-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.works .title-block {
  margin-bottom: 64px;
}

.works .section-title {
  color: #FFFFFF;
}

.works .title-number {
  color: rgba(255, 255, 255, 0.7);
}

.works-list {
  border-top: 1px solid #FFFFFF;
}

.works-item-link {
  display: block;
  text-decoration: none;
  color: #FFFFFF;
}

.works-item-link[hidden] {
  display: none;
}

.works-item-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.works-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: fit-content;
  margin: 56px auto 0;
  padding: 12px 28px;
  background: #FFFFFF;
  border-radius: 9999px;
}

.works-pager-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #0000E6;
  font-size: 1.125rem;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  transition: opacity .2s ease;
}

.works-pager-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.works-pager-count {
  min-width: 56px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #0000E6;
  text-align: center;
}

.works-row {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  gap: 32px;
  align-items: center;
  padding: 64px 24px;
  border-bottom: 1px solid #FFFFFF;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease, padding-left .3s ease;
}

.works-row.revealed {
  opacity: 1;
  transform: translateY(0);
}

.works-item-link:hover .works-row {
  padding-left: 48px;
}

.works-date {
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
  opacity: 0.7;
}

.works-content-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.works-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.works-title-en {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #FFFFFF;
}

.works-title-jp {
  font-size: 0.8125rem;
  color: #FFFFFF;
  opacity: 0.7;
  line-height: 1.6;
}

.works-arrow {
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  transform: translateX(-8px);
  color: #FFFFFF;
}

.works-item-link:hover .works-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Clients
   ========================================================================== */
.clients {
  padding: 160px 40px;
  background: #FFFFFF;
  scroll-margin-top: 64px;
}

.clients-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.clients .title-block {
  margin-bottom: 64px;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.client-card {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  background: #0000E6;
  color: #FFFFFF;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.client-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.clients-more {
  display: inline-flex;
  align-items: center;
  padding: 12px 4px;
  color: #0000E6;
  font-size: 1.125rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.clients-more.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  padding: 160px 40px;
  background: #0000E6;
  color: #FFFFFF;
  scroll-margin-top: 64px;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact .title-block {
  --title-size: clamp(3.5rem, 10.5vw, 7.5rem);
  margin-bottom: 56px;
}

.contact .title-number {
  color: rgba(255, 255, 255, 0.7);
}

.contact .section-title {
  line-height: 0.95;
}

.contact-success {
  padding: 40px 0;
  font-size: 1.125rem;
  color: #FFFFFF;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-form[hidden] {
  display: none;
}

.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 0;
  color: #FFFFFF;
  font-size: 1rem;
  outline: none;
}

.field textarea {
  resize: vertical;
  font-family: inherit;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: #FFFFFF;
}

.field-error {
  font-size: 0.75rem;
  color: #FFFFFF;
  margin-top: 6px;
}

.submit-btn {
  margin-top: 24px;
  align-self: flex-start;
  padding: 16px 48px;
  border-radius: 9999px;
  background: #FFFFFF;
  color: #0000E6;
  border: none;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}

.submit-btn:hover {
  background: #0000E6;
  color: #FFFFFF;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 48px 40px;
  background: #0000E6;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name {
  font-weight: 800;
  font-size: 1rem;
  color: #FFFFFF;
}

.footer-name-jp {
  font-size: 0.8125rem;
}

.footer-location {
  font-size: 0.8125rem;
  margin-top: 4px;
}

.footer-email {
  font-size: 0.8125rem;
  color: inherit;
  display: inline-block;
  margin-top: 2px;
}

.footer-copyright {
  font-size: 0.75rem;
}

/* ==========================================================================
   Tablet (640px ~ 1023px)
   ========================================================================== */
@media (max-width: 1023px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .about,
  .works,
  .clients,
  .contact {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .about-body {
    margin-bottom: 48px;
  }

  .works-row {
    padding-top: 48px;
    padding-bottom: 48px;
  }

}

/* ==========================================================================
   Mobile (~ 639px)
   ========================================================================== */
@media (max-width: 639px) {
  .site-header {
    padding: 0 20px;
    gap: 12px;
  }

  .logo-link,
  .nav-cta {
    flex: none;
  }

  .main-nav {
    flex: 1 1 auto;
    min-width: 0;
    gap: 12px;
    justify-content: flex-end;
  }

  .nav-links-scroll {
    display: none;
  }

  .nav-cta {
    padding: 10px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #0000E6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .25s ease;
    z-index: 90;
  }

  .mobile-nav.open {
    max-height: 260px;
    opacity: 1;
  }

  .mobile-nav-link {
    padding: 18px 24px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid #0000E6;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .mobile-nav-link:last-child {
    border-bottom: none;
  }

  .hero,
  .about,
  .works,
  .clients,
  .contact {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .title-block {
    gap: 12px;
    margin-bottom: 32px;
  }

  .about-lead {
    font-size: clamp(1.9rem, 9.5vw, 2.3rem);
    margin-bottom: 32px;
  }

  .about-body {
    font-size: 0.8125rem;
    line-height: 1.6;
    max-width: 50%;
    margin-bottom: 40px;
  }

  .business-row {
    align-items: center;
    gap: 14px;
    padding: 14px 4px;
  }

  .business-index {
    font-size: 1rem;
    width: 22px;
  }

  .business-text {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
  }

  .business-en {
    font-size: 1.0625rem;
  }

  .business-jp {
    font-size: 0.6875rem;
    text-align: left;
  }

  .works .title-block,
  .clients .title-block {
    margin-bottom: 40px;
  }

  .works-row {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 32px 4px;
  }

  .works-arrow {
    display: none;
  }

  .works-pager {
    margin-top: 40px;
    gap: 20px;
    padding: 10px 20px;
  }

  .works-content-head {
    gap: 12px;
    margin-bottom: 12px;
  }

  .works-title-en {
    font-size: 1.125rem;
  }

  .client-card {
    padding: 10px 14px;
    font-size: 0.9375rem;
  }

  .clients-more {
    padding: 10px 4px;
    font-size: 0.9375rem;
  }

  .contact-inner {
    max-width: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 20px;
    gap: 8px;
  }
}
