/* News uses the Chosei type, spacing and unframed list language. */
body[data-bub-page-family="news"] {
  --font-ja: Inter, "Zen Kaku Gothic New", sans-serif;
  --font-num: Inter, "Zen Kaku Gothic New", sans-serif;
  font-family: var(--font-ja);
}
.news-index-inner { width: min(calc(100% - var(--gutter) * 2), 1040px); margin-inline: auto; }
.news-index-header { padding-block: 32px 0; }
.news-index-header h1 { font-size: 32px; line-height: 44px; }
.news-index-categories { display: flex; gap: 20px; margin-top: 24px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.news-index-categories::-webkit-scrollbar { display: none; }
.news-index-categories a { display: flex; flex: 0 0 auto; align-items: center; min-height: 48px; padding: 10px 0; border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14px; line-height: 24px; color: var(--muted); }
.news-index-categories a[aria-current] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.news-index-categories a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.news-index-results { padding-block: 0 var(--section-space); }
.news-index-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.news-index-count { flex-shrink: 0; color: var(--muted); font: 400 13px/20px var(--font-num); }
.news-index-list { margin: 0; padding: 0; list-style: none; }
.news-index-list li { border-bottom: 1px solid var(--line); }
.news-index-item { display: block; padding-block: 24px; }
.news-index-copy { min-width: 0; }
.news-index-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 12px; line-height: 20px; margin-top: 8px; }
.news-index-meta > * { white-space: nowrap; }
.news-index-meta time { font-family: var(--font-num); }
.news-index-item-body { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 12px; align-items: center; }
.news-index-item.has-image .news-index-item-body { grid-template-columns: 88px minmax(0, 1fr) 20px; }
.news-index-item-body h3 { font-size: 16px; line-height: 26px; font-weight: 700; overflow-wrap: anywhere; }
.news-index-item.has-image h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: 52px; overflow: hidden; }
.news-index-item-body img { width: 88px; height: 66px; object-fit: cover; border-radius: 8px; background: var(--surface-subtle); }
.news-index-item-body img.news-index-placeholder { object-fit: contain; background: #303030; }
.news-index-item .ic { color: var(--muted); }
.news-index-empty { padding-block: 32px; color: var(--muted); }
.news-index-explore { padding-block: 40px; background: var(--surface-subtle); }
.news-index-explore h2 { font-size: var(--type-section); line-height: var(--line-section); margin-bottom: 16px; }

/* Keep article content and conditions intact; only reading geometry changes. */
.bub-site-page[data-bub-page-family="news"] .news-article-opening { padding-top: 24px; }
.bub-site-page[data-bub-page-family="news"] .news-article-opening-copy,
.bub-site-page[data-bub-page-family="news"] .news-article-hero { width: min(calc(100% - var(--gutter) * 2), 760px); }
.bub-site-page[data-bub-page-family="news"] .newsroom-meta { font: 400 13px/22px var(--font-ja); gap: 4px 12px; }
.bub-site-page[data-bub-page-family="news"] .newsroom-meta a { text-decoration: underline; text-underline-offset: 4px; }
.bub-site-page[data-bub-page-family="news"] .news-article-header h1 { font-size: 24px; line-height: 36px; margin-top: 12px; }
.bub-site-page[data-bub-page-family="news"] .news-article-summary { font-size: 14px; line-height: 26px; }
.bub-site-page[data-bub-page-family="news"] .news-article-hero img { aspect-ratio: auto; height: auto; object-fit: contain; }
.bub-site-page[data-bub-page-family="news"] .news-article-body { padding-top: 24px; }
/* 目次: an outlined box with a centred title and a [非表示] switch, hairline rows inside (as the Goodpatch blog). */
.bub-site-page[data-bub-page-family="news"] .news-article-toc { margin-bottom: 48px; padding: 0 20px; border: 1px solid rgb(47 47 47 / 18%); border-radius: var(--radius-action); background: none; }
.bub-site-page[data-bub-page-family="news"] .news-article-toc summary { display: flex; align-items: baseline; justify-content: center; gap: 12px; padding: 20px 0 12px; cursor: pointer; list-style: none; }
.bub-site-page[data-bub-page-family="news"] .news-article-toc summary::-webkit-details-marker { display: none; }
.bub-site-page[data-bub-page-family="news"] .news-article-toc details:not([open]) summary { padding-bottom: 20px; }
.bub-site-page[data-bub-page-family="news"] .news-article-toc h2 { font-size: 16px; line-height: 24px; }
.bub-site-page[data-bub-page-family="news"] .news-article-toc-toggle { color: var(--muted); font-size: 13px; line-height: 20px; }
.bub-site-page[data-bub-page-family="news"] .news-article-toc-toggle span { margin-inline: 2px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.bub-site-page[data-bub-page-family="news"] .news-article-toc details:not([open]) .is-shown,
.bub-site-page[data-bub-page-family="news"] .news-article-toc details[open] .is-hidden { display: none; }
.bub-site-page[data-bub-page-family="news"] .news-article-toc :is(ol, ul) { margin: 0 0 8px; padding: 0; list-style: none; }
.bub-site-page[data-bub-page-family="news"] .news-article-toc li + li { border-top: 1px solid var(--line); }
.bub-site-page[data-bub-page-family="news"] .news-article-toc a { display: block; padding-block: 16px; font-size: 14px; line-height: 24px; text-decoration: none; }
@media (min-width: 768px) {
  .bub-site-page[data-bub-page-family="news"] .news-article-toc { padding-inline: 40px; }
  .bub-site-page[data-bub-page-family="news"] .news-article-toc summary { padding-top: 24px; }
  .bub-site-page[data-bub-page-family="news"] .news-article-toc details:not([open]) summary { padding-bottom: 24px; }
}
/* Reading rhythm: 16/32 text, one 24px gap between blocks, a wider break before each section. */
.bub-site-page[data-bub-page-family="news"] .news-article-content > * { margin-block: 0; }
.bub-site-page[data-bub-page-family="news"] .news-article-content > * + * { margin-top: 24px; }
.bub-site-page[data-bub-page-family="news"] .news-article-content :is(p, li) { font-size: 16px; line-height: 32px; }
.bub-site-page[data-bub-page-family="news"] .news-article-content > h2 { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 22px; line-height: 34px; }
.bub-site-page[data-bub-page-family="news"] .news-article-content > h3 { margin-top: 48px; font-size: 18px; line-height: 30px; }
.bub-site-page[data-bub-page-family="news"] .news-article-content > h4 { margin-top: 32px; font-size: 16px; line-height: 28px; }
.bub-site-page[data-bub-page-family="news"] .news-article-content > :is(h2, h3, h4) + * { margin-top: 16px; }
.bub-site-page[data-bub-page-family="news"] .news-article-content > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.bub-site-page[data-bub-page-family="news"] .news-article-content img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-media); }
.bub-site-page[data-bub-page-family="news"] .news-article-content :is(ul, ol) { padding-left: 24px; }
.bub-site-page[data-bub-page-family="news"] .news-article-content ul { list-style: disc; }
.bub-site-page[data-bub-page-family="news"] .news-article-content li + li { margin-top: 8px; }
.bub-site-page[data-bub-page-family="news"] .news-article-content hr { margin-block: 48px; border: 0; border-top: 1px solid var(--line); }
/* A section heading already draws its own rule; the editor's <hr> before it would double it. */
.bub-site-page[data-bub-page-family="news"] .news-article-content > hr:has(+ h2) { display: none; }
.bub-site-page[data-bub-page-family="news"] .news-article-content a:not(.button) { text-decoration: underline; text-underline-offset: 4px; }
.bub-site-page[data-bub-page-family="news"] .news-article-content .news-article-action a { text-decoration: none; }
.bub-site-page[data-bub-page-family="news"] .news-external-icon { display: inline-block; width: 14px; height: 14px; margin-left: 2px; vertical-align: -2px; }
.bub-site-page[data-bub-page-family="news"] .news-external-tail { white-space: nowrap; }
/* Dates carry their icon (公開日 clock, 更新日 refresh), as the Goodpatch blog does. */
.bub-site-page[data-bub-page-family="news"] .news-article-date { display: inline-flex; align-items: center; gap: 4px; }
.bub-site-page[data-bub-page-family="news"] .news-article-date .ic { width: 14px; height: 14px; color: var(--muted); }
.bub-site-page[data-bub-page-family="news"] .news-article-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.bub-site-page[data-bub-page-family="news"] .news-article-pagination a { display: grid; align-content: start; gap: 8px; min-height: 44px; font-size: 14px; line-height: 24px; }
.bub-site-page[data-bub-page-family="news"] .news-article-pagination span { color: var(--muted); font-size: 12px; line-height: 20px; }
.bub-site-page[data-bub-page-family="news"] .news-article-index-link { display: flex; justify-content: center; margin-top: 32px; text-decoration: none; }
.bub-site-page[data-bub-page-family="news"] .button { border-radius: var(--radius-action); gap: 8px; font-size: 14px; line-height: 24px; }

