/* 変数 */
:root {
  /* Allura */
  --font-Allura-family: "Allura", cursive;
  --font-Allura-weight: 400;
  --font-Allura-style: normal;
}

/* セクションタイトル */
.wp-block-heading.is-style-section_ttl.u-mb-ctrl.u-mb-0 {
  font-family: var(--font-Allura-family);
  font-size: 2em;
  line-height: 1;
}

/*----------------------------------
    背景色
-----------------------------------*/
body {
  font-family: "Noto Serif JP", serif;
  background: linear-gradient(
    90deg,
    rgba(255, 250, 250, 1) 0%,
    rgba(255, 252, 252, 1) 70%
  );
}

/*----------------------------------
    私について
-----------------------------------*/
.pd-about .wp-block-image.size-full {
  overflow: hidden;
}

.pd-about {
  position: relative;

  &::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    aspect-ratio: 1;
    width: 23.4vw;
    background: url(../img/bg.png) center center / cover no-repeat;
  }
}

/*----------------------------------
    お悩み
-----------------------------------*/
.pd-problem {
  position: relative;

  &::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    aspect-ratio: 1;
    width: 23.4vw;
    background: url(../img/bg02.png) center center / cover no-repeat;
  }

  p {
    text-align: center;
  }
}

.pd-problem__ballon {
  position: relative;
  display: block;
  margin: 1.5em 0;
  padding: 7px 10px;
  min-width: 120px;
  max-width: 100%;
  color: #555;
  font-size: 16px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.1);

  p {
    min-height: calc(2 * 1em * 1.6);
    max-height: calc(2 * 1em * 1.6);
  }
}

.pd-problem__ballon:before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -15px;
  border: 15px solid transparent;
  border-top: 15px solid #fff;
}

/*----------------------------------
    選ばれる理由
-----------------------------------*/
.pd-reason {
  position: relative;

  &::before {
    content: "";
    position: absolute;
    bottom: -11.7vw;
    left: 0;
    aspect-ratio: 1;
    width: 23.4vw;
    background: url(../img/bg.png) center center / cover no-repeat;
  }
}

.pd-reason .wp-block-column {
  background: #fff;
  padding: 1rem;
  border-radius: 20px;
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.1);
}

.pd-reason .wp-block-column .wp-block-heading {
  min-height: calc(3 * 1em * 1.4);
  max-height: calc(3 * 1em * 1.4);
  margin-bottom: 0.5em !important;

  @media (max-width: 781px) {
    min-height: calc(2 * 1em * 1.4);
    max-height: calc(2 * 1em * 1.4);
    margin-bottom: 1em !important;
  }
}

/*----------------------------------
    swiper（お客様の声）
-----------------------------------*/
.card__swiper-container,
.card__swiper,
.card__swiper-wrapper,
.card__swiper-slide {
  position: relative;
}

.card__swiper-container {
}

.card__swiper {
  overflow: visible;
}

.card__swiper-wrapper {
}

.card__swiper-slide {
  width: 300px;
  background: #fff;
  padding: 1rem;
  border-radius: 20px;
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.1);
}

.swiper-button-next,
.swiper-button-prev {
  background: transparent;
}

/* 位置のreset */
.swiper-button-prev,
.swiper-button-next,
.swiper-pagination-bullets.swiper-pagination-horizontal {
  top: unset;
  bottom: unset;
  left: unset;
  right: unset;
  margin: 0;
  padding: 0;
}

