.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-indicator {
  padding: 0.5rem 1rem;
  background-color: #e0e0e0;
  color: #555;
  text-align: center;
  position: relative;
  /* 右側に矢印部分を作る */
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
  margin-right: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.step-indicator.active {
  background-color: #1EA235;
  color: white;
}

.required-indicator {
  color: #e63946;
  margin-left: 0.25em;
  font-size: 0.4em;
}

.hide-required .required-indicator {
  display: none;
}

.popover-card {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 0.375rem;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 300px;
  max-width: 90vw;
  z-index: 50;
}

@media (max-width: 640px) {
  .popover-card {
    position: fixed;
    top: 50%;
    left: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    max-height: 80vh;
    overflow-y: auto;
  }
}

.flatpickr-current-month .arrowUp,
.flatpickr-current-month .arrowDown {
  display: none !important;
}

.flatpickr-japanese-era {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.flatpickr-calendar .flatpickr-months {
  padding: 0.45rem 0.75rem 0.4rem;
  height: auto;
}


.flatpickr-calendar .flatpickr-months .flatpickr-month {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 3.5rem;
  overflow: visible;
}

.flatpickr-calendar .flatpickr-current-month {
  position: static;
  height: auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  text-align: center;
}

.flatpickr-calendar .flatpickr-months .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: 3.5rem;
  padding: 0 0.5rem;
  top: 0;
}

.flatpickr-calendar .flatpickr-current-month .numInputWrapper {
  width: auto;
  min-width: 7.25rem;
  max-width: 8rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.flatpickr-year-dropdown {
  display: block;
  width: auto;
}

.flatpickr-year-era-hint {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
  text-align: left;
}

.fiscal-year-desktop {
  display: none;
}

.fiscal-year-mobile {
  display: inline;
}

@media (min-width: 640px) {
  .fiscal-year-desktop {
    display: inline;
  }

  .fiscal-year-mobile {
    display: none;
  }
}
