/**
 * Bootstrap 5 styles for public forms and the form preview page.
 *
 * Bootstrap itself is loaded before this file. This file contains only
 * form-specific styles and narrowly scoped compatibility for legacy classes
 * that are still emitted by form.php and form_sample.php.
 */
html {
  height: 100%;
}

body {
  height: 100%;
  font-family: 'Noto Sans JP', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
  font-size: 13px;
  line-height: 1.42857143;
  color: #333333;
  background-color: #ffffff;
}

a {
  color: #428bca;
}

a:hover,
a:focus {
  color: #2a6496;
}

img {
  max-width: 100%;
  height: auto;
}

/* Preserve the public-form widths used by the former Bootstrap 3 build. */
#K3_container.container {
  max-width: none;
  padding-right: 0;
  padding-left: 0;
  background-color: #ffffff;
  min-height: 100%;
}

/*@media (min-width: 768px) {*/
/*  #K3_container.container {*/
/*    !*width: 50%;*!*/
/*  }*/
/*}*/

/*@media (min-width: 992px) {*/
/*  #K3_container.container {*/
/*    !*width: 50%;*!*/
/*  }*/
/*}*/

/*@media (min-width: 1200px) {*/
/*  #K3_container.container {*/
/*    !*width: 50%;*!*/
/*  }*/
/*}*/

/*@media (min-width: 1600px) {*/
/*  #K3_container.container {*/
/*    !*width: 50%;*!*/
/*  }*/
/*}*/

#K3_content {
  height: 100%;
  margin: 0 auto;
}

#K3_header {
  display: table;
  clear: both;
  margin: 40px auto 0;
  table-layout: fixed;
}

#K3_header_inner {
  padding: 15px 15px 14px 0;
}

#K3_footer {
  display: table;
  clear: both;
  margin: 0 auto 40px;
  table-layout: fixed;
}

#K3_footer_inner {
  padding: 14px 15px 15px 0;
}

#K3_horizontal_left {
  float: left;
  width: 50%;
  padding-right: 2%;
}

#K3_horizontal_right {
  float: right;
  width: 50%;
  padding-left: 2%;
  margin-top: 15px;
}

@media (max-width: 767.98px) {
  #K3_content {
    padding: 0 15px;
  }

  #K3_header,
  #K3_footer {
    margin: 0 !important;
  }

  #K3_header_inner,
  #K3_footer_inner {
    padding-right: 15px;
    padding-left: 15px;
  }

  #K3_horizontal_left,
  #K3_horizontal_right {
    float: none;
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  #K3_horizontal_right {
    margin-top: 30px;
  }
}

hr.upper {
  margin: 0 auto 18px !important;
}

hr.lower {
  margin: 18px auto 0 !important;
}

.nomargin {
  margin: 0 !important;
}

.form-headline {
  margin-top: 30px;
}

.form-description {
  margin-top: 15px;
}

.control-group {
  margin: 0 0 20px;
}

.control-label {
  display: block;
  margin-right: 10px;
  margin-bottom: 4px;
  font-weight: 700;
}

.help-block {
  display: block;
  margin-top: 5px;
  margin-bottom: 10px;
  color: #737373;
}

.form-control {
  height: 45px;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  font-size: 15px;
}

textarea.form-control,
select.form-control[multiple],
select.form-control[size] {
  height: auto;
}

/* Legacy checkbox/radio wrappers remain until the form markup is migrated. */
.radio,
.checkbox {
  position: relative;
  display: block;
  margin-top: 0;
  margin-right: 10px;
  margin-bottom: 1px;
  font-size: 15px;
  vertical-align: baseline;
}

.radio label,
.checkbox label {
  min-height: 18px;
  padding-left: 20px;
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
}

.radio input[type='radio'],
.checkbox input[type='checkbox'] {
  margin-left: -20px;
  margin-right: 0.4em;
}

.btn {
  padding: 10px 16px;
  border-radius: 2px;
  font-size: 15px !important;
}

/* btn-default was removed in BS5; keep its form-preview appearance locally. */
.btn-default {
  color: #333333;
  background-color: #efefef;
  border-color: #cfcfcf;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active {
  color: #333333;
  background-color: #d6d6d6;
  border-color: #b0b0b0;
}

