/* Style.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;
}

.nav li {
  
}

.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;
}

.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;
}

/* スレッドカード */
.card-link {
  display: block;
  text-decoration: none;
  margin-bottom: 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-link:hover,
.card-link:focus {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(79, 195, 247, 0.6);
  z-index: 2;
  position: relative;
}

.card {
  background: #232323;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.5rem;
  transition: background 0.3s ease;
}

.card-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4fc3f7;
  letter-spacing: 0.03em;
}

.card-description {
  color: #bbb;
  font-size: 0.9rem;
  font-weight: 400;
}

/* ボタン（スレッド開く） */
.buttonOutlineGlow {
  position: relative;
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.5rem 1.2rem;
  font-weight: 700;
  color: #4fc3f7;
  border: 2px solid #4fc3f7;
  border-radius: 30px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.3s ease;
  user-select: none;
}

.buttonOutlineGlow_bg {
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, #4fc3f7, #81d4fa, #4fc3f7);
  transition: all 0.5s ease;
  filter: blur(8px);
  z-index: -1;
}

.buttonOutlineGlow:hover .buttonOutlineGlow_bg {
  left: 0;
}

.buttonOutlineGlow:hover {
  color: #121212;
  background: #81d4fa;
}

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

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

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

.sidebar input[type="text"]: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;
}

/* dl (お知らせ) */
dl {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  border-left: 3px solid #4fc3f7;
  padding-left: 0.6rem;
}

dt {
  font-weight: 700;
  color: #81d4fa;
  white-space: nowrap;
}

dd {
  margin: 0;
  color: #ddd;
  flex: 1;
}

/* テーブル内セル調整 */
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;
  }
}
