/* ==========================================================================
   Components — type, links & buttons, page hero, breadcrumb, CTA band, lists,
   prose, forms, pagination
   ========================================================================== */

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.eyebrow--light { color: rgba(255, 255, 255, .9); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 7.4vw, 44px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .02em;
  color: var(--color-hero-ink);
}

.section-title--light { color: var(--color-white); }

.section-lead {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.95;
  letter-spacing: .1em;
  color: var(--color-text);
}

.label-en {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hand {
  font-family: var(--font-hand);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .12em;
  white-space: nowrap;
}

/* A line mask for the title reveal. Padding keeps Mincho descenders out of the clip. */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}

.line > span { display: block; }

.num {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums;
}

/* ---------- links & CTAs (UI redesign §2–3) ----------
   No filled rectangles. The primary CTA is type, a line and an up-right arrow; on hover a red
   brush patch is painted behind it from left to right. Secondary links are type, a line and
   an arrow; on hover the line is drawn in red. */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .12em;
}

.cta-primary {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4em;
  min-height: 56px;
  padding: 0 6px 0 2px;
  border: 0;
  background: none;
  color: var(--color-hero-ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .14em;
  text-align: left;
  cursor: pointer;
  transition: color var(--dur-normal) var(--ease-out);
}

.cta-primary::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transition: opacity var(--dur-micro) ease;
}

.cta-primary::before {
  content: "";
  position: absolute;
  inset: -4px -14px -4px -18px;
  z-index: -1;
  background:
    linear-gradient(176deg, transparent 8%, rgba(255, 122, 50, .6) 8% 13%, transparent 13% 84%, rgba(234, 85, 20, .85) 84% 90%, transparent 90%),
    var(--color-brand-dark);
  -webkit-mask: var(--mask-brush-fill) center / 100% 100% no-repeat;
  mask: var(--mask-brush-fill) center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--dur-normal) var(--ease-out);
}

.cta-primary--light { color: var(--color-white); }

.cta-primary--large {
  min-height: 72px;
  font-size: 16px;
}

.cta-primary--boxed {
  padding: 0 22px;
  border: 1px solid var(--color-hero-ink);
}

.cta-primary--boxed::before { inset: -3px -8px; }

.cta-primary--boxed::after { display: none; }

.cta-primary--boxed {
  transition: color var(--dur-normal) var(--ease-out), border-color var(--dur-micro) ease;
}

.cta-primary--boxed:focus-visible { border-color: transparent; }

@media (hover: hover) {
  .cta-primary--boxed:hover { border-color: transparent; }
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2.2em;
  min-height: 44px;
  padding-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--color-ink);
  transition: color var(--dur-normal) var(--ease-out);
}

.text-link::before,
.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
}

.text-link::before {
  background: currentColor;
  opacity: .28;
}

.text-link::after {
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-normal) var(--ease-out);
}

.text-link--light { color: var(--color-white); }

.slash {
  position: relative;
  display: inline-block;
  flex: none;
  width: 14px;
  height: 16px;
}

.slash::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: currentColor;
  transform: rotate(38deg);
}

.arrow {
  position: relative;
  display: inline-block;
  flex: none;
  width: 18px;
  height: 10px;
}

.arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 1px;
  left: 0;
  height: 1px;
  background: currentColor;
}

.arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1px;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* ↗ */
.arrow--ne { transform: rotate(-45deg); }

/* ---------- breadcrumb ---------- */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .08em;
  color: var(--color-muted);
}

.breadcrumb li + li::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  margin: 0 12px;
  background: currentColor;
  vertical-align: middle;
  opacity: .6;
}

.breadcrumb a {
  display: inline-block;
  padding: 8px 0;
  text-decoration: underline 1px transparent;
  text-underline-offset: .3em;
  transition: text-decoration-color .3s ease;
}

.breadcrumb [aria-current="page"] {
  color: var(--color-ink);
}

/* ---------- page hero (spec §25) ----------
   Shared DNA with the TOP HERO: mincho title, asymmetric copy on the left, a diagonal
   photo edge or large artwork on the right, a small index line. Never the TOP HERO itself. */