.btn-primary {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #428bca;
  --bs-btn-border-color: #357ebd;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #3071a9;
  --bs-btn-hover-border-color: #285e8e;
}

.well,
.well-form-only {
  min-height: 20px;
  padding: 19px;
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

.well {
  margin-bottom: 20px;
  background-color: #fcfcfc;
  border-color: #e0e0e0;
  border-radius: 2px;
}

.well-form-only {
  margin-bottom: 5px;
}

.jumbotron {
  padding-top: 30px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  color: inherit;
  background-color: #eeeeee;
}

.jumbotron h1,
.jumbotron .h1 {
  color: inherit;
}

.jumbotron p {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 200;
}

.jumbotron > hr {
  border-top-color: #d5d5d5;
}

.container .jumbotron,
.container-fluid .jumbotron {
  padding-right: 15px;
  padding-left: 15px;
  border-radius: 6px;
}

.jumbotron .container {
  max-width: 100%;
}

@media screen and (min-width: 768px) {
  .jumbotron {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .container .jumbotron,
  .container-fluid .jumbotron {
    padding-right: 60px;
    padding-left: 60px;
  }

  .jumbotron h1,
  .jumbotron .h1 {
    font-size: 59px;
  }
}

.badge-info,
.text-bg-info {
  color: #ffffff !important;
  background-color: #5bc0de !important;
}

.badge-warning,
.text-bg-warning {
  color: #212529 !important;
  background-color: #f0ad4e !important;
}

.label-danger {
  background-color: #df6f5f;
}

.label-warning {
  background-color: #f5b555;
}

.label-fit {
  padding: 0.05em 0.25em 0.1em;
  margin-right: 0.3em;
  border-radius: 0.3em;
  color: #ffffff;
  font-size: 0.8em;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
}

.note {
  font-size: 0.8em;
  line-height: 1.2em;
}

label.error {
  color: #b80000;
  font-size: 0.9em;
  font-style: oblique;
  font-weight: 700;
}

.required-sign {
  color: #ff0000;
  font-size: 1.2em;
  line-height: 1em;
  vertical-align: middle;
}

span.form-error {
  color: #b94a48;
  font-size: 0.8em;
  font-style: italic;
  font-weight: 700;
  margin-left: 1em;
}

.privacy_policy {
  max-height: 20em;
  overflow: auto;
}

#check_privacy_policy_area {
  position: relative;
  margin-bottom: 30px;
}

.privacy-policy-message {
  margin-bottom: 20px;
}

.match-offline__title {
  margin: 60px 0 25px;
}

.match-offline__table {
  margin-bottom: 30px;
}

.match-offline__table td,
.any-match-offline__table td {
  vertical-align: middle !important;
}

.any-match-offline__table input[type='checkbox'] {
  margin: 0 5px;
  text-align: center;
  vertical-align: inherit;
  transform: scale(1.4);
}

.action-button {
  margin-top: 60px;
}

.ui-autocomplete {
  z-index: 1100;
  max-height: 300px;
  padding-right: 20px;
  overflow-x: hidden;
  overflow-y: auto;
}

.datepicker-holiday a,
.ui-datepicker-week-end:first-child {
  color: #ff0000 !important;
}

.ui-datepicker-week-end:last-child {
  color: #0000ff !important;
}

.text-top {
  vertical-align: text-top;
}

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

.right {
  float: right;
}

.inline {
  display: inline;
}

.mright1 {
  margin-right: 1%;
}

.mbottom-well {
  margin-bottom: 18px;
}

.mbottom2em {
  margin-bottom: 2em;
}

.w100 {
  width: 100% !important;
}

.w50 {
  width: 50% !important;
}

.w49 {
  width: 49% !important;
}

.w30 {
  width: 30% !important;
}

.w1 {
  width: 1% !important;
}

/* bootstrap-select copies form-control onto its generated wrapper. */
#form-validation .bootstrap-select.form-control {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  margin-bottom: 0;
  background-color: transparent;
  border: 0;
  box-shadow: none;
}

#form-validation .bootstrap-select.form-control > .dropdown-toggle {
  width: 100%;
  color: #555555;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

#form-validation .bootstrap-select.form-control > .dropdown-toggle.bs-placeholder,
#form-validation .bootstrap-select.form-control .filter-option,
#form-validation .bootstrap-select.form-control .filter-option-inner {
  color: #555555;
  opacity: 1;
}
