/* =========================================================================
   Bestone theme - main stylesheet
   Table of contents
   1.  Design tokens / reset
   2.  Layout (container / section)
   3.  Components (buttons / links / headings)
   4.  Header / navigation
   5.  Hero (home)
   6.  Core business
   7.  Cards / case studies
   8.  Company teaser
   9.  CTA band
   10. Inner pages (page hero / breadcrumb / content)
   11. Detail pages
   12. Company page
   13. Contact page / CF7 form
   14. 404
   15. Lists / archives
   16. Footer
   17. Animations / responsive
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design tokens
   ---------------------------------------------------------------------- */
:root {
  --c-ink: #0b1220;
  --c-ink-2: #121b33;
  --c-ink-3: #1b2748;
  --c-blue: #2e32ea;
  --c-blue-dark: #2326c4;
  --c-blue-soft: #ececfe;
  --c-aqua: #12d0be;
  --c-orange: #ff8a3c;
  --c-text: #1a2233;
  --c-muted: #5f6b85;
  --c-line: #e4e9f2;
  --c-bg: #ffffff;
  --c-bg-soft: #f5f8fd;
  --c-bg-deep: #0b1220;

  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-en: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(11, 18, 32, 0.06);
  --shadow: 0 16px 40px -18px rgba(11, 18, 32, 0.28);
  --shadow-lg: 0 30px 70px -30px rgba(11, 18, 32, 0.4);

  --header-h: 82px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* -------------------------------------------------------------------------
   2. Layout
   ---------------------------------------------------------------------- */
/* Keep the closed drawer (fixed + translateX) from creating horizontal scroll.
   Clipping on html would also stop vertical scrolling, so only body is hidden
   (body's value propagates to the viewport, clipping the horizontal axis only). */
body {
  overflow-x: hidden;
}

.container {
  width: min(1220px, 100% - 56px);
  margin-inline: auto;
}

.container--narrow {
  width: min(900px, 100% - 56px);
}

.section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.section--tight {
  padding: clamp(48px, 6vw, 80px) 0;
}

/* Company page: tighten the vertical padding of the section below the hero */
.page-company .section--tight {
  padding: 0;
}

/* Careers page: reduce the vertical padding to 10px */
.page-careers .section--tight {
  padding: 10px 0;
}

.section--soft {
  background: var(--c-bg-soft);
}

.section--dark {
  background: var(--c-ink);
  color: #fff;
}

.section--dark .section-head__title,
.section--dark .section-head__lead {
  color: #fff;
}

.section--dark .section-head__lead {
  color: rgba(255, 255, 255, 0.7);
}

/* -------------------------------------------------------------------------
   3. Components
   ---------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--c-blue);
  --btn-fg: #fff;
  --btn-border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(46, 50, 234, 0.6);
}

.btn:focus-visible {
  outline: 2px solid var(--c-aqua);
  outline-offset: 3px;
}

.btn__arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--primary {
  --btn-bg: var(--c-blue);
  background: linear-gradient(120deg, #3d40f5 0%, var(--c-blue) 55%, #1f21b6 100%);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-ink);
  --btn-border: rgba(11, 18, 32, 0.18);
  background: transparent;
}

.btn--ghost:hover {
  --btn-fg: var(--c-blue);
  --btn-border: var(--c-blue);
  box-shadow: none;
}

.btn--white {
  --btn-bg: #fff;
  --btn-fg: var(--c-ink);
  background: #fff;
}

.btn--white:hover {
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.55);
}

.btn--outline-white {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, 0.4);
  background: transparent;
}

.btn--outline-white:hover {
  --btn-border: #fff;
  --btn-bg: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.btn--block {
  display: flex;
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-blue);
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}

.link-arrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: width 0.25s var(--ease);
}

.link-arrow:hover {
  gap: 12px;
}

.link-arrow:hover::after {
  width: 30px;
}

.link-arrow--sm {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.link-arrow--light {
  color: var(--c-aqua);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.section-head__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-blue);
}

.section--dark .section-head__eyebrow {
  color: var(--c-aqua);
}

.section-head__title {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.section-head__lead {
  margin: 16px 0 0;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.9;
}

/* -------------------------------------------------------------------------
   4. Header
   ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(11, 18, 32, 0.06);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -22px rgba(11, 18, 32, 0.6);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-brand__logo {
  width: auto;
  height: 40px;
}

.site-nav {
  margin-left: auto;
}

.site-nav__list,
.menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list li,
.menu__item {
  position: relative;
}

.site-nav__list a,
.menu__item a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-nav__list a:hover,
.menu__item a:hover {
  color: var(--c-blue);
  background: var(--c-blue-soft);
}

.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a,
.site-nav__list .current-menu-parent > a,
.menu__item.is-current > a {
  color: var(--c-blue);
}

.site-nav__list .current-menu-item > a::after,
.site-nav__list .current_page_item > a::after {
  opacity: 1;
}

.site-nav__foot {
  display: none;
}

/* ---- Parent -> child dropdown ---- */
.menu-item-has-children > a {
  position: relative;
  padding-right: 28px;
}

.menu-item-has-children > a::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}

