@charset "UTF-8";
/*============================================================================================================
  Custom Styles - ページ固有の追加スタイル
  ============================================================================================================*/

/*------------------------------------------
  p-contactLayout - PC2カラムレイアウト
  ------------------------------------------*/
.p-contactLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.75rem;
  align-items: start;
  padding-bottom: 9.375rem;
}

.p-contactLayout__side {
  position: sticky;
  top: 7.5rem;
}

@media screen and (max-width: 47.9375rem) {
  .p-contactLayout {
    grid-template-columns: 1fr;
    padding-bottom: 5rem;
  }
  .p-contactLayout__main {
    display: none;
  }
  .p-contactLayout__side {
    position: static;
  }
}

/*------------------------------------------
  p-contactIntro - 導入テキスト
  ------------------------------------------*/
.p-contactIntro {
  text-align: center;
}

@media screen and (min-width: 48rem) {
  .p-contactIntro {
    text-align: left;
  }
}

/*------------------------------------------
  p-contactMembers__heading - メンバー見出し
  ------------------------------------------*/
.p-contactMembers__heading {
  text-align: center;
  font-weight: 700;
}

@media screen and (min-width: 48rem) {
  .p-contactMembers__heading {
    text-align: left;
  }
}

/*------------------------------------------
  p-contactMembers - スタッフ横並びレイアウト
  ------------------------------------------*/
.p-contactMembers .p-members__item {
  display: flex;
  gap: 1.5rem;
}

.p-contactMembers .p-members__item + .p-members__item {
  margin-top: 2.5rem;
}

.p-contactMembers .p-members__img {
  flex-shrink: 0;
  width: 157px;
}

.p-contactMembers .p-members__img img {
  width: 157px;
  height: 157px;
  object-fit: cover;
  border-radius: 5px;
  aspect-ratio: auto;
}

.p-contactMembers .p-members__name {
  margin-top: 0;
}

/*------------------------------------------
  Contact Page - トップセクション上書き
  ------------------------------------------*/
.p-formTop {
  padding: 0 0 4.375rem;
}

.p-formTop__subtitle {
  font-size: 2.5rem;
  color: #688665;
  font-weight: 700;
  text-align: center;
}

p.p-formTop__lead {
  font-size: 2.0625rem;
  line-height: calc(48 / 33);
  font-weight: 700;
  text-align: center;
  margin-top: 3rem;
  padding-bottom: 1.875rem;
}

@media screen and (min-width: 48rem) {
  p.p-formTop__lead {
    text-align: left;
    margin-top: 0;
  }
}

