/* Original announcement layout and motion, inspired by the sequencing at yui540.com.
   No assets or source from the reference website are included here. */
.home-news {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: 40px;
  padding-block: 44px 64px;
}
.news-heading { padding-top: 20px; }
.news-heading h2 { font: 32px/1.5 var(--mincho); letter-spacing: .08em; }
.news-heading::after {
  content: ""; display: block; width: 48px; height: 2px;
  margin-top: 18px; background: var(--red);
}
.news-item {
  display: block; position: relative; min-width: 0;
  padding: 28px 32px; border: 1px solid #d5c8cd;
  color: var(--ink); background: #fff; text-decoration: none;
  -webkit-tap-highlight-color: #d987a42b;
}
.news-item::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: calc(100% + 2px); height: 3px;
  background: var(--season-spectrum); transform-origin: left center;
}
.news-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.news-category { color: var(--red); font-size: 13px; font-weight: 600; line-height: 1.8; }
.news-event-title { display: grid; gap: 4px; font-family: var(--mincho); }
.news-event-name { display: block; font-size: 29px; line-height: 1.7; white-space: nowrap; }
.news-edition { display: block; font-size: 16px; line-height: 1.9; }
.news-link-label {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  min-height: 44px; color: var(--red); font-size: 15px; font-weight: 600; line-height: 1.8;
}
.news-arrow {
  display: grid; place-items: center; flex: 0 0 38px;
  width: 38px; height: 38px; border: 1px solid #b8697b; border-radius: 50%;
}
.news-arrow::after {
  content: ""; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: translateX(-2px) rotate(45deg);
}
.news-item:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; background: var(--spring-soft); }
.news-item:active { background: var(--spring-soft); }
@media (hover: hover) {
  .news-item:hover { background: var(--spring-soft); border-color: #c998a5; }
  .news-item:hover .news-arrow { background: var(--red); border-color: var(--red); color: #fff; }
  .news-item:hover .news-arrow::after { transform: translateX(1px) rotate(45deg); }
}
@media (max-width: 820px) {
  .home-news { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 28px 44px; }
  .news-heading { padding-top: 0; display: flex; align-items: center; gap: 18px; }
  .news-heading h2 { font-size: 27px; }
  .news-heading::after { width: 36px; margin-top: 0; }
  .news-item { padding: 24px; }
  .news-link-label { margin-top: 4px; }
}
@media (max-width: 380px) {
  .news-item { padding: 22px 18px; }
  .news-category { font-size: 12px; }
  .news-event-name { font-size: 26px; }
  .news-link-label { font-size: 13px; gap: 12px; }
}
/* Play once when the announcement comes into view, after the intro has closed.
   Content remains visible when JavaScript or this enhancement is unavailable. */
@media (prefers-reduced-motion: no-preference) {
  .news-item { transition: background-color .55s ease, border-color .55s ease; }
  .news-arrow { transition: background-color .45s ease, border-color .45s ease, color .45s ease; }
  .news-arrow::after { transition: transform .45s ease; }
  .news-revealed .news-item::before { animation: daienkai-news-rule 1.4s cubic-bezier(.22, .61, .36, 1) both; }
  .news-revealed .news-content { animation: daienkai-news-content 1.15s ease-out .25s both; }
  .news-item:focus-visible::before, .news-item:focus-visible .news-content { animation: none; }
}
@keyframes daienkai-news-rule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes daienkai-news-content {
  from { opacity: 0; clip-path: inset(0 0 12%); }
  to { opacity: 1; clip-path: inset(0); }
}
@media print {
  .home-news { break-inside: avoid; padding-block: 20px; }
  .news-item { background: #fff; }
}

/* Markdown notices share the site's white paper, Mincho headings and seasonal line. */
.news-stream { display: grid; gap: 24px; min-width: 0; }
.notice-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.notice-list > li { border-bottom: 1px solid var(--line); }
.notice-row { display: flex; align-items: center; gap: 24px; padding: 25px 16px; text-decoration: none; min-width: 0; }
.notice-row-content { flex: 1; min-width: 0; }
.notice-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font: 13px/1.8 var(--gothic); color: var(--muted); }
.notice-category { color: var(--red); font-weight: 700; }
.notice-title { display: block; margin-top: 8px; font: 600 22px/1.8 var(--mincho); overflow-wrap: anywhere; }
.notice-row .news-arrow { color: var(--red); }
.notice-row:hover, .notice-row:focus-visible { background: var(--soft); }
.notice-row:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.notice-all { justify-self: end; }
.notice-index { padding-top: 20px; }
.notice-article { padding-bottom: 90px; background: #fff; }
.notice-article-heading { padding-top: 30px; }
.notice-article-heading .breadcrumb { display: flex; flex-wrap: wrap; gap: 8px 14px; line-height: 1.9; }
.notice-article-heading .breadcrumb > [aria-current] { overflow-wrap: anywhere; }
.notice-article-heading h1 { font-size: clamp(28px, 3.4vw, 45px); line-height: 1.65; letter-spacing: .035em; margin-top: 18px; overflow-wrap: anywhere; text-wrap: balance; }
.notice-article-heading::after { content: ""; display: block; width: 144px; height: 3px; margin-top: 28px; background: var(--season-spectrum); }
.notice-prose { margin-top: 48px; font-size: 16px; line-height: 2.05; overflow-wrap: anywhere; }
.notice-prose h2 { font-size: 27px; line-height: 1.7; margin: 42px 0 22px; letter-spacing: .035em; }
.notice-prose h3, .notice-prose h4, .notice-prose h5, .notice-prose h6 { margin: 32px 0 16px; font-size: 21px; }
.notice-prose ul, .notice-prose ol { padding-left: 1.5em; margin-block: 24px; }
.notice-prose li + li { margin-top: 15px; }
.notice-prose a { color: var(--red); text-decoration-thickness: 1px; }
.notice-prose blockquote { margin: 28px 0; border-left: 3px solid var(--line); padding: 8px 24px; color: var(--muted); }
.notice-prose pre { overflow-x: auto; padding: 20px; background: #f5f6f8; font-size: 14px; }
.notice-prose code { font-size: .9em; }
.notice-prose img { margin: 24px auto; }
.notice-table { overflow-x: auto; margin-block: 28px; }
.notice-table table { width: 100%; border-collapse: collapse; min-width: 420px; }
.notice-table th, .notice-table td { padding: 12px 16px; text-align: left; border: 1px solid var(--line); }
.notice-table th { background: #f5f6f8; }
.notice-return { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 48px; }
.notice-empty { padding-block: 24px; }
@media (max-width: 820px) {
  .news-stream { gap: 20px; }
  .notice-row { gap: 16px; padding: 22px 4px; }
  .notice-title { font-size: 20px; }
  .notice-article { padding-bottom: 60px; }
  .notice-article-heading { padding-top: 18px; }
  .notice-article-heading h1 { font-size: 30px; line-height: 1.75; letter-spacing: .02em; }
  .notice-article-heading .breadcrumb { font-size: 11px; margin-bottom: 30px; }
  .notice-prose { margin-top: 36px; line-height: 2; }
  .notice-prose h2 { font-size: 24px; }
  .notice-return { gap: 14px 24px; margin-top: 36px; }
  .notice-return .quiet-link { font-size: 14px; min-height: 48px; }
}
@media (max-width: 380px) {
  .notice-title { font-size: 18px; }
  .notice-article-heading h1 { font-size: 27px; }
  .notice-prose h2 { font-size: 22px; }
}
