@charset 'UTF-8';

/* 共通 */

.download {
  margin-bottom: 80px;
}

.download__inner {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1220px;
  width: calc(100% - 48px);
}


/* 一覧 */

.download__category {
  display: flex;
  column-gap: 24px;
  justify-content: space-between;
  list-style: none;
  margin: 0 auto 60px;
  padding: 0;
}

.download__category li {
  flex: 1;
}

.download__category li a {
  border: 1px solid var(--color-bg-primary);
  border-radius: 3px;
  box-sizing: border-box;
  box-shadow: 0 0 15px 1px rgba(49, 110, 178, 0.1);
  color: var(--color-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  height: 80px;
  text-align: center;
  transition: .4s;
}

.download__category li.selected a,
.download__category li a:hover {
  background: var(--color-bg-primary);
  color: #fff;
}

.download__search {
  background-color: #F5F9FC;
  margin: 0 0 56px;
  padding: 16px;
}

#search-form {
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  width: 480px;
}

#search-form-input {
  border: 1px solid #aaa;
  box-sizing: border-box;
  font-family: var(--font-family-base);
  font-size: 16px;
  padding: 1em 43px 1em 16px;
  width: 100%;
}

#search-form input[type="submit"] {
  background: url(../image/common/ico_search.svg) 8px 50% no-repeat;
  border: none;
  background-size: 18px auto;
  color: #fff;
  cursor: pointer;
  height: 100%;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  text-indent: 9999px;
  white-space: nowrap;
  width: 43px;
  z-index: 2;
}

.download__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 40px;
  width: 100%;
}

.download__container::after {
  content: "";
  display: block;
  max-width: 31%;
  width: 360px;
}

.download__box {
  max-width: 31%;
  width: 360px;
}

.download__box a {
  display: block;
  transition: .2s;
}

.download__box a:hover {
  opacity: .8;
}

.download__box--thumbnail {
  aspect-ratio: 360 / 225;
  border: 1px solid #D8DFE3;
  box-shadow: 0 0 15px 1px rgba(49, 110, 178, 0.1);
  overflow: hidden;
}

.download__box--thumbnail img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.download__box--title {
  font-size: 16px;
  font-weight: 700;
  margin: 18px 0 10px;
  padding-bottom: 0;
}

.download__box--info {
  color: #66737D;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.download__box--tag {
  border: 1px solid #D8DFE3;
  color: #66737D;
  display: block;
  font-size: 12px;
  margin: 0 4px 4px 0;
  padding: 2px 16px 3px;
  border-radius: 3px;
}

.download__pager {
  margin-top: 60px;
}

.wp-pagenavi {
  display: flex;
  column-gap: .5em;
  justify-content: center;
}

.wp-pagenavi .current,
.wp-pagenavi a {
  border: 1px solid var(--color-bg-primary);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  height: 36px;
  width: 36px;
}

.wp-pagenavi .current {
  background-color: var(--color-bg-primary);
  color: #fff;
}

.wp-pagenavi a {
  color: var(--color-bg-primary);
  transition: .2s;
}

.wp-pagenavi a:hover {
  background-color: var(--color-bg-primary);
  color: #fff;
}


/* 記事 */

.single-download .download__inner {
  padding-top: 160px;
}

.download__post {
  display: flex;
  align-items: flex-start;
  column-gap: 60px;
  flex-wrap: wrap;
  row-gap: 60px;
  justify-content: space-between;
}

.download__contents {
  flex: 1;
}

.download__posttitle {
  border-bottom: 1px solid #2F3740;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 1.5em;
  padding-bottom: 16px;
}

.download__info {
  display: flex;
  align-items: center;
  column-gap: 1.5em;
  margin-bottom: .75em;
}

.download__posttype {
  color: var(--color-bg-primary);
  font-weight: 700;
}

.download__tag {
  border: 1px solid #D8DFE3;
  color: #66737D;
  display: block;
  font-size: 12px;
  margin: 0 4px 4px 0;
  padding: 2px 16px 3px;
  border-radius: 3px;
}

.download__recommend {
  background-color: #F5F9FC;
  border: 2px solid #2F3740;
  margin-top: 30px;
  padding: 35px 40px;
}

.download__recommend--title {
  border: 0;
  color: #2F3740;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 1em;
  padding: 0;
  text-align: center;
}

.download__recommend--list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.download__recommend--list li {
  color: #66737D;
  font-weight: 700;
  line-height: 1.75;
  margin-bottom: .5em;
  margin-left: 30px;
  text-indent: -30px;
}

.download__recommend--list li:last-child {
  margin-bottom: 0;
}

.download__recommend--list li::before {
  content: "";
  background: url(../image/common/ico_checkbox.svg) no-repeat center center / 14px 14px;
  display: inline-block;
  height: 14px;
  margin-right: 16px;
  width: 14px;
}