.subhero {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  background: var(--color-white);
}

.subhero__stage {
  --u: calc(100cqw / 1920);
  position: relative;
  padding: calc(var(--header-h) + var(--adminbar-h) + 14px) 20px 0;
}

.subhero__copy {
  position: relative;
  z-index: 4;
  margin-top: 26px;
}

.subhero__en {
  display: flex;
  align-items: center;
  gap: 16px;
}

.subhero__en::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--color-brand);
}

.subhero__title {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(31px, 8.6vw, 62px);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: .02em;
  color: var(--color-hero-ink);
}

.subhero__lead {
  margin-top: 20px;
  max-width: 40em;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.95;
  letter-spacing: .08em;
}

.subhero__index {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .3em;
}

.subhero__index-line {
  width: 64px;
  height: 1px;
  background: currentColor;
  opacity: .35;
}

.subhero__visual {
  position: relative;
  z-index: 1;
  height: 74vw;
  max-height: 560px;
  margin: 30px -20px 0;
  pointer-events: none;
}

.subhero__photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%);
}

.subhero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subhero__art {
  position: absolute;
}

.subhero__art img {
  width: 100%;
  height: auto;
}

.subhero__art--bird,
.subhero__art--sprinter {
  top: -10vw;
  right: -8vw;
  width: 84vw;
}

.subhero__art--runner,
.subhero__art--cyclist {
  inset: 4% -6% auto -6%;
  mix-blend-mode: multiply;
}

.subhero__word {
  position: absolute;
  right: -2vw;
  bottom: -2vw;
  font-family: var(--font-serif);
  font-size: 22vw;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  color: #eef1f4;
  white-space: nowrap;
}

.subhero__hand {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--color-white);
  font-size: clamp(20px, 5.6vw, 34px);
  font-weight: 400;
  transform: translate(-50%, -50%) rotate(-8deg);
}

/* Variants */

.subhero--art .subhero__visual { height: 64vw; }

.subhero--simple .subhero__visual { height: 18px; margin-top: 8px; }

.subhero--simple .subhero__word { font-size: 26vw; bottom: auto; top: calc(-18vw); }

.subhero--dark {
  --focus: var(--color-white);
  background: #070c13;
  color: var(--color-white);
}

.subhero--dark :is(.subhero__title, .breadcrumb [aria-current="page"]) { color: var(--color-white); }

.subhero--dark .breadcrumb ol { color: rgba(255, 255, 255, .72); }

.subhero--dark .subhero__en { color: var(--color-white); }

.subhero--contact .subhero__plane {
  position: absolute;
  inset: 0;
  background: var(--color-navy-deep);
  clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
}

.subhero--contact .subhero__plane::before {
  content: "";
  position: absolute;
  top: 26%;
  left: 12%;
  width: 3px;
  height: 46%;
  background: var(--color-brand);
}

