[data-category="specifications"] .is-sp {
  display: block;
}

[data-category="specifications"] .is-pc {
  display: none;
}
[data-category="specifications"] a {    text-decoration: none;
}

@media (min-width: 66.4375em) {
    [data-category="specifications"] .is-sp {
      display: none;
    }
    [data-category="specifications"] .is-pc {
      display: block;
    }
}

[data-category="specifications"] .specs-button::before {
    display: none;
}

[data-category="specifications"] .specs-button::after {
    font-family: "icon-Nissan-Global", sans-serif;
    content: "\e682";
    font-size: 1.25rem;
    flex-shrink: 0;
    color: #111;
    line-height: 1;
    order: 2;
    margin-left: 16px;
}

[data-category="specifications"] .filter-list-container {
    @media (min-width: 66.4375em) {
        display: flex;
        padding-top: 80px;
        gap: 24px;
    }
}

[data-category="specifications"] .count {
    font-size: 0.875rem;
    margin-bottom: -15px;
    @media (min-width: 66.4375em) {
        margin-bottom: 5px;
    }
}

[data-category="specifications"] .count span {
    font-size: 2rem;
}

[data-category="specifications"] .result-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
    @media (min-width: 66.4375em) {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-bottom: 40px;
        width: 100%;
    }
}

[data-category="specifications"] .sort-box {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
    gap: 5px;
    @media (min-width: 36.3125em) {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
}

[data-category="specifications"] .sort-box label:nth-child(1) {
    color: #666666;
    margin-left: 5px;
    @media (min-width: 36.3125em) {
        margin-left: 0;
    }
}

[data-category="specifications"] .selectbox {
    position: relative;
}

[data-category="specifications"] .selectbox select {
    font-size: 0.875rem;
    padding: 8px 32px 8px 12px;
    border-radius: 4px;
    appearance: none;           /* デフォルトの矢印を隠す(モダンブラウザ) */
    -webkit-appearance: none;    /* Safari用 */
    -moz-appearance: none;
}

[data-category="specifications"] .selectbox::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "icon-Nissan-Global", sans-serif;
    content: "\e610";
    margin-left: 1em;
    font-size: 1em;
    pointer-events: none;
}

[data-category="specifications"] .selectbox select::-ms-expand {
    display: none;
}

[data-category="specifications"] .result-header .count span {
    font-size: 2em;
    font-weight: bold;
}

/* 検索パネル全体 */
[data-category="specifications"] .filter-container {
    @media (min-width: 66.4375em) {
        width: 19%;
    }
}

[data-category="specifications"] .filter-area {
    width: 100%;
    background-color: #F6F6F6;
    padding: 24px 16px 12px;
    border-radius: 4px;
    margin-bottom: 40px;
    @media (min-width: 66.4375em) {
        margin-bottom: 0px;
    }
}

[data-category="specifications"] .filter-conditions {
    display: flex;
    gap: 20px;
    @media (min-width: 36.3125em) {
        flex-direction: column;
        gap: 0;
    }
}

/* 「駆動」「価格」などの各ブロック */
[data-category="specifications"] .filter-conditions .filter-title {
    width: 60px;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 0.875rem;
    @media (min-width: 36.3125em) {
        line-height: 1;
        margin-bottom: 16px;
    }
}

/* チェックボックスとラベルの余白 */
[data-category="specifications"] .filter-conditions label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    @media (min-width: 36.3125em) {
        display: flex;
        align-items: center;
    }
}

[data-category="specifications"] hr {
    border: 0;
    border-top: 2px solid #808080;
    margin: 20px 0;
}

