/* =========================================================================
   JA site styles, ported from the jp-website-content mockup (styles.css).
   Independent from EN (global.css / Tailwind). Every class is the mockup class
   with a ja- prefix; values are unchanged so pages match the mockup exactly.
   Served as /ja/<seg>/assets/ja.css by src/pages/ja/[...app]/assets/[...file].ts,
   so url() paths are relative to src/ja-static/.
   ========================================================================= */

:root {
  --ink: #1a1a1a;
  --muted: #5c5c66;
  --line: #d6d6dc;
  --surface: #ffffff;
  --tint: #f4f3f6;
  --placeholder: #e4e3e8;
  --accent: #2a0038;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  background: var(--surface);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.ja-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.ja-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ja-eyebrow {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  margin-bottom: 8px;
}

.ja-lead {
  font-weight: 700;
  margin-bottom: 16px;
}

.ja-link-more {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
}

.ja-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.ja-btn-primary {
  background: var(--ink);
  color: #fff;
}

.ja-btn-outline {
  background: var(--surface);
}

.ja-btn-text {
  border-color: transparent;
  padding-inline: 12px;
}

/* Placeholder boxes: stand in for every image, illustration and logo */
.ja-ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: var(--placeholder);
  border: 1px dashed #9a9aa6;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  text-decoration: none;
  padding: 8px;
}

.ja-ph::after {
  content: attr(data-label);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ja-ph-icon {
  width: 40px;
  height: 40px;
  min-height: 0;
  border-radius: 50%;
  font-size: 0;
}

.ja-ph-logo {
  width: 160px;
  height: 40px;
  min-height: 0;
}

/* Header: matches the live join page (fixed bar, mega-menu, drawer below 1250px) */
:root {
  --accent-purple: #7935d2;
}

body {
  padding-top: 64px;
}

body.ja-header-overlay {
  padding-top: 0;
}

.ja-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 310;
  height: 64px;
  color: var(--ink);
  background: var(--surface);
  border-bottom: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.ja-header-overlay .ja-site-header:not(.ja-is-scrolled) {
  color: #fff;
  background: linear-gradient(to bottom, rgba(10, 0, 14, 0.72) 0%, rgba(10, 0, 14, 0.4) 55%, rgba(10, 0, 14, 0) 100%);
  box-shadow: none;
}

.ja-logo .ja-logo-dark,
.ja-logo .ja-logo-light {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ja-logo .ja-logo-light {
  display: none;
}

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

body.ja-header-overlay .ja-site-header:not(.ja-is-scrolled) .ja-logo-dark {
  display: none;
}

body.ja-header-overlay .ja-site-header:not(.ja-is-scrolled) .ja-logo-light {
  display: flex;
}

.ja-site-header.ja-is-hidden {
  transform: translateY(-100%);
}

.ja-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 0 24px;
  box-sizing: border-box;
}

.ja-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.ja-main-nav,
.ja-header-tools,
.ja-header-actions,
.ja-site-lang,
.ja-site-search {
  display: none;
}

.ja-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 64px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.ja-menu-toggle-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--accent-purple);
}

.ja-menu-toggle-icon::before,
.ja-menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: inherit;
}

.ja-menu-toggle-icon::before {
  top: -5px;
}

.ja-menu-toggle-icon::after {
  top: 5px;
}

.ja-side-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 320;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 360px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 16px 24px 32px;
  overflow-y: auto;
  color: var(--ink);
  background: #fff;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.ja-site-header.ja-nav-open .ja-side-menu {
  transform: none;
}

.ja-side-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ja-side-menu .ja-locale {
  font-size: 14px;
}

.ja-side-close {
  font-size: 28px;
  padding: 0 4px;
}

.ja-side-search input,
.ja-site-search-field input {
  font: inherit;
  color: var(--ink);
  box-sizing: border-box;
  border: 0;
  outline: 0;
  background: transparent;
}

.ja-side-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 40px;
}

.ja-side-nav > section + section {
  margin-top: 16px;
}

.ja-side-nav > section > span {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--muted);
}

.ja-side-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ja-side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.ja-side-nav .ja-nav-icon-drawer {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #f4f1fd;
}

.ja-side-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.ja-side-footer .ja-header-pill {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
}

.ja-header-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-radius: 40px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ja-header-pill-accent {
  color: var(--accent-purple);
  background: #fff;
}

.ja-side-footer .ja-header-pill-accent {
  color: #fff;
  background: var(--accent-purple);
  border-color: var(--accent-purple);
}

.ja-site-nav {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ja-site-nav > li {
  position: relative;
}

.ja-site-nav > li > button {
  padding: 8px 12px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.ja-site-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 9px);
  left: -24px;
  width: 760px;
  box-sizing: border-box;
  padding: 16px 8px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.ja-site-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 40px;
  border: 8px solid transparent;
  border-top: 0;
  border-bottom-color: #fff;
}

.ja-site-nav > li:hover .ja-site-dropdown,
.ja-site-nav > li.ja-is-open .ja-site-dropdown {
  display: block;
}

.ja-site-nav > li:hover::after,
.ja-site-lang:hover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -24px;
  right: -24px;
  height: 9px;
}

.ja-site-dropdown ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ja-site-dropdown-narrow {
  width: max-content;
  min-width: 240px;
  max-width: 340px;
  padding: 8px;
}

.ja-site-dropdown-narrow ul {
  grid-template-columns: 1fr;
  gap: 2px;
}

.ja-site-dropdown a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.ja-site-dropdown a:hover {
  background: var(--tint);
}

.ja-site-dropdown .ja-nav-icon {
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  padding: 4px;
  box-sizing: border-box;
}

.ja-site-dropdown-narrow a {
  gap: 12px;
  padding: 8px 12px 8px 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.ja-site-dropdown-narrow .ja-nav-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 8px;
  background: #f4f1fd;
}

.ja-site-dropdown strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.ja-site-dropdown small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.ja-site-dropdown-extra {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  padding: 8px 0 0;
  border-top: 1px solid #ece9f2;
}

.ja-site-dropdown-two {
  width: 520px;
  max-width: none;
  min-width: 0;
}

.ja-site-dropdown-two ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  column-gap: 8px;
}

.ja-site-dropdown-two li:nth-child(1) { grid-area: 1 / 1; }
.ja-site-dropdown-two li:nth-child(2) { grid-area: 2 / 1; }
.ja-site-dropdown-two li:nth-child(3) { grid-area: 1 / 2; }
.ja-site-dropdown-two li:nth-child(4) { grid-area: 2 / 2; }

.ja-site-dropdown-two .ja-site-dropdown-extra {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 8px;
  margin: 8px -8px -8px;
  padding: 12px 16px;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #ebe7f7;
}

.ja-site-dropdown-two .ja-site-dropdown-extra a {
  white-space: nowrap;
}

.ja-site-lang {
  position: relative;
}

.ja-site-lang > button,
.ja-site-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.ja-site-lang-list {
  display: none;
  position: absolute;
  top: calc(100% + 9px);
  right: -8px;
  width: 200px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.ja-site-lang:hover .ja-site-lang-list,
.ja-site-lang.ja-is-open .ja-site-lang-list {
  display: block;
}

.ja-site-lang-list a {
  display: block;
  padding: 10px 24px;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
}

.ja-site-lang-list .ja-is-active a {
  color: var(--accent-purple);
  font-weight: 600;
}

.ja-site-search {
  position: relative;
}

.ja-site-search-field {
  display: none;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  align-items: center;
  gap: 8px;
  width: 360px;
  height: 40px;
  box-sizing: border-box;
  padding: 0 8px 0 16px;
  color: var(--ink);
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.ja-site-header.ja-search-open .ja-site-search-field {
  display: flex;
}

.ja-site-header.ja-search-open .ja-site-search-toggle {
  visibility: hidden;
}

.ja-site-search-field input {
  flex: 1;
  min-width: 0;
  font-size: 16px;
}

.ja-site-search-close {
  padding: 4px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ja-locale {
  display: flex;
  gap: 8px;
  font-size: 12px;
}

.ja-locale .ja-is-active {
  font-weight: 700;
}

@media (min-width: 1250px) {
  body {
    padding-top: 72px;
  }

  body.ja-header-overlay {
    padding-top: 0;
  }

  .ja-site-header {
    height: 72px;
  }

  .ja-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    padding: 0 clamp(40px, 7.5vw, 108px);
  }

  .ja-logo {
    justify-self: start;
  }

  .ja-main-nav {
    display: block;
  }

  .ja-site-nav {
    justify-content: center;
  }

  .ja-header-tools {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 8px;
  }

  .ja-site-lang,
  .ja-site-search,
  .ja-header-actions {
    display: flex;
    gap: 20px;
  }

  .ja-site-lang,
  .ja-site-search {
    display: block;
  }

  .ja-menu-toggle,
  .ja-side-menu {
    display: none;
  }
}

/* Hero */
.ja-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 64px;
  overflow: hidden;
  background: #2a0a45;
  color: #fff;
}

.ja-hero-media {
  position: absolute;
  inset: 0;
}

.ja-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.ja-hero-arc {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0;
  height: 100%;
  width: auto;
  aspect-ratio: 1;
  transform: translate(-60%, -50%);
  pointer-events: none;
}

@media (max-width: 767px) {
  .ja-hero-arc {
    top: 0;
    transform: translate(-50%, -50%);
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .ja-hero-arc {
    top: calc(50% - 95px);
  }
}

@media (min-width: 1280px) {
  .ja-hero-arc {
    height: 144.2%;
  }
}

.ja-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(42, 10, 69, 0) 30%, rgba(42, 10, 69, 0.35) 65%, rgba(42, 10, 69, 0.85) 100%);
}