/* Fill the gap between the parent link and the dropdown with a transparent
   bridge, so hovering across the gap does not drop the hover and close the menu. */
.menu-item-has-children::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

.menu-item-has-children .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 50;
  min-width: 210px;
  margin: 0;
  padding: 8px;
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 40, 80, 0.18);
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  display: flex;
}

.menu-item-has-children .sub-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
}

.menu-item-has-children .sub-menu a:hover,
.menu-item-has-children .sub-menu a:focus-visible {
  color: var(--c-blue);
  background: var(--c-blue-soft);
}

/* Language switch (JP / EN, stored in a cookie) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  margin-left: 6px;
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang-switch__link {
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.lang-switch__link:hover {
  color: var(--c-blue);
}

.lang-switch__link.is-active {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lang-switch__sep {
  color: var(--c-line);
}

.lang-switch--drawer {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  font-size: 13px;
}

.site-header__cta {
  flex: 0 0 auto;
  padding: 11px 20px;
  font-size: 13px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  position: relative;
  margin-left: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--c-ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 18, 32, 0.45);
  backdrop-filter: blur(2px);
}

/* -------------------------------------------------------------------------
   5. Hero
   ---------------------------------------------------------------------- */
/* Heading kept off-screen; exists only for screen readers and SEO */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #f3f5f9;
  color: var(--c-ink);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 60% 30%, #000 0%, transparent 72%);
}

.hero__glow {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 208, 190, 0.22), transparent 62%);
  filter: blur(10px);
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__copy {
  max-width: 840px;
}

.hero__eyebrow {
  margin: 0 0 20px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-aqua);
}

