@charset "UTF-8";
/* ============================================================
 * PC 共通スタイル (ヘッダー・フッター・サイドバー・共通部品)
 * ソース: resources/scss/ (SCSS)。ビルド: npm run css:build
 * ============================================================ */
/* ボタン (PC/SP 共通) */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  transition: background 0.15s, opacity 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.92;
  text-decoration: none;
}

.btn-secondary {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-cart {
  background: var(--primary);
  color: #fff;
}

.btn-cart:hover {
  background: var(--primary-dark);
  opacity: 1;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* アラート・空状態 (PC/SP 共通) */
.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.alert-success {
  background: var(--primary-light);
  border: 1px solid var(--primary);
}

.alert-error {
  background: #fdecea;
  border: 1px solid var(--sale);
}

.alert-info {
  background: #e8f4fd;
  border: 1px solid #0082f0;
}

.alert ul {
  margin: 0;
  padding-left: 20px;
}

.empty {
  color: var(--muted);
  padding: 24px 0;
}

.empty-result {
  text-align: center;
  padding: 36px 16px;
  background: var(--bg-sub);
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.empty-result .empty {
  padding: 0 0 8px;
  font-size: 16px;
  color: var(--text);
}

.empty-result_icon {
  font-size: 40px;
  line-height: 1;
  margin: 0 0 10px;
  color: var(--muted);
}

.empty-result .btn {
  margin-top: 16px;
}

/* 商品グリッド・カード (現行: 枠なし・画像opacityホバー)。PC は 3 列、SP 側で 2 列に上書き */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
  margin: 16px 0 40px;
}

.product-card {
  background: transparent;
}

.product-card a {
  display: block;
  color: var(--text);
}

.product-card a:hover {
  text-decoration: none;
}

.product-card a:hover img {
  opacity: 0.75;
  transition: opacity 0.15s;
}

.product-thumb {
  position: relative;
}

.product-card img, .no-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--bg-gray);
  font-size: 12px;
}

.no-image.large {
  aspect-ratio: 4/3;
}

.soldout-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(85, 85, 85, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 9px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.product-name {
  font-size: 13px;
  margin: 10px 0 4px;
  color: var(--text);
  line-height: 1.5;
}

.product-brand {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.product-price {
  color: var(--price);
  font-weight: bold;
  font-size: 1.05rem;
  margin: 6px 0;
}

.product-price.large {
  font-size: 1.8rem;
}

.tax {
  font-size: 0.7rem;
  font-weight: normal;
  margin-left: 4px;
  color: var(--text-sub);
}

/* 希望小売価格 (取消線) + %OFF バッジ (現行踏襲) */
.list-price {
  font-size: 12px;
  color: var(--text-sub);
  margin: 4px 0 0;
}

.list-price s {
  color: var(--muted);
}

.off-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: var(--sale);
  color: #fff;
  font-size: 0.72em;
  font-weight: bold;
  border-radius: 2px;
  vertical-align: middle;
}

.price-from {
  font-size: 0.8em;
  font-weight: normal;
  color: var(--text-sub);
  margin-left: 1px;
}

.soldout {
  color: var(--sale);
  font-weight: bold;
}

/* 送料無料/送料別バッジ (試験書 PC No.53/29-2) */
.shipping-badge {
  font-size: 12px;
  margin: 2px 0;
}

.shipping-badge.-free {
  color: #c00;
  font-weight: bold;
}

.shipping-badge.-paid {
  color: var(--muted);
}

.shipping-badge_link {
  font-size: 11px;
  font-weight: normal;
  margin-left: 8px;
}

/* 現行風 (ランキングバッジ・円表記) */
.rank-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
}

.rank-badge img {
  width: 27px;
  height: auto;
}

/* 商品名: 現行 16px・2行ぶんの高さを確保して価格行を揃える */
.product-card .product-name {
  font-size: 15px;
  line-height: 1.5;
  margin: 10px 0 4px;
  min-height: 3em;
  overflow: hidden;
}

/* 価格: 現行 17px bold 赤 (税込) */
.product-card .product-price {
  font-size: 17px;
}

.product-card .product-price .tax {
  font-size: 0.72rem;
}

/* CYCLE i 商品カード: 画像 → ブランド・商品名 → 購入情報 */
.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.product-card {
  min-width: 0;
}

.product-thumb {
  background: var(--bg-sub);
  padding: 16px 8px;
}

.product-thumb > img {
  mix-blend-mode: multiply;
}

