a {
    color: #000;
    text-decoration: none;
}
a.inv{
    opacity: 0.25;
}

.pc {
    display: block;
}

.sp {
    display: none;
}

@media screen and (max-width: 768px) {
    .pc {
        display: none;
    }

    .sp {
        display: block;
    }
}

/* NOTE: .list の padding-top は撤去。breadcrumb と絞り込み(.search)の間の余白を /cars と揃えて密着させる。 */
.search {
    background-color: #EEE;
    padding: 2rem 0;
}

.search-inner {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 1020px;
    gap: 1.5rem;
}

@media screen and (max-width: 1080px) {
    .search-inner {
        /* padding: 0 2rem; */
        padding: 10px 20px;
    }
}

.search-inner h2{
    font-size: 20px;
}

.search-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-fields>div {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
}

.sub-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sub-field h3{
    font-size: 14px;
}

.field-group {
    display: flex;
    /* flex-wrap: wrap; */
    column-gap: 1.5rem;
    row-gap: .5rem;
    font-size: 12px;
}

.field-group label {
    display: flex;
    gap: .75rem;
}

.field-group.two-line label {
    width: calc(50% - 0.75rem);
}

.field-group label span {
    width: 4em;
    align-content: center;
}

.field-group label select {
    width: 7.5em;
}

.checkbox-group {
    display: grid;
    font-size: 12px;
    grid-template-columns: repeat(2, 1.25fr) repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 1rem;
    grid-row-gap: .5rem;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    gap: 0.25rem;
    font-size: 10px;
}