.pd-slide {
  background-image: url("../img/voice_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pd-slide__body {
  h3 {
    font-size: 1rem;
    font-weight: 700;
  }

  p {
    font-size: 0.9375rem;
    color: #7a7a7a;
  }
}

.pd-slide__body p:last-child {
  text-align: right;
  margin-top: auto;
}

/* =============================
   ナビゲーションボタン
============================= */
/* デフォルトのボタンを初期化 */
.swiper-button-prev::after,
.swiper-button-next::after {
  content: ""; /* デフォルトのものを初期化 */
  display: none;
}

/* 各ボタンのカスタマイズ */
.swiper-button-prev,
.swiper-button-next {
  bottom: calc(100% + 20px);
  width: 40px;
  height: 40px;
}

.swiper-button-prev {
  right: 54px;
}

.swiper-button-next {
  right: 0;
}

/* =============================
   ページネーション (bullets)
============================= */
/* 位置の設定 (枠組み) */
.swiper-pagination-bullets.swiper-pagination-horizontal {
  top: calc(100% + 30px);
  left: 0;
  text-align: left;
}

/* それぞれのページネーション */
.swiper-pagination-bullets.swiper-pagination-horizontal
  .swiper-pagination-bullet {
  opacity: 1;
  width: 40px;
  height: 5px;
  border-radius: 0;
  background: #d9d9d9;
  margin-inline: calc(11px / 2);

  &:first-of-type {
    margin-left: 0;
  }
}

/* activeな部分 */
.swiper-pagination-bullets.swiper-pagination-horizontal
  .swiper-pagination-bullet-active {
  background: #d88c8f;
}

/*----------------------------------
    実績
-----------------------------------*/
.pd-portfolio {
  position: relative;

  &::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    aspect-ratio: 1;
    width: 23.4vw;
    background: url(../img/bg03.png) center center / cover no-repeat;
  }
}

/*----------------------------------
    ご依頼の流れ
-----------------------------------*/
.pd-flow {
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    aspect-ratio: 1;
    width: 23.4vw;
    background: url(../img/bg.png) center center / cover no-repeat;
  }
}

/*----------------------------------
    footer
-----------------------------------*/
footer {
  background: linear-gradient(
    90deg,
    rgba(255, 250, 250, 1) 0%,
    rgba(255, 252, 252, 1) 70%
  );
}

/*----------------------------------
    お問い合わせ
-----------------------------------*/
.pd-contact {
  padding-inline: 4vw;
}

.pd-contact .swell-block-fullWide__inner.l-article {
  background: #fffefa;
  padding: 4rem;
  border-radius: 20px;
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.1);

  @media (max-width: 781px) {
    padding-inline: 2rem;
  }
}

.p-form__item {
  max-width: 31.25rem;
  width: 100%;
}

.p-form__item:nth-child(n + 2) {
  margin-top: 1.5rem;
}

.p-form__item.--privacy {
  max-width: 100%;
  text-align: center;
  transition: opacity 0.3s ease;
}

.p-form__item.--privacy a {
  color: #1571da;
}

.p-form__item.--privacy .wpcf7-list-item {
  margin: 0;
}

.p-form__item:has(.p-form__item--label.isMsg) {
  max-width: 100%;
}

.p-form__item--label {
  font-weight: 700;
}

input,
textarea {
  margin-top: 0.5rem;
}
.wpcf7-form-control-wrap[data-name="your-message"] {
  width: 100%;
}

textarea {
  width: 100%;
}

.required {
  color: #f74a4a;
}

.wpcf7-submit {
  background: #d88c8f;
  border: none;
  border: 1px solid transparent;
  border-radius: 100vh;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
  color: #ffffff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 12px 38px;
  transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.wpcf7 form.sent .wpcf7-response-output {
  display: none;
}

.p-form__btn {
  margin-top: 1.25rem;
  text-align: center;
}

.wpcf7-response-output {
  display: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  background: #fff;
  border: 1px solid #999;
  border-radius: 0;
  font-size: 16px;
  line-height: normal;
  padding: 12px 24px;
  width: 100%;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
select::placeholder,
textarea::placeholder {
  color: #999;
}

textarea {
  height: 243px;
  resize: vertical;
}

.wpcf7-spinner {
  margin-inline: auto;
  display: block;
  margin-top: 10px;
}

.thanks_area {
  display: none;
}

/*----------------------------------
    私について（下層ページ）
-----------------------------------*/
.pd-lower-about {
  p {
    @media (max-width: 781px) {
      text-align: left;
    }
  }
}

/*----------------------------------
    アニメーション
-----------------------------------*/
.animated__fadeIn {
  opacity: 0;
  translate: 0 40px;
  transition: opacity 0.3s ease, translate 0.3s ease;

  &.js-show {
    opacity: 1;
    translate: 0 0;
  }
}
