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

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

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

  & 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: 782px) {
  .wp-block-wrapper {
    font-size: 14px;
  }
}

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

/* テーブル */
.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(--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;
}

/* page navi
============================================================= */
.wp-pagenavi {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5em;
  justify-content: center;
  margin: 80px 0 0;
  clear: both;
  font-family: var(--wp--preset--font-family--open-sans);
  font-size: 20px;

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

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

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

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

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

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

/* ブロックエディタ
============================================================= */
/* @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
============================================================= */


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

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