@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ========================================
   Contact Form 7
   Complete Custom Style
======================================== */


/* ========================================
   フォーム全体
======================================== */

.wpcf7 {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 50px;
  background: #ffffff;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}


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

.wpcf7 label {
  display: block;
  margin-bottom: 28px;
  color: #333333;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.04em;
}


/* ========================================
   必須マーク
======================================== */

.wpcf7 .required {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  background: #1f3473;
  color: #ffffff;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  vertical-align: 2px;
}


/* ========================================
   入力欄共通
======================================== */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  margin-top: 8px;
  padding: 15px 16px;
  background: #f8f8f8;
  border: 1px solid #dddddd;
  border-radius: 6px;
  color: #333333;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  box-sizing: border-box;

  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}


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

.wpcf7 textarea {
  height: 120px !important;
  min-height: 120px !important;
  resize: vertical;
}


/* ========================================
   フォーカス
======================================== */

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  background: #ffffff;
  border-color: #1f3473;
  box-shadow:
    0 0 0 3px rgba(31, 52, 115, 0.08);
}


/* ========================================
   プレースホルダー
======================================== */

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #aaaaaa;
  opacity: 1;
}


/* ========================================
   入力画面・確認画面・完了画面
======================================== */

.contact-confirm-area,
.contact-complete-area {
  display: none;
}

.contact-input-area.is-hidden {
  display: none;
}

.contact-confirm-area.is-active,
.contact-complete-area.is-active {
  display: block;
}


/* ========================================
   「入力内容を確認する」ボタン
======================================== */

.contact-input-buttons {
  margin-top: 35px;
  text-align: center;
}

.contact-confirm-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  height: 58px;
  margin: 0;
  padding: 0 30px;
  background: #1F3473;
  border: 1px solid #1F3473;
  border-radius: 6px;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-confirm-btn:hover {
  background: #ffffff;
  color: #1F3473;
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.10);
}

.contact-confirm-btn:active {
  transform: translateY(0);
}

/* Contact Form 7が生成した不要なbr対策 */
.contact-input-buttons br,
.contact-confirm-buttons br {
  display: none;
}

/* Turnstile 中央配置 */
.contact-turnstile-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 20px 0 28px;
}

.contact-turnstile-wrap .cf-turnstile {
  margin-left: auto !important;
  margin-right: auto !important;
}


/* ========================================
   確認画面
======================================== */

.contact-confirm-area {
  padding-top: 5px;
}


/* 確認画面タイトル */
.contact-confirm-title {
  margin: 0 0 10px;
  color: #1F3473;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
}

/* 確認画面説明 */
.contact-confirm-text {
  margin: 0 0 35px;
  color: #777777;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}


/* ========================================
   確認内容一覧
======================================== */

.contact-confirm-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid #dddddd;
}

.contact-confirm-list dt {
  margin: 0;
  padding:14px 18px 6px;
  color: #777777;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.contact-confirm-list dd {
  margin: 0;
  padding: 5px 18px 18px;
  color: #222222;
  font-size: 15px;
  line-height: 1.8;
  border-bottom: 1px solid #dddddd;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}


/* ========================================
   確認画面 ボタンエリア
======================================== */

.contact-confirm-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 42px auto 0;
}


/* ========================================
   確認画面ボタン共通
======================================== */

.contact-back-btn,
.contact-confirm-buttons .wpcf7-submit {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 58px;
  margin: 0 !important;
  padding: 0 24px !important;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
  position: relative;
  top: 0;
  cursor: pointer;
}


/* ========================================
   「入力内容を修正する」
======================================== */

