@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-wrapper {
  max-width: 700px;
  margin: 40px auto;
  padding: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* ヘッダー部分 */
.form-header {
  padding: 40px 30px;
}

.form-header h2 {
  margin: 0 0 10px 0;
  font-size: 26px;
  font-weight: 700;
}

.form-header p {
  margin: 0;
  font-size: 15px;
  opacity: 0.95;
  color: white;
}

/* フォームグループ */
.form-group {
  padding: 0 30px;
  margin-top: 25px;
}

.form-group:first-of-type {
  margin-top: 35px;
}

.form-group label {
  display: block;
  margin-bottom: -20px;
  font-weight: 600;
  color: #333;
  font-size: 18px;
}

.form-group .required {
  color: red;
  font-size: 11px;
  padding: 3px 0px;
  margin-left: 2px;
  font-weight: 600;
}

/* 入力フィールド */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  background: #fafafa;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

/* チェックボックス2カラム */
.form-group .wpcf7-checkbox {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.form-group .wpcf7-list-item {
  margin: 0;
}

.form-group .wpcf7-list-item label {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
  font-weight: 500;
  font-size: 13px;
}

.form-group .wpcf7-list-item label:hover {
  background: #e9ecef;
  border-color: #667eea;
}

.form-group .wpcf7-list-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 10px 0 0;
  cursor: pointer;
}


/* 確認チェック */
.acceptance-section {
  margin: 25px 30px 0;
  padding: 18px 20px;
  background: #f0f4f8;
  border: 2px solid #cbd5e0;
  border-radius: 8px;
}

.acceptance-section .wpcf7-list-item {
  margin: 0;
}

.acceptance-section label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  color: #2d3748;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}

.acceptance-section input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 12px 0 0;
  cursor: pointer;
  flex-shrink: 0;
}

/* 送信ボタン */
.submit-section {
  padding: 0 30px 35px;
  margin-top: 25px;
}

.submit-section .wpcf7-submit {
  width: 100%;
  padding: 16px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.submit-section .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* エラー・成功メッセージ */
.wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.wpcf7-response-output {
  margin: 20px 30px !important;
  padding: 15px 20px !important;
  border-radius: 8px !important;
  font-size: 14px;
}

.wpcf7-validation-errors {
  border: 2px solid #e74c3c !important;
  background: #ffebee !important;
  color: #c62828 !important;
}

.wpcf7-mail-sent-ok {
  border: 2px solid #4CAF50 !important;
  background: #e8f5e9 !important;
  color: #2e7d32 !important;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .contact-form-wrapper {
    margin: 20px 15px;
  }
  
  .form-header {
    padding: 30px 20px;
  }
  
  .form-header h2 {
    font-size: 22px;
  }
  
  .form-group,
  .notice-section,
  .acceptance-section {
    margin-left: 20px;
    margin-right: 20px;
  }
  
  .submit-section {
    padding: 0 20px 30px;
  }
  
  .form-group .wpcf7-checkbox {
    grid-template-columns: 1fr;
  }
}