.hero__title {
  margin: 0;
  font-size: clamp(32px, 5.2vw, 60px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.hero__title-accent {
  background: linear-gradient(100deg, var(--c-aqua) 0%, #7ef7ea 40%, #6f74ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  max-width: 700px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15.5px;
  line-height: 2;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero .btn--ghost {
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.hero .btn--ghost:hover {
  --btn-fg: #fff;
  --btn-border: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  margin: 48px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
}

.hero__stats-value {
  display: block;
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}

.hero__stats-unit {
  margin-left: 4px;
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.hero__stats-label {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}

.hero__visual {
  position: relative;
  z-index: 2;
  margin-top: 0;
}

/* -------------------------------------------------------------------------
   5. Hero slider (left: image / right: title + body text)
   ---------------------------------------------------------------------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #f3f5f9;
  padding: 8px 0 44px;
}

.hero-slider--single {
  padding-bottom: 36px;
}

/* Horizontal track (one slide = 100% width). Switching slides via transform
   (same motion as the original site's Swiper; during a drag the next slide
   comes into view). */
.hero-slider__track {
  display: flex;
  align-items: stretch;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 0.7, 0.28, 1);
  will-change: transform;
  touch-action: pan-y;
  cursor: -webkit-grab;
  cursor: grab;
}

.hero-slider.is-dragging .hero-slider__track {
  cursor: -webkit-grabbing;
  cursor: grabbing;
  transition: none;
}

/* Suppress native image drag / text selection so swiping is not blocked */
.hero-slider__track img,
.hero-slider__track a {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.hero-slider__track > * {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
}

.hero-slider__slide {
  margin: 0;
}

/* The whole slide is a link area (clicks on the body and padding navigate too) */
.hero-slider__slide[data-href] {
  cursor: pointer;
}

/* Inactive slides must not react to link clicks (visible but not interactive) */
.hero-slider__slide:not(.is-active) {
  pointer-events: none;
}

.hero-slider--single .hero-slider__slide {
  pointer-events: auto;
}

.hero-slider__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3.6vw, 60px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 32px 0;
}

.hero-slider__media {
  overflow: hidden;
  background: #e7ebf3;
}

.hero-slider__media a,
.hero-slider__media span {
  display: block;
  cursor: pointer;
}

.hero-slider__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}

.hero-slider__media a:hover img {
  transform: scale(1.03);
}

.hero-slider__content {
  min-width: 0;
}

.hero-slider__title {
  margin: 0 0 14px;
  font-size: clamp(26px, 2.9vw, 42px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: #131c2b;
  word-break: auto-phrase;
}

.hero-slider__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.hero-slider__title a:hover {
  color: var(--c-primary);
}

.hero-slider__text {
  max-width: 46em;
  color: #3f4a5c;
  font-size: 16px;
  line-height: 1.95;
}

.hero-slider__text p {
  margin: 0 0 1.1em;
}

.hero-slider__text p:last-child {
  margin-bottom: 0;
}

.hero-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(19, 28, 43, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #131c2b;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 2px 10px rgba(19, 28, 43, 0.06);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.hero-slider__nav:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

.hero-slider__nav--prev {
  left: 16px;
}

.hero-slider__nav--next {
  right: 16px;
}

.hero-slider__dots {
  position: absolute;
  right: 32px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-slider__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(19, 28, 43, 0.35);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero-slider__dot.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  transform: scale(1.25);
}

/* -------------------------------------------------------------------------
   6. Core business
   ---------------------------------------------------------------------- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.biz-card {
  position: relative;
  padding: 34px 28px 32px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.biz-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-aqua));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.biz-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.biz-card:hover::before {
  transform: scaleX(1);
}

.biz-card__num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(11, 18, 32, 0.28);
}

.biz-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(140deg, #eff0ff, #e3fbf8);
  color: var(--c-blue);
}

.biz-card__title {
  margin: 22px 0 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.biz-card__text {
  margin: 0;
  color: var(--c-muted);
  font-size: 13.5px;
  line-height: 1.9;
}

/* -------------------------------------------------------------------------
   7. Cards / case studies
   ---------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 24px;
}

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

.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 50, 234, 0.25);
  box-shadow: var(--shadow);
}

.section--dark .card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
}

.section--dark .card:hover {
  border-color: rgba(18, 208, 190, 0.45);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9);
}

.card__media {
  display: block;
  overflow: hidden;
  background: var(--c-bg-soft);
  aspect-ratio: 4 / 3;
}

.card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.04);
}

/* Logo / artwork cards (products etc.) show the full image instead of cropping */
.card--logo .card__media {
  background: #fff;
  border-bottom: 1px solid rgba(11, 18, 32, 0.06);
}

.card--logo .card__media img {
  object-fit: contain;
  padding: 22px;
}

.card--logo:hover .card__media img {
  transform: scale(1.02);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 26px;
  flex: 1;
}

.card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.card__title a {
  transition: color 0.2s var(--ease);
}

.card__title a:hover {
  color: var(--c-blue);
}

.section--dark .card__title a:hover {
  color: var(--c-aqua);
}

.card__text {
  margin: 0;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.85;
}

.section--dark .card__text {
  color: rgba(255, 255, 255, 0.66);
}

.card__body .link-arrow {
  margin-top: auto;
  padding-top: 6px;
}

.card-grid--list .card__media {
  aspect-ratio: 16 / 10;
}

.card--wide .card__body {
  padding: 26px 26px 28px;
}

/* Product list: grouped by category */
.product-group + .product-group {
  margin-top: clamp(40px, 5vw, 64px);
}

.product-group__head {
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
}

.product-group__title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-ink);
}

.product-group .card-grid--3 {
  margin-top: 0;
}

@media (max-width: 1080px) {
  .product-group .card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .product-group .card-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Case studies */
/* Case list (/cases/): row layout matching the news list on /news/ — thumbnail
   on the left, hairline separators, title and two-line excerpt on the right. */
.case-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.case-list__item:first-child {
  border-top: 1px solid var(--c-line);
}

.case-list__link {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 30px 4px;
  color: var(--c-text);
  text-decoration: none;
}

.case-list__thumb {
  flex: 0 0 286px;
  width: 286px;
  aspect-ratio: 3 / 2;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}

.case-list__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-list__body {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2px;
}

.case-list__date {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-en);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--c-blue);
}

.case-list__title {
  display: block;
  margin-bottom: 8px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-blue);
  overflow-wrap: anywhere;
  transition: opacity 0.25s var(--ease);
}

.case-list__excerpt {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--c-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-list__link:hover .case-list__title {
  opacity: 0.72;
}

@media (max-width: 720px) {
  .case-list__link {
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 2px;
  }

  .case-list__thumb {
    flex-basis: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 3px;
  }

  .case-list__body {
    padding-top: 0;
  }

  .case-list__date {
    margin-bottom: 6px;
  }

  .case-list__title {
    font-size: 15px;
  }

  .case-list__excerpt {
    font-size: 12.5px;
    -webkit-line-clamp: 2;
  }
}

.case-card {
  position: relative;
}

.case-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background: var(--c-ink);
}

.case-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.case-card:hover .case-card__media img {
  transform: scale(1.04);
}

.case-card__badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(7, 12, 27, 0.72);
  color: var(--c-aqua);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  backdrop-filter: blur(4px);
}

.case-card__body {
  padding: 20px 2px 0;
}

.case-card__title {
  margin: 16px 0 10px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.6;
}

.case-card__title a {
  transition: color 0.2s var(--ease);
}

.case-card__title a:hover {
  color: var(--c-blue);
}

.case-card__text {
  margin: 0;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.85;
}

/* -------------------------------------------------------------------------
   8. Company teaser
   ---------------------------------------------------------------------- */
.about-teaser {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.about-teaser__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.about-teaser__badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(7, 12, 27, 0.82);
  color: #fff;
  backdrop-filter: blur(6px);
  line-height: 1.2;
}

.about-teaser__badge span {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-aqua);
}