.ja-hero .ja-hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
  padding-bottom: 38px;
}

.ja-hero-copy h1 {
  font-size: 32px;
  line-height: 40px;
  overflow-wrap: anywhere;
  font-weight: 700;
  margin-bottom: 16px;
}

.ja-hero-copy p {
  margin-bottom: 24px;
}

.ja-hero-copy .ja-btn-primary {
  background: linear-gradient(120deg, #7b2fa8 0%, #4a2aa0 55%, #c0392b 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(123, 47, 168, 0.45);
}

@media (min-width: 768px) {
  .ja-hero {
    min-height: 804px;
  }

  .ja-hero-copy h1 {
    font-size: 44px;
    line-height: 52px;
  }
}

@media (min-width: 1024px) {
  .ja-hero {
    min-height: 816px;
  }

  .ja-hero .ja-hero-copy {
    padding-bottom: 118px;
  }
}

@media (max-width: 767px) {
  .ja-hero-media {
    inset: 0 0 auto 0;
    height: 360px;
  }

  .ja-hero-arc {
    height: 360px;
  }

  .ja-hero::after {
    inset: 0 0 auto 0;
    height: 360px;
    background: linear-gradient(180deg, rgba(42, 10, 69, 0) 30%, rgba(42, 10, 69, 0.35) 65%, #2a0a45 100%);
  }

  .ja-hero .ja-hero-copy {
    padding-top: 236px;
  }
}

/* Intro / stats */
.ja-intro {
  padding: 64px 0;
}

.ja-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.ja-intro-inner > * {
  min-width: 0;
}

.ja-intro h2 {
  font-size: 28px;
  line-height: 36px;
  margin-bottom: 16px;
}

.ja-intro-text > p {
  margin-bottom: 32px;
}

.ja-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  text-align: center;
}

.ja-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ja-stat-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  color: #4a2aa0;
}

.ja-stats strong {
  font-size: 17px;
  line-height: 28px;
  white-space: nowrap;
}

.ja-stats span:last-child {
  font-size: 14px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .ja-stats strong {
    font-size: 24px;
  }
}

@media (min-width: 1024px) {
  .ja-stats {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }

  .ja-stats li {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .ja-stat-icon {
    margin-bottom: 0;
  }
}

/* Cases */
.ja-cases {
  padding: 64px 0;
  background: var(--tint);
}

.ja-cases.ja-is-plain {
  background: var(--surface);
}

.ja-cases h2 {
  font-size: 28px;
  line-height: 36px;
  text-align: center;
  margin-bottom: 32px;
}

.ja-case-grid {
  display: grid;
  gap: 24px;
}

.ja-case-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Photos in assets/success-stories are pre-cropped to 4:3, so this frame never crops them again */
.ja-card-media {
  aspect-ratio: 4 / 3;
}

.ja-case-card h3 {
  font-size: 18px;
  line-height: 26px;
}

.ja-case-card a {
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

.ja-case-grid:not(.ja-story-grid) .ja-case-card h3,
.ja-case-grid:not(.ja-story-grid) .ja-case-card a {
  align-self: stretch;
  text-align: center;
}

.ja-case-grid:not(.ja-story-grid) .ja-case-card a {
  color: #7635eb;
  font-weight: 700;
  text-decoration: none;
}

.ja-case-grid:not(.ja-story-grid) .ja-case-card {
  position: relative;
}

.ja-case-grid:not(.ja-story-grid) .ja-case-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.ja-case-grid:not(.ja-story-grid) .ja-case-card a:focus-visible {
  outline: none;
}

.ja-case-grid:not(.ja-story-grid) .ja-case-card a:focus-visible::after {
  outline: 2px solid #7635eb;
  outline-offset: 3px;
}

/* Feature tabs carousel */
.ja-features {
  padding: 64px 0;
}

.ja-features .ja-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ja-tab-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.ja-tab-nav button {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.ja-tab-nav button.ja-is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.ja-tab-layout {
  display: grid;
  gap: 32px;
  align-items: center;
}

.ja-slider {
  position: relative;
  width: 100%;
  max-width: 504px;
  aspect-ratio: 504 / 538;
  margin: 0 auto;
  transform: translateZ(0);
  isolation: isolate;
}

.ja-slider-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.ja-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  filter: blur(3px);
  pointer-events: none;
  transition: opacity 0.3s ease, filter 0.3s ease, visibility 0s linear 0.3s;
}

.ja-slide.ja-is-active {
  opacity: 1;
  visibility: visible;
  filter: blur(0);
  pointer-events: auto;
  transition: opacity 0.3s ease, filter 0.3s ease, visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .ja-slide,
  .ja-slide.ja-is-active {
    transition: none;
  }
}

.ja-progress-ring {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 100%;
  aspect-ratio: 587 / 543;
  overflow: visible;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ja-progress-ring .ja-ring-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
  opacity: 0.6;
}

.ja-progress-ring circle[data-ring] {
  fill: none;
  stroke: url(#ring-grad);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  .ja-progress-ring circle[data-ring] {
    transition: none;
  }
}

.ja-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  line-height: 0;
}

.ja-arrow svg {
  display: block;
  flex: 0 0 auto;
}

.ja-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.ja-arrow-prev {
  left: -20px;
}

.ja-arrow-next {
  right: -20px;
}

.ja-dots {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.ja-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.11);
}

.ja-dots .ja-is-active {
  background: var(--ink);
}

@media (max-width: 767px) {
  .ja-dots {
    display: none;
  }
}

.ja-tab-body {
  display: none;
}

.ja-tab-body.ja-is-active {
  display: block;
}

.ja-tab-body h3 {
  font-size: 32px;
  line-height: 40px;
  margin-bottom: 16px;
}

/* FastPass */
.ja-fastpass {
  padding: 64px 0;
  background: var(--tint);
}

.ja-fastpass-inner {
  display: grid;
  gap: 32px;
  padding: 0 24px;
  align-items: stretch;
}

.ja-fastpass h2 {
  font-size: 32px;
  line-height: 40px;
  margin-bottom: 16px;
}

.ja-fastpass-copy > p:not(.ja-eyebrow):not(.ja-lead) {
  margin-bottom: 24px;
}

.ja-fastpass-media {
  position: relative;
  overflow: hidden;
  background: #212121 url("fastpass/wave-texture.svg") 0 0 / 201.6px 88.2px repeat;
  display: flex;
  flex-direction: column;
  padding: 0 0 40px;
}

.ja-fastpass-bowls {
  display: block;
  width: 100%;
  height: auto;
}

.ja-fastpass-brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 24px 0;
  text-align: center;
}

.ja-fastpass-brand img {
  display: block;
  width: 48%;
  max-width: 288px;
  height: auto;
}

.ja-fastpass-brand p {
  color: #fff;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Photo variant (features/takeaway-delivery-feature.html support block): the photo fills the whole media panel */
.ja-fastpass.ja-is-photo {
  background: var(--surface);
}

.ja-fastpass.ja-is-photo .ja-fastpass-media {
  aspect-ratio: var(--photo-ratio, 16 / 9);
  padding: 0;
  border-radius: 8px;
  background: none;
}

.ja-fastpass.ja-is-photo .ja-nowrap {
  white-space: nowrap;
}

.ja-fastpass-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right var(--photo-y, center);
}

/* Partner logos */
.ja-partners {
  padding: 64px 0;
}

.ja-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.ja-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 16px;
}

.ja-logo-card img {
  width: auto;
  height: auto;
  max-width: 72%;
  max-height: 44px;
}

/* Booking form: EN's DemoModal layout and sizing (src/components/blocks/DemoModal.astro), JA styling */
.ja-booking-modal {
  width: min(34rem, calc(100vw - 2rem));
  max-height: min(90vh, 46rem);
  inset: 0;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px -24px rgba(45, 7, 89, 0.45);
  overflow: hidden;
  overscroll-behavior: contain;
}

.ja-booking-modal[open] {
  display: flex;
  flex-direction: column;
}

.ja-booking-modal:focus {
  outline: none;
}

.ja-booking-modal::backdrop {
  background: rgba(26, 10, 46, 0.45);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
}

body:has(.ja-booking-modal[open]) {
  overflow: hidden;
}

.ja-booking-modal [hidden] {
  display: none;
}

.ja-booking-card {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ja-booking-chrome {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(22px, 4vw, 32px) clamp(22px, 4vw, 32px) 12px;
  background: var(--surface);
}

.ja-booking-chrome h2 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
}

.ja-booking-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}

.ja-booking-close:hover {
  background: var(--tint);
  color: var(--ink);
}

.ja-booking-body {
  padding: 4px clamp(22px, 4vw, 32px) 18px;
}

.ja-booking-info {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--tint);
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.ja-booking-info a {
  color: #4a2aa0;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.ja-booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ja-booking-col-2 {
  grid-column: 1 / -1;
}

.ja-booking-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.ja-booking-field > span {
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.ja-booking-field em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}

.ja-booking-field input,
.ja-booking-field select,
.ja-booking-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 22px;
}

