/* コメントエリア全体 */
.comment-area {
  margin-top: 40px;
  padding: 20px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* コメントフォーム */
.comment-form label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
}

/* 入力欄の余白をしっかり確保 */
.comment-form input[type="text"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px; /* ← 左右に16pxの余白を確保 */
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box; /* ← これが超重要！ */
}


.comment-form textarea {
  height: 120px;
}

.comment-form button {
  margin-top: 16px;
  padding: 10px 20px;
  background: var(--main-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.comment-form button:hover {
  opacity: 0.9;
}

/* コメント1件 */
.comment-item {
  background: #fff;
  border: 1px solid #ddd;
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 16px;
}

/* コメントのヘッダー（名前＋日付） */
.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.comment-name {
  font-weight: bold;
  color: #333;
}

.comment-date {
  font-size: 14px;
  color: #777;
}

/* コメント本文 */
.comment-body {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* 返信ボタン */
.reply-btn {
  font-size: 14px;
  color: var(--main-blue);
  text-decoration: none;
}

.reply-btn:hover {
  text-decoration: underline;
}

/* 投稿ボタン（submit） */
.comment-form button[type="submit"] {
  background: #1a3a6e;      /* 濃い藍色 */
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  transition: background 0.2s ease;
}

.comment-form button[type="submit"]:hover {
  background: #254a8a;      /* 少し明るい藍色 */
}

/* キャンセルボタン（アウトライン版） */
#cancelReply {
  background: transparent;
  color: #1a3a6e;
  border: 2px solid #1a3a6e;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

#cancelReply:hover {
  background: #e6eef9;      /* 藍色と相性の良い淡い青 */
  color: #1a3a6e;
}

.comment-form.reply-mode {
  margin-top: 16px; /* 好きな値に調整OK */
}
