@charset "UTF-8";
/* ------------------------------------------------------------------------------
 中古車（stockcar）ディーラーサイト準拠レイアウト
------------------------------------------------------------------------------ */

/* コンテンツ最大幅（変更時はこの値のみ編集） */
:root {
  --stockcar-content-width: 960px;
}

/* 固定ヘッダー直後から MV を開始（余白20px分は TLC 共通 .shadow で表現） */
body.stockcar-dealer.usedcar #content {
  width: 100%;
  margin: 0 auto;
  padding: 100px 0 0 0;
  overflow: hidden;
}

body.stockcar-dealer.usedcar #content > .category-img {
  margin-top: 0;
}

/* TLC 共通 .section の区切り影を MV 直下では出さない */
body.stockcar-dealer.usedcar #content > .section {
  background-image: none;
}

@media screen and (max-width: 980px) {
  body.stockcar-dealer.usedcar #content {
    padding: 70px 0 0 0;
  }

  body.stockcar-dealer.usedcar #content .section {
    padding: 30px 10px 0 10px;
  }
}

/* ディーラー .section の上端シャドウは1本のみ（#content 直下は非表示） */
body.stockcar-dealer.usedcar #content > .section {
  background: none;
  padding-top: 0;
}

body.stockcar-dealer.usedcar .category-img {
  margin: 0 auto 20px auto;
}

body.stockcar-dealer.usedcar .category-img img {
  display: block;
  width: 100%;
  max-width: var(--stockcar-content-width);
  height: auto;
  margin: 0 auto;
}

body.stockcar-dealer.usedcar #content .unit.p-stockcar-system {
  width: var(--stockcar-content-width);
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  text-align: left;
}

@media screen and (max-width: 980px) {
  body.stockcar-dealer.usedcar #content .unit.p-stockcar-system {
    width: 100%;
    max-width: 720px;
  }
}

/* コサトル由来の1200px指定をディーラー幅に合わせる */
body.stockcar-dealer.usedcar .p-stockcar-system .section-wrap,
body.stockcar-dealer.usedcar .p-stockcar-system .section-wrap .section {
  max-width: var(--stockcar-content-width) !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* コサトル用 .section の装飾シャドウを抑制 */
body.stockcar-dealer.usedcar .p-stockcar-system .section-wrap > .section {
  background: none;
  padding-top: 0;
}

body.stockcar-dealer.usedcar .p-stockcar-system .section.fit {
  max-width: var(--stockcar-content-width) !important;
}

body.stockcar-dealer.usedcar .p-stockcar-system .slider-list {
  max-width: var(--stockcar-content-width);
}

body.stockcar-dealer.usedcar .p-stockcar-system .title-wrap {
  max-width: var(--stockcar-content-width);
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------------------------
 960px表示時も usedcar.css の 880px 以下レイアウトを適用
------------------------------------------------------------------------------ */

body.stockcar-dealer.usedcar .p-stockcar-system #search-result {
  position: relative;
}

body.stockcar-dealer.usedcar .p-stockcar-system #search-result .sort-menu {
  font-size: 13px;
}

body.stockcar-dealer.usedcar .p-stockcar-system #search-result .usedcar-list .usedcar-item {
  border-top: none;
  border-bottom: 2px solid #ccc;
  /* 上の余白を margin から padding に変更し、ホバー背景を罫線直下から開始 */
  margin-top: 0;
  padding-top: 40px;
}

body.stockcar-dealer.usedcar .p-stockcar-system #search-result .usedcar-list .usedcar-item:first-child {
  border-top: 2px solid #ccc;
}

/* 店舗名行を含めブロック全体をホバー対象にする */
body.stockcar-dealer.usedcar .p-stockcar-system #search-result .usedcar-list .usedcar-item:hover {
  background-color: rgba(195, 9, 47, 0.05);
}

body.stockcar-dealer.usedcar .p-stockcar-system #search-result .usedcar-list .usedcar-item .usedcar-car-info a:hover,
body.stockcar-dealer.usedcar .p-stockcar-system #search-result .usedcar-list .usedcar-item .usedcar-car-info a:active {
  background-color: transparent;
}

body.stockcar-dealer.usedcar .p-stockcar-system #search-result .usedcar-list .usedcar-item .usedcar-car-info a {
  -ms-flex-pack: distribute;
  justify-content: space-around;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 40px 0 40px;
}

body.stockcar-dealer.usedcar .p-stockcar-system #search-result .usedcar-list .usedcar-item .usedcar-car-info .usedcar-main-info {
  max-width: var(--stockcar-content-width);
  width: 100%;
}

body.stockcar-dealer.usedcar .p-stockcar-system #search-result .usedcar-list .usedcar-item .usedcar-car-info .usedcar-sub-info {
  margin-top: 20px;
  max-width: var(--stockcar-content-width);
  width: 100%;
}

body.stockcar-dealer.usedcar .p-stockcar-system #search-result .usedcar-list .usedcar-item .usedcar-car-info .request-btn {
  /* 絶対配置をやめ通常フローにして、テキストとの重なりを防止 */
  position: static;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 400px;
  padding-bottom: 40px;
  width: 100%;
}

body.stockcar-dealer.usedcar .p-stockcar-system .search-panel .search-container {
  max-width: var(--stockcar-content-width);
}

/* 詳細ページ（880px 以下相当） */
body.stockcar-dealer.usedcar .p-stockcar-system .detail-main {
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

body.stockcar-dealer.usedcar .p-stockcar-system .detail-main .photo-part {
  margin-bottom: 40px;
  margin-right: 0;
  max-width: var(--stockcar-content-width);
  width: 100%;
}

body.stockcar-dealer.usedcar .p-stockcar-system .detail-main .photo-part .shop-comment {
  width: 100%;
}

body.stockcar-dealer.usedcar .p-stockcar-system .detail-main .info-part {
  margin-bottom: 100px;
  max-width: var(--stockcar-content-width);
  width: 100%;
}

body.stockcar-dealer.usedcar .p-stockcar-system .detail-data .equipment-spec .equipment-spec-list .item {
  padding: 12px 10px;
}

/* ------------------------------------------------------------------------------
 問い合わせフォーム（inquiry）
------------------------------------------------------------------------------ */

body.stockcar-dealer.stockcar-inquiry form#mailformpro dl dt {
  border-top: solid 1px #ccc;
}

body.stockcar-dealer.stockcar-inquiry form#mailformpro dl dd {
  border-top: none;
}

body.stockcar-dealer.stockcar-inquiry .p-stockcar-system .section-wrap > .section {
  background: none;
  padding-top: 0;
}

body.stockcar-dealer.stockcar-inquiry .inquiry-form-area {
  max-width: var(--stockcar-content-width);
  width: 100%;
  margin: 0 auto;
}

/* mailformpro.css 880px 以下相当を 960px 幅で常時適用 */
body.stockcar-dealer.stockcar-inquiry form#mailformpro dl dt {
  float: none;
  width: auto;
  padding: 5px 10px;
  text-align: left;
}

body.stockcar-dealer.stockcar-inquiry form#mailformpro dl dd {
  clear: both;
  padding: 5px 20px;
}

body.stockcar-dealer.stockcar-inquiry #mailformpro .readonly-list dd {
  padding: 10px 20px;
}

body.stockcar-dealer.stockcar-inquiry div.mfp_buttons {
  padding: 30px 0 10px;
}

body.stockcar-dealer.stockcar-inquiry .mfp_element_all {
  max-width: 100%;
}
