.ki-modern-shell {
  color: #182433;
}

/* =========================================================
   List date hierarchy + desktop media-layout tuning
   ========================================================= */
.ki-modern-shell .post-list-meta {
  align-content: start;
}

.ki-modern-shell .post-list-meta .post-list-cat {
  order: 1;
}

.ki-modern-shell .post-list-meta .post-list-title {
  order: 2;
}

.ki-modern-shell .post-list-meta .ki-post-taxline {
  order: 3;
}

.ki-modern-shell .post-list-meta .post-list-date {
  order: 4;
  display: block !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin-top: -1px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #7b879b !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  opacity: .9;
}

.ki-modern-shell .post-list-meta .post-list-desc {
  order: 5;
}

@media (min-width: 768px) {
  .ki-modern-shell.archive .post-list-mag .post-list-inner,
  .ki-modern-shell.category .post-list-mag .post-list-inner,
  .ki-modern-shell.blog .post-list-mag .post-list-inner {
    display: grid !important;
    grid-template-columns: 230px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
    padding: 12px !important;
  }

  .ki-modern-shell.archive .post-list-mag .post-list-thumb,
  .ki-modern-shell.category .post-list-mag .post-list-thumb,
  .ki-modern-shell.blog .post-list-mag .post-list-thumb {
    width: 100% !important;
    aspect-ratio: 830 / 470 !important;
  }

  .ki-modern-shell.archive .post-list-mag .post-list-meta,
  .ki-modern-shell.category .post-list-mag .post-list-meta,
  .ki-modern-shell.blog .post-list-mag .post-list-meta {
    gap: 7px !important;
  }

  .ki-modern-shell.archive .post-list-mag .post-list-title,
  .ki-modern-shell.category .post-list-mag .post-list-title,
  .ki-modern-shell.blog .post-list-mag .post-list-title {
    font-size: 18px !important;
    line-height: 1.45 !important;
    -webkit-line-clamp: 3 !important;
  }
}

/* =========================================================
   Mobile card lists: force thumbnail-left media layout
   (category/archive/top card-type lists)
   ========================================================= */
@media (max-width: 767px) {
  .ki-modern-shell .post-list-mag .post-list-inner,
  .ki-modern-shell .toppost-list-box-simple .post-list-inner,
  .ki-modern-shell .toppost-list-box .post-list-mag .post-list-inner {
    display: grid !important;
    grid-template-columns: 132px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
    padding: 10px !important;
  }

  .ki-modern-shell .post-list-mag .post-list-thumb,
  .ki-modern-shell .toppost-list-box-simple .post-list-thumb,
  .ki-modern-shell .toppost-list-box .post-list-mag .post-list-thumb {
    width: 100% !important;
    aspect-ratio: 830 / 470 !important;
    margin: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  .ki-modern-shell .post-list-mag .post-list-thumb img,
  .ki-modern-shell .toppost-list-box-simple .post-list-thumb img,
  .ki-modern-shell .toppost-list-box .post-list-mag .post-list-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .ki-modern-shell .post-list-mag .post-list-meta,
  .ki-modern-shell .toppost-list-box-simple .post-list-meta,
  .ki-modern-shell .toppost-list-box .post-list-mag .post-list-meta {
    display: grid !important;
    min-width: 0;
    align-content: start;
    gap: 6px !important;
  }

  .ki-modern-shell .post-list-mag .post-list-title,
  .ki-modern-shell .toppost-list-box-simple .post-list-title,
  .ki-modern-shell .toppost-list-box .post-list-mag .post-list-title {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.42 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .ki-modern-shell .post-list-mag .post-list-date,
  .ki-modern-shell .toppost-list-box-simple .post-list-date,
  .ki-modern-shell .toppost-list-box .post-list-mag .post-list-date {
    order: 3 !important;
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #7b879b !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  .ki-modern-shell .post-list-mag .post-list-desc,
  .ki-modern-shell .toppost-list-box-simple .post-list-desc,
  .ki-modern-shell .toppost-list-box .post-list-mag .post-list-desc {
    display: none !important;
  }

  .ki-modern-shell .post-list-mag .post-list-item,
  .ki-modern-shell .toppost-list-box-simple .post-list-item,
  .ki-modern-shell .toppost-list-box .post-list-mag .post-list-item {
    margin-bottom: 12px !important;
  }

}

@media (max-width: 390px) {
  .ki-modern-shell .post-list-mag .post-list-inner,
  .ki-modern-shell .toppost-list-box-simple .post-list-inner,
  .ki-modern-shell .toppost-list-box .post-list-mag .post-list-inner {
    grid-template-columns: 118px minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 9px !important;
  }
}

/* -------------------------------------------------
 * Article top widget (#post-top-widget)
 * ------------------------------------------------- */
.ki-modern-shell #post-top-widget {
  margin: 0 0 20px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,250,255,.92));
  border: 1px solid rgba(19, 34, 68, 0.08);
  box-shadow: 0 10px 28px rgba(17, 27, 51, 0.05);
}

.ki-modern-shell #post-top-widget .widget {
  margin: 0 0 10px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(19, 34, 68, 0.07);
  box-shadow: 0 4px 14px rgba(17, 27, 51, 0.03);
}

.ki-modern-shell #post-top-widget .widget:last-child {
  margin-bottom: 0;
}

.ki-modern-shell #post-top-widget .widgettitle,
.ki-modern-shell #post-top-widget .widget-title {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #1c2340;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .01em;
}

.ki-modern-shell #post-top-widget .widgettitle::before,
.ki-modern-shell #post-top-widget .widget-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 16px;
  margin-right: 8px;
  border-radius: 99px;
  background: linear-gradient(180deg, #213f7f, #6ea8ff);
  vertical-align: -2px;
}

.ki-modern-shell #post-top-widget .widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ki-modern-shell #post-top-widget .widget li {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(19, 34, 68, 0.06);
  line-height: 1.5;
}

.ki-modern-shell #post-top-widget .widget li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ki-modern-shell #post-top-widget .widget li:first-child {
  padding-top: 0;
}

.ki-modern-shell #post-top-widget .widget.widget-recommend .widgettitle,
.ki-modern-shell #post-top-widget .widget.widget-recommend .widget-title {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(19, 34, 68, 0.08) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 8px 20px rgba(17, 27, 51, 0.04) !important;
}

.ki-modern-shell #post-top-widget .widget.widget-recommend .widgettitle::before,
.ki-modern-shell #post-top-widget .widget.widget-recommend .widget-title::before {
  height: 14px;
}

.ki-modern-shell #post-top-widget .widget.widget-recommend #new-entry-box ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ki-modern-shell #post-top-widget .widget.widget-recommend #new-entry-box li,
.ki-modern-shell #post-top-widget .widget.widget-recommend #new-entry-box li.new-entry-item {
  padding: 0;
  margin: 0;
  border: 0;
  width: auto !important;
  float: none !important;
}

.ki-modern-shell #post-top-widget .widget.widget-recommend #new-entry-box li > a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(19, 34, 68, 0.07);
  background: rgba(255, 255, 255, 0.92);
}

.ki-modern-shell #post-top-widget .widget.widget-recommend #new-entry-box .new-entry,
.ki-modern-shell #post-top-widget .widget.widget-recommend #new-entry-box .eyecatch {
  margin: 0;
}

.ki-modern-shell #post-top-widget .widget.widget-recommend #new-entry-box .eyecatch img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.ki-modern-shell #post-top-widget .widget.widget-recommend #new-entry-box .new-entry-item-title {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #1e2d47;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ki-modern-shell #post-top-widget .widget a {
  color: #223a66;
  text-decoration: none;
  transition: color .15s ease;
}

.ki-modern-shell #post-top-widget .widget a:hover {
  color: #0f56d9;
}

.ki-modern-shell #post-top-widget .widget p:last-child {
  margin-bottom: 0;
}

.ki-modern-shell #post-top-widget .search-form,
.ki-modern-shell #post-top-widget form {
  margin: 0;
}

.ki-modern-shell #post-top-widget input[type="text"],
.ki-modern-shell #post-top-widget input[type="search"],
.ki-modern-shell #post-top-widget select {
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(19, 34, 68, 0.12);
  background: rgba(248, 250, 255, 0.95);
}

@media (max-width: 767px) {
  .ki-modern-shell #post-top-widget {
    margin-bottom: 14px;
    padding: 8px;
    border-radius: 14px;
  }

  .ki-modern-shell #post-top-widget .widget {
    padding: 12px 12px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
  }

  .ki-modern-shell #post-top-widget .widgettitle,
  .ki-modern-shell #post-top-widget .widget-title {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .ki-modern-shell #post-top-widget .widget li {
    padding: 7px 0;
    font-size: 13px;
  }

  .ki-modern-shell #post-top-widget .widget.widget-recommend #new-entry-box ul {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ki-modern-shell #post-top-widget .widget.widget-recommend #new-entry-box li > a {
    grid-template-columns: 84px minmax(0, 1fr);
    padding: 7px;
    border-radius: 10px;
  }

  .ki-modern-shell #post-top-widget .widget.widget-recommend #new-entry-box .new-entry-item-title {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }
}

/* -------------------------------------------------
 * Home top widget LP-like sections (#home-top-widget)
 * ------------------------------------------------- */
.ki-modern-shell #home-top-widget {
  margin: 0 0 18px;
}

.ki-modern-shell #home-top-widget .widget {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.ki-modern-shell #home-top-widget .textwidget {
  display: block;
}

.ki-modern-shell #home-top-widget .jin-lp-h2 {
  margin: 18px 0 10px;
}

.ki-modern-shell #home-top-widget .jin-lp-h2:first-child {
  margin-top: 0;
}

.ki-modern-shell #home-top-widget .jin-lp-h2 h2 {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(19, 34, 68, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.93));
  box-shadow: 0 10px 24px rgba(17, 27, 51, 0.04);
  color: #1b2340;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.ki-modern-shell #home-top-widget .jin-lp-h2 h2,
.ki-modern-shell #home-top-widget .jin-lp-h2 h2 > span,
.ki-modern-shell #home-top-widget .jin-lp-h2 h2 > a,
.ki-modern-shell #home-top-widget .jin-lp-h2 h2 a {
  color: #1b2340 !important;
}

/* =========================================================
   Header Refactor v2 (Asahi-like frame, iOS tone)
   Tier1: brand/search/util
   Tier2: primary categories
   Tier3: contextual row (breadcrumb style)
   ========================================================= */
.ki-modern-shell .ki-site-header {
  position: sticky;
  top: 0;
  z-index: 140;
  background: rgba(250, 252, 255, 0.88);
  border-bottom: 1px solid rgba(144, 163, 188, 0.14);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ki-modern-shell .ki-site-header__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(144, 163, 188, 0.12);
}

.ki-modern-shell .ki-site-header__brand {
  min-width: 0;
}

.ki-modern-shell .ki-site-header__brand-link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 10px;
  text-decoration: none;
}

.ki-modern-shell .ki-site-header__logo {
  grid-row: 1 / span 2;
}

.ki-modern-shell .ki-site-header__title {
  grid-column: 2;
  margin: 0;
  color: #15263d;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.ki-modern-shell .ki-site-header__tagline {
  grid-column: 2;
  margin-top: 2px;
  color: #6d7f95;
  font-size: 11px;
  line-height: 1.3;
}

.ki-modern-shell .ki-site-header__search {
  min-width: 0;
}

.ki-modern-shell .ki-site-header__search .ki-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.ki-modern-shell .ki-site-header__search .search-text {
  min-height: 38px;
  border-radius: 12px;
  padding: 0 14px;
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #1b3148;
}

.ki-modern-shell .ki-site-header__search .search-submit {
  min-width: 58px;
  min-height: 38px;
  padding: 0 12px !important;
  border-radius: 12px;
  border: 1px solid rgba(144, 163, 188, 0.2) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #203952 !important;
  font-weight: 700;
}

.ki-modern-shell .ki-site-header__menu-toggle {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.04);
}

.ki-modern-shell .ki-site-header__nav-wrap {
  padding: 8px 16px;
  border-bottom: 1px solid rgba(144, 163, 188, 0.12);
  background: rgba(252, 253, 255, 0.72);
}

.ki-modern-shell .ki-site-header__nav--desktop.ki-site-header__nav--main {
  display: block;
}

.ki-modern-shell .ki-nav-menu {
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ki-modern-shell .ki-nav-menu > li > a {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #22384f;
  font-size: 13px;
  font-weight: 700;
}

.ki-modern-shell .ki-nav-menu > li > a:hover,
.ki-modern-shell .ki-nav-menu > li.current-menu-item > a,
.ki-modern-shell .ki-nav-menu > li.current-menu-ancestor > a {
  background: rgba(10, 132, 255, 0.08) !important;
  border-color: rgba(10, 132, 255, 0.14) !important;
  color: #0f4c8d !important;
}

.ki-modern-shell .ki-nav-more__summary {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(144, 163, 188, 0.2);
  background: rgba(255, 255, 255, 0.85);
  color: #22384f;
}

.ki-modern-shell .ki-nav-more__panel {
  margin-top: 8px;
}

/* Tier3 visual: breadcrumb row integrated with header system */
.ki-modern-shell #breadcrumb {
  margin: 0 auto 10px;
  border-radius: 14px;
  border: 1px solid rgba(144, 163, 188, 0.14);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.03);
}

.ki-modern-shell #breadcrumb .breadcrumb {
  padding-top: 8px;
  padding-bottom: 8px;
}

.ki-modern-shell #breadcrumb a {
  color: #506983;
}

.ki-modern-shell #breadcrumb .breadcrumb_last,
.ki-modern-shell #breadcrumb span[aria-current] {
  color: #1d354e;
  font-weight: 700;
}

@media (max-width: 1023px) {
  .ki-modern-shell .ki-site-header__top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .ki-modern-shell .ki-site-header__search {
    grid-column: 1 / -1;
    order: 3;
  }

  .ki-modern-shell .ki-site-header__nav-wrap {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(144, 163, 188, 0.1);
  }

  .ki-modern-shell .ki-site-header__mobile-panel {
    margin: 8px 10px 10px;
    border-radius: 16px;
    border: 1px solid rgba(144, 163, 188, 0.16);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
  }

  .ki-modern-shell #breadcrumb {
    margin: 0 auto 8px;
    border-radius: 12px;
  }

  .ki-modern-shell #breadcrumb .breadcrumb {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 11px;
  }
}

.ki-modern-shell #home-top-widget .jin-lp-h2 h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 16px;
  margin-right: 8px;
  border-radius: 99px;
  background: linear-gradient(180deg, #1f3c7c, #6da8ff);
  vertical-align: -2px;
}

/* Generic LP section body blocks inside top widget */
.ki-modern-shell #home-top-widget .jin-lp-h2 + *,
.ki-modern-shell #home-top-widget .jin-lp-h2 + p,
.ki-modern-shell #home-top-widget .jin-lp-h2 + div,
.ki-modern-shell #home-top-widget .jin-lp-h2 + ul {
  margin-top: 0;
}

.ki-modern-shell #home-top-widget .ajaxsearchlite {
  margin: 0 0 4px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(19, 34, 68, 0.08);
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 20px rgba(17, 27, 51, 0.035);
}

.ki-modern-shell #home-top-widget .wpdreams_asl_container,
.ki-modern-shell #home-top-widget .asl_container {
  margin: 0 0 4px !important;
  padding: 10px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(19, 34, 68, 0.08) !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 8px 20px rgba(17, 27, 51, 0.035) !important;
}

.ki-modern-shell #home-top-widget .wpdreams_asl_container .probox,
.ki-modern-shell #home-top-widget .asl_container .probox {
  border-radius: 12px !important;
  border: 1px solid rgba(19, 34, 68, 0.08) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.ki-modern-shell #home-top-widget .wpdreams_asl_container .proinput input.orig,
.ki-modern-shell #home-top-widget .wpdreams_asl_container .proinput input.autocomplete,
.ki-modern-shell #home-top-widget .asl_container .proinput input.orig,
.ki-modern-shell #home-top-widget .asl_container .proinput input.autocomplete {
  color: #1b2340 !important;
  font-weight: 600 !important;
}

.ki-modern-shell #home-top-widget .wpdreams_asl_container .promagnifier,
.ki-modern-shell #home-top-widget .asl_container .promagnifier {
  border-radius: 10px !important;
}

/* [category] shortcode and generic lists */
.ki-modern-shell #home-top-widget .jin-lp-h2 + ul,
.ki-modern-shell #home-top-widget .jin-lp-h2 + .category-list,
.ki-modern-shell #home-top-widget .jin-lp-h2 + .cat-list,
.ki-modern-shell #home-top-widget .jin-lp-h2 + .widget_categories ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ki-modern-shell #home-top-widget .jin-lp-h2 + ul li,
.ki-modern-shell #home-top-widget .jin-lp-h2 + .category-list li,
.ki-modern-shell #home-top-widget .jin-lp-h2 + .cat-list li,
.ki-modern-shell #home-top-widget .jin-lp-h2 + .widget_categories ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ki-modern-shell #home-top-widget .jin-lp-h2 + ul li a,
.ki-modern-shell #home-top-widget .jin-lp-h2 + .category-list li a,
.ki-modern-shell #home-top-widget .jin-lp-h2 + .cat-list li a,
.ki-modern-shell #home-top-widget .jin-lp-h2 + .widget_categories ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(19, 34, 68, 0.08);
  background: rgba(255,255,255,.95);
  box-shadow: 0 8px 20px rgba(17, 27, 51, 0.03);
  color: #1f2b4f;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
}

.ki-modern-shell #home-top-widget .jin-lp-h2 + ul li a:hover,
.ki-modern-shell #home-top-widget .jin-lp-h2 + .category-list li a:hover,
.ki-modern-shell #home-top-widget .jin-lp-h2 + .cat-list li a:hover,
.ki-modern-shell #home-top-widget .jin-lp-h2 + .widget_categories ul li a:hover {
  border-color: rgba(15, 86, 217, .18);
  box-shadow: 0 10px 24px rgba(15, 86, 217, 0.06);
  color: #133f97;
}

/* new_list shortcode output */
.ki-modern-shell .ki-home-news-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.ki-modern-shell .ki-home-news-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  padding: 10px 12px;
  padding-right: 34px;
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(19, 34, 68, 0.08);
  background: rgba(255,255,255,.95);
  box-shadow: 0 8px 20px rgba(17, 27, 51, 0.035);
  color: #1f2b4f;
  text-decoration: none;
}

.ki-modern-shell .ki-home-news-item__thumb {
  grid-column: 1 / 2;
  grid-row: 1 / span 2;
  display: block;
  width: 104px;
  aspect-ratio: 830 / 470;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(233, 239, 248, .8);
  border: 1px solid rgba(19, 34, 68, 0.06);
}

.ki-modern-shell .ki-home-news-item__img,
.ki-modern-shell .ki-home-news-item__thumb-fallback {
  display: block;
  width: 100%;
  height: 100%;
}

.ki-modern-shell .ki-home-news-item__img {
  object-fit: cover;
}

.ki-modern-shell .ki-home-news-item__thumb-fallback {
  background:
    linear-gradient(135deg, rgba(226, 234, 245, 0.95), rgba(241, 246, 253, 0.95));
}

.ki-modern-shell .ki-home-news-item:hover {
  border-color: rgba(15, 86, 217, .18);
  box-shadow: 0 10px 24px rgba(15, 86, 217, 0.07);
}

