/* メインコンテンツ */
main {
  padding-top: 80px;
}

/* 左列：プロフィール */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 2rem 0;
  border-right: 1px solid #eeeeee;
  padding-right: 2rem;
  position: sticky;
  top: 80px;
}

/* .profile-section img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
} */

.profile-video {
  width: 150px;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.profile-section h1 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.profile-section p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 1.2rem;
}

/* SNSリンク */
.sns-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sns-link {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border: 1px solid #111111;
  color: #111111;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Instagram */
.sns-instagram:hover {
  background-color: #e1306c;
  border-color: #e1306c;
  color: #ffffff;
}

/* MakerWorld */
.sns-makerworld:hover {
  background-color: #111111;
  border-color: #111111;
  color: #ffffff;
}

/* 中央列：コメント履歴 */
.comment-history {
  padding: 2rem 0;
  border-right: 1px solid #eeeeee;
  padding-right: 2rem;
}

.comment-history h2 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #111111;
}

#comment-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-item {
  background-color: #f9f9f9;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 1rem 1.5rem;
}

.comment-item .comment-name {
  font-size: 0.85rem;
  color: #888888;
  margin-bottom: 0.5rem;
}

.comment-item .comment-message {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #111111;
}

.comment-item .comment-date {
  font-size: 0.75rem;
  color: #aaaaaa;
  margin-top: 0.5rem;
  text-align: right;
}

/* 右列：コメント投稿フォーム */
.comment-form-section {
  padding: 2rem 0;
  position: sticky;
  top: 80px;
}

.comment-form-section h2 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #111111;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-form input,
.comment-form textarea {
  background-color: #f9f9f9;
  border: 1px solid #dddddd;
  color: #111111;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #aaaaaa;
}

.comment-form textarea {
  height: 150px;
  resize: vertical;
}

.comment-form button {
  align-self: flex-end;
  padding: 0.7rem 2rem;
  background-color: #111111;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.comment-form button:hover {
  background-color: #444444;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .profile-section {
    border-right: none;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 2rem;
    margin-bottom: 1rem;
    position: static;
  }

  .comment-history {
    border-right: none;
    padding-right: 0;
  }

  .comment-form-section {
    position: static;
  }
}

/* コメントフッター（日付・いいね・返信ボタン） */
.comment-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.comment-date {
  font-size: 0.75rem;
  color: #aaaaaa;
}

.like-btn {
  background: none;
  border: 1px solid #dddddd;
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.3s;
  color: #111111;
}

.like-btn:hover {
  background-color: #f9f9f9;
}

.reply-toggle-btn {
  background: none;
  border: none;
  font-size: 0.85rem;
  color: #888888;
  cursor: pointer;
  transition: color 0.3s;
  padding: 0;
}

.reply-toggle-btn:hover {
  color: #111111;
}

/* 返信フォーム */
.reply-form {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reply-form input,
.reply-form textarea {
  background-color: #ffffff;
  border: 1px solid #dddddd;
  color: #111111;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}

.reply-form input:focus,
.reply-form textarea:focus {
  border-color: #aaaaaa;
}

.reply-form textarea {
  height: 80px;
  resize: vertical;
}

.reply-submit-btn {
  align-self: flex-end;
  padding: 0.4rem 1.2rem;
  background-color: #111111;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.reply-submit-btn:hover {
  background-color: #444444;
}

/* 返信一覧 */
.reply-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reply-item {
  background-color: #f5f5f5;
  border-left: 3px solid #dddddd;
  border-radius: 4px;
  padding: 0.8rem 1rem;
}

.reply-item .reply-name {
  font-size: 0.8rem;
  color: #888888;
  margin-bottom: 0.3rem;
}

.reply-item .reply-message {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #111111;
}

.reply-item .reply-date {
  font-size: 0.75rem;
  color: #aaaaaa;
  margin-top: 0.3rem;
  text-align: right;
}

/* 返信フッター */
.reply-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.3rem;
}

.reply-like-btn {
  background: none;
  border: 1px solid #dddddd;
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.3s;
  color: #111111;
}

.reply-like-btn:hover {
  background-color: #eeeeee;
}