@media (min-width: 1024px) {
  .subhero__stage {
    display: flex;
    flex-direction: column;
    min-height: calc(820 * var(--u));
    padding: calc(260 * var(--u)) 0 calc(150 * var(--u)) calc(110 * var(--u));
  }

  .subhero__breadcrumb {
    position: absolute;
    top: calc(142 * var(--u));
    left: calc(110 * var(--u));
    z-index: 4;
  }

  .subhero__copy {
    width: calc(900 * var(--u));
    margin-top: 0;
  }

  .subhero__en {
    gap: calc(22 * var(--u));
    font-size: max(10.5px, calc(15 * var(--u)));
  }

  .subhero__en::before { width: calc(46 * var(--u)); }

  .subhero__title {
    margin-top: calc(40 * var(--u));
    font-size: calc(90 * var(--u));
    line-height: 1.32;
  }

  .subhero__lead {
    max-width: calc(700 * var(--u));
    margin-top: calc(46 * var(--u));
    font-size: max(14px, calc(21 * var(--u)));
  }

  .subhero__index {
    position: absolute;
    bottom: calc(64 * var(--u));
    left: calc(110 * var(--u));
    gap: calc(18 * var(--u));
    margin: 0;
    font-size: max(10px, calc(13 * var(--u)));
  }

  .subhero__index-line { width: calc(120 * var(--u)); }

  .subhero__visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: calc(1160 * var(--u));
    height: auto;
    max-height: none;
    margin: 0;
  }

  /* Diagonal edge from (1250, 0) to (900, bottom) on the 1920 grid. */
  .subhero__photo {
    clip-path: polygon(calc(490 * var(--u)) 0, 100% 0, 100% 100%, calc(140 * var(--u)) 100%);
  }

  .subhero__art--bird,
  .subhero__art--sprinter {
    top: calc(330 * var(--u));
    right: auto;
    left: calc(210 * var(--u));
    width: calc(780 * var(--u));
  }

  .subhero__art--runner,
  .subhero__art--cyclist {
    top: calc(150 * var(--u));
    right: calc(10 * var(--u));
    bottom: auto;
    left: auto;
    width: calc(1060 * var(--u));
  }

  .subhero__word {
    right: calc(70 * var(--u));
    bottom: calc(40 * var(--u));
    font-size: calc(250 * var(--u));
  }

  .subhero__hand {
    top: calc(640 * var(--u));
    left: calc(860 * var(--u));
    font-size: calc(48 * var(--u));
  }

  .subhero--art .subhero__visual,
  .subhero--simple .subhero__visual { height: auto; margin: 0; }

  .subhero--simple .subhero__stage { min-height: calc(600 * var(--u)); }

  .subhero--simple .subhero__copy { width: calc(1500 * var(--u)); }

  .subhero--simple .subhero__word { top: auto; bottom: calc(60 * var(--u)); font-size: calc(260 * var(--u)); }

  .subhero--contact .subhero__copy { width: calc(1120 * var(--u)); }

  .subhero--contact .subhero__title { font-size: calc(66 * var(--u)); }

  .subhero--contact .subhero__hand { left: calc(760 * var(--u)); font-size: calc(40 * var(--u)); }

  .subhero--contact .subhero__plane {
    clip-path: polygon(calc(560 * var(--u)) 0, 100% 0, 100% 100%, calc(250 * var(--u)) 100%);
  }

  .subhero--contact .subhero__plane::before {
    top: calc(250 * var(--u));
    left: calc(560 * var(--u));
    width: max(2px, calc(4 * var(--u)));
    height: calc(300 * var(--u));
  }
}

/* ---------- section head ---------- */

.section-head {
  display: grid;
  gap: 16px;
}

.section-head .section-lead {
  margin-top: 6px;
}

@media (min-width: 1024px) {
  .section-head--split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: end;
    column-gap: 6vw;
  }

  .section-head--split > :not(.section-lead) { grid-column: 1; }

  .section-head--split .section-lead { grid-column: 2; grid-row: 1 / span 2; }

  .section-title { font-size: clamp(34px, 2.9vw, 56px); }

  .section-lead { font-size: clamp(15px, 1.05vw, 19px); }

  .text-link { font-size: clamp(15px, 1.05vw, 20px); }

  .eyebrow { font-size: clamp(11px, .78vw, 15px); }
}

/* ---------- CTA band at the end of lower pages ---------- */

.page-cta {
  --focus: var(--color-white);
  position: relative;
  overflow: hidden;
  background: var(--color-navy-deep);
  color: var(--color-white);
}

.page-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  justify-items: start;
  padding-block: clamp(72px, 8vw, 150px);
}

.page-cta__title {
  font-size: clamp(27px, 3.1vw, 58px);
  line-height: 1.45;
  letter-spacing: .03em;
}

.page-cta__body {
  font-size: clamp(14px, 1.05vw, 19px);
  font-weight: 600;
  line-height: 2;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .88);
}

.page-cta__button {
  min-width: min(100%, 320px);
  min-height: 64px;
  margin-top: 12px;
  justify-content: space-between;
  font-size: 15px;
}

