/* コメント投稿フォーム用スタイル */
.form-section {
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.form-section label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
  font-size: 0.95em;
}

.form-section input[type="text"],
.form-section input[type="url"],
.form-section textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  font-size: 1em;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-section input[type="text"]:focus,
.form-section input[type="url"]:focus,
.form-section textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-section button {
  width: 100%;
  padding: 12px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.form-section button:hover {
  background-color: #0056b3;
}

.form-section button:active {
  transform: translateY(1px);
}

.form-section button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.comment-sns-notice {
  background: #e7f3ff; 
  border: 1px solid #b3d9ff; 
  padding: 10px 12px; 
  border-radius: 6px;
  margin-bottom: 12px; 
  font-size: 0.9em; 
  color: #0066cc;
}

.comment-sns-examples {
  margin-top: 8px; 
  font-size: 0.85em; 
  color: #555;
  line-height: 1.4;
}

.comment-sns-examples strong {
  color: #333;
}

.db-notice {
  background: #f8d7da; 
  border: 1px solid #f5c6cb; 
  padding: 10px 12px; 
  border-radius: 6px;
  margin-bottom: 15px; 
  font-size: 0.9em; 
  color: #721c24;
}

/* メッセージ表示スタイル */
#postMessage {
  margin-top: 12px;
  font-weight: bold;
  padding: 0;
  border-radius: 4px;
  transition: all 0.3s ease;
}

#postMessage:empty {
  display: none;
}

#postMessage:not(:empty) {
  display: block;
  padding: 10px;
  margin-top: 15px;
}

/* フォームのレスポンシブ調整 */
@media (max-width: 768px) {
  .form-section {
    padding: 15px;
    margin: 15px 0;
  }
  
  .form-section input[type="text"],
  .form-section input[type="url"],
  .form-section textarea {
    padding: 10px;
    font-size: 16px; /* iOS Safariでのズーム防止 */
  }
  
  .form-section button {
    padding: 14px 20px;
    font-size: 1.1em;
  }
}