
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
}

.card {
  width: 340px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
}

.card-title a {
  text-decoration: none;
  color: #222;
  font-size: 1.05rem;
  font-weight: 600;
  display: block;
  line-height: 1.4;
}

.card-title a:hover {
  color: #007aff;
}

.card-meta {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #888;
}

.ads {
  margin: 3rem auto;
  text-align: center;
}
form textarea {
  width: 100%;
  min-height: 60px;
  margin-top: 5px;
}
form input, form button {
  margin-top: 5px;
}
.btn {
  background: #007aff;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
}
.btn:hover {
  background: #005be3;
}
.article-link-box {
  text-align: center;
  margin-top: 2rem;
}

.article-button {
  background-color: #007aff;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background 0.3s;
}

.article-button:hover {
  background-color: #0056d6;
}

.article-domain {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.5rem;
}

.detail-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
  gap: 20px;
}

.article-main {
  flex: 1 1 700px;
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
}

.sidebar {
  width: 260px;
  background: #fafafa;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.sidebar h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.sidebar a {
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
}

.sidebar-thumb {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 6px;
  object-fit: cover;
}

.adsense-block {
  background: #f5f5f5;
  color: #666;
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  font-size: 0.9rem;
}
.comment-box {
  margin-top: 3rem;
}

.comment-count {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.comment-form {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  background: #fafafa;
}

.comment-form-header {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.comment-input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.comment-textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  resize: vertical;
  font-size: 0.95rem;
}

.comment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.comment-char-count {
  font-size: 0.85rem;
  color: #888;
}

.comment-submit {
  background-color: #e60023;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.comment-submit:hover {
  background-color: #c9001f;
}
