.column-detail-layout { --column-sticky-top: 160px; }
.column-detail-main, .column-sidebar { min-width: 0; }
.column-sidebar { font-size: .875rem; line-height: 1.8; overflow-wrap: anywhere; }
.column-sidebar-common { margin-top: 3rem; padding-bottom: .5rem; }
.column-sidebar-sticky { display: none; }
.column-sidebar .c-widget, .column-sidebar .widget {
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(26,58,92,.09);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(26,58,92,.05);
}
.column-sidebar .c-widget__title, .column-sidebar .widgettitle,
.column-sidebar .widget-title, .column-sidebar h2, .column-sidebar h3 {
  font-size: 1rem; padding: 0 0 .75rem; margin: 0 0 1rem;
  border-bottom: 2px solid #1a3a5c; color: #1a3a5c; font-weight: 800;
}
.column-sidebar a { color: #1a3a5c; text-decoration: none; transition: color .2s ease; }
.column-sidebar a:hover, .column-sidebar a:focus-visible { color: #e05a1e; text-decoration: none; }
.column-sidebar li { padding: .7rem 0; border-bottom: 1px solid #e5e8ed; }
.column-sidebar li:first-child { padding-top: 0; }
.column-sidebar li:last-child { padding-bottom: 0; border-bottom: 0; }
.column-sidebar li li { margin-left: 1rem; }
.column-sidebar img { max-width: 100%; height: auto; }
.column-sidebar input, .column-sidebar select, .column-sidebar button {
  max-width: 100%; min-width: 0; font: inherit; padding: .625rem .75rem; border: 1px solid #ccd2da; border-radius: 4px;
}
.column-sidebar input[type="search"] { width: 100%; background: #fff; }
.column-sidebar button, .column-sidebar input[type="submit"] { background: #1a3a5c; color: white; cursor: pointer; border-color: #1a3a5c; }
.column-sidebar button:hover, .column-sidebar input[type="submit"]:hover { background: #e05a1e; border-color: #e05a1e; }
.column-sidebar .wp-block-search__inside-wrapper { display: flex; gap: .5rem; }
.column-sidebar .wp-block-search__input { flex: 1 1 auto; }
.column-sidebar .wp-block-search__button { flex: 0 0 auto; min-width: 64px; white-space: nowrap; }
.column-sidebar .p-postList__link { display: flex; gap: .75rem; align-items: flex-start; }
.column-sidebar .p-postList__thumb { flex: 0 0 32%; }
.column-sidebar .p-postList__body { flex: 1; min-width: 0; }
.column-sidebar .p-postList.-type-card .p-postList__link { display: block; }
.column-sidebar .p-postList.-type-card .p-postList__thumb { margin-bottom: .65rem; }
.column-sidebar .c-postThumb__figure { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.column-sidebar .c-postThumb__img { width: 100%; height: 100%; object-fit: cover; }
.column-sidebar .p-postList__title { font-size: .875rem; border: 0; padding: 0; margin: 0; }
.column-sidebar .p-postList__meta { font-size: .75rem; color: #4a5568; }
.column-sidebar [data-column-toc] li { border: 0; padding: .3rem 0 .3rem var(--toc-indent, 0); }
.column-sidebar [data-column-toc] li:first-child { padding-top: 0; }
.column-sidebar [data-column-toc] li:last-child { padding-bottom: 0; }
.column-detail-main :is(h2,h3,h4,h5)[id] { scroll-margin-top: var(--column-sticky-top); }
.wp-column-content .column-main-toc {
  margin: 2.75rem 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #1a3a5c;
  border-radius: 0;
  background: #ffffff;
}
.wp-column-content .column-main-toc__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 0;
  padding: .75rem 1.25rem;
  color: #ffffff;
  background: #1a3a5c;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}
.wp-column-content .column-main-toc__title::before { content: '☷'; font-size: 1.2em; line-height: 1; }
.wp-column-content .column-main-toc ol { margin: 0; padding: 1rem 1.5rem; list-style: none; counter-reset: column-toc; }
.wp-column-content .column-main-toc li {
  position: relative;
  padding: .38rem 0 .38rem 1.5rem;
  border: 0;
  counter-increment: column-toc;
}
.wp-column-content .column-main-toc li::before {
  position: absolute;
  top: .38rem;
  left: 0;
  color: #566274;
  content: counter(column-toc);
  font-variant-numeric: tabular-nums;
}
.wp-column-content .column-main-toc li:first-child { border-top: 0; }
.wp-column-content .column-main-toc__child { padding-left: 2.25rem; font-size: .9375rem; }
.wp-column-content .column-main-toc__child::before { left: .75rem; color: #8993a0; font-size: .875em; }
.wp-column-content .column-main-toc a { color: #1a3a5c; text-decoration: none; }
.wp-column-content .column-main-toc a:hover, .wp-column-content .column-main-toc a:focus-visible { color: #e05a1e; text-decoration: underline; }
.wp-column-content .column-main-toc ol.is-collapsed li:nth-child(n + 6) { display: none; }
.wp-column-content .column-main-toc__toggle {
  display: block;
  position: relative;
  width: max-content;
  margin: .1rem auto 1rem;
  padding: .4rem 1rem;
  color: #4a5568;
  background: #ffffff;
  border: 1px solid #c6ccd4;
  border-radius: 999px;
  font: inherit;
  font-size: .875rem;
  line-height: 1.2;
  cursor: pointer;
}
.wp-column-content .column-main-toc__toggle::before,
.wp-column-content .column-main-toc__toggle::after {
  position: absolute;
  top: 50%;
  width: 28px;
  border-top: 2px dotted #c6ccd4;
  content: '';
}
.wp-column-content .column-main-toc__toggle::before { right: calc(100% + .7rem); }
.wp-column-content .column-main-toc__toggle::after { left: calc(100% + .7rem); }
.wp-column-content .column-main-toc__toggle:hover,
.wp-column-content .column-main-toc__toggle:focus-visible { color: #ffffff; background: #1a3a5c; border-color: #1a3a5c; }
@media (min-width: 1024px) {
  .column-detail-layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 308px; gap: 3rem; align-items: stretch; }
  .has-sidebar .article-detail-card { max-width: none; padding: clamp(1.5rem, 2.5vw, 3rem); }
  .column-sidebar-common { margin-top: 0; }
  .column-sidebar-sticky {
    display: block; position: sticky; top: var(--column-sticky-top);
    max-height: calc(100dvh - var(--column-sticky-top) - 24px);
    overflow-y: auto; scrollbar-width: thin;
  }
}
@media (max-width: 1023px) {
  .column-sidebar-common { margin-top: 2rem; padding-bottom: 0; }
}
@media (max-width: 575px) {
  .wp-column-content .column-main-toc { margin: 2rem 0; }
  .wp-column-content .column-main-toc ol { padding: .875rem 1rem; }
  .wp-column-content .column-main-toc li { font-size: .9375rem; }
  .wp-column-content .column-main-toc ol.is-collapsed li:nth-child(n + 5) { display: none; }
}

.wp-column-content .column-main-toc li{
  margin: 0;
  padding: .25rem 0 .25rem 1.5rem;
  font-size: 0.875rem;
}
.column-sidebar .c-widget__title, .column-sidebar .widgettitle, .column-sidebar .widget-title, .column-sidebar h2, .column-sidebar h3{
  font-size: 0.95rem;
  font-weight: 700;
}

.widget_search{
  background: none;
  border: 0;
  padding: 0;
}
.widget_search .c-widget__title, .widget_search .wp-block-search__label{
  display: none;
}
.column-sidebar [data-column-toc] li{
  padding: .15rem 0 .375rem var(--toc-indent, 0);
  font-size: 0.75rem;
  line-height: 1.5; 
}
