@charset "utf-8";

/**
 * 記事
 */

.wp-posts {
  margin: 0 -6px;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.wp-posts li {
  width: calc(33.3% - 12px);
  background-color: #fff;
  margin: 0 6px 12px;
  display: flex;
  flex-direction: column;
}
.wp-posts li:nth-child(n+4):last-child {
  margin-right: auto;
}
.wp-posts li .thumbnail {
  width: 100%;
}
.wp-posts li .content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 224px;
  padding: 25px;
  flex: 1;
}
.wp-posts li .title {
  color: #002896;
  font-size: 21px;
  font-weight: bold;
  display: block;
  line-height: 1.4em;
}
.wp-posts li .title small {
  font-size: 14px;
  display: inline-block;
  vertical-align: middle;
  font-weight: normal;
}
.wp-posts li a.title:hover{
  opacity: 0.7;
  text-decoration: none;
}
.wp-posts li .meta {
  margin-top: auto;
}
.wp-posts li .category {
  color: #29a9e0;
  font-size: 14px;
  font-weight: lighter;
}
.wp-posts li .button {
  color: #fff;
  font-size: 14px;
  width: 127px;
  height: 28px;
  background: url(../images/btn_bg.png);
  background-size: cover;
  float: right;
  text-align: center;
  padding-top: 1px;
}
.wp-posts li .button:hover {
  opacity: 0.7;
  text-decoration: none;
}

@media screen and (max-width: 1365px) {
  .wp-posts li .title {
    font-size: 18px;
  }
}

@media screen and (max-width: 950px) {
  .wp-posts li .title {
    margin-bottom: 6vw;
  }
}

@media screen and (max-width: 768px) {
  .wp-posts{
    margin-left: 0;
    margin-right: 0;
  }
  .wp-posts li {
    width: 100%;
    max-width: 380px;
    margin: 0 0 20px;
  }
  .wp-posts li:nth-child(n+4):last-child {
    margin-right: 0;
  }
  .wp-posts li .content {
    min-height: auto;
  }
}

/**
 * 資料ダウンロードフォーム
 */

body.modal-download-open {
  height: 100vh;
  overflow-y: hidden;
}
#modal_download_overlay {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1042;
  overflow: hidden;
  position: fixed;
  background: #0b0b0b;
  opacity: 0.8;
  display: none;
}
#modal_download_overlay.disabled{
  pointer-events: none;
}
#modal_download_close{
  background: transparent;
  border: none;
  -webkit-appearance: none;
  outline: none;
  padding: 0;
  position: absolute;
  right: 15px;
  top: 19px;
  cursor: pointer;
}
#modal_download_close:hover {
  opacity: 0.7;
  text-decoration: none;
}
#modal_download_form {
  position: fixed;
  z-index: 1043;
  width: 95%;
  top: 3vh;
  max-width: 530px;
  background: #fff;
  display: none;
  border-radius: 5px;
  overflow: hidden;
}
#modal_download_form ::-webkit-scrollbar {
  width: 8px;
}
#modal_download_form ::-webkit-scrollbar-track {
  border-radius: 5px;
}
#modal_download_form ::-webkit-scrollbar-thumb {
  background-color: #002896;
  border-radius: 5px;
}
#modal_download_form .modal-inner {
  overflow-y: scroll;
  max-height: 86vh;
  font-size: 14px;
}
#modal_download_form h2 {
  color: inherit;
  border-bottom: 2px #002896 solid;
  padding: 0;
  font-size: 22px;
  padding: 10px 35px;
  font-weight: bold;
}
#modal_download_form .button {
  border-radius: 5px;
  display: block;
  width: 100%;
  border: none;
  border-radius: 3px;
  font-family: inherit;
  font-weight: bold;
  font-size: inherit;
  margin: 0 auto;
  cursor: pointer;
  background: #002896;
  color: #fff;
  padding: 16px 0;
  text-align: center;
  margin: 0 auto;
}
#modal_download_form .button:hover {
  opacity: 0.7;
  text-decoration: none;
}
#modal_download_form .button[disabled] {
  opacity: 0.7;
  pointer-events: none;
  cursor: not-allowed;
}