.ki-modern-shell .ki-home-news-item__meta {
  grid-column: 2 / 3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.ki-modern-shell .ki-home-news-item__cat {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(31, 60, 124, 0.08);
  color: #25437d;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ki-modern-shell .ki-home-news-item__date {
  grid-column: 2 / 3;
  color: #6b7894;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  opacity: .85;
}

.ki-modern-shell .ki-home-news-item__title {
  grid-column: 2 / 3;
  color: #1b2340;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.ki-modern-shell .ki-home-news-item__taxline {
  grid-column: 2 / 3;
}

.ki-modern-shell .ki-home-news-item__arrow {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: #5f6f8f;
  font-size: 24px;
  line-height: 1;
  pointer-events: none;
}

.ki-modern-shell .ki-post-taxline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
}

.ki-modern-shell .ki-post-taxline__chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.ki-modern-shell .ki-post-taxline__chip--cat {
  background: rgba(10, 132, 255, 0.08);
  color: #315f93;
  border: 1px solid rgba(10, 132, 255, 0.1);
}

.ki-modern-shell .ki-post-taxline__chip--tag {
  background: rgba(99, 114, 130, 0.08);
  color: #617288;
  border: 1px solid rgba(99, 114, 130, 0.08);
}

.ki-modern-shell .post-list-thumb > .post-list-cat,
.ki-modern-shell .post-list-meta > .post-list-cat {
  display: none !important;
}

/* "もっと見る" line in text widget */
.ki-modern-shell #home-top-widget .textwidget > p {
  color: #49566f;
  line-height: 1.75;
}

.ki-modern-shell #home-top-widget .textwidget > p a {
  color: #0f56d9;
  text-decoration: none;
  font-weight: 700;
}

.ki-modern-shell #home-top-widget .textwidget > p a:hover {
  text-decoration: underline;
}

.ki-modern-shell #home-top-widget .ki-home-news-list + p {
  margin: 10px 0 0;
  text-align: right;
  line-height: 1.4;
}

.ki-modern-shell #home-top-widget .ki-home-news-list + p a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(19, 34, 68, 0.08);
  background: rgba(255,255,255,.95);
  color: #1c2d55;
  box-shadow: 0 8px 18px rgba(17, 27, 51, 0.03);
  font-weight: 700;
  text-decoration: none;
}

.ki-modern-shell #home-top-widget .ki-home-news-list + p a:hover {
  border-color: rgba(15, 86, 217, .18);
  color: #0f56d9;
  text-decoration: none;
}

/* "このサイトについて" text block */
.ki-modern-shell #home-top-widget .jin-lp-h2:last-of-type ~ p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(19, 34, 68, 0.07);
  box-shadow: 0 6px 18px rgba(17, 27, 51, 0.03);
  color: #40506a;
  line-height: 1.8;
}

.ki-modern-shell #home-top-widget .jin-lp-h2:last-of-type ~ p + p {
  margin-top: 10px;
}

@media (max-width: 767px) {
  .ki-modern-shell #home-top-widget {
    margin-bottom: 14px;
  }

  .ki-modern-shell #home-top-widget .jin-lp-h2 {
    margin: 14px 0 8px;
  }

  .ki-modern-shell #home-top-widget .jin-lp-h2 h2 {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
  }

  .ki-modern-shell .ki-home-news-list {
    gap: 8px;
  }

  .ki-modern-shell .ki-home-news-item {
    grid-template-columns: 112px minmax(0, 1fr);
    padding: 10px;
    padding-right: 28px;
    border-radius: 12px;
    gap: 6px 10px;
  }

  .ki-modern-shell .ki-home-news-item__thumb {
    width: 112px;
    border-radius: 10px;
  }

  .ki-modern-shell .ki-home-news-item__title {
    font-size: 13px;
    line-height: 1.4;
  }

  .ki-modern-shell .ki-home-news-item__date {
    font-size: 11px;
  }

  .ki-modern-shell .ki-home-news-item__arrow {
    font-size: 18px;
    right: 8px;
  }

  .ki-modern-shell #home-top-widget .jin-lp-h2 + ul,
  .ki-modern-shell #home-top-widget .jin-lp-h2 + .category-list,
  .ki-modern-shell #home-top-widget .jin-lp-h2 + .cat-list,
  .ki-modern-shell #home-top-widget .jin-lp-h2 + .widget_categories ul {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ki-modern-shell #home-top-widget .jin-lp-h2 + ul li a,
  .ki-modern-shell #home-top-widget .jin-lp-h2 + .category-list li a,
  .ki-modern-shell #home-top-widget .jin-lp-h2 + .cat-list li a,
  .ki-modern-shell #home-top-widget .jin-lp-h2 + .widget_categories ul li a {
    min-height: 44px;
    padding: 10px 11px;
    border-radius: 12px;
    font-size: 13px;
  }

  .ki-modern-shell #home-top-widget .jin-lp-h2:last-of-type ~ p {
    padding: 10px 12px;
    border-radius: 12px;
    line-height: 1.7;
    font-size: 13px;
  }

  .ki-modern-shell #home-top-widget .ki-home-news-list + p {
    margin-top: 8px;
  }

  .ki-modern-shell #home-top-widget .ki-home-news-list + p a {
    width: 100%;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
  }
}

.ki-modern-shell #scroll-content {
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 235, 255, 0.12), transparent 42%),
    radial-gradient(circle at 0% 0%, rgba(255, 242, 222, 0.1), transparent 30%),
    #ffffff;
}

/* -------------------------------------------------
 * Wider desktop content area (reduce cramped feeling)
 * ------------------------------------------------- */
@media (min-width: 1200px) {
  .ki-modern-shell #contents {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  .ki-modern-shell #main-contents {
    width: calc(100% - 360px) !important;
    max-width: none !important;
    margin-left: 12px !important;
  }

  .ki-modern-shell #sidebar,
  .ki-modern-shell #sidebar.sideber,
  .ki-modern-shell .sidebar {
    width: 320px !important;
    margin-left: 20px !important;
  }

  .ki-modern-shell.single .cps-post {
    border-radius: 24px;
  }

  .ki-modern-shell.single .cps-post-header {
    padding: 22px 28px 14px;
  }

  .ki-modern-shell.single .cps-post-thumb {
    padding: 14px 28px 10px;
  }

  .ki-modern-shell.single .cps-post-main-box {
    padding: 10px 28px 24px;
  }

  .ki-modern-shell.single .cps-post-main.entry-content {
    font-size: 17px;
    line-height: 2;
  }
}

.ki-site-header {
  position: relative;
  z-index: 20;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-bottom: 1px solid #e2e9f3;
  box-shadow: 0 8px 28px rgba(17, 38, 67, 0.06);
}

.ki-site-header__top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 12px 12px;
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr auto;
  gap: 10px;
  align-items: center;
}

.ki-site-header__brand-link {
  display: grid;
  gap: 2px;
  text-decoration: none;
  color: #142b45;
}

.ki-site-header__logo img {
  max-height: 76px;
  width: auto;
}

.ki-site-header__logo .custom-logo-link {
  display: inline-flex;
}

.ki-site-header__title {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ki-site-header__tagline {
  font-size: 11px;
  line-height: 1.35;
  color: #607389;
}

.ki-site-header__search .ki-search-box {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  position: relative;
}

.ki-site-header__search .search-text {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #d6e3f1;
  background: #fff;
  min-height: 42px;
  padding: 0 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ki-site-header__search .search-submit {
  position: static !important;
  right: auto !important;
  top: auto !important;
  width: auto !important;
  min-width: 56px;
  min-height: 42px;
  padding: 0 14px !important;
  border-radius: 999px;
  border: 1px solid #d6e3f1 !important;
  background: #fff !important;
  color: #17385c !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-indent: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.ki-site-header__search .search-submit:hover {
  background: #f4f8fc !important;
  border-color: #c9dced !important;
}

.ki-site-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(144, 163, 188, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: #1d2d45;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.04);
  cursor: pointer;
}

.ki-site-header__menu-toggle-icon {
  width: 16px;
  height: 12px;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.ki-site-header__menu-toggle-icon i {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.ki-site-header__menu-toggle-label {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.ki-site-header__mobile-panel {
  display: none;
}

.ki-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ki-mobile-nav-list li {
  margin: 0;
}

.ki-mobile-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(144, 163, 188, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: #17385c;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.ki-mobile-nav-list a:hover {
  background: rgba(10, 132, 255, 0.06);
  border-color: rgba(10, 132, 255, 0.18);
  color: #0f4f93;
}

.ki-site-header__cta {
  display: flex;
  gap: 8px;
}

.ki-site-header__cta-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #d8e4f3;
  background: linear-gradient(180deg, #17385c 0%, #0f2b4a 100%);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ki-site-header__cta-icon {
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.ki-site-header__cta-text {
  display: inline-block;
  line-height: 1.2;
  letter-spacing: 0;
}

.ki-site-header__cta-link:hover {
  text-decoration: none;
  background: linear-gradient(180deg, #214a77 0%, #14385d 100%);
}

.ki-site-header__nav-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 12px 10px;
  position: relative;
}

.ki-site-header__context {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 12px 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.ki-site-header__context-label {
  font-size: 11px;
  font-weight: 700;
  color: #5f7287;
  white-space: nowrap;
}

.ki-site-header__context-nav {
  min-width: 0;
}

.ki-context-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ki-context-menu li {
  margin: 0;
  flex: 0 0 auto;
}

.ki-context-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(190, 206, 226, 0.7);
  background: rgba(255, 255, 255, 0.88);
  color: #29445f;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.ki-context-menu a:hover {
  background: rgba(10, 132, 255, 0.06);
  border-color: rgba(10, 132, 255, 0.18);
  color: #0f4f93;
}

.ki-site-header__nav--desktop {
  display: block;
}

.ki-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ki-nav-menu > li {
  margin: 0;
  position: relative;
}

.ki-nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 4px;
  border-radius: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #17385c;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.ki-nav-menu > li > a:hover,
.ki-nav-menu > li.current-menu-item > a,
.ki-nav-menu > li.current-menu-ancestor > a {
  background: transparent;
  border-color: #2d66a3;
  text-decoration: none;
}

.ki-nav-menu {
  align-items: end;
}

.ki-nav-menu__more {
  margin-left: auto;
}

.ki-nav-more {
  position: relative;
}

.ki-nav-more__summary {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #dbe7f4;
  border-radius: 10px;
  background: #fff;
  color: #17385c;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.ki-nav-more__summary::-webkit-details-marker {
  display: none;
}

.ki-nav-more__summary:hover {
  background: #eef5ff;
}

.ki-nav-more__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(720px, 84vw);
  border: 1px solid #dfe8f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(16, 36, 63, 0.12);
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ki-nav-more__group {
  border: 1px solid #e8eef6;
  border-radius: 10px;
  background: #fbfdff;
  padding: 10px;
}

.ki-nav-more__title {
  margin: 0 0 6px;
  font-size: 12px;
  color: #17385c;
}

.ki-nav-more__list {
  margin: 0;
  padding-left: 1.1em;
}

.ki-nav-more__list li {
  margin: 4px 0;
}

.ki-nav-more__list a {
  color: #234c77;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.35;
}

.ki-nav-more__list a:hover {
  text-decoration: underline;
}

.ki-site-header__mobile-menu {
  display: none;
}

.ki-site-header__mobile-menu summary {
  list-style: none;
}

.ki-site-header__mobile-menu summary::-webkit-details-marker {
  display: none;
}

.ki-pickup-hub {
  max-width: 1120px;
  margin: 6px auto 4px;
  padding: 0 12px;
}

.ki-pickup-hub__inner {
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.ki-pickup-hub__head {
  margin-bottom: 8px;
}

.ki-pickup-hub__title {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: #17385c;
  font-weight: 800;
}

.ki-pickup-hub__lead {
  margin: 4px 0 0;
  font-size: 12px;
  color: #5f7590;
}

.ki-pickup-hub__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ki-pickup-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "emoji title"
    "emoji desc";
  column-gap: 8px;
  row-gap: 2px;
  text-decoration: none;
  color: #1f2d3d;
  border: 1px solid #e6edf7;
  background: #ffffff;
  border-radius: 12px;
  padding: 9px 10px;
  min-height: 68px;
  box-shadow: 0 2px 8px rgba(14, 33, 57, 0.04);
}

.ki-pickup-card:hover {
  text-decoration: none;
  background: #f4f9ff;
  border-color: #cfe0f3;
}

.ki-pickup-card__emoji {
  grid-area: emoji;
  align-self: start;
  font-size: 16px;
  line-height: 1;
  margin-top: 1px;
}

.ki-pickup-card__title {
  grid-area: title;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #17385c;
}

.ki-pickup-card__desc {
  grid-area: desc;
  font-size: 11px;
  line-height: 1.35;
  color: #5f7590;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ki-pickup-hub__grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}

.ki-pickup-panel {
  border: 1px solid #e6edf7;
  background: #fff;
  border-radius: 12px;
  padding: 11px;
}

.ki-pickup-panel__title {
  margin: 0 0 8px;
  font-size: 14px;
  color: #17385c;
  line-height: 1.35;
}

.ki-pickup-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ki-pickup-post-list__item {
  margin: 0;
}

.ki-pickup-post-list__link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  color: #20344c;
  border: 1px solid #eef3f9;
  background: #fbfdff;
  border-radius: 10px;
  padding: 8px 9px;
}

.ki-pickup-post-list__link:hover {
  text-decoration: none;
  background: #f4f8ff;
}

.ki-pickup-post-list__text {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.ki-pickup-post-list__label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  background: #eef4fb;
  color: #50657f;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.ki-pickup-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.ki-pickup-link-grid__item {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #dce8f5;
  background: #f8fbff;
  border-radius: 10px;
  color: #234c77;
  text-decoration: none;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.ki-pickup-link-grid__item:hover {
  text-decoration: none;
  background: #eef5ff;
}

.ki-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d9e6f5;
  background: #f7fbff;
  color: #24466b;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}

.ki-chip:hover {
  text-decoration: none;
  background: #eef5ff;
}

.ki-post-next {
  margin: 22px 0 18px;
  border: 1px solid #e7edf4;
  border-radius: 14px;
  background: #fbfdff;
  padding: 14px;
}

.ki-post-next__title {
  margin: 0 0 10px;
  font-size: 18px;
  color: #17385c;
}

.ki-post-next__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ki-post-next__action {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #dce8f5;
  background: #fff;
  color: #18395d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.ki-post-next__action:hover {
  text-decoration: none;
  background: #eff6ff;
}

.ki-post-next__related {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #dbe6f2;
}

.ki-post-next__subhead {
  margin: 0 0 6px;
  font-size: 13px;
  color: #4f647d;
}

.ki-post-next__list {
  margin: 0;
  padding-left: 1.2em;
}

.ki-post-next__list-item {
  margin: 4px 0;
}

.ki-post-next__list-item a {
  color: #234c77;
}

.ki-search-box .search-text::placeholder {
  color: #8a9aab;
}

.ki-sidebar-hub {
  margin: 0 0 14px;
  border: 1px solid #e4ecf6;
  border-radius: 12px;
  background: #fbfdff;
  padding: 12px;
}

.ki-modern-shell #sidebar.sideber {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5edf6;
  box-shadow: 0 8px 22px rgba(16, 36, 63, 0.05);
  padding: 14px;
}

.ki-modern-shell #sidebar.sideber .widget {
  border: 1px solid #e8eef6;
  border-radius: 12px;
  background: #fbfdff;
  padding: 12px;
  margin-bottom: 12px;
}

.ki-modern-shell #sidebar.sideber .widgettitle,
.ki-modern-shell #sidebar.sideber .widget-title {
  margin-top: 0;
  color: #17385c;
}

.ki-sidebar-hub__title {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.35;
  color: #17385c;
}

.ki-sidebar-hub__lead {
  margin: -2px 0 9px;
  font-size: 11px;
  line-height: 1.55;
  color: #5f7590;
}

.ki-sidebar-hub__links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.ki-sidebar-hub__link {
  min-height: 38px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid #dce8f5;
  background: #fff;
  padding: 0 10px;
  color: #234c77;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.ki-sidebar-hub__link:hover {
  text-decoration: none;
  background: #eff6ff;
}

.ki-footer-hub {
  margin: 0 auto 14px;
  padding: 0 12px;
  max-width: 1120px;
}

.ki-modern-shell footer[role="contentinfo"] {
  margin-top: 18px;
  background: linear-gradient(180deg, #f7fbff 0%, #edf4fb 100%);
  border-top: 1px solid #dde7f2;
}

.ki-modern-shell #footer-widget-area {
  background: transparent;
}

.ki-modern-shell #footer-widget-box > div,
.ki-modern-shell #footer-widget-center-box > div {
  background: #ffffff;
  border: 1px solid #e4ecf5;
  border-radius: 12px;
  padding: 12px;
}

.ki-modern-shell #footer-box {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid #dfe8f2;
  backdrop-filter: blur(6px);
}

.ki-modern-shell footer .footer-inner #privacy a,
.ki-modern-shell footer .footer-inner #law a {
  color: #17385c !important;
  font-weight: 700;
}

.ki-modern-shell footer .footer-inner #privacy a:hover,
.ki-modern-shell footer .footer-inner #law a:hover {
  color: #2a5f97 !important;
}

.ki-modern-shell footer .footer-inner #copyright,
.ki-modern-shell footer .footer-inner #copyright-center {
  color: #4f647d;
}

.ki-modern-shell .pickup-contents-box-post-type {
  max-width: 1120px;
  margin: 4px auto 14px;
  padding: 0 12px 4px;
}

.ki-modern-shell .pickup-contents-box-post-type .pickup-contents {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
}

.ki-modern-shell .pickup-contents-box-post-type .pickup-contents li {
  width: auto;
  margin: 0;
  float: none;
  list-style: none;
}

.ki-modern-shell .pickup-contents-box-post-type .pickup-contents li a {
  display: block;
  text-decoration: none;
  color: #15293f;
}

.ki-modern-shell .pickup-contents-box-post-type .pickup-contents li a .pickup-image {
  border-radius: 14px;
  border: 1px solid #e4ebf4;
  box-shadow: 0 8px 20px rgba(17, 38, 67, 0.07);
  background: #fff;
}

.ki-modern-shell .pickup-contents-box-post-type .pickup-contents li a .pickup-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ki-modern-shell .pickup-contents-box-post-type .pickup-contents li a .pickup-image .pickup-cat {
  top: 8px;
  left: 8px;
  border-radius: 8px;
  background: rgba(15, 43, 74, 0.92);
  color: #fff;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ki-modern-shell .pickup-contents-box-post-type .pickup-contents li a .pickup-title {
  margin-top: 8px;
  padding: 0 2px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  color: #15293f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.ki-modern-shell .pickup-contents-box-post-type .pickup-contents li a:hover .pickup-title {
  color: #215084;
}

.ki-modern-shell .pickup-contents-box-post-type .pickup-contents li a:hover .pickup-image img {
  transform: scale(1.03);
  opacity: 0.92;
}

.ki-footer-hub__inner {
  border: 1px solid #e4ebf5;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 6px 20px rgba(20, 46, 82, 0.05);
  padding: 14px;
}

.ki-footer-hub__title {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
  color: #17385c;
}

.ki-footer-hub__cta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ki-footer-hub__cta-item {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  border-radius: 12px;
  border: 1px solid #dbe7f5;
  background: #fff;
  padding: 8px 10px;
  color: #17385c;
  text-decoration: none;
}

.ki-footer-hub__cta-item:hover {
  text-decoration: none;
  background: #eff6ff;
}

.ki-footer-hub__cta-emoji {
  font-size: 17px;
  line-height: 1;
}

