﻿/* Modern Form Styles */

/* フォーム全体のコンテナ */
form {
  max-width: 600px;
  margin: 40px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* ラベルのスタイル */
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333333;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* 入力フィールドの共通スタイル */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background-color: #fafbfc;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
/* フォーカス時のスタイル */
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #ff66a4;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 102, 164, 0.1);
  transform: translateY(-2px);
}

/* プレースホルダーのスタイル */
input::placeholder,
textarea::placeholder {
  color: #9ca3af;
  font-style: italic;
}

/* テキストエリアの特別なスタイル */
textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* セレクトボックスのスタイル */
select {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background-color: #fafbfc;
  background-image: url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' fill=\'none\' viewBox=\'0 0 20 20\'%3e%3cpath stroke=\'%236b7280\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'1.5\' d=\'M6 8l4 4 4-4\' /%3e%3c/svg%3e");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 16px;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

select:focus {
  outline: none;
  border-color: #ff66a4;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 102, 164, 0.1);
}
/* ボタンのスタイル */
button,
input[type="submit"] {
  background: linear-gradient(135deg, #ff66a4 0%, #ff8cc8 100%);
  color: white;
  border: none;
  padding: 18px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 102, 164, 0.3);
  width: 100%;
  margin-top: 16px;
}

button:hover,
input[type="submit"]:hover {
  background: linear-gradient(135deg, #ff4d94 0%, #ff7ab8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 102, 164, 0.4);
}

button:active,
input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 102, 164, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  form {
    margin: 20px;
    padding: 24px;
  }

  input[type="text"],
  input[type="email"],
  textarea,
  select {
    padding: 14px 16px;
    font-size: 16px;
  }

  button,
  input[type="submit"] {
    padding: 16px 24px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  form {
    margin: 16px;
    padding: 20px;
  }

  input[type="text"],
  input[type="email"],
  textarea {
    width: 100%;
  }

  select {
    padding: 14px 16px;
    font-size: 16px;
  }
}

/* 必須マーク */
label.required:after {
  content: " *必須";
  color: #ef4444;
  font-weight: bold;
}