@media (min-width: 768px) {
  .news-index-header { padding-top: 48px; }
  .news-index-categories { gap: 24px; margin-top: 32px; }
  .news-index-item { padding-block: 28px; }
  .news-index-item.has-image .news-index-item-body { grid-template-columns: 160px minmax(0, 1fr) 20px; gap: 24px; }
  .news-index-item-body img { width: 160px; height: 120px; }
  .news-index-item-body h3 { font-size: 18px; line-height: 28px; }
  .news-index-item.has-image h3 { -webkit-line-clamp: 3; max-height: 84px; }
  .news-index-meta { margin-top: 12px; }
  .bub-site-page[data-bub-page-family="news"] .news-article-opening { padding-top: 40px; }
  .bub-site-page[data-bub-page-family="news"] .news-article-header h1 { font-size: 32px; line-height: 44px; }
}
@media (hover: hover) {
  .news-index-item:hover h3, .news-explore-card:hover strong { text-decoration: underline; text-underline-offset: 4px; }
  .news-explore-card:hover img { opacity: .92; }
  .news-index-categories a:hover { color: var(--ink); }
}

/* 滞在をもっと見る: photo cards (activity hub / plan pages). Phones: a rail with the next card peeking. */
.news-explore-cards { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; }
.news-explore-cards::-webkit-scrollbar { display: none; }
.news-explore-card { display: flex; flex-direction: column; scroll-snap-align: start; color: var(--ink); }
.news-explore-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-media); }
.news-explore-card strong { margin-top: 12px; font-size: 16px; line-height: 24px; font-weight: 700; }
.news-explore-names { display: flex; flex-wrap: wrap; gap: 0 10px; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 20px; }
@media (min-width: 768px) {
  .news-explore-cards { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; overflow: visible; margin-inline: 0; padding: 0; }
  .news-explore-card img { aspect-ratio: 4 / 3; }
  .news-explore-card strong { font-size: 18px; line-height: 28px; }
  .news-explore-names { font-size: 14px; line-height: 22px; }
}

