html {
  scroll-behavior: smooth;
}

/* ユーティリティースタイル */
.hidden-pc {
  display: none;
}

.hidden-sp {
  display: block;
}

@media (max-width: 800px) {
  .hidden-pc {
    display: block;
  }

  .hidden-sp {
    display: none;
  }
}

.custom-reverse {
  flex-direction: row-reverse;
}
/* ハイバーリンクプラグインのスタイル調整 */
.wp-block-tiptip-hyperlink-group-block {
  text-decoration: none;
}
:root :where(a:where(:not(.wp-element-button)):hover) {
    color: var(--wp--preset--color--custom-gray) !important;
}

header a  {
  text-decoration: none;
}


/* headerのレスポンシブ時の表示切替 */
@media (max-width: 900px) {
  header .wp-block-navigation__responsive-container {
    display: none;
  }

  .header-contact-parts {
    display: none !important;
  }

  header .wp-block-navigation__responsive-container-open {
    display: block !important;
  }

  /* header .wp-block-navigation__responsive-container-open {
    display: block;
  } */

  header .wp-block-navigation__container {
    display: none;
  }
}

/* ボタンのスタイル */
.wp-block-button {
  min-width: 320px;
}

.wp-block-button .wp-element-button {
  transition: all 0.3s;
}

.wp-block-button.is-style-outline .wp-element-button:hover {
  background-color: var(--wp--preset--color--custom-gray-light);
}

/* Google Mapの全幅 */
.custom-map {
  width: 100vw;
}

/* contactセクションリンクのアンダーラインを削除 */
section a {
  text-decoration: none;
}

/* footerのレスポンシブ時の中央揃え */
@media screen and (max-width: 781px) {
  .footer {
    text-align: center;
  }

  .footer .is-layout-flex {
    justify-content: center;
    align-items: center;
  }

  .footer .wp-block-navigation__container {
    align-items: center;
  }

}

/* トップページのこだわりセクションのスタイル調整 */
.pride .wp-block-columns .wp-block-column {
  position: relative;

  /* &::before {
    position: absolute;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    content: "";
    background-color: var(--wp--preset--color--custom-blue-light);
    border-radius: 50%;
    top: -20px;
    right: 10px;
    z-index: 1;
    color: var(--wp--preset--color--custom-white);
    font-size: var(--wp--preset--font-size--semi-large);
    font-weight: 700;
    font-family: var(--wp--preset--font-family--roboto);
    line-height: 1;
  } */
}

.pride .wp-block-columns .wp-block-column::before {
  position: absolute;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  content: "";
  background-color: var(--wp--preset--color--custom-blue-light);
  border-radius: 50%;
  top: -20px;
  right: 10px;
  z-index: 1;
  color: var(--wp--preset--color--custom-white);
  font-size: var(--wp--preset--font-size--semi-large);
  font-weight: 700;
  font-family: var(--wp--preset--font-family--roboto);
  line-height: 1;
}

.pride .wp-block-columns .wp-block-column:nth-of-type(1)::before {
  content: "1";
}
.pride .wp-block-columns .wp-block-column:nth-of-type(2)::before {
  content: "2";
}
.pride .wp-block-columns .wp-block-column:nth-of-type(3)::before {
  content: "3";
}

/* トップページのスタッフブログセクションのスタイル調整 */
.home .blog .wp-block-columns:where(.wp-block-columns) {
  margin-bottom: 0;
}

.home .blog .wp-block-post {
  border-top: 1px solid var(--wp--preset--color--custom-gray);

  &:last-child {
    border-bottom: 1px solid var(--wp--preset--color--custom-gray);
  }
}

/* 会社概要ページcompanyセクションのボーダー */
section.custom-company .wp-block-columns {
  border-top: 1px solid var(--wp--preset--color--custom-gray);

  &:last-child {
    border-bottom: 1px solid var(--wp--preset--color--custom-gray);
  }
}

/* 工事の流れページのスタイル調整 */
section.custom-flow .wp-block-columns {
  border-top: 1px solid var(--wp--preset--color--custom-gray);

  &:first-child {
    border-top: none;
  }
}

@media screen and (max-width: 781px) {
  .custom-flow-heading {
    text-align: center;
  }

  .custom-flow-tel-link {
    text-align: center;
  }
}

/* 施工メニュー下層ページのスタイル調整 */
@media screen and (max-width: 781px) {
  .page-menu-card.wp-block-columns {
    flex-direction: column-reverse;
  }

  .page-menu-card-heading {
    text-align: center;
  }
}

/* ページネーションのスタイル調整 */
.wp-block-query-pagination-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.page-numbers {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  background-color: var(--wp--preset--color--custom-gray-light);
  text-decoration: none;

  &.current {
    background-color: var(--wp--preset--color--custom-blue-light);
    color: #fff;
    font-weight: 700;
  }
}

/* お問い合わせページのボタンリンクのスタイル調整 */
.custom-contact-btn-number {
  font-size: var(--wp--preset--font-size--large);
}

/* お問い合わせページのフォーム調整 */
.wpcf7-form {
  max-width: 600px;
  margin-inline: auto;
  margin-top: var(--wp--preset--spacing--60);

  & p {
    margin: 10px 0 0;
    line-height: 1;
  }

  & .custom-form-head {
    font-weight: 700;
    margin-right: 16px;
    color: var(--wp--preset--color--custom-gray);
  }

  & .custom-form-head-required {
    color: #f00;
  }

  & .wpcf7-form-control-wrap {
    display: block;
    margin-top: 10px;
  }

  & input[type="text"],
  & input[type="tel"],
  & input[type="email"],
  & textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--wp--preset--color--custom-gray-light);
    border-radius: 4px;
    box-sizing: border-box;
  }

  & input[type="radio"] {
    margin: 0 8px 0 0;
  }

  & .wpcf7-list-item {
   margin: 10px 0 10px 20px;
  }

  & input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: var(--wp--preset--color--custom-blue);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: var(--wp--preset--spacing--40);

    &:hover {
      background-color: var(--wp--preset--color--custom-blue-light);
    }
  }
}

.wpcf7-form-control.wpcf7-radio {
  display: block;
  margin-bottom: 20px;
}

.wpcf7-list-item-label {
  display: inline-block;
}

.wpcf7-spinner {
  display: none !important;
}

/* 防水工事ページ「おすすめ塗料」非表示設定 */
.recommendedPaint {
	display: none;
}
