.fixed_link {
    display: none;
}

header .carsales_site {
    font-size: 2.4rem;
    margin-top: 8px;
    font-weight: 700;
}

#carsales {
    background-color: #F5F5F5;
}

#carsales .sec_mv {
    background-color: #E50012;
    background-image: none;
	height:130px;
}
#carsales .sec_mv >.inner{
	height:80px;
}

.breadcrumbs .inner span,
.breadcrumbs .inner span a {
    color: #fff;
}

.sec_mv h1 {
    color: #fff;
}

.sec_mv h1 span::before {
    background: url(../images/common/bar_sub_title_whe.png) no-repeat center / contain;
}
#carsales .sec_about .inner {
    text-align: center;
	padding-top: 60px;
    padding-bottom: 30px;
}

#carsales .sec_about h2 {
    margin-bottom: 20px;
    line-height: 1.6;
}

#carsales .sec_about .lead span {
    display: inline-block;
}

#carsales .sec_about .attention {
    background-color: #ffffff;
    margin: 0 auto;
    width: min(900px, 100%);
    padding: 20px 40px;
}

.attention dl {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.attention dl dt {
    color: #ffffff;
	padding: 0 8px;
    border-radius: 12px;
    text-align: center;
    width: 80px;
    height: 24px;
}

.attention dl:first-child {
    margin-bottom: 5px;
}

.attention dl:first-child dt {
    background-color: #00C040;
}

.attention dl:nth-child(2) dt {
    background-color: #F4AB00;
}

ul.area_tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
	margin-bottom:10px;
}

ul.area_tabs li {
    flex: 1;
    width: 100%;
    background-color: #222222;
}

ul.area_tabs li a {
    display: block;
    text-align: center;
    padding: 20px 0;
    color: #ffffff;
}

.carsales_area .inner{
	padding-top: 60px;
}

.carsales_area h3 {
    border: #E50012 3px solid;
    background-color: #fff;
    color: #E50012;
    font-size: 40px;
    font-weight: 700;
    padding: 10px 0;
    text-align: center;
    margin-bottom: 20px;
}

.area_tab_contents.active {
    display: block;
}

ul.car_list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
/*
    justify-content: center;
*/
}


/* 4列レイアウト（gap を考慮して計算） */
ul.car_list li {
    flex: 0 0 calc((100% - 60px) / 4);
    border: 1px #9E9E9F solid;
    padding: 15px;
    background-color: #fff;
}

dl.specs {
    margin-top: 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 8px;
    row-gap: 8px;
}

dl.specs dt {
    font-weight: 700;
    text-align: left;
    padding: 2px 6px;
    background-color: #C9C9C9;
    font-size: 1.4rem;
    text-align: center;
}

dl.specs dt:nth-of-type(1) {
    background-color: #E50012;
    color: #fff;

    line-height: 1.2;
}

dl.specs dd {
    margin: 0;
    text-align: left;
}

/* dl.specs dd {
    margin: 0;
    text-align: left;
} */

dl.specs dd:first-of-type {
    color: var(--color-red);
}

p.pdf-link {
    text-align: right;
    color: #0066cc;
    margin: 0;
    margin-top: 10px;
    font-size: 14px;
}

.archive .main .pager {
    display: flex;
    justify-content: center;
    column-gap: 10px;
    margin: 50px 0 100px;
}

.archive .main .pager span,
.archive .main .pager a.page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--sub-color);
    border-radius: 2px;
    width: 30px;
    height: 30px;
    color: var(--sub-color);
}

.archive .main .pager a.page-numbers.prev,
.archive .main .pager a.page-numbers.next {
    background: var(--sub-color);
    color: #fff;
}

.archive .main .pager span.current {
    background: rgba(0, 0, 0, .1);
    background: var(--sub-color);
    color: #fff;
}



@media screen and (max-width: 1023px) {
    .sec_mv h1 {
        text-shadow: none;
    }
}

@media screen and (max-width: 1200px) {

    /* 3列（gap 20px の場合、総ギャップ 40px） */
    ul.car_list li {
        flex: 0 0 calc((100% - 40px) / 3);
    }
}

@media screen and (max-width: 768px) {
	header .carsales_site {
		font-size: 2rem;
	}
    ul.car_list li {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .attention dl {
        flex-direction: column;
        gap: 0 20px;
    }
    .attention dl:first-child {
        margin-bottom: 20px;
    }

    .carsales_area h3 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 539px) {
    #carsales .sec_mv::before {
        content: unset;
    }
    .carsales_area h3 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
	header .carsales_site {
		font-size: 1.6rem;
	}
    /* 1列 */
    ul.car_list li {
        flex: 0 0 100%;
    }
}

@media screen and (max-width: 440px) {
    ul.area_tabs li a {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        line-height: 1.4;
    }
}

ul.car_list li a .img_wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 10px;
}

ul.car_list li a .img_wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

ul.car_list li a .car_name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}








@media screen and (max-width: 1279px) {
    .hamburger .wrapper ul.second {
        margin-top: 30px;
    }
}


/*-------------------------*/
.thumb_wrap {
	position: relative;
}
.thumb_wrap img {
	aspect-ratio: 10 / 8;
	object-fit: cover;
}
.stores-available {
	position: absolute;
	top: 0;
	left: 0;
	background: #222222;
	color: #FFF;
	width: 150px;
	text-align: center;
	font-size: 14px;
}


ul.area_tabs li.active {
	background: #E50012;
	position:relative;
}
ul.area_tabs li.active:after {
	content: "";
	display: block;
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-top-color: #FFF;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
}

ul.car_list li{
	position:relative;
}
li.closed a:before, li.negotiation a:before {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	background: #222222ad;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1;
}
li.closed a:after{
	content:'制約済';
	background: #F4AB00;
}
li.negotiation a:after{
	content:'商談中';
	background: #00C040;
}
li.closed a:after, li.negotiation a:after {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	z-index: 2;
	width: 100px;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #FFF;
	border-radius: 30px;
}

.pager {
  /*margin: 20px;
  text-align:center;*/
  display: flex;
  justify-content: center;
  column-gap: 10px;
  margin: 50px 0 100px;
}
.pager span,
.pager a.page-numbers {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  /*margin: 0 10px;*/
  /*border: 1px solid #ccc;*/
  border: 1px solid var(--sub-color);
  border-radius: 2px;
  width: 30px;
  height: 30px;
  color: var(--sub-color);
}
.pager a.page-numbers.prev,
.pager a.page-numbers.next {
  /*border: 0;*/
  background: var(--sub-color);
  color: #fff;
}
.pager span.current {
  background: rgba(0,0,0,.1);
  background: var(--sub-color);
  color: #fff;
}
