* {
  box-sizing: border-box;
}
/* =============================== Column Show Page Styles =============================== */
.column-show-page {
  width: 100%;
  background: #ffffff;
  padding: 40px 0 60px;
}

.column-show-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
}

/* =============================== Main Content Area (Left 70%) =============================== */
.column-show-main {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.column-article {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.article-meta {
  margin-bottom: 32px;
  text-align: right;
}

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

.article-image-show-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
}

.article-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  box-sizing: border-box;
}

.article-content {
  width: 100%;
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
  font-family: "Noto Sans JP", sans-serif;
}

.article-content h2 span {
  font-size: 24px;
  font-weight: 700;
  color: #fe4ba0 !important;
  margin: 30px 0 20px 0;
  padding-bottom: 10px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1c1c1c;
  margin: 25px 0 15px 0;
}

.article-content p {
  margin: 0 0 20px 0;
}

.article-content ul,
.article-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.article-content li {
  margin: 10px 0;
  line-height: 1.8;
}

.article-content strong {
  font-weight: 700;
  color: #1c1c1c;
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  box-sizing: border-box;
}

.article-author-info {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.article-author-show-info {
  margin-bottom: 10px;
  display: flex;
  align-items: end;
  flex-direction: column;
  gap: 10px;
}

.article-author-show-auth,
.article-affiliation-show-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-name,
.affiliation-name {
  font-size: 28px;
  color: #fe4ba0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
}

/* =============================== Sidebar (Right 30%) =============================== */
.column-show-sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.column-show-sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: #1c1c1c;
  margin: 0 0 20px 0;
  font-family: "Noto Sans JP", sans-serif;
}

/* Ranking Section */
.column-show-sidebar-ranking {
  background: #fff2f8;
  padding: 10px;
  border-radius: 12px;
}

.border-bottom {
  width: 100%;
  height: 1px;
  background: #c4c4c4;
  margin: 4px 0;
}
.column-show-sidebar-ranking,
.column-show-sidebar-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.column-show-sidebar-ranking-first {
  background: #fa309b;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.column-show-sidebar-ranking-first .column-show-sidebar-ranking-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}

.column-show-sidebar-ranking-first .column-show-sidebar-ranking-text {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  line-height: 1.5;
  font-family: "Noto Sans JP", sans-serif;
}

.column-show-sidebar-ranking-item {
  padding: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.column-show-sidebar-ranking-item:hover {
  background: #f5f5f5;
  transform: translateX(4px);
}

.column-show-sidebar-ranking-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.column-show-sidebar-ranking-badge .rank-icon {
  width: 40px;
  height: auto;
}

.column-show-sidebar-ranking-content {
  flex: 1;
  display: flex;
  align-items: center;
}

.column-show-sidebar-ranking-text-item {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  font-family: "Noto Sans JP", sans-serif;
  position: relative;
}

.column-show-sidebar-ranking-text-item::before {
  content: "";
  position: absolute;
  top: 1px;
  left: -5px;
  width: 7px;
  height: 9px;
  background-image: url("../../images/icons/star-pink.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}

.column-show-sidebar-ranking-text-item::after {
  content: "";
  position: absolute;
  top: 10px;
  left: -3px;
  width: 4px;
  height: 5px;
  background-image: url("../../images/icons/star-pink.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}

/* Popular Articles Section */
.column-show-sidebar-popular {
  width: 100%;
  background: #fff2f8;
  border-radius: 10px;
  padding: 20px 10px;
}

.column-show-sidebar-popular-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.column-show-sidebar-popular-item {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
}

.column-show-popular-item-link {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  flex-direction: column;
}

.column-show-popular-item-link:hover {
  opacity: 0.8;
}

.column-show-popular-item-image {
  flex-shrink: 0;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
}

.column-show-popular-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.column-show-popular-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.column-show-popular-item-meta {
  margin-bottom: 4px;
}

.column-show-popular-item-date {
  font-size: 15px;
  color: #828282;
  font-weight: 500;
  font-family: "Noto Sans JP", sans-serif;
}

.column-show-popular-item-title {
  font-size: 20px;
  font-weight: 700;
  color: #1c1c1c;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "Noto Sans JP", sans-serif;
}

.column-show-popular-author-name {
  font-size: 16px;
  font-weight: 700;
  color: #fe4ba0;
  font-family: "Noto Sans JP", sans-serif;
}

.column-show-popular-item-author,
.column-show-popular-item-affiliation {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.column-show-popular-affiliation-name {
  font-size: 16px;
  font-weight: 700;
  color: #fe4ba0;
  font-family: "Noto Sans JP", sans-serif;
}

.column-show-sidebar-popular-title {
  font-size: 24px;
  font-weight: 700;
  color: #000000;
  font-family: "Noto Sans JP", sans-serif;
  margin: 0 0 20px 0;
  text-align: center;
}

/* =============================== Responsive Styles =============================== */
@media (max-width: 1024px) {
  .column-show-container {
    grid-template-columns: 1fr;
    padding: 0 40px;
    gap: 40px;
  }

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

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

  .column-show-container {
    padding: 0 20px;
    gap: 30px;
  }

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

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

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

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

  .column-show-sidebar-ranking {
    padding: 20px;
  }

  .column-show-sidebar-ranking-first {
    padding: 16px;
  }

  .column-show-sidebar-ranking-item {
    padding: 12px;
  }

  .column-show-popular-item-image {
    width: 70px;
    height: 70px;
  }

  .column-show-popular-item-title {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .column-show-container {
    padding: 0 15px;
  }

  .article-title {
    font-size: 20px;
  }

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

  .column-show-sidebar-ranking-first .column-show-sidebar-ranking-text {
    font-size: 12px;
  }

  .column-show-sidebar-ranking-text-item {
    font-size: 12px;
  }

  .column-show-popular-item-image {
    width: 60px;
    height: 60px;
  }

  .column-show-popular-item-title {
    font-size: 12px;
  }

  .article-content ul {
    padding: 0 !important;
  }

  .article-content li {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    list-style: none;
  }

  .article-content li::before {
    content: "•";
    color: inherit;
    font-size: 1em;
    line-height: 1;
  }

  .article-content p {
    margin: 0 !important;
  }

  .column-show-container{
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
}
