@charset "utf-8";

/* 既存 topics.css の記事行・文字・ボタンを共用し、検索と2カラム構造を補う。 */
.hn-page {
  box-sizing: border-box;
}

.hn-page > .contents1200 {
  width: min(100%, 1200px);
}

#topics .topic-detail-back {
  padding-bottom: 50px;
}

#topics .topics-thumb,
.hn-page .topics-thumb {
  height: auto;
}

.hn-page .topics-list {
  width: 100%;
  margin-top: 0;
}

.hn-page .topics-item a {
  grid-template-columns: 180px minmax(0, 1fr);
}

.hn-page .topics-pagination {
  flex-wrap: nowrap;
  gap: 4px;
}

.hn-page .topics-pagination a,
.hn-page .topics-pagination span {
  flex: 0 1 46px;
  box-sizing: border-box;
  min-width: 0;
  padding: 0;
  white-space: nowrap;
}

.hn-page .topics-pagination .hn-pagination-gap {
  flex: 0 0 16px;
}

.hn-page .topic-detail-title,
.hn-page .topic-detail-body,
.hn-breadcrumb .pankuzu,
.topics-title {
  overflow-wrap: anywhere;
}

.hn-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.hn-date {
  font-size: 15px;
  letter-spacing: .22em;
}

.hn-category {
  padding: 2px 9px;
  border: 1px solid #003c5f;
  color: #003c5f;
  font-size: 12px;
  line-height: 1.5;
}

.hn-message {
  padding: 40px 0;
  text-align: center;
}

.hn-article .topic-detail-title {
  margin-top: 22px;
}

.hn-search input,
.hn-search button {
  font: inherit;
}

.hn-search .hn-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hn-section a:focus-visible,
.hn-section button:focus-visible,
.hn-section input:focus-visible,
.hn-section summary:focus-visible {
  outline: 2px solid #003c5f;
  outline-offset: 4px;
}

.hn-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 40px;
  align-items: start;
}

.hn-main-column,
.hn-sidebar {
  min-width: 0;
}

.hn-list-summary {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid #ccc;
  scroll-margin-top: 90px;
}

.hn-list-summary h2 {
  margin: 0;
  font-size: 15px;
  font-weight: normal;
  text-align: left;
}

.hn-list-summary p {
  color: #666;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.hn-excerpt {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #666;
  font-size: 12px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.hn-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  font-size: 12px;
}

.hn-active-filters span {
  padding: 2px 8px;
  background: #f4f4f4;
}

.hn-active-filters a {
  color: #333;
  text-decoration: underline;
}

.hn-sidebar-section + .hn-sidebar-section {
  margin-top: 30px;
}

.hn-sidebar-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 15px;
  border-left: 5px solid #003c5f;
  background: #f4f4f4;
  font-size: 16px;
  font-weight: normal;
  text-align: left;
}

.hn-sidebar-heading span[lang] {
  font-family: "Libre Baskerville", serif;
  color: #666;
  font-size: 12px;
}

.hn-search {
  display: flex;
  min-height: 40px;
  border: 1px solid #ccc;
  background: #fff;
}

.hn-search input[type="search"] {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  color: #111;
  background: transparent;
  font-size: 12px;
}

.hn-search input::placeholder {
  color: #666;
}

.hn-search button {
  flex: 0 0 40px;
  border: 0;
  border-radius: 0;
  background: #003c5f;
  color: #fff;
  cursor: pointer;
}

.hn-search button i {
  color: inherit;
  font-family: "Font Awesome 5 Free";
}

.hn-search button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.hn-search-status {
  font-size: 12px;
}

.hn-category-list a,
.hn-archive-year a,
.hn-archive-year summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  color: #333;
  font-size: 12px;
}

.hn-category-list li {
  border-bottom: 1px solid #ccc;
}

.hn-count {
  flex-shrink: 0;
  color: #666;
  font-size: 11px;
}

.hn-sidebar a:hover {
  color: #003c5f;
  text-decoration: underline;
}

.hn-sidebar [aria-current] {
  color: #333;
  font-weight: bold;
  background: #f4f4f4;
}

.hn-archive-year {
  border-bottom: 1px solid #ccc;
}

.hn-archive-year summary {
  cursor: pointer;
  list-style: none;
}

.hn-archive-year summary::-webkit-details-marker {
  display: none;
}

