/*!
 * onuts-site.css  (ONUTS theme / phase 2 : site frame, second batch)
 * ADR 0100 decisions 8-11.  Loaded on every page by inc/site-frame.php.
 * header.php prints an inline <style> AFTER this file, so selectors start with `body`
 * (same approach as onuts-article.css). Accent colour stays #ff3f3f.
 *
 * Sections
 *   1. Top menu (PC red bar / smartphone drawer)
 *   2. Sidebar: headings + "タケちゃんのおすすめ記事" cards
 *   3. Top slider labels
 *   4. Article cards in lists (.main-list .item)
 *   5. Headings / buttons: "新着記事", list header, "もっと見る", pagination
 */

/* ============================================================
   1. Top menu  (7 items, no drop-down)
   ============================================================ */
@media screen and (min-width: 980px) {
  body #pc-menu .cat-list { display: flex; flex-wrap: nowrap; justify-content: center; }
  body #pc-menu .cat-list > li > a { padding: 0 18px; font-size: 15px; font-weight: bold; white-space: nowrap; }
  body #pc-menu .cat-list > li > a.is-current { background: rgba(0, 0, 0, .14); }
  body #pc-menu .cat-list > li > a.is-current::after { opacity: 1; }
}
@media screen and (min-width: 980px) and (max-width: 1119px) {
  body #pc-menu .cat-list > li > a { padding: 0 11px; font-size: 14px; }
}

body .drawer-inner .onuts-menu-list { margin: 10px 0 28px; }
body .drawer-inner .onuts-menu-list > li { padding: 0; border-bottom: 1px solid #ececec; }
body .drawer-inner .onuts-menu-list > li > a { display: block; padding: 13px 6px 13px 10px; font-size: 16px; font-weight: bold; line-height: 1.4; color: #444; border-left: 4px solid transparent; }
body .drawer-inner .onuts-menu-list > li > a.is-current { color: #ff3f3f; border-left-color: #ff3f3f; background: #fff3f3; }

/* ============================================================
   2. Sidebar
   ============================================================ */
/* headings: one shape for "タケちゃんのおすすめ記事" and the widgets */
body #side #popular-posts h2,
body #side .side-widget h3 {
  font-size: 18px; font-weight: bold; line-height: 1.45; color: #333;
  margin: 0 0 14px; padding: 0 0 6px; border-bottom: 2px solid #ff3f3f;
}

body #popular-posts .reco-list { margin: 0; padding: 0; }
body #popular-posts .reco-item { margin: 0 0 12px; padding: 0; }
body #popular-posts .reco-item a {
  display: flex; align-items: center; gap: 10px; overflow: hidden;
  background: #fff; border: 1px solid #f0dcdc; border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  transition: transform .25s, box-shadow .25s;
}
body #popular-posts .reco-item a:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(255, 63, 63, .18); }
body #popular-posts .reco-thumb { flex: 0 0 40%; width: 40%; margin: 0; }
body #popular-posts .reco-thumb img,
body #popular-posts .reco-thumb .noimage { display: block; width: 100%; height: auto; aspect-ratio: 256 / 135; object-fit: cover; }
body #popular-posts .reco-item .title { flex: 1 1 auto; display: block; padding: 8px 10px 8px 0; font-size: 14px; font-weight: bold; line-height: 1.45; color: #333; }
@media screen and (min-width: 980px) {
  body #popular-posts .reco-item a { display: block; }
  body #popular-posts .reco-thumb { width: 100%; }
  body #popular-posts .reco-item .title { padding: 10px 12px 12px; font-size: 15px; }
}

/* ============================================================
   3. Top slider labels  (新着 / タケちゃんのおすすめ)
   ============================================================ */
body #top-slider .new-item .title,
body #top-slider .reco-slide .title { position: relative; margin-top: 32px; }
body #top-slider .new-item .title::before,
body #top-slider .reco-slide .title::before {
  display: inline-block; padding: 1px 12px; border-radius: 12px;
  font-size: 12px; font-weight: bold; line-height: 20px; position: absolute; top: -22px;
}
body #top-slider .new-item .title::before { content: "新着"; color: #fff; background: #ff3f3f; }
body #top-slider .reco-slide .title::before { content: "タケちゃんのおすすめ"; color: #ff3f3f; background: #fff3f3; border: 1px solid #ff3f3f; padding: 0 12px; }

