/*
Theme Name: リラック共通
Author: e-nets.biz
Description:
Version: 2.5
*/

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

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

============================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 20px;
  margin-bottom: 20px;
}

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: 16px;

  & ul,
  & ol {
    padding-left: 1.5em;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  & li {
    margin-top: 0.5em;
  }

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

  & pre {
    padding: 20px;
    overflow-x: auto;
    color: #ccc;
    white-space: pre-wrap;
    background-color: #2d2d2d;
    border-left: 5px solid #0073aa;
    border-radius: 5px;
  }

  & q {
    margin-top: 20px;
    margin-bottom: 20px;
    font-style: italic;
    color: #ccc;

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

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

  & strong {
    color: var(--wp--preset--color--theme-accent);
  }

  blockquote {
    position: relative;
    padding: 40px 20px;
    border: 1px solid;
    border-radius: 10px;
  }

  blockquote::before {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: FontAwesome;
    font-size: 20px;
    content: "\f10d";
  }

  blockquote::after {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-family: FontAwesome;
    font-size: 20px;
    content: "\f10e";
  }

  blockquote cite {
    display: block;
    padding-right: 20px;
    font-size: 0.8rem;
    text-align: right;
  }

  table {
    padding: 0;
    border-collapse: collapse;

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

.wp-block-wrapper--dark {
  blockquote {
    border: 1px solid #ccc;
  }

  blockquote::before {
    color: #ccc;
  }

  blockquote::after {
    color: #ccc;
  }

  blockquote cite {
    color: #ccc;
  }
}

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

/* 画像 */
.wp-block-image figcaption {
  font-size: 1em !important;
  color: var(--wp--preset--color--theme-main);
}

.wp-block-image.aligncenter {
  width: 100%;
}

.wp-block-image.alignleft {
  width: 100%;
  text-align: left;
}

.wp-block-image.alignright {
  width: 100%;
  text-align: right;
}

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

.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(--wp--preset--color--theme-sub-2) !important;
} */

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

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

/* 検索 */
form[role="search"] {
  margin-top: 10px;
}

.wp-block-wrapper--dark {
  .wp-block-separator {
    border-top: 2px solid #ccc;
  }

  .wp-block-table {
    th,
    td {
      border: 1px solid #ccc;
    }
  }
}
/* page navi
============================================================= */
.wp-pagenavi {
  display: flex;
  flex-wrap: wrap;
  gap: 1em 0.5em;
  justify-content: center;
  margin: 40px 0 0;
  clear: both;
  font-family: var(--wp--preset--font-family--open-sans);
  font-size: 14px;

  /* stylelint-disable-next-line no-descending-specificity */
  & a,
  & span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2em;
    height: 2em;
    padding: 0 0.25em;
    overflow: hidden;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid #ccc;
  }

  & .pages {
    width: fit-content;
    background: none;
    border: transparent;
    border-radius: none;
  }

  & .current {
    font-weight: bold;
    color: #333;
    background-color: var(--wp--preset--color--theme-sub-1);
  }

  & a:hover {
    color: #333;
    background-color: var(--wp--preset--color--theme-sub-1);
  }
}

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

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

/* VK Blocks
============================================================= */
/* stylelint-disable-next-line no-descending-specificity */
.vk_icon a {
  /* アイコンに下線をつけない */
  text-decoration: none !important;
}

.vk_icon .fa-square-facebook::before {
  font-size: 1.143em; /* Lineアイコンとほぼ同じ大きさ */
}

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

  個別のスタイル
  
============================================================= */

/* 404 Page */
.not-found {
  color:#fff;
}

/* BLOG Page */
.shop-category:hover{
    color: #93dd00;
}