/* Editorial hero inspired by premium dance-school art direction. */
.hero.hero {
  padding: 0;
  background: #f3f5f8;
}

/* Colorful visual / search switch — original Dance School Navi Tokai treatment. */
.heroModeSwitch {
  position: absolute;
  z-index: 12;
  top: 24px;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(390px, calc(100% - 220px));
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(9, 28, 51, .58);
  box-shadow: 0 10px 36px rgba(4, 22, 43, .18);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.heroModeSwitch button {
  min-width: 0;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, .72);
  background: transparent;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  transition: .25s ease;
}

.heroModeSwitch button span {
  margin-right: 8px;
  font: 800 8px Arial, sans-serif;
  opacity: .65;
}

.heroModeSwitch button[aria-selected="true"] {
  color: #16324f;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 20, 47, .16);
}

.heroVisualMode .heroPhoto::after {
  background:
    linear-gradient(90deg, rgba(6, 21, 41, .86) 0%, rgba(8, 29, 53, .58) 30%, rgba(8, 29, 53, .09) 62%, transparent 78%),
    linear-gradient(0deg, rgba(5, 22, 42, .38), transparent 38%);
}

.colorShape {
  position: absolute;
  z-index: 3;
  display: block;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: saturate(1.08);
}

.shapePink {
  right: -90px;
  top: 12%;
  width: 265px;
  height: 265px;
  border: 54px solid rgba(239, 56, 125, .72);
  border-radius: 52% 48% 42% 58%;
  transform: rotate(24deg);
}

.shapeOrange {
  right: 14%;
  bottom: -86px;
  width: 285px;
  height: 185px;
  border-radius: 50%;
  background: rgba(255, 144, 31, .48);
  transform: rotate(-13deg);
  filter: blur(1px);
}

.shapeCyan {
  left: 47%;
  top: -70px;
  width: 180px;
  height: 180px;
  border: 35px solid rgba(25, 207, 219, .42);
  border-radius: 50%;
}

.hero .heroCtas button {
  min-width: 166px;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  color: #fff;
  background: linear-gradient(115deg, #146be4, #1d91ef);
  box-shadow: 0 14px 30px rgba(0, 48, 112, .32);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
}

.hero .heroCtas button span {
  margin-left: 14px;
}

.heroInfoBar > button {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  border: 0;
  color: #1766c7;
  background: transparent;
  font: 900 9px/1 Arial, sans-serif;
  letter-spacing: .15em;
}

.heroInfoBar > button b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #b8cce3;
  border-radius: 50%;
  font-size: 13px;
}

.heroSearchMode .heroInner {
  min-height: 730px;
  background:
    radial-gradient(circle at 83% 20%, rgba(255, 63, 130, .88) 0 7%, transparent 7.3%),
    radial-gradient(circle at 74% 85%, rgba(255, 153, 32, .85) 0 10%, transparent 10.4%),
    radial-gradient(circle at 48% -5%, rgba(26, 205, 215, .78) 0 12%, transparent 12.4%),
    linear-gradient(126deg, #072d61 0%, #0b5fc2 48%, #1888e6 100%);
}

.heroSearchMode .heroArt {
  opacity: .13;
}

.heroSearchMode .heroPhoto::after {
  background: linear-gradient(90deg, #082f64 0%, rgba(8, 63, 124, .68) 55%, rgba(17, 113, 193, .35));
}

.heroSearchMode .colorShape {
  opacity: .45;
}

.heroSearchMode .heroRail > span {
  visibility: hidden;
}

.heroSearchMode .heroRail > span::after {
  content: "02";
  visibility: visible;
}

.heroSearchPane {
  position: relative;
  z-index: 8;
  width: min(1180px, calc(100% - 190px));
  min-height: 730px;
  margin: 0 auto;
  padding: 128px 0 110px 70px;
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(560px, 1.28fr);
  gap: clamp(35px, 6vw, 78px);
  align-items: center;
}

.heroSearchIntro {
  color: #fff;
}

.heroSearchIntro > span {
  display: block;
  margin-bottom: 21px;
  color: #a9e9ff;
  font: 900 9px Arial, sans-serif;
  letter-spacing: .2em;
}

.heroSearchIntro h1 {
  margin: 0 0 18px !important;
  color: #fff !important;
  font-size: clamp(35px, 4vw, 55px) !important;
  line-height: 1.22 !important;
}

.heroSearchIntro p {
  max-width: 390px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  line-height: 1.9;
}

.heroSearchCard {
  min-width: 0;
  padding: 30px;
  border-top: 5px solid #ff9d24;
  border-radius: 4px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 28px 80px rgba(0, 25, 67, .28);
}

.heroSearchCardHead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 23px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e4eaf1;
}

.heroSearchCardHead > span {
  flex: none;
  padding: 8px 10px;
  color: #fff;
  background: #1463df;
  font-size: 9px;
  font-weight: 900;
}

.heroSearchCardHead b,
.heroSearchCardHead small {
  display: block;
}

.heroSearchCardHead b {
  color: #19324d;
  font-size: 16px;
}

.heroSearchCardHead small {
  margin-top: 4px;
  color: #8492a1;
  font-size: 9px;
}

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

.heroSearchCard label > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: #52677d;
  font-size: 9px;
  font-weight: 900;
}