/* メーカー名の上下の余白は詰める (画像→メーカー名 10px、メーカー名→商品名 4px) */
.product-card .product-brand {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.product-card .product-name {
  font-weight: 600;
  overflow-wrap: anywhere;
  margin-top: 4px;
}

.product-card .product-price {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.product-card .shipping-badge {
  margin: 4px 0 0;
  font-size: 11px;
}

.shipping-badge.-free {
  color: var(--primary);
}

.product-availability {
  font-size: 11px;
  margin: 6px 0;
  color: var(--primary);
}

/* 価格・送料・在庫の間の余白を詰める。%OFF バッジも詰めて PC では価格と同じ行に収める
   (折り返すと横に並ぶカード全体の価格行が高くなり、送料との間が大きく空いていた) */
.product-card .product-price {
  margin: 2px 0 0;
}

.product-card .product-price .tax {
  margin-left: 2px;
}

.product-card .off-badge {
  margin-left: 4px;
  padding: 1px 5px;
}

.product-card .product-availability {
  margin: 3px 0 0;
}

.product-availability::before {
  content: "●";
  font-size: 9px;
  margin-right: 5px;
}

/* 在庫の有無で●の色を分ける (中村C-7): あり=緑 / なし=灰 */
.product-availability::before {
  color: #2f9e5b;
}

.product-availability.is-out {
  color: var(--muted);
}

.product-availability.is-out::before {
  color: #b9bdb9;
}

/* 並んだカードの各行 (画像・ブランド・商品名・希望小売価格・価格・送料・在庫) の高さを横で揃える。
   商品名の行数や希望小売価格の有無で価格行の位置がずれていた (中村C-5)。
   商品名は省略せず全文を出す。subgrid 非対応ブラウザは従来どおりの表示 */
@supports (grid-template-rows: subgrid) {
  div.product-grid {
    row-gap: 0;
  }
  .product-card {
    display: grid;
    grid-row: span 7;
    grid-template-rows: subgrid;
    padding-bottom: 32px;
  }
  .product-card > a {
    display: grid;
    grid-row: span 7;
    grid-template-rows: subgrid;
  }
}
.rank-badge {
  top: 8px;
  left: 12px;
  font: italic 24px Georgia, serif;
  color: var(--primary);
}

.product-card .soldout-badge {
  top: auto;
  bottom: 8px;
}

/* パンくず。「A > B > C」の横並び (試験書 PC No.105 再試験) */
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: ">";
  margin: 0 6px;
  color: var(--muted);
}

/* ページネーション (vendor/pagination/site.blade.php 用) */
.pagination-nav {
  margin: 24px 0;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 28px 0;
  list-style: none;
  padding: 0;
}

.pagination .page {
  display: inline-block;
  min-width: 38px;
  text-align: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--primary-dark);
  background: #fff;
  font-size: 13px;
}

.pagination a.page:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  text-decoration: none;
}

.pagination .is-current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: bold;
}

.pagination .is-disabled {
  color: var(--muted);
  background: var(--bg-gray);
}

.pagination .is-dots {
  border: 0;
  background: none;
  color: var(--muted);
}

/* 左サイドバー (PC: 2カラム左側 / SP: ドロワー内で流用) */
.l-side {
  width: 220px;
  flex-shrink: 0;
}

/* サイド: 検索 */
.side-search {
  display: flex;
  margin-bottom: 20px;
}

.side-search input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #555;
  border-right: 0;
  border-radius: 3px 0 0 3px;
  font-size: 13px;
}

.side-search button {
  width: 50px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  font-size: 12px;
}

.side-search button:hover {
  background: var(--primary-dark);
}

/* サイド: 共通ブロック */
.side-block {
  margin-bottom: 28px;
}

.side-block_ttl {
  font-size: 14px;
  color: #fff;
  background: var(--primary);
  padding: 9px 14px;
  margin: 0;
  border-radius: 3px 3px 0 0;
}

/* サイド: 注目キーワード */
.side-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.side-keywords a {
  display: block;
  padding: 6px 9px;
  font-size: 11px;
  background: var(--bg-gray);
  border-radius: 4px;
  color: var(--text-sub);
}

.side-keywords a:hover {
  background: var(--primary-light);
  text-decoration: none;
}

/* サイド: カテゴリ/ブランド */
.side-cate {
  border: 1px solid #cecfce;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.side-cate_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-cate_list > li {
  border-top: 1px solid #e4e5e4;
}

.side-cate_list > li:first-child {
  border-top: 0;
}

.side-cate_parent {
  display: block;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: bold;
  color: var(--text);
}

.side-cate_parent:hover {
  background: var(--primary-light);
  text-decoration: none;
}

.side-cate_children {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
  background: var(--bg-sub);
}

.side-cate_children a {
  display: block;
  padding: 6px 14px 6px 26px;
  font-size: 12px;
  color: var(--text-sub);
  position: relative;
}

.side-cate_children a::before {
  content: "›";
  position: absolute;
  left: 14px;
  color: var(--primary);
}

.side-cate_children a:hover {
  background: var(--primary-light);
  text-decoration: none;
}

