.consult-nav,
.consult-nav * {
  box-sizing: border-box;
}

.consult-nav [hidden] {
  display: none !important;
}

.consult-nav {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  font-family: "Noto Sans JP", system-ui, sans-serif;
}

.consult-nav__launcher {
  min-width: 136px;
  min-height: 56px;
  display: grid;
  gap: 2px;
  place-items: center;
  padding: 8px 20px;
  border: 2px solid #ffffff;
  border-radius: 8px;
  color: #ffffff;
  background: #2176d2;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.consult-nav__launcher:hover {
  background: #175da8;
}

.consult-nav__launcher small {
  font-size: 12px;
  font-weight: 400;
}

.consult-nav__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(360px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid #d7e5f0;
  border-radius: 8px;
  color: #132238;
  background: #ffffff;
}

.consult-nav__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.consult-nav__eyebrow {
  margin: 0 0 4px;
  color: #2176d2;
  font-size: 12px;
  font-weight: 700;
}

.consult-nav__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.consult-nav__close {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid #d7e5f0;
  border-radius: 8px;
  color: #132238;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.consult-nav__lead {
  margin: 0 0 16px;
  color: #4b6682;
  font-size: 14px;
  line-height: 1.65;
}

.consult-nav__links {
  display: grid;
  gap: 8px;
}

.consult-nav__link {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #2176d2;
  border-radius: 8px;
  color: #175da8;
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.consult-nav__link:hover {
  background: #e8f2fb;
}

.consult-nav__link--primary {
  color: #ffffff;
  background: #2176d2;
}

.consult-nav__link--primary:hover {
  color: #ffffff;
  background: #175da8;
}

.consult-nav__link span:last-child {
  white-space: nowrap;
}

.consult-nav__note {
  margin: 12px 0 0;
  color: #4b6682;
  font-size: 12px;
  line-height: 1.6;
}

.consult-nav button:focus-visible,
.consult-nav a:focus-visible {
  outline: 3px solid #2176d2;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .consult-nav {
    right: 16px;
    bottom: 16px;
  }

  .consult-nav__launcher {
    min-width: 72px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .consult-nav__launcher small {
    display: none;
  }

  .consult-nav__panel {
    bottom: 68px;
    padding: 20px;
  }

}

@media (min-width: 721px) and (max-width: 900px) {
  .consult-nav__launcher {
    min-width: 72px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .consult-nav__launcher small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consult-nav *,
  .consult-nav *::before,
  .consult-nav *::after {
    transition-duration: .01ms !important;
  }
}