.download__link {
  display: none;
}

.download__sample {
  margin-top: 60px;
}

.download__sample--title {
  border: 0;
  color: #2F3740;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 1.5em;
  padding: 0;
}

.download__sample--container {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 20px;
}

.download__sample--image {
  background-color: #fff;
  border: 1px solid #E6E6E6;
  padding: 5px;
  width: 32.5%;
}

.download__sample--image img {
  display: block;
  height: auto;
  width: 100%;
}

.download__form {
  background-color: #F5F9FC;
  padding: 50px 40px;
  max-width: 100%;
  width: 400px;
}

.download__form .download__form--title {
  border: 0;
  color: #2F3740;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 1.25em;
  padding: 0;
  text-align: center;
}

.download_form--list.tbr {
  border-top: 0;
}

.download__form--list dt {
  color: #66737D;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: .25em;
}

.download__form--list dd {
  margin-bottom: 1.25em;
}

.wpcf7-form .download__form--list.tbr input[type="text"],
.wpcf7-form .download__form--list.tbr input[type="email"],
.wpcf7-form .download__form--list.tbr input[type="tel"] {
  background-color: #fff;
  border: 1px solid #EAEAEA;
  border-radius: 0;
  box-sizing: border-box;
  font-family: var(--font-family-base);
  font-size: 16px;
  padding: .75em;
  width: 100%;
}

.download__form--list .wpcf7-list-item {
  line-height: 2;
  margin: 0 1em 0 0;
}

.download__form--list .wpcf7-list-item-label {
  vertical-align: middle;
}

.download__form--list .required {
  border: 1px solid #DE7358;
  color: #DE7358;
  display: inline-block;
  font-weight: bold;
  font-size: 1.0rem;
  margin-left: 1em;
  padding: 0 3px;
  vertical-align: .25em;
}

.download__form .accept {
  color: #66737D;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.download__form .accept .wpcf7-list-item {
  margin: 0;
}

.download__form .accept a {
  text-decoration: underline;
}

.download__form .accept small {
  color: #66737D;
  display: block;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
}

.download__form--btnarea {
  margin-top: 30px;
}

.download__form .wpcf7-submit {
  background-color: #036EB8;
  border-color: #036EB8;
  border-style: solid;
  border-width: 1px;
  border-radius: 3px;
  box-shadow: 2px 2px 15px 3px rgba(49, 110, 178, 0.1);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-family-base);
  font-size: 16px;
  max-width: 100%;
  min-width: inherit;
  padding: 1em;
  text-align: center;
  transition: .2s;
  width: 360px;
}

.download__form .wpcf7-submit:hover {
  opacity: .7;
}

.download__form .wpcf7 .wpcf7-submit:disabled {
  background-color: #ccc;
  border-color: #ccc;
}

.download__form .wpcf7-form.sent .accept {
  display: none;
}

.download__form .wpcf7-form.sent .download__form--btnarea {
  display: none;
}

.download__form .wpcf7 form.sent .wpcf7-response-output {
  display: block !important;
}


@media screen and (max-width: 768px) {
  .download {
    margin-bottom: 40px;
  }
  .download__category {
    column-gap: 4%;
    flex-wrap: wrap;
    row-gap: 12px;
    margin-bottom: 40px;
  }
  .download__category li {
    flex: auto;
    width: 48%;
  }
  .download__category li a {
    height: 100%;
    padding: .5em 1em;
  }
  .download__search {
    margin-bottom: 40px;
  }
  #search-form-input {
    padding: .75em 43px .75em .75em;
  }
  .download__container::after {
    content: none;
  }
  .download__box {
    max-width: inherit;
    width: 100%;
  }
  .download__box_title {
    font-size: 14px;
  }
  .download__box_tag {
    font-size: 10px;
  }
  .single-download .download__inner {
    padding-top: 80px;
  }
  .download__contents {
    flex: auto;
    width: 100%;
  }
  .download__posttitle {
    font-size: 20px;
  }
  .download__tag {
    font-size: 10px;
  }
  .download__recommend {
    margin-top: 20px;
    padding: 30px 15px;
  }
  .download__recommend--list li {
    color: #66737D;
    font-size: 16px;
  }
  .download__link {
    display: block;
    margin: 1.5em 0;
  }
  .download__link a {
    color: var(--color-bg-primary);
    text-decoration: underline;
  }
  .download__sample {
    margin-top: 40px;
  }
  .download__sample--image {
    width: 100%;
  }
  .download__form {
    padding: 50px 20px 40px;
    width: 100%;
  }
  .download__form--btnarea {
    margin-top: 20px;
  }
}