/* サイド: ご利用案内リンク */
.side-links {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.side-links li {
  border-bottom: 1px dotted #cecfce;
}

.side-links a {
  display: block;
  padding: 8px 4px 8px 16px;
  font-size: 13px;
  position: relative;
}

.side-links a::before {
  content: "▶";
  position: absolute;
  left: 2px;
  color: var(--primary);
  font-size: 9px;
  top: 11px;
}

/* 営業日カレンダー */
.business-calendar {
  max-width: 360px;
}

.business-calendar table {
  margin: 8px 0;
}

.business-calendar th, .business-calendar td {
  text-align: center;
  padding: 6px;
  font-size: 12px;
}

.business-calendar th.sun, .business-calendar td.holiday {
  background: #fdecea;
  color: var(--sale);
}

.business-calendar th.sat {
  color: #0082f0;
}

.business-calendar td.today {
  outline: 2px solid var(--primary);
}

.business-calendar .legend {
  font-size: 11px;
  color: var(--muted);
}

.business-calendar .holiday-box {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #fdecea;
  border: 1px solid var(--sale);
  vertical-align: middle;
}

/* サイドのカレンダーは幅いっぱいに */
.l-side .business-calendar {
  max-width: none;
}

.l-side .business-calendar table {
  width: 100%;
}

.l-side .business-calendar th, .l-side .business-calendar td {
  padding: 4px 2px;
  font-size: 11px;
}

/* 静かな区切りで情報の優先順位をつける */
.side-block_ttl {
  background: var(--bg-sub);
  color: var(--text);
  padding: 14px;
}

.side-cate {
  border-color: var(--border);
}

.side-cate_parent {
  font-size: 12px;
}

/* CYCLE i: 共通フッター。PC/SPの列数は各エントリで指定 */
.cycle-footer {
  margin-top: 56px;
  background: var(--primary);
  color: #fff;
}

.cycle-footer_inner {
  display: grid;
}

.cycle-footer .cycle-logo {
  color: #fff;
}

.cycle-footer_brand p {
  font-size: 12px;
  margin-top: 22px;
}

.cycle-footer_brand .cycle-footer_caption {
  margin-top: 8px;
  font-size: 11px;
}

.cycle-footer_heading {
  font-size: 13px;
  margin: 0 0 18px;
}

.cycle-footer_links a {
  display: block;
  font-size: 12px;
  margin-bottom: 12px;
  color: #fff;
}

.cycle-footer_calendar {
  border-top: 1px solid rgba(255, 255, 255, 0.2509803922);
  padding-top: 20px;
}

.cycle-footer_calendar summary {
  cursor: pointer;
  font-size: 12px;
}

.cycle-footer_calendar .business-calendar {
  background: #fff;
  color: var(--text);
  padding: 16px;
  margin-top: 16px;
  border-radius: 4px;
}

.cycle-footer_copy {
  border-top: 1px solid rgba(255, 255, 255, 0.2509803922);
  margin: 0;
  padding-top: 20px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* 購入前のご案内: 画像内の旧ブランド表記を使わず、実ページへ誘導 */
.cycle-guide {
  display: grid;
  background: var(--bg-sub);
  margin: 28px auto 0;
}

.cycle-guide_title {
  font-family: "Yu Mincho", serif;
  font-size: 28px;
  line-height: 1.7;
  font-weight: 500;
  margin: 16px 0;
}

.cycle-guide_text {
  font-size: 12px;
  color: var(--text-sub);
}

.cycle-guide_links {
  align-self: center;
}

.cycle-guide_links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

/* PC: 既存の1100px固定幅・PC/SP分離を維持 */
.container {
  width: 1100px;
  padding-left: 0;
  padding-right: 0;
}

.g-header {
  min-width: 1100px;
}

.cycle-announcement {
  margin: 0;
  padding: 8px 16px;
  background: var(--bg-sub);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.g-header-foot {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 26px;
}

.g-header-foot .cycle-search {
  flex: 1;
  margin: 0 12px;
}

.cycle-account {
  display: flex;
  gap: 22px;
}

.cycle-account a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--text);
}

.cycle-cart-count {
  position: absolute;
  top: -7px;
  right: -6px;
  background: var(--primary);
  color: #fff;
  min-width: 18px;
  padding: 0 4px;
  border-radius: 20px;
  text-align: center;
}

.g-nav {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding-top: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.g-nav a {
  font-size: 12px;
  color: var(--text);
}

.l-body {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-top: 32px;
  padding-bottom: 32px;
}

.l-main {
  flex: 1;
  min-width: 0;
}

.cycle-home .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cycle-guide {
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 40px;
}

.cycle-footer_inner {
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 30px;
}

.cycle-footer_calendar, .cycle-footer_copy {
  grid-column: 1/-1;
}

.cycle-footer_calendar .business-calendar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  max-width: 680px;
}

.cycle-footer_calendar .business-calendar h3 {
  grid-row: 1;
}

.cycle-footer_calendar .business-calendar table {
  grid-row: 2;
}

.cycle-footer_calendar .business-calendar .legend {
  grid-column: 1/-1;
}
