/* RAMEXperts unified corporate shell
 * Source of truth: approved corporate homepage header/footer.
 * This file is intentionally namespaced so page-specific layouts remain intact.
 */

.rx2-shell-page {
  --rx2-shell-paper: #ffffff;
  --rx2-shell-ink: #0a1528;
  --rx2-shell-line: #d9e0e8;
  --rx2-shell-cobalt: #1557ff;
  --rx2-shell-signal: #ff5b00;
  --rx2-shell-header: 88px;
  --rx2-shell-container: 1440px;
  --rx2-shell-gutter: clamp(24px, 4vw, 64px);
  --rx2-shell-display: "Manrope", "Inter", "Noto Sans JP", sans-serif;
  --rx2-shell-body: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}

.rx2-shell-page.rx2-shell-offset {
  padding-top: var(--rx2-shell-header);
}

.rx2-shell-page.rx2-shell-menu-open {
  overflow: hidden;
}

.rx2-shell-page .rx2-skip {
  position: fixed;
  z-index: 10050;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  border-radius: 2px;
  padding: 12px 18px;
  background: var(--rx2-shell-ink);
  color: #fff;
  font-family: var(--rx2-shell-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.rx2-shell-page .rx2-skip:focus {
  transform: translateY(0);
}

.rx2-shell-page .rx2-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: var(--rx2-shell-header);
  border: 0;
  border-bottom: 1px solid rgba(10, 21, 40, 0.1);
  background: rgba(255, 255, 255, 0.96);
  color: var(--rx2-shell-ink);
  box-shadow: none;
  font-family: var(--rx2-shell-body);
}

@supports (backdrop-filter: blur(16px)) {
  .rx2-shell-page .rx2-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
  }
}

.rx2-shell-page .rx2-header *,
.rx2-shell-page .rx2-footer * {
  box-sizing: border-box;
}

.rx2-shell-page .rx2-header a,
.rx2-shell-page .rx2-footer a {
  color: inherit;
  text-decoration: none;
}

.rx2-shell-page .rx2-header__inner {
  display: flex;
  width: min(100%, 1536px);
  height: 100%;
  align-items: center;
  margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 48px);
}

/* Legacy product templates styled the title band only while it was an h2.
 * The unified semantic pass promotes it to the single page h1. */
.rx2-shell-page .plp-page-title-bar h1,
.rx2-shell-page .plp-page-title-bar h2 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.55;
}

.rx2-shell-page .rx2-brand {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 1px;
  color: var(--rx2-shell-ink);
  line-height: 1;
  text-decoration: none;
}

