@charset "utf-8";
/* ---------------------------------------------------------------------------
  カスタム css
--------------------------------------------------------------------------- */

/* ------------------------------
  エレメント指定
------------------------------ */
h1,h2,h3,h4,h5,h6,p,li,dt,dd,th,td,address,label,section,article,aside,figure,figcaption,table,div {
  word-wrap: break-word;
  word-break: break-all;
}

/* ------------------------------
  読者投稿フォーム
------------------------------ */
.reader-container {
  max-width: 860px;
}

/* ------------------------------
  フォントサイズ
------------------------------ */
.f-size11px {
  font-size: 11px;
}

.f-size12px {
  font-size: 12px;
}

/* ------------------------------
  マージン
------------------------------ */
.ml-3px {
  margin-left: 3px;
}

/* ------------------------------
  フォーム部品
------------------------------ */
.custom-file-label {
  white-space: nowrap;
}

/* ------------------------------
  エラー
------------------------------ */
.err {
  width: 100%;
  margin-top: 0.25rem;
  font-size: 80%;
  color: #dc3545;
}

.valid-group.is-invalid .form-group ~ .invalid-feedback,
.valid-group.is-invalid ~ .invalid-feedback,
.valid-group.is-invalid .invalid-feedback {
  display: block;
}

.valid-group.is-invalid .custom-file-input ~ .custom-file-label,
.valid-group.is-invalid .custom-control-input ~ .custom-control-label::before,
.valid-group.is-invalid .custom-file-input ~ .custom-control-label::before {
  border-color: #dc3545;
}

.valid-group.is-invalid .custom-control-input ~ .custom-control-label {
  color: #dc3545;
}

.valid-group.is-invalid textarea.form-control {
  padding-right: calc(1.5em + .75rem);
  background-position: top calc(.375em + .1875rem) right calc(.375em + .1875rem);
}

.valid-group.is-invalid .custom-select {
  border-color: #dc3545;
  padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem);
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E") #fff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.valid-group.is-invalid .form-control {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
  background-repeat: no-repeat;
  background-position: center right calc(0.375em + 0.1875rem);
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/*　エラーから通常に戻る　*/
.valid-group.is-invalid .custom-control-input:checked ~ .custom-control-label::before {
  border-color: #007bff;
}

.valid-group.is-invalid .custom-control-input:checked ~ .custom-control-label {
  color: #212529;
}

.valid-group.is-invalid .check-em:checked + .custom-control-label {
  color: #FFF;
  background-color: #007bff;
}

.valid-group.is-invalid .check-em:checked + label::before {
  border-color: #007bff;
}

/* ------------------------------
  検証済み
------------------------------ */
/* 緑 */
.valid-group.validated .custom-control-input ~ .custom-control-label {
  color: #28a745;
}

.valid-group.validated .custom-file-input ~ .custom-file-label,
.valid-group.validated .custom-control-input ~ .custom-control-label::before,
.valid-group.validated .custom-file-input ~ .custom-control-label::before {
  border-color: #34ce57;
}

.valid-group.validated .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #34ce57;
}

.valid-group.validated .custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

.valid-group.validated .custom-radio .custom-control-input:checked ~ .custom-control-label::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.valid-group.validated textarea.form-control {
  padding-right: calc(1.5em + .75rem);
  background-position: top calc(.375em + .1875rem) right calc(.375em + .1875rem);
}

.valid-group.validated .custom-select {
  border-color: #28a745;
  padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem);
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.valid-group.validated .form-control {
  border-color: #28a745;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center right calc(0.375em + 0.1875rem);
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* エラーからバリデートに変化 */
.valid-group.validated .check-em:checked + label {
  color: #FFF;
  background-color: #28a745;
}

/* ------------------------------
  レスポンシブ
------------------------------ */
@media (min-width: 600px) {
  .r-pl01 {
    padding-left: .5rem!important;
  }
  .line-block {
    display: block !important;
  }
}
@media (min-width: 768px) {
  .r-w01 {
    width: 130px;
  }
}

/* EoF */
