* {
  box-sizing: border-box;
}

/* Page Content */
.topic-show-page {
  width: 100%;
  background: #ffffff;
  padding: 40px 0 60px;
}

.topic-show-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 100px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* Main Content Area */
.topic-show-main {
  width: 100%;
}

.topic-article {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.topic-article-title {
  font-size: 48px;
  font-weight: 700;
  color: #fe4ba0;
  margin: 0;
  line-height: 1.5;
  font-family: "Noto Sans JP", sans-serif;
}

.topic-article-date {
  font-size: 24px;
  font-weight: 400;
  color: #4D4D4D;
  text-align: right;
  font-family: "Noto Sans JP", sans-serif;
}

.topic-article-publication {
  background: #E1F5FE;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 8px 0;
  color: #FE4BA0;
}

.topic-publication-content {
  font-size: 18px;
  font-weight: 400;
  color: #FE4BA0;
  line-height: 1.5;
  font-family: "Noto Sans JP", sans-serif;
}

.topic-article-intro {
  margin: 16px 0;
}

.topic-article-intro p {
  font-size: 18px;
  font-weight: 400;
  color: #1c1c1c;
  line-height: 1.8;
  margin: 0 0 16px 0;
  font-family: "Noto Sans JP", sans-serif;
}

.topic-article-content {
  margin-top: 24px;
}

.topic-article-content p {
  font-size: 16px;
  font-weight: 400;
  color: #1c1c1c;
  line-height: 1.8;
  margin: 0 0 20px 0;
  font-family: "Noto Sans JP", sans-serif;
}

.topic-article-content h2,
.topic-article-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fe4ba0;
  margin: 32px 0 16px 0;
  line-height: 1.5;
  font-family: "Noto Sans JP", sans-serif;
}

.topic-article-content h3 {
  font-size: 20px;
}

.topic-article-content ol,
.topic-article-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.topic-article-content li {
  font-size: 16px;
  font-weight: 400;
  color: #1c1c1c;
  line-height: 1.8;
  margin: 8px 0;
  font-family: "Noto Sans JP", sans-serif;
}

.topic-article-content ol li {
  list-style-type: decimal;
}

.topic-article-content ul li {
  list-style-type: disc;
}

/* Sidebar */
.topic-show-sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 12px;
  background: #FAFAFA;
  border-radius: 24px;
}

.topic-sidebar-block {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.topic-sidebar-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.topic-sidebar-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topic-sidebar-title {
  font-size: 24px;
  font-weight: 700;
  color: #fe4ba0;
  margin: 0;
  line-height: 1.5;
  font-family: "Noto Sans JP", sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.topic-sidebar-date {
  font-size: 12px;
  font-weight: 400;
  color: #828282;
  font-family: "Noto Sans JP", sans-serif;
}

.topic-sidebar-description {
  font-size: 16px;
  font-weight: 400;
  color: #1c1c1c;
  line-height: 1.6;
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.topic-sidebar-publication {
  background: #FEE2EF;
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 8px;
  color: #FE4BA0;
}

.topic-sidebar-publication-content {
  font-size: 12px;
  font-weight: 400;
  color: #FE4BA0;
  line-height: 1.5;
  font-family: "Noto Sans JP", sans-serif;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .topic-show-container {
    padding: 0 60px;
  }
}

@media (max-width: 1024px) {
  .topic-show-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .topic-show-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .topic-show-page {
    padding: 30px 0 40px;
  }

  .topic-show-container {
    padding: 0 30px;
    gap: 24px;
  }

  .topic-article-title {
    font-size: 28px;
  }

  .topic-article-intro p {
    font-size: 16px;
  }

  .topic-article-content p {
    font-size: 15px;
  }

  .topic-article-content h2 {
    font-size: 22px;
  }

  .topic-article-content h3 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .topic-show-container {
    padding: 0 20px;
    display: flex;
    flex-direction: column-reverse;
  }

  .topic-article {
    gap: 20px;
  }

  .topic-article-title {
    font-size: 24px;
  }

  .topic-article-date {
    font-size: 14px;
  }

  .topic-article-publication {
    padding: 12px 16px;
  }

  .topic-publication-content {
    font-size: 13px;
  }

  .topic-article-intro p {
    font-size: 15px;
  }

  .topic-article-content p {
    font-size: 14px;
  }

  .topic-sidebar-block {
    padding: 16px;
  }

  .topic-sidebar-title {
    font-size: 16px;
  }
}

