@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --navy: #06245c;
  --blue: #1769d2;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", "Inter", "Noto Sans JP", Arial, sans-serif;
}

img {
  max-width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  isolation: isolate;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e6edf7;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  height: 100px;
  margin: 0 auto;
  padding: 0 34px;
  gap: 32px;
}

.logo img {
  display: block;
  height: 78px;
}

.nav-menu {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 52px;
}

.nav-menu a {
  color: #071d49;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav-menu a:hover {
  color: #0057e7;
}

.dropdown {
  position: relative;
}

.dropdown > a {
  display: flex;
  align-items: center;
  height: 74px;
  gap: 8px;
}

.dropdown > a i {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.dropdown:hover > a i {
  transform: rotate(180deg);
}

.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 99999;
  min-width: 250px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e4ebf5;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(8, 30, 80, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  color: #182b4d;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-menu a:hover {
  padding-left: 20px;
  background: #f3f7ff;
  color: #0057e7;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

#menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  width: 34px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  margin: 7px 0;
  background: #071d49;
  border-radius: 4px;
  transition: 0.3s ease;
}

/* Buttons */
.btn,
.btn-primary,
.btn-outline,
.denai-btn,
button,
input[type="submit"] {
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.btn.primary {
  background: #0057e7;
  color: #ffffff;
  border: 0;
  line-height: 1.1;
  text-align: center;
  font-weight: 600;
}

.btn.primary:hover {
  background: #ff9933;
}

.btn.outline {
  background: #ff9933;
  color: #ffffff;
  border: 0;
  text-align: center;
  font-weight: 600;
}

.btn.outline:hover {
  background: #0057e7;
  color: #ffffff;
}

.btn:hover,
.btn-primary:hover,
.btn-outline:hover,
.denai-btn:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 72, 180, 0.22);
}

.btn:active,
.btn-primary:active,
.btn-outline:active,
.denai-btn:active,
button:active,
input[type="submit"]:active {
  transform: translateY(-1px) scale(0.99);
}

/* Hero */
.home-hero {
  position: relative;
  display: flex;
  width: 100%;
  min-height: calc(100vh - 100px);
  overflow: hidden;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(58, 140, 255, 0.32) 0%,
    rgba(58, 140, 255, 0.35) 32%,
    rgba(58, 140, 255, 0.08) 55%,
    rgba(255, 255, 255, 0) 78%
  );
}

.hero-content {
  position: absolute;
  top: 60%;
  left: 8%;
  z-index: 2;
  width: 620px;
  max-width: min(620px, 46vw);
  transform: translateY(-50%);
}

.hero-tag {
  display: inline-block;
  margin-bottom: 15px;
  padding: 10px 28px;
  background: #1f55ff;
  color: #ffffff;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero-content h1 {
  margin: 0;
  color: #ffffff;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -2px;
}

.hero-content p {
  margin-top: 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 400;
  line-height: 2;
}

/* Reveal animation */
.dx-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.82s cubic-bezier(0.22, 1, 0.36, 1), transform 0.82s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--dx-delay, 0ms);
  will-change: opacity, transform;
}

.dx-reveal.dx-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  width: 100%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #ffffff;
}

.footer-container {
  display: grid;
  grid-template-columns: 340px 1fr;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0047a8;
}

.footer-brand img {
  height: 78px;
  max-width: 100%;
  margin-bottom: 5px;
}

.footer-brand .tagline {
  margin: 0;
  color: #0047a8;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  padding: 30px 50px 10px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.footer-column h3 {
  margin-bottom: 28px;
  color: #b6d4f9;
  font-size: 22px;
  font-weight: 600;
}

.footer-column a {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  gap: 10px;
  color: #ffffff;
  font-size: 17px;
  text-decoration: none;
  transition: 0.3s;
}

.footer-column a:hover {
  color: #dbe8f9;
  transform: translateX(5px);
}

.footer-column i {
  width: 20px;
  font-size: 18px;
  text-align: center;
}

.footer-bottom {
  padding: 22px;
  background: #ffffff;
  border-top: 1px solid rgba(21, 95, 151, 0.5);
  color: #333333;
  font-size: 17px;
  text-align: center;
}

