:root {
  --red: #e32d27;
  --ink: #08090c;
  --muted: #303846;
  --line: rgba(8, 9, 12, .12);
  --blue: #1266ff;
  --green: #20bf63;
  --yellow: #f8b800;
  --shadow: 0 16px 44px rgba(8, 9, 12, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Segoe UI", "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-optical-sizing: auto;
  font-synthesis: none;
  letter-spacing: 0;
  font-weight: 500;
}
button,
input,
textarea,
select {
  font: inherit;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page-shell {
  width: min(100%, 1536px);
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
}

.site-header {
  height: 78px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(8, 9, 12, .05);
  background: rgba(255, 255, 255, .96);
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
}
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}
.brand img {
  width: 214px;
  height: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  color: #05070a;
}
.nav-links a {
  padding: 11px 8px;
  border-radius: 8px;
  letter-spacing: .01em;
}
.nav-links a:hover {
  background: rgba(8, 9, 12, .045);
}
.header-actions { display: flex; gap: 14px; align-items: center; }
.btn {
  min-height: 44px;
  padding: 0 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.btn-large { min-height: 62px; padding: 0 34px; font-size: 18px; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(255, 47, 34, .22); }
.btn-ghost, .btn-outline { background: #fff; border-color: var(--line); }
.btn-white { background: #fff; color: var(--ink); min-width: 210px; }
.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 70;
}
.menu-button span {
  display: block;
  width: 34px;
  height: 4px;
  margin: 5px auto;
  border-radius: 4px;
  background: var(--ink);
  transition: transform .18s ease, opacity .18s ease;
}
.mobile-menu {
  display: none;
}

.hero {
  min-height: 890px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(620px, 48%) minmax(0, 52%);
  align-items: start;
  padding: 96px 28px 40px 88px;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 64px;
}
.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(66px, 5.4vw, 98px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 800;
}
.hero-line {
  display: inline-block;
  white-space: nowrap;
}
.hero h1 strong {
  color: var(--red);
  display: inline;
  font-weight: 800;
}
.hero-copy p {
  margin: 24px 0 0;
  max-width: 500px;
  color: #1e2430;
  font-size: 21px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 18px; margin-top: 34px; }
.platforms {
  display: flex;
  align-items: center;
  gap: 19px;
  flex-wrap: wrap;
  margin-top: 90px;
  font-size: 15px;
  font-weight: 800;
}
.platforms span { display: inline-flex; align-items: center; line-height: 1; }
.platform-logo-row {
  gap: 19px;
  min-height: 18px;
}
.platform-logo-row img {
  display: block;
  width: auto;
  object-fit: contain;
  image-rendering: auto;
  flex: 0 0 auto;
}
.platform-logo-makuake { height: 14px !important; max-width: 74px !important; }
.platform-logo-amazon { height: 15px !important; max-width: 82px !important; }
.platform-logo-rakuten { height: 14px !important; max-width: 66px !important; }
.platform-logo-line { height: 14px !important; max-width: 40px !important; }
.platform-logo-yahoo { height: 13px !important; max-width: 76px !important; }
.logo-makuake {
  color: #2a3444;
  font-weight: 800;
}
.logo-makuake::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border-radius: 50%;
  background: conic-gradient(#ff7a00 0 25%, #2166ff 0 50%, #28c76f 0 75%, #ff2448 0);
}
.logo-amazon {
  position: relative;
  color: #111;
  font-weight: 800;
  letter-spacing: 0;
}
.logo-amazon::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 7px;
  bottom: -7px;
  height: 7px;
  border-bottom: 2px solid #ff9900;
  border-radius: 0 0 60% 60%;
  transform: rotate(-5deg);
}
.logo-rakuten {
  color: #bf0000;
  font-weight: 800;
  font-family: Georgia, "Times New Roman", serif;
}
.logo-line {
  color: #06c755;
  font-weight: 800;
}
.logo-yahoo {
  color: #e60012;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 690px;
}
.hero-visual img {
  width: min(900px, 62vw);
  max-width: none;
  height: auto;
  aspect-ratio: 3200 / 2133;
  object-fit: contain;
  position: absolute;
  right: -12px;
  top: 0;
  filter: drop-shadow(0 18px 32px rgba(8, 9, 12, .10));
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  min-height: 142px;
  padding: 0 62px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof-strip article {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 28px 20px 0;
  border-right: 1px solid var(--line);
}
.proof-strip article:last-child { border-right: 0; }
.proof-strip strong { display: block; font-size: 21px; line-height: 1.18; font-weight: 800; }
.proof-strip p { margin: 7px 0 0; color: #111827; font-size: 15px; line-height: 1.5; }
.proof-icon {
  width: 74px;
  height: 74px;
  object-fit: contain;
  justify-self: center;
  align-self: center;
  transform: translateX(8px);
}

.section {
  padding: 72px 64px;
  border-bottom: 1px solid rgba(8, 9, 12, .07);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}
.section h2 {
  margin: 0 0 34px;
  font-size: clamp(38px, 3.4vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 24px 22px;
  min-height: 415px;
  background: #fff;
}
.service-visual {
  width: 100%;
  height: 226px;
  object-fit: contain;
  object-position: center center;
  margin: -22px auto 2px;
}
.service-mobile-icon,
.service-card > .service-mobile-icon,
.service-card .service-mobile-icon {
  display: none !important;
}
.service-card h3 { margin: 0; font-size: 29px; letter-spacing: 0; font-weight: 800; }
.service-card p { min-height: 92px; margin: 10px 0 16px; color: #0f172a; font-size: 16px; line-height: 1.52; }
.service-card a { color: #004fd6; font-weight: 800; font-size: 16px; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: stretch;
}
.process-step {
  position: relative;
  min-height: 250px;
  padding: 12px 4px 24px;
  border-bottom: 0;
}
.process-step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 24px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.process-step::before {
  display: none;
}
.process-step:last-child::before { display: none; }
.process-step span { font-size: 38px; line-height: 1; font-weight: 800; }
.process-step h3 { margin: 12px 0 6px; font-size: 23px; font-weight: 800; }
.process-step p { margin: 0; max-width: 225px; color: #0f172a; font-size: 15px; line-height: 1.52; }
.process-step img {
  position: absolute;
  right: 10px;
  bottom: 22px;
  width: 136px;
  height: 136px;
  object-fit: contain;
}
.step-red { color: var(--red); }
.step-blue { color: var(--blue); }
.step-green { color: var(--green); }
.step-yellow { color: var(--yellow); }
.step-red::after { background-image: url("./assets/process-line-red-v11.svg"); }
.step-blue::after { background-image: url("./assets/process-line-blue-v11.svg"); }
.step-green::after { background-image: url("./assets/process-line-green-v11.svg"); }
.step-yellow::after { background-image: url("./assets/process-line-yellow-v11.svg"); }
.process-step h3, .process-step p { color: var(--ink); }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.case-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  min-height: 218px;
  overflow: hidden;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.case-card:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 9, 12, .2);
  box-shadow: 0 18px 42px rgba(8, 9, 12, .10);
}
.case-card > span {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  background: #1f2329;
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 800;
}
.case-card .case-logo-badges {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(8, 9, 12, .10);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(8, 9, 12, .14);
}
.case-logo-badges img {
  width: auto;
  height: 26px;
  max-width: 132px;
  object-fit: contain;
}
.case-logo-badges-duo img {
  height: 24px;
  max-width: 108px;
}
.case-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}
.case-card .case-logo-badges img {
  width: auto;
  height: 26px;
  max-width: 132px;
  object-fit: contain;
}
.case-card .case-logo-badges-duo img {
  height: 24px;
  max-width: 108px;
}

.cta-band {
  margin: 42px 24px 0;
  border-radius: 28px;
  min-height: 228px;
  background: linear-gradient(135deg, #e32d27 0%, #d3241e 62%, #f07a2a 100%);
  color: #fff;
  padding: 42px 78px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  position: relative;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -10px;
  width: min(45vw, 520px);
  height: 220px;
  background: url("./assets/cta-growth-chart-v2.svg") center / contain no-repeat;
  pointer-events: none;
  opacity: .9;
}
.cta-band > * {
  position: relative;
  z-index: 1;
}
.cta-band h2 { margin: 0; font-size: 58px; line-height: 1; letter-spacing: 0; font-weight: 800; }
.cta-band p { margin: 12px 0 28px; font-size: 22px; font-weight: 700; }
.cta-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cta-metrics span {
  min-height: 70px;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  display: grid;
  align-content: center;
}
.cta-metrics strong { display: block; font-size: 27px; }

.footer {
  min-height: 154px;
  padding: 34px 88px 54px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  color: #202631;
}
.footer strong { font-size: 26px; }
.footer p { margin: 0; max-width: 680px; color: var(--muted); font-size: 17px; line-height: 1.55; }

@media (max-width: 1120px) {
  .site-header { height: 86px; }
  .nav-links,
  .header-actions { display: none; }
  .menu-button { display: block; margin-left: auto; }
  .site-header.menu-open .menu-button span:nth-child(1),
  .menu-open .menu-button span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .site-header.menu-open .menu-button span:nth-child(2),
  .menu-open .menu-button span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .menu-button span:nth-child(3),
  .menu-open .menu-button span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .mobile-menu {
    position: absolute;
    top: calc(100% - 8px);
    left: 24px;
    right: 24px;
    z-index: 80;
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 54px rgba(8, 9, 12, .14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
  }
  .site-header.menu-open .mobile-menu,
  .menu-open .mobile-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .mobile-menu a {
    min-height: 50px;
    padding: 0 16px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
  }
  .mobile-menu a:not(.btn) { border: 1px solid transparent; }
  .mobile-menu a:not(.btn):active { background: rgba(8, 9, 12, .04); }
  .mobile-menu .btn {
    margin-top: 4px;
    justify-content: space-between;
  }
}

/* Fix: hero heading and hero illustration overlapped between the 900px
   (stacked mobile hero) and ~1408px (full two-column hero) breakpoints.
   Root cause: .hero used a hard 620px floor on the copy column
   (grid-template-columns: minmax(620px, 48%) ...) while .hero-visual img
   was sized from viewport width (min(900px, 62vw)) and absolutely
   positioned -- below ~1408px wide the copy column stayed pinned at
   620px, squeezing the image column, but the image kept its
   viewport-based width and bled left over the "Japan" text. */
@media (max-width: 1407px) and (min-width: 901px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 80px 28px 40px 56px;
  }
  .hero-copy {
    max-width: 480px;
  }
  .hero-line {
    display: block;
  }
  .hero h1 {
    font-size: clamp(44px, 5.6vw, 80px);
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  .hero-visual {
    min-height: 0;
  }
  .hero-visual img {
    position: static;
    width: 100%;
    height: auto;
    max-width: 560px;
    margin: 32px 0 0 auto;
    display: block;
  }
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100%, 774px);
    border-radius: 0;
  }
  .site-header {
    height: 98px;
    padding: 0 40px;
    border-bottom: 0;
  }
  .brand img { width: 245px; }
  .hero {
    min-height: 560px;
    grid-template-columns: 1fr;
    padding: 28px 40px 0;
  }
  .hero-copy { padding-top: 0; max-width: 330px; }
  .hero-line {
    display: block;
  }
  .hero h1 {
    font-size: 58px;
    line-height: 1.08;
    letter-spacing: 0;
  }
  .hero-copy p {
    font-size: 24px;
    color: #666b73;
    line-height: 1.45;
    margin-top: 24px;
    text-shadow: 0 1px 0 #fff, 0 0 14px #fff;
  }
  .hero-actions {
    margin-top: 34px;
    display: grid;
    gap: 14px;
    width: 268px;
  }
  .btn-large {
    min-height: 62px;
    border-radius: 10px;
    font-size: 25px;
    justify-content: space-between;
  }
  .platforms { display: none; }
  .hero-visual {
    position: absolute;
    inset: 154px -132px auto auto;
    width: 390px;
    height: 440px;
    z-index: 1;
    pointer-events: none;
  }
  .hero-visual img {
    position: static;
    width: 450px;
    max-width: none;
  }

  .proof-strip {
    margin-top: 8px;
    padding: 22px 40px 18px;
    min-height: 148px;
    grid-template-columns: repeat(4, 1fr);
  }
  .proof-strip article {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 8px;
    padding: 0 12px;
  }
  .proof-icon { width: 58px; height: 58px; }
  .proof-strip strong { font-size: 19px; }
  .proof-strip p { display: none; }

  .section { padding: 34px 40px; }
  .eyebrow { font-size: 19px; }
  .section h2 {
    display: block;
    margin-bottom: 18px;
    font-size: 30px;
    line-height: 1.08;
  }
  .services h2,
  .process h2,
  .cases h2 {
    max-width: 330px;
  }
  .service-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card {
    min-height: 80px;
    border-radius: 12px;
    padding: 16px 64px 16px 96px;
    position: relative;
  }
  .service-visual {
    display: none !important;
  }
  .service-card > .service-mobile-icon,
  .service-card .service-mobile-icon {
    display: block !important;
    position: absolute;
    left: 22px;
    top: 17px;
    width: 54px;
    height: 54px;
    object-fit: contain;
    margin: 0;
  }
  .service-card h3 { font-size: 25px; line-height: 52px; }
  .service-card p, .service-card a { display: none; }
  .service-card::after {
    content: "\203A";
    position: absolute;
    right: 24px;
    top: 17px;
    font-size: 44px;
    line-height: 52px;
  }

  .process-grid {
    grid-template-columns: repeat(4, minmax(132px, 1fr));
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow-x: auto;
    padding: 18px 12px;
  }
  .process-step {
    min-height: 170px;
    border-bottom: 0;
    text-align: center;
    padding: 0 8px;
  }
  .process-step::before,
  .process-step::after { display: none; }
  .process-step span { font-size: 25px; }
  .process-step h3 { font-size: 21px; margin-top: 106px; }
  .process-step p { display: none; }
  .process-step img {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    top: 40px;
    width: 86px;
    height: 86px;
  }

  .case-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 12px;
  }
  .case-card {
    flex: 0 0 245px;
    min-height: 250px;
  }
  .case-card img { height: 210px; }
  .case-card .case-logo-badges img { width: auto; height: 25px; }
  .case-card .case-logo-badges-duo img { height: 23px; }

  .cta-band {
    margin: 24px 32px 16px;
    min-height: 178px;
    border-radius: 12px;
    padding: 30px 52px;
    display: block;
  }
  .cta-band::after {
    right: -44px;
    bottom: -16px;
    width: 330px;
    height: 150px;
    opacity: .95;
  }
  .cta-band h2 { font-size: 42px; }
  .cta-band p, .cta-metrics { display: none; }
  .cta-band .btn { width: 390px; max-width: 100%; min-height: 60px; font-size: 25px; justify-content: space-between; }

  .footer { display: none; }
}

@media (max-width: 520px) {
  .site-header { padding: 0 24px; }
  .brand img { width: 210px; }
  .hero { padding: 24px 32px 0; }
  .hero h1 { font-size: 40px; }
  .hero-line { display: block; }
  .hero-copy p { font-size: 21px; }
  .hero-visual {
    top: 178px;
    right: -172px;
    width: 360px;
  }
  .hero-visual img { width: 410px; }
  .proof-strip { padding-left: 28px; padding-right: 28px; }
  .proof-strip strong { font-size: 16px; }
  .section { padding-left: 32px; padding-right: 32px; }
  .section h2 { font-size: 26px; }
}
