@charset "UTF-8";

/* <!--CAPTCHA認証-->  */
.captcha-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1050;
  justify-content: center;
  align-items: center;
}

.captcha-modal-content {
  background-color: #fff;
  padding: 25px 35px;
  border-radius: 8px;
  text-align: center;
  width: 90%;
  max-width: 450px;
}

.captcha-modal-content h2 {
  font-size: 1.2rem;
}

.captcha-image {
  margin: 20px 0;
  cursor: pointer;
  background: #f0f0f0;
  min-height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.captcha-image svg {
  border: 1px solid #ccc;
  border-radius: 4px;
}

#captchaInput {
  width: 100%;
  padding: 5px;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.captcha-buttons {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.captcha-buttons .btn {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  min-width: 0;
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s;
}

.captcha-buttons .btn.btn-cv {
  background-color: #00833e;
  border-color: #00833e;
  color: #fff;
}

.captcha-buttons .btn:hover {
  background-color: #e0e0e0;
}

.captcha-buttons .btn.btn-cv:hover {
  background-color: #006a32;
}

#captchaError {
  margin-top: 15px;
}

#captchaInput::placeholder {
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  #captchaInput::placeholder {
    font-size: 14px;
  }
}

/* <!--電子領収書取得フォーム画面-->  */
.terms {
  background-color: #f9f0d9;
  overflow-y: auto;
  height: 380px;
  border: 1px solid #f1e3d4;
  border-radius: 5px;
  margin-top: 50px;
}

.terms-inner {
  padding: 30px;
}

.terms-inner h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
}

.terms-inner p {
  font-weight: bold;
  margin-bottom: 10px;
}

.terms-inner ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.terms-inner ul li {
  padding-left: 1.5em;
  text-indent: -1.5em;
  margin-bottom: 1em;
}

.terms-inner ul li:last-child {
  margin-bottom: 0;
}

.terms-inner ul li::before {
  content: "●";
  color: #ff9b43;
  margin-right: 0.5em;
  font-size: 0.8em;
  vertical-align: middle;
}

.receipt-notice-box {
  margin-left: 1em;
  text-indent: 0;
}

.text-bold {
  font-weight: bold;
}

.email-subjects {
  padding: 2px;
  margin-top: 2px;
  margin-left: 1em;
  text-indent: 0;
  font-weight: bold;
}

#serverErrorContainer {
  text-align: center;
  margin-top: 15px;
  display: none;
}

/* <!--電子領収書確認画面--> */
#receiptModal .modal-dialog {
  margin: 0 auto;
  max-width: 700px;
}

.receipt-modal-body {
  text-align: center;
  padding: 15px 0;
}

.receipt-modal-icon {
  width: 90px;
  height: auto;
  margin-bottom: 10px;
}

.receipt-modal-amount {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.2;
}

.receipt-modal-details {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.receipt-modal-details dl {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  font-size: 0.875rem;
  border-bottom: 1px solid #eee;
  padding: 8px 0;
}

.receipt-modal-details dt {
  width: 35%;
  color: #666;
  padding-right: 10px;
  flex-shrink: 0;
}

.receipt-modal-details dd {
  width: 100%;
  font-weight: bold;
  word-break: break-all;
  padding-left: 40px;
}

.modal-footer.receipt-footer {
  border-top: none;
}

.modal-footer.receipt-footer .btn-list {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 15px;
}

.modal-footer.receipt-footer .btn-list-item {
  margin: 0;
}

.modal-footer.receipt-footer .btn span {
  white-space: nowrap;
  padding-left: 5px;
  padding-right: 5px;
  font-size: 0.9em;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  opacity: 0;
  transition: opacity 0.15s linear;
  display: none;
}

.modal-backdrop.show {
  opacity: 0.5;
  display: block;
}

.btn.is-loading .btn-text {
  visibility: hidden;
}

.modal-footer.receipt-footer .btn {
  width: 220px;
  flex-shrink: 0;
}

/* 電子領収書確認画面ダウンロードするボタンアニメーション */
.btn.is-loading {
  background-color: #00833e;
  border-color: #00833e;
  position: relative;
  color: transparent !important;
}

.btn.is-loading .btn-text {
  visibility: hidden;
}

.btn.is-loading::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.btn .btn-spinner {
  display: none !important;
}

@media (max-width: 767px) {
  .terms-inner {
    padding: 20px;
  }

  .modal-footer.receipt-footer .btn-list {
    gap: 10px;
  }

  .modal-footer.receipt-footer .btn-list-item {
    flex: 1;
    min-width: 0;
  }

  .modal-footer.receipt-footer .btn {
    width: 100%;
  }

  #receiptModal .modal-dialog {
    margin: 10px;
  }

  .modal-body.receipt-modal-body {
    padding: 0 15px;
  }

  .receipt-modal-icon {
    width: 70px;
  }

  .receipt-modal-amount {
    font-size: 1.8rem;
  }

  .receipt-modal-details dd {
    padding-left: 30px;
  }

  .receipt-modal-details dl {
    font-size: 0.8rem;
  }

  .modal-footer.receipt-footer {
    margin: 0;
  }
}