.about-teaser__badge strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 600;
}

.about-teaser__title {
  margin: 0 0 20px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.45;
}

.about-teaser__text {
  margin: 0 0 24px;
  color: var(--c-muted);
  font-size: 14.5px;
  line-height: 2;
}

.about-teaser__points {
  display: grid;
  gap: 14px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.about-teaser__points li {
  padding-left: 18px;
  border-left: 3px solid var(--c-aqua);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--c-muted);
}

.about-teaser__points strong {
  display: block;
  color: var(--c-text);
  font-size: 14px;
}

/* -------------------------------------------------------------------------
   9. CTA band
   ---------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 88px) 0;
  background:
    radial-gradient(800px 420px at 85% 20%, rgba(18, 208, 190, 0.22), transparent 62%),
    linear-gradient(120deg, #121ac9 0%, #2e32ea 55%, #4c3bf0 100%);
  color: #fff;
}

.cta-band__pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000 100%);
}

.cta-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-band__eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: rgba(255, 255, 255, 0.7);
}

.cta-band__title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.45;
}

.cta-band__lead {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.9;
}

.cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 240px;
}

.cta-band__actions .btn {
  width: 100%;
}

/* -------------------------------------------------------------------------
   10. Shared inner-page styles
   ---------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: clamp(18px, 2.25vw, 29px) 0 clamp(13px, 1.5vw, 17px);
  background:
    radial-gradient(720px 320px at 88% 0%, rgba(46, 50, 234, 0.35), transparent 68%),
    linear-gradient(160deg, #070c1b 0%, #0b1220 60%, #111c3a 100%);
  color: #fff;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 70% 20%, #000, transparent 70%);
}

.page-hero__inner {
  position: relative;
  z-index: 2;
}

.page-hero__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-aqua);
}

.page-hero__title {
  margin: 0 0 22px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.4;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb li + li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  transform: rotate(45deg) translateY(-1px);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb li[aria-current] {
  color: rgba(255, 255, 255, 0.9);
}

/* Article body typography */
.entry-content {
  font-size: 15px;
  line-height: 2.05;
  color: #2a3446;
  overflow-wrap: break-word;
}

.entry-content > * + * {
  margin-top: 1.25em;
}

.entry-content p {
  margin: 0 0 1.4em;
}

.entry-content h2 {
  margin: 2.2em 0 0.8em;
  padding-left: 16px;
  border-left: 4px solid var(--c-blue);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.5;
}

.entry-content h3 {
  margin: 1.8em 0 0.6em;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.6;
}

.entry-content h4 {
  margin: 1.4em 0 0.5em;
  font-size: 16px;
  font-weight: 700;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}

.entry-content li {
  margin-bottom: 0.6em;
}

.entry-content li::marker {
  color: var(--c-blue);
}

.entry-content a {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: var(--c-blue-dark);
}

.entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.entry-content strong {
  font-weight: 700;
  color: var(--c-ink);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.entry-content th,
.entry-content td {
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  text-align: left;
}

.entry-content th {
  background: var(--c-bg-soft);
  font-weight: 700;
}

.entry-content--intro {
  max-width: 780px;
  margin: 0 auto;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.9;
  text-align: center;
}

/* Cases (/cases/): the intro line reads as a section heading — left aligned and
   using the same size / weight / hairline as .product-group__title on /products/ */
.entry-content--heading {
  max-width: none;
  margin: 0;
  color: var(--c-ink);
  text-align: left;
}

.entry-content--heading > p {
  margin: 0;
  color: var(--c-ink);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.5;
}

/* Cases (/cases/): keep the intro heading close to the case list below it. */
.page-cases__intro {
  padding-bottom: 10px;
}

/* Careers (/careers/): align the body headings and tables with the shared
   .entry-content styles of the company page (/profile/). The label column th
   gets a white background and left alignment, overriding the generic th's
   soft background and centred text. */
.page-careers .entry-content th {
  background: #fff;
  text-align: left;
  white-space: normal;
}

.page-careers .entry-content td p {
  margin: 0;
}

/* -------------------------------------------------------------------------
   11. Detail pages
   ---------------------------------------------------------------------- */
.page-detail {
  padding: clamp(48px, 6vw, 80px) 0;
}

.page-detail__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.page-detail__thumb {
  margin: 0 0 36px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-bg-soft);
}

.page-detail__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.page-detail__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 20px;
}

.cta-card {
  padding: 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(400px 220px at 100% 0%, rgba(18, 208, 190, 0.22), transparent 60%),
    linear-gradient(150deg, #0d1531, #1a2350);
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-card__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--c-aqua);
}

.cta-card__title {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.cta-card__text {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.85;
}

.cta-card .btn--primary {
  margin-bottom: 14px;
}

.cta-card__mail {
  display: block;
  text-align: center;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-card__mail:hover {
  color: #fff;
}

.aside-related {
  padding: 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
}

.aside-related__title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-muted);
}

.aside-related__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aside-related__list li + li {
  border-top: 1px solid var(--c-line);
}

.aside-related__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--c-text);
  transition: color 0.2s var(--ease);
}

.aside-related__list a:hover {
  color: var(--c-blue);
}

.aside-related__list svg {
  flex: 0 0 auto;
  color: var(--c-muted);
}

/* -------------------------------------------------------------------------
   12. Company page
   ---------------------------------------------------------------------- */
.profile-table {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: #fff;
}

.profile-table dl {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  margin: 0;
}

.profile-table dt,
.profile-table dd {
  margin: 0;
  padding: 20px 26px;
  border-top: 1px solid var(--c-line);
  font-size: 14px;
  line-height: 1.8;
}

.profile-table dt {
  background: var(--c-bg-soft);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-ink);
}

.profile-table dd {
  color: #2a3446;
}

.profile-table dt:first-of-type,
.profile-table dd:first-of-type {
  border-top: 0;
}

.profile-table__sub {
  display: block;
  margin-top: 4px;
  color: var(--c-muted);
  font-family: var(--font-en);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.profile-table a {
  color: var(--c-blue);
}

/* -------------------------------------------------------------------------
   13. Contact
   ---------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.contact-head {
  margin-bottom: 32px;
}

.contact-head__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
}

.contact-head__lead {
  margin: 0;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.95;
}

.contact-layout__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 18px;
}

.contact-info {
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
}

.contact-info__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--c-blue);
}

.contact-info__title {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 700;
}

.contact-info__title--sub {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
  font-size: 15px;
}

.contact-info__list {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

.contact-info__list dt {
  margin: 0;
  color: var(--c-muted);
  font-weight: 600;
}

.contact-info__list dd {
  margin: 0;
  color: var(--c-text);
  overflow-wrap: anywhere;
}

.contact-info__list a {
  color: var(--c-blue);
}

.contact-info__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--c-text);
}

.contact-note {
  padding: 18px 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--c-muted);
  font-size: 12px;
  line-height: 1.8;
}

.contact-note p {
  margin: 0;
}

/* Contact Form 7 */
.entry-content--form {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  line-height: 1.8;
}

.wpcf7-form p,
.wpcf7-form .fm-row {
  margin: 0 0 18px;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-ink);
}

