/*
Theme Name: リリーフナース
Author: e-nets.biz
Description:
Version: 1
*/

/* =============================================================

WordPressやプラグインなどの調整

============================================================= */

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.17em;
}

.wp-block-wrapper {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
  font-size: 18px;

  & ul,
  & ol {
    padding-left: 1.5em;
  }

  & li {
    margin-top: 0.5em;
  }

  & p {
    margin-top: 0.5em;
    line-height: 1.8em;
  }

  & pre {
    white-space: pre-wrap;
  }

  & q {
    font-style: italic;
    color: #ccc;

    &::before {
      content: "「"; /* qの前を「に */
    }

    &::after {
      content: "」"; /* qの後を」に */
    }
  }
}

@media only screen and (max-width: 767.98px) {
  .wp-block-wrapper {
    font-size: 16px;
  }
}

/* 画像 */
.wp-block-image figcaption {
  font-size: 1em !important;
}

/* テーブル */
.wp-block-table {
  & table {
    padding: 0;
    margin: 20px 0;
    border-collapse: collapse;
  }

  & th,
  & td {
    padding: 0.5em;
    border: 1px solid #ccc;
  }

  & th {
    background-color: #e2f3ff;
  }
}

.wp-element-button,
.wp-block-button__link {
  padding: 0.25em 0.5em !important;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 5px;
}

/* ボタン */
.wp-element-button {
  background-color: var(--color-sub-2) !important;
}

/* 検索 */
input.wp-block-search__input {
  margin: 0;
}

/* ウィジェット */
.wp-block-group {
  & .wp-block-archives-dropdown,
  & .wp-block-tag-cloud {
    margin-top: 0;
  }
}

/* フォーム
============================================================= */
.wpcf7 ul {
  width: 100%;
  max-width: 768px;
  padding: 0;
  margin: 0 auto;
  font-size: 16px;
  list-style: none;
}

.wpcf7 li {
  width: 100%;
  margin: 30px 0 0 !important;
}

.wpcf7 li > label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  line-height: 1em;
  white-space: nowrap;
}

.wpcf7 label > span {
  letter-spacing: 0.05em;
  vertical-align: -0.1em;
}

.wpcf7 .wpcf7-text,
.wpcf7 .wpcf7-textarea {
  width: 100%;
  padding: 0.5em;
  resize: vertical;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.wpcf7-list-item.first {
  margin-left: 0;
}

.wpcf7-text:focus,
.wpcf7-textarea:focus {
  padding: calc(0.5em - 1px);
}

.wpcf7 .req {
  display: inline-block;
  padding: 0.2em 0.5em;
  margin-right: 10px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5em;
  color: #fff;
  text-align: center;
  background-color: var(--color-accent);
  border-radius: 3px;
}

.wpcf7 input[name="your-acceptance"]{
  vertical-align: -3px;
  accent-color: var(--color-main);
}

.wpcf7 .wpcf7-submit {
  display: block;
  width: fit-content;
  padding: 0.5em 1em;
  margin: 20px auto 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-indent: 0.05em;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
  background-color: var(--color-main);
  border: none;
  border: 3px solid var(--color-main);
  border-radius: 10px;
  transition: all ease 0.2s;
}

.wpcf7 .wpcf7-submit:hover {
  color: var(--color-main);
  background-color: #fff;
  opacity: 1;
}

.wpcf7 .wpcf7-submit:disabled {
  color: #fff;
  background-color: #bbb;
  border: 3px solid #bbb;
}

/* 未入力表示 */
.wpcf7-not-valid-tip {
  margin-top: 10px;
}

/* 送信メッセージ表示 */
.wpcf7-response-output {
  display: block;
  width: 100%;
  max-width: 768px;
  padding: 0.5em !important;
  margin: 20px auto 0 !important;
  text-align: center;
}

.wpcf7-spinner {
  display: block !important;
  margin: 20px auto !important;
}

/* really-simple-captcha */
.captcha-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.captcha-wrapper .wpcf7-captchac {
  display: block;
  width: auto;
  height: 2em;
}

.captcha-wrapper .wpcf7-captchar {
  margin: 0;
}

/* page navi
============================================================= */
.wp-pagenavi {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 80px 0 0;
  clear: both;
  font-size: 20px;

  & a,
  /* stylelint-disable-next-line no-descending-specificity */
  & span {
    padding: 0.25em 0.4em;
    margin: 2px;
    text-decoration: none;
    background-color: #f3f5f4;
    border: 1px solid #efefef;
  }

  & .current {
    font-weight: bold;
    color: #fff;
    background-color: #333;
  }

  & a:hover {
    color: #fff;
    background-color: #333;
  }
}

@media only screen and (max-width: 767.98px) {
  .wp-pagenavi {
    font-size: 16px;
  }
}

@media only screen and (max-width: 575.98px) {
  .wp-pagenavi {
    font-size: 14px;
  }
}

/* ブロックエディタ
============================================================= */
@media only screen and (max-width: 1199.98px) {
  .is-layout-flex-banner {
    flex-direction: column;
  }

  .is-layout-flex-banner > .wp-block-column {
    flex-basis: 0 !important;
  }
}

/* 装飾
============================================================= */

/* 区切り */
.wp-block-wrapper .wp-block-separator {
  height: 4px;
  background-color: var(--color-border);
  border: none;
}

.text-decoration-bcg-fit {
  display: inline-block;
  padding: 0.2em 1em !important;
  margin: 0;
}

/* ドット線 */

.wp-block-wrapper .wp-block-separator.hr-dotted {
  height: 6px;
  background-color: transparent;
  background-image: radial-gradient(circle, #bdd764 3px, transparent 3px);
  background-repeat: repeat-x;
  background-position: center top;
  background-size: 28px 6px;
}

/* VK Blocks
============================================================= */
.is-style-vk_faq-bgfill-circle .vk_faq_title::before,
.is-style-vk_faq-bgfill-square .vk_faq_title::before,
.is-style-vk_faq-bgfill-rounded .vk_faq_title::before {
  color: #fff !important;
  background-color: var(--color-sub-1) !important;
}

.is-style-vkaq-bgfill-circle .vk_faq_content::before,
.is-style-vk_faq-bgfill-square .vk_faq_content::before,
.is-style-vk_faq-bgfill-rounded .vk_faq_content::before {
  color: #fff !important;
  background-color: var(--color-sub-1) !important;
}

.vk_faq {
  padding-bottom: 0 !important;
  border-bottom: none !important;
}