a {
    color: #000;
    text-decoration: none;
}

.pc {
    display: block;
}

.sp {
    display: none;
}

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

    .sp {
        display: block;
    }
}


.shop {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 1020px;
    /* padding: calc(2rem + 44px) 0 6rem; */
    padding: 3rem 0 6rem;
    gap: 32px;
}

@media screen and (max-width: 1080px) {
    .shop {
        /* padding: calc(2rem + 44px) 2rem 6rem; */
        padding: 24px 20px 60px;
    }
}

.shop-search {
    display: flex;
    flex: 1;
    /* gap: 2rem; */
    gap: 20px;
}

.shop-search main {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* gap: 3rem; */
    gap: 32px;
}

.shop-search aside {
    width: 260px;
    flex-shrink: 0;
    
    margin-top: 48px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: "";
    background-color: #131B3C;
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 4px;
}

.inner_pt1 {
    display: flex;
    flex-direction: column;
    /* gap: 2rem; */
    gap: 20px;
}

aside {
    display: flex;
    flex-direction: column;
    /* gap: 1.5rem; */
    gap: 17px;
}

aside section {
    border: 1px solid #ccc;
    border-radius: 4px;
}

.aside_label {
    font-size: 14px;
    padding: 10px 16px;
    background-color: #eee;
    font-weight: 700;
}

.aside_contents {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    /* gap: 1rem; */
    gap: 20px;
}

/* 都道府県から中古車販売店を探す */
.prefecture_search-content {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background-color: #F6F6F6;
    position: relative;
    height: 600px;
    gap:0.75rem;
}

.group-main {
    display: flex;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.group-sub {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.region {
    border: 1px solid #000;
    width: 90px;
    border-radius: 4px;
    overflow: hidden;
}

.region div a,
.region div .is-disabled {
    display: block;
    font-size: 12px;
    height: 24px;
    padding: 0 4px;
    text-align: center;
    align-content: center;
}

/* 店舗が存在しない都道府県（遷移不可）。有効なリンクと同じフォント・レイアウトで、色のみグレー。 */
.region div .is-disabled {
    color: #bbb;
    pointer-events: none;
    cursor: default;
}

.region div:not(:last-child) {
    border-bottom: 1px solid #000;
}

.region div.label {
    background-color: #000;
}

.region div.label a {
    color: #fff;
}

.region div:not(.label) {
    background-color: #fff;
}

.group-main#group-east .group-sub {
    justify-content: end;
}

.prefecture-map {
    width: auto;
    position: absolute;
    left: 30%;
    transform: translateX(-30%);
    height: calc(100% - 4rem);
}

/* フリーワード検索 */
.free_word_search .inner_pt1 {
    flex-direction: unset;
    align-items: center;
}

.search-block {
    flex: 1;
}

.free_word-form {
    display: flex;
    align-items: center;
    height: 40px;
}

.free_word-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 28px 0 0 28px;
    font-size: 12px;
    background-color: #eee;
}

.free_word-button {
    padding: 0;
    width: 160px;
    border: none;
    border-radius: 0 28px 28px 0;
    background: #131B3C;
    color: #fff;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size:12px;
}
.free_word-button::before{
    content: "";
    background-image: url('../img/search-icon.png');
    background-size: contain;
    width: 12px;
    height: 12px;
    margin-right: 8px;
}

/* チェックポイント */
.check_points-content {
    display: flex;
    gap: 2rem;
}

.cp_image {
    width: 280px;
}

.cp_image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
}

.cp-title {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.cp-title::before {
    content: "";
    background-color: #131B3C;
    margin-right: 0.5rem;
    width: .75rem;
    height: .75rem;
    border-radius: 6px;
}

.cp_text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 14px;
}

.point .cp_image {
    order: 2;
}

.point .cp_text {
    order: 1;
}

/* メーカーから中古車販売店を探す */
.maker_label {
    position: relative;
    border-bottom: 2px solid #999;
    padding-bottom: 4px;

    font-size: 14px;
    font-weight: 700;
}

.maker_label::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 3rem;
    height: 2px;
    background-color: #131B3C;
}

.maker-list-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.maker-links {
    display: flex;
    flex-wrap: wrap;
    column-gap: .5rem;
    row-gap: 1rem;
}

.maker-links a,
.maker-links .is-disabled {
    width: calc(33.33% - (1rem / 3));
    text-align: center;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: .125rem;
}

/* PCは各9件（3列）、SPは各10件（5列）を表示する。 */
@media screen and (min-width: 769px) {
    .maker-links > :nth-child(n + 10) {
        display: none;
    }
}

/* 在庫店舗が無いメーカーは遷移不可（グレーアウト・クリック不可）。 */
.maker-links .is-disabled {
    opacity: .35;
    filter: grayscale(1);
    color: #bbb;
    pointer-events: none;
    cursor: default;
}

.maker-links img {
    margin: 0 auto;
    width: 100%;
}