/* A flat red plane slanted like the TOP SERVICE panels. */
.page-cta__plane {
  position: absolute;
  top: 0;
  right: -14%;
  bottom: 0;
  width: 42%;
  /* Red plane painted with the supplied brush art (its red strokes over a red ground). */
  background: url("../art/brush-strokes-1200.webp") 90% 12% / auto 120% no-repeat, var(--color-brand-dark);
  clip-path: polygon(38% 0, 100% 0, 62% 100%, 0 100%);
}

@media (max-width: 767px) {
  .page-cta__plane { top: auto; right: -34%; width: 72%; height: 44%; opacity: .85; }
}

@media (min-width: 1024px) {
  .page-cta__inner {
    grid-template-columns: minmax(0, 1fr) 36%;
    align-items: end;
    column-gap: 6vw;
  }

  .page-cta__inner > .eyebrow,
  .page-cta__title,
  .page-cta__body { grid-column: 1; }

  .page-cta__button { grid-column: 1; justify-self: start; margin-top: 28px; }
}

/* ---------- numbered editorial rows ---------- */

.row-list {
  border-top: 1px solid var(--color-line);
}

.row-list > li {
  border-bottom: 1px solid var(--color-line);
}

/* ---------- media wrapper used by the image reveal ---------- */

.media {
  position: relative;
  overflow: hidden;
  background: #e8ecef;
}

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

/* ---------- works card (TOP, archive and related lists) ---------- */

.works-card__link {
  display: block;
  color: var(--color-ink);
}

.works-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 285 / 199;
  background: #e8ecef;
}

.works-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works-card__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .1em;
}

.works-card__meta {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--color-muted);
}

.works-card__arrow {
  opacity: 0;
  transform: translateX(-6px);
}

/* ---------- people card (TOP, about, recruit) ---------- */

.people-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 280 / 204;
  background: #e3e8ec;
}

.people-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

.people-card__role {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--color-ink);
}

.people-card__text {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .08em;
  color: #4e5e70;
}

/* ---------- sitemap-style link list (sitemap, 404) ---------- */

.sitemap-list {
  border-top: 1px solid var(--color-ink);
}

.sitemap-list__item {
  border-bottom: 1px solid var(--color-line);
}

.sitemap-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 18px 4px;
  font-size: clamp(16px, 1.3vw, 22px);
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--color-hero-ink);
}

.sitemap-list__children {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  padding: 0 4px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
}

.sitemap-list__children a {
  display: inline-block;
  padding: 8px 0;
  text-decoration: underline 1px transparent;
  text-underline-offset: .3em;
  transition: text-decoration-color .3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .sitemap-list__children a:hover { text-decoration-color: currentColor; }
  .sitemap-list__link:hover span { text-decoration: underline 1px; text-underline-offset: .3em; }
}

/* ---------- prose (news, privacy and other editor content) ---------- */

.prose {
  font-size: 16px;
  line-height: 2.05;
  letter-spacing: .06em;
}

.prose > * + * { margin-top: 1.5em; }

.prose h2 {
  margin-top: 3em;
  padding-bottom: .6em;
  border-bottom: 1px solid var(--color-line);
  font-size: clamp(21px, 1.6vw, 28px);
  line-height: 1.6;
  color: var(--color-hero-ink);
}

.prose h3 {
  margin-top: 2.4em;
  font-size: clamp(18px, 1.25vw, 22px);
  line-height: 1.6;
  color: var(--color-hero-ink);
}

.prose h4 {
  margin-top: 2em;
  font-size: 17px;
  color: var(--color-hero-ink);
}

.prose :is(h2, h3, h4) + * { margin-top: 1em; }

.prose a {
  color: var(--color-brand-text);
  text-decoration: underline 1px;
  text-underline-offset: .25em;
}

.prose ul,
.prose ol {
  padding-left: 1.6em;
}

.prose ul { list-style: disc; }

.prose ol { list-style: decimal; }

.prose li + li { margin-top: .5em; }

.prose table {
  width: 100%;
  font-size: 14px;
  line-height: 1.8;
}

