/* Cocoon Diver Style Reproducer */
body.cdsr-enabled {
  background: var(--cdsr-bg);
  color: var(--cdsr-text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.cdsr-enabled *, .cdsr-enabled *::before, .cdsr-enabled *::after { box-sizing: border-box; }
.cdsr-enabled a { transition: opacity .2s ease, color .2s ease, background .2s ease, transform .2s ease; }
.cdsr-enabled a:hover { opacity: .82; }

/* Header */
.cdsr-enabled .header-container,
.cdsr-enabled #header-container {
  min-height: var(--cdsr-header-height);
  background-color: #fff;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: min(var(--cdsr-header-image-width), 100%) auto !important;
  border: 0;
  box-shadow: none;
}
.cdsr-enabled .header-container-in,
.cdsr-enabled .header-in,
.cdsr-enabled #header-in {
  min-height: var(--cdsr-header-height);
  max-width: var(--cdsr-site-width);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cdsr-enabled .logo,
.cdsr-enabled .logo-header { width: min(var(--cdsr-header-image-width), 100%); min-height: var(--cdsr-header-height); }
.cdsr-enabled .site-name-text-link { display: flex; min-height: var(--cdsr-header-height); align-items: center; justify-content: center; }

/* Navigation */
.cdsr-enabled #navi,
.cdsr-enabled .navi {
  background: var(--cdsr-nav-bg);
  color: var(--cdsr-nav-text);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #e6e6e6;
}
.cdsr-enabled #navi-in,
.cdsr-enabled .navi-in { max-width: var(--cdsr-site-width); }
.cdsr-enabled #navi .navi-in > ul,
.cdsr-enabled .navi-in > ul { justify-content: center; }
.cdsr-enabled #navi .navi-in a,
.cdsr-enabled .navi-in a {
  color: var(--cdsr-nav-text);
  min-height: 48px;
  padding: 0 24px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  background: transparent;
}
.cdsr-enabled #navi .navi-in a:hover,
.cdsr-enabled .navi-in a:hover { color: var(--cdsr-accent-dark); background: rgba(0,0,0,.025); }
.cdsr-enabled .navi-in > ul > li.current-menu-item > a,
.cdsr-enabled .navi-in > ul > li.current-menu-parent > a { box-shadow: inset 0 -3px 0 var(--cdsr-accent); }

/* Trending bar */
.cdsr-trending-bar { background: #fff; border-bottom: 1px solid #ededed; overflow: hidden; }
.cdsr-trending-in { max-width: var(--cdsr-site-width); margin: 0 auto; display: flex; align-items: stretch; min-height: 45px; }
.cdsr-trending-label { flex: 0 0 auto; display: inline-flex; align-items: center; padding: 0 17px; color: #fff; background: var(--cdsr-accent-dark); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.cdsr-trending-track { display: flex; overflow-x: auto; scrollbar-width: none; }
.cdsr-trending-track::-webkit-scrollbar { display: none; }
.cdsr-trending-track a { flex: 0 0 auto; display: inline-flex; gap: 8px; align-items: center; padding: 0 15px; border-right: 1px solid #eee; color: #333; font-size: 12px; white-space: nowrap; }
.cdsr-trending-track a span { color: var(--cdsr-accent-dark); font-weight: 700; }
.cdsr-trending-track time { color: #999; font-size: 10px; }

/* Main layout */
.cdsr-enabled .content-in,
.cdsr-enabled #content-in,
.cdsr-enabled .footer-in,
.cdsr-enabled #footer-in { max-width: var(--cdsr-site-width); }
.cdsr-enabled .content-in,
.cdsr-enabled #content-in { gap: 28px; padding-top: 30px; }
.cdsr-enabled .main,
.cdsr-enabled #main { width: min(var(--cdsr-main-width), 100%); background: var(--cdsr-card); border: 0; border-radius: 0; box-shadow: 0 1px 5px rgba(0,0,0,.06); padding: 28px 30px; }
.cdsr-enabled .sidebar,
.cdsr-enabled #sidebar { width: min(var(--cdsr-sidebar-width), 100%); }
.cdsr-enabled .breadcrumb { color: var(--cdsr-muted); font-size: 12px; }

/* Section titles */
.cdsr-section-title,
.cdsr-enabled .list-title,
.cdsr-enabled .archive-title {
  margin: 0 0 18px;
  padding: 0 0 11px;
  color: #333;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  border: 0;
  border-bottom: 2px solid #333;
  position: relative;
}
.cdsr-section-title::after,
.cdsr-enabled .list-title::after,
.cdsr-enabled .archive-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 72px; height: 2px; background: var(--cdsr-accent); }
.cdsr-home-section { margin: 0 0 34px; }
.cdsr-new-title { font-size: 19px; }

/* Cocoon index cards */
.cdsr-index-cards .entry-card-wrap,
.cdsr-index-cards .related-entry-card-wrap {
  display: block;
  margin: 0;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid #ececec;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.cdsr-index-cards .entry-card-wrap:first-of-type { padding-top: 0; }
.cdsr-index-cards .entry-card-wrap:hover { background: transparent; transform: translateY(-1px); }
.cdsr-index-cards .entry-card { display: flex; align-items: flex-start; gap: 18px; }
.cdsr-index-cards .entry-card-thumb { width: 285px; min-width: 285px; margin: 0; overflow: hidden; background: #eee; aspect-ratio: 16 / 9; }
.cdsr-index-cards .entry-card-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transform: scale(1.001); transition: transform .35s ease; }
.cdsr-index-cards .entry-card-wrap:hover .entry-card-thumb img { transform: scale(1.035); }
.cdsr-index-cards .entry-card-content { padding: 0; min-width: 0; }
.cdsr-index-cards .entry-card-title { margin: 3px 0 10px; font-size: 18px; line-height: 1.55; color: #222; font-weight: 700; }
.cdsr-index-cards .entry-card-snippet { color: #666; font-size: 13px; line-height: 1.75; }
.cdsr-index-cards .post-date,
.cdsr-index-cards .post-update,
.cdsr-index-cards .entry-card-meta { color: #999; font-size: 11px; }
.cdsr-index-cards .cat-label { top: auto; bottom: 0; left: 0; border: 0; border-radius: 0; padding: 4px 9px; background: rgba(0,0,0,.78); font-size: 10px; }

/* Custom cards and fixed posts */
.cdsr-fixed-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 18px; }
.cdsr-custom-card { margin: 0; background: #fff; border: 1px solid #ececec; overflow: hidden; }
.cdsr-card-link { display: flex; color: inherit; text-decoration: none; }
.cdsr-card-thumb { flex: 0 0 42%; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #eee; }
.cdsr-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cdsr-custom-card:hover img { transform: scale(1.04); }
.cdsr-card-body { flex: 1; min-width: 0; padding: 18px 20px; }
.cdsr-card-cat { display: inline-block; margin-bottom: 8px; color: var(--cdsr-accent-dark); font-size: 11px; font-weight: 700; }
.cdsr-card-body h3 { margin: 0 0 9px !important; padding: 0 !important; border: 0 !important; background: none !important; color: #222; font-size: 19px !important; line-height: 1.55; }
.cdsr-card-body p { margin: 0 0 9px; color: #666; font-size: 13px; line-height: 1.7; }
.cdsr-card-body time { color: #999; font-size: 11px; }

.cdsr-shortcode-posts { display: grid; gap: 20px; margin: 24px 0; }
.cdsr-shortcode-posts.cdsr-layout-grid.cdsr-columns-1 { grid-template-columns: 1fr; }
.cdsr-shortcode-posts.cdsr-layout-grid.cdsr-columns-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cdsr-shortcode-posts.cdsr-layout-grid.cdsr-columns-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cdsr-shortcode-posts.cdsr-layout-grid.cdsr-columns-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.cdsr-shortcode-posts.cdsr-layout-grid .cdsr-card-link { display: block; }
.cdsr-shortcode-posts.cdsr-layout-grid .cdsr-card-thumb { width: 100%; }
.cdsr-shortcode-posts.cdsr-layout-grid .cdsr-card-body { padding: 14px; }
.cdsr-shortcode-posts.cdsr-layout-grid .cdsr-card-body h3 { font-size: 15px !important; }
.cdsr-shortcode-posts.cdsr-layout-grid .cdsr-card-body p { display: none; }
.cdsr-shortcode-posts.cdsr-layout-list { grid-template-columns: 1fr; }

/* Article */
.cdsr-article-style .article { color: var(--cdsr-text); font-size: var(--cdsr-font-size); line-height: var(--cdsr-line-height); }
.cdsr-article-style .article p { margin: 0 0 1.45em; }
.cdsr-article-style .article h1,
.cdsr-article-style .entry-title { margin: 8px 0 18px; padding: 0 0 15px; color: #222; font-size: clamp(25px, 3.1vw, 34px); line-height: 1.45; border: 0; border-bottom: 2px solid #222; }
.cdsr-article-style .article h2 { margin: 2.4em 0 1em; padding: .68em .82em; color: #222; font-size: clamp(21px, 2.4vw, 27px); line-height: 1.5; background: #fff8f9; border: 0; border-left: 7px solid var(--cdsr-accent); border-bottom: 2px solid var(--cdsr-accent); }
.cdsr-article-style .article h3 { margin: 2em 0 .85em; padding: .35em .2em .55em; color: #333; font-size: clamp(18px, 2vw, 23px); line-height: 1.55; background: transparent; border: 0; border-bottom: 2px solid #333; }
.cdsr-article-style .article h3::after { content: ""; display: block; width: 55px; border-bottom: 2px solid var(--cdsr-accent); position: relative; bottom: -2px; }
.cdsr-article-style .article h4 { margin: 1.7em 0 .8em; padding-left: .75em; border-left: 4px solid var(--cdsr-accent); font-size: 1.08em; }
.cdsr-article-style .article blockquote { margin: 1.8em 0; padding: 1.25em 1.45em; background: #fafafa; border: 1px solid #e8e8e8; border-left: 5px solid var(--cdsr-accent); color: #555; }
.cdsr-article-style .article ul,
.cdsr-article-style .article ol { margin: 1.2em 0 1.6em; padding: 1em 1.25em 1em 2.4em; background: #fffafb; border: 1px solid #f0d9de; }
.cdsr-article-style .article li { margin: .45em 0; }
.cdsr-article-style .article table { border-collapse: collapse; margin: 1.5em 0; font-size: .94em; }
.cdsr-article-style .article th { background: #fff2f5; }
.cdsr-article-style .article th,
.cdsr-article-style .article td { padding: .8em; border: 1px solid #ddd; }
.cdsr-article-style .toc { margin: 2em auto; padding: 22px 25px; background: #fafafa; border: 1px solid #dedede; border-top: 4px solid var(--cdsr-accent); border-radius: 0; }
.cdsr-article-style .toc-title { font-size: 18px; letter-spacing: .06em; }
.cdsr-article-style .sns-share-buttons a,
.cdsr-article-style .sns-follow-buttons a { border-radius: 2px; }
.cdsr-article-style .tag-link { border-radius: 0; background: #f3f3f3; color: #555; }
.cdsr-article-style .author-box { border: 1px solid #e5e5e5; border-radius: 0; background: #fafafa; }
.cdsr-article-style .related-entry-card-wrap { padding: 14px 0; }

/* Pagination */
.cdsr-enabled .pagination { margin: 30px 0 5px; }
.cdsr-enabled .pagination .page-numbers { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; margin: 3px; border: 1px solid #ddd; border-radius: 0; background: #fff; color: #444; }
.cdsr-enabled .pagination .current { background: var(--cdsr-accent-dark); border-color: var(--cdsr-accent-dark); color: #fff; }

/* Sidebar */
.cdsr-sidebar-style .sidebar .widget { margin: 0 0 24px; padding: 20px; background: #fff; border: 0; box-shadow: 0 1px 5px rgba(0,0,0,.06); }
.cdsr-sidebar-style .sidebar .widget-title { margin: -20px -20px 18px; padding: 14px 16px 12px; background: #fff; color: #333; border: 0; border-bottom: 2px solid #333; position: relative; font-size: 16px; text-align: center; letter-spacing: .04em; }
.cdsr-sidebar-style .sidebar .widget-title::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 55px; height: 2px; transform: translateX(-50%); background: var(--cdsr-accent); }
.cdsr-sidebar-style .sidebar .popular-entry-card,
.cdsr-sidebar-style .sidebar .new-entry-card { padding: 10px 0; border-bottom: 1px solid #eee; }
.cdsr-sidebar-style .sidebar .popular-entry-card-title,
.cdsr-sidebar-style .sidebar .new-entry-card-title { font-size: 13px; line-height: 1.55; }
.cdsr-sidebar-style .sidebar .search-box { border: 1px solid #ddd; border-radius: 0; }
.cdsr-sidebar-style .sidebar .search-edit { border-radius: 0; }
.cdsr-sidebar-style .sidebar .search-submit { color: var(--cdsr-accent-dark); }

/* Footer */
.cdsr-footer-style .footer,
.cdsr-footer-style #footer { margin-top: 44px; background: var(--cdsr-footer-bg); color: var(--cdsr-footer-text); border: 0; }
.cdsr-footer-style .footer a,
.cdsr-footer-style #footer a { color: var(--cdsr-footer-text); }
.cdsr-footer-style .footer-bottom { border-top-color: rgba(255,255,255,.15); }

/* Mobile */
@media (max-width: 1023px) {
  .cdsr-enabled .content-in,
  .cdsr-enabled #content-in { display: block; padding: 20px 14px 0; }
  .cdsr-enabled .main,
  .cdsr-enabled #main,
  .cdsr-enabled .sidebar,
  .cdsr-enabled #sidebar { width: 100%; max-width: none; }
  .cdsr-enabled .sidebar,
  .cdsr-enabled #sidebar { margin-top: 25px; }
}
@media (max-width: 768px) {
  .cdsr-enabled .header-container,
  .cdsr-enabled #header-container,
  .cdsr-enabled .header-container-in,
  .cdsr-enabled .header-in,
  .cdsr-enabled #header-in,
  .cdsr-enabled .logo,
  .cdsr-enabled .logo-header,
  .cdsr-enabled .site-name-text-link { min-height: var(--cdsr-header-height-mobile); }
  .cdsr-enabled .header-container,
  .cdsr-enabled #header-container { background-size: auto var(--cdsr-header-height-mobile) !important; }
  .cdsr-trending-in { min-height: 40px; }
  .cdsr-trending-label { padding: 0 11px; font-size: 10px; }
  .cdsr-trending-track a { padding: 0 12px; font-size: 11px; }
  .cdsr-trending-track time { display: none; }
  .cdsr-enabled .main,
  .cdsr-enabled #main { padding: 21px 17px; box-shadow: none; }
  .cdsr-index-cards .entry-card-wrap { padding: 14px 0; }
  .cdsr-index-cards .entry-card { gap: 12px; }
  .cdsr-index-cards .entry-card-thumb { width: 38%; min-width: 38%; }
  .cdsr-index-cards .entry-card-title { margin: 0 0 6px; font-size: 14px; line-height: 1.48; }
  .cdsr-index-cards .entry-card-snippet { display: none; }
  .cdsr-card-link { display: block; }
  .cdsr-card-thumb { width: 100%; }
  .cdsr-card-body { padding: 15px; }
  .cdsr-shortcode-posts.cdsr-layout-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .cdsr-shortcode-posts .cdsr-card-body { padding: 11px; }
  .cdsr-shortcode-posts .cdsr-card-body h3 { font-size: 13px !important; }
  .cdsr-article-style .article { font-size: max(16px, var(--cdsr-font-size)); }
  .cdsr-article-style .article h2 { margin-top: 2em; padding: .6em .65em; }
  .cdsr-sidebar-style .sidebar .widget { padding: 17px; }
  .cdsr-sidebar-style .sidebar .widget-title { margin: -17px -17px 16px; }
}
