.bsearch{max-width:760px;margin:32px auto;padding:0 16px;color:#444;font-size:15px;box-sizing:border-box}.bsearch *{box-sizing:border-box}.bsearch button,.bsearch input{font:inherit}.bsearch button{cursor:pointer}.bsearch-keyword{margin-bottom:18px}.bsearch-keyword label{display:block;margin-bottom:8px;font-weight:bold}.bsearch-keyword>div{display:flex;gap:8px}.bsearch-keyword input{min-width:0;flex:1;padding:12px;border:1px solid #ccc;border-radius:6px}.bsearch-keyword button,.bsearch-actions button{border:0;color:#fff;background:linear-gradient(#6b88cf,#3e60bb);padding:12px 20px;border-radius:30px;font-weight:bold}.bsearch-panel{border:1px solid #ccc;background:#fff;box-shadow:0 2px 5px #0002}.bsearch-panel>summary{padding:16px;text-align:center;font-weight:bold;cursor:pointer}.bsearch-tabs{display:flex;border-top:1px solid #ddd}.bsearch-tabs button{width:50%;padding:14px 5px;border:0;border-bottom:5px solid #ccc;background:#fff;color:#777;font-weight:bold}.bsearch-tabs button[aria-selected=true]{border-bottom-color:#6281c8;color:#be526b}.bsearch [hidden]{display:none!important}.bsearch-group{border-bottom:1px solid #ccc}.bsearch-group>summary{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;background:#f8f6fb;cursor:pointer;font-weight:bold;list-style:none}.bsearch-group>summary::-webkit-details-marker{display:none}.bsearch-group>summary:after{content:'＋';color:#6281c8}.bsearch-group[open]>summary:after{content:'−';color:#cd6878}.bsearch label{cursor:pointer}.bsearch input[type=checkbox]{margin:0 7px 0 0;accent-color:#c76377;width:16px;height:16px;vertical-align:middle}.bsearch-grid{display:grid;grid-template-columns:1fr 1fr;padding:8px 14px}.bsearch-grid label{display:flex;align-items:center;padding:13px 4px;border-bottom:1px dotted #ccc;line-height:1.4}.bsearch-grid label:nth-child(odd){border-right:1px dotted #ccc}.bsearch-grid label:nth-child(even){padding-left:12px}.bsearch-grid input{flex-shrink:0}.bsearch-brands{border:0;border-bottom:1px solid #ddd;margin:0;padding:16px;display:flex;flex-wrap:wrap;gap:12px}.bsearch-brands legend{padding-top:12px;font-weight:bold}.bsearch-actions{padding:18px;display:flex;flex-direction:column;align-items:center;gap:12px}.bsearch-actions button{width:100%;max-width:380px;font-size:17px}.bsearch-actions a{color:#4b65a2;text-decoration:underline}.bsearch-close{display:block;width:100%;padding:16px;border:0;background:#414141;color:#fff;font-weight:bold;font-size:17px}.bsearch-count,.bsearch-empty{padding:20px 0;text-align:center}.bsearch-pages{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;padding:24px}.bsearch-pages a{padding:10px 15px;border:1px solid #bbb;color:#555}.bsearch-pages a[aria-current=page]{background:#4a68b5;color:#fff;border-color:#4a68b5}.bsearch button:focus-visible,.bsearch a:focus-visible,.bsearch summary:focus-visible{outline:3px solid #739ddd;outline-offset:3px}@media(min-width:760px){.bsearch-panel{max-width:520px;margin:auto}}@media(max-width:360px){.bsearch-grid{padding:5px 8px}.bsearch-grid label{font-size:13px}.bsearch-keyword button{padding:10px 12px}}
/* Restore native checkboxes within this search form after the site's reset CSS. */
#series-search input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    appearance: auto !important;
    display: inline-block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    margin: 0 7px 0 0 !important;
    padding: 0 !important;
    border: initial !important;
    background: initial !important;
    border-radius: 0;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
    flex: 0 0 16px;
    accent-color: #c76377;
    cursor: pointer;
}
#series-search input[type="checkbox"]::before,
#series-search input[type="checkbox"]::after {
    content: none !important;
}
#series-search input[type="checkbox"]:focus-visible {
    outline: 2px solid #4b65a2 !important;
    outline-offset: 3px;
}
/* Keep the keyword row and all condition panels aligned with the result column. */
#main-container.series-search-layout > main { width: 100%; min-width: 0; }
#main-container.series-search-layout > main > div { width: 100%; min-width: 0; }
.series-search-layout .bsearch-count { margin: 0; padding: 0 0 12px; text-align: left; font-size: 13px; }
#series-search.bsearch {
    width: 100%;
    max-width: none;
    margin: 24px 0 32px;
    padding: 0;
}
#series-search .bsearch-panel { width: 100%; max-width: none; margin: 0; }
#series-search .bsearch-keyword { width: 100%; }
#series-search #search-q { padding-left: 16px; }
#series-search .bsearch-close { text-align: center; }
#series-search .bsearch-operator { margin: 0; padding: 0; }
#series-search .bsearch-operator-title {
    margin: 0;
    padding: 13px 16px;
    background: #edf1f8;
    color: #3f547b;
    border-top: 1px solid #d2dae7;
    border-bottom: 1px solid #d2dae7;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
}
#series-search .bsearch-operator .bsearch-group > summary { padding-left: 24px; }
#series-search .bsearch-operator .bsearch-grid { padding-left: 24px; }
#series-search,
#series-search * {
    font-family: 'Zen Kaku Gothic New', 'Yu Gothic', 'Meiryo', sans-serif !important;
}
#series-search .bsearch-actions button,
#series-search .bsearch-keyword button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center !important;
}
/* Match the supplied compact search-panel reference. */
#series-search .bsearch-panel { border: 1px solid #c8c8c8; box-shadow: none; color: #444; }
#series-search .bsearch-panel > summary { padding: 11px 14px; font-size: 16px; font-weight: 700; }
#series-search .bsearch-tabs button { padding: 10px 4px; font-size: 14px; color: #888; border-bottom-width: 5px; }
#series-search .bsearch-tabs button[aria-selected="true"] { color: #444; }
#series-search #district-tab[aria-selected="true"] { border-bottom-color: #65bdc9; }
#series-search #station-tab[aria-selected="true"] { border-bottom-color: #6889cf; }
#series-search .bsearch-operator-title {
    padding: 10px 16px;
    background: #f8f6fb;
    color: #444;
    border-top: 0;
    border-bottom: 2px solid #ccc;
    font-size: 15px;
    line-height: 1.4;
}
#series-search .bsearch-group { background: #e9e9e9; border-bottom: 2px solid #ccc; }
#series-search .bsearch-group > summary { padding: 10px 16px; background: #f8f6fb; font-size: 14px; line-height: 1.4; }
#series-search .bsearch-operator .bsearch-group > summary { padding-left: 24px; }
#series-search .bsearch-group > summary::after {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #6b86ca;
    color: #fff;
    content: '+';
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
}
#series-search .bsearch-group[open] > summary::after { content: '−'; background: #cf6b79; color: #fff; }
#series-search .bsearch-operator .bsearch-grid {
    margin: 12px 16px;
    padding: 0 10px;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 3px #0002;
}
#series-search .bsearch-grid label { padding-top: 11px; padding-bottom: 11px; font-size: 14px; }
#series-search .bsearch-grid label:last-child,
#series-search .bsearch-grid label:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
#series-search #district-panel .bsearch-group { background: #fff; }
#series-search #district-panel .bsearch-grid { padding: 0 14px; }
#series-search .bsearch-brands { padding: 12px 16px; font-size: 14px; }
#series-search .bsearch-numbers { gap: 14px; padding-top: 16px; padding-bottom: 16px; }
#series-search .bsearch-actions { padding: 16px; }
#series-search .bsearch-actions button {
    position: relative;
    gap: 7px;
    height: 52px;
    padding: 10px 38px;
    border-radius: 28px;
    background: linear-gradient(#6a86cd, #3e60bd);
    font-size: 17px;
    line-height: 1.4;
}
#series-search .bsearch-actions button::after {
    content: '';
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M2 2L6 6L2 10' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 5px 8px;
    font-size: 18px;
    line-height: 1;
}
#series-search .bsearch-search-icon { display: inline-block; position: relative; width: 13px; height: 13px; border: 2px solid currentColor; border-radius: 50%; flex: 0 0 13px; }
#series-search .bsearch-search-icon::after { content: ''; position: absolute; width: 6px; height: 2px; background: currentColor; right: -5px; bottom: -2px; transform: rotate(45deg); }
#series-search .bsearch-close { padding: 15px; background: #414141; font-size: 17px; }
#series-search .bsearch-brands {
    align-items: center;
    column-gap: 16px;
    row-gap: 10px;
}
#series-search .bsearch-brands label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    line-height: 1.5;
    white-space: nowrap;
}
#series-search .bsearch-brands input[type="checkbox"] {
    margin: 0 !important;
    flex: 0 0 16px;
}
#series-search .bsearch-numbers {
    display: grid;
    gap: 18px;
    padding: 20px 16px;
    border-bottom: 1px solid #ddd;
}
#series-search .bsearch-numbers > label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#series-search .bsearch-numbers input[type="number"],
#series-search .bsearch-numbers select {
    appearance: auto;
    -webkit-appearance: auto;
    font: inherit;
    color: #444;
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 5px;
    padding: 10px;
    height: 44px;
    min-width: 0;
}
#series-search .bsearch-numbers input[type="number"] { width: 110px; }
#series-search .bsearch-area-range > span { display: block; margin-bottom: 8px; }
#series-search .bsearch-area-range > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#series-search .bsearch-area-range label { display: flex; align-items: center; gap: 5px; }
#series-search .bsearch-sort select { flex: 1; width: 100%; max-width: 420px; }
#series-search .bsearch-help { margin: 0; font-size: 12px; line-height: 1.7; color: #666; }
.bsearch-errors { margin: 16px 0; padding: 12px 16px; background: #fff1f1; color: #a22; border: 1px solid #d9a0a0; }
@media (max-width: 759px) {
    #series-search.bsearch { width: auto; margin: 24px 20px 32px; }
    #series-search .bsearch-numbers { padding: 16px 12px; }
    #series-search .bsearch-area-range > div { gap: 7px; }
    #series-search .bsearch-area-range > div { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
    #series-search .bsearch-area-range label { display: grid; gap: 6px; }
    #series-search .bsearch-numbers .bsearch-area-range input[type="number"] { width: 100%; }
    #series-search .bsearch-sort { display: block; }
    #series-search .bsearch-sort select { display: block; margin-top: 8px; max-width: none; }
}
@media (max-width: 359px) {
    #series-search.bsearch { margin-left: 12px; margin-right: 12px; }
    #series-search .bsearch-numbers .bsearch-area-range input[type="number"] { padding: 8px 5px; }
    #series-search .bsearch-area-range label { font-size: 13px; }
}

/* List controls and additional station labels. Keep the original category tabs. */
.series-search-layout .bs-list-item > a.standard-button {
    /* Keep negative-z-index button backgrounds above the property card. */
    z-index: 0;
    isolation: isolate;
}
.series-search-layout .bsearch-list-toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap; font-family:'Zen Kaku Gothic New','Yu Gothic','Meiryo',sans-serif; }
.series-search-layout .bsearch-list-toolbar #bs-list-button { margin:0; padding:0 20px; width:360px; max-width:100%; box-sizing:border-box; }
.series-search-layout .bsearch-list-toolbar .bsearch-sort { display:flex; align-items:center; gap:8px; padding:0 0 5px; font:inherit; }
.series-search-layout .bsearch-list-toolbar select { appearance:auto; width:auto; max-width:230px; border:1px solid #ccc; background:#fff; color:#333; padding:6px 8px; font:inherit; }
.series-search-layout .bs-list-info > p:first-of-type { align-items:flex-start; gap:4px 10px; line-height:1.5; }
.series-search-layout .bsearch-property-access { min-width:0; overflow-wrap:anywhere; }
.series-search-layout .bsearch-bottom-reset { text-align:center; padding:24px 0; }
.series-search-layout .bsearch-bottom-reset a { display:inline-block; border:1px solid #ccc; border-radius:4px; padding:12px 24px; background:#fff; color:#333; font:inherit; }
@media (max-width:600px) {
 .series-search-layout .bsearch-list-toolbar { gap:8px; }
 .series-search-layout .bsearch-list-toolbar #bs-list-button { order:2; width:100%; padding:0 12px; }
 .series-search-layout .bsearch-list-toolbar .bsearch-sort { order:1; margin-left:auto; font-size:12px; }
 .series-search-layout .bsearch-list-toolbar select { max-width:200px; }
}

/* One transport icon per line; replace the original first-line pseudo icon. */
.series-search-layout .bs-list-info > p:first-of-type > .bsearch-property-access::before { content:none; }
.series-search-layout .bsearch-access-row { display:flex; align-items:flex-start; gap:4px; }
.series-search-layout .bsearch-transport-icon { display:block; width:13px; height:16px; flex:0 0 13px; object-fit:contain; margin-top:2px; }
.series-search-layout .bsearch-access-row > span { min-width:0; }

/* Compact numerical conditions: the first option restores an unspecified value. */
#series-search .bsearch-condition-row { display:grid; grid-template-columns:70px minmax(0,1fr); align-items:center; gap:12px; }
#series-search .bsearch-condition-row > label { cursor:default; }
#series-search .bsearch-condition-row > select { width:160px; max-width:100%; }
#series-search .bsearch-condition-area { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:8px; max-width:360px; }
#series-search .bsearch-condition-area select { width:100%; padding:8px; }
#series-search .bsearch-visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:400px) {
 #series-search .bsearch-condition-row { grid-template-columns:60px minmax(0,1fr); gap:8px; }
 #series-search .bsearch-condition-area { gap:4px; }
 #series-search .bsearch-condition-area select { padding:6px 3px; font-size:12px; }
}

/* Align route/district checkboxes with their heading text. */
#series-search .bsearch-group > summary > label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    line-height: 1.4;
}
#series-search .bsearch-group > summary > label > input[type="checkbox"] {
    margin: 0 !important;
    align-self: center;
}