.rx2-shell-page .rx2-brand__name {
  color: inherit;
  font-family: var(--rx2-shell-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.rx2-shell-page .rx2-brand__tm {
  position: relative;
  top: -0.52em;
  margin-left: 2px;
  font-size: 8px;
  letter-spacing: 0;
}

.rx2-shell-page .rx2-brand__descriptor {
  color: #637085;
  font-family: var(--rx2-shell-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rx2-shell-page .rx2-nav {
  margin-left: auto;
}

.rx2-shell-page .rx2-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.rx2-shell-page .rx2-nav__mobile-contact {
  display: none;
}

.rx2-shell-page .rx2-nav__list li {
  margin: 0;
  padding: 0;
}

.rx2-shell-page .rx2-nav__list a {
  position: relative;
  display: block;
  border: 0;
  padding-block: 12px;
  background: transparent;
  color: var(--rx2-shell-ink);
  font-family: var(--rx2-shell-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
  white-space: nowrap;
}

.rx2-shell-page .rx2-nav__list a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--rx2-shell-cobalt);
  transition: transform 180ms ease;
}

.rx2-shell-page .rx2-nav__list a:hover::after,
.rx2-shell-page .rx2-nav__list a:focus-visible::after,
.rx2-shell-page .rx2-nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.rx2-shell-page .rx2-header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: clamp(24px, 3vw, 48px);
}

.rx2-shell-page .rx2-phone {
  display: flex;
  flex-direction: column;
  color: var(--rx2-shell-ink);
  font-family: var(--rx2-shell-body);
  line-height: 1.1;
  text-align: right;
}

.rx2-shell-page .rx2-phone__number {
  font-family: var(--rx2-shell-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rx2-shell-page .rx2-phone__hours {
  margin-top: 5px;
  color: #6a7587;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.rx2-shell-page .rx2-button,
.rx2-shell-page .rx2-trust-cta {
  display: inline-flex !important;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  padding: 12px 26px !important;
  background: var(--rx2-shell-signal) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-family: var(--rx2-shell-display) !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  letter-spacing: 0.035em !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  transition: background-color 180ms ease, transform 180ms ease !important;
}

.rx2-shell-page .rx2-button:hover,
.rx2-shell-page .rx2-trust-cta:hover {
  background: #e85000 !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.rx2-shell-page .rx2-button::before,
.rx2-shell-page .rx2-button::after,
.rx2-shell-page .rx2-trust-cta::before,
.rx2-shell-page .rx2-trust-cta::after {
  content: none !important;
  display: none !important;
}

.rx2-shell-page .rx2-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--rx2-shell-ink);
}

.rx2-shell-page .rx2-menu-toggle span,
.rx2-shell-page .rx2-menu-toggle span::before,
.rx2-shell-page .rx2-menu-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rx2-shell-ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.rx2-shell-page .rx2-menu-toggle span {
  position: relative;
}

.rx2-shell-page .rx2-menu-toggle span::before,
.rx2-shell-page .rx2-menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.rx2-shell-page .rx2-menu-toggle span::before { top: -7px; }
.rx2-shell-page .rx2-menu-toggle span::after { top: 7px; }
.rx2-shell-page .rx2-menu-toggle[aria-expanded="true"] span { background: transparent; }
.rx2-shell-page .rx2-menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.rx2-shell-page .rx2-menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.rx2-shell-page .rx2-container {
  width: min(100%, var(--rx2-shell-container));
  margin-inline: auto;
  padding-inline: var(--rx2-shell-gutter);
}

.rx2-shell-page .rx2-footer {
  position: relative;
  z-index: 1;
  clear: both;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding: 80px 0 30px;
  background: #07101e;
  color: #fff;
  font-family: var(--rx2-shell-body);
}

.rx2-shell-page .rx2-footer__top {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(580px, 1.45fr);
  gap: 80px;
}

.rx2-shell-page .rx2-brand--footer {
  color: #fff;
}

.rx2-shell-page .rx2-brand--footer .rx2-brand__descriptor {
  color: rgba(255, 255, 255, 0.5);
}

.rx2-shell-page .rx2-footer__top > div > p {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  line-height: 1.9;
}

.rx2-shell-page .rx2-footer__nav {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1.05fr 0.95fr;
  gap: 30px;
}

.rx2-shell-page .rx2-footer__nav h3 {
  margin: 0 0 20px;
  color: #8fb0ff;
  font-family: var(--rx2-shell-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.rx2-shell-page .rx2-footer__nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rx2-shell-page .rx2-footer__nav li {
  margin: 0;
  padding: 0;
}

.rx2-shell-page .rx2-footer__nav li + li {
  margin-top: 9px;
}

.rx2-shell-page .rx2-footer__nav a {
  display: inline;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  transition: color 180ms ease;
}

.rx2-shell-page .rx2-footer__nav a:hover {
  color: #fff;
}

.rx2-shell-page .rx2-footer__variant-link span {
  display: block;
}

.rx2-shell-page .rx2-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--rx2-shell-display);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.rx2-shell-page .rx2-footer__bottom p {
  margin: 0;
}

.rx2-shell-page .rx2-header :focus-visible,
.rx2-shell-page .rx2-footer :focus-visible {
  outline: 3px solid #ffbf00;
  outline-offset: 4px;
}

@media (max-width: 1180px) {
  .rx2-shell-page {
    --rx2-shell-header: 78px;
  }

  .rx2-shell-page .rx2-nav__list { gap: 16px; }
  .rx2-shell-page .rx2-nav__list a { font-size: 12px; }
  .rx2-shell-page .rx2-phone { display: none; }
  .rx2-shell-page .rx2-header__actions { margin-left: 24px; }
  .rx2-shell-page .rx2-footer__top {
    grid-template-columns: minmax(220px, 0.42fr) minmax(650px, 1.58fr);
    gap: 54px;
  }
  .rx2-shell-page .rx2-footer__nav { gap: 22px; }
}

@media (max-width: 960px) {
  .rx2-shell-page .rx2-header {
    background: var(--rx2-shell-paper);
    backdrop-filter: none;
  }

  .rx2-shell-page .rx2-header__actions { display: none; }
  .rx2-shell-page .rx2-menu-toggle { display: inline-flex; margin-left: auto; }
  .rx2-shell-page .rx2-nav {
    position: fixed;
    z-index: 999;
    top: var(--rx2-shell-header);
    right: 0;
    bottom: 0;
    width: min(88vw, 430px);
    height: calc(100dvh - var(--rx2-shell-header));
    margin: 0;
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(100%);
    background: var(--rx2-shell-paper);
    box-shadow: -24px 30px 60px rgba(10, 21, 40, 0.14);
    transition: visibility 0s linear 240ms, transform 240ms ease;
  }

  .rx2-shell-page .rx2-nav.is-open {
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0s;
  }

  .rx2-shell-page .rx2-nav__list {
    display: block;
    padding: 36px 28px;
  }

  .rx2-shell-page .rx2-nav__list li {
    border-bottom: 1px solid var(--rx2-shell-line);
  }

  .rx2-shell-page .rx2-nav__list a {
    display: flex;
    min-height: 58px;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
  }

  .rx2-shell-page .rx2-nav__list .rx2-nav__mobile-contact {
    display: block;
    border-bottom: 0;
    padding-top: 24px;
  }

  .rx2-shell-page .rx2-nav__mobile-contact a {
    min-height: 50px;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 24px;
    background: var(--rx2-shell-signal);
    color: #fff;
    font-weight: 650;
  }

  .rx2-shell-page .rx2-footer__top { grid-template-columns: 1fr; }
  .rx2-shell-page .rx2-footer__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .rx2-shell-page {
    --rx2-shell-header: 68px;
    --rx2-shell-gutter: 20px;
  }

  .rx2-shell-page .rx2-brand__name { font-size: 21px; }
  .rx2-shell-page .rx2-header__inner { padding-inline: 18px; }
  .rx2-shell-page .rx2-footer { padding-top: 64px; }

  /* Avoid an isolated final Japanese character on consultation titles. */
  .rx2-shell-page.consult-page .consult-hero h1 {
    font-size: 30px !important;
    line-height: 1.45;
  }
}

@media (max-width: 480px) {
  .rx2-shell-page .rx2-footer__nav { grid-template-columns: 1fr; }
  .rx2-shell-page .rx2-footer__nav > div {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rx2-shell-page .rx2-header *,
  .rx2-shell-page .rx2-footer * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
