/*
 * Figma「ECデザインシステム【Old】」に合わせる上書き（PC。2026-11-06 オーナー決定「Figma に合わせる」）。
 * 移行元の CSS（public/legacy/pc/css の all → add → custom）のあとに読む。移行元の CSS は書き換えない。
 * 1 つの規則が docs/migration/design-system-check.md の「移行元CSSとFigmaの食い違い」の 1 行に当たる（コメントは表の項目名）。
 */

/* 文字: 見出し H1（24px bold / 1.4） */
.heading-1__text {
  line-height: 1.4;
}

/* 文字: 詳細の価格の単位「円(税込)」（14px）。数字（.cart-box__price__value 24px）はそのまま */
.cart-box__price {
  font-size: 1.4rem;
}
.cart-box__price__unit {
  font-size: 1.4rem;
}

/* 文字: 商品名（16px bold・2 行で省略） */
.item-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Header: ヘッダーの下の余白（移行元は 92px。2026-11-16 オーナー決定で 30px。Figma の値ではないオーナー決定の上書き。PC の全ページ。要件 1.8・design-system-check.md の Header の表） */
.l-header {
  margin-bottom: 30px;
}

/* 文字: 機能ナビの文字（行高 1.5） ／ Header: 機能ナビの間隔（項目の間 20px・アイコンと文字の間 4px） */
.function-navi {
  gap: 20px;
}
.function-navi__item a {
  line-height: 1.5;
  gap: 4px;
}
.function-navi__item img {
  margin-block-end: 0;
}
/* Header: 機能ナビは「店舗検索・ガイド・お問合せ」の 3 つ。移行元が 3 つ目と 4 つ目（会員の導線）のあいだに引いていた破線を消し、検索窓と機能ナビを右端に寄せる（2026-11-16 オーナー決定） */
.function-navi__item:nth-child(3) {
  border-right: none;
  padding-right: 0;
}
.header-form-list {
  margin-inline-end: 0;
}
/* 移行元は 6 項目ぶんの列（repeat(6, auto)）を取っていて、空の列と間隔のぶん右が空く。項目の数だけ並べる */
.function-navi {
  grid-template-columns: none;
  grid-auto-flow: column;
}

/* Button: Outline（角丸なし） */
.btn_cart_other {
  border-radius: 0;
}

/* Button: Gray Line（枠 2px #ccc・18px bold・上下 15px・幅 300px／ホバーで枠と矢印 #a02525） */
.button-gray-line {
  min-width: 0;
  width: 300px;
  padding: 15px 28px;
  font-weight: bold;
  text-align: center;
}
.button-gray-line:hover {
  border-color: #a02525;
  text-decoration: none;
}
.button-gray-line:hover:after {
  border-color: #a02525;
}

/* Heading: Side の文字（16px bold・棒と文字の間 10px。棒は幅 5px） */
.side-heading {
  font-size: 1.6rem;
  padding-left: 15px;
}

/* Breadcrumbs: 文字サイズ（12px） */
.breadcrumb {
  font-size: 1.2rem;
}

/* Search Form: 幅（260px） */
.header-purpose__form {
  width: 260px;
}

/* Product Card: 画像の枠（1px #d2d2d2・ホバーで #888）。add.css の `border: 0` を戻す */
.item-image {
  border: 1px solid #d2d2d2;
}
.item a:hover .item-image {
  border: 1px solid #888;
}

/* Product Card: 画像・名前・価格の間隔（8px） */
.item-image {
  margin-bottom: 8px;
}
.item-name {
  margin-bottom: 8px;
}

/* Price: 詳細の価格の下線（下 6px） */
.cart-box__price {
  padding-bottom: 6px;
}

/* Refine: 開閉ボタンの文字（14px bold） */
.refine__trigger {
  font-size: 1.4rem;
  font-weight: bold;
}

/* Pager: 文字サイズ（14px） */
#page_navi_top .navi {
  font-size: 1.4rem;
}

/* Store Table: 都道府県の行・店名のセル・列のセル（上下 12px・左右 20px）・行の下線 1px #ccc・本文 14px */
.table__th--heading {
  padding: 12px 20px;
}
.table__th--2,
.table__td--2 {
  padding: 12px 20px;
}
.table__tr--white {
  border-bottom: 1px solid #ccc;
}
.table--fs16 {
  font-size: 1.4rem;
}

/* Top Parts: カテゴリタイル（枠 1px #ccc・6 列・12px bold #333・画像枠 40px 角 地 #f5f5f5）
 * 2026-11-13: 枠の 2px が幅に足されて 6 列目が折り返し、5 列になっていた。枠を幅に含め、Figma「TOP（現行EC）」の 190×60・間隔 14px にする */