.ki-footer-hub__cta-text {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.ki-footer-hub__grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ki-footer-hub__col {
  border: 1px solid #e6edf7;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}

.ki-footer-hub__col-title {
  margin: 0 0 7px;
  font-size: 13px;
  color: #17385c;
}

.ki-footer-hub__list {
  margin: 0;
  padding-left: 1.15em;
}

.ki-footer-hub__list-item {
  margin: 4px 0;
}

.ki-footer-hub__list-item a {
  color: #234c77;
  text-decoration: none;
}

.ki-footer-hub__list-item a:hover {
  text-decoration: underline;
}

@media (max-width: 1023px) {
  body.ki-mobile-header-fixed #scroll-content {
    padding-top: var(--ki-mobile-header-height, 72px);
  }

  .ki-modern-shell .sp-sidemenu-wrapper {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .ki-site-header__search {
    display: none !important;
  }

  .ki-site-header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 120;
    transition: transform .24s ease, box-shadow .24s ease, background-color .24s ease, border-color .24s ease;
    will-change: transform;
  }

  .ki-site-header.is-mobile-header-scrolled {
    box-shadow: 0 10px 24px rgba(17, 38, 67, 0.10);
    border-bottom-color: rgba(210, 223, 237, 0.95);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .ki-site-header.is-mobile-header-hidden:not(.is-mobile-nav-open) {
    transform: translateY(calc(-100% - 2px));
  }

  .ki-site-header__top {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-top: 10px;
    align-items: start;
  }

  .ki-site-header__cta {
    display: none;
  }

  .ki-site-header__search {
    grid-column: 1 / -1;
  }

  .ki-site-header__menu-toggle {
    display: inline-flex;
    align-self: center;
  }

  .ki-site-header__nav--desktop {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .ki-site-header__nav-wrap {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0 10px 8px;
  }

  .ki-site-header__context {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 0 10px 8px;
  }

  .ki-site-header__context-label {
    font-size: 10px;
  }

  .ki-context-menu {
    gap: 6px;
  }

  .ki-context-menu a {
    min-height: 28px;
    padding: 0 9px;
    font-size: 11px;
  }

  .ki-site-header__mobile-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .ki-site-header__mobile-trigger {
    display: none !important;
  }

  .ki-site-header__mobile-trigger span {
    display: none !important;
  }

  .ki-site-header__mobile-menu:not([open]) .ki-site-header__mobile-panel {
    display: none !important;
  }

  .ki-site-header__mobile-menu[open] .ki-site-header__mobile-panel {
    display: none !important;
  }

  .ki-site-header__mobile-panel {
    display: none !important;
  }

  .ki-site-header__mobile-search {
    display: none !important;
  }

  .ki-site-header__nav--mobile {
    display: none !important;
  }

  .ki-mobile-accordion {
    display: none !important;
  }

  .ki-mobile-accordion__summary {
    display: none !important;
  }

  .ki-mobile-accordion__summary::-webkit-details-marker {
    display: none;
  }

  .ki-mobile-accordion__list {
    display: none !important;
  }

  .ki-mobile-accordion__list li {
    display: none !important;
  }

  .ki-mobile-accordion__list a {
    display: none !important;
  }

  .ki-site-header__mobile-panel {
    display: block;
    margin-top: 8px;
    border: 1px solid rgba(144, 163, 188, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: var(--ki-blur);
    -webkit-backdrop-filter: var(--ki-blur);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    padding: 10px;
  }

  .ki-site-header__mobile-panel[hidden] {
    display: none !important;
  }

  .ki-site-header:not(.is-mobile-nav-open) .ki-site-header__mobile-panel {
    display: none !important;
  }

  .ki-site-header.is-mobile-nav-open .ki-site-header__menu-toggle {
    border-color: rgba(10, 132, 255, 0.24);
    background: rgba(10, 132, 255, 0.08);
    color: #0f4f93;
  }

  .ki-site-header.is-mobile-nav-open {
    transform: translateY(0) !important;
  }

  .ki-site-header.is-mobile-nav-open .ki-site-header__menu-toggle-icon i:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  .ki-site-header.is-mobile-nav-open .ki-site-header__menu-toggle-icon i:nth-child(2) {
    opacity: 0;
  }
  .ki-site-header.is-mobile-nav-open .ki-site-header__menu-toggle-icon i:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .ki-pickup-hub__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ki-pickup-hub__grid {
    grid-template-columns: 1fr;
  }

  .ki-footer-hub__cta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ki-footer-hub__grid {
    grid-template-columns: 1fr;
  }

  .ki-modern-shell .pickup-contents-box-post-type .pickup-contents {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .ki-site-header {
    box-shadow: 0 6px 18px rgba(17, 38, 67, 0.05);
  }

  .ki-site-header__top {
    padding: 9px 10px 8px;
  }

  .ki-site-header__title {
    font-size: 18px;
  }

  .ki-site-header__tagline {
    font-size: 10px;
  }

  .ki-site-header__nav-wrap {
    padding: 0 10px 8px;
  }

  .ki-site-header__context {
    padding: 0 10px 7px;
  }

  .ki-site-header__search .search-text {
    min-height: 38px;
    font-size: 13px;
  }

  .ki-site-header__search .search-submit {
    min-height: 38px;
    min-width: 48px;
    padding: 0 10px !important;
    font-size: 11px;
  }

  .ki-site-header__menu-toggle {
    min-height: 38px;
    border-radius: 11px;
    padding: 0 10px;
    gap: 6px;
  }

  .ki-site-header__menu-toggle-label {
    font-size: 11px;
  }

  .ki-mobile-nav-list a {
    min-height: 42px;
    font-size: 13px;
    border-radius: 12px;
  }

  .ki-pickup-hub {
    margin: 4px auto 2px;
    padding: 0 10px;
  }

  .ki-pickup-hub__title {
    font-size: 13px;
  }

  .ki-pickup-card {
    min-height: 58px;
    border-radius: 10px;
    padding: 8px;
    grid-template-areas: "emoji title";
    grid-template-columns: auto 1fr;
    row-gap: 0;
  }

  .ki-pickup-card__title {
    font-size: 12px;
  }

  .ki-pickup-card__desc {
    display: none;
  }

  .ki-pickup-panel {
    border-radius: 10px;
    padding: 10px;
  }

  .ki-pickup-panel__title {
    font-size: 13px;
    margin-bottom: 7px;
  }

  .ki-pickup-post-list__link {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
  }

  .ki-pickup-post-list__label {
    justify-self: start;
  }

  .ki-pickup-link-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .ki-post-next {
    margin: 16px 0 14px;
    padding: 11px;
  }

  .ki-post-next__title {
    font-size: 16px;
  }

  .ki-post-next__actions {
    grid-template-columns: 1fr;
  }

  .ki-sidebar-hub {
    margin-bottom: 10px;
    padding: 10px;
  }

  .ki-sidebar-hub__title {
    font-size: 13px;
  }

  .ki-sidebar-hub__lead {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .ki-footer-hub {
    margin-bottom: 10px;
    padding: 0 10px;
  }

  .ki-footer-hub__inner {
    border-radius: 12px;
    padding: 11px;
  }

  .ki-footer-hub__title {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .ki-footer-hub__cta-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ki-footer-hub__cta-item {
    min-height: 44px;
    border-radius: 10px;
    padding: 7px 9px;
  }

  .ki-modern-shell .pickup-contents-box-post-type {
    margin: 2px auto 10px;
    padding: 0 10px 2px;
  }

  .ki-modern-shell .pickup-contents-box-post-type .pickup-contents {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ki-modern-shell .pickup-contents-box-post-type .pickup-contents li a .pickup-image {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(17, 38, 67, 0.06);
  }

  .ki-modern-shell .pickup-contents-box-post-type .pickup-contents li a .pickup-title {
    font-size: 12px;
    line-height: 1.4;
    min-height: 2.7em;
  }
}

/* =========================================================
   Phase 2: Archive / Post List Refresh (KomuInfo)
   ========================================================= */
.ki-modern-shell .archive-post-header {
  margin: 8px auto 14px;
  padding: 0;
  background: transparent;
  border: 0;
}

.ki-modern-shell .archive-title-sub {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4fb;
  color: #315a85;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.ki-modern-shell .archive-title {
  margin: 0;
  color: #112643;
  font-size: 24px;
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ki-modern-shell .archive-description,
.ki-modern-shell .archive-desc {
  margin-top: 8px;
  color: #536d87;
  font-size: 13px;
  line-height: 1.65;
}

.ki-modern-shell .post-list-mag,
.ki-modern-shell .post-list {
  margin-top: 6px;
}

/* JINの既存flex/width指定を打ち消し、最新記事カード幅を安定化 */
.ki-modern-shell #main-contents .post-list-mag,
.ki-modern-shell #main-contents-one .post-list-mag,
.ki-modern-shell .toppost-list-box-simple .post-list-mag {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px !important;
  align-items: start;
}

.ki-modern-shell #main-contents .post-list-mag > li,
.ki-modern-shell #main-contents-one .post-list-mag > li,
.ki-modern-shell .toppost-list-box-simple .post-list-mag > li,
.ki-modern-shell #main-contents .post-list-mag .post-list-item,
.ki-modern-shell #main-contents-one .post-list-mag .post-list-item,
.ki-modern-shell .toppost-list-box-simple .post-list-mag .post-list-item {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}

.ki-modern-shell .post-list-mag .post-list-item,
.ki-modern-shell .post-list .post-list-item,
.ki-modern-shell .toppost-list-box-simple .post-list-item {
  margin-bottom: 14px;
}

.ki-modern-shell .post-list-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ki-modern-shell .post-list-inner {
  display: grid;
  gap: 12px;
  align-items: start;
  background: #fff;
  border: 1px solid #e3ecf5;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(17, 38, 67, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.ki-modern-shell .post-list-link:hover .post-list-inner,
.ki-modern-shell .post-list-link:focus-visible .post-list-inner {
  transform: translateY(-2px);
  border-color: #cbdced;
  box-shadow: 0 14px 28px rgba(17, 38, 67, 0.09);
}

.ki-modern-shell .post-list-link:focus-visible {
  outline: none;
}

.ki-modern-shell .post-list-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #eef3f8;
  border: 1px solid #e1eaf3;
}

.ki-modern-shell .post-list-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.ki-modern-shell .post-list-cat {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: none;
}

.ki-modern-shell .post-list-meta {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
}

.ki-modern-shell .post-list-meta .writer,
.ki-modern-shell .post-list-meta .post-list-publisher {
  display: none;
}

.ki-modern-shell .post-list-title {
  margin: 0;
  color: #122b49;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ki-modern-shell .post-list-date {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f3f7fb;
  color: #59738d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.ki-modern-shell .post-list-desc {
  color: #58708a;
  font-size: 12px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* magazine style: stacked cards */
.ki-modern-shell .post-list-mag .post-list-inner,
.ki-modern-shell .toppost-list-box-simple .post-list-inner {
  grid-template-columns: 1fr;
  gap: 10px;
}

.ki-modern-shell .post-list-mag .post-list-thumb,
.ki-modern-shell .toppost-list-box-simple .post-list-thumb {
  aspect-ratio: 830 / 470;
}

/* standard list style: media object */
.ki-modern-shell .post-list .post-list-inner {
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
}

.ki-modern-shell .post-list .post-list-thumb {
  aspect-ratio: 830 / 470;
}

.ki-modern-shell .post-list .post-list-meta {
  gap: 7px;
}

.ki-modern-shell .post-list .post-list-title {
  font-size: 16px;
}

/* pagination / list wrappers often sit on gray bands in JIN */
.ki-modern-shell .main-content .post-list,
.ki-modern-shell .main-content .post-list-mag,
.ki-modern-shell .main-content .toppost-list-box-simple {
  background: transparent;
}

@media (min-width: 1024px) {
  .ki-modern-shell .post-list-mag {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .ki-modern-shell #main-contents-one .post-list-mag,
  .ki-modern-shell #main-contents .post-list-mag {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .ki-modern-shell .post-list-mag .post-list-item {
    margin-bottom: 0;
  }

  .ki-modern-shell .archive-title {
    font-size: 28px;
  }
}

@media (max-width: 1023px) {
  .ki-modern-shell .post-list .post-list-inner {
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
    gap: 10px;
  }

  .ki-modern-shell .archive-title {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .ki-modern-shell .archive-post-header {
    margin: 6px auto 12px;
  }

  .ki-modern-shell .archive-title-sub {
    font-size: 10px;
    min-height: 22px;
    padding: 0 8px;
    margin-bottom: 5px;
  }

  .ki-modern-shell .archive-title {
    font-size: 19px;
    line-height: 1.35;
  }

  .ki-modern-shell .archive-description,
  .ki-modern-shell .archive-desc {
    font-size: 12px;
    line-height: 1.6;
  }

  .ki-modern-shell .post-list-mag,
  .ki-modern-shell .post-list {
    margin-top: 4px;
  }

  .ki-modern-shell #main-contents .post-list-mag,
  .ki-modern-shell #main-contents-one .post-list-mag,
  .ki-modern-shell .toppost-list-box-simple .post-list-mag {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .ki-modern-shell .post-list-mag .post-list-item,
  .ki-modern-shell .post-list .post-list-item,
  .ki-modern-shell .toppost-list-box-simple .post-list-item {
    margin-bottom: 10px;
  }

  .ki-modern-shell .post-list-inner {
    border-radius: 12px;
    padding: 9px;
    gap: 8px;
    box-shadow: 0 5px 14px rgba(17, 38, 67, 0.05);
  }

  .ki-modern-shell .post-list-title {
    font-size: 14px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }

  .ki-modern-shell .post-list-date {
    font-size: 10px;
    min-height: 20px;
    padding: 0 7px;
  }

  .ki-modern-shell .post-list-desc {
    display: none;
  }

  .ki-modern-shell .post-list .post-list-inner {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
  }

  .ki-modern-shell .post-list-cat {
    min-height: 20px;
    padding: 0 7px;
    font-size: 9px;
  }

  /* Archive / entry lists: roomie-like media list on mobile */
  .ki-modern-shell.archive .post-list-mag .post-list-inner,
  .ki-modern-shell.category .post-list-mag .post-list-inner,
  .ki-modern-shell.blog .post-list-mag .post-list-inner {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .ki-modern-shell.archive .post-list-mag .post-list-thumb,
  .ki-modern-shell.category .post-list-mag .post-list-thumb,
  .ki-modern-shell.blog .post-list-mag .post-list-thumb {
    aspect-ratio: 830 / 470;
    width: 100%;
  }

  .ki-modern-shell.archive .post-list-mag .post-list-meta,
  .ki-modern-shell.category .post-list-mag .post-list-meta,
  .ki-modern-shell.blog .post-list-mag .post-list-meta {
    gap: 5px;
  }

  .ki-modern-shell.archive .post-list-mag .post-list-title,
  .ki-modern-shell.category .post-list-mag .post-list-title,
  .ki-modern-shell.blog .post-list-mag .post-list-title {
    font-size: 14px;
    line-height: 1.38;
    -webkit-line-clamp: 3;
  }

  .ki-modern-shell.archive .post-list-mag .post-list-desc,
  .ki-modern-shell.category .post-list-mag .post-list-desc,
  .ki-modern-shell.blog .post-list-mag .post-list-desc {
    display: none;
  }
}

/* List section wrappers / tabs / pager (Phase 2 continuation) */
.ki-modern-shell .toppost-list-box-simple,
.ki-modern-shell .toppost-list-box {
  margin: 8px 0 18px;
}

.ki-modern-shell .toppost-list-box-simple {
  background: transparent;
}

.ki-modern-shell .toppost-list-box {
  border: 1px solid #e2eaf4;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 24px rgba(17, 38, 67, 0.05);
  overflow: hidden;
}

.ki-modern-shell .toppost-list-box-inner {
  padding: 12px;
  background: transparent;
}

.ki-modern-shell .tabBtn-mag {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 12px 12px 0;
  list-style: none;
  border-bottom: 1px solid #eef3f8;
}

.ki-modern-shell .tabBtn-mag li {
  margin: 0;
}

.ki-modern-shell .tabBtn-mag li label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #dbe7f4;
  background: #fff;
  color: #284c73;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ki-modern-shell .tabBtn-mag li label:hover {
  background: #f4f8fd;
  border-color: #c9ddef;
}

/* checked tab style (JIN tab radio layout) */
.ki-modern-shell .toppost-list-box > input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ki-modern-shell .toppost-list-box > input#tab-1:checked ~ .tabBtn-mag li:nth-child(1) label,
.ki-modern-shell .toppost-list-box > input#tab-2:checked ~ .tabBtn-mag li:nth-child(2) label,
.ki-modern-shell .toppost-list-box > input#tab-3:checked ~ .tabBtn-mag li:nth-child(3) label,
.ki-modern-shell .toppost-list-box > input#tab-4:checked ~ .tabBtn-mag li:nth-child(4) label,
.ki-modern-shell .toppost-list-box > input#tab-5:checked ~ .tabBtn-mag li:nth-child(5) label {
  background: #17385c;
  border-color: #17385c;
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.ki-modern-shell .toppost-list-box .post-list.autoheight,
.ki-modern-shell .toppost-list-box .post-list-mag.autoheight {
  margin-top: 0;
}

.ki-modern-shell .pager-top {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #edf3f9;
}

.ki-modern-shell .pager-top .pagination,
.ki-modern-shell .pager-top .pager,
.ki-modern-shell .pager-top .page-numbers {
  margin-top: 0;
}

.ki-modern-shell .more-cat {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.ki-modern-shell .more-cat-button {
  margin: 0;
}

.ki-modern-shell .more-cat-button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 86px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d7e4f3;
  background: #fff;
  color: #1d4167;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.ki-modern-shell .more-cat-button a:hover {
  background: #f4f8fc;
  border-color: #c8dced;
}

.ki-modern-shell .more-cat-button a span {
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 767px) {
  .ki-modern-shell .toppost-list-box-simple,
  .ki-modern-shell .toppost-list-box {
    margin: 6px 0 14px;
  }

  .ki-modern-shell .toppost-list-box {
    border-radius: 12px;
  }

  .ki-modern-shell .tabBtn-mag {
    gap: 6px;
    padding: 10px 10px 0;
  }

  .ki-modern-shell .tabBtn-mag li label {
    min-height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }

  .ki-modern-shell .toppost-list-box-inner {
    padding: 10px;
  }

  .ki-modern-shell .pager-top {
    margin-top: 8px;
    padding-top: 6px;
  }

  .ki-modern-shell .more-cat {
    justify-content: center;
    margin-top: 8px;
  }

  .ki-modern-shell .more-cat-button a {
    min-height: 32px;
    min-width: 74px;
    font-size: 11px;
  }
}

/* =========================================================
   KomuInfo iOS-like visual language (global overrides)
   ========================================================= */
.ki-modern-shell {
  color: var(--ki-text);
}

.ki-modern-shell #scroll-content {
  background:
    radial-gradient(circle at 8% -8%, rgba(245, 248, 252, 0.95), transparent 42%),
    radial-gradient(circle at 92% 0%, rgba(248, 250, 253, 0.9), transparent 38%),
    #ffffff;
}

.ki-modern-shell a {
  color: #0b63ce;
}

.ki-modern-shell a:hover {
  color: #004aa8;
}

/* Shell surfaces */
.ki-site-header,
.ki-sidebar-hub,
.ki-footer-hub__inner,
.ki-post-next,
.ki-modern-shell .toppost-list-box,
.ki-modern-shell .post-list-inner,
.ki-modern-shell .pickup-contents-box-post-type .pickup-contents li a,
.ki-pickup-card,
.ki-nav-more__panel,
.ki-nav-more__group {
  backdrop-filter: var(--ki-blur);
  -webkit-backdrop-filter: var(--ki-blur);
}

/* Header */
.ki-site-header {
  background: rgba(248, 250, 255, 0.8);
  border-bottom: 1px solid rgba(138, 156, 180, 0.18);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
}

.ki-site-header__top {
  gap: 12px;
}

.ki-site-header__title {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ki-site-header__tagline {
  color: var(--ki-text-muted);
}

.ki-site-header__search .search-text {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(144, 163, 188, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 10px rgba(17, 24, 39, 0.03);
}

.ki-site-header__search .search-text:focus {
  border-color: rgba(10, 132, 255, 0.5);
  box-shadow:
    0 0 0 4px rgba(10, 132, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  outline: none;
}

.ki-site-header__search .search-submit {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(144, 163, 188, 0.25) !important;
  color: #1d2d45 !important;
  box-shadow: 0 3px 10px rgba(17, 24, 39, 0.05);
}

.ki-site-header__cta-link {
  border-radius: 12px;
  border-color: rgba(10, 132, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(10, 132, 255, 0.92) 0%, rgba(0, 102, 204, 0.94) 100%);
  box-shadow: 0 10px 20px rgba(10, 132, 255, 0.22);
}

.ki-site-header__cta-link:hover {
  background:
    linear-gradient(180deg, rgba(36, 146, 255, 0.95) 0%, rgba(7, 112, 221, 0.95) 100%);
  box-shadow: 0 12px 24px rgba(10, 132, 255, 0.28);
}

/* Global nav */
.ki-site-header__nav-wrap {
  padding-top: 2px;
}

@media (min-width: 1024px) {
  .ki-site-header__nav-wrap {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .ki-site-header__nav--desktop {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
  }

  .ki-nav-menu {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(144, 163, 188, 0.16);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
  }

  .ki-nav-menu::-webkit-scrollbar {
    display: none;
  }

  .ki-nav-menu > li {
    flex: 0 0 auto;
  }

  .ki-nav-menu__more {
    margin-left: 2px;
  }

  .ki-nav-menu > li > a {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #23384f;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition:
      background-color 0.14s ease,
      border-color 0.14s ease,
      color 0.14s ease,
      box-shadow 0.14s ease;
  }

  .ki-nav-menu > li > a:hover,
  .ki-nav-menu > li.current-menu-item > a,
  .ki-nav-menu > li.current-menu-ancestor > a {
    border-color: rgba(10, 132, 255, 0.18);
    background: rgba(10, 132, 255, 0.08);
    color: #0f4f93;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }

  .ki-nav-more__summary {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    border-color: rgba(144, 163, 188, 0.2);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.04);
    white-space: nowrap;
  }

  .ki-nav-more__summary:hover {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(10, 132, 255, 0.16);
  }
}

.ki-nav-more__panel {
  border-radius: 18px;
  border-color: rgba(144, 163, 188, 0.22);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 50px rgba(17, 24, 39, 0.14);
}

.ki-nav-more__group {
  border-radius: 14px;
  border-color: rgba(144, 163, 188, 0.16);
  background: rgba(255, 255, 255, 0.7);
}

.ki-nav-more__title {
  color: #1b3c62;
  font-weight: 800;
}

/* Pickup / hubs */
.ki-pickup-hub__title,
.ki-post-next__title,
.ki-sidebar-hub__title,
.ki-footer-hub__title {
  letter-spacing: -0.02em;
}

.ki-pickup-card {
  border-radius: 14px;
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--ki-shadow-sm);
}

.ki-pickup-card:hover {
  box-shadow: var(--ki-shadow-md);
  transform: translateY(-1px);
}

.ki-pickup-card__title {
  color: #18324f;
  font-weight: 800;
}

.ki-pickup-card__desc {
  color: var(--ki-text-muted);
}

.ki-sidebar-hub,
.ki-post-next {
  border-radius: 16px;
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--ki-shadow-sm);
}

.ki-sidebar-hub__lead {
  color: var(--ki-text-muted);
}

.ki-sidebar-hub__link,
.ki-post-next__action,
.ki-post-next__related a {
  border-radius: 12px;
  border-color: rgba(144, 163, 188, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.ki-sidebar-hub__link:hover,
.ki-post-next__action:hover,
.ki-post-next__related a:hover {
  border-color: rgba(10, 132, 255, 0.2);
  background: rgba(10, 132, 255, 0.04);
}

.ki-footer-hub__inner {
  border-radius: 18px;
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--ki-shadow-sm);
}

.ki-footer-hub__cta-item {
  border-radius: 14px;
  border-color: rgba(144, 163, 188, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.ki-footer-hub__cta-item:hover {
  border-color: rgba(10, 132, 255, 0.18);
  background: rgba(10, 132, 255, 0.04);
}

/* Pickup post-type cards */
.ki-modern-shell .pickup-contents-box-post-type {
  padding-top: 2px;
}

.ki-modern-shell .pickup-contents-box-post-type .pickup-contents li a {
  border: 1px solid rgba(144, 163, 188, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--ki-shadow-sm);
}

.ki-modern-shell .pickup-contents-box-post-type .pickup-contents li a:hover {
  box-shadow: var(--ki-shadow-md);
}

.ki-modern-shell .pickup-contents-box-post-type .pickup-contents li a .pickup-image {
  border-radius: 12px;
  border-color: rgba(144, 163, 188, 0.14);
}

.ki-modern-shell .pickup-contents-box-post-type .pickup-contents li a .pickup-image .pickup-cat {
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.14);
}

.ki-modern-shell .pickup-contents-box-post-type .pickup-contents li a .pickup-title {
  color: #172a44;
  letter-spacing: -0.01em;
}

/* Archive/list cards */
.ki-modern-shell .archive-title-sub {
  background: rgba(10, 132, 255, 0.08);
  color: #2b5d90;
  border: 1px solid rgba(10, 132, 255, 0.1);
}

.ki-modern-shell .archive-title {
  color: #101d30;
}

.ki-modern-shell .archive-box .ki-category-hub {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(144, 163, 188, 0.16);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.04);
}

/* Breadcrumbs: blend into modern shell */
.ki-modern-shell #breadcrumb {
  margin: 6px 0 10px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.ki-modern-shell #breadcrumb:after {
  display: none;
}

.ki-modern-shell #breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(144, 163, 188, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.03);
}

.ki-modern-shell #breadcrumb ul li,
.ki-modern-shell #breadcrumb ul li a {
  color: #5f738d;
  font-size: 11px;
  line-height: 1.35;
}

.ki-modern-shell #breadcrumb ul li:last-child,
.ki-modern-shell #breadcrumb ul li:last-child a {
  color: #17314d;
  font-weight: 700;
}

.ki-modern-shell #breadcrumb .jin-ifont-arrow:before {
  color: #98a9bf;
}

/* =========================================================
   Phase 2: Home discovery hub (top-level replacement for tabs)
   ========================================================= */
.ki-modern-shell .ki-home-discovery {
  margin: 6px 0 16px;
}

.ki-modern-shell .ki-home-discovery__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.ki-modern-shell .ki-home-discovery__panel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(144, 163, 188, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 252, 255, 0.92) 100%);
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.05);
  padding: 14px;
}

.ki-modern-shell .ki-home-discovery__panel:before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 56px;
  background: radial-gradient(70% 100% at 0% 0%, rgba(10, 132, 255, 0.08) 0%, rgba(10, 132, 255, 0) 70%);
  pointer-events: none;
}

.ki-modern-shell .ki-home-discovery__heading {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.ki-modern-shell .ki-home-discovery__title {
  margin: 0;
  color: #0f2239;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.ki-modern-shell .ki-home-discovery__lead {
  margin: 0;
  color: #6b7d93;
  font-size: 12px;
  line-height: 1.45;
}

.ki-modern-shell .ki-home-discovery__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}

.ki-modern-shell .ki-home-discovery__card {
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 118px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(144, 163, 188, 0.14);
  background: rgba(255, 255, 255, 0.95);
  color: #23374f;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ki-modern-shell .ki-home-discovery__card:hover,
.ki-modern-shell .ki-home-discovery__card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.06);
  border-color: rgba(10, 132, 255, 0.16);
}

.ki-modern-shell .ki-home-discovery__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.12);
  background: rgba(10, 132, 255, 0.06);
  color: #24578d;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.ki-modern-shell .ki-home-discovery__card-title {
  color: #142841;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ki-modern-shell .ki-home-discovery__card-desc {
  color: #667991;
  font-size: 11px;
  line-height: 1.5;
}

.ki-modern-shell .ki-home-discovery__recent-list {
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.ki-modern-shell .ki-home-discovery__recent-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(144, 163, 188, 0.14);
  background: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.ki-modern-shell .ki-home-discovery__recent-item:hover,
.ki-modern-shell .ki-home-discovery__recent-item:focus-visible {
  border-color: rgba(10, 132, 255, 0.16);
  background: rgba(10, 132, 255, 0.03);
}

.ki-modern-shell .ki-home-discovery__recent-meta {
  color: #61758e;
  font-size: 11px;
  font-weight: 700;
}

.ki-modern-shell .ki-home-discovery__recent-title {
  color: #1a3049;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.ki-modern-shell .ki-home-discovery__recent-empty {
  color: #6b7d93;
  font-size: 12px;
  padding: 10px;
}

.ki-modern-shell .ki-home-section {
  margin-top: 16px;
}

.ki-modern-shell .ki-home-section--top-widget {
  margin-top: 8px;
}

.ki-modern-shell .ki-home-section--latest {
  margin-top: 18px;
}

.ki-modern-shell .ki-home-discovery__lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ki-modern-shell .ki-home-discovery__list-block {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(144, 163, 188, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.ki-modern-shell .ki-home-discovery__list-title {
  margin: 0;
  padding: 0 2px;
  color: #17314d;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ki-modern-shell .ki-category-hub__title {
  color: #17314d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.ki-modern-shell .ki-category-hub__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ki-modern-shell .ki-category-hub__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: #254462;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ki-modern-shell .ki-category-hub__link:hover,
.ki-modern-shell .ki-category-hub__link:focus-visible {
  background: rgba(10, 132, 255, 0.05);
  border-color: rgba(10, 132, 255, 0.18);
  transform: translateY(-1px);
}

.ki-modern-shell .ki-category-hub__popular {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(144, 163, 188, 0.12);
}

.ki-modern-shell .ki-category-hub__popular-title {
  color: #17314d;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.ki-modern-shell .ki-category-hub__popular-list {
  display: grid;
  gap: 7px;
}

.ki-modern-shell .ki-category-hub__popular-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 11px;
  border: 1px solid rgba(144, 163, 188, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: #1f3958;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.ki-modern-shell .ki-category-hub__popular-item:hover,
.ki-modern-shell .ki-category-hub__popular-item:focus-visible {
  border-color: rgba(10, 132, 255, 0.18);
  background: rgba(10, 132, 255, 0.03);
  transform: translateY(-1px);
}

.ki-modern-shell .ki-category-hub__popular-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.14);
  background: rgba(10, 132, 255, 0.06);
  color: #2d5e93;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

.ki-modern-shell .ki-category-hub__popular-text {
  display: block;
  color: #1b314a;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.ki-modern-shell .ki-category-hub__popular-empty {
  color: #6b7d93;
  font-size: 12px;
  padding: 8px 2px;
}

.ki-modern-shell .post-list-inner {
  border-radius: 18px;
  border-color: rgba(144, 163, 188, 0.18);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--ki-shadow-sm);
}

.ki-modern-shell .post-list-link:hover .post-list-inner,
.ki-modern-shell .post-list-link:focus-visible .post-list-inner {
  box-shadow: var(--ki-shadow-md);
  border-color: rgba(10, 132, 255, 0.16);
}

.ki-modern-shell .post-list-thumb {
  border-radius: 14px;
  border-color: rgba(144, 163, 188, 0.14);
  background: #f0f4fa;
}

.ki-modern-shell .post-list-title {
  color: #12233a;
  letter-spacing: -0.015em;
}

.ki-modern-shell .post-list-date {
  background: rgba(10, 132, 255, 0.06);
  color: #496b90;
  border: 1px solid rgba(10, 132, 255, 0.08);
}

.ki-modern-shell .post-list-desc {
  color: #66778f;
}

/* Tabs / wrappers / pager */
.ki-modern-shell .toppost-list-box {
  border-radius: 18px;
  border-color: rgba(144, 163, 188, 0.18);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--ki-shadow-sm);
}

.ki-modern-shell .ki-top-list-section {
  margin-top: 4px;
}

.ki-modern-shell .ki-toplist-head {
  display: grid;
  gap: 4px;
  margin: 0 0 10px;
  padding: 2px 2px 0;
}

.ki-modern-shell .ki-toplist-head__title {
  color: #102138;
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.ki-modern-shell .ki-toplist-head__lead {
  color: #6a7b91;
  font-size: 12px;
  line-height: 1.45;
}

.ki-modern-shell .ki-archive-list-shell {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.ki-modern-shell .ki-archive-list-shell__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 0;
}

.ki-modern-shell .ki-archive-list-shell__titles {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ki-modern-shell .ki-archive-list-shell__title {
  margin: 0;
  color: #102138;
  font-size: 1.16rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.ki-modern-shell .ki-archive-list-shell__lead {
  margin: 0;
  color: #6a7b91;
  font-size: 12px;
  line-height: 1.45;
}

.ki-modern-shell .ki-archive-list-shell__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.ki-modern-shell .ki-archive-list-shell__count,
.ki-modern-shell .ki-archive-list-shell__page {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(144, 163, 188, 0.16);
  background: rgba(255, 255, 255, 0.84);
  color: #294664;
  font-size: 11px;
  font-weight: 700;
}

.ki-modern-shell .ki-archive-tail-hub {
  margin: 10px 0 4px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(144, 163, 188, 0.16);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.04);
}

.ki-modern-shell .ki-archive-tail-hub__head {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.ki-modern-shell .ki-archive-tail-hub__title {
  margin: 0;
  color: #13253d;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ki-modern-shell .ki-archive-tail-hub__lead {
  margin: 0;
  color: #6b7d93;
  font-size: 12px;
  line-height: 1.45;
}

.ki-modern-shell .ki-archive-tail-hub__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ki-modern-shell .ki-archive-tail-hub__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: #21415f;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.ki-modern-shell .ki-archive-tail-hub__link:hover,
.ki-modern-shell .ki-archive-tail-hub__link:focus-visible {
  border-color: rgba(10, 132, 255, 0.18);
  background: rgba(10, 132, 255, 0.04);
  transform: translateY(-1px);
}

/* LP-like spacing on top/archive sections */
.ki-modern-shell.home .ki-home-discovery,
.ki-modern-shell.blog .ki-home-discovery,
.ki-modern-shell.archive .archive-box .ki-category-hub {
  scroll-margin-top: 72px;
}

.ki-modern-shell .tabBtn-mag {
  border-bottom-color: rgba(144, 163, 188, 0.12);
}

.ki-modern-shell .tabBtn-mag li label {
  border-color: rgba(144, 163, 188, 0.18);
  background: rgba(255, 255, 255, 0.74);
  color: #2a4869;
}

.ki-modern-shell .tabBtn-mag li label:hover {
  background: rgba(10, 132, 255, 0.05);
  border-color: rgba(10, 132, 255, 0.16);
}

.ki-modern-shell .toppost-list-box > input#tab-1:checked ~ .tabBtn-mag li:nth-child(1) label,
.ki-modern-shell .toppost-list-box > input#tab-2:checked ~ .tabBtn-mag li:nth-child(2) label,
.ki-modern-shell .toppost-list-box > input#tab-3:checked ~ .tabBtn-mag li:nth-child(3) label,
.ki-modern-shell .toppost-list-box > input#tab-4:checked ~ .tabBtn-mag li:nth-child(4) label,
.ki-modern-shell .toppost-list-box > input#tab-5:checked ~ .tabBtn-mag li:nth-child(5) label {
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.94) 0%, rgba(0, 102, 204, 0.94) 100%);
  border-color: rgba(10, 132, 255, 0.4);
  box-shadow: 0 8px 18px rgba(10, 132, 255, 0.2);
}

.ki-modern-shell .pager-top {
  border-top-color: rgba(144, 163, 188, 0.12);
}

.ki-modern-shell .more-cat-button a {
  border-color: rgba(144, 163, 188, 0.2);
  background: rgba(255, 255, 255, 0.82);
  color: #1d3858;
}

.ki-modern-shell .more-cat-button a:hover {
  background: rgba(10, 132, 255, 0.05);
  border-color: rgba(10, 132, 255, 0.18);
}

/* Generic widget cards in sidebar/footer areas */
.ki-modern-shell #sidebar .widget,
.ki-modern-shell .sidebar .widget {
  border-radius: 14px;
  border: 1px solid rgba(144, 163, 188, 0.14);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
  padding: 12px;
}

.ki-modern-shell #sidebar .widget .widgettitle,
.ki-modern-shell .sidebar .widget .widgettitle {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #18314c;
}

@media (max-width: 767px) {
  .ki-modern-shell #breadcrumb {
    margin: 4px 0 8px;
  }

  .ki-modern-shell #breadcrumb ul {
    padding: 7px 10px;
    border-radius: 12px;
  }

  .ki-modern-shell #breadcrumb ul li,
  .ki-modern-shell #breadcrumb ul li a {
    font-size: 10px;
  }

  .ki-site-header {
    background: rgba(248, 250, 255, 0.86);
  }

  .ki-site-header__cta-link {
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(10, 132, 255, 0.18);
  }

  .ki-nav-more__panel,
  .ki-footer-hub__inner,
  .ki-sidebar-hub,
  .ki-post-next,
  .ki-modern-shell .post-list-inner,
  .ki-modern-shell .toppost-list-box {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .ki-modern-shell .post-list-inner,
  .ki-modern-shell .pickup-contents-box-post-type .pickup-contents li a {
    border-radius: 14px;
  }

  .ki-modern-shell #sidebar .widget,
  .ki-modern-shell .sidebar .widget {
    padding: 10px;
    border-radius: 12px;
  }

  .ki-modern-shell .ki-toplist-head {
    margin-bottom: 8px;
  }

  .ki-modern-shell .ki-toplist-head__title {
    font-size: 1.03rem;
  }

  .ki-modern-shell .ki-archive-list-shell {
    gap: 8px;
  }

  .ki-modern-shell .ki-archive-list-shell__head {
    display: grid;
    align-items: start;
    gap: 6px;
  }

  .ki-modern-shell .ki-archive-list-shell__title {
    font-size: 1.03rem;
  }

  .ki-modern-shell .ki-archive-list-shell__lead {
    font-size: 11px;
  }

  .ki-modern-shell .ki-archive-list-shell__meta {
    justify-content: flex-start;
  }

  .ki-modern-shell .ki-archive-tail-hub {
    margin-top: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  .ki-modern-shell .ki-archive-tail-hub__head {
    margin-bottom: 8px;
  }

  .ki-modern-shell .ki-archive-tail-hub__title {
    font-size: 13px;
  }

  .ki-modern-shell .ki-archive-tail-hub__lead {
    font-size: 11px;
  }

  .ki-modern-shell .ki-archive-tail-hub__links {
    gap: 6px;
  }

  .ki-modern-shell .ki-archive-tail-hub__link {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .ki-modern-shell .archive-box .ki-category-hub {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 14px;
  }

  .ki-modern-shell .ki-category-hub__links {
    gap: 6px;
  }

  .ki-modern-shell .ki-category-hub__link {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .ki-modern-shell .ki-category-hub__popular {
    margin-top: 8px;
    padding-top: 8px;
  }

  .ki-modern-shell .ki-category-hub__popular-list {
    gap: 6px;
  }

  .ki-modern-shell .ki-category-hub__popular-item {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 7px;
    padding: 7px 8px;
    border-radius: 10px;
  }

  .ki-modern-shell .ki-category-hub__popular-rank {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .ki-modern-shell .ki-category-hub__popular-text {
    font-size: 11px;
  }

  .ki-modern-shell .ki-home-discovery {
    margin-bottom: 10px;
  }

  .ki-modern-shell .ki-home-discovery__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ki-modern-shell .ki-home-discovery__lists {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ki-modern-shell .ki-home-discovery__list-block {
    gap: 6px;
  }

  .ki-modern-shell .ki-home-discovery__list-title {
    font-size: 11px;
  }

  .ki-modern-shell .ki-home-discovery__panel {
    border-radius: 16px;
    padding: 10px;
  }

  .ki-modern-shell .ki-home-discovery__cards {
    gap: 8px;
  }

  .ki-modern-shell .ki-home-discovery__card {
    min-height: 92px;
    border-radius: 12px;
    padding: 9px;
  }

  .ki-modern-shell .ki-home-discovery__list-block {
    padding: 7px;
    border-radius: 12px;
  }

  .ki-modern-shell .ki-home-discovery__card-title,
  .ki-modern-shell .ki-home-discovery__recent-title {
    font-size: 12px;
  }

  .ki-modern-shell .ki-home-discovery__card-desc {
    display: none;
  }

  .ki-modern-shell .ki-home-section {
    margin-top: 12px;
  }

  .ki-modern-shell .ki-home-section--latest {
    margin-top: 14px;
  }
}

/* =========================================================
   Phase 3 Entry: Article template readability refresh
   ========================================================= */
.ki-modern-shell.single .cps-post-box {
  margin-top: 8px;
}

.ki-modern-shell.single .cps-post {
  border-radius: 22px;
  border: 1px solid rgba(144, 163, 188, 0.16);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.06);
  overflow: clip;
}

.ki-modern-shell.single .cps-post-header {
  padding: 20px 22px 12px;
  border-bottom: 1px solid rgba(144, 163, 188, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.96) 100%);
}

.ki-modern-shell.single .cps-post-header.has-hero-image {
  position: relative;
  display: grid;
  align-content: end;
  min-height: clamp(260px, 34vw, 420px);
  padding: 20px 22px 16px;
  border-bottom-color: rgba(255, 255, 255, 0.14);
  background-color: #162235;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}

.ki-modern-shell.single .cps-post-header.has-hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 12, 20, 0.12) 0%, rgba(7, 12, 20, 0.28) 38%, rgba(7, 12, 20, 0.62) 72%, rgba(7, 12, 20, 0.82) 100%);
  z-index: 0;
}

.ki-modern-shell.single .cps-post-header.has-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 12, 20, 0.28) 0%, rgba(7, 12, 20, 0.08) 48%, rgba(7, 12, 20, 0.24) 100%);
  z-index: 0;
  pointer-events: none;
}

