/* Source-only rule differences; scoped to migrated posts. */
body.dri-migrated-post .c-single-member-info-simple {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 16px;
}
body.dri-migrated-post .c-single-contents .mobile-ui-section-lead,
body.dri-migrated-post .c-single-contents .mobile-ui-table-lead {
  color: #374151;
  line-height: 1.9;
}
body.dri-migrated-post .c-single-contents .mobile-ui-section-lead {
  margin-top: 14px;
  font-weight: 500;
}
body.dri-migrated-post .c-single-contents .mobile-ui-table-lead {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 4px solid #d8e3ec;
  background: #f7fafc;
  font-size: 15px;
}
@media screen and (max-width: 767px) {
  body.dri-migrated-post .c-single-contents p {
    line-height: 1.85;
  }
  body.dri-migrated-post .c-single-contents h2 {
    margin-top: 40px !important;
    padding: 10px 12px;
    font-size: 21px;
    letter-spacing: 0.02em;
  }
  body.dri-migrated-post .c-single-contents h3 {
    padding: 5px 12px;
    font-size: 18px;
    letter-spacing: 0.02em;
  }
  body.dri-migrated-post .c-single-contents h2 + p,
  body.dri-migrated-post .c-single-contents h3 + p,
  body.dri-migrated-post .c-single-contents .mobile-ui-section-lead {
    margin-top: 14px;
  }
  body.dri-migrated-post .c-single-contents .mobile-ui-table-lead {
    margin-top: 18px;
    padding: 11px 12px;
    font-size: 14px;
    line-height: 1.75;
  }
  body.dri-migrated-post .c-single-contents figure {
    margin-top: 18px;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    margin-right: -16px;
    margin-left: -16px;
    padding: 0 16px 26px;
    -ms-overflow-style: auto;
    scrollbar-width: thin;
    scrollbar-color: #9fb8c0 #edf3f6;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table::-webkit-scrollbar {
    display: block;
    height: 6px;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table::-webkit-scrollbar-track {
    background: #edf3f6;
    border-radius: 999px;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table::-webkit-scrollbar-thumb {
    background: #9fb8c0;
    border-radius: 999px;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table::after {
    content: "横にスクロールできます";
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    text-align: right;
  }
  body.dri-migrated-post .c-single-contents table {
    min-width: 560px;
  }
  body.dri-migrated-post .c-single-contents table + figcaption {
    padding: 0 16px;
    font-size: 12px;
    line-height: 1.6;
    text-align: left;
  }
  body.dri-migrated-post .c-single-contents th,
  body.dri-migrated-post .c-single-contents td {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.65;
    vertical-align: top;
  }
  body.dri-migrated-post .c-single-contents .wp-element-button,
  body.dri-migrated-post .c-single-contents .wp-block-button a,
  body.dri-migrated-post .c-single-contents a[style*="background:#059669"][href*="utage-system.com/line/open"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px;
    padding: 13px 18px !important;
    line-height: 1.45;
    text-align: center;
    white-space: normal !important;
  }
  body.dri-migrated-post .c-single-contents div[style*="grid-template-columns:54px"] {
    grid-template-columns: 1fr !important;
    row-gap: 12px !important;
  }
  body.dri-migrated-post .c-single-contents div[style*="grid-template-columns:54px"] > * {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  body.dri-migrated-post .c-single-contents div[style*="box-shadow:0 10px 26px"],
  body.dri-migrated-post .c-single-contents div[style*="box-shadow:0 6px 18px"] {
    padding: 20px 16px !important;
  }
}
body.dri-migrated-post .c-banner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media screen and (min-width: 1080px) {
  body.dri-migrated-post .l-main-sidebar-banner {
    position: sticky;
    top: 150px;
    align-self: start;
    max-height: calc(100vh - 174px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

body.dri-migrated-post .top-eeat {
  background-color: var(--color-bg-gray-light);
  padding: 12px 0 0;
}

body.dri-migrated-post .top-eeat-member-info {
  margin-top: 0;
  justify-content: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

/* Archive controls only; cards use the theme's existing blog-archive/c-post DOM. */
.dri-migrated-blog-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.dri-migrated-blog-search label,
.dri-migrated-blog-search input,
.dri-migrated-blog-search button { font-weight: 500; }
.dri-migrated-blog-search input {
  flex: 1 1 220px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
}
.dri-migrated-blog-search button {
  min-height: 42px;
  padding: 8px 20px;
  background: var(--color-bg-blue);
  color: var(--color-white);
}

@media screen and (max-width: 767px) {
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-compact-table {
    overflow: visible;
    margin-right: 0;
    margin-left: 0;
    padding: 0;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-compact-table::after {
    content: none;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-compact-table table {
    width: 100%;
    min-width: 0;
    table-layout: auto !important;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-sticky-table {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-sticky-table::after {
    position: sticky;
    left: 0;
    width: calc(100vw - 32px);
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-sticky-table table {
    width: max-content !important;
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto !important;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-sticky-table th,
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-sticky-table td {
    min-width: 210px;
    max-width: 260px;
    background-clip: padding-box;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-sticky-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #17325c;
    box-shadow: 0 1px 0 rgba(15, 61, 74, 0.16);
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-sticky-table th:first-child,
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-sticky-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 124px !important;
    min-width: 124px;
    max-width: 124px;
    background: #f8fcfd;
    color: #0f3d4a;
    font-weight: 700;
    box-shadow: 1px 0 0 #d8e5ea;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-sticky-table thead th:first-child {
    z-index: 4;
    background: #17325c;
    color: #fff;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-card-table {
    overflow: visible;
    margin-right: 0;
    margin-left: 0;
    padding: 0;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-card-table::after {
    content: none;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-card-table table,
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-card-table thead,
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-card-table tbody,
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-card-table tr,
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-card-table th,
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-card-table td {
    display: block;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-card-table table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-card-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-card-table tbody {
    display: grid;
    gap: 12px;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-card-table tr {
    padding: 12px 14px;
    border: 1px solid #d8e5ea;
    border-radius: 8px;
    background: #fff;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-card-table td {
    display: grid;
    grid-template-columns: minmax(88px, 34%) 1fr;
    gap: 10px;
    align-items: start;
    padding: 8px 0;
    border: none !important;
    background: transparent;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-card-table td + td {
    border-top: 1px solid #e4edf1 !important;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-card-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-card-table td:first-child {
    display: block;
    padding-top: 0;
    color: #0f3d4a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
  }
  body.dri-migrated-post .c-single-contents .wp-block-table.is-mobile-card-table td:first-child::before {
    content: none;
  }
  body.dri-migrated-post.dri-source-postid-4612 .c-single-contents .dubai-annual-sales-chart,
  body.dri-migrated-post.dri-source-postid-4612 .c-single-contents .dubai-psf-chart {
    max-width: 100%;
    overflow: hidden;
    padding: 12px !important;
  }
  body.dri-migrated-post.dri-source-postid-4612 .c-single-contents .dubai-annual-sales-chart figcaption,
  body.dri-migrated-post.dri-source-postid-4612 .c-single-contents .dubai-psf-chart figcaption {
    line-height: 1.55;
  }
  body.dri-migrated-post.dri-source-postid-4612 .c-single-contents .dubai-annual-sales-chart > div,
  body.dri-migrated-post.dri-source-postid-4612 .c-single-contents .dubai-psf-chart > div {
    padding-left: 30px !important;
  }
  body.dri-migrated-post.dri-source-postid-4612 .c-single-contents .dubai-annual-sales-chart > div > div:first-child,
  body.dri-migrated-post.dri-source-postid-4612 .c-single-contents .dubai-psf-chart > div > div:first-child {
    bottom: 24px !important;
    width: 26px !important;
    font-size: 10px !important;
  }
  body.dri-migrated-post.dri-source-postid-4612 .c-single-contents .dubai-annual-sales-chart > div > div:nth-child(2),
  body.dri-migrated-post.dri-source-postid-4612 .c-single-contents .dubai-psf-chart > div > div:nth-child(2) {
    left: 30px !important;
    bottom: 24px !important;
  }
  body.dri-migrated-post.dri-source-postid-4612 .c-single-contents .dubai-annual-sales-chart > div > div:nth-child(3),
  body.dri-migrated-post.dri-source-postid-4612 .c-single-contents .dubai-psf-chart > div > div:nth-child(3) {
    gap: 4px !important;
    height: 168px !important;
    padding: 0 3px !important;
  }
  body.dri-migrated-post.dri-source-postid-4612 .c-single-contents .dubai-annual-sales-chart > div > div:nth-child(3) > div,
  body.dri-migrated-post.dri-source-postid-4612 .c-single-contents .dubai-psf-chart > div > div:nth-child(3) > div {
    gap: 4px !important;
    min-width: 0;
  }
  body.dri-migrated-post.dri-source-postid-4612 .c-single-contents .dubai-annual-sales-chart > div > div:nth-child(3) > div > span,
  body.dri-migrated-post.dri-source-postid-4612 .c-single-contents .dubai-psf-chart > div > div:nth-child(3) > div > span {
    font-size: 10px !important;
    line-height: 1.2 !important;
    text-align: center;
  }
  body.dri-migrated-post.dri-source-postid-4612 .c-single-contents .dubai-annual-sales-chart > div > div:nth-child(3) {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }
  body.dri-migrated-post.dri-source-postid-4612 .c-single-contents .dubai-psf-chart > div > div:nth-child(3) {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

/* Keep native theme arrow buttons compact; retain accessible previous/next names. */
.dri-migrated-blog-pagination .dri-pagination-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
