/* ============================================================
   コメント欄専用スタイル  /css/comments.css
   ============================================================ */

.comments-page-root {
  display: block !important;
  width: auto !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding-top: 80px !important;   /* ヘッダー裏への潜り込み防止 */
  padding-left: 2em !important;   /* 左右のマージン確保 */
  padding-right: 2em !important;
  text-align: center !important; 
  box-sizing: border-box !important;
}

.comments-page-root h1 {
  display: block !important;
  text-align: center !important;
  margin-top: 0 !important;
  margin-bottom: 1.5em !important;
  width: 100% !important;
}

/* コメント入力エリアの全体ボックス */
.comment-form-box {
  width: 90%;
  max-width: 600px;
  margin: 0 auto 2em;
  padding: 0.8em;
  background: #fff;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px #ccc;
  text-align: left;
  box-sizing: border-box;
}

/* 入力欄（テキストエリア） */
.comment-form-box textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8em;
  font-size: 1em;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
  margin-bottom: 1.2em;
  height: 150px;
}

/* Cloudflare Turnstile */
.cf-turnstile {
  transform: scale(0.85);
  transform-origin: 0 0;
  width: 100%;
  margin-bottom: 0.5em;
}

/* 送信ボタン */
.comment-submit {
  display: inline-block;
  padding: 0.6em 1.2em;
  font-size: 1em;
  border-radius: 6px;
  background: linear-gradient(90deg, #ff9999, #c9a0dc);
  color: #fff;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, background 0.2s;
}

.comment-submit:hover {
  background: linear-gradient(90deg, #c9a0dc, #ff9999);
  transform: scale(1.05);
}

.comment-submit:disabled {
  background: #ccc !important;
  cursor: not-allowed;
  transform: none !important;
}

/* 投稿されたコメントの枠 */
.comment-box {
  width: 90%;
  max-width: 600px;
  margin: 0 auto 1.5em;
  padding: 0.8em;
  background: #fff;
  border-radius: 8px;
  text-align: left;
  line-height: 1.8;
  font-size: 1em;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

/* 返信枠 */
.reply-item {
  margin-top: 1em;
  padding: 0.8em;
  background: #f8f8f8;
  border-left: 4px solid #ff9999;
  border-radius: 4px;
}

/* 投稿日時 */
.timestamp {
  font-size: 0.8em;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 0.5em;
}

/* 管理用リンク */
.reply-link, .delete-link, .toggle-link {
  font-size: 0.8em;
  margin-right: 1em;
  text-decoration: underline;
}

.delete-link {
  color: red;
}