/* 価格表示（380万円 600万円）の並び */
[data-category="specifications"] .price-range {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

/* リセットボタン */
[data-category="specifications"] .filter-reset {
    text-align: center;
    color: #666666;
    font-size: 0.6875rem;
    margin-top: 20px;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.2s;
}

[data-category="specifications"] .filter-reset:hover {
    opacity: 0.7;
}

[data-category="specifications"] .filter-conditions input[type="checkbox"] {
    appearance: none;          /* ブラウザ標準の見た目を消す */
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #333;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    margin-right: 5px;
}

/* チェックが入った時の背景色 */
[data-category="specifications"] .filter-conditions input[type="checkbox"]:checked {
    background-color: #000;    /* チェック時の背景色 */
    border-color: #000;
}



/* 「✓」自作 */
[data-category="specifications"] .filter-conditions input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

[data-category="specifications"] .price-range {
    width: 90%;
}

/* スライダー全体の土台 */
[data-category="specifications"] #price-slider.ui-slider {
    width: 100%;
    height: 8px;
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
}

[data-category="specifications"] .slider-area {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* 選択されている範囲のバー */
[data-category="specifications"] #price-slider .ui-slider-range {
    background-color: #000000;
    border-radius: 10px;
}

/* つまみ */
[data-category="specifications"] #price-slider .ui-slider-handle {
    width: 16px;
    height: 16px;
    background-color: #000000;
    border: none;
    border-radius: 50%;
    top: -5px; /* スライダーの真ん中に配置 */
    cursor: pointer;
    outline: none;
    transition: transform 0.1s;
}

/* つまみを触った時に少し大きくする */
[data-category="specifications"] #price-slider .ui-slider-handle:active {
    transform: scale(1.2);
}

/* 数値を左右に配置する列 */
[data-category="specifications"] .label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666666;
}

[data-category="specifications"] .label-row span {
    font-size: 0.625rem;
}

[data-category="specifications"] .list-container {
    @media (min-width: 66.4375em) {
        width: 81%;
        margin-top: -11px;
    }
}

[data-category="specifications"] .card-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 16px;
    margin-bottom: 40px;
      /* タブレット（36.3125em 以上）: 2カラム */
      @media (min-width: 36.3125em) and (max-width: 51.25em) {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        row-gap: 16px;
      }
      /* PC（60em 以上）: 3カラム */
      @media (min-width: 51.3125em) {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
      }
}