.wpcf7-form .req {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #ffe9e0;
  color: #d9441c;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

.wpcf7-form .opt {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #eef1f7;
  color: var(--c-muted);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  color: var(--c-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.wpcf7-form select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235F6B85' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: var(--c-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46, 50, 234, 0.12);
  outline: none;
}

.wpcf7-form textarea {
  min-height: 170px;
  resize: vertical;
}

.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  accent-color: var(--c-blue);
  vertical-align: middle;
}

.wpcf7-form .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  margin: 0 18px 6px 0;
}

.wpcf7-form .wpcf7-list-item-label {
  font-size: 13.5px;
  font-weight: 400;
}

.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  margin-top: 8px;
  padding: 16px 34px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, #3d40f5, #1f21b6);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.wpcf7-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(46, 50, 234, 0.7);
}

.wpcf7-form .wpcf7-submit:disabled {
  background: #e2e6f1;
  color: #8791a8;
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Helper hints for conditional fields / consent checkbox (generated by contact-ui.js) */
.contact-type-hint,
.fm-consent-note {
  margin: 10px 0 0;
  color: var(--c-muted);
  font-size: 12px;
  line-height: 1.7;
}

.fm-consent-note {
  color: #7a5a1e;
}

.wpcf7-form .wpcf7-spinner {
  margin-left: 12px;
}

.wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #d9441c;
  font-size: 12px;
  font-weight: 600;
}

.wpcf7-not-valid {
  border-color: #e5563a !important;
}

.wpcf7 form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-width: 1px;
  border-style: solid;
  font-size: 13px;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: #b7e4d5;
  background: #f1fbf6;
  color: #1c6e52;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border-color: #f3c8bd;
  background: #fff5f2;
  color: #a5341a;
}

.wpcf7 form .wpcf7-response-output:empty {
  display: none;
}

/* Conditional fields (Conditional Fields for CF7) */
.wpcf7cf-group {
  margin-bottom: 4px;
}

/* -------------------------------------------------------------------------
   14. 404
   ---------------------------------------------------------------------- */
.page-404 {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 160px) 0;
  background:
    radial-gradient(700px 400px at 80% 10%, rgba(46, 50, 234, 0.35), transparent 65%),
    linear-gradient(160deg, #070c1b, #101a36);
  color: #fff;
}

.page-404__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 60% 40%, #000, transparent 75%);
}

.page-404__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-404__code {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(72px, 14vw, 140px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  background: linear-gradient(100deg, var(--c-aqua), #6f74ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-404__title {
  margin: 18px 0 14px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
}

.page-404__text {
  margin: 0 auto;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 2;
}

.page-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.page-404 .btn--ghost {
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.page-404__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

.page-404__links a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s var(--ease);
}

.page-404__links a:hover {
  color: #fff;
}

/* -------------------------------------------------------------------------
   15. Lists / archives
   ---------------------------------------------------------------------- */
.post-list {
  display: grid;
  gap: 22px;
}

.post-list__item {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  padding: 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.post-list__item:hover {
  border-color: rgba(46, 50, 234, 0.2);
  box-shadow: var(--shadow-sm);
}

.post-list__thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
}

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

.post-list__date {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}

.post-list__title {
  margin: 8px 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.post-list__title a:hover {
  color: var(--c-blue);
}

.post-list__excerpt {
  margin: 0 0 12px;
  color: var(--c-muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.post-list__item:not(:has(.post-list__thumb)) {
  grid-template-columns: minmax(0, 1fr);
}

.empty-state {
  padding: 64px 24px;
  border: 1px dashed var(--c-line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--c-muted);
}

.empty-state .btn {
  margin-top: 18px;
}

/* News (/news/) list */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.news-filter li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-filter__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  text-decoration: none;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.news-filter__item:hover {
  border-color: rgba(46, 50, 234, 0.35);
  color: var(--c-blue);
}

.news-filter__item.is-active {
  border-color: var(--c-blue);
  background: var(--c-blue);
  color: #fff;
}

.news-filter__count {
  font-family: var(--font-en);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.news-list__item:first-child {
  border-top: 1px solid var(--c-line);
}

.news-list__link {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 30px 4px;
  color: var(--c-text);
  text-decoration: none;
  transition: background 0.25s var(--ease);
}

.news-list__thumb {
  flex: 0 0 220px;
  width: 220px;
  aspect-ratio: 3 / 2;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}

.news-list__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.news-list__body {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2px;
}

.news-list__date {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-en);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--c-blue);
}

.news-list__cat {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c-blue-soft);
  color: var(--c-blue);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.news-list__title {
  display: block;
  margin-bottom: 8px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-blue);
  overflow-wrap: anywhere;
  transition: opacity 0.25s var(--ease);
}

.news-list__excerpt {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--c-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list__link:hover .news-list__title {
  opacity: 0.72;
}

@media (max-width: 720px) {
  .news-list__link {
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 2px;
  }

  .news-list__thumb {
    flex-basis: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 3px;
  }

  .news-list__body {
    padding-top: 0;
  }

  .news-list__date {
    margin-bottom: 6px;
  }

  .news-list__title {
    font-size: 15px;
  }

  .news-list__excerpt {
    font-size: 12.5px;
    -webkit-line-clamp: 2;
  }
}

/* News detail */
.news-detail {
  padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 7vw, 96px);
}

.news-detail__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--c-muted);
}

.news-detail__thumb {
  margin: 0 0 30px;
  border-radius: var(--radius);
  overflow: hidden;
}

.news-detail__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.news-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
}

