@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: 780px;
  margin: 0 auto 80px;
  padding: 42px 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(246,248,255,0.98) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 26px;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.08),
    0 8px 24px rgba(99, 102, 241, 0.08);
  overflow: hidden;
}

/* 背景の淡い光 */
.wpcf7 .inquiry::before,
.wpcf7 .inquiry::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.wpcf7 .inquiry::before {
  top: -100px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(59,130,246,0.16) 0%, rgba(59,130,246,0) 72%);
}

.wpcf7 .inquiry::after {
  bottom: -120px;
  left: -70px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, rgba(168,85,247,0) 72%);
}

.wpcf7 .inquiry > * {
  position: relative;
  z-index: 1;
}

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

/* 各項目の間隔 */
.wpcf7 .inquiry > p + p {
  margin-bottom: 24px;
}

/* 今のラベル文字から「必須」をそれっぽく見せる */
.wpcf7 .inquiry > p:not(:has(input)):not(:has(textarea)):not(:has(.wpcf7-acceptance)) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* 「必須」が含まれるラベル向けの見た目強化
   ※ :has と文字列判定はCSSだけではできないため、
   HTML側で class を付けるのが理想。
   ただ今回は全体デザイン優先で整えます。 */

/* 入力欄共通 */
.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%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  padding: 16px 18px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 15px;
  background: rgba(255,255,255,0.84);
  color: #0f172a;
  font-size: 16px;
  line-height: 1.6;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 4px 14px rgba(99,102,241,0.05);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 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: 58px;
}

.wpcf7 .inquiry textarea {
  min-height: 190px;
  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.98);
  border-color: #6366f1;
  box-shadow:
    0 0 0 5px rgba(99, 102, 241, 0.13),
    0 12px 26px rgba(59, 130, 246, 0.10),
    0 0 24px rgba(168, 85, 247, 0.09);
  transform: translateY(-1px);
}

/* チェック説明文 */
.wpcf7 .inquiry .wpcf7-acceptance {
  display: inline-flex;
  align-items: flex-start;
  vertical-align: top;
  margin-right: 8px;
}

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

/* 確認チェックの1行を少し箱っぽく */
.wpcf7 .inquiry > p:has(.wpcf7-acceptance) {
  margin-top: 8px;
  margin-bottom: 18px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(59,130,246,0.05) 0%, rgba(168,85,247,0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 14px;
  color: #334155;
  font-size: 14px;
  line-height: 1.8;
}

.wpcf7-list-item label {
  display: flex;
}

/* Turnstile */
.wpcf7 .inquiry .cf7-cf-turnstile {
  margin: 8px 0 26px !important;
  padding: 18px;
  text-align: center;
}

.wpcf7 .inquiry .cf-turnstile-br {
  display: none;
}

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

.wpcf7 .inquiry .wpcf7-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 20px 38px rgba(99, 102, 241, 0.28),
    0 10px 20px rgba(37, 99, 235, 0.20);
  filter: brightness(1.03);
}

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

.wpcf7 .inquiry .wpcf7-submit:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
}

/* スピナー */
.wpcf7 .inquiry .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

/* エラー */
.wpcf7 .wpcf7-not-valid-tip {
  margin-top: 8px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.wpcf7 .wpcf7-not-valid {
  border-color: #ef4444 !important;
  background: rgba(255, 244, 244, 0.98) !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.8;
  background: rgba(255,255,255,0.92);
}

/* ラベルをきれいに整える */
.wpcf7 .inquiry .form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

/* 必須バッジ */
.wpcf7 .inquiry .required-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12) 0%, rgba(139,92,246,0.16) 100%);
  border: 1px solid rgba(99,102,241,0.18);
  color: #4f46e5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

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

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

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

  .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: 56px;
    font-size: 15px;
  }
}

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

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

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