.heroSearchCard select {
  width: 100%;
  height: 52px;
  appearance: none;
  padding: 0 35px 0 12px;
  border: 1px solid #d8e1eb;
  border-radius: 3px;
  color: #263f58;
  background: #fbfcfe;
  font-size: 11px;
  font-weight: 700;
}

.heroSearchSubmit {
  width: 100%;
  height: 56px;
  margin-top: 16px;
  border: 0;
  color: #fff;
  background: linear-gradient(110deg, #105ccc, #168be9);
  box-shadow: 0 10px 24px rgba(16, 91, 203, .24);
  font-size: 11px;
  font-weight: 900;
}

.heroSearchSubmit span {
  margin-left: 18px;
}

.heroAdvancedToggle {
  width: 100%;
  padding: 13px 8px 6px;
  border: 0;
  color: #56718d;
  background: transparent;
  font-size: 9px;
  font-weight: 900;
}

.heroAdvancedFields {
  margin-top: 12px;
  padding: 14px;
  background: #f3f7fc;
}

.heroTrialCheck {
  min-height: 52px;
  margin-top: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #405970;
  font-size: 10px;
  font-weight: 800;
}

.heroTrialCheck input {
  position: absolute;
  opacity: 0;
}

.heroTrialCheck > span {
  width: 21px;
  height: 21px;
  margin: 0 !important;
  display: grid !important;
  place-items: center;
  border: 2px solid #b8c7d7;
  color: transparent;
  background: #fff;
}

.heroTrialCheck input:checked + span {
  color: #fff;
  border-color: #1463df;
  background: #1463df;
}

.heroQuickSearch {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.heroQuickSearch > span {
  margin-right: 4px;
  color: #8998a8;
  font-size: 8px;
}

.heroQuickSearch button {
  padding: 6px 9px;
  border: 1px solid #dae5f0;
  border-radius: 999px;
  color: #2a608f;
  background: #f8fbff;
  font-size: 8px;
  font-weight: 850;
}

@media (max-width: 980px) {
  .heroModeSwitch {
    width: 340px;
    max-width: calc(100% - 170px);
  }

  .heroSearchPane {
    width: calc(100% - 120px);
    padding-left: 45px;
    grid-template-columns: .65fr 1.35fr;
    gap: 28px;
  }

  .heroSearchCard {
    padding: 23px;
  }
}

@media (max-width: 680px) {
  .heroModeSwitch {
    top: 13px;
    width: calc(100% - 28px);
    max-width: none;
  }

  .heroModeSwitch button {
    height: 36px;
    font-size: 9px;
  }

  .shapePink {
    right: -100px;
    top: 10%;
    opacity: .7;
  }

  .shapeOrange {
    right: -80px;
    bottom: 70px;
  }

  .shapeCyan {
    left: -80px;
    top: 180px;
  }

  .hero .heroCtas button {
    min-width: 130px;
    min-height: 44px;
    font-size: 10px;
  }

  .heroInfoBar > button {
    width: 100%;
    justify-content: space-between;
  }

  .heroSearchMode .heroInner {
    height: auto;
    min-height: 890px;
  }

  .heroSearchPane {
    width: 100%;
    min-height: 890px;
    padding: 88px 14px 38px;
    display: block;
  }

  .heroSearchIntro {
    padding: 0 10px;
  }

  .heroSearchIntro > span {
    margin-bottom: 10px;
    font-size: 8px;
  }

  .heroSearchIntro h1 {
    margin-bottom: 9px !important;
    font-size: 30px !important;
  }

  .heroSearchIntro p {
    font-size: 10px;
  }

  .heroSearchCard {
    margin-top: 22px;
    padding: 19px 15px 17px;
  }

  .heroSearchCardHead {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .heroSearchCardHead b {
    font-size: 14px;
  }

  .heroSearchFields,
  .heroAdvancedFields {
    grid-template-columns: 1fr;
  }

  .heroAdvancedFields {
    gap: 7px;
  }

  .heroTrialCheck {
    margin-top: 0;
  }
}

.hero .heroInner {
  width: 100%;
  max-width: none;
  height: min(850px, calc(100svh - 90px));
  min-height: 700px;
  border-radius: 0;
  overflow: hidden;
}

.hero .heroPhoto::after {
  background:
    linear-gradient(90deg, rgba(7, 19, 34, .91) 0%, rgba(9, 27, 49, .76) 25%, rgba(10, 34, 63, .32) 51%, rgba(9, 30, 56, .04) 75%),
    linear-gradient(0deg, rgba(6, 19, 34, .38) 0%, transparent 33%);
}

.hero .heroPhoto img {
  object-position: center 48%;
  transform: scale(1.015);
}

.heroRail {
  position: absolute;
  z-index: 6;
  inset: 0 auto 0 0;
  width: 88px;
  padding: 32px 0 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: rgba(8, 20, 35, .95);
  border-right: 1px solid rgba(255, 255, 255, .15);
}

.heroRail::after {
  content: "";
  width: 1px;
  height: 100px;
  position: absolute;
  bottom: 0;
  background: #1f78ea;
}

.heroRail > span {
  font: 300 38px/1 Arial, sans-serif;
  letter-spacing: -.08em;
}

.heroRail > small {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: rgba(255, 255, 255, .62);
  font: 700 8px/1.7 Arial, sans-serif;
  letter-spacing: .22em;
}

.hero .heroCopy {
  z-index: 5;
  left: clamp(126px, 10vw, 172px);
  top: 45%;
  width: min(700px, 55vw);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  transform: translateY(-50%);
}

.hero .heroKicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 25px;
  padding: 0;
  color: #bcd9ff;
  background: transparent;
  border: 0;
  font: 800 10px/1.3 Arial, "Hiragino Sans", sans-serif;
  letter-spacing: .16em;
}

.hero .heroKicker::before {
  content: "";
  width: 38px;
  height: 2px;
  background: #2b82f3;
}

.heroDisplay {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .84);
  font: 900 clamp(64px, 7.8vw, 124px)/.78 Arial, sans-serif;
  letter-spacing: -.075em;
  text-transform: uppercase;
  white-space: nowrap;
}

.heroDisplay em {
  color: #fff;
  -webkit-text-stroke: 0;
  font-style: normal;
}

.hero.hero h1 {
  margin: 31px 0 13px;
  color: #fff;
  font-size: clamp(27px, 2.4vw, 39px);
  line-height: 1.34;
  letter-spacing: -.055em;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .18);
}