/* Desktop */
@media (min-width: 901px) {
  .site-header {
    z-index: 99999;
    border-bottom-color: #d7dde7;
    box-shadow: none;
  }

  .header-inner {
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    padding: 0 25px 0 30px;
    gap: 0;
  }

  .logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 72px;
  }

  .nav-menu {
    justify-content: flex-start;
    flex: 1 1 auto;
    margin-left: 0;
    gap: 50px;
  }

  .nav-menu a,
  .dropdown > a {
    color: #071d49;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .dropdown > a {
    display: inline-flex;
    height: 78px;
    padding: 0;
    gap: 8px;
  }

  .dropdown > a i {
    font-size: 12px;
  }

  .header-actions {
    justify-content: flex-end;
    flex: 0 0 auto;
    margin-left: auto;
    gap: 20px;
  }

  .btn {
    min-width: 182px;
    height: 48px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 800;
  }

  .btn.primary {
    background: #005ce6;
  }

  .btn.outline {
    min-width: 168px;
    background: #ff9933;
  }

  .home-hero {
    min-height: 100vh;
    padding: 0;
    align-items: center;
    background-size: cover;
    background-position: center;
  }

  .home-hero .hero-content {
    top: 42%;
    left: 8%;
    width: 520px;
    max-width: 520px;
    text-align: left;
  }
}

/* Compact desktop */
@media (min-width: 901px) and (max-width: 1180px) {
  .header-inner {
    padding: 0 18px;
  }

  .logo {
    margin-right: 34px;
  }

  .nav-menu {
    gap: 34px;
  }

  .header-actions {
    gap: 14px;
  }

  .btn {
    min-width: 145px;
    padding: 0 16px;
    font-size: 14px;
  }

  .btn.outline {
    min-width: 130px;
  }
}

/* Footer tablet */
@media (max-width: 1100px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    padding: 50px 30px;
    text-align: center;
  }

  .footer-links {
    padding: 50px 40px;
  }
}

/* Mobile and tablet navigation */
@media (max-width: 900px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    z-index: 99999;
  }

  .header-inner {
    height: 68px;
    padding: 0 18px;
  }

  .logo img {
    height: 42px;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 44px;
    height: 44px;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #dce7f7;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(7, 29, 73, 0.08);
    z-index: 100001;
  }

  .hamburger span {
    width: 22px;
    height: 2px;
    margin: 0;
    border-radius: 10px;
    transform-origin: center;
  }

  #menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  #menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  #menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 99998;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: calc(100vh - 68px);
    margin: 0;
    padding: 24px 22px 150px;
    gap: 6px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e6edf7;
    box-shadow: 0 28px 70px rgba(7, 29, 73, 0.16);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, visibility 0.28s ease;
  }

  #menu-toggle:checked ~ .nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu > a,
  .dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    height: auto;
    padding: 0 18px;
    background: #ffffff;
    border: 1px solid #edf2fb;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(7, 29, 73, 0.04);
    font-size: 16px;
    font-weight: 800;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown::after {
    display: none;
  }

  .dropdown.mobile-open > a i {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    max-height: 0;
    margin: 8px 0 4px;
    padding: 0 8px;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1), padding 0.36s ease;
  }

  .dropdown:hover .dropdown-menu {
    max-height: 0;
  }

  .dropdown.mobile-open .dropdown-menu {
    max-height: 180px;
    padding-top: 4px;
    padding-bottom: 6px;
  }

  .dropdown-menu a {
    min-height: 48px;
    padding: 0 16px;
    background: #f5f8ff;
    border: 1px solid #e7eefb;
    border-radius: 12px;
    font-weight: 800;
  }

  .header-actions {
    position: fixed;
    left: 22px;
    right: 22px;
    bottom: 24px;
    top: auto;
    z-index: 100000;
    flex-direction: column;
    align-items: stretch;
    width: auto;
    padding: 0;
    gap: 12px;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.26s ease 0.12s, transform 0.32s ease 0.12s, visibility 0.26s ease;
  }

  #menu-toggle:checked ~ .header-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header-actions .btn {
    width: 100%;
    min-width: 0;
    height: 50px;
  }

  .home-hero {
    min-height: calc(100vh - 68px);
    padding: 54px 16px 54vh;
    align-items: flex-start;
    background-color: #0c62b7;
    background-size: cover;
    background-position: 62% bottom;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(11, 90, 190, 0.92) 0%, rgba(11, 90, 190, 0.72) 42%, rgba(11, 90, 190, 0.06) 70%, rgba(11, 90, 190, 0) 100%);
  }

  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 560px;
    transform: none;
  }

  .hero-content h1 {
    font-size: clamp(34px, 8vw, 48px);
    line-height: 1.28;
    letter-spacing: -1px;
  }

  .hero-content p {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.8;
  }
}

/* Mobile footer */
@media (max-width: 768px) {
  .footer {
    text-align: left;
  }

  .footer-container {
    padding: 50px 25px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 35px;
    background: none;
  }

  .footer-brand img {
    width: auto;
    height: 78px;
  }

  .footer-brand .tagline {
    font-size: 18px;
    line-height: 1.5;
  }

  .footer-column h3 {
    margin-bottom: 18px;
    font-size: 21px;
  }

  .footer-column a {
    justify-content: flex-start;
    font-size: 16px;
  }

  .footer-bottom {
    font-size: 15px;
  }
}