.ki-modern-shell.single .cps-post-header.has-hero-image > * {
  position: relative;
  z-index: 1;
}

.ki-modern-shell.single .cps-post-header.has-hero-image + .cps-post-thumb {
  display: none !important;
}

.ki-modern-shell.single .cps-post-cat a {
  border-radius: 999px !important;
  padding: 5px 10px !important;
  line-height: 1 !important;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.ki-modern-shell.single .cps-post-header.has-hero-image .cps-post-cat a {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #15263d !important;
  box-shadow: 0 8px 22px rgba(7, 12, 20, 0.2);
}

.ki-modern-shell.single .tag-box {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}

.ki-modern-shell.single .tag-box span {
  margin: 0;
}

.ki-modern-shell.single .tag-box a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: rgba(255, 255, 255, 0.8);
  color: #36506f;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.ki-modern-shell.single .cps-post-title {
  margin-top: 0;
  margin-bottom: 10px;
  color: #132338;
  letter-spacing: -0.025em;
  line-height: 1.25;
  font-weight: 800;
}

.ki-modern-shell.single .cps-post-header.has-hero-image .cps-post-title {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(7, 12, 20, 0.35);
}

.ki-modern-shell.single .cps-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: #667a92;
  font-size: 12px;
}

.ki-modern-shell.single .cps-post-header.has-hero-image .cps-post-meta {
  color: rgba(236, 243, 251, 0.92);
}