.arrow-link {
    text-align: right;
    margin: 0 0 0 auto;
    /* display: flex;
    gap: .125rem;
    align-items: center;
    font-size: 14px; */
    font-size: 12px;
    color: rgb(0, 0, 0);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-decoration: none;
    gap: 4px;
}
.arrow-link img {
    width: 16px;
    height: 16px;
}

/* 郵便番号から中古車販売店を探す */
.post-code-form {
    display: flex;
    font-size: 14px;
    height: 2rem;
}

.post-code-input {
    flex: 1;
    width: 100%;
    border-right: 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    padding: 0 12px;
    font-size: 12px;
}

.post-code-button {
    width: 5rem;
    border-radius: 0 4px 4px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-left: unset;
    background-color: #EA5413;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

/* 条件から中古車販売店を探す */
.terms-link {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    line-height: 1;
}

/* 口コミ条件は口コミAPI開発中のため遷移不可（グレー表示）。 */
.terms-link .is-disabled {
    color: #bbb;
    pointer-events: none;
    cursor: default;
}

.shop-info-articles{
    display:flex;
    gap:20px;
}

.article-item{
    position:relative;
    display:flex;
    flex-direction:column;
    gap:12px;
    background:#f5f5f5;
    padding:12px;
    border-radius:4px;
    transition:.25s ease;
}

.article-item::after{
    content:"";
    position:absolute;
    inset:0;
    background:var(--sub-color);
    border-radius:4px;
    z-index:-1;
    opacity:0;
    transform:translate(-12px,-12px);
    transition:.25s;
}

.article-item:hover{
    transform:translate(5px,5px);
}

.article-item:hover::after{
    opacity:1;
}

.article-item .image img {
    width: 100%;
}

.article-item .text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 14px;
}

@media screen and (max-width: 768px) {
    .shop {
        /* padding:calc(2rem + 44px) 1.25rem 6rem; */
        padding: 24px 20px 60px;
    }
    .section-title {
        font-size: 1.125rem;
    }
    .prefecture_search-content {
        flex-direction: column;
        padding: 0;
        background: unset;
        height: unset;
    }
    .prefecture-map{
        display:none;
    }
    .group-main {
        flex-direction: column;
    }
    .group-main#group-west{
        order:2;
    }
    .group-main#group-west > div:nth-child(1){
        order:3;
    }
    .group-main#group-west > div:nth-child(2){
        order:2;
    }
    .group-main#group-west > div:nth-child(3){
        order:1;
    }
    .group-main#group-east{
        order:1;
    }
    .group-main#group-east > div:nth-child(1){
        order:2;
    }
    .group-main#group-east > div:nth-child(2){
        order:1;
    }
    .region {
        border: 1px solid #ccc;
    }   
    .region div.label {
        background-color: #f6f6f6;
    }
    .region div.label a {
        color: #000;
        text-align: unset;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .shop-search {
        flex-direction: column;
    }
    .section-title {
        width: 100%;
    }
    .free_word-form {
        display: flex;
        align-items: center;
        height: 40px;
        font-size: 14px;
    }
    .free_word_search .inner_pt1 {
        flex-direction: column;
    }
    .search-block{
        width: 100%;
    }
    .free_word-button{
        width: 104px;
    }
    .free_word-button::before {
        content: unset;
        width: 104px;
    }
    .check_points{
        display: none;
    }
    .shop-search aside {
        width: 100%;
    }

    .region {
        /* display: flex; */
        width:100%;
    }
    .region div:not(:last-child) {
        border-bottom: unset;
    }
    .region > div > div:not(:last-child) {
        border-bottom:1px solid #ccc;
    }
    .region > div.label {
        width: 100%;
        align-content: center;
    }
    .region > div:not(.label) {
        display: flex;
        flex-direction: column;
        /* flex-wrap: wrap; */
        flex:1;
    }
    /* .region > div {
        padding: 0.75rem;
    } */
    .region div a,
    .region div .is-disabled {
        font-size: 14px;
        text-align: unset;
        height: 2.5rem;
        padding: 0 .75rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .region div.label a:after {
        content: url('../img/region_label_arrow.png');
        display: block;
        height: 18px;
        width: 18px;
    }
    .region div.label a.active:after {
        transform: rotate(180deg);
    }
    .region div:not(.label) a:after {
        content: url('../img/region_arrow.png');
        display: block;
        height: 14px;
        width: 8px;
    }
    .shop-info-articles {
        overflow-x: scroll;
    }
    .article-item {
    width: 60%;
    padding: 0 0 1rem 0;
    flex-shrink: 0;
    }
    .inner_pt1 {
        gap: 1rem;
    }
    .region > div.region-list{display:none;}
    .region > div.region-list.active{display:flex;}

}

/* 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%;
}

.inner_pt2{
    margin: 0 auto;
    max-width: 1020px;
    position: relative;
}
.inner_pt2-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem;
}
.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;
}

@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;
    }
    .maker-links a,
    .maker-links .is-disabled {
        width: calc(20% - (2rem / 5));
        text-align: center;
        font-size: 10px;
        display: flex;
        flex-direction: column;
        gap: .125rem;
    }
    .maker-links > :nth-child(n + 11) {
        display: none;
    }
}
