/* assets/css/style-styles-slider.css */
/* ——THEBARBER STYLES｜理容師自慢のスタイルから探す—— */

/* ベース書式（色・フォントなど） */
.styles-slider {
  background: #fff;
  padding: 30px 3px;
  font-family: 'Noto Serif JP', serif;
}

.styles-slider .slider-title {
  color: #005bac;
  font-size: 1.5em;
  border-bottom: 2px solid #e60012;
  display: inline-block;
  padding-bottom: 6px;
  margin: 0 auto 1em;
}

.styles-slider .sub-title {
  font-size: 1em;
  color: #333;
}

/* カードコンテナ */
.styles-slider .slider {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 20px;
}

.styles-slider .slider-track {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  padding-bottom: 10px;
  /* 全体の最小幅（カルーセル全体が潰れないように） */
  min-width: 600px;
}

/* カード本体 */
.styles-slider .style-card {
  flex: 0 0 280px;     /* 幅を 280px に固定 */
  width: 280px;        /* 念のため明示 */
  height: 400px;       /* 高さを 400px に固定 */
  position: relative; 
  background: #fff;
  border: 2px solid #005bac;
  border-left: 6px solid #e60012;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.styles-slider .style-card .area-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e60012;
  color: #fff;
  font-size: 0.75em;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 6px;
}


/* 画像部分 */
.styles-slider .style-card .card-img {
  flex: 0 0 280px;    /* 画像領域も幅280px・高さ280px */
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.styles-slider .style-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* テキスト部分 */
.styles-slider .style-card .card-body {
  flex: 1;                    /* 残り高さをすべて使う */
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

/* ボタンのホバー効果 */
.styles-slider .style-card .btn-shop:hover {
  opacity: .8;
}

/* モバイル対応（スマホでも同じサイズ） */
@media (max-width: 768px) {
  .styles-slider .style-card {
    flex: 0 0 280px;   /* 幅280pxをキープ */
    max-width: 280px;
  }
}