/* ============================================
 * Showroom List
 *   拠店一覧コンポーネント（試乗車申込モーダル SP / PC で再利用）
 *   ブロック単位なのでページ prefix は付けない（純粋 BEM）。
 *   外側の配置（中央寄せ・フレックス内での挙動など）は呼び出し側の
 *   文脈クラスで上書きする（例: .newcar_democar-modal__showroom）。
 * ============================================ */

.showroom-list {
  position: relative;
  width: 338px;
  padding: 40px 24px 16px;
  background-image: url("../img/newcar/democar-detail-showroom-wrapper.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-sizing: border-box;
}

.showroom-list__title {
  position: absolute;
  top: 4px;
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--color-white);
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.7);
  line-height: 1;
}

.showroom-list__items {
  display: grid;
  grid-template-columns: repeat(2, 144px);
  column-gap: 8px;
  row-gap: 16px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.showroom-list__button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 144px;
  height: 26px;
  padding: 3px 12px 3px 41px;
  background-image: url("../img/newcar/democar-detail-showroom-button.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: 0;
  cursor: pointer;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.4px;
  color: #595757;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  transition: filter 0.2s ease;

  &:hover:not(.is-disabled) {
    filter: brightness(1.08);
  }

  &.is-disabled {
    opacity: 0.4;
    cursor: default;
  }
}

/* クリックしても何も起きない文脈（PC モーダル）のボタン。
   押せると誤解させないよう、カーソルもホバー装飾も出さない。 */
.showroom-list__button--static {
  cursor: default;

  &:hover:not(.is-disabled) {
    filter: none;
  }
}

.showroom-list__button--long {
  letter-spacing: -2.5px;
  padding-left: 8px;
  padding-right: 8px;
  justify-content: center;
}
