/* =============================================
   トップページCSS - カラーミーショップ
   管理画面 → デザイン → トップ → CSS欄に貼り付け
============================================= */

/* === ヒーロースライダー === */
.hero-section {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  background: #f0f0f0;
}

/* カラーミー公式スライドショー ($slideshow_html / bxSlider) 用 */
.hero-section .slider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
/* bxSliderが生成する要素も幅100%に統一 */
.hero-section .slider #slider,
.hero-section .slider .bx-wrapper,
.hero-section .slider .bx-viewport,
.hero-section .slider .bx-viewport > ul,
.hero-section .slider .bx-viewport > ul > li {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.hero-section .slider img {
  display: block !important;
  width: 100% !important;
  height: 600px !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center;
}
/* bxSliderがインラインで固定するpx幅をCSS !importantで上書き */
.hero-section .bx-wrapper {
  margin-bottom: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  width: 100% !important;        /* インラインpx幅を上書き */
  max-width: 100% !important;
}
.hero-section .bx-viewport {
  width: 100% !important;        /* インラインpx幅を上書き */
  max-width: 100% !important;
}
/* ページネーションドット */
.hero-section .bx-wrapper .bx-pager {
  bottom: 16px !important;
  padding-top: 0 !important;
  z-index: 10;
}
.hero-section .bx-wrapper .bx-pager-item a {
  background: rgba(255,255,255,.5) !important;
}
.hero-section .bx-wrapper .bx-pager-item a.active {
  background: #fff !important;
}
/* 前後ボタン */
.hero-section .bx-wrapper .bx-prev,
.hero-section .bx-wrapper .bx-next {
  top: 50% !important;
  transform: translateY(-50%);
  opacity: .8;
}
@media (max-width: 768px) {
  .hero-section .slider img { height: 55vw !important; min-height: 240px; }
}

/* 自前Swiper使用時（$slideshow_htmlを使わない場合） */
.hero-swiper {
  width: 100%;
  overflow: hidden;
}
.hero-swiper .swiper-wrapper {
  width: 100% !important;
  height: 100%;
}
.hero-swiper .swiper-slide {
  width: 100% !important;
  flex-shrink: 0;
  position: relative;
}
.hero-swiper .swiper-slide img {
  display: block;
  width: 100% !important;
  height: 600px !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center;
}
@media (max-width: 768px) {
  .hero-swiper .swiper-slide img { height: 55vw !important; min-height: 240px; }
}

/* スライダーナビゲーション */
.swiper-button-next,
.swiper-button-prev {
  color: rgba(255,255,255,.8) !important;
  background: rgba(0,0,0,.15);
  width: 42px !important;
  height: 42px !important;
  border-radius: 50%;
  transition: background .2s;
}
.swiper-button-next:hover,
.swiper-button-prev:hover { background: rgba(0,0,0,.38); }
.swiper-button-next::after,
.swiper-button-prev::after { font-size: 15px !important; font-weight: 600; }

/* ページネーション */
.swiper-pagination-bullet {
  width: 6px !important; height: 6px !important;
  background: rgba(255,255,255,.55) !important;
  opacity: 1 !important;
}
.swiper-pagination-bullet-active { background: #fff !important; }


/* === お知らせエリア === */
.info-section {
  background: #fafafa;
  padding: 13px 20px;
  border-bottom: 1px solid #e5e5e5;
}
.info-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.info-label {
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #aaa;
  padding-top: 3px;
}
.info-content {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: #444;
  letter-spacing: .01em;
}


/* =============================================
   バナーエリア（NEW ITEMSの上）
============================================= */
.banner-section {
  padding: 36px 20px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}
.banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;   /* 縦並び */
  align-items: center;      /* 水平方向：中央揃え */
  gap: 16px;
}
.banner-inner .banner-item:only-child { width: 100%; max-width: 800px; }
.banner-item { display: block; overflow: hidden; width: 100%; max-width: 800px; }
.banner-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .45s ease, opacity .3s ease;
}
.banner-item:hover img { transform: scale(1.02); opacity: .9; }
@media (max-width: 600px) {
  .banner-inner { gap: 10px; }
}


/* =============================================
   セクションヘッダー & タイトル（共通）
   ─── 英字のみ・細字・大きめ字間 ───
============================================= */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-title-en {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .52em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0;
  /* 左右ライン */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.section-title-en::before,
.section-title-en::after {
  content: '';
  display: block;
  width: 44px;
  height: 1px;
  background: #ccc;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .section-title-en { font-size: 10px; letter-spacing: .35em; gap: 16px; }
  .section-title-en::before,
  .section-title-en::after { width: 28px; }
}


/* =============================================
   NEW ITEMS セクション
============================================= */
.new-items-section {
  padding: 80px 20px 92px;
  background: #fff;
}
.new-items-section .section-inner { max-width: 1100px; margin: 0 auto; }

/* アコーディオン非表示 */
.accordion-grid {
  display: none;
  height: 0;
  overflow: hidden;
  opacity: 0;
}


/* =============================================
   Recommended Items セクション
============================================= */
.recommend-section {
  padding: 80px 20px 92px;
  background: #f8f8f8;
}
.recommend-section .section-inner { max-width: 1100px; margin: 0 auto; }


/* =============================================
   カテゴリーバナーセクション
============================================= */
.category-section {
  padding: 80px 20px 92px;
  background: #fff;
}
.category-section .section-inner { max-width: 1100px; margin: 0 auto; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .category-grid { grid-template-columns: 1fr; } }

.category-card a {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #eee;
  color: #fff;
}
.category-card a img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.category-card a:hover img { transform: scale(1.05); }
.category-card-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.25);
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
  transition: background .3s;
}
.category-card a:hover .category-card-label { background: rgba(0,0,0,.38); }


/* =============================================
   フリースペース
============================================= */
.free-section { padding: 60px 20px; background: #fff; }
.free-section .section-inner { max-width: 1100px; margin: 0 auto; }


/* =============================================
   VIEW MORE アコーディオンボタン
============================================= */
.view-more-wrap {
  text-align: center;
  margin-top: 52px;
}
.btn-accordion {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 50px;
  background: transparent;
  color: #1a1a1a;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  border: 1px solid #1a1a1a;
  cursor: pointer;
  transition: background .25s, color .25s, transform .2s;
}
.btn-accordion:hover {
  background: #1a1a1a;
  color: #fff;
  transform: translateY(-1px);
}
.btn-accordion[aria-expanded="false"] .btn-accordion-close { display: none; }
.btn-accordion[aria-expanded="true"]  .btn-accordion-open  { display: none; }
.btn-accordion[aria-expanded="true"]  .btn-accordion-close { display: inline-flex; align-items: center; gap: 10px; }