.prose :is(th, td) {
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--color-ground);
  font-weight: 600;
  white-space: nowrap;
}

.prose figure.wp-block-table {
  overflow-x: auto;
}

.prose img {
  height: auto;
}

/* ---------- definition table (company overview, works facts) ---------- */

.data-list {
  border-top: 1px solid var(--color-ink);
}

.data-list__row {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-line);
}

.data-list dt {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--color-muted);
}

.data-list dd {
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .06em;
  white-space: pre-line;
}

@media (min-width: 768px) {
  .data-list__row {
    grid-template-columns: 11em minmax(0, 1fr);
    gap: 24px;
    padding: 26px 0;
  }

  .data-list dt { padding-top: .2em; }
}

/* ---------- pagination ---------- */

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
}

.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--color-line);
}

.pagination .page-numbers.current {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-white);
}

.pagination .page-numbers.dots {
  border-color: transparent;
}

/* ---------- forms ---------- */

.form {
  display: grid;
  gap: 30px;
}

.form-field {
  display: grid;
  gap: 10px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--color-ink);
}

.form-badge {
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  background: var(--color-brand-dark);
  color: var(--color-white);
}

.form-badge--optional {
  background: transparent;
  outline: 1px solid var(--color-outline);
  color: var(--color-muted);
}

.form-control {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid #9aa4ad;
  border-radius: 0;
  background: var(--color-white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--color-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}

textarea.form-control {
  min-height: 220px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  padding-right: 48px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-ink) 50%),
    linear-gradient(135deg, var(--color-ink) 50%, transparent 50%);
  background-position: calc(100% - 24px) 50%, calc(100% - 18px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.form-control:focus {
  border-color: var(--color-ink);
  outline: 2px solid var(--color-ink);
  outline-offset: 0;
}

.form-control[aria-invalid="true"] {
  border-color: var(--color-required);
  background-color: #fffaf6;
}

.form-help {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-muted);
}

.form-error {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-required);
}

.form-error::before {
  content: "! ";
  font-weight: 700;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
}

.form-check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--color-brand-dark);
}

.form-check a {
  text-decoration: underline 1px;
  text-underline-offset: .25em;
}

.form-summary {
  padding: 20px 24px;
  border-left: 4px solid var(--color-required);
  background: #fff4ec;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.8;
  color: #5e2408;
}

.form-summary:focus {
  outline: 2px solid var(--color-required);
  outline-offset: 2px;
}

.form-summary ul {
  margin-top: 8px;
  padding-left: 1.2em;
  list-style: disc;
}

.form-summary a {
  text-decoration: underline 1px;
}

.form-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  justify-self: start;
  min-width: min(100%, 320px);
  min-height: 64px;
  justify-content: space-between;
  font-size: 16px;
}

/* ---------- empty / notice states ---------- */

.notice-box {
  padding: clamp(28px, 3vw, 48px);
  border: 1px solid var(--color-line);
  background: var(--color-white);
}

.notice-box > * + * {
  margin-top: 14px;
}

/* ---------- RECRUIT visual CTA (UI redesign §4) ---------- */

.recruit-cta-block {
  padding-block: var(--space-block);
}

.recruit-cta {
  --focus: var(--color-white);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(28px, 3vw, 56px);
  min-height: clamp(380px, 34vw, 600px);
  padding: clamp(28px, 3.6vw, 64px) clamp(24px, 4.6vw, 88px);
  overflow: hidden;
  background: var(--color-navy-deep);
  color: var(--color-white);
}

/* The supplied red × blue brush art with its white paper removed, so the strokes sit on navy. */
.recruit-cta__brush {
  position: absolute;
  inset: -16px;
  z-index: -1;
  background: url("../art/brush-strokes-1200.webp") center / cover no-repeat;
}

.recruit-cta__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--font-en);
  font-size: clamp(11px, .8vw, 15px);
  font-weight: 600;
  letter-spacing: .32em;
}

