@charset "UTF-8";

/* =========================================================
   ブログ専用のスタイル (blog.css)
   ※ style.css を補完する形でブログ特有のデザインをまとめました。
========================================================= */

/* 「一覧に戻る」ボタン */
.back-button {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  color: var(--accent-teal);
  font-weight: bold;
  cursor: pointer;
  font-size: 1.05rem;
}

.back-button::before {
  content: "←";
  margin-right: 8px;
}

.back-button:hover {
  text-decoration: underline;
}

/* =========================================================
   ブログ一覧のデザイン (カード型)
========================================================= */
.blog-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px); /* 浮き上がるエフェクト */
  border-color: var(--accent-blue);
}

.blog-card-date {
  font-size: 0.9rem;
  color: var(--accent-gray);
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 12px;
}

.blog-card-author {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: right;
}

/* =========================================================
   ブログ記事本文のデザイン
========================================================= */
.blog-post {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.blog-post-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-main);
  border-bottom: 2px solid var(--accent-blue);
  padding-bottom: 15px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.blog-post-body {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-main);
  white-space: pre-wrap; /* スプレッドシートの改行をそのまま表示 */
}

/* =========================================================
   いいね！・コメント欄のデザイン
========================================================= */
.interaction-area {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px dashed var(--border-color);
}

/* いいねボタン */
.like-button {
  background: transparent;
  border: 2px solid var(--accent-pink);
  color: var(--accent-pink);
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.like-button:hover {
  background: rgba(255, 128, 149, 0.1);
}

.like-button.liked {
  background: var(--accent-pink);
  color: #fff;
}

/* コメントセクション */
.comments-section {
  margin-top: 40px;
}

.comments-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  border-left: 5px solid var(--accent-teal);
  padding-left: 10px;
}

/* 投稿されたコメント */
.comment-item {
  background: #f9f9f9;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #ebebeb;
}

.comment-name {
  font-weight: bold;
  color: var(--footer-bg);
  font-size: 0.95rem;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-delete-button {
  background: transparent;
  border: 1px solid #ff4d4d;
  color: #ff4d4d;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

.comment-delete-button:hover {
  background: #ff4d4d;
  color: #fff;
}

.comment-text {
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: pre-wrap;
}

/* コメント入力フォーム */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
  background: #fafafa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.comment-form textarea {
  resize: vertical; /* 縦方向のみサイズ変更可能 */
  min-height: 80px;
}

.comment-form button {
  background: var(--accent-teal);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.3s;
}

.comment-form button:hover {
  background: #007a80; /* 少し暗い色に */
}

/* =========================================================
   サイドバー用リストのデザイン
========================================================= */
#sidebar-latest-blogs {
  list-style: none;
  padding: 0;
}

#sidebar-latest-blogs li {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

#sidebar-latest-blogs li a {
  color: var(--text-main);
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}

#sidebar-latest-blogs li a:hover {
  color: var(--accent-teal);
}
