/*
Theme Name: そがデンタルクリニック
Author: e-nets.biz
Description:
Version: 250723
*/

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

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;
  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;
}

/* フォーム
============================================================= */
.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;
  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: 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;
  }
} */

/* VK Blocks
============================================================= */

/* sidebar */
.sidebar .is-style-vk-heading-solid_bottomborder_black {
  margin-bottom: 0 !important;
}

/* レイアウトの調整
============================================================= */

/* 院内・設備紹介 */
@media only screen and (max-width: 767.98px) {
  .is-layout-grid.layout-inside {
    grid-template-columns: 1fr 1fr;
    gap:40px 20px;
  }
}

/* 院長紹介 */

@media only screen and (max-width: 767.98px) {
  .doctor-figure {
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
  }

  .doctor-caption {
    text-align: center !important;
  }
}

/* 詳しく見るボタン */

.btn-more {
  & img {
    width:190px;
  }
}

@media only screen and (max-width: 767.98px) {
  .btn-more {
    & img {
      width:140px;
    }
  }
}

.btn-more.btn-more--standard {
  & img {
    width:220px;
  }
}

@media only screen and (max-width: 767.98px) {
  .btn-more.btn-more--standard {
    & img {
      width:160px;
    }
  }
}

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

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

/* フロントページ
============================================================= */
/* 当院の特徴 */
.sect-fp-about {
  position: relative;
  width: 100%;
}

.sect-fp-about__bcg {
  width: 75%;
  aspect-ratio: 2 / 1;
  margin: 0 0 0 auto;
  overflow: hidden;
  background-image: url("images/fp-about.jpg");
  background-position: center;
  background-size: cover;
  border-radius: 0 0 30px;
}

.sect-fp-about__heading-wrapper {
  position: absolute;
  top: 0;
  left: 0;
}

.sect-fp-about__main {
  width: 520px;
  max-width: 75%;
  padding: 30px;
  margin: -15% 0 0;
  font-size: 18px;
  background-color: #fff;

  & p {
    margin: 0;
  }
}

.sect-fp-about__btn-wrapper {
  text-align: center;
}

@media only screen and (max-width: 1199.98px) {
  .sect-fp-about__bcg {
    width: 66.66%;
  }
}

@media only screen and (max-width: 991.98px) {
  .sect-fp-about__heading-wrapper {
    position: static;
  }

  .sect-fp-about__bcg {
    width: 75%;
    margin-top: 24px;
  }

  .sect-fp-about__main {
    padding:20px;
    margin: -20% 0 0;
    font-size: 16px;
  }
}

@media only screen and (max-width: 767.98px) {
  .sect-fp-about__bcg {
    width: 100%;
    border-radius: 0 0 15px 15px;
  }

  .sect-fp-about__main {
    width:100%;
    max-width: 100%;
    padding: 0;
    margin: 20px auto 0;
  }
  
  .sect-fp-about__btn-wrapper {
    text-align: right;
  }
}

/* 診療案内 */
.list-service {
  display:flex;
  gap: 60px;
  width:992px;
  max-width:100%;
  padding:0 !important;
  margin:0 auto;
  list-style:none;

  & li {
    flex: 1;
  }
}

@media only screen and (max-width: 991.98px) {
  .list-service {
    gap: 30px;
  }
}

@media only screen and (max-width: 767.98px) {
  .list-service {
    flex-wrap: wrap;
    width:576px;

    & li{
      flex: auto;
      width: calc(50% - 20px);
    }
  }
}

@media only screen and (max-width: 575.98px) {
  .list-service {
    gap: 30px 15px;
  }
}

.figure-service{
  font-size: 18px;

  & img {
    display: block;
    width:100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
  }

  & figcaption {
    text-align: center;
  }
}

/* 当院の特徴
============================================================= */
.sect-intro {
  width: 100%;
}

.sect-intro__bcg {
  width: 75%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background-image: url("images/pg-about.jpg");
  background-position: center;
  background-size: cover;
  border-radius: 0 0 0 30px;
}

.sect-intro__main {
  width: 75%;
  padding: 40px 0 0 40px;
  margin: -25% 0 0 auto;
  background-color: #fff;
}

.sect-intro__title {
  font-size: 32px;
  font-weight: 400;
  font-feature-settings: "palt";
  letter-spacing: 0.1em;
}

.sect-intro__text {
  text-align: justify;
}

@media only screen and (max-width: 767.98px) {
  .sect-intro__bcg {
    width: 100%;
    margin: 0;
    border-radius: 0 0 15px 15px;
  }

  .sect-intro__main {
    width: 100%;
    padding: 0;
    margin: 20px auto 0;
    background-color: transparent;
  }

  .sect-intro__title {
    font-size: 20px;
  }
}