[data-category="specifications"] .car-list-item {
    background: #fff;
    padding: 20px 20px 32px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

[data-category="specifications"] .car-list-item h3 {
    font-size: 1.375rem;
    line-height: 1.5;
    z-index: 2;
    position: relative;
}

[data-category="specifications"] .car-list-item img {
    width: 100%;
    margin-bottom: 20px;
     transform: scale(1.2);
}

[data-category="specifications"] .price-info {
    z-index: 2;
    position: relative;
}

[data-category="specifications"] .label {
    font-size: 0.75rem;
    color: #666666;
    line-height: 1;
}

[data-category="specifications"] .price {
    font-size: clamp(2rem, 1.69rem + 0.78vw, 2.5rem);
    line-height: 2;
}

[data-category="specifications"] .price span {
    font-size: 0.75rem;
    margin-left: -10px;
}

[data-category="specifications"] .spec-info {}

[data-category="specifications"] .card-buttons {
    display: flex;
    flex-direction: column;
}

[data-category="specifications"] .btn-detail {
    width: fit-content;
    font-size: 0.875rem;
    background: #fff;
    border: 1px solid #333;
    border-radius: 30px;
    padding: 4px 16px;
    cursor: pointer;
    margin-bottom: 20px;
    @media (min-width: 36.3125em) {
        margin-bottom: 24px;
    }
}

[data-category="specifications"] .btn-detail:hover {
    filter: brightness(0.95);
}

[data-category="specifications"] .btn-estimate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    border: none;
    text-align: center;
    padding: 10px 25px 10px 25px;
    border-radius: 4px;
    gap: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

[data-category="specifications"] .btn-estimate:hover {
    background-color: #3d3d3d;
}

[data-category="specifications"] .btn-estimate::after {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-image: url(../../ASSETS/IMAGES/icon-link-arrow-white-20x20.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: brightness(0) invert(1);
}

[data-category="specifications"] .annotation-area {
    color: #666666;
    font-size: 0.75rem;
    margin-bottom: 80px;
}

[data-category="specifications"] .banner-area {
    gap: 10px;
    display: flex;
    flex-direction: column;
    @media (min-width: 36.3125em) {
        flex-direction: column;
        gap: 24px;
    }
    @media (min-width: 60em) {
        flex-direction: row;
      }
}

[data-category="specifications"] .banner-area a {
    gap: 16px;
    border: 2px solid #808080;
    border-radius: 4px;
    @media (min-width: 36.3125em) {
        width: 350.67px;
    }
    @media (min-width: 60em) {
        width: 350.67px;
    }
}

[data-category="specifications"] .banner-area a:hover {
    background-color: #F4F4F4;
    filter: brightness(0.95);
}

[data-category="specifications"] .banner-area a img {
    width: 100%;
}

[data-category="specifications"] .banner-area p {
    font-size: 0.875rem;
    padding: 16px;
    position: relative;
}

[data-category="specifications"] .banner-area p::after {
    content: "";
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    right: 16px;
    top: 50%;
    transform: translate(0, -50%);
    background-image: url(../../ASSETS/IMAGES/icon-link-arrow-16x16.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

[data-category="specifications"] .spec-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

[data-category="specifications"] .spec-info-left {
    font-size: 0.625rem;
    color: #666666;
}

[data-category="specifications"] .spec-info-right {
    font-size: 0.75rem;
    text-align: right;
}

/*-------------------------
  モーダル
-------------------------*/

[data-category="specifications"] .modal-spec-item h3 {
    font-size: 1.375rem;
    z-index: 2;
    position: relative;
}

[data-category="specifications"] .modal-spec-item .car-img {
    margin-top: -35px;
    margin-bottom: -25px;
    position: relative;
    z-index: 1;
}

[data-category="specifications"] .modal-spec-item .price-info {
    position: relative;
    z-index: 2;
    text-align: center;
}

[data-category="specifications"] .spec-item-title {
    width: 100%;
    font-size: 1.25rem;
    color: #666666;
    position: relative;
    margin-top: 80px;
    margin-bottom: 48px;
    @media (min-width: 36.3125em) {
        font-size: 1.5rem;
    }
}

[data-category="specifications"] .spec-item-title::after {
    content: "";
    position: absolute;
    width: 100%;
    border: 0;
    border-top: 1px solid #666666;
    @media (min-width: 48em) {
    }
}

[data-category="specifications"] .performance-text {
    font-size: 1rem;
}

[data-category="specifications"] .performance-text span {
    font-size: 0.875rem;
}

[data-category="specifications"] .performance-link {
    background-color: transparent;
    display: flex;
    margin: 0 auto;
    width: fit-content;
    align-items: center;
    border-bottom: 1px solid #111;
    color: #111;
    text-decoration: none;
    transition: opacity 0.2s;
    text-align: left;
}

[data-category="specifications"] .performance-link:hover {
    opacity: 0.6;
}

[data-category="specifications"] .performance-link::after {
    font-family: "icon-Nissan-Global", sans-serif;
    content: "\e682";
    font-size: 1.25rem;
    flex-shrink: 0;
    color: #111;
    line-height: 1;
    margin-left: 16px;
}

[data-category="specifications"] .chip-warp {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    overflow: hidden;
    border: solid 1px #808080;
    transform: rotate(-45deg);
}

[data-category="specifications"] .chip-warp .col {
    display: flex;
    height: 100%;
}

[data-category="specifications"] .chip-warp .col1 {
    display: flex;
    height: 50%;
}

[data-category="specifications"] .modal-spec-item .comparison-btn {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    text-align: center;
    padding: 10px 20px 10px 30px;
    margin: 0 auto;
    border-radius: 4px;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 50px;
}

[data-category="specifications"] .modal-spec-item .comparison-btn:hover{
    filter: brightness(0.95);
}

[data-category="specifications"] .modal-spec-item .comparison-btn::after {
    content: "";
    display: block;
    width: 14px;
    height: 16px;
    background-image: url(../images/common/icon-link-arrow.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