.hero.hero h1 em {
  margin: 0;
  color: #fff;
  font-style: normal;
}

.hero .heroCopy > p {
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  line-height: 1.85;
  font-weight: 650;
}

.hero .heroCtas {
  margin-top: 25px;
  gap: 22px;
}

.hero .heroCtas a {
  min-height: 52px;
  font-size: 10px;
  letter-spacing: .04em;
}

.hero .heroCtas a:first-child {
  min-width: 166px;
  background: #146be4;
  box-shadow: 0 14px 30px rgba(0, 48, 112, .32);
}

.hero .heroCtas a:first-child:hover {
  background: #2d80ee;
}

.hero .heroCtas a:last-child {
  color: #fff;
  border-color: rgba(255, 255, 255, .52);
}

.heroInfoBar {
  position: absolute;
  z-index: 7;
  left: 88px;
  right: 0;
  bottom: 0;
  min-height: 84px;
  padding: 0 clamp(28px, 4vw, 64px);
  display: flex;
  align-items: center;
  gap: 42px;
  color: #1b3048;
  background: rgba(248, 250, 252, .95);
  border-top: 1px solid rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px);
}

.heroInfoBar > span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
}

.heroInfoBar .heroTrust {
  margin: 0;
  gap: 0;
}

.heroInfoBar .heroTrust span {
  padding: 0 22px;
  color: #577087;
  background: transparent;
  border-radius: 0;
  border-left: 1px solid #d5dee8;
  font-size: 9px;
  letter-spacing: .06em;
}

