@charset "utf-8";

/*==========================================
contacat
==========================================*/

/* 共通 */

.lower-inner {
  max-width: var(--max-width);

  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 0px 20px 0px;
}

/* 上部タイトル */

.contact-mv-head {
  background: #fff0df;

  padding: 45px 0;
}

.contact-mv-head h1 {
  font-size: 36px;

  font-weight: 700;

  text-align: left;
}

/* パンくずリスト */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;

  margin: 0 auto;

  font-size: 14px;
  padding-top: 10px;
}

/* ホームアイコン */
.breadcrumb-home {
  display: flex;
  align-items: center;
}

.breadcrumb-home img {
  width: 14px;
  height: 14px;
}

/* 矢印 */
.breadcrumb-arrow {
  font-size: 14px;
  color: #333;
}

/* リンク */
.breadcrumb-link {
  color: #000;
  text-decoration: none;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

/* 現在ページ */
.breadcrumb-current {
  color: #000;
}

/*タイトル、タイトル下ライン、タイトル下テキスト*/
.contact-section-title {
  margin: 0;

  color: var(--color-primary);

  font-size: 32px;

  font-weight: 700;

  line-height: 1.4;
  padding-top: 50px;
}

.contact-section-title-line {
  display: block;

  width: 28px;

  height: 3px;

  background: #000;

  margin: 15px auto 50px;
}

.contact-section-text {
  margin: 0 auto;

  max-width: 1000px;

  font-size: 16px;

  line-height: 2;

  text-align: center;
}

.contact-section-text span {
  color: var(--color-primary);
}

/* =========================================
   Contact Form
========================================= */

.contact-form-section {
  width: 100%;
  padding: 50px 0 80px;
}

.contact-form-inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* =========================================
   Formrun
========================================= */

.formrun {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* =========================================
   各フォーム項目
========================================= */

.contact-form-item {
  display: grid;
  grid-template-columns: 120px 60px minmax(0, 1fr);
  column-gap: 10px;

  width: 100%;
  min-height: 84px;

  padding: 18px 0;

  box-sizing: border-box;

  border-bottom: 1px solid #b5b5b5;
}

/* =========================================
   ラベル
========================================= */

.contact-form-item > label {
  grid-column: 1 / 3;

  display: grid;
  grid-template-columns: 120px 42px;
  column-gap: 10px;

  align-items: center;

  margin: 0;
  padding: 0;

  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;

  color: #000;
}

/* =========================================
   必須・任意
========================================= */

.contact-form-item .required,
.contact-form-item .optional {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 20px;

  box-sizing: border-box;

  border-radius: 3px;

  color: #fff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.contact-form-item .required {
  background: #f6921d;
}

.contact-form-item .optional {
  background: #999;
}

/* =========================================
   input / select
========================================= */

.contact-form-item > input,
.contact-form-item > select {
  grid-column: 3;
  grid-row: 1;

  align-self: center;

  width: 100%;
  height: 45px;

  box-sizing: border-box;

  padding: 0 14px;

  border: 1px solid #d9d9d9;
  border-radius: 3px;

  background: #fff;

  color: #000;

  font-family: inherit;
  font-size: 14px;
  font-weight: 400;

  outline: none;
}

/* =========================================
   placeholder
========================================= */

.contact-form-item input::placeholder,
.contact-form-item textarea::placeholder {
  color: #e4e4e4;
  opacity: 1;
}

/* =========================================
   select
========================================= */

.contact-form-item > select {
  color: #000;

  cursor: pointer;
}

/* =========================================
   エラー
========================================= */

.contact-form-item > .form-error {
  grid-column: 3;
  /*grid-row: 2;*/

  margin: 4px 0 0;

  color: #e04b4b;

  font-size: 12px;
  line-height: 1.4;
}

/* ========================================
   Formrun バリデーションエラー
   ======================================== */

/* 入力欄を赤枠にする */
.formrun input.formrun-has-error,
.formrun select.formrun-has-error,
.formrun textarea.formrun-has-error {
  border: 2px solid #e60000 !important;
  background-color: #fff5f5;
}

/* エラーテキスト */
.formrun .form-error {
  color: #e60000;
  font-size: 14px;
  margin-top: 8px;
}

.privacy-agree:has(input.formrun-has-error) .privacy-check {
  border: 2px solid #e60000 !important;
  background-color: #fff5f5;
}

/* =========================================
   導入予定数
========================================= */

.contact-form-item .form-help {
  grid-column: 1 / 3;
  grid-row: 2;

  margin: 2px 0 0;

  font-size: 13px;
  line-height: 1.5;

  color: #000;
}

/* 導入予定数のselectを右側に固定 */

.contact-form-item:has(.form-help) > select {
  grid-column: 3;
  grid-row: 1 / 3;

  align-self: center;
}

/* =========================================
   お問い合わせ内容
========================================= */

.contact-form-item:has(textarea) {
  min-height: 286px;
}

/* textarea */

.contact-form-item > textarea {
  grid-column: 3;
  grid-row: 1 / 3;

  width: 100%;
  height: 240px;

  box-sizing: border-box;

  padding: 14px;

  border: 1px solid #d9d9d9;
  border-radius: 3px;

  background: #fff;

  color: #000;

  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;

  resize: vertical;

  outline: none;
}

/* textareaのラベルは上揃え */

.contact-form-item:has(textarea) > label {
  align-items: start;
  padding-top: 3px;
}

/* =========================================
   個人情報
========================================= */

.contact-form-privacy {
  display: grid;

  grid-template-columns: 120px 60px minmax(0, 1fr);
  column-gap: 10px;

  min-height: auto;

  padding-top: 20px;

  border-bottom: none;
}

/* 個人情報ラベル */

.contact-form-privacy > label:first-child {
  grid-column: 1 / 3;
  grid-row: 1;

  align-items: start;
  padding-top: 3px;
}

/* =========================================
   個人情報本文
========================================= */

.privacy-box {
  grid-column: 3;
  grid-row: 1;

  width: 100%;
  height: 240px;

  box-sizing: border-box;

  padding: 16px;

  overflow-y: auto;

  border: 1px solid #d9d9d9;
  border-radius: 3px;

  background: #fff;

  font-size: 13px;
  line-height: 1.8;
}

/* privacy-box内 */

.privacy-box p {
  margin: 0 0 18px;
}

.privacy-box p:last-child {
  margin-bottom: 0;
}

/* =========================================
   同意チェック
========================================= */

.contact-form-privacy .privacy-agree {
  grid-column: 3;
  grid-row: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;

  margin: 22px 0 0;

  cursor: pointer;

  font-size: 14px;
  line-height: 1.4;
}

/* 元のcheckbox */

.privacy-agree input[type="checkbox"] {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
}

/* チェックボックス */

.privacy-check {
  position: relative;

  display: inline-block;

  width: 18px;
  height: 18px;

  margin-right: 8px;

  box-sizing: border-box;

  border: 1px solid #000;
  background: #fff;

  flex-shrink: 0;
}

/* checked */

.privacy-agree input[type="checkbox"]:checked + .privacy-check {
  background: #000;
}

/* check mark */

.privacy-agree input[type="checkbox"]:checked + .privacy-check::after {
  content: "";

  position: absolute;

  left: 5px;
  top: 2px;

  width: 5px;
  height: 9px;

  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;

  transform: rotate(45deg);
}

/* 同意テキスト */

.privacy-agree-text {
  display: inline-block;
}

/* 同意エラー */

.contact-form-privacy > .form-error {
  grid-column: 3;
  grid-row: 3;

  text-align: center;

  color: #e60000;
  font-size: 14px;
  margin-top: 8px;
}

/* =========================================
   送信ボタン
========================================= */

.contact-form-submit {
  width: 100%;

  margin-top: 40px;

  text-align: center;
}

/* button */

.contact-form-submit button {
  width: 340px;
  height: 50px;

  padding: 0;

  border: none;
  border-radius: 3px;

  background: #000;
  color: #fff;

  font-family: inherit;
  font-size: 16px;
  font-weight: 500;

  cursor: pointer;

  transition: opacity 0.2s ease;
}

.contact-form-submit button:hover {
  opacity: 0.75;
}

/* =========================================
   Formrun bot対策
========================================= */

._formrun_gotcha {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  overflow: hidden !important;
}

/* =========================================
   SP
========================================= */

@media (max-width: 768px) {
  .contact-section-title {
    font-size: 28px;
  }
  .contact-form-inner {
    width: calc(100% - 30px);
    max-width: none;
    margin: 0 auto;
  }

  .contact-mv-head {
    padding: 10px 0;
  }

  .contact-mv-head h1 {
    font-size: clamp(18px, 2vw, 36px);
  }

  .contact-section-text {
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
  }

  /* -------------------------------------
       各項目
    ------------------------------------- */

  .contact-form-item {
    display: block;

    grid-template-columns: 1fr;

    column-gap: 0;

    min-height: auto;

    padding: 18px 0;
  }

  /* -------------------------------------
       ラベル
    ------------------------------------- */

  .contact-form-item > label {
    grid-column: 1;
    grid-row: auto;

    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 14px;
  }

  .contact-form-item .required,
  .contact-form-item .optional {
    flex-shrink: 0;
  }

  /* -------------------------------------
       input / select
    ------------------------------------- */

  .contact-form-item > input,
  .contact-form-item > select {
    grid-column: 1;
    grid-row: auto;

    margin-top: 8px;

    height: 45px;
  }

  /* -------------------------------------
       help
    ------------------------------------- */

  .contact-form-item .form-help {
    grid-column: 1;
    grid-row: auto;

    margin-top: 6px;

    font-size: 12px;
  }

  .contact-form-item:has(.form-help) > select {
    grid-column: 1;
    grid-row: auto;

    margin-top: 8px;
  }

  /* -------------------------------------
       エラー
    ------------------------------------- */

  .contact-form-item > .form-error {
    grid-column: 1;
    grid-row: auto;

    margin-top: 5px;
  }

  /* -------------------------------------
       textarea
    ------------------------------------- */

  .contact-form-item:has(textarea) {
    min-height: auto;
  }

  .contact-form-item > textarea {
    grid-column: 1;
    grid-row: auto;

    height: 220px;

    margin-top: 8px;
  }

  .contact-form-item:has(textarea) > label {
    padding-top: 0;
  }

  /* -------------------------------------
       個人情報
    ------------------------------------- */

  .contact-form-privacy {
    display: grid;

    grid-template-columns: 1fr;

    padding-top: 20px;
  }

  .contact-form-privacy > label:first-child {
    grid-column: 1;
    grid-row: auto;

    display: flex;

    padding-top: 0;
  }

  .privacy-box {
    grid-column: 1;
    grid-row: auto;

    height: 240px;

    margin-top: 10px;

    padding: 14px;

    font-size: 12px;
    line-height: 1.7;
  }

  /* -------------------------------------
       同意
    ------------------------------------- */

  .contact-form-privacy .privacy-agree {
    grid-column: 1;
    grid-row: auto;

    margin-top: 18px;

    font-size: 13px;
  }

  /* -------------------------------------
       ボタン
    ------------------------------------- */

  .contact-form-submit {
    margin-top: 35px;
  }

  .contact-form-submit button {
    width: min(340px, 100%);
  }
}

/* -------------------------------------
       戻るボタン
    ------------------------------------- */

/* 入力画面に戻る */
.contact-form-back {
  display: block;
  width: 100%;
  max-width: 340px;
  height: 50px;
  margin: 20px auto 0;
  padding: 10px 10px;

  box-sizing: border-box;

  background: #fff;
  border: 1px solid #0066bf;
  border-radius: 4px;

  color: #0066bf;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;

  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.contact-form-back:hover {
  background: #0066bf;
  color: #fff;
}

/* SP */
@media screen and (max-width: 767px) {
  .contact-form-back {
    max-width: 100%;
    margin-top: 16px;
    padding: 14px 20px;
    font-size: 15px;
  }
  body:has(main.contact-page) .pagetop {
    bottom: 20px !important;
  }
}

/* ========================================
   Formrun 確認画面：入力欄を操作不可
   ======================================== */

.contact-form-inner:has(.contact-form-back.formrun-system-show) input,
.contact-form-inner:has(.contact-form-back.formrun-system-show) select,
.contact-form-inner:has(.contact-form-back.formrun-system-show) textarea {
  pointer-events: none;
  background-color: #f5f5f5;
  cursor: default;
}
