/* thread.css */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #121212;
  color: #eee;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
}

a {
  color: #4fc3f7;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #81d4fa;
}

/* ヘッダー */
header {
  background: #1f1f1f;
  padding: 1rem 2rem;
  border-bottom: 2px solid #4fc3f7;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.header_a {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  background: transparent;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.header_a:hover,
.header_a:focus {
  background: #4fc3f7;
  color: #121212;
  border-color: #4fc3f7;
}

/* レイアウト */
.wrapper {
  display: flex;
  max-width: 1100px;
  margin: 2rem auto;
  gap: 2rem;
  padding: 0 1rem;
}

.post {
  flex: 3;
}

/* 投稿チャット風表示 */
.twitter__container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 投稿1件のスタイル */
.chat01 {
  background: #232323;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  box-shadow: 0 0 8px rgba(0,0,0,0.6);
  transition: box-shadow 0.3s ease;
}

.chat01:hover {
  box-shadow: 0 0 16px #4fc3f7;
}

.talk01 {
  color: #ddd;
  font-size: 1rem;
  line-height: 1.4;
  position: relative;
}

/* 投稿者名 */
.name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #4fc3f7;
  margin-bottom: 0.6rem;
}

/* 投稿日時と👍 */
.talk01 a {
  color: #81d4fa;
  font-weight: 700;
  margin-left: 0.5rem;
}

.talk01 a:hover {
  color: #4fc3f7;
  text-decoration: underline;
}

/* サイドバー */
.sidebar {
  flex: 1;
  background: #1e1e1e;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(79, 195, 247, 0.3);
}

.sidebar h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  border-bottom: 2px solid #4fc3f7;
  padding-bottom: 0.3rem;
  font-weight: 700;
  font-size: 1.4rem;
}

/* サイドバーのフォーム */
.sidebar form {
  margin-bottom: 1.5rem;
}

.sidebar input[type="text"],
.sidebar textarea,
.sidebar input[type="submit"],
.sidebar input[type="checkbox"] {
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: 5px;
  border: none;
}

.sidebar input[type="text"],
.sidebar textarea {
  width: 100%;
  margin-bottom: 0.8rem;
  background: #333;
  color: #eee;
  border: 1px solid #555;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.sidebar textarea {
  font-family: 'Roboto', sans-serif;
  min-height: 150px;
}

.sidebar input[type="text"]:focus,
.sidebar textarea:focus {
  outline: none;
  border-color: #4fc3f7;
}

.button005 {
  background: #4fc3f7;
  color: #121212;
  font-weight: 700;
  border-radius: 30px;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0.6rem 0;
}

.button005:hover,
.button005:focus {
  background: #81d4fa;
  color: #121212;
}

/* テーブル内セル調整 */
table {
  width: 100%;
  border-collapse: collapse;
}

td {
  padding: 0;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .wrapper {
    flex-direction: column;
  }
  .sidebar {
    order: -1;
    margin-bottom: 2rem;
  }
}