.ki-modern-shell.single .cps-post-header .cps-post-meta.cps-post-meta--headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
}

.ki-modern-shell.single .cps-post-header .cps-post-meta.cps-post-meta--headline .cps-post-cat {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.ki-modern-shell.single .cps-post-header .cps-post-meta.cps-post-meta--headline .cps-post-date-box {
  justify-self: end;
  margin-left: auto;
  white-space: nowrap;
}

.ki-modern-shell.single .cps-post-header.has-hero-image .cps-post-meta.cps-post-meta--headline .cps-post-date-box {
  color: rgba(245, 248, 253, 0.95);
  background: rgba(7, 12, 20, 0.28);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 18px rgba(7, 12, 20, 0.16);
}

.ki-modern-shell.single .cps-post-meta .writer,
.ki-modern-shell.single .cps-post-meta .cps-post-date-box {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(144, 163, 188, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

.ki-modern-shell.single .cps-post-thumb {
  margin: 0;
  padding: 14px 22px 8px;
  background: rgba(255, 255, 255, 0.98);
}

.ki-modern-shell.single .cps-post-thumb img {
  border-radius: 16px;
  box-shadow: 0 14px 26px rgba(17, 24, 39, 0.08);
}

.ki-modern-shell.single .cps-post-main-box {
  padding: 8px 22px 20px;
}

.ki-modern-shell.single .cps-post-main.entry-content {
  color: #1f2f44;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.01em;
}

.ki-modern-shell.single .cps-post-main.entry-content > *:first-child {
  margin-top: 0 !important;
}

.ki-modern-shell.single .cps-post-main.entry-content p {
  margin: 0 0 1.15em;
}

.ki-modern-shell.single .cps-post-main.entry-content h2,
.ki-modern-shell.single .cps-post-main.entry-content h3,
.ki-modern-shell.single .cps-post-main.entry-content h4 {
  letter-spacing: -0.02em;
  color: #12243d;
}

.ki-modern-shell.single .cps-post-main.entry-content h2 {
  margin-top: 2.1em;
  margin-bottom: 0.75em;
  position: relative;
  padding: 12px 14px 11px;
  border-radius: 12px;
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 255, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 6px 18px rgba(17, 24, 39, 0.03);
  font-weight: 800;
  font-size: 1.55em;
  line-height: 1.35;
}

.ki-modern-shell.single .cps-post-main.entry-content h3 {
  margin-top: 1.8em;
  margin-bottom: 0.65em;
  position: relative;
  padding: 9px 12px 8px;
  border-radius: 10px;
  border: 1px solid rgba(144, 163, 188, 0.15);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.92) 0%, rgba(255, 255, 255, 0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  font-weight: 800;
  font-size: 1.22em;
  line-height: 1.4;
}


.ki-modern-shell.single .cps-post-main.entry-content h4 {
  margin-top: 1.4em;
  margin-bottom: 0.55em;
  font-weight: 700;
  color: #2d4967;
  font-size: 1.05em;
  line-height: 1.45;
}

.ki-modern-shell.single .cps-post-main.entry-content ul:not([class]),
.ki-modern-shell.single .cps-post-main.entry-content ol:not([class]) {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

.ki-modern-shell.single .cps-post-main.entry-content li {
  margin-bottom: 0.45em;
}

.ki-modern-shell.single .cps-post-main.entry-content blockquote {
  margin: 1.2em 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: rgba(246, 249, 254, 0.86);
  color: #475d78;
}

.ki-modern-shell.single .cps-post-main.entry-content table {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(144, 163, 188, 0.16);
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}

.ki-modern-shell.single .cps-post-main.entry-content table th {
  background: rgba(10, 132, 255, 0.06);
  color: #1d3c5f;
}

.ki-modern-shell.single .cps-post-main.entry-content table td,
.ki-modern-shell.single .cps-post-main.entry-content table th {
  border-color: rgba(144, 163, 188, 0.14);
}

.ki-modern-shell.single .cps-post-main.entry-content table td {
  color: #20364e;
}

.ki-modern-shell.single .cps-post-main.entry-content .table-wrap,
.ki-modern-shell.single .cps-post-main.entry-content .table-scroll,
.ki-modern-shell.single .cps-post-main.entry-content .scroll-table,
.ki-modern-shell.single .cps-post-main.entry-content .table-responsive,
.ki-modern-shell.single .cps-post-main.entry-content .wp-block-table,
.ki-modern-shell.single .cps-post-main.entry-content .tablepress-scroll-wrapper {
  margin: 1.1em 0 1.35em;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(144, 163, 188, 0.14);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.92) 0%, rgba(246, 250, 255, 0.88) 100%);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ki-modern-shell.single .cps-post-main.entry-content .wp-block-table table {
  margin: 0;
}

.ki-modern-shell.single .cps-post-main.entry-content figure.wp-block-table {
  margin: 1.1em 0 1.35em;
}

.ki-modern-shell.single .cps-post-main.entry-content figure:not(.wp-block-image):not(.wp-block-gallery) > canvas,
.ki-modern-shell.single .cps-post-main.entry-content p > canvas,
.ki-modern-shell.single .cps-post-main.entry-content .chartjs-render-monitor,
.ki-modern-shell.single .cps-post-main.entry-content .chart-container,
.ki-modern-shell.single .cps-post-main.entry-content .custom-chart-wrap {
  display: block;
  width: 100% !important;
  max-width: 100%;
}

.ki-modern-shell.single .cps-post-main.entry-content .chart-container,
.ki-modern-shell.single .cps-post-main.entry-content .custom-chart-wrap {
  margin: 1.15em 0 1.4em;
  padding: 10px 10px 8px;
  border-radius: 16px;
  border: 1px solid rgba(144, 163, 188, 0.15);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.ki-modern-shell.single .cps-post-main.entry-content figure {
  margin: 1.1em 0 1.35em;
}

.ki-modern-shell.single .cps-post-main.entry-content figure:not(.wp-block-image):not(.wp-block-gallery) {
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(144, 163, 188, 0.14);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}

.ki-modern-shell.single .cps-post-main.entry-content figure:not(.wp-block-image):not(.wp-block-gallery) figcaption {
  margin-top: 8px;
  color: #6a7f97;
  font-size: 12px;
  line-height: 1.5;
}

.ki-modern-shell.single .cps-post-main.entry-content pre,
.ki-modern-shell.single .cps-post-main.entry-content code {
  border-radius: 10px;
}

.ki-modern-shell.single .cps-post-main.entry-content pre {
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: #f6f8fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ki-modern-shell.single .cps-post-main.entry-content code {
  background: rgba(10, 132, 255, 0.06);
  color: #1c466f;
  padding: 0.12em 0.35em;
}

.ki-modern-shell.single #toc_container,
.ki-modern-shell.single .ez-toc-container {
  margin: 1.25em 0 1.6em;
  padding: 10px 12px 12px;
  border-radius: 16px !important;
  border: 1px solid rgba(144, 163, 188, 0.16) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.ki-modern-shell.single #toc_container .toc_title,
.ki-modern-shell.single .ez-toc-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px !important;
  padding: 4px 2px;
  color: #18324f !important;
  font-weight: 800 !important;
}

.ki-modern-shell.single #toc_container .toc_title::before,
.ki-modern-shell.single .ez-toc-title-container::before {
  content: "目次";
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.12);
  background: rgba(10, 132, 255, 0.06);
  color: #1e4b78;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

.ki-modern-shell.single #toc_container .toc_title > span:first-child,
.ki-modern-shell.single .ez-toc-title-container .ez-toc-title {
  color: #1a314a !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

.ki-modern-shell.single #toc_container .toc_toggle a,
.ki-modern-shell.single .ez-toc-title-toggle a,
.ki-modern-shell.single .ez-toc-title-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  min-width: 26px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: #4a617d !important;
  text-decoration: none;
  font-size: 11px;
  line-height: 1;
}

.ki-modern-shell.single #toc_container .toc_list,
.ki-modern-shell.single .ez-toc-list,
.ki-modern-shell.single .ez-toc-list ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ki-modern-shell.single #toc_container .toc_list {
  counter-reset: ki-toc-item;
}

.ki-modern-shell.single #toc_container .toc_list > li,
.ki-modern-shell.single .ez-toc-list > li {
  margin: 0 0 6px !important;
}

.ki-modern-shell.single #toc_container .toc_list a,
.ki-modern-shell.single .ez-toc-list a {
  position: relative;
  display: block;
  padding: 8px 10px 8px 34px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: rgba(248, 251, 255, 0.72);
  color: #36506f;
  text-decoration: none;
  line-height: 1.45;
  font-weight: 700;
}

.ki-modern-shell.single #toc_container .toc_list a:hover,
.ki-modern-shell.single .ez-toc-list a:hover,
.ki-modern-shell.single #toc_container .toc_list a:focus-visible,
.ki-modern-shell.single .ez-toc-list a:focus-visible {
  color: #0a63c7;
  border-color: rgba(10, 132, 255, 0.14);
  background: rgba(10, 132, 255, 0.04);
}

.ki-modern-shell.single #toc_container .toc_list > li > a::before {
  counter-increment: ki-toc-item;
  content: counter(ki-toc-item);
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.12);
  background: rgba(10, 132, 255, 0.06);
  color: #245b93;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}

.ki-modern-shell.single .ez-toc-list > li > a::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.38);
}

.ki-modern-shell.single #toc_container .toc_list ul,
.ki-modern-shell.single .ez-toc-list ul {
  margin: 6px 0 4px !important;
  padding-left: 10px !important;
  border-left: 1px dashed rgba(144, 163, 188, 0.2);
}

.ki-modern-shell.single #toc_container .toc_list ul a,
.ki-modern-shell.single .ez-toc-list ul a {
  padding: 7px 8px 7px 26px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
}

.ki-modern-shell.single #toc_container .toc_list ul a::before,
.ki-modern-shell.single .ez-toc-list ul a::before {
  width: 5px !important;
  height: 5px !important;
  left: 11px !important;
  border: 0 !important;
  background: rgba(98, 123, 153, 0.45) !important;
  content: "" !important;
}

.ki-modern-shell.single .ez-toc-btn {
  border-radius: 999px !important;
  border-color: rgba(144, 163, 188, 0.18) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #4b627d !important;
}

.ki-modern-shell.single .related-ad-unit-area {
  border-radius: 14px;
  border: 1px dashed rgba(144, 163, 188, 0.22);
  background: rgba(247, 250, 255, 0.78);
  padding: 10px;
}

@media (max-width: 767px) {
  .ki-modern-shell.single .cps-post {
    border-radius: 16px;
  }

  .ki-modern-shell.single .cps-post-header {
    padding: 14px 14px 10px;
  }

  .ki-modern-shell.single .cps-post-header.has-hero-image {
    min-height: 220px;
    padding: 14px 14px 12px;
    background-position: center center;
  }

  .ki-modern-shell.single .cps-post-title {
    margin-top: 10px;
    font-size: 1.45rem;
    line-height: 1.3;
  }

  .ki-modern-shell.single .cps-post-header.has-hero-image .cps-post-title {
    margin-top: 0;
    font-size: 1.35rem;
    line-height: 1.26;
  }

  .ki-modern-shell.single .cps-post-header.has-hero-image .cps-post-meta.cps-post-meta--headline {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
  }

  .ki-modern-shell.single .cps-post-header.has-hero-image .cps-post-meta.cps-post-meta--headline .cps-post-date-box {
    justify-self: start;
    margin-left: 0;
    white-space: normal;
  }

  .ki-modern-shell.single .cps-post-thumb {
    padding: 10px 14px 4px;
  }

  .ki-modern-shell.single .cps-post-thumb img {
    border-radius: 12px;
  }

  .ki-modern-shell.single .cps-post-main-box {
    padding: 6px 14px 16px;
  }

  .ki-modern-shell.single .cps-post-main.entry-content {
    font-size: 15px;
    line-height: 1.9;
  }

  .ki-modern-shell.single .cps-post-main.entry-content h2 {
    padding: 12px 12px;
    border-radius: 14px;
  }

  .ki-modern-shell.single .cps-post-main.entry-content h3 {
    padding-left: 10px;
  }

  .ki-modern-shell.single #toc_container,
  .ki-modern-shell.single .ez-toc-container {
    margin: 1.05em 0 1.35em;
    padding: 8px 9px 10px;
    border-radius: 14px !important;
  }

  .ki-modern-shell.single #toc_container .toc_title,
  .ki-modern-shell.single .ez-toc-title-container {
    margin-bottom: 6px !important;
    gap: 6px;
  }

  .ki-modern-shell.single #toc_container .toc_title::before,
  .ki-modern-shell.single .ez-toc-title-container::before {
    min-height: 22px;
    padding: 0 8px;
    font-size: 10px;
  }

  .ki-modern-shell.single #toc_container .toc_title > span:first-child,
  .ki-modern-shell.single .ez-toc-title-container .ez-toc-title {
    font-size: 13px !important;
  }

  .ki-modern-shell.single #toc_container .toc_list a,
  .ki-modern-shell.single .ez-toc-list a {
    padding: 7px 8px 7px 30px;
    border-radius: 10px;
    font-size: 13px;
  }

  .ki-modern-shell.single #toc_container .toc_list > li > a::before {
    left: 8px;
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .ki-modern-shell.single .ez-toc-list > li > a::before {
    left: 12px;
    width: 5px;
    height: 5px;
  }

  .ki-modern-shell.single #toc_container .toc_list ul a,
  .ki-modern-shell.single .ez-toc-list ul a {
    padding: 6px 7px 6px 22px;
    font-size: 12px;
  }

  .ki-modern-shell.single .cps-post-main.entry-content .table-wrap,
  .ki-modern-shell.single .cps-post-main.entry-content .table-scroll,
  .ki-modern-shell.single .cps-post-main.entry-content .scroll-table,
  .ki-modern-shell.single .cps-post-main.entry-content .table-responsive,
  .ki-modern-shell.single .cps-post-main.entry-content .wp-block-table,
  .ki-modern-shell.single .cps-post-main.entry-content .tablepress-scroll-wrapper {
    margin: 1em 0 1.2em;
    padding: 6px;
    border-radius: 14px;
  }

  .ki-modern-shell.single .cps-post-main.entry-content figure:not(.wp-block-image):not(.wp-block-gallery),
  .ki-modern-shell.single .cps-post-main.entry-content .chart-container,
  .ki-modern-shell.single .cps-post-main.entry-content .custom-chart-wrap {
    margin: 1em 0 1.2em;
    padding: 8px;
    border-radius: 14px;
  }

  .ki-modern-shell.single .cps-post-main.entry-content table td,
  .ki-modern-shell.single .cps-post-main.entry-content table th {
    font-size: 12px;
    line-height: 1.45;
  }
}

/* =========================================================
   Phase 3: Article lower blocks (CTA / related / prevnext)
   ========================================================= */
.ki-modern-shell.single .cta-content {
  margin: 1.4em 0 1.6em;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 255, 0.9) 100%);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.ki-modern-shell.single .cta-content .info-title {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.08);
  border: 1px solid rgba(10, 132, 255, 0.12);
  color: #17426f;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
}

.ki-modern-shell.single .ki-cta-section__head {
  display: grid;
  gap: 8px;
  align-items: start;
}

.ki-modern-shell.single .ki-cta-section__heading {
  margin: 0;
  color: #172f49;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ki-modern-shell.single .cta-content .cta-text {
  margin-top: 10px;
  color: #24384f;
  line-height: 1.8;
}

.ki-modern-shell.single .ki-cta-section__body > :first-child {
  margin-top: 0;
}

.ki-modern-shell.single .ki-cta-section__body > :last-child {
  margin-bottom: 0;
}

.ki-modern-shell.single .ki-cta-section__foot {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.ki-modern-shell.single .ki-cta-section__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.16);
  background: rgba(10, 132, 255, 0.08);
  color: #0f4f97;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.ki-modern-shell.single .ki-cta-section__link:hover,