@media screen and (max-width: 47.9375rem) {
  .p-formTop {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .p-formTop__subtitle {
    font-size: 1.125rem;
  }
  p.p-formTop__lead {
    font-size: 1.125rem;
    line-height: calc(32 / 18);
    margin-top: 2rem;
  }
}

/*------------------------------------------
  p-contactFlow - ご相談・お見積りの流れ
  ------------------------------------------*/
.p-contactFlow {
  padding: 0;
  max-width: 896px;
  margin: 0 auto;
  counter-reset: flow-counter;
  padding-top: 2.5rem;
}

.p-contactFlow__item {
  margin-top: 2.5rem;
  counter-increment: flow-counter;
}

.p-contactFlow__item:first-of-type {
  margin-top: 1.25rem;
}

.p-contactFlow__heading {
  display: flex;
  align-items: center;
  gap: 0.9375rem;
  color: #688665;
}

.p-contactFlow__heading::before {
  content: "STEP" counter(flow-counter);
  display: inline-block;
  background: #688665;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4375rem 1.25rem;
  border-radius: 50vmax;
  flex-shrink: 0;
}

.p-contactFlow__text {
  margin-top: 1em;
}

.p-contactFlow__note {
  font-weight: 700;
  margin-top: 0.3125rem;
}


/*------------------------------------------
  p-contactFlow__box - ご提案資料例
  ------------------------------------------*/
.p-contactFlow__box {
  border: 2px solid #688565;
  padding: 1.5625rem 1.25rem 2.5rem;
  margin: 1.75rem auto 0;
}

h3.p-contactFlow__boxTitle {
  text-align: center;
  font-weight: 700;
  line-height: 2;
  margin: 0;
  color: #688565;
}

.p-contactFlow__boxBody {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.625rem;
  max-width: 750px;
  margin: 1.5625rem auto 0;
}

.p-contactFlow__boxImg {
  background: #F5F5F5;
  padding: 1.375rem 4.375rem;
}

.p-contactFlow__boxImg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

ul.p-contactFlow__boxList {
  border: solid 4px #E6E6E6;
  margin: 0;
  padding: 1.875rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

ul.p-contactFlow__boxList li {
  font-weight: bold;
  padding-left: 1.2em;
}

ul.p-contactFlow__boxList li:last-child {
  margin-bottom: 0;
}

ul.p-contactFlow__boxList li::before {
  background: #000;
  top: 0.5lh;
  transform: translateY(-50%);
}

.p-contactFlow__boxNote {
  margin-top: 1.5625rem;
  font-weight: bold;
}

/*------------------------------------------
  p-contactForm - フォームセクション
  ------------------------------------------*/
.p-contactForm {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 3.75rem 5rem;
  max-width: 800px;
  margin: 0 auto 3.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.p-contactForm__title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

@media screen and (max-width: 47.9375rem) {
  .p-contactForm {
    padding: 2.5rem 1.25rem;
    margin: 0 0.9375rem 2.5rem;
  }
  .p-contactForm__title {
    font-size: 1.25rem;
  }
}

/*------------------------------------------
  p-contactPrivacy - 個人情報の取り扱い
  ------------------------------------------*/
.p-contactPrivacy {
  padding: 3.75rem 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.p-contactPrivacy__title {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.p-contactPrivacy__text {
  font-size: 0.8125rem;
  line-height: 2;
  color: #333;
}

@media screen and (max-width: 47.9375rem) {
  .p-contactPrivacy {
    padding: 2.5rem 1.25rem;
  }
}

/*============================================================================================================
  p-newForm - 新しいお問い合わせフォーム
  ============================================================================================================*/
.p-newForm {
  max-width: 896px;
  margin: 0 auto;
  padding: 2.5rem 5rem 8.75rem;
  background: #F5F5F5;
}

@media screen and (min-width: 48rem) {
  .p-newForm {
    max-width: none;
    margin: 0;
    padding: 3.75rem 1.875rem;
  }
}

.p-newForm__title {
  font-weight: 700;
  text-align: center;
}

.block-editor h2:first-child {
  margin-top: 0;
}

.p-newForm form {
  margin-top: 1.875rem;
}

.p-newForm input[type="text"],
.p-newForm input[type="tel"],
.p-newForm input[type="email"],
.p-newForm input[type="url"],
.p-newForm textarea,
.p-newForm select {
  border: 2px solid #688565;
  padding: 1.25rem 0.9375rem;
  font-size: 1rem;
  line-height: 2;
  height: auto;
}

/*------------------------------------------
  フォームグループ
  ------------------------------------------*/
.p-newForm__group {
  margin-bottom: 2.5rem;
}

.p-newForm__label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.p-newForm__required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  background: #ff0000;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 0 0.75rem;
  text-align: center;
  border-radius: 50vmax;
  flex-shrink: 0;
}

.p-newForm__hint {
  margin-bottom: 0.75rem;
}

.p-newForm__label {
  margin-bottom: 0.75rem;
}

.p-newForm__group:has(.p-newForm__hint) .p-newForm__label {
  margin-bottom: 0;
}

.p-newForm__group p:not([class]) {
  margin-bottom: 0;
}
/*------------------------------------------
  セレクトボックス
  ------------------------------------------*/
.p-newForm__select {
  position: relative;
  width: 100%;
}

.p-newForm__select select {
  width: 100%;
  font-family: inherit;
  background: #fff url("data:image/svg+xml,%3Csvg width='12' height='24' viewBox='0 0 12 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 0L11.1962 9H0.803848L6 0Z' fill='%23333'/%3E%3Cpath d='M6 24L0.803849 15L11.1962 15L6 24Z' fill='%23333'/%3E%3C/svg%3E") no-repeat right 20px center;
  background-size: 12px 24px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.p-newForm__select select:focus {
  outline: none;
  border-color: #688665;
}


.p-newForm__select select:invalid {
  color: #939393;
}

/* Contact Form 7 wrapper対応 */
.p-newForm__select .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.p-newForm__textarea {
  width: 100%;
  min-height: 295px;
  font-family: inherit;
  line-height: 1.8;
  background: #fff;
  resize: vertical;
  box-sizing: border-box;
}


.p-newForm__textarea:focus {
  outline: none;
  border-color: #688665;
}

.p-newForm__textarea::placeholder {
  color: #939393;
}

.p-newForm__input {
  width: 100%;
  font-family: inherit;
  color: #333;
  background: #fff;
  box-sizing: border-box;
}

.p-newForm__input:focus {
  outline: none;
  border-color: #688665;
}

.p-newForm__input::placeholder {
  color: #999;
}

.p-newForm__submit {
  text-align: center;
  margin-top: 3.875rem;
}

.p-newForm__submit input.wpcf7-form-control.wpcf7-submit.btnSubmit {
  max-width: 460px;
  font-size: 1.25rem;
  white-space: normal;
  height: auto;
  min-height: 80px;
}

.p-newForm__submitNote {
  font-weight: 700;
  color: #333;
  margin-top: 1rem;
}

.p-newForm__submitNote-wrap {
  display: inline-block;
}

.p-newForm__notice {
  text-align: center;
  margin-top: 5rem;
}

.p-newForm__noticeText {
  color: #333;
  line-height: 1.8;
  text-align: center;
}

.p-newForm__privacy {
  margin-top: 3.125rem;
}

.p-newForm__privacyTitle {
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

.p-newForm__privacyText {
  max-width: 656px;
  margin-inline: auto;
  color: #333;
  line-height: 2;
}

/*------------------------------------------
  レスポンシブ
  ------------------------------------------*/
@media screen and (max-width: 47.9375rem) {
  .p-newForm {
    padding: 3.75rem 1.25rem;
  }

  .p-newForm__title {
    font-size: 1.375rem;
    margin-bottom: 2.5rem;
  }

  .p-newForm__group {
    margin-bottom: 1.875rem;
  }

  .p-newForm__label {
    font-size: 1.125rem;
  }

  .p-newForm input[type="text"],
  .p-newForm input[type="tel"],
  .p-newForm input[type="email"],
  .p-newForm input[type="url"],
  .p-newForm textarea {
    padding: 0.9375rem 0.625rem;
    font-size: 16px;
  }

  .p-newForm select,
  .p-newForm select option {
    padding: 0.9375rem 0.625rem;
    font-size: 16px !important;
    color: #333;
  }

  input.wpcf7-form-control.wpcf7-submit.btnSubmit {
    font-size: 0.875rem;
    min-height: 60px;
    height: auto;
    white-space: normal;
    word-spacing: 100vw;
    padding: 0 1.875rem 0 calc(1.875rem + 0.25em);
    background-image: none;
  }

  .p-newForm__textarea {
    min-height: 180px;
  }

  .p-newForm__submit {
    margin-top: 2.5rem;
  }

  .p-newForm__submitBtn {
    height: 60px;
    padding: 0 1.875rem;
  }

  .p-newForm__submitBtn::after {
    display: none;
  }

  .p-newForm__notice {
    margin-top: 2.5rem;
    padding-top: 1.875rem;
  }

  .p-newForm__noticeText {
    text-align: left;
  }

  .p-newForm__privacy {
    margin-top: 2.5rem;
  }
}

@media screen and (max-width: 374px) {
  .p-newForm input::placeholder,
  .p-newForm textarea::placeholder {
    font-size: max(13px, 4.0625vw);
  }
}
