/**
 * 共通のCSS
*/
/*
======================================
base
======================================
*/
:root {
  /* カラーパレット */
  --color-bg: #FAF6EB;
  /* 背景 */
  --color-main: #ED7626;
  /* メインカラー */
  --color-text: #333333;
  /* テキストカラー */
  --color-popup-bg-cover: rgba(0, 0, 0, 0.5);
  /* ポップアップ背景カバー */
  --color-merit: #D50015;
  /* メリット */
  --color-demerit: #172C51;
  /* デメリット */
  --color-by-gray-orange: #F7F4F1;
  --color-bg-gray-orange-light: #FFE2CF;
  --color-bg-gray: #F7F4F1;
  /* フォーム */
  --color-form-border: #CCCCCC;
  --color-form-bg: #F7F7F7;
  --color-form-required: #D71418;


  /* フォント設定 */
  --font-family-base: 'Noto Sans JP', sans-serif;
  /* ベースフォント */
  --icon-font-family: 'Font Awesome 6 Free';
  --fv-font-family: 'Rounded M+ 1c', medium;
  --fv-font-familys: 'M PLUS Rounded 1c', sans-serif;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-xxl: 28px;
  --font-size-3xl: 32px;
  --font-size-4xl: 36px;
  --font-size-5xl: 40px;
  --font-size-6xl: 48px;
  --font-size-7xl: 64px;

  /* ブレークポイント */
  --breakpoint-sp: 599px;
  --breakpoint-tablet: 768px;
  --breakpoint-pc: 1024px;

  /* ボーダー・角丸 */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-circle: 50%;

  /* シャドウ */
  --shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
}


h1,
h2,
h3,
h4,
dt,
dd {
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-weight: bold;
  line-height: 1.6;
}


p,
th,
td,
li {
  color: var(--color-text);
  font-family: var(--font-family-base);
  line-height: 1.6;
  text-align: justify;
}

a {
  display: inline-block;
  font-family: var(--font-family-base);
}

body {
  background-color: var(--color-bg);
  font-family: var(--font-family-base);
}

.main {
  min-height: 300px;
}

.main--action {
  padding-top: 140px;
}

.wp-block {
  max-width: 1800px;
}

body {
  overflow-x: hidden;
}


.section>div {
  margin: auto;
  max-width: 1326px;
  width: 100%;
}

/* 白背景（セクション途中） */
.section.section--background {
  background-color: white;
  background-image: url(../images/common/bg_before.png);
  background-position: top;
  background-repeat: no-repeat;
  background-size: 100% 400px;
}