.contact-back-btn {
  background: #ffffff;
  border: 1px solid #bbbbbb;
  color: #555555;
  font-weight: 500;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.contact-back-btn:hover {
  background: #f5f5f5;
  border-color: #777777;
  color: #1F3473;
}


/* ========================================
   「この内容で送信する」
======================================== */

.contact-confirm-buttons .wpcf7-submit {
  background: #1f3473;
  border: 1px solid #1f3473;
  color: #ffffff;
  font-weight: 600;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-confirm-buttons .wpcf7-submit:hover {
  background: #ffffff;
  color: #1f3473;
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(31, 52, 115, 0.12);
}

.contact-confirm-buttons .wpcf7-submit:active {
  transform: translateY(0);
}


/* ========================================
   Contact Form 7 スピナー
======================================== */

.contact-confirm-buttons .wpcf7-spinner {
  position: absolute;
  margin: 0;
}

.wpcf7 .wpcf7-spinner {
  margin-left: 10px;
}


/* ========================================
   独自バリデーション
======================================== */

.contact-check-invalid {
  border-color: #c94a4a !important;
  box-shadow: 0 0 0 3px rgba(201, 74, 74, 0.08) !important;
}

.contact-check-error {
  display: block;
  margin-top: 6px;
  color: #c94a4a;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}


/* ========================================
   CF7標準エラー
======================================== */

.wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #c94a4a;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.wpcf7 .wpcf7-not-valid {
  border-color: #c94a4a;
}


/* ========================================
   CF7レスポンスメッセージ
======================================== */

.wpcf7 form .wpcf7-response-output {
  margin: 28px 0 0;
  padding: 14px 18px;
  border-width: 1px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.8;
}

/* 入力エラー */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  background: #fff8f8;
  border-color: #d8a0a0;
  color: #9d4545;
}


/* ========================================
   送信完了
======================================== */

.contact-complete-area {
  padding: 50px 25px;
  background: #f8f8f8;
  border-radius: 8px;
  text-align: center;
}

.contact-complete-title {
  margin: 0 0 15px;
  color: #222222;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.contact-complete-text {
  margin: 0;
  color: #666666;
  font-size: 14px;
  line-height: 2;
}

/* 独自完了画面を使うため標準成功メッセージを非表示 */
.wpcf7 form.sent .wpcf7-response-output {
  display: none;
}


/* ========================================
   スマホ
======================================== */

@media screen and (max-width: 767px) {

  /* フォーム全体 */
  .wpcf7 {
    padding: 30px 20px;
    border-radius: 8px;
  }

  /* ラベル */
  .wpcf7 label {
    margin-bottom: 22px;
    font-size: 13px;
  }


  /* 入力欄 */
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 input[type="url"],
  .wpcf7 textarea,
  .wpcf7 select {
    padding: 14px;
    font-size: 16px;
  }

  /* お問い合わせ内容 */
  .wpcf7 textarea {
    height: 120px !important;
    min-height: 120px !important;
  }

  /* 確認ボタン */
  .contact-input-buttons {
    margin-top: 28px;
  }

  .contact-confirm-btn {
    width: 100%;
    max-width: 100%;
    height: 54px;
    padding: 0 20px;
  }


  /* 確認タイトル */
  .contact-confirm-title {
    font-size: 19px;
  }

  .contact-confirm-text {
    margin-bottom: 25px;
  }

  /* 確認内容 */
  .contact-confirm-list dt {
    padding: 13px 10px 4px;
  }

  .contact-confirm-list dd {
    padding: 4px 10px 15px;
    font-size: 14px;
  }

  /* ボタン */
  .contact-confirm-buttons {
    flex-direction: column-reverse;
    gap: 12px;
    margin-top: 32px;
  }

  .contact-back-btn,
  .contact-confirm-buttons .wpcf7-submit {
    width: 100%;
    height: 54px;
    max-width: 100%;
  }

  /* 完了画面 */
  .contact-complete-area {
    padding: 40px 20px;
  }

  .contact-complete-title {
    font-size: 19px;
  }

}


/* =====================================================
   お問い合わせ内容 textarea
   専用ドラッグリサイズ
===================================================== */

#wpcf7-f906-p907-o2
.wpcf7-form-control-wrap[data-name="your-message"] {
	display: block;
	position: relative;
	width: 100%;
}


/* textarea本体 */
#wpcf7-f906-p907-o2
textarea[name="your-message"] {
	display: block;
	width: 100% !important;
	min-height: 182px !important;
	box-sizing: border-box;

	/* ブラウザ標準ハンドルは使用しない */
	resize: none !important;
	overflow-y: auto !important;
}


/* =====================================================
   右下のドラッグハンドル
===================================================== */

#wpcf7-f906-p907-o2
.contact-textarea-resizer {
	position: absolute;
	right: 3px;
	bottom: 3px;
	width: 20px;
	height: 20px;
	z-index: 20;
	cursor: ns-resize;
	touch-action: none;
	user-select: none;
}


/* 右下の斜線 */
#wpcf7-f906-p907-o2
.contact-textarea-resizer::before,
#wpcf7-f906-p907-o2
.contact-textarea-resizer::after {
	content: "";
	position: absolute;
	right: 1px;
	height: 1px;
	background: #777;
	transform: rotate(-45deg);
	transform-origin: right center;
}


#wpcf7-f906-p907-o2
.contact-textarea-resizer::before {
	bottom: 4px;
	width: 13px;
}


#wpcf7-f906-p907-o2
.contact-textarea-resizer::after {
	bottom: 9px;
	width: 8px;
}


/* ドラッグ中 */
body.contact-textarea-resizing {
	cursor: ns-resize !important;
	user-select: none !important;
}