/* ============================================================
   4. Article cards  (top "新着記事" / category, tag, author, search, page 2+)
   Layout (image left / title right) is unchanged.
   ============================================================ */
body .main-list .item { overflow: visible; margin-bottom: 16px; }
body .main-list .item a {
  padding: 8px; box-sizing: border-box; background: #fff;
  border: 1px solid #f0e2e2; border-radius: 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
body .main-list .item a:hover { transform: translateY(-2px); border-color: #ffc9c9; box-shadow: 0 6px 16px rgba(255, 63, 63, .16); }
body .main-list .item-thumbnail { margin-right: 4px; }
body .main-list .item-metadata { align-content: center; padding: 0 6px 0 8px; }
body .main-list .item-cat {
  width: auto; margin: 0 0 6px; padding: 1px 9px; border-radius: 10px;
  font-size: 11px; font-weight: bold; line-height: 1.6; color: #fff; background: #ff3f3f;
}
body .main-list .item-cat::before { content: none; }
body .main-list .item h3 { font-size: 15px; line-height: 1.5; font-weight: bold; color: #333; }
body .main-list .item-update { margin-top: 4px; font-size: 12px; color: #999; }
@media screen and (min-width: 680px) {
  body .main-list .item-metadata { padding: 4px 10px 4px 12px; }
  body .main-list .item h3 { font-size: 17px; line-height: 1.5; }
  body .main-list .item-update { margin-top: 8px; }
}

/* ============================================================
   5. Headings / buttons
   ============================================================ */
/* "新着記事" = same shape as the article page's h2 (red band, 21px / 1.45 / 10px 12px) */
body .main-list h2 {
  display: block; margin: 0 15px 20px; padding: 10px 12px;
  font-size: 21px; line-height: 1.45; font-weight: bold; color: #fff; background: #ff3f3f;
}
/* list header (category / tag / author / search): keep the soft box, just tidy */
body .list-header { padding: 16px 15px; background: #fff7f7; border: 1px solid #f6dede; border-radius: 12px; }
body .list-header h1 { font-size: 22px; line-height: 1.45; }
body .list-header .list-header-comment { margin-top: 2px; font-size: 13px; color: #999; }

/* "もっと見る" and the pager: same red, same corner radius */
body .list-footer .more a {
  max-width: 480px; height: 48px; line-height: 48px; font-size: 16px; font-weight: bold;
  color: #fff; background: #ff3f3f; border: 2px solid #ff3f3f; border-radius: 12px; box-shadow: none; box-sizing: border-box;
}
body .list-footer .more a:hover { animation: none; background: #e83030; border-color: #e83030; }
body .pagination .nav-links { flex-wrap: wrap; justify-content: center; gap: 6px; margin: 20px 9px; }
body .pagination a,
body .pagination span {
  box-sizing: border-box; width: auto; min-width: 40px; height: 40px; margin: 0; padding: 0 8px;
  border: 2px solid #ff3f3f; border-radius: 12px; font-size: 16px; font-weight: bold; line-height: 36px;
  color: #fff; background: #ff3f3f;
}
body .pagination a:hover { background: #e83030; border-color: #e83030; }
body .pagination span.current { color: #ff3f3f; background: #fff; }
body .pagination span.dots { color: #999; background: transparent; border-color: transparent; padding: 0 2px; min-width: 0; }
body .pagination a.prev::before,
body .pagination a.next::before { font-size: 26px; line-height: 36px; }
@media screen and (min-width: 680px) {
  body .pagination .nav-links { margin: 28px 9px; }
}