.recruit-cta__num {
  font-family: var(--font-serif);
  font-size: clamp(30px, 2.8vw, 54px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.recruit-cta__copy {
  align-self: center;
  padding-left: clamp(0px, 16%, 320px);
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.2vw, 82px);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: .04em;
}

.recruit-cta__action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 2.4em;
  padding-bottom: 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
}

.recruit-cta__action::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
}

.recruit-cta__action .arrow { width: 22px; }

/* ---------- custom cursor (UI redesign §7–13; assets/js/animations/cursor.js) ---------- */

.cursor,
.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9990;
  pointer-events: none;
}

.cursor {
  opacity: 0;
  transition: opacity var(--dur-micro) ease;
}

.cursor.is-visible { opacity: 1; }

.cursor.is-visible.is-native { opacity: 0; }

.cursor__ring,
.cursor__dot {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.cursor__circle {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(7, 28, 44, .72);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width var(--dur-normal) var(--ease-out),
    height var(--dur-normal) var(--ease-out),
    background-color var(--dur-normal) var(--ease-out),
    border-color var(--dur-normal) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

.cursor__dot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-brand);
  transform: translate(-50%, -50%);
  transition: opacity var(--dur-micro) ease, transform var(--dur-micro) var(--ease-out);
}

.cursor__label {
  padding-left: .24em;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .24em;
  color: var(--color-white);
  opacity: 0;
  transition: opacity var(--dur-micro) ease;
}

.cursor.is-link .cursor__circle {
  width: 50px;
  height: 50px;
  border-color: var(--color-brand);
}

.cursor.is-link .cursor__dot::before,
.cursor.is-view .cursor__dot::before {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.2);
}

.cursor.is-view .cursor__circle {
  width: 72px;
  height: 72px;
  border-color: transparent;
  background: rgba(7, 28, 44, .9);
}

.cursor.is-view .cursor__label { opacity: 1; }

.cursor.is-dark .cursor__circle { border-color: rgba(255, 255, 255, .86); }

.cursor.is-dark.is-view .cursor__circle { background: rgba(255, 255, 255, .92); }

.cursor.is-dark .cursor__label { color: var(--color-navy-deep); }

.cursor.is-down .cursor__circle { transform: translate(-50%, -50%) scale(.86); }

.cursor-trail__dab {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--dab-len, 30px);
  height: 7px;
  margin: -3.5px 0 0 calc(var(--dab-len, 30px) * -1);
  background: var(--color-brand);
  opacity: 0;
  transform-origin: 100% 50%;
  -webkit-mask: var(--mask-brush-line) center / 100% 100% no-repeat;
  mask: var(--mask-brush-line) center / 100% 100% no-repeat;
}

.cursor-trail__dab[data-color="blue"] { background: var(--color-brush-blue); }

/* The native cursor is hidden only once the custom one is running (JS adds .has-cursor). */
html.has-cursor,
html.has-cursor * {
  cursor: none;
}

html.has-cursor :is(input, textarea, select, [contenteditable="true"], .prose, [data-cursor="native"]),
html.has-cursor :is(.prose, [data-cursor="native"]) * {
  cursor: auto;
}

html.has-cursor :is(input[type="checkbox"], input[type="radio"], select, .prose a) {
  cursor: pointer;
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor,
  .cursor-trail { display: none; }

  html.has-cursor,
  html.has-cursor * { cursor: auto; }
}

/* ---------- solutions list (RCMP / CCMP / マクロスまっぷ; template-parts/proposal/solution-list.php) ----------
   Used on /service/, the service pages, /proposal/ and in SELECT SOLUTION. The proposal link paints
   the brand brush on hover like the primary CTA. */

.arrow--back { transform: rotate(180deg); }

button.text-link { cursor: pointer; }

.solution-list {
  border-top: 1px solid var(--color-ink);
}

:is(.service-solutions, .sd-solutions, .pd-others, .pi-list) .solution-list { margin-top: clamp(32px, 3vw, 56px); }

.solution-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 6px;
  padding: 26px 0;
  border-bottom: 1px solid var(--color-line);
}

.solution-item__num {
  grid-row: span 4;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.2;
  color: var(--color-brand-text);
}

