/**
 * フロントページ：How to search モーダル
 */
.audition-flow-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 16px;
  box-sizing: border-box;
}

.audition-flow-modal.is-hidden {
  display: none;
}

.audition-flow-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.audition-flow-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: min(1160px, 100%);
  max-height: min(92vh, 900px);
  width: 100%;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.audition-flow-modal__scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  background: transparent;
}

/* #flow 本体は style.css の #flow ルールを流用。モーダル内だけ上書き */
#audition-flow-modal .audition-flow-modal__flow {
  margin: 0 auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* destyle の上書き対策（モーダル内リンク下線） */
#audition-flow-modal #flow-modal ol > li p a {
  text-decoration: underline !important;
  text-decoration-skip-ink: none;
  text-underline-offset: 0.12em;
}

.audition-flow-modal__card {
  position: relative;
  z-index: 0;
  display: inline-flex;
  padding: 64px 32px 48px 32px;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  border-radius: 32px;
  border: 2px solid #fff;
  background: #0aab93;
  box-sizing: border-box;
  max-width: 100%;
}

@media screen and (max-width: 640px) {
  .audition-flow-modal__card {
    /* PC指定のだいたい半分 */
    padding: 32px 16px 24px 16px;
    gap: 16px;
    border-radius: 24px;
  }
}

#audition-flow-modal #flow-modal>ol {
  margin: 0;
}

.audition-flow-modal__logo {
  position: relative;
  z-index: 1;
  margin: 0 auto -40px;
  text-align: center;
}

.audition-flow-modal__logo img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 307px;
  width: 100%;
  height: auto;
}

.audition-flow-modal__footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
}

.audition-flow-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.audition-flow-modal__close:hover {
  opacity: 0.85;
}

.audition-flow-modal__close:active {
  transform: scale(0.98);
}

.audition-flow-modal__close img {
  display: block;
  flex-shrink: 0;
}

.audition-flow-modal__close span {
  line-height: 1;
}