.ja-booking-field input::placeholder,
.ja-booking-field textarea::placeholder {
  color: #9a9aa3;
}

.ja-booking-field input:focus-visible,
.ja-booking-field select:focus-visible,
.ja-booking-field textarea:focus-visible {
  border-color: #4a2aa0;
  outline: 1px solid #4a2aa0;
}

/* The native arrow ignores padding and sits against the border, so draw our own. */
.ja-booking-field select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c5c66' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}

.ja-booking-field textarea {
  resize: vertical;
}

.ja-req {
  margin-left: 2px;
  color: #c0392b;
}

.ja-booking-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 14px clamp(22px, 4vw, 32px) clamp(22px, 4vw, 32px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 -8px 20px -12px rgba(45, 7, 89, 0.18);
}

.ja-booking-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--tint);
  font-size: 13px;
  line-height: 20px;
}

.ja-booking-agree input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #4a2aa0;
  cursor: pointer;
}

.ja-booking-agree p {
  margin: 0;
}

.ja-booking-agree label {
  font-weight: 700;
  cursor: pointer;
}

.ja-booking-agree a {
  color: #4a2aa0;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ja-booking-modal .ja-booking-submit {
  width: 100%;
  margin-top: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ja-booking-submit[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.ja-booking-result {
  padding: 8px clamp(22px, 4vw, 32px) clamp(22px, 4vw, 32px);
  text-align: center;
}

.ja-booking-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: linear-gradient(150deg, #7b2fa8, #4a2aa0);
  color: #fff;
}

.ja-booking-mark.ja-is-error {
  background: #c0392b;
}

.ja-booking-result h3 {
  margin: 0;
  font-size: 22px;
  line-height: 30px;
}

.ja-booking-result p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

.ja-booking-result .ja-btn {
  margin-top: 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 599px) {
  .ja-booking-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ja-booking-close {
    transition: none;
  }
}

/* Footer */
.ja-site-footer {
  padding: 32px 0;
  background: #101010;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
}

.ja-site-footer a,
.ja-footer-consent {
  color: #fff;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 150ms ease-in-out;
}

.ja-site-footer a:hover,
.ja-site-footer a:focus-visible,
.ja-footer-consent:hover,
.ja-footer-consent:focus-visible {
  background-size: 100% 1px;
}

.ja-footer-consent {
  padding: 0;
  border: 0;
  background-color: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ja-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}

.ja-site-footer .ja-footer-logo,
.ja-site-footer .ja-social a {
  background-image: none;
}

.ja-footer-logo img:first-child {
  height: 20px;
}

.ja-footer-logo img:last-child {
  height: 20px;
  aspect-ratio: 34 / 5;
}

.ja-footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
}

.ja-footer-columns section:last-child {
  grid-column: 2;
}

.ja-footer-columns h2 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.ja-footer-columns li + li {
  margin-top: 8px;
}

.ja-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.ja-footer-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ja-social {
  display: flex;
  gap: 20px;
}

.ja-social a {
  display: block;
  transition: opacity 150ms ease-in-out;
}

.ja-social a:hover {
  opacity: 0.8;
}

.ja-social svg {
  display: block;
  width: 24px;
  height: 24px;
}

.ja-footer-lang {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ja-footer-lang svg {
  flex: 0 0 auto;
}

.ja-footer-lang ul {
  display: flex;
  gap: 16px;
}

.ja-site-footer .ja-footer-lang a {
  color: rgba(255, 255, 255, 0.64);
}

.ja-site-footer .ja-footer-lang .ja-is-active a {
  color: #fff;
  font-weight: 700;
}

.ja-footer-legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  line-height: 20px;
}

.ja-copyright {
  font-size: 13px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.64);
}

@media (min-width: 768px) {
  .ja-footer-legal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 24px;
  }
}

/* Tablet and up: 768px */
@media (min-width: 768px) {
  .ja-container {
    padding: 0 76px;
  }

  .ja-case-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ja-logo-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 0 76px;
  }

  .ja-site-footer {
    padding: 76px 0;
  }
}