.introduction__hgroup {
  background-color: #ffffff;
  background-image: url(../images/common/bg_x.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.kids {
  position: relative;
}

.kids::after {
  background-image: url(../images/common/bg_white.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  top: -128px;
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 50%;
  z-index: -1;
}

.section-lr.section--top::before {
  background-image: url(../images/common/bg_top.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  content: '';
  height: min(100%, 464px);
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
}

.information-section::after {
  background-image: url(../images/common/bg_xx.png);
  position: absolute;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  bottom: 0;
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 20%;
  z-index: -1;
}

.section.section--background::after {
  background-image: url(../images/common/bg_after.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  bottom: -400px;
  content: '';
  height: min(100%, 400px);
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
}

/* 白背景（家を売りたい方へ） */
.section.section--ealestate {
  background-color: white;
}

.section.section--ealestate::after {
  background-image: url(../images/common/bg_after.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  bottom: -400px;
  content: '';
  height: min(100%, 400px);
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
}

/* 白背景（家を建てたい方へ） */
.section.section--construction {
  background-color: white;
  background-image: url(../images/common/bg_construction.png);
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: 100% 168px;
}

@media screen and (max-width: 599px) {
  .section.section--construction {
    background-size: 100% 128px;
  }
}


/* 白背景（下層ページトップ） */
.section.section--top::before {
  background-image: url(../images/common/bg_top.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  content: '';
  height: min(100%, 464px);
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
}


.section {
  margin: auto;
  padding: 64px 20px;
  position: relative;
}

.section-lr {
  padding: 128px 0;
}

.title {
  margin: 25px 0 50px 0;
}

/*
======================================
スライダーの共通パーツ
======================================
*/

.vk_slider_item {
  padding-right: 20px;
  padding-left: 20px;
}

.introduction__slider .is-style-vk-image-rounded img {
  width: 480px;
  height: 336px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.introduction__slider .is-style-vk-image-rounded img:hover {
  opacity: 0.8;
}

.introduction__slider .wp-block-image.size-large{
  text-align: center;
}

.wp-block-vk-blocks-slider>.swiper-button-center {
  background-color: rgba(0, 0, 0, 0);
}

.wp-block-vk-blocks-slider>.swiper-button-prev,
.wp-block-vk-blocks-slider>.swiper-button-next {
  top: 52%;
  transform: translateY(-50%);
}

.wp-block-vk-blocks-slider>.swiper-button-prev::after {
  content: "\f137";
  font-family: "Font Awesome 6 Free";
  font-weight: 600;
  font-size: 80px;
  color: var(--color-main);
  z-index: 20;
  margin-left: 40px;
  background-color: #ffffff;
  border-radius: 50%;
}

.wp-block-vk-blocks-slider>.swiper-button-next::after {
  content: "\f138";
  font-family: "Font Awesome 6 Free";
  font-weight: 600;
  font-size: 80px;
  color: var(--color-main);
  z-index: 200;
  margin-right: 40px;
  background-color: #ffffff;
  border-radius: 50%;
}

@media screen and (max-width: 1024px) {
  .introduction__slider .is-style-vk-image-rounded img {
    width: calc((100vw / 1024) * 480);
    height: calc((100vw / 1024) * 336);
  }
}

@media screen and (max-width: 768px) {
  .wp-block-vk-blocks-slider>.swiper-button-prev::after,
  .wp-block-vk-blocks-slider>.swiper-button-next::after {
    font-size: 40px;
  }

  .wp-block-vk-blocks-slider>.swiper-button-next::after {
    margin-right: 0px;
  }

  .wp-block-vk-blocks-slider>.swiper-button-prev::after {
    margin-left: 0px;
  }
}

@media screen and (max-width: 599px) {
  .vk_slider_item {
    padding-right: 16px;
    padding-left: 16px;
  }
  .introduction__slider .is-style-vk-image-rounded img {
    width: calc((100vw / 375) * 320);
    height: calc((100vw / 375) * 224);
  }
}


/*
======================================
モーダルの共通パーツ
======================================
*/
.modal {
  display: none;
  position: fixed;
  z-index: 50;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.modal__overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.modal__content {
  background-color: #fefefe;
  padding: 0;
  border-radius: 8px;
  max-width: 100vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__image {
  display: block;
  max-width: 60vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.modal__close-button {
  position: absolute;
  top: 10px;
  right: -30px;
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  z-index: 50;
}

@media (max-width: 768px) {
  .modal__content {
    max-width: 98vw;
    max-height: 98vh;
  }

  .modal__image {
    max-width: 80vw;
    width: auto;
    height: auto;
  }
}

.modal__close-button:hover,
.modal__close-button:focus {
  color: #333;
  text-decoration: none;
  cursor: pointer;
}


/*
======================================
タイトル・セリフの共通パーツ
======================================
*/
.speech-btn {
  position: relative;
  margin-bottom: 25px;
}

.speech-btn::after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid #333333;
}

.reasons__btn {
  width: 240px;
  height: 48px;
  background: #333333 0% 0% no-repeat padding-box;
  border-radius: 31px;
  color: #fff;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.reason__txt {
  text-align: center;
  font-size: var(--font-size-3xl);
}

.reason__txt .orange {
  color: var(--color-main);
  font-size: var(--font-size-6xl);
}

.introduction__btn {
  width: 360px;
  height: 48px;
  background: #333333 0% 0% no-repeat padding-box;
  border-radius: 31px;
  color: #fff;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.introduction__txt {
  text-align: center;
  font-size: var(--font-size-3xl);
}


@media screen and (max-width: 599px) {
  .reasons__btn {
    max-width: 223px;
    height: 43px;
  }

  .reason__txt {
    font-size: var(--font-size-xl);
  }

  .reason__txt .orange {
    font-size: var(--font-size-5xl);
  }
  .introduction__btn {
    max-width: 319px;
    height: 43px;
    font-size: var(--font-size-base);
  }

  .introduction__txt {
    font-size: var(--font-size-xl);
  }
}



/*
======================================
FAQのQ&Aの共通パーツ
======================================
*/
.faq__btn {
  width: 210px;
  height: 48px;
  background: #333333 0% 0% no-repeat padding-box;
  border-radius: 31px;
  color: #fff;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.faq-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 20px 0 20px;
}

.faq-accordion {
  margin-bottom: 48px;
}

.faq-item {
  margin-bottom: 10px;
  border: 1px solid #e0d9d2;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq-section>h2 {
  font-size: var(--font-size-xl);
}

.faq-section__category-title {
  font-weight: bold;
  text-align: center;
  margin-bottom: 24px;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.faq-item__question {
  display: flex;
  align-items: center;
  padding: 30px 40px;
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: background-color 0.3s ease;
}

.faq-item__q-label {
  font-weight: bold;
  color: var(--color-main);
  font-size: var(--font-size-5xl);
  margin-right: 16px;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item__title {
  margin: 0;
  font-size: 20px;
  color: #333;
  flex-grow: 1;
  line-height: 1.5;
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  position: relative;
  margin-left: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-main);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-item__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq-item__icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item__answer-wrapper {
  display: none;
  padding: 0;
}

.faq-item__answer {
  padding: 32px 40px;
  border-top: 1px solid #eee;
  background-color: #fff;
  display: flex;
  align-items: baseline
}

.faq-item__a-label {
  font-weight: bold;
  color: #4CAF50;
  margin-right: 15px;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item__answer-text {
  color: #555;
  line-height: 1.6;
  flex-grow: 1;
}

.faq-item__question.is-active {
  background-color: var(--color-main);
}

.faq-item__question.is-active .faq-item__q-label,
.faq-item__question.is-active .faq-item__title {
  color: #ffffff;
}

.faq-item__question.is-active .faq-item__icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-item__question.is-active .faq-item__icon::before {
  transform: translateY(-50%) rotate(180deg);
  background-color: #ffffff;
}

@media (max-width: 768px) {
  .faq-section {
    margin: 0 auto;
    padding: 0;
  }

  .faq-section__category-title {
    font-size: 1.5em;
    margin-bottom: 30px;
  }

  .faq-item__question {
    padding: 20px 16px;
  }

  .faq-item__q-label {
    /* font-size: 1.1em; */
    margin-right: 10px;
  }

  .faq-item__title {
    /* font-size: 1em; */
  }

  .faq-item__icon {
    width: 20px;
    height: 20px;
    margin-left: 15px;
  }

  .faq-item__answer {
    padding: 20px;
  }

  .faq-item__a-label {
    font-size: 1.1em;
    margin-right: 10px;
  }
}

@media (max-width: 599px) {
  .faq-item__title {
    font-size: var(--font-size-base);
  }

  .faq-item__q-label {
    font-size: var(--font-size-xl);
    margin-top: 8px;
    margin-bottom: auto;
  }
}


/*
======================================
media
======================================
*/


/*
* viewPc、viewSp（このコードは、書きかえないでください）
*/
@media screen and (max-width: 599px) {
  .viewPc {
    display: none !important;
  }
}

@media screen and (min-width: 600px) {
  .viewSp {
    display: none !important;
  }
}


.pc-only-br {
  display: inline;
}

.sp-only-br {
  display: none;
}

@media screen and (max-width: 599px) {
  .sp-only-br {
    display: inline;
  }

  .pc-only-br {
    display: none;
  }
}


@media screen and (max-width: 599px) {
  /*
  ======================================
  contact__popup
  ======================================
  */

  .contact__popup {
    background-color: #fff;
    border-radius: 16px;
    height: 291px;
    left: 50%;
    max-width: 1000px;
    padding: 64px 0 0;
    position: fixed;
    top: 150px;
    transform: translateX(-50%);
    width: 93vw;
  }

  .contact__popup p {
    font-family: var(--font-family-base);
    font-size: 20px;
    font-weight: 500;
    text-align: center;
  }

  .phonenumber__block {
    background-color: #ED7626;
    border-radius: 16px;
    height: 82px;
    margin: 32px auto 0;
    width: 296px;
  }

  .phonenumber__block p {
    color: #fff;
  }

  .phonenumber__block p:first-child::before {
    align-items: center;
    font-family: var(--icon-font-family);
    content: "\f095";
    font-size: 28px;
    font-weight: 900;
    margin-right: 8px;
  }

  .phonenumber__block p:first-child {
    font-size: 28px;
    font-weight: 600;
    padding: 6px 0 0;
  }

  .phonenumber__block p:nth-child(2) {
    font-size: 12px;
    padding: 0 0 12px;
  }

  .phonePopup__close--button {
    background-color: #ED7626;
    border-radius: 100%;
    cursor: pointer;
    height: 32px;
    padding: 4px 6.5px;
    position: fixed;
    right: 20px;
    top: 16px;
    width: 32px;
    z-index: 999;
  }

  .phonePopup__close--button span {
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
    top: 50%;
    width: 60%;
    height: 2px;
    transform-origin: center;
    transition: transform 0.3s ease;
  }

  .phonePopup__close--button span:first-child {
    transform: rotate(45deg);
  }

  .phonePopup__close--button span:last-child {
    transform: rotate(-45deg);
  }

}

@media screen and (min-width: 600px) {

  /*
  ======================================
  contact__popup
  ======================================
  */
  .contact__popup {
    background-color: #fff;
    border-radius: 16px;
    height: 346px;
    left: 50%;
    max-width: 1000px;
    padding: 72px 0 0;
    position: fixed;
    top: 188px;
    transform: translateX(-50%);
    width: 75vw;
  }

  .contact__popup p {
    font-family: var(--font-family-base);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
  }

  .phonenumber__block {
    background-color: #ED7626;
    border-radius: 16px;
    margin: 32px auto 0;
    width: 416px;
  }

  .phonenumber__block p {
    color: #fff;
  }

  .phonenumber__block p:first-child::before {
    align-items: center;
    font-family: var(--icon-font-family);
    content: "\f095";
    font-size: 32px;
    font-weight: 900;
    margin-right: 8px;
  }

  .phonenumber__block p:first-child {
    font-size: 40px;
    font-weight: 700;
  }

  .phonenumber__block p:nth-child(2) {
    font-size: 14px;
    font-weight: 300;
    padding: 0 0 12px;
  }

  .phonePopup__close--button {
    background-color: #ED7626;
    border-radius: 100%;
    cursor: pointer;
    height: 48px;
    padding: 14px 7.5px;
    position: fixed;
    right: 40px;
    top: 24px;
    width: 48px;
    z-index: 999;
  }

  .phonePopup__close--button span {
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
    top: 50%;
    width: 70%;
    height: 3px;
    transform-origin: center;
    transition: transform 0.3s ease;
  }

  .phonePopup__close--button span:first-child {
    transform: rotate(30deg);
  }

  .phonePopup__close--button span:last-child {
    transform: rotate(-30deg);
  }
}


/*
======================================
各ページにアクセスした際に、一瞬だけ「お電話はこちら」のポップアップ画面が表示されてしまうのを防ぐcss
======================================
*/

.contact__popup,
.contact__popup--global,
.popup-overlay {
  display: none ;
}


/*
======================================
WordPressの自動<p>挿入機能（wpautopフィルター）が<p>を自動生成してしまう際、空の<p>を画面上から非表示にする
======================================
*/

p:empty {
    display: none;
}