/* News rows shared by the storefront home and the news archive. */
:is(.hana-bulletins, .hana-bulletin-detail) {
  --news-ink: #302923;
  --news-muted: #665b54;
  --news-red: #a81e18;
  --news-line: #e2dad4;
  color: var(--news-ink);
  font: 16px/1.65 "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-feature-settings: normal;
  letter-spacing: normal;
  text-align: left;
}

#hana-top-view #news,
#hana-news-view .news_all {
  padding-inline: 0;
}

:is(#hana-top-view, #hana-news-view) .hana-bulletins.bulletin {
  width: min(860px, calc(100% - 48px));
  max-width: none;
  margin-inline: auto;
}

.hana-bulletins .bulletin-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  border-bottom: 1px solid #d1c5bd;
}

.hana-bulletins .filter-buttons {
  display: flex;
  align-self: stretch;
  flex-wrap: wrap;
  gap: 0 18px;
}

.hana-bulletins .filter-buttons button {
  appearance: none;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--news-muted);
  background: none;
  padding: 8px 3px 9px;
  min-height: 44px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

.hana-bulletins .filter-buttons button[aria-pressed="true"] {
  color: var(--news-red);
  border-bottom-color: var(--news-red);
}

.hana-bulletins .bulletin-count,
.hana-bulletins .pager span {
  color: var(--news-muted);
  font-variant-numeric: tabular-nums;
}

.hana-bulletins .bulletin-count {
  font-size: 13px;
}

#hana-top-view .hana-bulletins .bulletin-rows {
  border-top: 1px solid var(--news-line);
}

.hana-bulletins .bulletin-row {
  margin: 0;
  border-bottom: 1px solid var(--news-line);
}

.hana-bulletins .bulletin-control {
  display: block;
  padding: 19px 12px 21px;
  color: inherit;
  text-align: left;
}

.hana-bulletins summary.bulletin-control {
  list-style: none;
  cursor: pointer;
}

.hana-bulletins summary::-webkit-details-marker {
  display: none;
}

:is(.hana-bulletins, .hana-bulletin-detail) .news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
}

:is(.hana-bulletins, .hana-bulletin-detail) .news-meta time {
  color: var(--news-muted);
  font-size: 14px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

:is(.hana-bulletins, .hana-bulletin-detail) .news-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
  white-space: nowrap;
}

:is(.hana-bulletins, .hana-bulletin-detail) .news-tag--news {
  color: #892d27;
  background: #faeeea;
  border-color: #e8c6be;
}

:is(.hana-bulletins, .hana-bulletin-detail) .news-tag--media {
  color: #34594a;
  background: #eaf2eb;
  border-color: #c6d9c9;
}

.hana-bulletins .bulletin-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 6px;
}

.hana-bulletins .bulletin-title {
  min-width: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.hana-bulletins .bulletin-toggle {
  position: relative;
  display: block;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-right: 5px;
}

.hana-bulletins .bulletin-toggle::before,
.hana-bulletins .bulletin-toggle::after {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 3px;
  background-color: var(--news-red);
}

.hana-bulletins .bulletin-toggle::after {
  transform: rotate(90deg);
}

.hana-bulletins details[open] > summary .bulletin-toggle::before {
  transform: rotate(45deg);
}

.hana-bulletins details[open] > summary .bulletin-toggle::after {
  transform: rotate(-45deg);
}

:is(.hana-bulletins, .hana-bulletin-detail) .bulletin-body {
  padding: 0 12px 22px;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

:is(#hana-top-view, #hana-news-view) .bulletin-body p {
  margin: 0 0 .6em;
  font-size: inherit;
  line-height: inherit;
}

.hana-bulletins [data-news-slug] .hana-feed-text {
  white-space: pre-line;
}

:is(#hana-top-view, #hana-news-view) .bulletin-body a {
  color: #8c251f;
  text-decoration: underline;
  text-underline-offset: .13em;
}

:is(.hana-bulletins, .hana-bulletin-detail) .bulletin-body img {
  max-width: 100%;
  height: auto;
}

.hana-bulletins .bulletin-link-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
}

.hana-bulletins .bulletin-detail-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  text-underline-offset: .2em;
}

