@charset "utf-8";

/* 一覧・詳細の構造を既存の阿蘇梅園の色・書体へ合わせる。 */
.hn-section {
  --hn-ink: #333;
  --hn-accent: #49613d;
  --hn-line: #d9dfd4;
}

.hn-home {
  scroll-margin-top: 70px;
}

.hn-inner > .hn-list {
  margin-top: 25px;
}

.hn-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hn-item {
  border-bottom: 1px solid var(--hn-line);
}

.hn-link,
.hn-link:visited {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 24px;
  padding: 20px 4px;
  color: var(--hn-ink);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.hn-link:hover {
  color: var(--hn-ink);
  background: #f0f3ed;
}

.hn-section a:focus-visible,
.hn-section button:focus-visible,
.hn-section input:focus-visible,
.hn-section summary:focus-visible {
  outline: 2px solid var(--hn-accent);
  outline-offset: 4px;
}

.hn-thumbnail {
  display: block;
  width: 128px;
  height: 84px;
  object-fit: cover;
  background: #f0f3ed;
}

.hn-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #333;
}

.hn-content {
  min-width: 0;
}

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

.hn-date,
.hn-category,
.hn-category:visited {
  color: #666;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.5;
}

.hn-category {
  padding: 2px 9px;
  border: 1px solid #49613d;
  color: #333;
  background: #f0f3ed;
}

.hn-title {
  display: block;
  color: var(--hn-ink);
  font-weight: normal;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.hn-arrow {
  color: var(--hn-accent);
  font-size: 18px;
  text-align: right;
}

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

.hn-detail-page {
  padding-top: 70px;
}

.hn-page {
  min-height: 65vh;
  padding-bottom: 0;
}

.hn-breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
}

.hn-breadcrumb li,
.hn-breadcrumb a {
  font-size: inherit;
  line-height: 1.5;
}

.hn-breadcrumb li + li::before {
  content: "／";
  margin-right: 14px;
}

.hn-breadcrumb li:last-child {
  overflow-wrap: anywhere;
}

.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 var(--hn-line);
  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-page .hn-link {
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: start;
  padding: 28px 0;
}

.hn-page .hn-thumbnail {
  width: 160px;
  height: 106px;
}

.hn-page .hn-link .hn-arrow {
  display: none;
}

.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: #f0f3ed;
}

.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 #49613d;
  background: #f0f3ed;
  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 var(--hn-line);
  background: #fff;
}

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

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

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

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

.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 var(--hn-line);
}

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

.hn-sidebar a:hover {
  color: #49613d;
  text-decoration: underline;
}

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

.hn-archive-year {
  border-bottom: 1px solid var(--hn-line);
}

.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: var(--hn-accent);
}

.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: #f0f3ed;
}

.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-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(2px, 0.5vw, 8px);
  margin-top: 40px;
}

.hn-pagination a,
.hn-pagination span {
  display: grid;
  place-items: center;
  flex: 0 1 40px;
  min-width: 24px;
  aspect-ratio: 1;
  padding: 0;
  white-space: nowrap;
  border: 1px solid #49613d;
  border-radius: 50%;
  color: #333;
  font-size: 12px;
}

.hn-pagination [aria-current],
.hn-pagination a:hover {
  background: #333;
  color: #fff;
}

.hn-pagination .hn-pagination-gap {
  border: 0;
}

.hn-article-title {
  margin: 16px 0 28px;
  color: var(--hn-ink);
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: normal;
  line-height: 1.7;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
  text-align: left;
}

.hn-article-cover {
  margin-bottom: 32px;
}

.hn-article-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
}

.hn-body {
  overflow-wrap: anywhere;
  text-align: justify;
  text-justify: inter-character;
  text-align-last: auto;
}

.hn-body {
  font-size: inherit;
  line-height: inherit;
}

.hn-body p,
.hn-body div,
.hn-body li {
  text-align: inherit;
  line-height: inherit;
}

.hn-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px 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 #49613d;
  background: #f0f3ed;
}

.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 var(--hn-line);
  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;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--hn-line);
}

.hn-share > span {
  color: var(--hn-accent);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hn-share a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--hn-line);
  border-radius: 50%;
  color: #333;
  font-size: 12px;
  line-height: 1;
}

.hn-share .fab {
  font-family: "Font Awesome 5 Brands";
}

.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 var(--hn-line);
  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: var(--hn-accent);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.hn-adjacent .hn-back {
  align-items: center;
  background: #333;
  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 .hn-link {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
  }

  .hn-page .hn-thumbnail {
    width: 120px;
    height: 84px;
  }
}

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

  .hn-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--hn-line);
  }

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

}

@media screen and (max-width: 540px) {
  .hn-link,
  .hn-page .hn-link {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
  }

  .hn-home .hn-link {
    grid-template-columns: 88px minmax(0, 1fr) 8px;
    gap: 10px;
  }

  .hn-thumbnail,
  .hn-page .hn-thumbnail {
    width: 88px;
    height: 66px;
  }

  .hn-meta {
    gap: 6px 10px;
  }

  .hn-date,
  .hn-category {
    font-size: 11px;
  }

  .hn-category {
    padding: 1px 6px;
  }

  .hn-title {
    font-size: 14px;
    line-height: 1.8;
  }

  .hn-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .hn-article-title {
    font-size: 22px;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .hn-section * {
    transition: none;
  }
}

.hn-section ul,
.hn-breadcrumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hn-section *,
.hn-breadcrumb * {
  box-sizing: border-box;
}

.hn-section a {
  text-decoration: none;
}

.hn-body a {
  text-decoration: underline;
}

.hn-section figure,
.hn-section p {
  margin-top: 0;
}

.hn-section .hn-body ul,
.hn-section .hn-body ol {
  margin-bottom: 1.8em;
  padding-left: 1.5em;
}

.hn-breadcrumb {
  margin-bottom: 32px;
  font-size: 13px;
}

.hn-article.news-article {
  padding: 28px;
}

.news-main.hn-news-page {
  width: 1320px;
}

.hn-home .hn-home-inner {
  width: 700px;
  max-width: 90%;
  margin: 0 auto;
}

.hn-home .hn-home-more {
  margin: 0;
  padding: 32px 0 48px;
  text-align: center;
}

.hn-home-more a {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid #8ea67a;
  color: #49613d;
  line-height: 2;
}

.hn-section .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media screen and (max-width: 540px) {
  .hn-article.news-article {
    padding: 24px 20px;
  }

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