/*
Theme Name: TRUST 刈りスマ
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);
  outline: 2px solid var(--color-sub-1);
}

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

.wpcf7-form-control-wrap input[type="checkbox"] {
  vertical-align: -3px;
}

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

.wpcf7 .wpcf7-submit:hover {
  color: var(--color-accent);
  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;
}

/* 草の装飾 */
.decoration-weed {
  position: relative;

  &::before {
    position: absolute;
    top: -20px;
    display: block;
    width: 100%;
    height: 20px;
    content: "";
    background-image: url("images/weed.png");
    background-repeat: repeat-x;
    background-position: center bottom;
  }
}

/* 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: #ff931e !important;
}

.is-style-vk_faq-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: #39b54a !important;
}

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

/* VK Blocks 1.96.2.1 プライマリーカラーが表示されない不具合？の修正
============================================================= */
:root {
  /* stylelint-disable-next-line custom-property-pattern */
  --wp--preset--color--vk-color-primary: #359dd1;
}

/* フロントページ
============================================================= */
.banner-contact {
  width: 100%;
  max-width: 992px;
  margin: 0 auto;
  font-size: 24px;
  background-color: #fff;
  border: 4px solid var(--color-main);
}

.banner-contact__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 0;
  align-items: center;
  width: 100%;
  padding: 0.75em 2em;
  margin: 0;
  color: #fff;
  background-color: var(--color-main);
}

.banner-contact__catch {
  flex: 2;
  margin: 0 !important;
  font-size: 1em;
  font-weight: 500;
  white-space: nowrap;
}

.banner-contact__title {
  flex: 5;
  margin: 0 !important;
  font-size: 2em;
  font-weight: 700;
  text-align: center;
}

.banner-contact__item {
  display: flex;
  gap: 2em;
  align-items: center;
  padding: 1em 2em;
}

.banner-contact__figure {
  position: relative;
  flex: 2;
  padding: 0;
  margin: 0;

  & img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  & figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.25em 0;
    font-size: 14px;
    font-feature-settings: "palt";
    text-align: center;
    white-space: nowrap;
    background-color: rgb(255 255 255 / 40%);
  }
}

.banner-contact__links {
  display: flex;
  flex: 5;
  flex-direction: column;
  gap: 1.5em;
}

.banner-contact__tel {
  display: block;
  width: 100%;
  max-width: 600px;

  & img {
    display: block;
    width: 100%;
    height: auto;
  }
}

.banner-contact__form {
  display: block;
  width: 100%;
  max-width: 600px;
  padding: 0.25em;
  font-size: 1.5em;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background-color: var(--color-accent);
}

@media only screen and (max-width: 991.98px) {
  .banner-contact {
    font-size: 18px;
  }

  .banner-contact__figure {
    & figcaption {
      font-size: 12px;
    }
  }
}

@media only screen and (max-width: 767.98px) {
  .banner-contact {
    font-size: 18px;
  }

  .banner-contact__header {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }

  .banner-contact__catch {
    text-align: center;
  }

  .banner-contact__item {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }

  .banner-contact__tel {
    max-width: 400px;
  }

  .banner-contact__form {
    max-width: 400px;
  }
}

@media only screen and (max-width: 575.98px) {
  .banner-contact {
    font-size: 14px;
    font-feature-settings: "palt";
  }

  .banner-contact__form {
    font-size: 1.5em;
  }
}

.icon-mail {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.3em;
  vertical-align: -0.2em;
  background-image: url("images/icon-mail.png");
  background-repeat: no-repeat;
  background-size: contain;
}

/* バッジ
=============================================================*/

.figure-badge {
  position: relative;
}

.figure-badge::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index:99;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  font-family: var(--font-family-open-sans);
  font-size: 14px;
  font-weight: 700;
  font-feature-settings: "palt";
  color: #fff;
  content: "";
  background-color: var(--color-sub-2);
  border-radius: 50%;
  translate: -25% -25%;
}

.figure-badge--before::before {
  content: "Before";
  background-color: var(--color-sub-1);
}

.figure-badge--after::before {
  content: "after";
}

.figure-badge--number::before{
  width:50px;
  height:50px;
  font-size:36px;
  font-weight:500;
  content: "";
  translate: -50% -50%;
}

.figure-badge--1::before {
  content: "1";
}

.figure-badge--2::before {
  content: "2";
}

.figure-badge--3::before {
  content: "3";
}

.figure-badge--4::before {
  content: "4";
}

.figure-badge--5::before {
  content: "5";
}

.figure-badge--6::before {
  content: "6";
}

.figure-badge--7::before {
  content: "7";
}

.figure-badge--8::before {
  content: "8";
}

.figure-badge--9::before {
  content: "9";
}