/* Small mobile */
@media (max-width: 560px) {
  .home-hero {
    padding: 48px 16px 55vh;
    background-position: center bottom;
  }

  .hero-tag {
    padding: 8px 18px;
    font-size: 14px;
  }

  .hero-content p br {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
  }

  .logo img {
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dx-reveal,
  .btn,
  .btn-primary,
  .btn-outline,
  .denai-btn,
  button,
  input[type="submit"] {
    transition: none;
    transform: none;
  }
}
/* ===== Floating language selector + mobile/tablet hero refinement ===== */
.language-toggle {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  top: auto !important;
  left: auto !important;
  z-index: 9999 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 2px;
  margin: 0 !important;
  padding: 4px;
  border: 2px solid #005ce6 !important;
  border-radius: 8px;
  background: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .22) !important;
}

.language-toggle .language-option {
  min-width: 42px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid transparent !important;
  border-radius: 6px;
  background: #ffffff !important;
  color: #005ce6 !important;
  font: 700 12px/1 "Poppins", "Noto Sans JP", Arial, sans-serif;
  cursor: pointer;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.language-toggle .language-option:hover,
.language-toggle .language-option:focus {
  background: #005ce6 !important;
  color: #ffffff !important;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  .home-hero {
    min-height: 620px !important;
    padding: 52px 28px 260px !important;
    background-size: cover !important;
    background-position: 58% center !important;
  }

  .home-hero .hero-content {
    max-width: 470px !important;
  }

  .home-hero .hero-content h1 {
    font-size: clamp(38px, 7vw, 48px) !important;
  }

  .home-hero .hero-content p {
    font-size: 16px !important;
    line-height: 1.8 !important;
  }
}

@media (max-width: 560px) {
  .language-toggle {
    right: 12px !important;
    bottom: 12px !important;
  }

  .language-toggle .language-option {
    min-width: 34px;
    height: 30px;
    padding: 0 5px;
    font-size: 10px;
  }

  .home-hero {
    min-height: 570px !important;
    padding: 42px 18px 250px !important;
    background-position: 54% center !important;
  }

  .home-hero .hero-content h1 {
    font-size: clamp(32px, 10vw, 40px) !important;
  }

  .home-hero .hero-content p {
    font-size: 14px !important;
    line-height: 1.75 !important;
  }
}


/* === English version: exact approved Japanese language toggle === */
.header-inner { position: relative; }
/* === Final true language toggle switch === */
@media (min-width: 901px) {
  .site-header .language-toggle {
    position: absolute !important;
    top: 13px !important;
    right: 30px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: block !important;
    z-index: 20 !important;
  }
}

.language-toggle::before { display: none !important; }

.language-switch {
  position: relative;
  width: 118px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #eef5ff;
  box-shadow: inset 0 0 0 1px rgba(0, 94, 230, 0.10);
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: #075fe6;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow .2s ease, background .2s ease;
  overflow: hidden;
}

.language-switch:hover {
  background: #e8f2ff;
  box-shadow: inset 0 0 0 1px rgba(0, 94, 230, 0.16), 0 3px 10px rgba(0, 74, 180, 0.08);
}

.language-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 56px;
  height: 32px;
  border-radius: 6px;
  background: #0963e8;
  box-shadow: 0 2px 7px rgba(0, 80, 190, 0.22);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}

.language-switch.is-en .language-switch__thumb {
  transform: translateX(56px);
}

.language-switch__label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: color .18s ease;
  user-select: none;
}