.heroInfoBar > a {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #1766c7;
  font: 900 9px/1 Arial, sans-serif;
  letter-spacing: .15em;
}

.heroInfoBar > a b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #b8cce3;
  border-radius: 50%;
  font-size: 13px;
}

.searchSection.searchSection {
  padding-top: 48px;
}

@media (max-width: 980px) {
  .hero .heroInner {
    height: 730px;
    min-height: 730px;
  }

  .heroRail {
    width: 68px;
  }

  .hero .heroCopy {
    left: 102px;
    top: 43%;
    width: 61vw;
  }

  .heroDisplay {
    font-size: clamp(60px, 9vw, 88px);
  }

  .heroInfoBar {
    left: 68px;
    gap: 20px;
  }

  .heroInfoBar .heroTrust span {
    padding: 0 12px;
  }
}

@media (max-width: 680px) {
  .hero.hero {
    padding: 0;
  }

  .hero .heroInner {
    height: 720px;
    min-height: 720px;
  }

  .heroRail {
    display: none;
  }

  .hero .heroArt {
    inset: 0;
    height: auto;
  }

  .hero .heroPhoto img {
    object-position: 62% center;
  }

  .hero .heroPhoto::after {
    background:
      linear-gradient(0deg, rgba(6, 20, 38, .96) 8%, rgba(7, 25, 47, .76) 45%, rgba(8, 28, 52, .04) 78%),
      linear-gradient(90deg, rgba(8, 25, 47, .34), transparent 72%);
  }

  .hero .heroCopy {
    left: 22px;
    right: 22px;
    top: 49%;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    transform: translateY(-18%);
  }

  .hero .heroKicker {
    margin-bottom: 17px;
    font-size: 8px;
    letter-spacing: .09em;
  }

  .heroDisplay {
    font-size: clamp(49px, 15vw, 66px);
    line-height: .8;
    white-space: normal;
  }

  .hero.hero h1 {
    margin-top: 23px;
    font-size: 27px;
    line-height: 1.3;
  }

  .hero .heroCopy > p {
    font-size: 10px;
  }

  .hero .heroCtas {
    margin-top: 18px;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .hero .heroCtas a {
    min-height: 44px;
  }

  .hero .heroCtas a:first-child {
    min-width: 130px;
  }

  .heroInfoBar {
    left: 0;
    min-height: 72px;
    padding: 0 20px;
  }

  .heroInfoBar > span,
  .heroInfoBar .heroTrust {
    display: none;
  }

  .heroInfoBar > a {
    width: 100%;
    justify-content: space-between;
  }

  .searchSection.searchSection {
    padding-top: 22px;
  }
}

/* Final mode-specific rules stay last so each tab keeps its intended canvas. */
.hero.heroVisualMode .heroPhoto::after {
  background:
    linear-gradient(90deg, rgba(6, 21, 41, .86) 0%, rgba(8, 29, 53, .58) 30%, rgba(8, 29, 53, .09) 62%, transparent 78%),
    linear-gradient(0deg, rgba(5, 22, 42, .38), transparent 38%);
}

.hero.heroSearchMode .heroInner {
  height: auto;
  min-height: 730px;
}

.hero.heroSearchMode .heroPhoto::after {
  background: linear-gradient(90deg, #082f64 0%, rgba(8, 63, 124, .68) 55%, rgba(17, 113, 193, .35));
}

@media (max-width: 680px) {
  .hero.heroSearchMode .heroInner {
    height: auto;
    min-height: 890px;
  }
}