.ki-modern-shell.single .ki-cta-section__link:focus-visible {
  background: rgba(10, 132, 255, 0.12);
  border-color: rgba(10, 132, 255, 0.22);
  transform: translateY(-1px);
}

.ki-modern-shell.single .related-entry-section {
  padding-top: 2px;
}

.ki-modern-shell.single .related-entry-headline {
  margin-bottom: 10px;
}

.ki-modern-shell.single .related-entry-headline-text {
  display: flex;
  align-items: center;
}

.ki-modern-shell.single .related-entry-headline-text .fa-headline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(144, 163, 188, 0.16);
  background: rgba(255, 255, 255, 0.84);
  color: #18324f;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}

.ki-modern-shell.single .related-entry-section .post-list,
.ki-modern-shell.single .related-entry-section .post-list-mag,
.ki-modern-shell.single .related-entry-section .post-list-mag3col,
.ki-modern-shell.single .related-entry-section .post-list-mag3col-slide {
  margin-top: 6px;
}

.ki-modern-shell.single .related-entry-section .ki-related-list {
  padding: 2px;
}

.ki-modern-shell.single .related-entry-section .ki-related-list--mag,
.ki-modern-shell.single .related-entry-section .ki-related-list--mag3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ki-modern-shell.single .related-entry-section .ki-related-list--mag3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ki-modern-shell.single .related-entry-section .ki-related-list--mag > *,
.ki-modern-shell.single .related-entry-section .ki-related-list--mag3 > * {
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}

.ki-modern-shell.single .related-entry-section .ki-related-list--mag .post-list-item,
.ki-modern-shell.single .related-entry-section .ki-related-list--mag3 .post-list-item,
.ki-modern-shell.single .related-entry-section .ki-related-list--basic .post-list-item {
  width: 100% !important;
  max-width: none !important;
}

.ki-modern-shell.single .related-entry-section .ki-related-list--slide .swiper-container2 {
  padding: 2px 2px 22px;
}

.ki-modern-shell.single .related-entry-section .ki-related-list--slide .swiper-button-prev,
.ki-modern-shell.single .related-entry-section .ki-related-list--slide .swiper-button-next {
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 999px;
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.ki-modern-shell.single .related-entry-section .ki-related-list--slide .swiper-button-prev::after,
.ki-modern-shell.single .related-entry-section .ki-related-list--slide .swiper-button-next::after {
  font-size: 12px;
  font-weight: 800;
  color: #23486b;
}

.ki-modern-shell.single .related-entry-section .ki-related-list--slide .swiper-pagination-bullet {
  background: rgba(120, 138, 160, 0.35);
  opacity: 1;
}

.ki-modern-shell.single .related-entry-section .ki-related-list--slide .swiper-pagination-bullet-active {
  background: rgba(10, 132, 255, 0.8);
}

/* Related posts date pill: lighter and less noisy than generic list date */
.ki-modern-shell.single .related-entry-section .post-list-date {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(144, 163, 188, 0.14);
  background: rgba(246, 249, 253, 0.92);
  color: #6f8298;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: none;
}

.ki-modern-shell.single .related-entry-section .post-list-meta {
  gap: 4px;
}

.ki-modern-shell.single .related-entry-section .post-list-title {
  margin-bottom: 1px;
}

.ki-modern-shell.single .related-ad-area {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px dashed rgba(144, 163, 188, 0.2);
  background: rgba(247, 250, 255, 0.78);
  padding: 12px;
}

.ki-modern-shell.single .related-ad-area .sponsor,
.ki-modern-shell.single .related-ad-area .sponsor-center {
  color: #667a92;
  font-size: 11px;
  font-weight: 700;
}

.ki-modern-shell.single #prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0 6px;
}

.ki-modern-shell.single #prev-next > a,
.ki-modern-shell.single #prev-next > .prevnext-none {
  min-width: 0;
  border-radius: 16px;
  border: 1px solid rgba(144, 163, 188, 0.16);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.04);
}

.ki-modern-shell.single #prev-next > a {
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ki-modern-shell.single #prev-next > a:hover,
.ki-modern-shell.single #prev-next > a:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.07);
  border-color: rgba(10, 132, 255, 0.16);
}

.ki-modern-shell.single #prev-next .metabox {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.ki-modern-shell.single #prev-next .next .metabox {
  grid-template-columns: minmax(0, 1fr) 96px;
}

.ki-modern-shell.single #prev-next .metabox p {
  margin: 0;
  color: #18314b;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.ki-modern-shell.single #prev-next .metabox img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(144, 163, 188, 0.14);
  background: #f2f6fb;
}

.ki-modern-shell.single #prev-next .prevnext-none {
  min-height: 96px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(248, 251, 255, 0.8) 100%);
  box-shadow: none;
}

@media (max-width: 767px) {
  .ki-modern-shell.single .cta-content {
    margin: 1.2em 0 1.35em;
    padding: 12px;
    border-radius: 14px;
  }

  .ki-modern-shell.single .ki-cta-section__heading {
    font-size: 15px;
  }

  .ki-modern-shell.single .ki-cta-section__foot {
    margin-top: 10px;
    justify-content: stretch;
  }

  .ki-modern-shell.single .ki-cta-section__link {
    width: 100%;
    min-height: 40px;
  }

  .ki-modern-shell.single #prev-next {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .ki-modern-shell.single #prev-next .metabox,
  .ki-modern-shell.single #prev-next .next .metabox {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .ki-modern-shell.single #prev-next .metabox p {
    font-size: 12px;
  }

  .ki-modern-shell.single #prev-next .prevnext-none {
    min-height: 72px;
  }

  .ki-modern-shell.single .related-entry-section .ki-related-list--mag,
  .ki-modern-shell.single .related-entry-section .ki-related-list--mag3 {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ki-modern-shell.single .related-entry-section .ki-related-list--slide .swiper-button-prev,
  .ki-modern-shell.single .related-entry-section .ki-related-list--slide .swiper-button-next {
    width: 30px;
    height: 30px;
    margin-top: -15px;
  }

  .ki-modern-shell.single .related-entry-section .post-list-date {
    min-height: 18px;
    padding: 0 6px;
    font-size: 9px;
  }
}

/* =========================================================
   Phase 3: Comments area refresh (CSS-only)
   ========================================================= */
.ki-modern-shell.single #comment-box {
  margin-top: 18px;
}

.ki-modern-shell.single .ki-single-tail {
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

.ki-modern-shell.single .ki-single-tail__related,
.ki-modern-shell.single .ki-single-tail__comments,
.ki-modern-shell.single .ki-single-tail__prevnext {
  min-width: 0;
}

.ki-modern-shell.single .ki-comments-shell__pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ki-modern-shell.single .ki-comments-shell__pager-prev,
.ki-modern-shell.single .ki-comments-shell__pager-next {
  display: inline-flex;
}

/* =========================================================
   Final polish: cards / labels / sidebar / page-top button
   ========================================================= */

/* Hide author labels across article/list cards (KomuInfo policy) */
.ki-modern-shell .writer.fn,
.ki-modern-shell .post-list-publisher,
.ki-modern-shell .post-list-meta .writer,
.ki-modern-shell.single .cps-post-main .writer {
  display: none !important;
}

/* Refresh article category label on single */
.ki-modern-shell.single .cps-post-cat {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.ki-modern-shell.single .cps-post-cat a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(19, 34, 68, 0.08) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #20365f !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(17, 27, 51, 0.04);
}

.ki-modern-shell.single .cps-post-cat a:hover {
  border-color: rgba(10, 132, 255, 0.18) !important;
  background: rgba(10, 132, 255, 0.05) !important;
  color: #0d57dc !important;
}

/* Generic current-item (menus/tabs/lists) iOS-like active chip */
.ki-modern-shell .current-item > a,
.ki-modern-shell li.current-item > a,
.ki-modern-shell .current-menu-item > a,
.ki-modern-shell .current_page_item > a {
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.16), rgba(10, 132, 255, 0.1)) !important;
  color: #123f86 !important;
  box-shadow: inset 0 0 0 1px rgba(10, 132, 255, 0.14);
}

/* Sidebar iOS-like shell */
.ki-modern-shell #sidebar,
.ki-modern-shell .sidebar {
  display: grid;
  gap: 12px;
}

.ki-modern-shell #sidebar .widget,
.ki-modern-shell .sidebar .widget {
  margin: 0 !important;
  padding: 12px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(19, 34, 68, 0.08) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,255,.92)) !important;
  box-shadow: 0 12px 26px rgba(17, 27, 51, 0.05) !important;
}

.ki-modern-shell #sidebar .widget .widgettitle,
.ki-modern-shell .sidebar .widget .widgettitle {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 10px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(19, 34, 68, 0.06) !important;
  background: rgba(255,255,255,.9) !important;
  color: #1c2340 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.ki-modern-shell #sidebar .widget ul,
.ki-modern-shell .sidebar .widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ki-modern-shell #sidebar .widget li,
.ki-modern-shell .sidebar .widget li {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(19, 34, 68, 0.06);
}

.ki-modern-shell #sidebar .widget li:last-child,
.ki-modern-shell .sidebar .widget li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ki-modern-shell #sidebar .widget a,
.ki-modern-shell .sidebar .widget a {
  color: #21375f;
}

/* Page-top (back to top) button refresh */
.ki-modern-shell #page-top {
  right: 18px !important;
  bottom: 96px !important;
}

/* JIN can render both desktop and footer top buttons; keep only one in modern shell */
.ki-modern-shell .page-top-footer {
  display: none !important;
}

/* -------------------------------------------------
 * Article share buttons (JIN sns-top / sns)
 * ------------------------------------------------- */
.ki-modern-shell.single .ki-share-block {
  margin: 14px 0 18px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(19, 34, 68, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(17, 27, 51, 0.05);
}

.ki-modern-shell.single .ki-share-block__head {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.ki-modern-shell.single .ki-share-block__title {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(19, 34, 68, 0.08);
  background: rgba(245, 248, 252, 0.95);
  color: #223a66;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.ki-modern-shell.single .ki-share-block .share-top,
.ki-modern-shell.single .ki-share-block .share {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ki-modern-shell.single .ki-share-block .sns-top,
.ki-modern-shell.single .ki-share-block .sns {
  margin: 0 !important;
}

.ki-modern-shell.single .ki-share-block .sns-top ol,
.ki-modern-shell.single .ki-share-block .sns ol {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ki-modern-shell.single .ki-share-block .sns-top li,
.ki-modern-shell.single .ki-share-block .sns li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ki-modern-shell.single .ki-share-block .sns-top li a,
.ki-modern-shell.single .ki-share-block .sns li a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 8px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(19, 34, 68, 0.08) !important;
  background: #fff !important;
  color: #223a66 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(17, 27, 51, 0.03);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.ki-modern-shell.single .ki-share-block .sns-top li a:hover,
.ki-modern-shell.single .ki-share-block .sns li a:hover,
.ki-modern-shell.single .ki-share-block .sns-top li a:focus-visible,
.ki-modern-shell.single .ki-share-block .sns li a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(57, 112, 204, 0.22) !important;
  box-shadow: 0 8px 16px rgba(17, 27, 51, 0.06);
}

.ki-modern-shell.single .ki-share-block .sns-top li a:focus-visible,
.ki-modern-shell.single .ki-share-block .sns li a:focus-visible {
  outline: 2px solid rgba(57, 112, 204, 0.25);
  outline-offset: 2px;
}

.ki-modern-shell.single .ki-share-block .sns-top li a i,
.ki-modern-shell.single .ki-share-block .sns li a i {
  font-size: 15px;
  line-height: 1;
}

.ki-modern-shell.single .ki-share-block .sns-top li a span,
.ki-modern-shell.single .ki-share-block .sns li a span {
  font-size: 11px;
  font-weight: 700;
  color: #607792;
}

@media (max-width: 767px) {
  .ki-modern-shell.single .ki-share-block {
    margin: 12px 0 14px;
    padding: 10px;
    border-radius: 14px;
  }

  .ki-modern-shell.single .ki-share-block__head {
    margin-bottom: 8px;
  }

  .ki-modern-shell.single .ki-share-block .sns-top ol,
  .ki-modern-shell.single .ki-share-block .sns ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px !important;
  }

  .ki-modern-shell.single .ki-share-block .sns-top li a,
  .ki-modern-shell.single .ki-share-block .sns li a {
    min-height: 38px;
    border-radius: 10px !important;
    padding: 0 6px !important;
  }

  .ki-modern-shell.single .ki-share-block .sns-top li a span,
  .ki-modern-shell.single .ki-share-block .sns li a span {
    display: none;
  }
}

.ki-modern-shell #page-top a,
.ki-modern-shell .page-top-footer a.totop {
  width: 50px !important;
  height: 50px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(19, 34, 68, 0.08) !important;
  background: linear-gradient(180deg, #1c2650, #10183a) !important;
  box-shadow: 0 12px 26px rgba(17, 27, 51, 0.18) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ki-modern-shell #page-top a .jin-ifont-arrowtop:before,
.ki-modern-shell .page-top-footer a.totop .jin-ifont-arrowtop:before,
.ki-modern-shell .page-top-footer a.totop .jin-ifont-arrow-top:before {
  color: #fff !important;
  font-size: 16px !important;
}

.ki-modern-shell #page-top a:hover,
.ki-modern-shell .page-top-footer a.totop:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(17, 27, 51, 0.22) !important;
}

@media (max-width: 767px) {
  .ki-modern-shell #sidebar .widget,
  .ki-modern-shell .sidebar .widget {
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .ki-modern-shell #sidebar .widget .widgettitle,
  .ki-modern-shell .sidebar .widget .widgettitle {
    min-height: 32px;
    padding: 0 10px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }

  .ki-modern-shell #page-top {
    right: 14px !important;
    bottom: 84px !important;
  }

  .ki-modern-shell #page-top a,
  .ki-modern-shell .page-top-footer a.totop {
    width: 46px !important;
    height: 46px !important;
  }
}

.ki-modern-shell.single .ki-comments-shell__pager a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(144, 163, 188, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: #23425f;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.ki-modern-shell.single .ki-comments-shell__pager a:hover,
.ki-modern-shell.single .ki-comments-shell__pager a:focus-visible {
  border-color: rgba(10, 132, 255, 0.16);
  background: rgba(10, 132, 255, 0.04);
}

.ki-modern-shell.single .ki-comments-shell .comment-reply-title {
  margin: 0 0 10px;
}

.ki-modern-shell.single .ki-comments-shell .comment-reply-title .ki-ui-headline {
  display: block;
  margin: 0;
}

.ki-modern-shell.single .ki-comments-shell .ki-comment-form {
  margin-top: 8px;
}

.ki-modern-shell.single .ki-comments-shell .ki-comment-form .form-submit {
  margin-top: 10px;
}

.ki-modern-shell.single #comment-section,
.ki-modern-shell.single #comment-area,
.ki-modern-shell.single .comment-respond {
  border-radius: 18px;
  border: 1px solid rgba(144, 163, 188, 0.16);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.05);
}

.ki-modern-shell.single #comment-section {
  margin-bottom: 14px;
  overflow: hidden;
}

.ki-modern-shell.single #comment-area {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.ki-modern-shell.single #comment-title,
.ki-modern-shell.single .comment-reply-title {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(144, 163, 188, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.94) 100%);
}

.ki-modern-shell.single #comment-title .fa-headline,
.ki-modern-shell.single .comment-reply-title .fa-headline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #18314d;
  font-weight: 800;
}

.ki-modern-shell.single .comment-list {
  list-style: none;
  margin: 0;
  padding: 10px 12px 12px;
}

.ki-modern-shell.single .comment-list > li {
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(144, 163, 188, 0.14);
  background: rgba(255, 255, 255, 0.8);
}

.ki-modern-shell.single .comment-list .children {
  list-style: none;
  margin: 10px 0 0;
  padding-left: 12px;
  border-left: 2px solid rgba(144, 163, 188, 0.14);
}

.ki-modern-shell.single .comment-list .children > li {
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(144, 163, 188, 0.12);
  background: rgba(247, 250, 255, 0.72);
}

.ki-modern-shell.single .comment-list .comment-author img {
  border-radius: 999px;
  border: 1px solid rgba(144, 163, 188, 0.16);
}

.ki-modern-shell.single .comment-list .comment-author,
.ki-modern-shell.single .comment-list .comment-metadata {
  color: #5f748e;
  font-size: 12px;
}

.ki-modern-shell.single .comment-list .comment-content {
  color: #1f3046;
  line-height: 1.75;
}

.ki-modern-shell.single .comment-list .reply a,
.ki-modern-shell.single .comment-edit-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(144, 163, 188, 0.16);
  background: rgba(255, 255, 255, 0.76);
  color: #244562;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.ki-modern-shell.single .comment-respond {
  padding: 0;
  overflow: hidden;
}

.ki-modern-shell.single .comment-respond form.comment-form {
  padding: 12px 14px 14px;
}

.ki-modern-shell.single .comment-notes,
.ki-modern-shell.single .logged-in-as {
  color: #687b93;
  font-size: 12px;
}

.ki-modern-shell.single .comment-form-comment textarea,
.ki-modern-shell.single .comment-form-author input,
.ki-modern-shell.single .comment-form-email input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: rgba(255, 255, 255, 0.95);
  color: #1d3047;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ki-modern-shell.single .comment-form-comment textarea {
  min-height: 140px;
  padding: 12px;
  line-height: 1.7;
}

.ki-modern-shell.single .comment-form-author input,
.ki-modern-shell.single .comment-form-email input {
  min-height: 42px;
  padding: 0 12px;
}

.ki-modern-shell.single .comment-form-comment textarea:focus,
.ki-modern-shell.single .comment-form-author input:focus,
.ki-modern-shell.single .comment-form-email input:focus {
  border-color: rgba(10, 132, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
  outline: none;
}

.ki-modern-shell.single .form-submit {
  margin: 8px 0 0;
}

.ki-modern-shell.single .form-submit .submit {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.34);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.96) 0%, rgba(0, 102, 204, 0.96) 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(10, 132, 255, 0.2);
}

.ki-modern-shell.single .form-submit .submit:hover {
  filter: brightness(0.98);
}

@media (max-width: 767px) {
  .ki-modern-shell.single #comment-section,
  .ki-modern-shell.single #comment-area,
  .ki-modern-shell.single .comment-respond {
    border-radius: 14px;
  }

  .ki-modern-shell.single #comment-title,
  .ki-modern-shell.single .comment-reply-title {
    padding: 12px;
  }

  .ki-modern-shell.single .comment-list {
    padding: 8px 8px 10px;
  }

  .ki-modern-shell.single .comment-list > li {
    padding: 10px;
    border-radius: 12px;
  }

  .ki-modern-shell.single .comment-respond form.comment-form {
    padding: 10px 10px 12px;
  }
}

/* =========================================================
   Phase 4 (Entry): Tool UI shared components
   ========================================================= */
.ki-modern-shell .ki-ui-card,
.ki-modern-shell .exam-vote-wrapper,
.ki-modern-shell .exam-score-wrapper,
.ki-modern-shell .dsscore {
  border-radius: 18px;
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.95) 100%);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.06);
}

.ki-modern-shell .ki-ui-card {
  padding: 14px;
}

.ki-modern-shell .ki-ui-headline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #15324f;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ki-modern-shell .ki-ui-section-head {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

.ki-modern-shell .ki-ui-section-head > .ki-ui-headline {
  margin-bottom: 0;
}

.ki-modern-shell h2.ki-ui-headline,
.ki-modern-shell h3.ki-ui-headline {
  position: relative;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(144, 163, 188, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 255, 0.9) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 5px 14px rgba(17, 24, 39, 0.025);
}


.ki-modern-shell h2.ki-ui-headline {
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.7rem);
}

.ki-modern-shell h3.ki-ui-headline {
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem);
  font-weight: 800;
  color: #264463;
}

