@charset "UTF-8";
/* ============================================================
   トップページ固有（SHOWROOM の動画サムネイル・動画モーダル・おすすめ在庫）
   ============================================================ */

/* SHOWROOM：ボタン横の動画サムネイル */
.showroom__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.showroom__body .showroom__actions .btn-round { margin: 0; }
.movie-thumb {
  position: relative;
  flex: none;
  width: 160px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  transition: transform .3s;
}
.movie-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.movie-thumb__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
}
.movie-thumb__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--green);
}
.movie-thumb:hover { transform: translateY(-2px); }

/* 動画モーダル */
.movie-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .8);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.movie-modal.is-open { opacity: 1; visibility: visible; }
.movie-modal__inner { position: relative; width: min(960px, 100%); }
.movie-modal__inner video { width: 100%; max-height: 80vh; display: block; border-radius: 8px; background: #000; }
.movie-modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 40px;
  line-height: 40px;
  cursor: pointer;
}
@media (max-width: 767px) {
  .showroom__actions { margin-top: 20px; gap: 16px; }
  .movie-thumb { width: 128px; }
}

/* ============ おすすめ在庫（RECOMMEND） ============ */
.recommend { position: relative; padding: 100px 0 90px; overflow: hidden; }
.recommend__head { position: relative; z-index: 1; text-align: center; }
.recommend__head .label { justify-content: center; }
.recommend__head .sec-title { margin-top: 12px; }
.recommend__lead { margin-top: 16px; font-size: 16px; line-height: 1.9; color: var(--ink-60); }

.recommend__slider { position: relative; z-index: 1; margin-top: 24px; }
.recommend__viewport { overflow: hidden; padding: 40px 0 48px; }
/* 中央のカードの中心を画面中央に合わせるため、left:50% を基準に JS で translateX する */
.recommend__track {
  position: relative;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  transition: transform .6s ease;
  will-change: transform;
}
.recommend__track.is-jump,
.recommend__track.is-jump .stock-card { transition: none; }

.stock-card { flex: none; width: 300px; opacity: .7; transition: transform .6s ease, opacity .6s ease; }
.stock-card.is-active { transform: scale(1.1); opacity: 1; }
.stock-card__link {
  display: block;
  padding: 14px 14px 18px;
  background: #fff;
  border: 3px solid transparent;
  border-radius: 16px;
  transition: border-color .4s ease, box-shadow .4s ease;
}
.stock-card.is-active .stock-card__link { border-color: var(--green); box-shadow: 0 12px 28px rgba(18, 68, 30, .12); }
.stock-card__photo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--card); }
.stock-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.stock-card__link:hover .stock-card__photo img { transform: scale(1.05); }
.stock-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--orange);
  color: #fff;
  font-family: var(--ff-en);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}
.stock-card__name {
  display: -webkit-box;
  margin-top: 14px;
  min-height: 2.9em;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stock-card__spec { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-55); }
.stock-card__price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--orange); }
.stock-card__price-label { font-size: 14px; font-weight: 700; }
.stock-card__price-num { margin-left: auto; font-family: var(--ff-en); font-size: 28px; line-height: 1; font-weight: 600; }
.stock-card__price-unit { font-size: 14px; font-weight: 700; }

.recommend__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  margin-top: -44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(18, 68, 30, .2);
  transition: background-color .25s ease;
}
.recommend__nav:hover { background: var(--green-deep); }
.recommend__nav--prev { left: calc(50% - 600px); }
.recommend__nav--next { right: calc(50% - 600px); }
/* #i-arrow は右上向きなので回転させて左右に向ける */
.recommend__nav--prev .ico { transform: rotate(-135deg); }
.recommend__nav--next .ico { transform: rotate(45deg); }

.recommend__dots { display: flex; justify-content: center; gap: 12px; }
.recommend__dot { width: 14px; height: 14px; padding: 0; border: 2px solid var(--green); border-radius: 50%; background: transparent; transition: background-color .25s; }
.recommend__dot.is-active { background: var(--green); }

.recommend__more { margin-top: 40px; display: flex; justify-content: center; }

@media (max-width: 760px) {
  .recommend { padding: 60px 0 56px; }
  .recommend__head { padding-inline: 16px; }
  .recommend__head .sec-title { margin-top: 4px; font-size: 22px; line-height: 33px; }
  .recommend__lead { margin-top: 12px; font-size: 14px; line-height: 1.8; }
  .recommend__slider { margin-top: 12px; }
  .recommend__viewport { padding: 20px 0 28px; }
  .recommend__track { gap: 16px; }
  .stock-card { width: 240px; }
  .stock-card.is-active { transform: scale(1.04); }
  .stock-card__name { font-size: 15px; }
  .stock-card__price-num { font-size: 24px; }
  .recommend__nav { width: 40px; height: 40px; margin-top: -36px; }
  .recommend__nav--prev { left: 8px; }
  .recommend__nav--next { right: 8px; }
  .recommend__dots { gap: 10px; }
  .recommend__dot { width: 12px; height: 12px; }
  .recommend__more { margin-top: 28px; }
}