.solution-item__cat {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--color-muted);
}

.solution-item__cat span:first-child {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: .22em;
}

.solution-item__name { display: grid; gap: 6px; }

.solution-item__en {
  position: relative;
  justify-self: start;
  font-family: var(--font-en);
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--color-hero-ink);
}

/* A thin brand brush runs under the name on hover. */
.solution-item__en::after {
  content: "";
  position: absolute;
  right: -.1em;
  bottom: -.18em;
  left: -.04em;
  height: .16em;
  background: var(--color-brand);
  -webkit-mask: var(--mask-brush-line) center / 100% 100% no-repeat;
  mask: var(--mask-brush-line) center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--dur-normal) var(--ease-out);
}

.solution-item__ja {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--color-muted);
}

.solution-item__copy {
  grid-column: 2;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .04em;
}

.solution-item__links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 6px;
}

.solution-item__link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding-right: 4px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--color-hero-ink);
  transition: color var(--dur-normal) var(--ease-out);
}

.solution-item__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: currentColor;
  opacity: .3;
}

.solution-item__link--proposal::before {
  content: "";
  position: absolute;
  inset: 4px -12px 2px -14px;
  z-index: -1;
  background: var(--color-brand-dark);
  -webkit-mask: var(--mask-brush-fill) center / 100% 100% no-repeat;
  mask: var(--mask-brush-fill) center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--dur-normal) var(--ease-out);
}

.solution-item.is-current .solution-item__num::after {
  content: "NOW";
  display: block;
  margin-top: 8px;
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
}

@media (hover: hover) {
  .solution-item:hover .solution-item__en::after { clip-path: inset(0 0 0 0); }
  .solution-item__link--proposal:hover { color: var(--color-white); }
  .solution-item__link--proposal:hover::before { clip-path: inset(0 0 0 0); }
  .solution-item__link--proposal:hover .arrow--ne { transform: translate(5px, -5px) rotate(-45deg); }
  .solution-item__link--proposal:hover::after { opacity: 0; }
}

.solution-item__link--proposal:focus-visible { color: var(--color-white); }
.solution-item__link--proposal:focus-visible::before { clip-path: inset(0 0 0 0); }

/* on navy (SELECT SOLUTION) */
.solution-list--switcher { border-top-color: rgba(255, 255, 255, .22); }
.solution-list--switcher .solution-item { border-bottom-color: rgba(255, 255, 255, .16); }
.solution-list--switcher :is(.solution-item__en, .solution-item__copy, .solution-item__link) { color: var(--color-white); }
.solution-list--switcher .solution-item__num { color: var(--color-brand); }
.solution-list--switcher :is(.solution-item__cat, .solution-item__ja) { color: rgba(255, 255, 255, .66); }

@media (min-width: 1024px) {
  .solution-item {
    grid-template-columns: 5em minmax(0, 5fr) minmax(0, 5fr) auto;
    column-gap: 3vw;
    align-items: center;
    padding: clamp(28px, 2.6vw, 48px) 0;
  }

  .solution-item__num { grid-row: 1 / span 2; align-self: start; font-size: clamp(20px, 1.6vw, 30px); }
  .solution-item__cat { grid-column: 2; grid-row: 1; }
  .solution-item__name { grid-column: 2; grid-row: 2; }
  .solution-item__copy { grid-column: 3; grid-row: 1 / span 2; font-size: clamp(17px, 1.35vw, 24px); }
  .solution-item__links { grid-column: 4; grid-row: 1 / span 2; flex-direction: column; align-items: flex-start; margin: 0; }
  .solution-item__en { font-size: clamp(40px, 3.8vw, 72px); }
  .solution-list--compact .solution-item__en { font-size: clamp(30px, 2.6vw, 48px); }
  .solution-list--switcher .solution-item__en { font-size: clamp(44px, 5vw, 96px); }
}

@media (prefers-reduced-motion: reduce) {
  .solution-item__link--proposal .arrow--ne { transform: rotate(-45deg) !important; }
}
