@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* ----------------------------------
   フォーム全体の基本構造
   ---------------------------------- */
.event-form {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

/* フォームの各項目 */
.event-form .form-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  clear: both;
}

@media (min-width: 600px) {
  .event-form .form-item {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* ラベル領域 */
.form-label {
  font-weight: bold;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 600px) {
  .form-label {
    width: 200px;
    margin-bottom: 0;
    padding-top: 8px;
  }
}

/* 必須・任意バッジ */
.required, .optional {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  font-weight: normal;
}

.required {
  background-color: #FFCDAA;
	color: #F15B40;
}

.optional {
  background-color: #999999;
}

/* ----------------------------------
   入力エリア & 薄いグレー文字の設定
   ---------------------------------- */
.form-detail {
  flex: 1;
  width: 100%;
}

.form-detail input[type="text"],
.form-detail input[type="email"],
.form-detail input[type="tel"],
.form-detail select,
.form-detail textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #f8fafc;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* 入力欄の中のヒント文字（プレースホルダー）を薄いグレーに指定 */
.form-detail input::placeholder,
.form-detail textarea::placeholder {
  color: #a0aec0 !important; /* より薄く目立たないグレー */
  opacity: 1; /* Safariなどでの透明度補正 */
}

.form-detail input:focus,
.form-detail select:focus,
.form-detail textarea:focus {
  outline: none;
  border-color: #3182ce;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

/* 金額などの補足説明用 */
.form-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 10px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ----------------------------------
   チェックボックス（縦並び・デザイン調整）
   ---------------------------------- */
.mwform-checkbox-field-wrapper .cbox {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding-top: 6px;
}

/* 各選択肢をブロック化して確実に1行ずつ（縦並び）にする */
.mwform-checkbox-field-wrapper .mwform-checkbox-field {
  display: flex !important;
  align-items: center !important;
  cursor: pointer;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 4px;
}

/* チェックボックス本体のサイズと色設定 */
.mwform-checkbox-field-wrapper input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin-right: 8px !important;
  cursor: pointer;
  accent-color: #3182ce;
}

/* ----------------------------------
   送信ボタン（回り込み完全解除）
   ---------------------------------- */
.form-submit,
.mwform-submit-wrap {
  clear: both !important;
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  margin-top: 32px !important;
  padding-top: 16px;
}

.submit-btn input[type="submit"],
.submit-btn button {
  display: inline-block !important;
  background-color: #3182ce;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 14px 48px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.submit-btn input[type="submit"]:hover,
.submit-btn button:hover {
  background-color: #2b6cb0;
  transform: translateY(-1px);
}

/* ==========================================
   チェックボックス強制的縦並び（最優先適用）
   ========================================== */
/* MW WP Formが自動生成するspanタグ（horizontal-item）を強制的にブロック要素化して縦並びにする */
.mwform-checkbox-field-wrapper .mwform-checkbox-field.horizontal-item {
  display: block !important;
  margin-bottom: 10px !important; /* 各選択肢の上下間隔 */
}

/* 内側のlabelも横一杯に広げてクリックしやすくする */
.mwform-checkbox-field-wrapper .mwform-checkbox-field.horizontal-item label {
  display: flex !important;
  align-items: center !important;
  cursor: pointer;
  font-size: 0.95rem;
  color: #333;
}

/* チェックボックス自体の余白調整 */
.mwform-checkbox-field-wrapper input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin-right: 8px !important;
  flex-shrink: 0; /* チェック枠が潰れないように設定 */
  accent-color: #3182ce;
}
/* 親枠を縦並び（column）に固定 */
.event-form .mwform-checkbox-field-wrapper,
div.mwform-checkbox-field-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

/* 自動生成されたspanタグを1行まるごと占有させる */
.event-form .mwform-checkbox-field-wrapper span.mwform-checkbox-field,
.event-form .mwform-checkbox-field-wrapper span.horizontal-item {
  display: flex !important;
  width: 100% !important;
  float: none !important; /* 万が一floatがかかっている場合を解除 */
  margin: 0 0 8px 0 !important;
}

/* labelも100%広げて横並び要素を解除 */
.event-form .mwform-checkbox-field-wrapper label {
  display: inline-flex !important;
  align-items: center !important;
  width: 100% !important;
  cursor: pointer !important;
}

/* チェックボックスと文字の間隔 */
.event-form .mwform-checkbox-field-wrapper input[type="checkbox"] {
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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