/* ===== BEORMA WP テーマ固有の追加分 =====
   beorma-custom.css / style.css はEC-CUBE本体からそのままコピーしたファイルなので
   極力手を加えず、WordPress側だけで必要な差分をここにまとめる */

/* EC-CUBEの検索ブロックはカテゴリ選択(taxonomy)を伴うが、WP側には対応するデータがないため
   常に非表示にし、キーワード入力+検索ボタンのみにする */
.ec-headerSearch__category {
  display: none;
}

/* カートはEC-CUBE本体側の実データ(合計金額・点数)と連動できないため、
   バッジなしのアイコンリンクとして本体サイトのカートページへ遷移させる */
.beorma-header-cart {
  display: inline-flex;
  align-items: center;
}

.beorma-header-cart .beorma-header-cart-link {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
}

/* WordPress管理バー(ログイン時にページ上部に表示される黒帯)の分だけ
   固定ヘッダーの位置をずらす */
@media (max-width: 767.98px) {
  body.admin-bar .beorma-header {
    top: 46px !important;
  }
}

/* ===== FEATURE / NEWS 一覧(archive-feature.php / home.php)のサムネイル =====
   EC-CUBE側の商品一覧カード(.beorma-product-image-frame)と全く同じ構造・角丸・object-fit・
   比率(1200×1690)で表示する。FEATURE/NEWS共通で使う */
.beorma-card-image-frame {
  position: relative;
  aspect-ratio: 1200 / 1690;
  border-radius: 12px;
  background: #f6f6f6;
  display: block;
  overflow: hidden;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.beorma-card-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== NEWS一覧(home.php) ===== */
/* PCでは3カラム(.col-md-4)のまま、記事同士の余白を広げる。
   Bootstrapの.rowは列の間隔をpaddingベースのマイナスマージンで実現しているため、
   ここにcolumn-gap/row-gapを直接足すと3列分の幅がコンテナ幅を超えてしまい、
   3枚目が折り返される(実際に発生した不具合)。Bootstrap自身が使う
   --bs-gutter-x / --bs-gutter-y を上書きすることで、崩れずに間隔だけ広げる */
.beorma-news-list {
  --bs-gutter-x: 4rem;
  --bs-gutter-y: 5rem;
}

.beorma-news-page-title {
  font-size: 1.4rem;
  font-weight: 400;
  color: #000;
}

.beorma-news-card-date {
  font-size: 0.75rem;
  color: #666;
  margin: 0 0 0.4rem;
}

.beorma-news-card-title {
  font-size: 0.9rem;
  font-weight: 400;
  color: #000;
  margin: 0;
}

.beorma-news-card-title a {
  color: #000;
  text-decoration: none;
}

.beorma-news-card-title a:hover {
  text-decoration: underline;
}

/* ===== FEATURE個別ページ(single-feature.php)のTOPエリア画像 ===== */
.beorma-feature-top-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* NEWS記事詳細ページ(single.php)のタイトル。Bootstrapのh1(太字・大きめ)のままだと
   サイトの見た目と合わないため、細め・小さめ・黒文字に上書きする */
.beorma-news-title {
  font-size: 1.4rem;
  font-weight: 400;
  color: #000;
  letter-spacing: 0.03em;
}

/* ===== NEWS/FEATURE記事本文(single.php / single-feature.php の the_content()) =====
   EC-CUBE本体側のテキスト系スタイル(下線見出し・黒文字・ゆったりした行間)に合わせる */
.beorma-wp-content {
  font-size: 0.85rem;
  line-height: 2;
  color: #000;
}

.beorma-wp-content h2 {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: #000;
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #333;
}

.beorma-wp-content h2:first-child {
  margin-top: 0;
}

.beorma-wp-content h3 {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #000;
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ccc;
}

.beorma-wp-content p {
  margin: 0 0 1.5rem;
}

.beorma-wp-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2.5rem 0;
  border-radius: 8px;
}

.beorma-wp-content a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.beorma-wp-content a:hover {
  color: #666;
}

/* 店舗情報リスト(TRUNK SHOW開催店舗など) */
.beorma-wp-content .beorma-news-store-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.beorma-wp-content .beorma-news-store-list li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem 0;
  border-top: 1px solid #e5e5e5;
}

.beorma-wp-content .beorma-news-store-list li:last-child {
  border-bottom: 1px solid #e5e5e5;
}

.beorma-wp-content .beorma-news-store-name {
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.02em;
}

.beorma-wp-content .beorma-news-store-detail {
  font-size: 0.8rem;
  color: #333;
}
