@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

* {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Desktop dropdown */
.has-dropdown .dropdown-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile submenu */
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .2s ease;
}
.mobile-submenu.open {
  max-height: 400px;
}

/* FAQ accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-item:not(.open) .faq-trigger {
  border-bottom-color: transparent;
}
.faq-chevron {
  transition: transform .2s ease;
}

/* Shared video controls */
.video-play-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity .2s ease, visibility .2s ease;
}

.video-play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.video-play-button {
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.video-play-button:hover {
  transform: scale(1.07);
  filter: brightness(1.08);
}

.video-play-button:active {
  transform: scale(.97);
}

.hero-navy {
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(14,165,233,.16), transparent 60%),
    linear-gradient(180deg, #0A192F 0%, #0F172A 100%);
}

.dark-panel {
  background:
    radial-gradient(800px 300px at 90% 10%, rgba(14,165,233,.12), transparent 60%),
    linear-gradient(180deg, #0A192F 0%, #0F172A 100%);
}

/* Figma-supplied brand artwork replaces the provisional inline mark. */
header a[href="index.html"] > svg,
header a[href="index.html"] > span {
  display: none;
}

header a[href="index.html"]::before {
  width: 148px;
  height: 33px;
  content: "";
  display: block;
  background: url("figma/logo.png") left center / contain no-repeat;
  image-rendering: -webkit-optimize-contrast;
}

header a[href="index.html"] {
  transition: opacity .2s ease, transform .2s ease;
}

header a[href="index.html"]:hover {
  opacity: .86;
  transform: translateY(-1px);
}

/* Shared, deliberately subtle interaction feedback. */
main a:not([class*="button"]),
footer a,
nav a,
nav button {
  transition: color .2s ease, opacity .2s ease, text-decoration-color .2s ease;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

main a:not([class*="button"]):hover,
footer a:hover,
nav a:hover,
nav button:hover {
  color: #0ea5e9;
  text-decoration-color: currentColor;
}

main a:not([class*="button"]):focus-visible,
footer a:focus-visible,
nav a:focus-visible,
nav button:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 4px;
}

main div[class*="border"][class*="bg-white"],
main div[class*="border"][class*="bg-slate"],
main div[class*="rounded-sm"][class*="border"],
main .dark-panel {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

main div[class*="border"][class*="bg-white"]:hover,
main div[class*="border"][class*="bg-slate"]:hover,
main div[class*="rounded-sm"][class*="border"]:hover,
main .dark-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, .32);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

@media (prefers-reduced-motion: reduce) {
  header a[href="index.html"],
  main a,
  footer a,
  nav a,
  nav button,
  main div[class*="border"],
  main .dark-panel {
    transition: none !important;
  }

  main div[class*="border"]:hover,
  main .dark-panel:hover,
  header a[href="index.html"]:hover {
    transform: none;
  }
}

/* The Homepage office photograph is an original Figma asset. */
body > section.bg-white:first-of-type > div > div:last-child {
  min-height: 360px;
  background: #fff url("figma/homepage/image-03.jpeg") center / cover no-repeat;
}

body > section.bg-white:first-of-type > div > div:last-child > svg {
  display: none;
}

/* Figma uses crisp 2px corners and a restrained shadow system. */
.rounded-2xl,
.rounded-xl,
.rounded-lg {
  border-radius: 2px !important;
}

section {
  scroll-margin-top: 86px;
}

@media (max-width: 1279px) {
  header > div:first-child,
  section > .max-w-7xl,
  footer > .max-w-7xl {
    max-width: 1180px;
  }

  section > .max-w-7xl {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 1023px) {
  header a[href="index.html"]::before {
    width: 148px;
    height: 33px;
  }

  section > .max-w-7xl {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 15px;
  }

  header > div:first-child > div {
    height: 68px !important;
  }

  header a[href="index.html"]::before {
    width: 111px;
    height: 25px;
  }

  section > .max-w-7xl {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-navy .max-w-7xl {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-navy h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
    line-height: 1.3;
    letter-spacing: -.02em;
  }

  .hero-navy p {
    font-size: 1rem;
    line-height: 1.75;
  }

  body > section.bg-white:first-of-type > div > div:last-child {
    width: 100%;
    min-height: 240px;
  }

  footer .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }
}

@media (max-width: 420px) {
  section > .max-w-7xl {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-navy a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.select-arrow {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
}

/* Homepage button feedback */
.button-hover,
a[class*="bg-navy"],
a[class*="bg-brand"],
button[type="submit"] {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease,
    transform .2s ease, box-shadow .2s ease;
}

.button-hover:hover,
a[class*="bg-navy"]:hover,
button[type="submit"]:hover {
  color: #fff !important;
  background-color: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(14, 165, 233, .2);
}

a[class*="bg-brand"]:hover {
  color: #fff !important;
  background-color: #0a192f !important;
  border-color: #0a192f !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(10, 25, 47, .2);
}



.button-hover:active,
a[class*="bg-navy"]:active,
a[class*="bg-brand"]:active,
button[type="submit"]:active {
  transform: translateY(0) scale(.98);
  box-shadow: none;
}

/* Cards in Homepage sections 3, 5 and 7 */
@keyframes tjx-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.interactive-card {
  position: relative;
  isolation: isolate;
  animation: tjx-card-in .45s ease both;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.interactive-card:nth-child(2) {
  animation-delay: .06s;
}

.interactive-card:nth-child(3) {
  animation-delay: .12s;
}

.interactive-card:nth-child(4) {
  animation-delay: .18s;
}

.interactive-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, .5) !important;
  box-shadow: 0 16px 32px rgba(15, 23, 42, .12);
}

.interactive-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(14, 165, 233, .08), transparent 42%);
  opacity: 0;
  transition: opacity .24s ease;
}

.interactive-card:hover::after {
  opacity: 1;
}

main .aios-card-link {
  color: #0ea5e9;
  transition: color .2s ease, text-shadow .2s ease, transform .2s ease;
}

main .aios-card-link:hover {
  color: #fff !important;
  text-decoration-color: #fff;
  text-shadow: 0 0 14px rgba(14, 165, 233, .65);
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .interactive-card {
    animation: none;
  }

  .interactive-card:hover,
  .button-hover:hover,
  a[class*="bg-navy"]:hover,
  a[class*="bg-brand"]:hover,
  button[type="submit"]:hover {
    transform: none;
  }
}
/* Primary hero CTA stays visibly cyan on the dark hero background. */
.hero-solution-button:hover {
  color: #fff !important;
  border-color: #38bdf8 !important;
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .18),
    0 12px 24px rgba(14, 165, 233, .34) !important;
}

/* Shared navigation states rendered by assets/layout.js. */
.site-nav-link,
.site-dropdown-link,
.site-mobile-link {
  color: #45464d;
}

.site-nav-link {
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

.site-nav-current {
  color: #0a192f !important;
  font-weight: 700;
  padding-bottom: 0;
  opacity: .8;
}

.site-nav-current::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
}

.site-dropdown-current,
.site-mobile-current {
  color: #006591 !important;
  font-weight: 700;
  background: #f0f9ff;
}