.news-nav__item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-text);
  text-decoration: none;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.news-nav__item--next {
  text-align: right;
}

.news-nav__item:hover {
  border-color: rgba(46, 50, 234, 0.35);
  color: var(--c-blue);
}

.news-nav__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c-muted);
}

.news-nav__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.news-detail__back {
  margin-top: 30px;
}

@media (max-width: 720px) {
  .news-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-nav__item--next {
    text-align: left;
  }
}

.navigation.pagination {
  margin-top: 44px;
}

.navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 6px;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-text);
  text-decoration: none;
}

.navigation.pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation.pagination ul.page-numbers li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation.pagination .page-numbers.current {
  color: var(--c-blue);
  font-weight: 800;
  cursor: default;
}

.navigation.pagination .page-numbers {
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers:focus {
  border: 0;
  background: none;
  box-shadow: none;
  outline: none;
  color: var(--c-blue);
}

.navigation.pagination .page-numbers.current:hover {
  color: var(--c-blue);
}

/* -------------------------------------------------------------------------
   16. Footer (compact single band, per the footer.html reference)
   ---------------------------------------------------------------------- */
.site-footer {
  background: #222;
  color: #aaa;
  border-top: 1px solid #333;
  padding: 15px;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.site-footer__inner {
  display: block;
}

/* Row 1: logo + company name, office contacts and e-mail (wraps on narrow screens) */
.site-footer__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 15px;
  margin-bottom: 8px;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer__logo {
  flex: 0 0 auto;
  width: 85px;
  height: 20px;
  object-fit: contain;
}

.site-footer__company {
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
}

.site-footer__item {
  display: inline-block;
}

.site-footer__link {
  color: inherit;
  text-decoration: none;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* Row 2: minimal text navigation */
.site-footer__nav {
  margin-bottom: 8px;
  font-size: 11.5px;
  line-height: 1.9;
}

.site-footer__nav a {
  display: inline-block;
  margin: 0 10px;
  color: #bbb;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: #fff;
}

.site-footer__sep {
  color: #666;
}

/* Row 3: copyright */
.site-footer__copyright {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: #666;
}

/* List pages: tighten the spacing between the intro text and the card grid */
.page-list .section--tight + .section--tight {
  padding-top: 0;
}

/* -------------------------------------------------------------------------
   17. Animations / responsive
   ---------------------------------------------------------------------- */
/* Hide them only when JS is enabled, assuming animations (always visible without JS). */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-slider__slide {
    transition: none;
  }
}

@media (max-width: 1080px) {
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .page-detail__inner,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-detail__aside,
  .contact-layout__aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aside-related {
    height: fit-content;
  }
}

@media (max-width: 980px) {
  .site-header__cta {
    display: none;
  }

  /* Hide the header language switch on mobile (use JP | EN inside the drawer) */
  .site-header__inner > .lang-switch {
    display: none;
  }

  /* Note: the header's backdrop-filter creates a containing block for fixed
   children, so the drawer's height collapses to the header's height. Disable it
   on mobile to restore viewport-based positioning. */
  .site-header {
    background: #fff;
    backdrop-filter: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-left: auto;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--c-line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
  }

  /* Full-screen drawer (same structure as the reference site's mobile menu:
   full-screen overlay + centred, large text links + thin dividers) */
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 88px 24px 48px;
    background: #0b1220;
    box-shadow: none;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
    -webkit-overflow-scrolling: touch;
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
  }

  /* The close button is fixed above the overlay (top right) */
  body.nav-open .nav-toggle {
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 1002;
    border-color: rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
  }

  body.nav-open .nav-toggle span {
    background: #fff;
  }

  /* Morph the three bars into an x (the margins offset it, so centre each bar individually) */
  body.nav-open .nav-toggle span:nth-child(1),
  body.nav-open .nav-toggle span:nth-child(3) {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    margin: 0;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  html.nav-open,
  body.nav-open {
    overflow: hidden;
  }

  .site-nav__list,
  .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 420px;
  }

  .site-nav__list li,
  .menu__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .site-nav__list a,
  .menu__item a {
    display: block;
    padding: 21px 8px;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-align: center;
  }

  .site-nav__list a:hover,
  .site-nav__list a:focus-visible {
    background: transparent;
    color: #8fb9ff;
  }

  .site-nav__list .current-menu-item > a,
  .site-nav__list .current_page_item > a,
  .site-nav__list .current-menu-parent > a {
    background: transparent;
    color: #8fb9ff;
  }

  /* Mobile: child menus are collapsible accordions. As on the reference site,
   they open smoothly through a max-height transition rather than display toggling. */
  .menu-item-has-children > a::after {
    right: 12px;
    transform: translateY(-70%) rotate(45deg);
  }

  .menu-item-has-children.is-open > a::after {
    transform: translateY(-30%) rotate(225deg);
  }

  .menu-item-has-children .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    border-radius: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .menu-item-has-children.is-open > .sub-menu {
    max-height: 350px;
  }

  .menu-item-has-children .sub-menu a {
    padding: 15px 40px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    text-align: center;
    border-radius: 0;
    background: transparent;
  }

  .menu-item-has-children .sub-menu a:hover,
  .menu-item-has-children .sub-menu a:focus-visible {
    color: #8fb9ff;
    background: transparent;
  }

  .site-nav__foot {
    display: block;
    width: 100%;
    max-width: 420px;
    margin-top: 32px;
    padding-top: 0;
    border-top: 0;
  }

  .site-nav__foot .btn {
    width: 100%;
    padding: 15px 24px;
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .lang-switch--drawer {
    justify-content: center;
    margin: 22px 0 0;
    padding-top: 0;
    border-top: 0;
    font-size: 13px;
  }

  .lang-switch--drawer .lang-switch__link {
    color: rgba(255, 255, 255, 0.62);
  }

  .lang-switch--drawer .lang-switch__link.is-active {
    color: #fff;
  }

  .lang-switch--drawer .lang-switch__sep {
    color: rgba(255, 255, 255, 0.3);
  }

  /* Full-screen drawer, so no backdrop is used */
  .nav-backdrop {
    display: none;
  }

  .about-teaser {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .site-footer__nav a {
    margin: 0 6px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1220px, 100% - 36px);
  }

  /* Size the hero heading to fit on one line (avoids a lone trailing fragment wrapping) */
  .hero__title {
    font-size: clamp(26px, 7.4vw, 34px);
  }

  /* On mobile, stack the image above the text */
  .hero-slider__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 18px 20px 0;
  }

  .hero-slider__media img {
    aspect-ratio: 16 / 9;
  }

  .hero-slider__title {
    font-size: clamp(22px, 6.6vw, 30px);
    margin-bottom: 10px;
  }

  .hero-slider__text {
    font-size: 14px;
    line-height: 1.85;
  }

  .hero-slider {
    padding-bottom: 34px;
  }

  /* As on the original site, hide the prev/next arrows on mobile (use the dots and image clicks) */
  .hero-slider__nav {
    display: none;
  }

  .hero-slider__dots {
    right: 50%;
    bottom: 8px;
    transform: translateX(50%);
  }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .hero__stats li {
    min-width: 0;
  }

  .hero__stats-value {
    font-size: 24px;
  }

  .card-grid--3,
  .card-grid--4,
  .biz-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-detail__aside,
  .contact-layout__aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-table dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-table dt {
    border-top: 1px solid var(--c-line);
  }

  .profile-table dd {
    border-top: 0;
    padding-top: 0;
  }

  .post-list__item {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Mobile menu: tighten row height and padding on small screens */
  .site-nav {
    padding: 76px 20px 40px;
  }

  .site-nav__list a,
  .menu__item a {
    padding: 18px 6px;
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .cta-band__actions {
    min-width: 0;
    width: 100%;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .nav-toggle,
  .hero-slider__dots,
  .hero-slider__nav {
    display: none;
  }

  .hero,
  .page-hero,
  .section--dark {
    background: none !important;
    color: #000 !important;
  }
}