/* Heading contrast guard: prevent parent-theme overrides from making text and bg identical */
.ki-modern-shell h2.ki-ui-headline,
.ki-modern-shell h2.ki-ui-headline > span,
.ki-modern-shell h2.ki-ui-headline > a,
.ki-modern-shell h2.ki-ui-headline a {
  color: #15324f !important;
}

.ki-modern-shell h3.ki-ui-headline,
.ki-modern-shell h3.ki-ui-headline > span,
.ki-modern-shell h3.ki-ui-headline > a,
.ki-modern-shell h3.ki-ui-headline a {
  color: #264463 !important;
}

.ki-modern-shell .ki-ui-lead {
  margin: 0;
  color: #61758f;
  line-height: 1.7;
  font-size: 14px;
}

.ki-modern-shell .ki-ui-lead + .ki-ui-lead {
  margin-top: 4px;
}

.ki-modern-shell .ki-ui-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.14);
  background: rgba(10, 132, 255, 0.08);
  color: #1a4c7d;
  font-size: 11px;
  font-weight: 800;
}

/* Hide eyebrow prefixes in headings (Guide / まとめ / ライブ投票 etc.) */
.ki-modern-shell .ki-ui-headline > .ki-ui-eyebrow,
.ki-modern-shell h2 .ki-ui-eyebrow,
.ki-modern-shell h3 .ki-ui-eyebrow {
  display: none !important;
}

.ki-modern-shell .ki-ui-stack {
  display: grid;
  gap: 14px;
}

.ki-modern-shell .ki-ui-input,
.ki-modern-shell .exam-vote-wrapper input[type="text"],
.ki-modern-shell .exam-vote-wrapper input[type="number"],
.ki-modern-shell .exam-vote-wrapper textarea,
.ki-modern-shell .exam-score-wrapper input[type="text"],
.ki-modern-shell .exam-score-wrapper input[type="number"],
.ki-modern-shell .exam-score-wrapper textarea,
.ki-modern-shell .dsscore input[type="text"],
.ki-modern-shell .dsscore input[type="number"],
.ki-modern-shell .dsscore select {
  border-radius: 12px;
  border: 1px solid rgba(144, 163, 188, 0.2);
  background: rgba(255, 255, 255, 0.96);
  color: #1c3148;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ki-modern-shell .ki-ui-input:focus,
.ki-modern-shell .exam-vote-wrapper input[type="text"]:focus,
.ki-modern-shell .exam-vote-wrapper input[type="number"]:focus,
.ki-modern-shell .exam-vote-wrapper textarea:focus,
.ki-modern-shell .exam-score-wrapper input[type="text"]:focus,
.ki-modern-shell .exam-score-wrapper input[type="number"]:focus,
.ki-modern-shell .exam-score-wrapper textarea:focus,
.ki-modern-shell .dsscore input[type="text"]:focus,
.ki-modern-shell .dsscore input[type="number"]:focus,
.ki-modern-shell .dsscore select:focus {
  outline: none;
  border-color: rgba(10, 132, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
}

.ki-modern-shell .ki-ui-btn,
.ki-modern-shell .exam-vote-wrapper button,
.ki-modern-shell .exam-score-wrapper button,
.ki-modern-shell .dsscore__sticky-cta-btn {
  border-radius: 999px;
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: #18324f;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.ki-modern-shell .ki-ui-btn:hover,
.ki-modern-shell .exam-vote-wrapper button:hover,
.ki-modern-shell .exam-score-wrapper button:hover,
.ki-modern-shell .dsscore__sticky-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.07);
}

.ki-modern-shell .ki-ui-btn--primary,
.ki-modern-shell .exam-vote-wrapper .vote-btn,
.ki-modern-shell .exam-vote-wrapper .show-result,
.ki-modern-shell .exam-vote-wrapper .ev-feel__submit,
.ki-modern-shell .exam-score-wrapper .submit-score-vote,
.ki-modern-shell .exam-score-wrapper .ev-empathy-submit,
.ki-modern-shell .dsscore__sticky-cta-btn.is-main {
  border-color: rgba(10, 132, 255, 0.32);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.97) 0%, rgba(0, 102, 204, 0.97) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(10, 132, 255, 0.2);
}

.ki-modern-shell .siken-beta__sticky-cta-btn {
  border-radius: 999px;
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: #18324f;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
}

.ki-modern-shell .siken-beta__sticky-cta-btn.is-main {
  border-color: rgba(10, 132, 255, 0.32);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.97) 0%, rgba(0, 102, 204, 0.97) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(10, 132, 255, 0.2);
}

.ki-modern-shell .siken-beta__sticky-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ki-modern-shell .siken-beta-ui__chart,
.ki-modern-shell .srdb__chart {
  margin: 10px 0 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(144, 163, 188, 0.14);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.ki-modern-shell .siken-beta-ui__table,
.ki-modern-shell .srdb__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(144, 163, 188, 0.14);
  background: rgba(255, 255, 255, 0.9);
}

.ki-modern-shell .siken-beta-ui__table th,
.ki-modern-shell .siken-beta-ui__table td,
.ki-modern-shell .srdb__table th,
.ki-modern-shell .srdb__table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(144, 163, 188, 0.1);
  font-size: 12px;
  line-height: 1.45;
}

.ki-modern-shell .siken-beta-ui__table th,
.ki-modern-shell .srdb__table th {
  background: rgba(10, 132, 255, 0.05);
  color: #224868;
  font-weight: 800;
  text-align: left;
}

.ki-modern-shell .siken-beta-ui__table tr:last-child td,
.ki-modern-shell .srdb__table tr:last-child td {
  border-bottom: 0;
}

.ki-modern-shell .siken-beta-ui__table td,
.ki-modern-shell .srdb__table td {
  color: #21364d;
}

.ki-modern-shell .siken-beta__inline-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(144, 163, 188, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: #193553;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.ki-modern-shell .siken-beta__inline-cta a:hover,
.ki-modern-shell .siken-beta__inline-cta a:focus-visible {
  border-color: rgba(10, 132, 255, 0.18);
  background: rgba(10, 132, 255, 0.04);
}

.ki-modern-shell .exam-vote-wrapper .vote-actions,
.ki-modern-shell .exam-vote-wrapper .ev-feel__actions,
.ki-modern-shell .exam-score-wrapper .score-actions,
.ki-modern-shell .exam-score-wrapper .ev-empathy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ki-modern-shell #border-tool-container .bt-actions,
.ki-modern-shell #border-tool-container .bt-selection-fields + .bt-selection-cta {
  width: 100%;
}

.ki-modern-shell .exam-vote-wrapper .ev-sticky-summary,
.ki-modern-shell .exam-vote-wrapper .ev-feel,
.ki-modern-shell .exam-score-wrapper .ev-empathy-card,
.ki-modern-shell .exam-score-wrapper .score-chart-wrap,
.ki-modern-shell .dsscore .dsscore__nav,
.ki-modern-shell .dsscore .dsscore__quickcards,
.ki-modern-shell .dsscore .dsscore__hero {
  border-radius: 14px;
  border: 1px solid rgba(144, 163, 188, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}

.ki-modern-shell .exam-vote-wrapper .ev-progress,
.ki-modern-shell .exam-vote-wrapper .ev-progress__bar {
  border-radius: 999px;
}

.ki-modern-shell .exam-vote-wrapper .ev-react-btn,
.ki-modern-shell .exam-score-wrapper .ev-empathy-sort,
.ki-modern-shell .exam-vote-wrapper .ev-feel__sort,
.ki-modern-shell #border-tool-container .bt-step,
.ki-modern-shell #border-tool-container .bt-selfscore-link,
.ki-modern-shell #border-tool-container .bt-linkset__card,
.ki-modern-shell #border-tool-container .bt-toolcard,
.ki-modern-shell #border-tool-container .score-step,
.ki-modern-shell #border-tool-container .grade-choice-btn {
  border-radius: 999px;
  border: 1px solid rgba(144, 163, 188, 0.16);
  background: rgba(255, 255, 255, 0.84);
  color: #244562;
}

.ki-modern-shell .exam-score-wrapper .ev-empathy-sort.is-active,
.ki-modern-shell .exam-vote-wrapper .ev-feel__sort.is-active,
.ki-modern-shell #border-tool-container .bt-step.is-active {
  border-color: rgba(10, 132, 255, 0.22);
  background: rgba(10, 132, 255, 0.08);
  color: #11406d;
}

.ki-modern-shell #border-tool-container .bt-step-panel,
.ki-modern-shell #border-tool-container #bt-capture,
.ki-modern-shell #border-tool-container .bt-year-compare,
.ki-modern-shell #border-tool-container .bt-empathy-card {
  border-radius: 16px;
  border: 1px solid rgba(144, 163, 188, 0.16);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.04);
}

.ki-modern-shell #border-tool-container select,
.ki-modern-shell #border-tool-container input[type="number"],
.ki-modern-shell #border-tool-container input[type="text"],
.ki-modern-shell #border-tool-container textarea {
  border-radius: 12px;
  border: 1px solid rgba(144, 163, 188, 0.2);
  background: rgba(255, 255, 255, 0.96);
  color: #1c3148;
}

.ki-modern-shell #border-tool-container select:focus,
.ki-modern-shell #border-tool-container input[type="number"]:focus,
.ki-modern-shell #border-tool-container input[type="text"]:focus,
.ki-modern-shell #border-tool-container textarea:focus {
  outline: none;
  border-color: rgba(10, 132, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
}

.ki-modern-shell #border-tool-container .bt-selection-cta,
.ki-modern-shell #border-tool-container .bt-empathy-submit,
.ki-modern-shell #border-tool-container .bt-btn.bt-primary {
  border-color: rgba(10, 132, 255, 0.32);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.97) 0%, rgba(0, 102, 204, 0.97) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(10, 132, 255, 0.2);
}

/* border-tool: 年度/区分選択CTAの重なり回避 + iOS風ボタン再調整 */
.ki-modern-shell #border-tool-container .bt-selection-fields + .bt-selection-cta {
  margin-top: 12px;
}

.ki-modern-shell #border-tool-container .bt-selection-notice {
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid rgba(10, 132, 255, 0.16);
  background: rgba(10, 132, 255, 0.05);
  color: #1f3f63;
  font-weight: 700;
}

.ki-modern-shell #border-tool-container .bt-selection-cta,
.ki-modern-shell #border-tool-container .bt-btn,
.ki-modern-shell #border-tool-container .bt-option-btn {
  min-height: 46px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform .14s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.ki-modern-shell #border-tool-container .bt-btn,
.ki-modern-shell #border-tool-container .bt-option-btn {
  border: 1px solid rgba(144, 163, 188, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: #203954;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.04);
}

.ki-modern-shell #border-tool-container .bt-btn:hover,
.ki-modern-shell #border-tool-container .bt-option-btn:hover,
.ki-modern-shell #border-tool-container .bt-selection-cta:hover {
  transform: translateY(-1px);
}

.ki-modern-shell #border-tool-container .bt-btn:active,
.ki-modern-shell #border-tool-container .bt-option-btn:active,
.ki-modern-shell #border-tool-container .bt-selection-cta:active {
  transform: scale(.985);
}

.ki-modern-shell #border-tool-container .bt-btn:focus-visible,
.ki-modern-shell #border-tool-container .bt-option-btn:focus-visible,
.ki-modern-shell #border-tool-container .bt-selection-cta:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(10, 132, 255, 0.14),
    0 8px 18px rgba(17, 24, 39, 0.06);
}

.ki-modern-shell #border-tool-container .bt-option-btn.is-active {
  border-color: rgba(10, 132, 255, 0.28);
  background: rgba(10, 132, 255, 0.08);
  color: #11406d;
  box-shadow: 0 8px 16px rgba(10, 132, 255, 0.08);
}

.ki-modern-shell #border-tool-container .bt-selection-cta:disabled {
  border-color: rgba(144, 163, 188, 0.2) !important;
  background: rgba(226, 232, 240, 0.9) !important;
  color: #556c86 !important;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  .ki-modern-shell .exam-vote-wrapper,
  .ki-modern-shell .exam-score-wrapper,
  .ki-modern-shell .dsscore {
    border-radius: 14px;
  }

  /* border-tool: SPでは枠の重なりを減らして実効幅を確保 */
  .ki-modern-shell #border-tool-container {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .ki-modern-shell #border-tool-container .bt-step-panel,
  .ki-modern-shell #border-tool-container #bt-capture,
  .ki-modern-shell #border-tool-container .bt-year-compare,
  .ki-modern-shell #border-tool-container .bt-empathy-card {
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.03);
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .ki-modern-shell #border-tool-container .bt-score-summary,
  .ki-modern-shell #border-tool-container .bt-summary,
  .ki-modern-shell #border-tool-container .bt-result-grid,
  .ki-modern-shell #border-tool-container .bt-score-grid {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .ki-modern-shell .exam-vote-wrapper .vote-actions,
  .ki-modern-shell .exam-score-wrapper .score-actions,
  .ki-modern-shell .exam-score-wrapper .ev-empathy-actions {
    gap: 6px;
  }

  .ki-modern-shell .exam-vote-wrapper button,
  .ki-modern-shell .exam-score-wrapper button,
  .ki-modern-shell .dsscore__sticky-cta-btn,
  .ki-modern-shell .siken-beta__sticky-cta-btn {
    min-height: 40px;
  }

  .ki-modern-shell .exam-vote-wrapper .vote-actions > *,
  .ki-modern-shell .exam-vote-wrapper .ev-feel__actions > *,
  .ki-modern-shell .exam-score-wrapper .score-actions > *,
  .ki-modern-shell .exam-score-wrapper .ev-empathy-actions > * {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .ki-modern-shell .exam-vote-wrapper .vote-actions > *.show-result,
  .ki-modern-shell .exam-vote-wrapper .vote-actions > *.vote-btn,
  .ki-modern-shell .exam-score-wrapper .score-actions > *.submit-score-vote,
  .ki-modern-shell .exam-score-wrapper .ev-empathy-actions > *.ev-empathy-submit {
    flex-basis: 100%;
  }

  .ki-modern-shell .dsscore__sticky-cta,
  .ki-modern-shell .siken-beta__sticky-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ki-modern-shell .dsscore__sticky-cta-btn,
  .ki-modern-shell .siken-beta__sticky-cta-btn,
  .ki-modern-shell #border-tool-container .bt-selection-cta,
  .ki-modern-shell #border-tool-container .bt-empathy-submit {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 44px;
  }

  .ki-modern-shell #border-tool-container .bt-selection-fields + .bt-selection-cta {
    position: sticky;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 5;
    margin-top: 12px;
    box-shadow:
      0 10px 20px rgba(10, 132, 255, 0.16),
      0 0 0 6px rgba(255, 255, 255, 0.78);
  }

  .ki-modern-shell #border-tool-container .bt-steps {
    gap: 6px;
  }

  .ki-modern-shell #border-tool-container .bt-step {
    min-height: 38px;
    padding: 6px 10px;
  }

  .ki-modern-shell #border-tool-container .bt-selection-cta,
  .ki-modern-shell #border-tool-container .bt-linkset__card,
  .ki-modern-shell #border-tool-container .bt-selfscore-link,
  .ki-modern-shell #border-tool-container .bt-toolcard {
    border-radius: 12px;
  }

  .ki-modern-shell .siken-beta-ui__chart,
  .ki-modern-shell .srdb__chart {
    margin: 8px 0 10px;
    padding: 8px;
    border-radius: 12px;
  }

  .ki-modern-shell .siken-beta-ui__table th,
  .ki-modern-shell .siken-beta-ui__table td,
  .ki-modern-shell .srdb__table th,
  .ki-modern-shell .srdb__table td {
    padding: 7px 8px;
    font-size: 11px;
  }

  .ki-modern-shell .siken-beta__inline-cta a {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 40px;
    padding: 0 12px;
  }
}


/* Tool heading contrast + flat iOS style fix (d-siken-score / tools) */
.ki-modern-shell .dsscore h2.ki-ui-headline,
.ki-modern-shell .dsscore h3.ki-ui-headline,
.ki-modern-shell #border-tool-container h2.ki-ui-headline,
.ki-modern-shell #border-tool-container h3.ki-ui-headline,
.ki-modern-shell .exam-vote-wrapper h2.ki-ui-headline,
.ki-modern-shell .exam-vote-wrapper h3.ki-ui-headline {
  position: relative !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(246, 250, 255, 0.93) 100%) !important;
  background-image: none !important;
  color: #17324d !important;
  border: 1px solid rgba(144, 163, 188, 0.16) !important;
  border-radius: 12px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 5px 14px rgba(17, 24, 39, 0.025) !important;
  padding: 10px 14px !important;
}

.ki-modern-shell .dsscore .ki-ui-section-head,
.ki-modern-shell #border-tool-container .ki-ui-section-head,
.ki-modern-shell .exam-vote-wrapper .ki-ui-section-head {
  margin: 0 0 14px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}


.ki-modern-shell .dsscore h2.ki-ui-headline,
.ki-modern-shell #border-tool-container h2.ki-ui-headline,
.ki-modern-shell .exam-vote-wrapper h2.ki-ui-headline {
  font-size: clamp(1.2rem, 1.02rem + .6vw, 1.55rem) !important;
  line-height: 1.3 !important;
}

.ki-modern-shell .dsscore h3.ki-ui-headline,
.ki-modern-shell #border-tool-container h3.ki-ui-headline,
.ki-modern-shell .exam-vote-wrapper h3.ki-ui-headline {
  font-size: clamp(1.0rem, .95rem + .2vw, 1.15rem) !important;
  color: #284765 !important;
}


/* If a parent theme "h2-style01" dark header style is applied, force white headline text */
.ki-modern-shell .h2-style01 h2.ki-ui-headline,
.ki-modern-shell .h2-style01 h2.ki-ui-headline > span,
.ki-modern-shell .h2-style01 h2.ki-ui-headline > a,
.ki-modern-shell .h2-style01 h2.ki-ui-headline a,
.ki-modern-shell .h2-style01 h3.ki-ui-headline,
.ki-modern-shell .h2-style01 h3.ki-ui-headline > span,
.ki-modern-shell .h2-style01 h3.ki-ui-headline > a,
.ki-modern-shell .h2-style01 h3.ki-ui-headline a,
.ki-modern-shell h2.h2-style01.ki-ui-headline,
.ki-modern-shell h2.h2-style01.ki-ui-headline > span,
.ki-modern-shell h2.h2-style01.ki-ui-headline > a,
.ki-modern-shell h2.h2-style01.ki-ui-headline a,
.ki-modern-shell h3.h2-style01.ki-ui-headline,
.ki-modern-shell h3.h2-style01.ki-ui-headline > span,
.ki-modern-shell h3.h2-style01.ki-ui-headline > a,
.ki-modern-shell h3.h2-style01.ki-ui-headline a {
  color: #ffffff !important;
}

@media (max-width: 767px) {
}

/* Mobile header: modern brand typography + softer hide/show motion */
.ki-modern-shell .ki-site-header__brand-link,
.ki-modern-shell .ki-site-header__title {
  font-family: "SF Pro Display", "SF Pro Text", "Hiragino Sans", "Yu Gothic UI",
    "Yu Gothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
}

@media (max-width: 1023px) {
  .ki-site-header {
    position: fixed !important;
    transition:
      transform .24s ease,
      opacity .22s ease,
      box-shadow .24s ease,
      background-color .24s ease,
      border-color .24s ease !important;
  }

  .ki-site-header.is-mobile-header-hidden:not(.is-mobile-nav-open) {
    transform: translateY(calc(-100% - 2px));
    opacity: .02;
  }

  .ki-site-header.is-mobile-header-scrolling:not(.is-mobile-nav-open) {
    pointer-events: none;
  }

  .ki-site-header:not(.is-mobile-header-hidden),
  .ki-site-header.is-mobile-nav-open {
    opacity: 1;
  }

  .ki-site-header__menu-toggle {
    min-width: 42px;
    min-height: 42px;
    border-radius: 14px;
  }
}