.tab-category__item {
  box-sizing: border-box;
  width: calc((100% - 70px) / 6);
  height: 60px;
  margin-right: 14px;
  margin-bottom: 14px;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
}
/* 移行元の 5 列の「5 つ目ごとに右の余白 0」（.top-category:nth-child(5n)）を打ち消してから、6 つ目ごとに 0 にする */
.tab-category__item:nth-child(5n) {
  margin-right: 14px;
}
.tab-category__item:nth-child(6n) {
  margin-right: 0;
}
.tab-category__item a {
  font-size: 12px;
  font-weight: bold;
  color: #333;
}
.tab-category .item-cat__image {
  width: 40px;
  height: 40px;
  margin-right: 8px;
  background: #f5f5f5;
}
.tab-category .item-cat__image img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Top Parts: 新着情報の並び（日付と本文の横並び）・間隔（30px・タイトルの下 10px）・文字（12px #333・本文 regular） */
.news-list__item {
  font-size: 12px;
  color: #333;
}
.news-list__description {
  gap: 30px;
}
.news-list__title {
  margin-bottom: 10px;
}
.news-list__text {
  font-weight: normal;
}

/* Footer: 上の余白（40px）・列見出しの文字（12px bold）・リンクの文字（10px）・SNS アイコン（24px・文字との間 8px）・コピーライト（10px） */
.l-footer {
  padding-top: 40px;
}
.footer-navi__heading {
  font-size: 1.2rem;
}
.footer-navi__children {
  font-size: 1rem;
}
.l-footer .iconImg {
  width: 24px;
  margin-right: 8px;
}
.footer-copyright {
  font-size: 1rem;
}

/* Header: 人気キーワードの帯（Figma「TOP（現行EC）」の Popular Keywords。地 #eee・上下 8px・中央寄せ・間隔 10px。2026-11-13 追加）
 * キーワードは Refine Chip（幅 80px・枠 1px #ccc・地 白・12px）。移行元の add.css の .search-keyword_* との違いだけを上書きする */
.header-keywords {
  padding: 8px 0;
  background: #eee;
}
.search-keyword_title {
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.5;
  color: #333;
}
.search-keyword_list {
  gap: 10px;
}
.search-keyword_list li a {
  box-sizing: border-box;
  width: 80px;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 0;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/*
 * Top: Figma「TOP（現行EC）」で足したブロック（2026-11-13 オーナー決定）。
 * ブランドリスト・SNS・サービスリンクは移行元のテンプレートの class のまま組み、移行元の CSS との違いだけをここで上書きする
 */

/* Top: 最新特集（2 列・595×223・間隔 20px） */
.latest-list__main {
  gap: 20px;
}

/* Top: ブランドリスト（5 列・226×72・間隔 20px。ロゴは枠いっぱいに収め、枠線は付けない） */
.brand-list__item {
  margin-bottom: 20px;
}
.brand-list__item a {
  border: none;
}
.brand-list__item img {
  height: 72px;
  object-fit: contain;
}

/* Top: TWO ONE STYLE の SNS（見出しの下 20px・段の間 20px）。下部のバナーとサービスリンクも同じ欄に 20px の間隔で続ける（2026-11-16 オーナー決定） */
[data-top-block='sns'] .heading-1 {
  margin-bottom: 20px;
}
.sns-list-top {
  margin-block-end: 20px;
}
[data-top-block='sns'] .top-bottom-banners,
[data-top-block='sns'] .banner-area {
  margin-block-start: 20px;
}

/* Top: サービスリンク（白・枠 2px #ccc・高さ 72px・左 20px・アイコン 36px・14px bold #333。並べた数で等分する） */
.banner-area {
  flex-wrap: nowrap;
  gap: 20px;
}
.banner-area__item {
  flex: 1 1 0;
  width: auto;
  height: 72px;
  margin-right: 0;
  padding: 0 0 0 20px;
  display: flex;
  align-items: center;
  background-color: #fff;
  border: 2px solid #ccc;
}
.banner-area__item a {
  gap: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}
.banner-area__item img {
  width: 36px;
  height: 36px;
}

/* Top: 下部のバナー（ナデポ・採用。2 列・595×131・間隔 20px） */
.top-bottom-banners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.top-bottom-banners img {
  display: block;
}

/* Top: 新着商品・おすすめ商品の横に流せる列（Figma: カード 5 枚・溝 20px・右に 28px の送りボタン。ボタンは画像の高さの中ほど） */
.top-item-carousel {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.top-item-carousel__track {
  display: flex;
  flex: 1 1 auto;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.top-item-carousel__track::-webkit-scrollbar {
  display: none;
}
.top-item-carousel__track > .item {
  flex: 0 0 calc((100% - 80px) / 5);
  width: auto;
  margin: 0;
  scroll-snap-align: start;
}
.top-item-carousel__arrow {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-top: 93px;
  padding: 0;
  border: 0;
  background: url('/top/carousel-next.svg') no-repeat center / 28px 28px;
  cursor: pointer;
}
.top-item-carousel__arrow--prev {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(180deg);
  z-index: 1;
}

/* Top: Instagram（画像だけ。6 列・正方形・間隔 20px。2026-11-13 追加） */
.top-instagram {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.top-instagram img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.top-instagram a:hover {
  opacity: 0.8;
}