.language-switch__label--ja { color: #fff; }
.language-switch__label--en { color: #075fe6; }
.language-switch.is-en .language-switch__label--ja { color: #075fe6; }
.language-switch.is-en .language-switch__label--en { color: #fff; }

.language-switch:focus-visible {
  outline: 3px solid rgba(9, 99, 232, .22);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .language-toggle {
    position: fixed !important;
    right: 14px !important;
    bottom: 14px !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    z-index: 9999 !important;
  }
  .language-switch {
    width: 108px;
    height: 36px;
    font-size: 12px;
  }
  .language-switch__thumb {
    width: 51px;
    height: 30px;
  }
  .language-switch.is-en .language-switch__thumb {
    transform: translateX(51px);
  }
}

/* === Final toggle proportion + spacing refinement === */
@media (min-width: 901px) {
  .site-header .language-toggle {
    top: 8px !important;
    right: 30px !important;
  }
  .site-header .header-actions {
    transform: translateY(12px);
  }
  .language-switch {
    width: 104px;
    height: 30px;
    border-radius: 6px;
    font-size: 12px;
  }
  .language-switch__thumb {
    top: 3px;
    left: 3px;
    width: 49px;
    height: 24px;
    border-radius: 5px;
  }
  .language-switch.is-en .language-switch__thumb {
    transform: translateX(49px);
  }
}

/* === Final approved vertical gap: language toggle to CTA row === */
@media (min-width: 901px) {
  .site-header .language-toggle {
    top: 13px !important;
  }
  .site-header .header-actions {
    transform: translateY(7px) !important;
  }
}

/* === 2026-08-24 final header/toggle refinement ===
   Scope: desktop header height and language toggle only. */
@media (min-width: 901px) {
  .site-header .header-inner {
    height: 104px !important;
    padding-top: 22px !important;
  }

  .site-header .language-toggle {
    top: 8px !important;
    right: 30px !important;
  }

  .site-header .header-actions {
    transform: translateY(5px) !important;
  }
}

.language-switch {
  background: #ffffff !important;
  border: 1px solid #b9d2f7 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: border-color .18s ease, box-shadow .18s ease !important;
}

.language-switch:hover,
.language-switch:focus,
.language-switch:active {
  background: #ffffff !important;
  border-color: #72a8f3 !important;
  box-shadow: 0 0 0 2px rgba(9, 99, 232, 0.06) !important;
  transform: none !important;
}

.language-switch__thumb,
.language-switch:hover .language-switch__thumb,
.language-switch:focus .language-switch__thumb,
.language-switch:active .language-switch__thumb {
  transform-origin: center !important;
  box-shadow: none !important;
}

.language-switch:not(.is-en) .language-switch__thumb {
  transform: translateX(0) !important;
}

.language-switch.is-en .language-switch__thumb {
  transform: translateX(49px) !important;
}

/* === Language option hover highlight only === */
.language-switch__label {
  border-radius: 5px;
  transition: color .18s ease, background-color .18s ease !important;
}
.language-switch:not(.is-en) .language-switch__label--en:hover {
  background: #0963e8;
  color: #fff !important;
}
.language-switch.is-en .language-switch__label--ja:hover {
  background: #0963e8;
  color: #fff !important;
}

/* === 2026-08-24 hover-preview correction ===
   Keep ONE blue selection only. Hovering the other language temporarily
   moves the blue selection to that option; mouse-out restores current state. */
.language-switch__label--ja:hover,
.language-switch__label--en:hover {
  background: transparent !important;
}

@media (min-width: 901px) {
  .language-switch:not(.is-en):has(.language-switch__label--en:hover) .language-switch__thumb {
    transform: translateX(49px) !important;
  }
  .language-switch:not(.is-en):has(.language-switch__label--en:hover) .language-switch__label--ja {
    color: #075fe6 !important;
  }
  .language-switch:not(.is-en):has(.language-switch__label--en:hover) .language-switch__label--en {
    color: #fff !important;
  }

  .language-switch.is-en:has(.language-switch__label--ja:hover) .language-switch__thumb {
    transform: translateX(0) !important;
  }
  .language-switch.is-en:has(.language-switch__label--ja:hover) .language-switch__label--ja {
    color: #fff !important;
  }
  .language-switch.is-en:has(.language-switch__label--ja:hover) .language-switch__label--en {
    color: #075fe6 !important;
  }
}

@media (max-width: 900px) {
  .language-switch:not(.is-en):has(.language-switch__label--en:hover) .language-switch__thumb {
    transform: translateX(51px) !important;
  }
  .language-switch:not(.is-en):has(.language-switch__label--en:hover) .language-switch__label--ja {
    color: #075fe6 !important;
  }
  .language-switch:not(.is-en):has(.language-switch__label--en:hover) .language-switch__label--en {
    color: #fff !important;
  }

  .language-switch.is-en:has(.language-switch__label--ja:hover) .language-switch__thumb {
    transform: translateX(0) !important;
  }
  .language-switch.is-en:has(.language-switch__label--ja:hover) .language-switch__label--ja {
    color: #fff !important;
  }
  .language-switch.is-en:has(.language-switch__label--ja:hover) .language-switch__label--en {
    color: #075fe6 !important;
  }
}


/* 2026-09-16 FINAL mobile/tablet hero-only correction.
   Match the approved Japanese-version behavior exactly.
   Desktop (1025px+) is intentionally untouched. */
@media (max-width: 1024px) {
  .home-hero {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    aspect-ratio: 1938 / 811 !important;
    background-size: 100% 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    align-items: initial !important;
  }
}