/* exam-vote CTA colors: align with site theme (blue accent) */
.ki-modern-shell .exam-vote-wrapper .vote-btn.ki-ui-btn,
.ki-modern-shell .exam-vote-wrapper .vote-btn {
  background: linear-gradient(135deg, #0a84ff 0%, #356dff 100%) !important;
  border-color: rgba(10, 132, 255, 0.72) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(10, 132, 255, 0.24) !important;
}

.ki-modern-shell .exam-vote-wrapper .vote-btn.ki-ui-btn:hover,
.ki-modern-shell .exam-vote-wrapper .vote-btn:hover {
  background: linear-gradient(135deg, #1a8fff 0%, #4278ff 100%) !important;
  box-shadow: 0 14px 26px rgba(10, 132, 255, 0.30) !important;
}

.ki-modern-shell .exam-vote-wrapper .show-result.ki-ui-btn,
.ki-modern-shell .exam-vote-wrapper .show-result {
  background: rgba(10, 132, 255, 0.10) !important;
  border: 1px solid rgba(10, 132, 255, 0.26) !important;
  color: #1c4f86 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

.ki-modern-shell .exam-vote-wrapper .show-result.ki-ui-btn:hover,
.ki-modern-shell .exam-vote-wrapper .show-result:hover {
  background: rgba(10, 132, 255, 0.16) !important;
  border-color: rgba(10, 132, 255, 0.38) !important;
  color: #143f6e !important;
}

.ki-modern-shell .exam-vote-wrapper .vote-btn:disabled,
.ki-modern-shell .exam-vote-wrapper .show-result:disabled {
  box-shadow: none !important;
}

/* exam-vote dark heading bar fallback: keep headline readable on h2-style01 */
.ki-modern-shell .h2-style01 .ki-ui-headline,
.ki-modern-shell .h2-style01 .ki-ui-headline > span,
.ki-modern-shell .h2-style01 .ki-ui-headline > a,
.ki-modern-shell .h2-style01 .ki-ui-headline a {
  color: #ffffff !important;
}


/* exam-vote / hub headlines: force readable contrast even inside parent theme h2-style wrappers */
.ki-modern-shell h2.ki-ui-headline--hub,
.ki-modern-shell h3.ki-ui-headline--vote,
.ki-modern-shell h2.ki-ui-headline--hub > span,
.ki-modern-shell h3.ki-ui-headline--vote > span,
.ki-modern-shell h2.ki-ui-headline--hub > a,
.ki-modern-shell h3.ki-ui-headline--vote > a,
.ki-modern-shell h2.ki-ui-headline--hub a,
.ki-modern-shell h3.ki-ui-headline--vote a {
  color: #17324d !important;
}

.ki-modern-shell h2.ki-ui-headline--hub,
.ki-modern-shell h3.ki-ui-headline--vote {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(241, 246, 253, 0.98) 100%) !important;
  border: 1px solid rgba(122, 148, 182, 0.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(17, 24, 39, 0.04) !important;
  text-shadow: none !important;
  opacity: 1 !important;
}


/* Readability guard: some parent h2-style wrappers force white text on light cards */
.ki-modern-shell .h2-style01 .ki-ui-section-head .ki-ui-headline,
.ki-modern-shell .h2-style01 .ki-ui-section-head .ki-ui-headline > span,
.ki-modern-shell .h2-style01 .ki-ui-section-head .ki-ui-headline > a,
.ki-modern-shell .h2-style01 .ki-ui-section-head .ki-ui-headline a,
.ki-modern-shell .dsscore .h2-style01 .ki-ui-headline,
.ki-modern-shell .dsscore .h2-style01 .ki-ui-headline > span,
.ki-modern-shell .dsscore .h2-style01 .ki-ui-headline > a,
.ki-modern-shell .dsscore .h2-style01 .ki-ui-headline a,
.ki-modern-shell #border-tool-container .h2-style01 .ki-ui-headline,
.ki-modern-shell #border-tool-container .h2-style01 .ki-ui-headline > span,
.ki-modern-shell #border-tool-container .h2-style01 .ki-ui-headline > a,
.ki-modern-shell #border-tool-container .h2-style01 .ki-ui-headline a,
.ki-modern-shell .exam-vote-wrapper .h2-style01 .ki-ui-headline,
.ki-modern-shell .exam-vote-wrapper .h2-style01 .ki-ui-headline > span,
.ki-modern-shell .exam-vote-wrapper .h2-style01 .ki-ui-headline > a,
.ki-modern-shell .exam-vote-wrapper .h2-style01 .ki-ui-headline a {
  color: #17324d !important;
}

/* Fallback for old cached exam-vote headings without --vote modifier class */
.ki-modern-shell.single .cps-post-main-box .h2-style01 h3.ki-ui-headline,
.ki-modern-shell.single .cps-post-main-box h3.ki-ui-headline {
  color: #17324d !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

.ki-modern-shell.single .cps-post-main-box .h2-style01 h3.ki-ui-headline > span,
.ki-modern-shell.single .cps-post-main-box .h2-style01 h3.ki-ui-headline > a,
.ki-modern-shell.single .cps-post-main-box .h2-style01 h3.ki-ui-headline a {
  color: #17324d !important;
}

/* "今の気持ちは？" headings (div/h4 with ki-ui-headline) */
.ki-modern-shell .exam-vote-wrapper .ev-feel__title.ki-ui-headline,
.ki-modern-shell .exam-vote-wrapper .ev-feel__title.ki-ui-headline > span,
.ki-modern-shell .exam-score-wrapper .ev-empathy-title.ki-ui-headline,
.ki-modern-shell .exam-score-wrapper .ev-empathy-title.ki-ui-headline > span {
  color: #17324d !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

/* =========================================================
   2026 Refresh: Asahi-style information layout x iOS feel
   ========================================================= */
.ki-modern-shell {
  --ki-ios-surface: rgba(255, 255, 255, 0.86);
  --ki-ios-surface-strong: rgba(255, 255, 255, 0.94);
  --ki-ios-line: rgba(144, 163, 188, 0.16);
  --ki-ios-line-strong: rgba(144, 163, 188, 0.24);
  --ki-ios-shadow-sm: 0 6px 16px rgba(17, 24, 39, 0.035);
  --ki-ios-shadow-md: 0 10px 24px rgba(17, 24, 39, 0.05);
  --ki-ios-radius-card: 16px;
  --ki-ios-radius-pill: 999px;
}

.ki-modern-shell #scroll-content {
  background:
    radial-gradient(circle at 8% -10%, rgba(244, 248, 252, 0.9), transparent 44%),
    radial-gradient(circle at 92% 0%, rgba(248, 250, 253, 0.88), transparent 40%),
    #f8fafc;
}

/* Header: Asahi-like tiering + iOS glass */
.ki-modern-shell .ki-site-header {
  background: rgba(250, 252, 255, 0.86) !important;
  border-bottom: 1px solid rgba(144, 163, 188, 0.18) !important;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.045) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ki-modern-shell .ki-site-header__top {
  max-width: 1240px;
  padding: 12px 18px 10px;
  gap: 14px;
}

.ki-modern-shell .ki-site-header__brand-link {
  align-items: center;
  gap: 0 12px;
}

.ki-modern-shell .ki-site-header__title {
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.ki-modern-shell .ki-site-header__tagline {
  color: #6b7280;
  font-size: 10px;
  letter-spacing: 0.01em;
}

.ki-modern-shell .ki-site-header__nav-wrap {
  max-width: 1240px;
  padding: 6px 18px 8px;
  border-bottom: 1px solid rgba(144, 163, 188, 0.12);
  background: rgba(255, 255, 255, 0.48);
}

.ki-modern-shell .ki-nav-menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 2px 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.ki-modern-shell .ki-nav-menu::-webkit-scrollbar {
  display: none;
}

.ki-modern-shell .ki-nav-menu > li {
  flex: 0 0 auto;
}

.ki-modern-shell .ki-nav-menu > li > a {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: #1f2937;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.01em;
  transition:
    background-color .14s ease,
    border-color .14s ease,
    color .14s ease,
    transform .12s ease;
}

.ki-modern-shell .ki-nav-menu > li > a:hover,
.ki-modern-shell .ki-nav-menu > li.current-menu-item > a,
.ki-modern-shell .ki-nav-menu > li.current-menu-ancestor > a {
  background: rgba(10, 132, 255, 0.08) !important;
  border-color: rgba(10, 132, 255, 0.14) !important;
  color: #0f4f93 !important;
}

.ki-modern-shell .ki-site-header__context {
  max-width: 1240px;
  padding: 6px 18px 10px;
  border-bottom: 1px solid rgba(144, 163, 188, 0.1);
  background: rgba(255, 255, 255, 0.38);
}

.ki-modern-shell .ki-context-menu {
  gap: 6px;
}

.ki-modern-shell .ki-context-menu a {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(190, 206, 226, 0.65);
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

/* Content spacing / typography */
.ki-modern-shell.single .cps-post-header {
  padding: 24px 26px 16px;
}

.ki-modern-shell.single .cps-post-main-box {
  padding: 14px 24px 28px;
}

.ki-modern-shell.single .cps-post-main.entry-content {
  color: #1f2937;
  font-size: 16px;
  line-height: 2.0;
  letter-spacing: 0.01em;
}

.ki-modern-shell.single .cps-post-main.entry-content p {
  margin: 0 0 1.35em;
}

.ki-modern-shell.single .cps-post-title {
  font-size: clamp(1.55rem, 1.15rem + 1vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 850;
}

  .ki-modern-shell.single .cps-post-meta {
    gap: 10px 12px;
  }

  .ki-modern-shell.single .cps-post-header .cps-post-meta.cps-post-meta--headline {
    grid-template-columns: 1fr auto;
  }

/* H headings: flat surface only (no gradient) */
.ki-modern-shell.single .cps-post-main.entry-content h2 {
  background: rgba(248, 251, 255, 0.96) !important;
  border: 1px solid rgba(144, 163, 188, 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 6px 18px rgba(17, 24, 39, 0.03) !important;
}

.ki-modern-shell.single .cps-post-main.entry-content h3 {
  background: rgba(248, 251, 255, 0.92) !important;
  border: 1px solid rgba(144, 163, 188, 0.15) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

.ki-modern-shell h2.ki-ui-headline,
.ki-modern-shell h3.ki-ui-headline,
.ki-modern-shell h2.ki-ui-headline--hub,
.ki-modern-shell h3.ki-ui-headline--vote {
  background: rgba(247, 250, 255, 0.96) !important;
  border-color: rgba(144, 163, 188, 0.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 16px rgba(17, 24, 39, 0.03) !important;
}

/* Cards / tools: softer glass + roomier spacing */
.ki-modern-shell .ki-ui-card,
.ki-modern-shell .exam-vote-wrapper,
.ki-modern-shell .exam-score-wrapper,
.ki-modern-shell .dsscore,
.ki-modern-shell #border-tool-container .bt-step-panel,
.ki-modern-shell #border-tool-container #bt-capture,
.ki-modern-shell #border-tool-container .bt-year-compare {
  border-radius: 16px;
  border: 1px solid rgba(144, 163, 188, 0.14);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ki-modern-shell .exam-vote-wrapper .single-vote-form {
  border-radius: 14px;
  border: 1px solid rgba(144, 163, 188, 0.14);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.03);
}

.ki-modern-shell .exam-vote-wrapper .ev-sticky-summary {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(144, 163, 188, 0.16);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.035);
}

/* Micro interactions: subtle, iOS-like */
.ki-modern-shell .ki-ui-btn,
.ki-modern-shell .ki-site-header__menu-toggle,
.ki-modern-shell .ki-mobile-nav-list a,
.ki-modern-shell .ki-nav-menu > li > a {
  transition:
    transform .14s ease,
    background-color .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    color .16s ease;
}

.ki-modern-shell .ki-ui-btn:active,
.ki-modern-shell .ki-site-header__menu-toggle:active,
.ki-modern-shell .ki-mobile-nav-list a:active,
.ki-modern-shell .ki-nav-menu > li > a:active {
  transform: scale(0.985);
}

.ki-modern-shell .ki-ui-btn:focus-visible,
.ki-modern-shell .ki-site-header__menu-toggle:focus-visible,
.ki-modern-shell .ki-mobile-nav-list a:focus-visible,
.ki-modern-shell .ki-nav-menu > li > a:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(10, 132, 255, 0.12),
    0 6px 16px rgba(17, 24, 39, 0.04);
}

/* Mobile: Asahi-like compact masthead + clean drawer */
@media (max-width: 1023px) {
  .ki-site-header {
    background: rgba(250, 252, 255, 0.9) !important;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04) !important;
  }

  .ki-site-header__top {
    padding: 12px 12px 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    border-bottom: 0;
  }

  .ki-site-header__brand-link {
    grid-template-columns: auto 1fr;
    gap: 0 8px;
  }

  .ki-site-header__logo img {
    max-height: 38px;
  }

  .ki-site-header__title {
    font-size: 18px;
    line-height: 1.05;
  }

  .ki-site-header__tagline {
    display: none;
  }

  .ki-site-header__nav-wrap {
    padding: 0 10px 8px;
    border-bottom: 0;
    background: transparent;
  }

  .ki-site-header__mobile-panel {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(144, 163, 188, 0.16);
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.07);
    padding: 8px;
  }

  .ki-mobile-nav-list a {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(144, 163, 188, 0.14);
    background: rgba(248, 251, 255, 0.9);
    color: #17324d;
    font-weight: 800;
  }

  .ki-modern-shell.single .cps-post-main-box {
    padding: 10px 14px 22px;
  }

  .ki-modern-shell.single .cps-post-main.entry-content {
    font-size: 15px;
    line-height: 1.95;
  }

  .ki-modern-shell h2.ki-ui-headline,
  .ki-modern-shell h3.ki-ui-headline {
    border-radius: 10px;
    padding: 9px 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ki-modern-shell .ki-ui-btn,
  .ki-modern-shell .ki-site-header,
  .ki-modern-shell .ki-site-header__menu-toggle,
  .ki-modern-shell .ki-mobile-nav-list a,
  .ki-modern-shell .ki-nav-menu > li > a {
    transition: none !important;
    animation: none !important;
  }
}

@media (prefers-color-scheme: dark) {
  .ki-modern-shell {
    --ki-text: #e5e7eb;
  }

  .ki-modern-shell #scroll-content {
    background:
      radial-gradient(circle at 10% -10%, rgba(31, 41, 55, 0.55), transparent 44%),
      radial-gradient(circle at 92% 0%, rgba(30, 41, 59, 0.5), transparent 40%),
      #0f172a;
  }

  .ki-modern-shell .ki-site-header,
  .ki-modern-shell .ki-site-header__nav-wrap,
  .ki-modern-shell .ki-site-header__context,
  .ki-modern-shell .ki-ui-card,
  .ki-modern-shell .exam-vote-wrapper,
  .ki-modern-shell .exam-score-wrapper,
  .ki-modern-shell .dsscore {
    background: rgba(15, 23, 42, 0.72) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28) !important;
  }

  .ki-modern-shell .ki-nav-menu > li > a,
  .ki-modern-shell .ki-context-menu a,
  .ki-modern-shell .ki-mobile-nav-list a,
  .ki-modern-shell .ki-site-header__title,
  .ki-modern-shell.single .cps-post-main.entry-content,
  .ki-modern-shell.single .cps-post-title {
    color: #e5e7eb !important;
  }

  .ki-modern-shell h2.ki-ui-headline,
  .ki-modern-shell h3.ki-ui-headline,
  .ki-modern-shell.single .cps-post-main.entry-content h2,
  .ki-modern-shell.single .cps-post-main.entry-content h3 {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    color: #f1f5f9 !important;
  }
}

/* Final mobile drawer override (hamburger -> right drawer) */
@media (max-width: 1023px) {
  body.ki-mobile-nav-lock {
    overflow: hidden;
    touch-action: none;
  }

  .ki-site-header {
    overflow: visible !important;
  }

  .ki-site-header__top,
  .ki-site-header__nav-wrap,
  .ki-site-header__nav,
  .ki-site-header__nav--mobile {
    overflow: visible !important;
    max-height: none !important;
  }

  .ki-site-header::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 118;
  }

  .ki-site-header.is-mobile-nav-open::before {
    opacity: 1;
  }

  /* iOS Safari: transformed ancestor makes fixed drawer height collapse */
  .ki-site-header.is-mobile-nav-open {
    transform: none !important;
  }

  .ki-site-header__menu-toggle {
    position: relative;
    z-index: 122;
  }

  .ki-site-header.is-mobile-nav-open .ki-site-header__menu-toggle {
    position: fixed !important;
    top: max(16px, calc(env(safe-area-inset-top, 0px) + 16px));
    right: 16px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0 !important;
    border-radius: 14px !important;
    border: 1px solid rgba(96, 165, 250, 0.32) !important;
    background: rgba(239, 246, 255, 0.94) !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12) !important;
  }

  .ki-site-header__menu-toggle-label {
    display: none !important;
  }

  .ki-site-header__nav-wrap {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .ki-site-header__nav--mobile {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
  }

  .ki-site-header__mobile-panel {
    position: fixed !important;
    top: max(8px, env(safe-area-inset-top, 0px));
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    left: auto !important;
    width: min(86vw, 360px);
    max-height: none !important;
    margin: 0 !important;
    padding: 64px 12px 12px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(144, 163, 188, 0.18) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100dvh - max(8px, env(safe-area-inset-top, 0px)) - max(8px, env(safe-area-inset-bottom, 0px)));
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top, 0px)) - max(8px, env(safe-area-inset-bottom, 0px))) !important;
    z-index: 121 !important;
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: transform .2s ease, opacity .18s ease;
  }

  .ki-site-header:not(.is-mobile-nav-open) .ki-site-header__mobile-panel {
    display: block !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(18px) scale(.985) !important;
  }

  .ki-site-header.is-mobile-nav-open .ki-site-header__mobile-panel {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(0) scale(1) !important;
  }

  .ki-site-header__mobile-panel[hidden] {
    display: none !important;
  }

  .ki-mobile-nav-list {
    display: grid !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 2px 0 0 !important;
  }

  .ki-mobile-nav-list li {
    margin: 0 !important;
  }

  .ki-mobile-nav-list a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 48px !important;
    padding: 0 14px !important;
    gap: 10px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(144, 163, 188, 0.14) !important;
    background: rgba(248, 251, 255, 0.9) !important;
    color: #111827 !important;
    font-weight: 800 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95) !important;
  }

  .ki-mobile-nav-link__emoji {
    width: 1.8em;
    min-width: 1.8em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
  }

  .ki-mobile-nav-link__title {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }

  .ki-mobile-nav-list a::after {
    content: "›";
    color: #64748b;
    font-size: 18px;
    line-height: 1;
    font-weight: 500;
    margin-left: 4px;
  }

  .ki-site-header.is-mobile-nav-open .ki-site-header__menu-toggle-icon {
    width: 18px;
    height: 18px;
    justify-content: center;
  }

  .ki-site-header.is-mobile-nav-open .ki-site-header__menu-toggle-icon i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    transform-origin: center;
    margin: 0;
  }

  .ki-site-header.is-mobile-nav-open .ki-site-header__menu-toggle-icon i:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg) !important;
  }

  .ki-site-header.is-mobile-nav-open .ki-site-header__menu-toggle-icon i:nth-child(2) {
    opacity: 0 !important;
  }

  .ki-site-header.is-mobile-nav-open .ki-site-header__menu-toggle-icon i:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
  }
}