/*入力画面*/
#modal_download_form .form-input {
  padding: 30px 35px;
}
#modal_download_form .form-input .input-group {
  position: relative;
  margin-bottom: 15px;
  transition: padding .3s;
}
#modal_download_form .form-input .input-group:first-of-type {
  margin-top: 15px;
}
#modal_download_form .form-input .input-group::after {
  content: '';
  position: absolute;
  background: url(../images/icon_form_validate.png) no-repeat center/contain;
  width: 21px;
  height: 21px;
  background-size: auto 100%;
  right: 10px;
  top: 24px;
  opacity: 0;
}
#modal_download_form .form-input .input-group.focus{
  padding-top: 15px;
}
#modal_download_form .form-input .input-group.valid::after {
  background-position: left;
  opacity: 1;
}
#modal_download_form .form-input .input-group.invalid::after {
  background-position: right;
  opacity: 1;
}
#modal_download_form .form-input .input-group input {
  border: 1px #D1D1D1 solid;
  border-radius: 3px;
  padding: 10px 40px 10px 10px;
  width: 100%;
}
#modal_download_form .form-input .input-group.invalid input {
  border-color: #bf0000;
}
#modal_download_form .form-input .input-group input:focus {
  outline: 0;
  border-color: #1592E6;
  box-shadow: 0 0 0 2px rgba(208, 233, 250, .8);
}
#modal_download_form .form-input .input-group.invalid input:focus {
  border-color: #bf0000;
  box-shadow: 0 0 0 2px rgba(255, 222, 222, .8);
}
#modal_download_form .form-input .input-group label {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding-left: 15px;
  color: #666;
  transition: .2s;
  cursor: text;
  pointer-events: none;
}
#modal_download_form .form-input .input-group.focus label {
  right: auto;
  bottom: auto;
  padding-left: 0;
  top: -10px;
  font-size: 14px;
  color: inherit;
  pointer-events: auto;
}
#modal_download_form .form-input .input-group label span {
  color: #bf0000;
}
#modal_download_form .form-input .input-group .error {
  font-size: 12px;
  color: #bf0000;
  font-weight: bold;
}
#modal_download_form .form-input .cookie {
  line-height: 1.3;
  margin-bottom: 25px;
  position: relative;
  padding-right: 25px;
}
#modal_download_form .form-input .cookie label {
  padding-left: 1em;
  display: inline-block;
  text-indent: -1em;
  line-height: 1.3;
  cursor: pointer;
}
#modal_download_form .form-input .cookie a {
  position: absolute;
  right: 0;
  top: 0
}
#modal_download_form .form-input .cookie .tooltip {
  position: absolute;
  right: -5px;
  top: 35px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 5px;
  font-size: 12px;
  border-radius: 4px;
  width: 190px;
  display: none;
}
#modal_download_form .form-input .cookie .tooltip::before{
  content: '';
  position: absolute;
  right: 10px;
  top: -10px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 7px 10px 7px;
  border-color: transparent transparent rgba(0,0,0,0.8) transparent;
}
#modal_download_form .form-input .cookie a:hover + .tooltip {
  display: block;
}
#modal_download_form .form-input .privacy h3 {
  font-size: 14px;
  font-weight: bold;
  color: inherit;
  margin: 0;
  text-align: left;
}
#modal_download_form .form-input .privacy {
  margin-bottom: 20px;
}
#modal_download_form .form-input .privacy .scroll {
  border: 1px solid #d1d1d1;
  padding: 5px 15px;
  overflow-y: scroll;
  height: 135px;
  border-radius: 3px;
  font-size: 12px;
}
#modal_download_form .form-input .privacy a {
  color: #002896;
}
#modal_download_form .form-input .button-area {
  display: flex;
  flex-flow: row-reverse;
  justify-content: space-between;
}
#modal_download_form .form-input .button.confirm {
  flex: 1;
}
#modal_download_form .form-input .button.reset {
  color: #002896;
  width: 30%;
  border: 1px #002896 solid;
  background: none;
  margin-right: 20px;
}

/*確認画面*/
#modal_download_form .form-confirm {
  padding: 20px 50px;
  display: none;
}
#modal_download_form .form-confirm dl {
  margin: 30px 0;
}
#modal_download_form .form-confirm dt {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  background: #eee;
  padding: 3px 10px;
}
#modal_download_form .form-confirm dt span {
  color: #bf0000;
}
#modal_download_form .form-confirm dd {
  padding: 3px 10px;
}
#modal_download_form .form-confirm dd:not(:last-of-type) {
  margin-bottom: 15px;
}
#modal_download_form .form-confirm .error {
  font-size: 12px;
  color: #bf0000;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}
#modal_download_form .form-confirm .button.submit {
  max-width: 280px;
}
#modal_download_form .form-confirm .button.back {
  color: #002896;
  max-width: 200px;
  border: 1px #002896 solid;
  padding: 7px 0;
  background: none;
  margin-top: 20px;
}

/*完了画面*/
#modal_download_form .form-complete {
  padding: 20px 50px;
  display: none;
}
#modal_download_form .form-complete .button{
  margin-top: 40px;
  font-size: 20px;
}

@media screen and (max-width: 768px) {
  #modal_download_close{
    right: 10px;
    top: 11px;
  }
  #modal_download_form {
    font-size: 14px;
  }
  #modal_download_form h2{
    padding: 10px 15px;
    font-size: 18px;
  }
  #modal_download_form .form-input,
  #modal_download_form .form-confirm,
  #modal_download_form .form-complete {
    padding: 10px 15px 20px;
  }
  #modal_download_form .form-input .button-area {
    display: block;
  }
  #modal_download_form .form-input .button.confirm {
    max-width: 280px;
    margin-bottom: 20px;
  }
  #modal_download_form .form-input .button.reset {
    max-width: 200px;
    padding: 7px 0;
    margin: 0 auto;
  }
  #modal_download_form .form-confirm dt {
    margin-bottom: 5px;
  }
  #modal_download_form .form-confirm dd:not(:last-of-type) {
    margin-bottom: 5px;
  }
  #modal_download_form .form-complete .button{
    font-size: 18px;
  }
}

/**
 * YouTubeモーダル
 */

#modal_download_youtube {
  position: fixed;
  z-index: 1043;
  width: 95%;
  max-width: 900px;
  background: #fff;
  display: none;
}
#modal_download_youtube #youtube_player {
  position: relative;
}
#modal_download_youtube #youtube_player::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}