.hn-archive-year summary > span:first-child::before {
  content: "›";
  display: inline-block;
  width: 16px;
  color: #003c5f;
}

.hn-archive-year[open] summary > span:first-child::before {
  transform: rotate(90deg);
}

.hn-archive-year ul {
  padding: 0 4px 12px 20px;
}

.hn-archive-year a {
  padding: 4px;
}

.hn-recent-list li + li {
  margin-top: 12px;
}

.hn-recent-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.hn-recent-link img,
.hn-recent-placeholder {
  width: 64px;
  height: 44px;
  object-fit: cover;
  background: #f4f4f4;
}

.hn-recent-link > span:not(.hn-recent-placeholder) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 11px;
  line-height: 1.7;
}

.hn-body {
  text-align: justify;
  text-justify: inter-ideograph;
  text-align-last: auto;
}

.hn-body p,
.hn-body ul,
.hn-body ol,
.hn-body blockquote,
.hn-body table {
  margin-bottom: 1.8em;
}

.hn-body h2,
.hn-body h3,
.hn-body h4,
.hn-body h5,
.hn-body h6 {
  margin: 1.7em 0 0.8em;
  text-align: left;
}

.hn-body h2 {
  font-size: 22px;
}

.hn-body h3 {
  font-size: 18px;
}

.hn-body ul,
.hn-body ol {
  padding-left: 1.5em;
}

.hn-body ul li {
  list-style: disc;
}

.hn-body ol li {
  list-style: decimal;
}

.hn-body a {
  color: #333;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hn-body blockquote {
  padding: 20px 24px;
  border-left: 5px solid #003c5f;
  background: #f4f4f4;
}

.hn-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.hn-body th,
.hn-body td {
  padding: 10px 16px;
  border-bottom: 1px solid #ccc;
  text-align: left;
}

.hn-body .hn-ql-align-center {
  text-align: center;
}

.hn-body .hn-ql-align-right {
  text-align: right;
}

.hn-body .hn-ql-align-justify {
  text-align: justify;
}

.hn-body .hn-ql-size-small {
  font-size: 12px;
}

.hn-body .hn-ql-size-large {
  font-size: 20px;
}

.hn-body .hn-ql-size-huge {
  font-size: 28px;
}

.hn-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #ccc;
}

.hn-share > span {
  flex-basis: 100%;
  color: #003c5f;
  font-size: 14px;
}

.hn-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-width: 48px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #aaa;
  color: #333;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}

.hn-share a > span {
  color: inherit;
  font-size: inherit;
  line-height: 1.5;
}

.hn-share a > .hn-share-x {
  font-size: 24px;
  line-height: 1;
}

/* フッター用SNSアイコンのサイズ・余白・色を共有ボタンへ持ち込まない。 */
.hn-share .fab {
  display: block;
  margin: 0;
  padding: 0;
  color: inherit;
  font-family: "Font Awesome 5 Brands";
  font-size: 24px;
  line-height: 1;
}

.hn-adjacent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.hn-adjacent a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid #ccc;
  color: #333;
  font-size: 12px;
  line-height: 1.7;
}

.hn-adjacent a > span:last-child {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hn-adjacent .hn-adjacent-label {
  color: #003c5f;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.hn-adjacent .hn-back {
  align-items: center;
  background: #003c5f;
  color: #fff;
}

.hn-adjacent .hn-next {
  text-align: right;
}


@media screen and (max-width: 1000px) {
  .hn-columns {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 30px;
  }

  .hn-page .topics-item a {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
  }

  .hn-page .topics-thumb {
    width: 110px;
  }
}

@media screen and (max-width: 760px) {
  .hn-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hn-search input[type="search"] {
    font-size: 16px;
  }

  .hn-adjacent {
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
    gap: 8px;
  }

  .hn-adjacent a {
    padding: 10px 8px;
  }
}

@media screen and (max-width: 390px) {
  #topics .topics-item a,
  .hn-page .topics-item a {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 10px;
    padding-right: 0;
    padding-left: 0;
  }

  #topics .topics-thumb,
  .hn-page .topics-thumb {
    width: 80px;
  }
}

.hn-news-page:lang(en) .hn-body {
  text-justify: inter-word;
  hyphens: auto;
}

.hn-news-page:lang(ko) .hn-body {
  text-justify: auto;
}