:is(.hana-bulletins, .hana-bulletin-detail) :is(.bulletin-body a, .delivery-link) > .fa-up-right-from-square {
  margin-inline-start: .35em;
  font-size: .875em;
}

.hana-bulletins .bulletin-after {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 22px 0;
}

#hana-top-view .hana-bulletins .delivery-link {
  display: inline-block;
  color: var(--news-muted);
  padding: 8px 0;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: .2em;
}

:is(#hana-top-view, #hana-news-view) :is(.hana-bulletins, .hana-bulletin-detail) .more-link,
#hana-news-view .hana-bulletins .pager a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid #cbb8ae;
  border-radius: 7px;
  padding: 7px 17px;
  background: white;
  color: #7b2c24;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.hana-bulletins .pager,
.hana-bulletins [data-hana-feed-server-pages] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 27px auto 0;
}

.hana-bulletins .pager span {
  min-width: 70px;
  font-size: 14px;
  text-align: center;
}

#hana-news-view .hana-bulletins .pager [aria-disabled="true"] {
  border-color: var(--news-line);
  color: #857a70;
  background: transparent;
}

#hana-news-view .hana-bulletins [data-hana-feed-server-pages] a {
  color: #8c251f;
  text-decoration: underline;
}

:is(.hana-bulletins, .hana-bulletin-detail) :focus-visible {
  outline: 2px solid var(--news-red);
  outline-offset: 3px;
}

@media (hover: hover) {
  .hana-bulletins summary.bulletin-control:hover {
    background-color: #f8f3ef;
  }
  :is(#hana-top-view, #hana-news-view) :is(.hana-bulletins, .hana-bulletin-detail) .more-link:hover,
  #hana-news-view .hana-bulletins .pager a[href]:hover {
    background-color: #f8f2ee;
  }
}

/* Stable fragment URLs let the full historical notices open even without JavaScript. */
#hana-news-view .hana-news-archive-detail {
  display: none;
  width: min(760px, calc(100% - 44px));
  margin: 46px auto 80px;
}

#hana-news-view .hana-news-archive-detail:target,
#hana-news-view .hana-news-archive-detail.is-active {
  display: block;
}

#hana-news-view:has(.hana-news-archive-detail:target) > :is(.news_all, .breadcrumb) {
  display: none;
}

#hana-news-view > :is(.news_all, .breadcrumb)[hidden],
.hana-bulletins [hidden] {
  display: none !important;
}

#hana-news-view .hana-bulletin-detail h1 {
  color: var(--news-ink);
  margin: 12px 0 30px;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.hana-bulletin-detail .bulletin-body {
  padding: 16px 0;
  font-size: 17px !important;
}

.hana-bulletin-detail .more-link {
  margin-top: 24px;
}

@media (max-width: 600px) {
  :is(#hana-top-view, #hana-news-view) .hana-bulletins.bulletin {
    width: calc(100% - 34px);
  }
  .hana-bulletins .bulletin-control {
    padding: 15px 2px 17px;
  }
  .hana-bulletins .bulletin-title {
    font-size: 16px;
  }
  .hana-bulletins .bulletin-headline {
    gap: 13px;
  }
  .hana-bulletins .bulletin-body {
    padding-inline: 2px;
  }
  .hana-bulletins .filter-buttons {
    gap: 0 10px;
  }
  .hana-bulletins .filter-buttons button {
    padding-inline: 1px;
    font-size: 13px;
  }
  .hana-bulletins .bulletin-count {
    font-size: 12px;
  }
  .hana-bulletins .bulletin-after {
    justify-content: center;
  }
  .hana-bulletins .pager,
  .hana-bulletins [data-hana-feed-server-pages] {
    gap: 10px;
  }
}