/* Desktop: 1024px */
@media (min-width: 1024px) {
  .ja-container {
    padding: 0 108px;
  }

  .ja-intro-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .ja-intro-visual {
    margin: -19.4% 0;
  }

  .ja-tab-layout {
    grid-template-columns: 3fr 2fr;
  }

  .ja-fastpass {
    padding: 0;
  }

  .ja-fastpass-inner {
    grid-template-columns: 2fr 3fr;
    gap: 0;
    max-width: none;
    padding: 0;
    align-items: stretch;
  }

  .ja-fastpass-copy {
    align-self: center;
    padding: 64px 48px 64px max(108px, calc((100vw - 1440px) / 2 + 108px));
  }

  .ja-fastpass-media {
    min-height: 560px;
    padding: 0;
    clip-path: url(#fastpass-left-mask);
  }

  .ja-fastpass-brand {
    padding: 64px 24px;
  }

  /* Explicit width: when the copy column is taller, the row stretches the panel's height and aspect-ratio would otherwise widen it past the viewport */
  .ja-fastpass.ja-is-photo .ja-fastpass-media {
    aspect-ratio: var(--photo-ratio, 16 / 9);
    width: 100%;
    min-height: 0;
    border-radius: 0;
  }

  .ja-fastpass.ja-is-photo .ja-fastpass-photo {
    position: absolute;
    inset: 0;
  }

  /* The copy column must stay shorter than the photo panel, or the row stretches past the panel's aspect ratio */
  .ja-fastpass.ja-is-photo .ja-fastpass-copy {
    padding-top: 0;
    padding-bottom: 0;
  }

  .ja-case-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 1200px and up: join-page case cards sit four across (listing keeps its own grid) */
@media (min-width: 1200px) {
  .ja-case-grid:not(.ja-story-grid) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

/* Feature detail pages (features/*.html) */
.ja-feature-hero {
  padding: 40px 0 0;
  overflow-x: clip;
  background: linear-gradient(180deg, rgba(121, 53, 210, 0) 0%, rgba(121, 53, 210, 0.08) 100%);
}

.ja-feature-hero-grid,
.ja-feature-block-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

/* Hero photos are cropped flat at the bottom, so they sit on the section's bottom edge as on the live pages */
.ja-feature-hero .ja-feature-media {
  align-self: end;
  aspect-ratio: auto;
  overflow: visible;
  border-radius: 0;
}

.ja-feature-hero .ja-feature-media img {
  position: static;
  height: auto;
}

@media (min-width: 1024px) {
  .ja-feature-hero .ja-feature-copy {
    position: relative;
    z-index: 1;
  }

  .ja-feature-hero {
    padding-top: 24px;
  }

  .ja-feature-hero .ja-feature-hero-grid {
    grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  }

  /* 105% of the wider 62% column keeps the ring at the approved size (130% of the old 50% column) */
  .ja-feature-hero .ja-feature-media img {
    width: 105%;
    max-width: none;
  }
}

.ja-feature-hero h1 {
  font-size: 40px;
  line-height: 48px;
  margin-bottom: 16px;
}

.ja-feature-block {
  padding: 64px 0;
}

.ja-feature-block h2 {
  font-size: 32px;
  line-height: 40px;
  margin-bottom: 16px;
}

.ja-feature-copy > p {
  margin-bottom: 16px;
}

.ja-feature-copy .ja-sub {
  font-size: 18px;
  line-height: 26px;
  margin: 24px 0 8px;
}

.ja-feature-media {
  aspect-ratio: 4 / 3;
}

.ja-bullets {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.ja-bullets li {
  padding-left: 16px;
  position: relative;
}

.ja-bullets li::before {
  content: "■";
  position: absolute;
  left: 0;
  font-size: 10px;
  top: 6px;
}

.ja-plain-list {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.ja-plain-list li::before {
  content: "・";
}

.ja-block-link {
  display: inline-block;
  font-weight: 700;
  margin-top: 8px;
}

.ja-cta-row {
  margin-top: 24px;
}

.ja-cta-row .ja-btn-purple {
  margin-top: 0;
}

.ja-feature-hero-grid,
.ja-feature-block-grid {
  grid-template-columns: minmax(0, 1fr);
}

.ja-feature-hero-grid > *,
.ja-feature-block-grid > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .ja-feature-hero-grid,
  .ja-feature-block-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ja-feature-block.ja-is-reversed .ja-feature-copy {
    order: 2;
  }

  .ja-feature-block.ja-is-reversed .ja-feature-media {
    order: 1;
  }
}

/* Shared page intro (listing, team, news) */
/* A pale wash of the feature nav icons' purple-to-magenta gradient, light enough
   that --ink and --muted text keep their contrast */
.ja-page-intro {
  padding: 64px 0 32px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(101, 36, 214, 0.07), transparent 60%),
    linear-gradient(110deg, #f4f0fc 0%, #f8f1fb 55%, #fcf1f5 100%);
}

.ja-page-intro h1 {
  font-size: 40px;
  line-height: 48px;
  margin-bottom: 12px;
}

.ja-page-intro p {
  margin-bottom: 8px;
}

.ja-note {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
  margin-top: 16px;
}

.ja-section-title {
  font-size: 24px;
  line-height: 32px;
  margin: 48px 0 24px;
}

/* Success stories listing */
.ja-story-grid {
  grid-template-columns: 1fr;
}

.ja-story-grid .ja-case-card a {
  color: var(--ink);
  font-weight: 700;
}

.ja-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.ja-pager a,
.ja-pager .ja-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  text-decoration: none;
}

.ja-pager .ja-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

@media (min-width: 768px) {
  .ja-story-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .ja-story-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Team */
.ja-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}

.ja-team-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ja-team-photo {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  width: 100%;
  max-width: 160px;
}

.ja-team-card strong {
  font-size: 15px;
  line-height: 22px;
}

.ja-team-card span {
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .ja-team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* History timeline */
.ja-history-narrow {
  max-width: 1008px;
}

.ja-timeline-section {
  padding: 64px 0 48px;
}

.ja-timeline {
  position: relative;
  display: grid;
  gap: 56px;
  margin: 0;
  padding: 0 0 0 40px;
  list-style: none;
}

/* The rail: fades out under the last entry instead of ending in a hard stop */
.ja-timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 0;
  left: 11px;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(to bottom, #d9cdf0 0, #d9cdf0 calc(100% - 120px), rgba(217, 205, 240, 0));
}

.ja-timeline-item {
  position: relative;
  display: grid;
  gap: 20px;
}

/* Node: centred on the rail and on the year pill's midline; the white halo cuts the rail */
.ja-timeline-item::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -36px;
  width: 16px;
  height: 16px;
  border: 3px solid #7b2fa8;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--surface);
}

.ja-year-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 12px;
  border-radius: 999px;
  background: #f1ecfb;
  color: #4a2aa0;
  font-size: 15px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.02em;
}

.ja-year-est {
  padding: 0 8px;
  border: 1px solid #d9cdf0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0;
}

.ja-timeline-item h2 {
  margin: 12px 0 12px;
  font-size: 22px;
  line-height: 1.45;
}

.ja-timeline-item p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.85;
}

.ja-timeline-item p:last-child {
  margin-bottom: 0;
}

.ja-timeline-media {
  overflow: hidden;
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.ja-timeline-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ja-timeline-section .ja-note {
  margin-top: 48px;
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 900px) {
  .ja-timeline {
    gap: 64px;
  }

  .ja-timeline-item {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    column-gap: 40px;
  }

  .ja-timeline-media {
    margin-top: 40px;
  }
}

/* 「数字で見るテーブルチェック」 */
.ja-figures-section {
  padding: 48px 0 96px;
}

.ja-figures-title {
  margin: 0 0 40px;
  font-size: 28px;
  line-height: 1.4;
  text-align: center;
}

.ja-figures-title .ja-nowrap {
  white-space: nowrap;
}

/* A 6-track grid so a short last row can be centred: every card spans 2 tracks */
.ja-figures {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ja-figure {
  min-width: 0;
}

/* Fixed-height bands (art, label, figures) inside a fixed-height panel, so icons,
   numbers and the titles below line up across every card in a row */
.ja-figure-visual {
  display: grid;
  grid-template-rows: 60px 22px 56px;
  align-content: center;
  justify-items: center;
  row-gap: 14px;
  height: 232px;
  padding: 0 20px;
  container-type: inline-size;
  border-radius: 12px;
  background: var(--tint);
  text-align: center;
}

.ja-figure-art {
  display: grid;
  place-items: center;
}

.ja-figure-label {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
}

.ja-figure-values {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin: 0;
  color: #7b2fa8;
  font-weight: 700;
  white-space: nowrap;
}

.ja-figure-value {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
}

.ja-figure-num {
  font-size: min(52px, 22cqi);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Two figures share the row, so they scale with the panel to stay on one line */
.ja-figure-values:has(> :nth-child(2)) {
  gap: 5cqi;
}

.ja-figure-values:has(> :nth-child(2)) .ja-figure-num {
  font-size: min(38px, 15cqi);
}

.ja-figure-values:has(> :nth-child(2)) .ja-figure-unit {
  font-size: min(14px, 6cqi);
}

.ja-figure-values:has(> :nth-child(2)) .ja-figure-plus {
  font-size: min(22px, 9cqi);
}

.ja-figure-prefix,
.ja-figure-unit {
  font-size: 16px;
  line-height: 1.2;
}

.ja-figure-unit {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 2px;
}

.ja-figure-prefix {
  padding-bottom: 2px;
}

.ja-figure-plus {
  font-size: 24px;
  line-height: 1;
}

.ja-figure-icon {
  width: 44px;
  height: 44px;
  color: #3a3a42;
}

/* 「A / 文」 as real characters in two offset keycaps */
.ja-figure-lang {
  position: relative;
  width: 52px;
  height: 44px;
}

.ja-figure-lang span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid #3a3a42;
  border-radius: 6px;
  background: var(--tint);
  color: #3a3a42;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.ja-figure-lang span:first-child {
  top: 0;
  left: 0;
}

.ja-figure-lang span:last-child {
  right: 0;
  bottom: 0;
}

.ja-figure-flags {
  display: grid;
  grid-template-columns: repeat(4, 26px);
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ja-figure-flags svg {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(26, 26, 26, 0.1), 0 1px 3px rgba(26, 26, 26, 0.12);
}

.ja-figure h3 {
  margin: 18px 0 6px;
  font-size: 17px;
  line-height: 1.5;
}

.ja-figure p:not([class]) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.ja-figure-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (min-width: 600px) {
  .ja-figures {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ja-figure {
    grid-column: span 2;
  }

  .ja-figure:last-child:nth-child(2n + 1) {
    grid-column: 2 / span 2;
  }
}

@media (min-width: 900px) {
  .ja-figures-title {
    margin-bottom: 48px;
    font-size: 32px;
  }

  .ja-figures {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .ja-figure:last-child:nth-child(2n + 1) {
    grid-column: span 2;
  }

  .ja-figure:last-child:nth-child(3n + 1) {
    grid-column: 3 / span 2;
  }
}

/* News tabs */
.ja-news {
  padding: 48px 0 64px;
}

.ja-news-tabs {
  margin-bottom: 32px;
}

.ja-news-panel {
  display: none;
}

.ja-news-panel.ja-is-active {
  display: block;
}

.ja-news-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.ja-news-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.ja-news-date {
  font-size: 14px;
  color: var(--muted);
}

.ja-news-list a {
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 767px) {
  .ja-news-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Illustration scenes inside the feature carousel */
.ja-slide.ja-is-active {
  align-items: center;
  justify-content: center;
}

.ja-scene-host {
  display: block;
  width: 100%;
}

.ja-intro-visual {
  position: relative;
  align-self: center;
  aspect-ratio: 1321 / 1622;
}

.ja-intro-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #e2daf1;
  box-shadow: 0 0 0 2px #cbbfe6;
}

.ja-intro-stage {
  position: absolute;
  inset: 0;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1321 1622'%3E%3Ccircle cx='660.5' cy='811' r='554.8'/%3E%3Crect width='1321' height='811'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1321 1622'%3E%3Ccircle cx='660.5' cy='811' r='554.8'/%3E%3Crect width='1321' height='811'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.ja-intro-art {
  position: absolute;
  left: calc(6% + 80px);
  bottom: 90px;
  width: 74.7%;
  aspect-ratio: 1321 / 1622;
}

.ja-intro-hand {
  display: block;
  width: 100%;
  height: 100%;
}

.ja-intro-screen {
  position: absolute;
  z-index: 2;
  left: 10.4%;
  top: 4.3%;
  width: 44.5%;
  height: 73.9%;
  overflow: hidden;
  border-radius: 9%/4%;
}

.ja-intro-screen .ja-scene-host {
  position: absolute;
  left: 0;
  top: 0;
  width: 239.6%;
}

/* Mirrored hand for feature pages; only the hand image flips so the phone screen stays readable */
.ja-intro-visual.ja-is-flipped .ja-intro-art {
  left: auto;
  right: calc(6% + 80px);
}

.ja-intro-visual.ja-is-flipped .ja-intro-hand {
  transform: scaleX(-1);
}

.ja-intro-visual.ja-is-flipped .ja-intro-screen {
  left: 45.1%;
}

/* Origin sits at the phone's bottom edge so growth goes upward, where the mask is open, and the input bar stays inside the circle */
.ja-intro-visual.ja-is-large .ja-intro-art {
  transform: scale(1.15);
  transform-origin: 67% 78%;
}

/* 導入事例 photos (replace the placeholder boxes) */
.ja-card-media,
.ja-feature-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.ja-card-media img,
.ja-feature-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ja-feature-media:has(.ja-scene-host) {
  aspect-ratio: auto;
}

/* Feature tabs above the carousel: two centred rows of plain text buttons */
.ja-features .ja-tab-rows {
  display: grid;
  gap: 8px;
}

.ja-features .ja-tab-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: safe center;
  gap: 8px 32px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.ja-features .ja-tab-nav::-webkit-scrollbar {
  display: none;
}

.ja-features .ja-tab-nav li {
  flex: 0 0 auto;
}

.ja-features .ja-tab-nav button {
  padding: 6px 2px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #4a4a52;
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  text-underline-offset: 6px;
  white-space: nowrap;
}

.ja-features .ja-tab-nav button.ja-is-active {
  color: #4a2aa0;
  font-weight: 700;
  text-decoration: underline;
}

.ja-features .ja-tab-nav button:focus-visible {
  outline: 2px solid #4a2aa0;
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .ja-features .ja-tab-rows {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
  }

  .ja-features .ja-tab-nav {
    display: contents;
  }

  .ja-features .ja-tab-nav button {
    font-size: 14px;
    line-height: 20px;
    padding: 4px 0;
  }
}

/* Purple call-to-action button (carousel "さらに詳しく") */
.ja-btn-purple {
  margin-top: 24px;
  background: #4a2aa0;
  border-color: #4a2aa0;
  color: #fff;
}

.ja-btn-purple:hover {
  background: #3a2185;
  border-color: #3a2185;
}

.ja-btn-purple:focus-visible {
  outline: 2px solid #4a2aa0;
  outline-offset: 3px;
}

.ja-story-grid .ja-case-card a.ja-btn-purple {
  color: #fff;
}

.ja-news .ja-btn {
  white-space: normal;
}

.ja-feature-block .ja-pos-logos {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  margin: 0;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
  .ja-feature-block .ja-pos-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* TableCheck Channels partner map (features/tablecheck-channels.html) */
.ja-channels-map {
  container-type: inline-size;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  --u: calc(100cqw / 500);
  --ch-ink: #241a3d;
  --ch-brand: linear-gradient(100deg, #4a2aa0 0%, #7b2fa8 50%, #c0392b 100%);
}

.ja-channels-map > * {
  --dash: calc(var(--u) * 4);
}

.ja-ch-group {
  position: relative;
  padding: calc(var(--u) * 14) calc(var(--u) * 12) calc(var(--u) * 12);
  border: 1px solid var(--ch-line);
  border-radius: calc(var(--u) * 14);
  background: linear-gradient(180deg, var(--ch-top) 0%, var(--ch-bottom) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ja-ch-group--channels {
  --ch-top: #f8f5fe;
  --ch-bottom: #f0eafb;
  --ch-line: #e4dbf6;
  --ch-accent: #7b5cd6;
}

.ja-ch-group--blue {
  --ch-top: #f3f8ff;
  --ch-bottom: #e9f2fe;
  --ch-line: #d5e5fb;
  --ch-accent: #4f8fe8;
}

.ja-ch-group--red {
  --ch-top: #fff6f6;
  --ch-bottom: #fdecec;
  --ch-line: #f6d9d9;
  --ch-accent: #e46262;
}

.ja-ch-group--green {
  --ch-top: #f3fbf5;
  --ch-bottom: #e7f6eb;
  --ch-line: #d0ecd8;
  --ch-accent: #3fb565;
}

.ja-ch-title {
  margin: 0 0 calc(var(--u) * 10);
  color: var(--ch-ink);
  font-size: max(11px, calc(var(--u) * 12.5));
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}

.ja-ch-group--channels .ja-ch-title {
  font-size: max(13px, calc(var(--u) * 16));
  margin-bottom: calc(var(--u) * 12);
}

.ja-ch-tiles {
  display: flex;
  justify-content: center;
  gap: calc(var(--u) * 8);
}

.ja-ch-tile {
  display: grid;
  /* A plain auto track grows to the image's natural width, so the img's
     max-width: 100% never constrains it and the logo overflows the tile. */
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  flex: 0 0 auto;
  width: calc(var(--u) * 56);
  height: calc(var(--u) * 56);
  padding: calc(var(--u) * 9);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ch-accent) 22%, transparent);
  border-radius: calc(var(--u) * 10);
  box-shadow:
    0 1px 2px rgba(24, 12, 56, 0.06),
    0 calc(var(--u) * 6) calc(var(--u) * 14) calc(var(--u) * -6) color-mix(in srgb, var(--ch-accent) 45%, transparent);
}

.ja-ch-tile--wide {
  width: calc(var(--u) * 132);
  padding: calc(var(--u) * 6);
}

.ja-ch-tile img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ja-ch-hub {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 12);
  width: calc(var(--u) * 300);
  height: calc(var(--u) * 76);
  margin: calc(var(--u) * 36) auto 0;
  border: calc(var(--u) * 2) solid transparent;
  border-radius: calc(var(--u) * 16);
  background: linear-gradient(#fff, #fff) padding-box, var(--ch-brand) border-box;
  box-shadow:
    0 1px 2px rgba(24, 12, 56, 0.08),
    0 calc(var(--u) * 16) calc(var(--u) * 32) calc(var(--u) * -14) rgba(123, 47, 168, 0.45);
}

.ja-ch-hub img:first-child {
  width: calc(var(--u) * 34);
  height: auto;
}

.ja-ch-hub img:last-child {
  width: calc(var(--u) * 186);
  height: auto;
}

/* Connectors: dashed stems drawn with gradients so the dash length scales with the figure */
.ja-ch-hub::before,
.ja-ch-hub::after,
.ja-ch-branches > .ja-ch-group::before,
.ja-ch-branches > .ja-ch-group::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.ja-ch-hub::before,
.ja-ch-hub::after,
.ja-ch-branches > .ja-ch-group::before {
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: repeating-linear-gradient(to bottom, var(--stem) 0 var(--dash), transparent var(--dash) calc(var(--dash) * 2));
}

.ja-ch-hub::before {
  --stem: #8b6fe0;
  bottom: calc(100% + var(--u) * 2);
  height: calc(var(--u) * 36);
}

.ja-ch-hub::after {
  --stem: #b9acd9;
  top: calc(100% + var(--u) * 2);
  height: calc(var(--u) * 20);
}

.ja-ch-branches {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  align-items: start;
  gap: calc(var(--u) * 10);
  margin-top: calc(var(--u) * 42);
}

.ja-ch-branches > .ja-ch-group::before {
  --stem: var(--ch-accent);
  bottom: 100%;
  height: calc(var(--u) * 21);
}

.ja-ch-branches > .ja-ch-group::after {
  top: calc(var(--u) * -22);
  left: calc(var(--u) * -5);
  right: calc(var(--u) * -5);
  height: 2px;
  background: repeating-linear-gradient(to right, #b9acd9 0 var(--dash), transparent var(--dash) calc(var(--dash) * 2));
}

.ja-ch-branches > .ja-ch-group:first-child::after {
  left: 50%;
}

.ja-ch-branches > .ja-ch-group:last-child::after {
  right: 50%;
}

@container (max-width: 439px) {
  .ja-ch-tiles {
    flex-wrap: wrap;
  }

  .ja-ch-tile {
    width: 48px;
    height: 48px;
    padding: 8px;
  }

  .ja-ch-tile--wide {
    width: 112px;
    padding: 5px;
  }

  .ja-ch-group--channels .ja-ch-tiles {
    gap: 8px;
  }

  .ja-ch-hub {
    width: 220px;
    height: 60px;
    margin-top: 32px;
  }

  .ja-ch-hub::before {
    height: 32px;
  }

  .ja-ch-hub img:first-child {
    width: 26px;
  }

  .ja-ch-hub img:last-child {
    width: 136px;
  }

  .ja-ch-branches {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
  }

  .ja-ch-hub::after,
  .ja-ch-branches > .ja-ch-group::after {
    display: none;
  }

  .ja-ch-branches > .ja-ch-group::before {
    height: 24px;
  }
}

/* 世界中のフーディとつながる flow (features/tablecheck-channels.html) */
.ja-foodies-map {
  container-type: inline-size;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.ja-foodies-map > * {
  --u: calc(100cqw / 500);
}

.ja-fd-sources {
  display: flex;
  justify-content: center;
  gap: calc(var(--u) * 22);
}

.ja-fd-source {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * 10);
  width: calc(var(--u) * 128);
  padding: calc(var(--u) * 16) calc(var(--u) * 6) calc(var(--u) * 14);
  background: #fff;
  border: 1px solid #ebe5f8;
  border-radius: calc(var(--u) * 16);
  box-shadow:
    0 1px 2px rgba(24, 12, 56, 0.06),
    0 calc(var(--u) * 10) calc(var(--u) * 22) calc(var(--u) * -10) rgba(74, 42, 160, 0.35);
}

.ja-fd-icon {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 48);
  height: calc(var(--u) * 48);
  border-radius: calc(var(--u) * 12);
  background: linear-gradient(145deg, #f7f3ff 0%, #ebe2fc 100%);
  box-shadow: inset 0 0 0 1px rgba(123, 92, 214, 0.12);
}

.ja-fd-icon svg,
.ja-fd-venue-icon svg {
  fill: none;
  stroke: #4a2aa0;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ja-fd-icon svg {
  width: 56%;
  height: 56%;
  stroke-width: 1.75;
}

.ja-fd-label {
  color: #241a3d;
  font-size: max(11px, calc(var(--u) * 13));
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ja-fd-links {
  display: block;
  width: 100%;
  height: auto;
  margin-top: calc(var(--u) * -4);
  overflow: visible;
}

.ja-fd-links path {
  fill: none;
  stroke: #b3a1e6;
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.ja-fd-links circle {
  fill: #fff;
  stroke: #8b6fe0;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.ja-fd-hub {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: calc(var(--u) * 72);
  height: calc(var(--u) * 72);
  margin: calc(var(--u) * -30) auto 0;
  border: 1px solid #e4dbf6;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff 0%, #f6f2ff 100%);
  box-shadow:
    0 0 0 calc(var(--u) * 8) rgba(139, 111, 224, 0.1),
    0 0 0 calc(var(--u) * 16) rgba(139, 111, 224, 0.05),
    0 calc(var(--u) * 10) calc(var(--u) * 20) calc(var(--u) * -6) rgba(74, 42, 160, 0.35);
}

.ja-fd-hub img {
  width: 46%;
  height: auto;
}

.ja-fd-hub::after {
  content: "";
  position: absolute;
  top: calc(100% + var(--u) * 18);
  left: 50%;
  width: 2px;
  height: calc(var(--u) * 30);
  margin-left: -1px;
  background: repeating-linear-gradient(to bottom, #8b6fe0 0 4px, transparent 4px 9px);
}

/* Destination card: same tile language as the source cards, with the ticket border to mark it as the endpoint */
.ja-fd-venue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * 12);
  width: max-content;
  min-width: calc(var(--u) * 176);
  margin: calc(var(--u) * 52) auto 0;
  padding: calc(var(--u) * 20) max(16px, calc(var(--u) * 20)) calc(var(--u) * 18);
  background: linear-gradient(180deg, #fff 0%, #faf8ff 100%);
  border: 1.5px solid #a48be6;
  border-radius: calc(var(--u) * 18);
  box-shadow:
    0 1px 1px rgba(24, 12, 56, 0.08),
    0 calc(var(--u) * 14) calc(var(--u) * 26) calc(var(--u) * -10) rgba(74, 42, 160, 0.35);
}

.ja-fd-venue-icon {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 68);
  height: calc(var(--u) * 68);
  border-radius: calc(var(--u) * 16);
  background: linear-gradient(145deg, #f7f3ff 0%, #ebe2fc 100%);
  box-shadow: inset 0 0 0 1px rgba(123, 92, 214, 0.14);
}

.ja-fd-venue-icon svg {
  width: 54%;
  height: 54%;
  stroke-width: 1.6;
}

.ja-fd-venue .ja-fd-label {
  font-size: max(12px, calc(var(--u) * 15));
}

/* 人気グルメイベント tickets (features/tablecheck-channels.html) */
.ja-events-map {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 16px 0;
}

.ja-ev-ticket {
  container-type: inline-size;
  position: relative;
  width: 85%;
  aspect-ratio: 520 / 168;
  filter:
    drop-shadow(0 1px 1px rgba(24, 12, 56, 0.08))
    drop-shadow(0 12px 20px rgba(74, 42, 160, 0.16));
}

/* Even fan: equal angle steps, so the stubs converge on the right and the logo side opens out.
   Overlap lands on the stubs' blank top/bottom space, keeping logos and text clear. */
.ja-ev-ticket {
  --fan: 4deg;
  transform: rotate(calc(var(--fan) * var(--step)));
}

.ja-ev-ticket + .ja-ev-ticket {
  margin-top: -4cqw;
}

.ja-ev-ticket--a {
  --step: 1;
}

.ja-ev-ticket--b {
  --step: 0;
}

.ja-ev-ticket--c {
  --step: -1;
}

.ja-ev-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ja-ev-main,
.ja-ev-stub {
  --t: calc(100cqw / 520);
  position: absolute;
  top: 0;
  bottom: 0;
}

.ja-ev-main {
  left: 0;
  width: calc(100% * 392 / 520);
  display: grid;
  grid-template-columns: calc(var(--t) * 150) minmax(0, 1fr);
  align-items: center;
  gap: calc(var(--t) * 20);
  padding: 0 calc(var(--t) * 22) 0 calc(var(--t) * 24);
}

.ja-ev-art {
  display: grid;
  place-items: center;
  height: calc(var(--t) * 120);
  border-right: 1px solid #eee8fa;
  padding-right: calc(var(--t) * 18);
}

.ja-ev-art img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.ja-ev-art .ja-ev-art-round {
  width: calc(var(--t) * 104);
}

.ja-ev-art .ja-ev-art-wide {
  width: calc(var(--t) * 124);
}

.ja-ev-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.ja-ev-kicker {
  margin: 0 0 calc(var(--t) * 6);
  color: #7b2fa8;
  font-size: calc(var(--t) * 10.5);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.18em;
}

.ja-ev-name {
  margin: 0;
  color: #1f053d;
  font-size: calc(var(--t) * 18.5);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.ja-ev-sub {
  margin: calc(var(--t) * 8) 0 0;
  color: #5c5c66;
  font-size: calc(var(--t) * 11.5);
  line-height: 1.3;
  letter-spacing: 0.06em;
}

.ja-ev-sponsor {
  display: block;
  width: calc(var(--t) * 92);
  height: auto;
  margin-top: calc(var(--t) * 12);
}

.ja-ev-stub {
  left: calc(100% * 392 / 520);
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--t) * 10);
}

.ja-ev-stub-head {
  display: flex;
  align-items: center;
  gap: calc(var(--t) * 5);
  margin: 0;
}

.ja-ev-stub img {
  width: calc(var(--t) * 15);
  height: auto;
}

.ja-ev-stub span {
  color: #4a2aa0;
  font-size: calc(var(--t) * 12);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

@container (max-width: 400px) {
  .ja-ev-kicker,
  .ja-ev-sub {
    display: none;
  }

  .ja-ev-name {
    font-size: calc(var(--t) * 22);
  }

  .ja-ev-sponsor {
    width: calc(var(--t) * 100);
    margin-top: calc(var(--t) * 8);
  }

  .ja-ev-stub span {
    font-size: calc(var(--t) * 14);
    letter-spacing: 0.04em;
  }
}

@container (max-width: 460px) {
  .ja-ev-ticket {
    --fan: 3.2deg;
  }

  .ja-ev-ticket + .ja-ev-ticket {
    margin-top: -2.5cqw;
  }
}

/* Analytics page (features/analytics.html): restyled after tablecheck.com/en/join/solutions/analytics */
.ja-analytics-page {
  --ana-violet: #7c4dff;
  --ana-deep: #1a0f33;
  --ana-night: #121016;
  --ana-mist: #f1f0f6;
}

.ja-ana-hero {
  position: relative;
  padding: 72px 0 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px) 0 0 / 18px 18px,
    linear-gradient(180deg, #0f0a1c 0%, #241246 58%, #3a1e72 100%);
}

.ja-ana-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: var(--ana-mist);
}

.ja-ana-hero .ja-container {
  position: relative;
  z-index: 1;
}

.ja-ana-hero-copy {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.ja-ana-eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(196, 181, 253, 0.35);
  border-radius: 999px;
  background: rgba(124, 77, 255, 0.16);
  color: #d9ccff;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.ja-ana-hero h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.ja-ana-hero-copy > p:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.8;
}

.ja-ana-hero .ja-ana-stage {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.ja-ana-section {
  padding: 96px 0;
}

.ja-ana-section.ja-is-light {
  background: var(--ana-mist);
}

.ja-ana-section.ja-is-light + .ja-ana-section.ja-is-light {
  border-top: 1px solid #e3e1ec;
}

.ja-ana-section.ja-is-dark {
  color: #fff;
  background:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.2px) 0 0 / 18px 18px,
    var(--ana-night);
}

.ja-ana-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.ja-ana-copy h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 20px;
}

.ja-ana-copy h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin-bottom: 20px;
  border-radius: 2px;
  background: linear-gradient(90deg, #5b34c9, var(--ana-violet));
}

.ja-ana-copy > p:not(.ja-cta-row) {
  color: #4b4858;
  line-height: 1.9;
}

.ja-ana-section.ja-is-dark .ja-ana-copy > p:not(.ja-cta-row) {
  color: rgba(255, 255, 255, 0.72);
}

.ja-ana-section .ja-btn-purple {
  background: var(--ana-violet);
  border-color: var(--ana-violet);
  box-shadow: 0 8px 20px rgba(124, 77, 255, 0.3);
}

.ja-ana-section .ja-btn-purple:hover {
  background: #6a3cf0;
  border-color: #6a3cf0;
}

@media (min-width: 1024px) {
  .ja-ana-grid {
    grid-template-columns: 5fr 7fr;
    gap: 72px;
  }

  .ja-ana-section.ja-is-reversed .ja-ana-grid {
    grid-template-columns: 7fr 5fr;
  }

  .ja-ana-section.ja-is-reversed .ja-ana-copy {
    order: 2;
  }
}

.ja-ana-stage {
  margin: 0;
}

.ja-ana-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

/* いつもの予約と一括管理 (features/takeaway-delivery-feature.html): centred copy over two icon cards, after the live OneStop block */
.ja-onestop {
  padding: 64px 0;
}

.ja-onestop-title {
  font-size: 24px;
  line-height: 32px;
  color: #5c11a6;
  margin-bottom: 8px;
}

.ja-onestop-header {
  font-size: 36px;
  line-height: 48px;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin-bottom: 16px;
}

.ja-onestop-desc {
  margin: 0 auto 32px;
}

.ja-onestop-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #fff;
}

.ja-onestop-card {
  min-height: 168px;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 8px 32px 4px rgba(0, 0, 0, 0.24);
  text-align: start;
  background: #370466;
}

.ja-onestop-card:last-child {
  background: #7935d2;
}

.ja-onestop-card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.ja-onestop-card .ja-nowrap {
  white-space: nowrap;
}

.ja-onestop-card h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Height follows the media panel (its aspect ratio sets the height), so the mockup scales with the space at every breakpoint */
.ja-fastpass-phone {
  position: absolute;
  top: 50%;
  right: 16%;
  height: 84%;
  width: auto;
  max-width: none;
  transform: translateY(-50%);
  filter: drop-shadow(0 12px 24px rgba(45, 7, 89, 0.25));
}

@media (min-width: 768px) {
  .ja-onestop-inner {
    text-align: center;
  }

  .ja-onestop-desc {
    max-width: 600px;
  }

  .ja-onestop-cards {
    flex-direction: row;
    gap: 24px;
  }

  .ja-onestop-card {
    flex: 1;
    min-height: 228px;
    padding: 24px 32px;
  }

  .ja-onestop-card h3 {
    margin-bottom: 18px;
  }
}

@media (min-width: 1024px) {
  .ja-onestop-cards {
    max-width: 836px;
    margin: 0 auto;
    gap: 48px;
  }
}

/* CTA buttons (all pages) and the two header buttons: 6px corners, vibrant purple with a subtle top-to-bottom gradient.
   Declared last so it overrides the earlier pill, hero and analytics button variants at equal specificity. */
:root {
  --cta-top: #8c4bec;
  --cta-bottom: #6a24cf;
  --cta-top-hover: #9758f2;
  --cta-bottom-hover: #5e1cc0;
  --cta-shadow: 0 1px 2px rgba(45, 7, 89, 0.12), 0 2px 6px rgba(92, 17, 166, 0.14);
  --cta-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ja-btn,
.ja-header-pill {
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ja-btn-primary,
.ja-btn-purple,
.ja-hero-copy .ja-btn-primary,
.ja-ana-section .ja-btn-purple,
.ja-header-pill-accent,
.ja-side-footer .ja-header-pill-accent {
  border: 1px solid var(--cta-bottom);
  background: linear-gradient(180deg, var(--cta-top) 0%, var(--cta-bottom) 100%);
  color: #fff;
  box-shadow: var(--cta-highlight), var(--cta-shadow);
}

.ja-btn-primary:hover,
.ja-btn-purple:hover,
.ja-hero-copy .ja-btn-primary:hover,
.ja-ana-section .ja-btn-purple:hover,
.ja-header-pill-accent:hover,
.ja-side-footer .ja-header-pill-accent:hover {
  border-color: var(--cta-bottom-hover);
  background: linear-gradient(180deg, var(--cta-top-hover) 0%, var(--cta-bottom-hover) 100%);
  box-shadow: var(--cta-highlight), 0 1px 2px rgba(45, 7, 89, 0.14), 0 4px 10px rgba(92, 17, 166, 0.2);
}

.ja-btn-primary:active,
.ja-btn-purple:active,
.ja-header-pill-accent:active {
  background: var(--cta-bottom-hover);
  box-shadow: inset 0 1px 2px rgba(30, 4, 60, 0.3);
}

.ja-btn:focus-visible,
.ja-header-pill:focus-visible {
  outline: 2px solid var(--cta-bottom);
  outline-offset: 3px;
}

.ja-btn-outline {
  border: 1px solid var(--cta-bottom);
  background: #fff;
  color: var(--cta-bottom);
  box-shadow: 0 1px 2px rgba(45, 7, 89, 0.08);
}

.ja-btn-outline:hover {
  background: #f6f0ff;
}

.ja-header-pill {
  height: 36px;
  border-width: 1px;
  font-size: 14px;
}

.ja-side-footer .ja-header-pill {
  height: 48px;
}

.ja-header-pill:not(.ja-header-pill-accent) {
  border-color: rgba(26, 26, 26, 0.28);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.ja-header-pill:not(.ja-header-pill-accent):hover {
  border-color: rgba(26, 26, 26, 0.5);
  background: #faf9fc;
}

body.ja-header-overlay .ja-site-header:not(.ja-is-scrolled) .ja-header-pill:not(.ja-header-pill-accent) {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

body.ja-header-overlay .ja-site-header:not(.ja-is-scrolled) .ja-header-pill:not(.ja-header-pill-accent):hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (min-width: 1024px) {
  .ja-site-footer {
    padding: 82px 0;
  }

  .ja-footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .ja-footer-logo {
    align-self: start;
    margin-bottom: 0;
  }

  .ja-footer-columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ja-footer-columns section:last-child {
    grid-column: auto;
  }

  .ja-footer-bottom {
    gap: 24px;
    margin-top: 64px;
  }

  .ja-footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .ja-social {
    gap: 16px;
  }

  .ja-copyright {
    white-space: nowrap;
  }
}

@media (min-width: 1280px) {
  .ja-footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: 24px;
  }
}

/* Company: about page (company/about.html) */
.ja-about-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 490px;
  overflow: hidden;
  color: #fff;
  background: #1a0d24;
}

.ja-about-hero > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  filter: saturate(1.25) contrast(1.05);
}

.ja-about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(60% 70% at 18% 25%, rgba(124, 77, 255, 0.8), transparent 70%),
    radial-gradient(55% 65% at 85% 70%, rgba(255, 88, 140, 0.7), transparent 70%),
    radial-gradient(50% 60% at 55% 0%, rgba(255, 150, 90, 0.5), transparent 70%);
  mix-blend-mode: soft-light;
  opacity: 0.9;
}

.ja-about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(40, 12, 80, 0) 35%, rgba(40, 12, 80, 0.6) 100%);
}

.ja-about-hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 72px;
  text-align: center;
}

.ja-about-hero h1 {
  margin-bottom: 12px;
  font-size: 48px;
  line-height: 56px;
  color: #fff;
}

.ja-about-hero p {
  font-size: 18px;
  line-height: 28px;
}

.ja-about-block {
  padding: 64px 0;
}

.ja-about-block-tight {
  padding-top: 32px;
}

.ja-about-section-title {
  margin-bottom: 32px;
  font-size: 32px;
  line-height: 40px;
  text-align: center;
}

.ja-about-split {
  display: grid;
  gap: 32px;
  align-items: center;
}

.ja-about-split h2 {
  margin-bottom: 16px;
  font-size: 28px;
  line-height: 36px;
}

.ja-about-split > .ja-about-copy > p {
  margin-bottom: 16px;
}

.ja-about-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}

.ja-about-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ja-about-media.ja-is-tinted {
  background: var(--surface);
}

.ja-about-media.ja-is-logo img {
  top: 50%;
  left: 50%;
  width: 50%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.ja-about-media.ja-is-tinted img {
  object-fit: contain;
  padding: 24px;
}

.ja-about-products {
  display: grid;
  gap: 16px;
}

.ja-about-product {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.ja-about-product:hover,
.ja-about-product:focus-within {
  border-color: #cdbdf0;
  box-shadow: 0 8px 24px -12px rgba(74, 42, 160, 0.35);
  transform: translateY(-2px);
}

.ja-about-product h3 {
  font-size: 18px;
  line-height: 26px;
}

.ja-about-product .ja-block-link {
  margin-top: 0;
}

/* The card's one link stretches over the whole card, so it stays a single
   link for keyboard and screen-reader users */
.ja-about-product .ja-block-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.ja-about-product .ja-block-link:focus-visible {
  outline: none;
}

.ja-about-product:has(.ja-block-link:focus-visible) {
  outline: 2px solid #4a2aa0;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .ja-about-product {
    transition: none;
  }

  .ja-about-product:hover,
  .ja-about-product:focus-within {
    transform: none;
  }
}

.ja-about-values {
  display: grid;
  gap: 24px;
}

.ja-about-value {
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.ja-about-value img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.ja-about-value h3 {
  margin: 20px 16px 8px;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

.ja-about-value p {
  padding: 0 24px 28px;
  font-size: 14px;
  line-height: 24px;
  color: var(--muted);
}

.ja-about-investors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ja-about-investor {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.ja-about-investor-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  background: var(--surface);
}

.ja-about-investor-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ja-about-investor-media img[src$=".svg"] {
  width: auto;
  max-width: 60%;
  max-height: 50%;
  height: auto;
  object-fit: contain;
}

.ja-about-investor h3 {
  margin: 16px 16px 4px;
  font-size: 16px;
  line-height: 24px;
}

.ja-about-investor p {
  margin: 0 16px 20px;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}

.ja-about-narrow {
  max-width: 880px;
}

.ja-about-details {
  margin: 0 0 32px;
}

.ja-about-details > div {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.ja-about-details dt {
  font-weight: 700;
}

.ja-about-details dd {
  margin: 0;
  line-height: 1.7;
}

.ja-about-details a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.ja-about-details a:hover {
  text-decoration-color: currentColor;
}

@media (min-width: 768px) {
  .ja-about-hero {
    height: 680px;
  }

  .ja-about-hero h1 {
    font-size: 56px;
    line-height: 64px;
  }

  .ja-about-products {
    grid-template-columns: repeat(3, 1fr);
  }

  .ja-about-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .ja-about-investors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ja-about-details > div {
    grid-template-columns: 200px 1fr;
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .ja-about-hero {
    height: 576px;
  }

  .ja-about-hero-copy {
    padding-bottom: 120px;
  }

  .ja-about-hero h1 {
    font-size: 64px;
    line-height: 72px;
  }

  .ja-about-hero p {
    font-size: 20px;
    line-height: 30px;
  }

  .ja-about-split {
    grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
    gap: 64px;
  }

  .ja-about-values {
    grid-template-columns: repeat(3, 1fr);
  }

  .ja-about-investors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .ja-about-hero {
    height: 680px;
  }
}

@media (min-width: 1600px) {
  .ja-about-hero {
    height: 810px;
  }
}

/* =========================================================================
   Not in the mockup: added for the Astro build. Keep these in the mockup's
   vocabulary (tokens, button classes) so they read as part of the same site.
   ========================================================================= */

/* Consent banner and preferences dialog: EN's c15t layout and sizing (ConsentManager.tsx) */
.ja-consent-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 510;
  width: 440px;
  max-width: calc(100% - 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ja-consent-banner[hidden] {
  display: none;
}

.ja-consent-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
}

.ja-consent-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.ja-consent-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

.ja-consent-text a {
  color: #4a2aa0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ja-consent-foot,
.ja-consent-dialog-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ja-consent-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--tint);
}

.ja-consent-group {
  display: flex;
  gap: 16px;
}

.ja-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.ja-consent-btn:hover {
  background: var(--tint);
}

.ja-consent-btn:focus-visible,
.ja-consent-expand:focus-visible,
.ja-consent-switch:focus-visible {
  outline: 2px solid #4a2aa0;
  outline-offset: 2px;
}

.ja-consent-dialog {
  width: min(448px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: var(--ink);
}

/* Padding lives here so a click on the dialog element itself is always the backdrop */
.ja-consent-dialog-inner {
  padding: 24px;
}

.ja-consent-dialog::backdrop {
  background: rgba(12, 12, 16, 0.5);
}

.ja-consent-dialog-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.ja-consent-dialog-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.ja-consent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ja-consent-item {
  border: 1px solid var(--line);
  border-radius: 6px;
}

.ja-consent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.ja-consent-expand {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 18px;
  text-align: left;
  cursor: pointer;
}

.ja-consent-expand svg {
  flex: none;
  transition: transform 150ms ease;
}

.ja-consent-expand[aria-expanded="true"] svg {
  transform: rotate(45deg);
}

.ja-consent-desc {
  margin: 0;
  padding: 0 8px 10px 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 21px;
}

.ja-consent-switch {
  position: relative;
  flex: none;
  width: 36px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: #c5c5cd;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.ja-consent-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 150ms ease;
}

.ja-consent-switch[aria-checked="true"] {
  background: #4a2aa0;
}

.ja-consent-switch[aria-checked="true"]::after {
  transform: translateX(16px);
}

.ja-consent-switch:disabled {
  opacity: 0.5;
  cursor: default;
}

.ja-consent-dialog-foot {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 639px) {
  .ja-consent-banner {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
    max-width: none;
  }

  .ja-consent-foot,
  .ja-consent-dialog-foot {
    flex-direction: column;
  }

  .ja-consent-group > .ja-consent-btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ja-consent-btn,
  .ja-consent-expand svg,
  .ja-consent-switch,
  .ja-consent-switch::after {
    transition: none;
  }
}

/* Team bios and trait descriptions (text from the live team page). Same size
   and colour as the card's role line so the card keeps the mockup's hierarchy. */
.ja-team-bio {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}

/* RingPhoto: a hero photo with the brand ring drawn over it, sized like the
   mockup's ring-baked hero images (105% of the column from 1024px). */
.ja-ring-photo {
  position: relative;
}

.ja-feature-hero .ja-ring-photo img {
  width: 100%;
  max-width: 100%;
}

.ja-ring-photo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .ja-feature-hero .ja-ring-photo {
    width: 105%;
  }
}

/* Legal text (terms page). A narrower measure than the page container for long reading. */
.ja-legal {
  padding: 48px 0 96px;
}

.ja-legal .ja-container {
  max-width: 880px;
}

.ja-legal h2 {
  font-size: 20px;
  line-height: 28px;
  margin: 40px 0 12px;
}

.ja-legal p {
  font-size: 15px;
  line-height: 26px;
  margin-bottom: 8px;
  white-space: pre-line;
}

.ja-legal h3 {
  font-size: 16px;
  line-height: 24px;
  margin: 24px 0 8px;
}

/* Live policy list items carry their own markers (・, ①, （１）), so the list adds none */
.ja-legal ul {
  margin: 0 0 16px;
  padding: 0 0 0 16px;
  list-style: none;
}

.ja-legal li {
  font-size: 15px;
  line-height: 26px;
  margin-bottom: 4px;
  white-space: pre-line;
}

/* News page: empty article list until the page is wired to the Editor Portal CMS */
.ja-news-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 24px;
  background: #faf7fe;
  border: 1px solid #ebe3f8;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

/* Cancel-protection pain points: small icons in the team-traits card layout */
.ja-team-photo.ja-pain-icon {
  max-width: 72px;
  border-radius: 0;
}

.ja-legal-intro .ja-container {
  max-width: 880px;
}

.ja-related {
  padding: 48px 0;
  background: var(--tint);
}

.ja-related h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  margin: 0 0 24px;
}

.ja-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ja-related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 73px;
  padding: 12px 16px 12px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}

.ja-related-card:hover {
  border-color: var(--accent-purple);
}

.ja-related-icon {
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
}

.ja-related-icon img {
  width: 25px;
  height: 25px;
}

.ja-related-card strong {
  flex: 1;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
}

.ja-related-arrow {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.ja-related-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .ja-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .ja-related .ja-container {
    padding: 0 48px;
  }

  .ja-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* FastPass and inbound images from the live pages: shown whole, as on the live
   site, rather than cropped to the 4:3 media frame. */
.ja-feature-media.ja-is-contain img {
  object-fit: contain;
}

/* /preview/ listing replicas: post cards in the live listings' order (image, category,
   title, excerpt, meta), led by a wide featured card for the newest article */
.ja-post-grid {
  display: grid;
  gap: 32px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ja-post-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ja-post-media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}

.ja-post-media img,
.ja-post-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ja-post-category {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 999px;
  background: #efe9fb;
  color: #4a2aa0;
  font-size: 12px;
  line-height: 20px;
  font-weight: 700;
}

.ja-post-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ja-post-title {
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
}

.ja-post-title a {
  color: var(--ink);
  text-decoration: none;
}

.ja-post-title a:hover {
  color: #4a2aa0;
}

.ja-post-excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

.ja-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.ja-post-meta span:first-child {
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 768px) {
  .ja-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ja-post-card.ja-is-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: center;
    gap: 32px;
  }

  .ja-post-card.ja-is-featured .ja-post-title {
    font-size: 24px;
    line-height: 34px;
  }
}

@media (min-width: 1024px) {
  .ja-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* /preview/ article, in the live article template's order */
.ja-post {
  padding: 48px 0 96px;
}

.ja-post .ja-container {
  max-width: 816px;
}

.ja-post-back {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.ja-post-back::before {
  content: "← ";
}

.ja-post-back:hover {
  color: var(--ink);
}

.ja-post-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.ja-post-header h1 {
  font-size: 28px;
  line-height: 40px;
  font-weight: 700;
}

.ja-post-subtitle {
  color: var(--muted);
  font-size: 16px;
  line-height: 26px;
}

.ja-post-hero {
  margin: 32px 0 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.ja-post-body {
  margin-top: 32px;
}

.ja-post-body h2 {
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
  margin: 40px 0 16px;
}

.ja-post-body p {
  font-size: 16px;
  line-height: 30px;
  margin-bottom: 16px;
}

.ja-post-body figure {
  margin: 32px 0;
}

/* Body images are charts and screenshots too, so they keep their own shape */
.ja-post-body figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.ja-post-body h3 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.ja-post-body a {
  color: #4a2aa0;
  word-break: break-word;
}

.ja-post-body ul,
.ja-post-body ol {
  margin: 0 0 16px;
  padding-left: 1.5em;
  font-size: 16px;
  line-height: 30px;
}

.ja-post-body ul {
  list-style: disc;
}

.ja-post-body ol {
  list-style: decimal;
}

.ja-post-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid #4a2aa0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--tint);
  font-size: 16px;
  line-height: 30px;
}

.ja-post-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 48px 0 0;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--tint);
}

.ja-post-cta .ja-post-cta-title {
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
  margin: 0;
}

.ja-post-cta p {
  margin: 0;
}

.ja-post-cta .ja-btn {
  margin-top: 4px;
}

.ja-post-body figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.ja-post-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.ja-post-share a {
  color: var(--muted);
}

.ja-post-share a:hover {
  color: var(--ink);
}

@media (min-width: 768px) {
  .ja-post-header h1 {
    font-size: 36px;
    line-height: 50px;
  }
}

/* FastPass hero label: the TableCheck mark and purple text, no bold, as the approved
   reference. Only used on the FastPass hero. */
.ja-eyebrow-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  font-size: 17px;
  line-height: 22px;
  font-weight: 500;
  color: #5c11a6;
}

.ja-eyebrow-brand img {
  width: 22px;
  height: 22px;
}

/* FastPass page only: its images are shown at 125% of the column so they read at the
   size the page was approved at. The frame drops its 4:3 box so the enlarged image
   isn't clipped. Desktop widens the column gap so the enlarged image clears the copy;
   below 1024px the image stays at column width so the page never scrolls sideways. */
.ja-fastpass-page .ja-feature-media.ja-is-contain {
  aspect-ratio: auto;
  overflow: visible;
  border-radius: 0;
}

.ja-fastpass-page .ja-feature-media.ja-is-contain img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: initial;
}

@media (min-width: 1024px) {
  .ja-fastpass-page .ja-feature-block-grid,
  .ja-fastpass-page .ja-feature-hero-grid {
    column-gap: 96px;
  }

  .ja-fastpass-page .ja-feature-media.ja-is-contain img {
    width: 125%;
    max-width: none;
    margin: 0 -12.5%;
  }
}
