@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* =========================
   Contact Form 7 お問い合わせフォーム
   青×紫の先進的デザイン
   ========================= */

.wpcf7 .inquiry {
  position: relative;
  max-width: 760px;
  margin: 0 auto 80px;
  padding: 42px 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 255, 0.98) 100%);
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 24px;
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.08),
    0 8px 24px rgba(79, 70, 229, 0.08);
  overflow: hidden;
}

/* うっすら光る背景演出 */
.wpcf7 .inquiry::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0) 70%);
  pointer-events: none;
}

.wpcf7 .inquiry::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -90px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16) 0%, rgba(168, 85, 247, 0) 72%);
  pointer-events: none;
}

/* 中身を前面に出す */
.wpcf7 .inquiry > * {
  position: relative;
  z-index: 1;
}

/* ラベル */
.wpcf7 .inquiry > p {
  margin: 0 0 10px;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* 入力欄を含む段落 */
.wpcf7 .inquiry > p + p {
  margin-bottom: 26px;
}

/* 入力欄共通 */
.wpcf7 .inquiry input[type="text"],
.wpcf7 .inquiry input[type="email"],
.wpcf7 .inquiry input[type="url"],
.wpcf7 .inquiry input[type="tel"],
.wpcf7 .inquiry textarea {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  padding: 16px 18px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #111827;
  font-size: 16px;
  line-height: 1.6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 2px 10px rgba(99, 102, 241, 0.04);
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.wpcf7 .inquiry input[type="text"],
.wpcf7 .inquiry input[type="email"],
.wpcf7 .inquiry input[type="url"],
.wpcf7 .inquiry input[type="tel"] {
  min-height: 56px;
}

.wpcf7 .inquiry textarea {
  min-height: 180px;
  resize: vertical;
}

.wpcf7 .inquiry input::placeholder,
.wpcf7 .inquiry textarea::placeholder {
  color: #94a3b8;
}

/* フォーカス時 */
.wpcf7 .inquiry input[type="text"]:focus,
.wpcf7 .inquiry input[type="email"]:focus,
.wpcf7 .inquiry input[type="url"]:focus,
.wpcf7 .inquiry input[type="tel"]:focus,
.wpcf7 .inquiry textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.96);
  border-color: #6366f1;
  box-shadow:
    0 0 0 5px rgba(99, 102, 241, 0.14),
    0 10px 24px rgba(99, 102, 241, 0.10),
    0 0 18px rgba(168, 85, 247, 0.10);
  transform: translateY(-1px);
}

/* チェックボックスまわり */
.wpcf7 .inquiry .confirmation {
  display: flex;
  justify-content: center;
}

.wpcf7 .inquiry .wpcf7-acceptance {
  display: inline-flex;
  align-items: flex-start;
  margin-right: 8px;
}

.wpcf7 .inquiry input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 10px 0 0;
  accent-color: #6366f1;
  cursor: pointer;
}

/* Turnstileエリア */
.wpcf7 .inquiry .cf7-cf-turnstile {
  display: flex;
  justify-content: center;
  margin: 18px 0 24px !important;
  padding: 18px;
  border-radius: 18px;
/*   background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.07) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 6px 18px rgba(99, 102, 241, 0.06); */
}

/* Turnstileの余分な改行を非表示 */
.wpcf7 .inquiry .cf-turnstile-br {
  display: none;
}

/* 送信ボタン */
.wpcf7 .inquiry .wpcf7-submit {
  width: 100%;
  min-height: 58px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 55%, #8b5cf6 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow:
    0 14px 28px rgba(99, 102, 241, 0.24),
    0 6px 14px rgba(37, 99, 235, 0.16);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease,
    filter 0.25s ease;
}

/* hover */
.wpcf7 .inquiry .wpcf7-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px rgba(99, 102, 241, 0.28),
    0 8px 18px rgba(37, 99, 235, 0.18);
  filter: brightness(1.03);
}

/* active */
.wpcf7 .inquiry .wpcf7-submit:active:not(:disabled) {
  transform: translateY(0);
}

/* disabled */
.wpcf7 .inquiry .wpcf7-submit:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.08);
}

/* エラーメッセージ */
.wpcf7 .wpcf7-not-valid-tip {
  margin-top: 8px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
}

/* エラー入力欄 */
.wpcf7 .wpcf7-not-valid {
  border-color: #ef4444 !important;
  background: rgba(255, 245, 245, 0.96) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10) !important;
}

/* 送信結果表示 */
.wpcf7 .wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 14px 16px !important;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* スピナー位置を少し整える */
.wpcf7 .inquiry .wpcf7-spinner {
  margin: 14px auto 0;
  display: block;
}

/* スマホ対応 */
@media (max-width: 767px) {
  .wpcf7 .inquiry {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .wpcf7 .inquiry::before {
    width: 180px;
    height: 180px;
    top: -70px;
    right: -60px;
  }

  .wpcf7 .inquiry::after {
    width: 180px;
    height: 180px;
    left: -60px;
    bottom: -80px;
  }

  .wpcf7 .inquiry > p {
    font-size: 14px;
  }

  .wpcf7 .inquiry input[type="text"],
  .wpcf7 .inquiry input[type="email"],
  .wpcf7 .inquiry input[type="url"],
  .wpcf7 .inquiry input[type="tel"],
  .wpcf7 .inquiry textarea {
    font-size: 16px;
    padding: 14px 15px;
  }

  .wpcf7 .inquiry .wpcf7-submit {
    min-height: 54px;
    font-size: 15px;
  }
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