/* お知らせ一覧へ戻る: the TOP 「すべて見る」 control — hairline outline and chevron, ink outline on desktop. */
.bub-site-page[data-bub-page-family="news"] .news-article-index-link .news-view-all { width: 100%; min-height: 40px; padding: 9px 16px; gap: 8px; border: 1px solid rgb(47 47 47 / 18%); border-radius: 4px; background: transparent; color: rgb(47 47 47 / 85%); font-size: 14px; line-height: 20px; font-weight: 400; }
.bub-site-page[data-bub-page-family="news"] .news-view-all .ic { width: 16px; height: 16px; color: var(--muted); opacity: .7; }
.bub-site-page[data-bub-page-family="news"] .news-view-all:active { background: var(--interaction-pressed); }
@media (min-width: 1024px) {
  .bub-site-page[data-bub-page-family="news"] .news-article-index-link .news-view-all { width: fit-content; min-height: 50px; padding: 10px 28px 10px 32px; gap: 4px; border-color: var(--ink); color: var(--ink); font-size: 16px; line-height: 22px; }
  .bub-site-page[data-bub-page-family="news"] .news-view-all .ic { width: 18px; height: 18px; color: currentColor; opacity: 1; }
}
@media (hover: hover) {
  .bub-site-page[data-bub-page-family="news"] .news-view-all:hover:not(:active) { background: var(--interaction-hover); border-color: rgb(47 47 47 / 28%); }
}

/* Articles in TOP's tone (owner, 2026-10-07): imported text reads as one voice — 15px body at 85%, a line
   that is only bold becomes a small 17px head with space above, photos at 12px, links bold without
   underlines. */
.bub-site-page .news-article-content p { margin: 0 0 14px; color: rgb(47 47 47 / 85%); font-size: 15px; line-height: 28px; }
.bub-site-page .news-article-content p:has(> strong:only-child),
.bub-site-page .news-article-content p:has(> b:only-child) { margin: 32px 0 8px; color: var(--ink); font-size: 17px; line-height: 28px; font-weight: 700; }
.bub-site-page .news-article-content p > :is(strong, b) { font-weight: 700; }
.bub-site-page .news-article-content :is(img, figure img, iframe) { max-width: 100%; height: auto; border-radius: 12px; }
.bub-site-page .news-article-content a { color: var(--ink); font-weight: 700; text-decoration: none; }
.bub-site-page .news-article-content :is(ul, ol) { margin: 0 0 16px; padding-left: 1.2em; color: rgb(47 47 47 / 85%); font-size: 15px; line-height: 28px; }