.free_word {
    font-size: 12px;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.free_word input {
    width: 20rem;
}

.buttons {
    display: flex;
    gap: 1rem;
}

.button {
    height: 40px;
    width: 162px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    color: #fff;
    box-shadow: #0003 0 2px 2px;
    font-size: 14px;
    cursor: pointer;
}

.clear_button {
    background-color: #333;
}

.search_button {
    background-color: #131B3C;
}

/* 0件のとき検索ボタンを無効化（/cars の検索ボタンと同仕様）。 */
.search_button.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/*----------------------------*/
/* ショップ一覧 */
/*----------------------------*/
.shop-list {
    padding: 48px 0 6rem;
}

.shop-list-inner {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 1020px;
    gap: 2.25rem;
}

@media screen and (max-width: 1080px) {
    .shop-list-inner {
        padding: 0 2rem;
    }
}

/* ショップ一覧のヘッダー */
.shop-list-header,
.shop-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.shop-count {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    font-weight: bold;
    line-height: 1;
}

.shop-count .count-all {
    display: flex;
    gap: 0.25rem;
    align-items: baseline;
}

.shop-count .count-all span {
    font-size: 30px;
}

.sp-search {
    display: none;
}

.sp-search button {
    font-size: 14px;
    padding: 0 24px;
    height: 40px;
    background-color: #eee;
    border: 0;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    color: #000;
}

.sp-search button::after {
    content: "+";
    font-size: 24px;
    color: #131B3C;
}

.shop-list-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sort {
    display: flex;
    gap: 0.5rem;
    font-size: 12px;
    padding-right: 1rem;
    border-right: 1px solid #ccc;
}

.sort select {
    width: 10rem;
}

.sort span {
    font-weight: bold;
}

.pagination {
    display: flex;
    gap: 0.75rem;
    font-size: 14px;
    align-items: center;
    line-height: 1;
}

.pagination div {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination div a.active {
    padding: 6px;
    border-radius: 4px;
    background-color: #131B3C;
    color: #fff;
}

.pagination .ellipsis {
    color: #999;
    padding: 0 2px;
}

.shop-list-body-pc {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.shop-list-body-pc>div {
    border-bottom: 1px solid #ccc;
    padding-bottom: 1.5rem;
}

.shop-list-body-sp {
    display: none;
}

.flex-box {
    display: flex;
    gap: 1.5rem;
}

.shop-image {
    width: 276px;
    flex-shrink: 0;
}

.shop-image img {
    /* width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: top; */
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    display: block;
    box-sizing: border-box;
    border: .5px solid #f6f6f6;
}

.shop-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shop-name {
    display: flex;
    padding: 12px;
    background-color: #F6F6F6;
    gap: .5rem;
    font-size: 12px;
    align-items: baseline;
    line-height: 1;
}

.shop-name span {
    font-size: 20px;
}

.shop-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.5rem;
}

.shop-info-inner {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.layer1 {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    font-size: 12px;
}

.shop-info-inner .layer1:not(:last-child) {
    padding-right: 1rem;
    border-right: 1px solid #ccc;
}

.layer2 {
    display: flex;
    gap: 1rem;
    line-height: 1;
    flex-shrink: 0;
    align-items: baseline;
}

.layer2>div {
    display: flex;
    gap: .25rem;
    align-items: baseline;
    /* flex-shrink: 0; */
}

.layer2>div>span {
    font-size: 10px;
}

.layer2.fs32>div>span {
    font-size: 28px;
}

.layer2.bold>div>span {
    font-weight: bold;
}

.layer2.orange>div>span {
    color: #EA5413;
}

.stars {
    display: flex;
    gap: 0;
}

.stars span {
    font-size: 16px;
    color: #ccc;
}

.stars span.eva {
    color: #EA5413;
}

.shop-service {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 12px;
}
@media screen and (max-width: 768px) {
    .shop-service {
        gap: 8px;
        align-items: flex-start;
        font-size: 12px;
        flex-direction: column;
    }
}

p.catch {
    font-size: 14px;
}

.services {
    display: flex;
    gap: .5rem;
}

.services span {
    background-color: #f6f6f6;
    color: #ccc;
    padding: 0 8px;
    border-radius: 4px;
    line-height: 1;
    width: 4rem;
    text-align: center;
    height: 25px;
    align-content: center;
}

.services span.active {
    background-color: #131B3C;
    color: #fff;
}

.shop-service .label {
    /* flex-shrink: 0; */
}

.search-fields>div.close {
    display: none;
}

.search-fields>div.sp-search-label {
    display: none;
}

@media screen and (max-width: 768px) {
    .search-fields {
        display: none;
        position: fixed;
        background-color: #fff;
        top: 0;
        left: 0;
        z-index: 99999;
        padding: 1.25rem 1.25rem calc(1.25rem + 80px) 1.25rem;
        width: 100%;
        overflow-y: scroll;
        overflow-x: hidden;
        height: 100%;
    }

    .search-fields-inner1 {
        flex-direction: column;
    }

    .field-group.two-line {
        flex-direction: column;
    }

    .field-group.two-line label {
        width: unset;
    }

    .search {
        padding: 0;
        height: 48px;
        align-content: center;
    }

    .shop-list {
        padding: 1.25rem 0 6rem;
    }

    .search-inner {
        /* padding: 0 1.25rem; */
        padding: 10px 20px;
    }

    .search-inner h2 {
        font-size: 16px;
    }

    .shop-list-inner {
        padding: 0 1.25rem;
        gap: 1.25rem;
    }

    .sp-search {
        display: block;
    }

    .shop-list-controls {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        row-gap: 0.75rem;
    }

    .shop-list-body-pc {
        display: none;

    }

    .shop-list-header {
        flex-direction: column;
        row-gap: 1rem;
    }

    /* フッターも SP では縦積み（件数表示の右にページネーションを並べると横溢れするため）。 */
    .shop-list-footer {
        flex-direction: column;
        row-gap: 1rem;
        align-items: stretch;
    }

    .count {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .sort {
        padding-right: unset;
        border-right: unset;
    }

    .sort select {
        flex: 1;
    }

    .shop-image {
        width: 120px;
    }

    .shop-name {
        flex-direction: column;
    }

    .shop-name span {
        font-size: 16px;
    }

    .shop-list-box {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid #ccc;
    }

    .flex-box {
        gap: 0.75rem;
    }

    .services {
        font-size: 10px;
        flex-wrap: wrap;
        gap: 4px;
    }

    .services span {
        width: calc(25% - 3px);
    }

    .layer1 {
        gap: 0.25rem;
    }

    .flex-box .layer1 {
        margin-top: .25rem;
    }

    .flex-box .layer2 div {
        gap: 0.5rem;
    }

    .flex-box .layer2 div span {
        font-size: 12px;
        line-height: 1rem;
    }

    .flex-box .layer2 div span:nth-child(1) {
        width: 4em;
    }

    .flex-box .layer2 div span:nth-child(2) {
        flex: 1;
    }

    .shop-list-body-sp {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .layer2.bold:not(.orange) {
        gap: 0.5rem;
    }

    .layer2.bold:not(.orange) div:not(:last-child) {
        padding-right: 0.5rem;
        border-right: 1px solid #ccc;
    }

    .sub-field {
        width: 100%;
        gap: 1rem;
    }

    .field-group {
        gap: 1rem;
    }

    .field-group label {
        width: 100%;
    }

    .field-group label span {
        font-size: 14px;
    }

    .field-group label select {
        flex: 1;
        height: 44px;
        padding: 0 1rem;
    }

    .checkbox-group {
        display: flex;
        flex-direction: column;
        grid-row-gap: 1rem;
    }

    .checkbox-group label {
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }

    .checkbox-group input {
        width: 20px;
    }

    .buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        padding: 1rem;
        width: 100%;
        position: fixed;
        background-color: #eee;
    }

    .button {
        width: 100%;
    }

    .free_word {
        width: 100%;
    }

    .free_word span {
        width: 6em;
        font-size: 14px;
    }

    .free_word input {
        flex: 1;
        height: 44px;
        padding: 0 1rem;
    }

    .search-fields.active {
        display: flex;
    }

    .search-fields>div.close {
        display: flex;
        line-height: 1;
        background-color: #eee;
        width: 34px;
        min-height: 34px;
        align-items: center;
        justify-content: center;
        font-size: 2.5rem;
    }

    .search-fields>div.sp-search-label {
        display: block;
        padding-bottom: 0.125rem;
        border-bottom: 1px solid #000;
    }
}


div.close {
    cursor: pointer;
}


/* CTN車販売について */
.about-section {
    background-color: #131B3C;
    position: relative;
}

.about__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.about__image {
    border-radius: 50%;
    background-color: #fff;
    height: 260px;
    width: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__image img {
    width: 180px;
    height: 168px;
}

.about__text {
    width: 60%;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about__text h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 160%;
}

.about__text p {
    font-size: 14px;
    font-weight: 400;
    line-height: 160%;
}

.pagetop {
    position: absolute;
    top: 0;
    transform: translateY(-100%);
    width: 100%;
    left: unset !important;
}

@media screen and (max-width: 768px) {
    .pagetop {
        padding: 0 1.25rem;
    }
}

.pagetop a {
    scroll-behavior: smooth;
    background-color: #131B3C;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    height: 2.5rem;
    border-radius: 6px 6px 0 0;
    color: #fff;
    gap: .5rem;
    font-size: 12px;
    width: fit-content;
    margin: 0 0 0 auto;
}

.inner_pt2 {
    margin: 0 auto;
    max-width: 1020px;
    position: relative;
}

.inner_pt2-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

@media screen and (max-width: 768px) {
    .about__content {
        flex-direction: column;
    }

    .about__text {
        width: unset;
    }

    .about__text h3 {
        font-size: 18px;
        font-weight: 700;
        line-height: 160%;
        text-align: center;
    }

    .about__text p {
        font-size: 12px;
    }
}
