/* ══ HERO ══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 56px 80px;
  overflow: hidden;
  background: #fff;
}

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent 0%, #fff 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  opacity: 0;
  animation: rise 1s 0.3s ease forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--blue);
  opacity: 0.6;
  flex-shrink: 0;
}

.hero h1 {
  font-family: 'M PLUS 1p', sans-serif;
  font-size: clamp(40px, 9.5vw, 75px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
  opacity: 0;
  animation: rise 1.2s 0.5s ease forwards;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
  display: block;
}

.hero-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0;
  animation: rise 1.2s 0.65s ease forwards;
}

.hero-sub {
  font-size: 14px;
  line-height: 2.1;
  font-weight: 400;
  letter-spacing: 0.02em;
  max-width: 450px;
  opacity: 0;
  animation: rise 1.2s 0.85s ease forwards;
}

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

/* ══ SERVICES ══ */
#services {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 130px 56px 140px;
}

.services-inner {
  max-width: 960px;
  margin: 0 auto;
}

.services-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(2,40,64,0.1);
  margin-bottom: 0;
}

.services-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 12px;
}
.services-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--blue);
  opacity: 0.5;
  flex-shrink: 0;
}

.services-heading-row h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--dark);
}
.services-heading-row h2 em {
  font-style: normal;
  color: var(--blue);
}

.services-list {
  list-style: none;
  width: 100%;
}

.services-list li {
  border-bottom: 1px solid rgba(2,40,64,0.06);
}

.service-row {
  display: grid;
  grid-template-columns: 192px 180px 1fr 130px;
  align-items: center;
  gap: 0 32px;
  padding: 28px 20px;
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
}

.service-row::before {
  content: '';
  position: absolute;
  left: -2px; top: 0;
  width: 2px; height: 0;
  background: var(--blue);
  transition: height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.service-row:hover::before { height: 100%; }

.service-row::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,160,236,0.04) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.service-row:hover::after { opacity: 1; }

.service-thumb {
  width: 192px;
  height: 108px;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f4fc, #cde8f7);
  flex-shrink: 0;
}
.service-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85);
  transition: transform 0.5s ease, filter 0.3s;
}
.service-row:hover .service-thumb img {
  transform: scale(1.07);
  filter: saturate(1);
}
.service-thumb-dummy {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(7,160,236,0.4);
  text-align: center;
  line-height: 1.6;
}

.service-names {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.service-name-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.service-row:hover .service-name-ja { color: var(--blue); }
.service-name-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11.5px;
  font-weight: 300;
  font-style: italic;
  color: rgba(7,160,236,0.6);
  letter-spacing: 0.1em;
}

.service-desc {
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--muted);
  letter-spacing: 0.015em;
}

.service-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.service-domain {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(7,160,236,0.5);
  white-space: nowrap;
}
.service-arrow {
  width: 30px; height: 30px;
  border: 1px solid rgba(7,160,236,0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--blue);
  transition: background 0.2s, border-color 0.2s, transform 0.25s;
}
.service-row:hover .service-arrow {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateX(4px);
}

/* ══ RESPONSIVE (hero/services) ══ */
@media (max-width: 860px) {
  .hero { padding: 120px 24px 80px; }
  #services { padding: 80px 24px 100px; }
  .services-heading-row { flex-direction: column; gap: 10px; }
  .service-row { grid-template-columns: 120px 1fr; }
  .service-desc { display: none; }
  .service-cta  { display: none; }
  .service-thumb { width: 120px; height: 68px; }
}