/* ===== /news/ in TOP tone (owner 2026-10-07 「정리안대로」) =====
 * The newest article opens as a photo card, the rest are rows on phones (space, no hairlines, 12px photos)
 * and photo cards 3 across on the 1200 grid on the web; 12 at first, the rest open with 「さらに見る」. */
body.bub-site-page .news-index-inner { width: min(calc(100% - 40px), 1200px); }
body.bub-site-page .news-index-categories { border-bottom: 0; }
body.bub-site-page .news-index-results { padding-top: 20px; }
body.bub-site-page .news-index-list { display: grid; gap: 8px; }
body.bub-site-page .news-index-list li { border: 0; }
body.bub-site-page .news-more-toggle:not(:checked) + .news-index-list > li.is-more { display: none; }
body.bub-site-page .news-index-item { padding-block: 12px; color: var(--ink); text-decoration: none; }
body.bub-site-page .news-index-item-body img { border-radius: 12px; }
body.bub-site-page .news-index-item-body img.news-index-placeholder { object-fit: contain; background: #2f2f2f; filter: invert(1) brightness(1.1); }
body.bub-site-page .news-index-meta { gap: 4px 10px; align-items: center; }
body.bub-site-page .news-index-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--surface-subtle, #e7ecec); color: rgb(47 47 47 / 75%); font-size: 11px; line-height: 20px; font-weight: 700; }
/* Lead: the newest article as a photo card. */
body.bub-site-page .news-index-list > li.is-lead .news-index-item { padding: 0 0 16px; }
body.bub-site-page .news-index-list > li.is-lead .news-index-item-body { display: block; }
body.bub-site-page .news-index-list > li.is-lead .news-index-item-body img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
body.bub-site-page .news-index-list > li.is-lead .news-index-copy { margin-top: 14px; }
body.bub-site-page .news-index-list > li.is-lead h3 { font-size: 19px; line-height: 28px; -webkit-line-clamp: 3; max-height: 84px; }
body.bub-site-page .news-index-list > li.is-lead .ic { display: none; }
body.bub-site-page .news-more-button { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 52px; margin-top: 24px; border-radius: 12px; background: var(--surface-subtle, #e7ecec); color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; }
body.bub-site-page .news-more-button span { color: rgb(47 47 47 / 60%); font: 500 13px/20px var(--font-num), var(--font-ja); }
body.bub-site-page .news-more-toggle:checked ~ .news-more-button { display: none; }
body.bub-site-page .news-more-toggle:focus-visible ~ .news-more-button { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (min-width: 768px) {
  body.bub-site-page .news-index-inner { width: min(calc(100% - 64px), 1200px); }
  body.bub-site-page .news-index-results { padding-top: 32px; }
  body.bub-site-page .news-index-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
  body.bub-site-page .news-index-item { padding: 0; }
  body.bub-site-page .news-index-item.has-image .news-index-item-body { display: block; }
  body.bub-site-page .news-index-item-body img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  body.bub-site-page .news-index-item .ic { display: none; }
  body.bub-site-page .news-index-copy { margin-top: 14px; }
  body.bub-site-page .news-index-item-body h3 { font-size: 16px; line-height: 26px; }
  body.bub-site-page .news-index-item.has-image h3 { -webkit-line-clamp: 2; max-height: 52px; }
  body.bub-site-page .news-index-meta { margin-top: 8px; }
  body.bub-site-page .news-index-list > li.is-lead { grid-column: 1 / -1; }
  body.bub-site-page .news-index-list > li.is-lead .news-index-item { padding: 0 0 16px; }
  body.bub-site-page .news-index-list > li.is-lead .news-index-item-body { display: grid !important; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
  body.bub-site-page .news-index-list > li.is-lead .news-index-item-body img { aspect-ratio: 16 / 9; }
  body.bub-site-page .news-index-list > li.is-lead .news-index-copy { margin: 0; }
  body.bub-site-page .news-index-list > li.is-lead h3 { font-size: 26px; line-height: 38px; -webkit-line-clamp: 4; max-height: 152px; }
  body.bub-site-page .news-more-button { width: min(100%, 360px); margin: 48px auto 0; }
}
