@charset "UTF-8";
@import url("https://image.raku-uru.jp/cms/fontcss/font.css");

/* =======================================================
   らくうるカート 標準システムコンポーネント用ベースCSS
   （特商法・ご利用案内などのシステム自動生成テーブルを白山堂風に整形）
   ======================================================= */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  box-sizing: border-box;
  margin: auto;
}

th, td {
  box-sizing: border-box;
  border: 1px solid #eae5dd;
  margin: 0 0 -1px 0;
  vertical-align: middle;
  padding: 12px 15px;
  display: block;
}
@media screen and (min-width: 768px) {
  th, td {
    margin-right: -1px;
    display: table-cell;
  }
}
th {
  background: #f7f5f0;
  color: #3a3532;
  font-weight: 700;
}

/* ご利用案内(/about)・特定商取引法(/law)の自動生成テーブル装飾 */
table.about-tbl {
  margin: 30px auto 50px;
  width: 100%;
  max-width: 960px;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
table.about-tbl th {
  width: 28%;
  padding: 16px 20px;
  text-align: left;
  font-size: 16px;
}
table.about-tbl td {
  padding: 16px 20px;
  text-align: left;
  font-size: 16px;
  color: #5c4d43;
  background: #ffffff;
}
table.about-tbl a {
  color: #2d6a4f;
  text-decoration: underline;
}
table.shipment-tbl {
  margin: 0 auto 30px;
  max-width: 960px;
  width: 100%;
  background: #ffffff;
}
table.shipment-tbl th,
table.shipment-tbl td {
  font-size: 14px;
  padding: 10px 12px;
}
table.shipment-tbl thead th,
table.shipment-tbl thead td {
  text-align: center;
  font-weight: bold;
  background: #f7f5f0;
}
.payment-content tr:first-child td {
  font-weight: bold;
  background: #f7f5f0;
  text-align: center;
}
.payment-content td {
  text-align: right;
}

/* システム固定ページ（/law, /about, /privacy）の見出し整形 */
.main-article {
  max-width: 960px;
  margin: 40px auto 80px;
  padding: 0 20px;
}
.main-article .ttl,
.frame-block .section-head {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #2d6a4f;
}
.main-article .ttl h2,
.frame-block .title1 {
  font-family: 'Shippori Mincho', serif;
  font-size: 28px;
  font-weight: 700;
  color: #3a3532;
}

/* パンくず */
.breadcrumbs {
  padding: 10px 0;
  text-align: left;
  background-color: #f5f2ea;
  border-bottom: 1px solid #eae5dd;
}
.breadcrumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li {
  display: inline-block;
  color: #5c4d43;
  font-size: 13px;
  line-height: 1.6;
}
.breadcrumbs a {
  text-decoration: underline;
}
.breadcrumbs li::after {
  content: " > ";
  margin: 0 6px;
  color: #aaa;
}
.breadcrumbs li:last-child::after {
  content: "";
}

/* らくうる標準バッジ生成ループ */
  .icon-badge87879::before {
    position: absolute; top: 0; left: 0; z-index: 100;
    content: "NEW";
    width: 60px; height: 18px; display: inline-block;
    font-size: 11px; line-height: 18px; font-weight: bold;
    text-align: center; color: #fff; padding: 4px;
    background: #2d6a4f;
  }
  .icon-badge87880::before {
    position: absolute; top: 0; left: 0; z-index: 100;
    content: "おすすめ";
    width: 60px; height: 18px; display: inline-block;
    font-size: 11px; line-height: 18px; font-weight: bold;
    text-align: center; color: #fff; padding: 4px;
    background: #9c413c;
  }
  .icon-badge87881::before {
    position: absolute; top: 0; left: 0; z-index: 100;
    content: "人気";
    width: 60px; height: 18px; display: inline-block;
    font-size: 11px; line-height: 18px; font-weight: bold;
    text-align: center; color: #fff; padding: 4px;
    background: #86c03f;
  }

/* らくうる標準商品一覧・詳細（フォールバック用） */
.inner { width: 94%; max-width: 1200px; margin: 0 auto; }
#main, .main { max-width: 1200px; margin: 0 auto 40px; padding: 0 4%; box-sizing: border-box; text-align: left; }
.col-2, .col-3, .col-4, .col-5, .col-6 { display: flex; flex-wrap: wrap; gap: 20px; }
.col-2 li, .col-3 li, .col-4 li { width: calc(50% - 10px); list-style: none; }
@media screen and (min-width: 768px) {
  .col-3 li { width: calc(33.333% - 14px); }
  .col-4 li { width: calc(25% - 15px); }
}

/* =======================================================
   1. 白山堂 デザインシステム基本設定（base.css 統合）
   ======================================================= */
:root {
  --primary-color: #2d6a4f;
  --primary-hover: #1e4b37;
  --accent-color: #9c413c;
  --bg-base: #fbfaf8;
  --bg-section: #fff;
  --bg-menu: #f5f2ea;
  --text-main: #3a3532;
  --text-sub: #5c4d43;
  --border-color: #eae5dd;
  --border-dark: #dcd6cd;
  --shadow-sm: 0 4px 15px rgba(0,0,0,0.03);
}

html {
  font-size: 100% !important;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-base) !important;
  background-image: none !important;
  color: var(--text-main) !important;
  font-family: 'Zen Maru Gothic', sans-serif !important;
  line-height: 1.8 !important;
  -webkit-font-smoothing: antialiased;
  font-size: 18px !important;
  word-break: normal;
}

input, textarea, button, select {
  font-family: 'Zen Maru Gothic', sans-serif;
}

#wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  position: relative;
}

#container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
  text-align: left;
  overflow: visible;
}

.shippori { font-family: 'Shippori Mincho', serif !important; }
img { width: 100%; height: auto; display: block; object-fit: cover; line-height: normal; }
a { color: inherit; text-decoration: none; transition: 0.3s ease; }
a:hover, button:hover { text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 4%; box-sizing: border-box; }
.container-small { max-width: 900px; margin: 0 auto; padding: 0; box-sizing: border-box; }

/* =======================================================
   2. ヘッダー全体構造
   ======================================================= */
.header-utility { background-color: var(--bg-menu); border-bottom: 1px solid var(--border-color); font-size: 14px; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; min-height: 46px; padding: 0 4%; max-width: 1300px; margin: 0 auto; box-sizing: border-box; }
.utility-left { color: var(--text-main); font-weight: 600; letter-spacing: 1px; }
.utility-right { display: flex; align-items: center; }
.utility-right a { color: var(--text-sub); text-decoration: none; padding: 0 14px; border-right: 1px solid var(--border-dark); transition: 0.2s; line-height: 1; font-weight: 500; }
.utility-right a:last-child { border-right: none; padding-right: 0; }
.utility-right a:hover { color: var(--primary-color); }

.site-header {
  background: #fff; position: relative; z-index: 1000;
  box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border-color);
}

.site-header .header-top {
  position: static !important;
  border-bottom: none !important;
  height: auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 20px 0 !important;
  min-height: 100px !important;
  text-align: left;
}

.header-left-search { flex: 1; display: flex; justify-content: flex-start; }
.search-form { display: flex; border: 1px solid var(--border-dark); border-radius: 50px; overflow: hidden; background: #fff; width: 100%; max-width: 260px; height: 42px; transition: 0.3s; }
.search-form:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(45,106,79,0.1); }
.search-input { flex: 1; padding: 0 15px !important; border: none !important; outline: none; font-size: 15px; color: var(--text-main); font-family: inherit; background: transparent !important; }
.search-input:hover, .search-input:focus { border: none !important; }
.search-input::placeholder { color: #888; }
.search-btn { background: none; border: none; padding: 0 15px; cursor: pointer; color: var(--text-main); display: flex; align-items: center; justify-content: center; }
.search-btn svg { width: 18px; height: 18px; stroke: currentColor; }
.search-btn:hover { color: var(--primary-color); }

.header-center-logo { flex: 0 0 auto; display: block; text-decoration: none; transition: 0.3s; padding: 0 20px; text-align: center; }
.header-center-logo:hover { opacity: 0.8; }
.logo-title { font-size: 30px; font-weight: 700; color: var(--text-main); letter-spacing: 2px; line-height: 1.2; margin: 0; }
.logo-sub { font-size: 13px; color: #777; font-weight: 500; margin-top: 4px; letter-spacing: 1px; }

.header-right-actions { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.action-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--text-main); font-size: 13px; font-weight: 500; line-height: 1.1; letter-spacing: 0.5px; transition: 0.2s; text-decoration: none; }
.action-item span { display: block; line-height: 1.1; }
.action-item svg { width: 24px; height: 24px; stroke: var(--text-main); stroke-width: 1.5; transition: 0.2s; display: block; }
.action-item:hover { color: var(--primary-color); }
.action-item:hover svg { stroke: var(--primary-color); }

.cart-badge { position: relative; }

/* 3項目シンプルナビゲーションバー */
.header-nav-wrap { border-top: 1px solid var(--border-color); background: #fff; position: relative; z-index: 900; }
.tab-nav { display: flex; justify-content: center; }
.tab-nav li { flex: 1; text-align: center; }
.nav-link-main { display: block; padding: 18px 10px; font-size: 18px; font-weight: 700; color: var(--text-main); letter-spacing: 1px; position: relative; border-right: 1px solid var(--border-color); cursor: pointer; background: #fff; transition: 0.3s; }
.tab-nav li:first-child .nav-link-main { border-left: 1px solid var(--border-color); }
.nav-link-main::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background-color: transparent; transition: 0.3s ease; }
.nav-link-main:hover { color: var(--primary-color); background-color: var(--bg-base); }
.nav-link-main:hover::after { background-color: var(--primary-color); }

/* =======================================================
   3. スマホ用ドロワーメニュー
   ======================================================= */
.menu-toggle-btn { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin: 0; line-height: 1.1; }
.hamburger-icon { width: 24px; height: 22px; display: flex; flex-direction: column; justify-content: space-between; padding: 3px 0; box-sizing: border-box; margin: 0; }
.hamburger-icon span { display: block; width: 100%; height: 2px; background-color: var(--text-main); border-radius: 2px; transition: 0.3s; }
.menu-toggle-label { display: block; font-size: 11px; font-weight: 700; color: var(--text-main); line-height: 1.1; letter-spacing: 0.5px; }

.drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); z-index: 2998; opacity: 0; visibility: hidden; transition: 0.3s; }
.drawer-overlay.is-active { opacity: 1; visibility: visible; }
.drawer-menu { position: fixed; top: 0; right: -320px; width: 300px; max-width: 85%; height: 100%; background-color: #fff; z-index: 2999; box-shadow: -5px 0 20px rgba(0,0,0,0.1); transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); display: flex; flex-direction: column; overflow-y: auto; text-align: left; }
.drawer-menu.is-active { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; background-color: var(--bg-menu); border-bottom: 1px solid var(--border-color); }
.drawer-title { font-size: 20px; font-weight: 700; color: var(--primary-color); margin: 0; }
.drawer-close-btn { background: #fff; border: 1px solid var(--border-dark); font-size: 14px; padding: 6px 12px; border-radius: 20px; cursor: pointer; }
.drawer-body { padding: 0; }
.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 18px 20px; background: none; border: none; font-size: 17px; font-weight: 700; color: var(--text-main); cursor: pointer; text-align: left; }
.accordion-icon { font-size: 18px; color: var(--primary-color); transition: transform 0.3s; }
.accordion-toggle.is-open .accordion-icon { transform: rotate(45deg); }
.accordion-content { display: none; padding: 0 20px 20px; background: #fff; }
.accordion-content.is-open { display: block; }
.accordion-list li { margin-bottom: 14px; }
.accordion-list a { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-sub); }
.accordion-list a:hover { color: var(--primary-color); }

/* =======================================================
   4. 全ページ共通：お買い物ガイド（最新仕様4カラム）
   ======================================================= */
.shopping-guide-section {
  padding: 70px 0;
  background-color: #ffffff;
  border-top: 1px solid #eae5dd;
  font-family: 'Zen Maru Gothic', sans-serif;
  color: #3a3532;
  margin-top: 60px;
}
.shopping-guide-section .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.guide-section-header {
  text-align: center;
  margin-bottom: 45px;
}
.guide-en {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--primary-color);
  margin-bottom: 6px;
}
.guide-main-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 10px 0;
  letter-spacing: 2px;
}
.guide-main-lead {
  font-size: 15px;
  color: var(--text-sub);
  margin: 0;
}
.shopping-guide-section .guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.shopping-guide-section .guide-col {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #fbfaf8;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px 20px;
}
.shopping-guide-section .guide-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.shopping-guide-section .guide-icon { font-size: 20px; line-height: 1; }
.shopping-guide-section .guide-title { font-size: 18px; font-weight: 700; color: var(--text-main); margin: 0; }
.shopping-guide-section .guide-text { font-size: 14px; line-height: 1.75; color: var(--text-sub); margin: 0 0 14px 0; }
.shopping-guide-section .guide-text strong { color: var(--primary-color); }
.shopping-guide-section .guide-subtitle { font-size: 15px; font-weight: 700; color: var(--text-main); margin: 0 0 6px 0; }
.shopping-guide-section .guide-note { font-size: 12.5px; line-height: 1.6; color: #7a736d; }

.shopping-guide-section .credit-cards { display: flex; gap: 5px; margin-bottom: 14px; flex-wrap: wrap; }
.shopping-guide-section .credit-cards span {
  display: inline-block; padding: 3px 8px; border: 1px solid var(--border-dark);
  border-radius: 3px; font-size: 11px; font-weight: bold; color: var(--text-main); background: #ffffff;
}

/* 送料ミニテーブル */
.guide-fee-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 14px;
}
.guide-fee-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 4px;
}
.guide-fee-list {
  margin: 0;
  font-size: 13px;
}
.guide-fee-list div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px dotted #eee;
}
.guide-fee-list div:last-child {
  border-bottom: none;
}
.guide-fee-list dt {
  color: var(--text-sub);
}
.guide-fee-list dd {
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.shopping-guide-section .contact-btn {
  display: block; text-align: center; border: 2px solid var(--primary-color); color: #ffffff !important;
  background-color: var(--primary-color); padding: 13px 10px; font-size: 15px; font-weight: bold;
  text-decoration: none; border-radius: 6px; margin-bottom: 18px; transition: all 0.3s;
}
.shopping-guide-section .contact-btn:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); }

.guide-company-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 14px;
  margin-top: auto;
}

/* =======================================================
   5. フッター
   ======================================================= */
.site-footer { background-color: #262320; color: #fff; padding: 70px 0 35px; margin-top: 0; text-align: left; }
.footer-inner { display: grid; grid-template-columns: 1fr 2.4fr; gap: 50px; border-bottom: 1px solid #453f3b; padding-bottom: 50px; margin-bottom: 30px; }
.footer-brand .f-logo { display: inline-block; font-size: 26px; font-weight: 700; letter-spacing: 2px; margin-bottom: 16px; color: #fff; }
.footer-brand p { font-size: 15px; color: #c4beb9; line-height: 1.8; margin: 0 0 20px 0; }
.footer-Quick-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-Quick-btns a {
  display: inline-block; padding: 8px 18px; border: 1px solid #6e6660; border-radius: 4px;
  font-size: 14px; color: #e5dfd3; transition: 0.2s;
}
.footer-Quick-btns a:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

.footer-links { display: grid; grid-template-columns: 0.9fr 1.3fr 1fr; gap: 30px; }
.link-col h4 { font-size: 18px; color: #fff; margin: 0 0 20px 0; letter-spacing: 1px; border-bottom: 1px solid #453f3b; padding-bottom: 10px; }
.link-col li { margin-bottom: 11px; line-height: 1.5; }
.link-col a { font-size: 15px; color: #c4beb9; transition: 0.2s; display: inline-block; }
.link-col a:hover { color: #fff; transform: translateX(4px); }
.site-footer .copyright { text-align: center; font-size: 14px; color: #8c857f; padding: 0; }

/* =======================================================
   6. レスポンシブ対応
   ======================================================= */
@media (max-width: 1080px) {
  .nav-link-main { padding: 16px 15px; font-size: 16px; }
  .shopping-guide-section .guide-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .utility-inner { justify-content: center; padding: 10px 4%; }
  .utility-right { display: none; }
  .site-header .header-top { padding: 12px 0 !important; gap: 15px; justify-content: space-between !important; min-height: auto !important; }
  .header-left-search { display: none; }
  .header-center-logo { padding: 0; text-align: left; flex: 1; }
  .logo-title { font-size: 23px; letter-spacing: 1px; }
  .logo-sub { font-size: 11px; }

  /* ★スマホ時の「カート」と「MENU」の高さ・文字位置を完全統一 */
  .header-right-actions { flex: 0 0 auto; gap: 16px; align-items: center; }
  .header-right-actions .action-item { display: none; }
  .header-right-actions .cart-badge,
  .header-right-actions .menu-toggle-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 4px !important;
    margin: 0 !important;
    height: auto !important;
    width: auto !important;
    line-height: 1 !important;
  }
  .header-right-actions .cart-badge svg {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    display: block !important;
  }
  .header-right-actions .hamburger-icon {
    width: 24px !important;
    height: 22px !important;
    padding: 3px 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .header-right-actions .cart-badge span,
  .header-right-actions .menu-toggle-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--text-main) !important;
  }

  .header-nav-wrap { display: none; }
  .shopping-guide-section { padding: 50px 0; }
  .shopping-guide-section .guide-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { grid-template-columns: 1fr; gap: 30px; }
}
@charset "UTF-8";

/* =======================================================
   0. 商品一覧ページ全体ラッパー調整
   ======================================================= */
#collection-lp-main.main {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
}

#collection-lp-main .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* =======================================================
   1. コレクションバナー (main-collection-banner)
   ======================================================= */
.collection-banner-section {
  padding: 50px 0 35px;
  background-color: var(--bg-base, #fbfaf8);
  border-bottom: 1px solid var(--border-color, #eae5dd);
  margin-bottom: 40px;
}
.collection-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.collection-subtitle {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-color, #2d6a4f);
  margin-bottom: 8px;
}
.collection-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main, #3a3532);
  margin: 0 0 15px 0;
  letter-spacing: 2px;
  line-height: 1.4;
}
.collection-description {
  font-size: 16px;
  color: var(--text-sub, #5c4d43);
  max-width: 800px;
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 768px) {
  .collection-banner-section {
    padding: 30px 0 25px;
    margin-bottom: 25px;
  }
  .collection-title {
    font-size: 24px;
  }
  .collection-description {
    font-size: 14px;
  }
}

/* =======================================================
   2. 上部ツールバー（件数・絞り込みボタン・並び替え）
   ======================================================= */
.collection-grid-section {
  padding-bottom: 80px;
}
.collection-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color, #eae5dd);
  flex-wrap: wrap;
  gap: 15px;
}
.product-count {
  font-size: 15px;
  color: var(--text-sub, #5c4d43);
  font-weight: 500;
}
.product-count strong {
  color: var(--primary-color, #2d6a4f);
  font-size: 18px;
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* 条件で絞り込むボタン */
.btn-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: #fff;
  border: 1px solid var(--border-dark, #dcd6cd);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main, #3a3532);
  cursor: pointer;
  transition: 0.2s;
}
.btn-filter-toggle:hover,
.btn-filter-toggle.is-active {
  border-color: var(--primary-color, #2d6a4f);
  color: var(--primary-color, #2d6a4f);
  background-color: #f2f7f4;
}

/* 並び替えセレクト（親divとselect本体のスタイル分離） */
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
}
.sort-label {
  font-size: 14px;
  color: var(--text-sub, #5c4d43);
  font-weight: 700;
}
#sort-select {
  padding: 8px 14px;
  border: 1px solid var(--border-dark, #dcd6cd);
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main, #3a3532);
  cursor: pointer;
  outline: none;
  font-family: inherit;
  height: auto;
}
#sort-select:focus {
  border-color: var(--primary-color, #2d6a4f);
}

/* 絞り込み検索フォームパネル */
.filter-panel {
  display: none;
  background-color: #f7f5f0;
  border: 1px solid var(--border-color, #eae5dd);
  border-radius: 8px;
  padding: 25px 30px;
  margin-bottom: 35px;
}
.filter-panel.is-open {
  display: block;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.filter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main, #3a3532);
}
.filter-input,
.filter-select {
  width: 100%;
  height: 42px;
  padding: 0 12px !important;
  border: 1px solid var(--border-dark, #dcd6cd) !important;
  border-radius: 4px;
  background-color: #fff !important;
  font-size: 15px;
  color: var(--text-main, #3a3532);
  box-sizing: border-box;
}
.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.price-range-inputs .filter-input {
  width: calc(50% - 25px);
}
.filter-submit-wrap {
  text-align: center;
}
.btn-filter-submit {
  background-color: var(--primary-color, #2d6a4f);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 45px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.btn-filter-submit:hover {
  background-color: var(--primary-hover, #1e4b37);
}

/* =======================================================
   3. 商品カードグリッド (売り切れ商品の自動末尾移動＆バッジ対応)
   ======================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-wrapper {
  order: 1; /* 在庫あり商品は先頭グループ */
  background: #fff;
  border: 1px solid var(--border-color, #eae5dd);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* ★売り切れ商品は自動的に一番後ろへ配置 */
.card-wrapper.is-soldout {
  order: 2;
}

.card-wrapper:hover {
  border-color: var(--border-dark, #dcd6cd);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}
.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fbfaf8;
  display: block;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}
.card-wrapper:hover .card-img {
  transform: scale(1.04);
}

/* ★売り切れ時の画像トーンダウン＆中央バッジ */
.card-wrapper.is-soldout .card-img {
  filter: brightness(0.72);
}
.soldout-overlay-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(38, 35, 32, 0.88);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 8px 22px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 50;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.card-info {
  padding: 24px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main, #3a3532);
  margin: 0 0 12px 0;
  line-height: 1.5;
  letter-spacing: 0.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color, #2d6a4f);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.card-price .tax {
  font-size: 13px !important;
  color: #7a736d !important;
  font-weight: 400;
}
.card-nonstock {
  font-size: 13px;
  color: #9c413c;
  background: #fceceb;
  padding: 4px 12px;
  border-radius: 4px;
  margin: 0 auto 15px;
  font-weight: 700;
}
.card-action {
  margin-top: auto;
}

/* シックなアウトラインボタン */
.btn-card-detail {
  width: 100%;
  background-color: transparent;
  color: var(--text-main, #3a3532);
  border: 1px solid var(--text-main, #3a3532);
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
}
.btn-card-detail::after {
  content: '→';
  font-size: 14px;
  transition: transform 0.3s ease;
}
.btn-card-detail:hover {
  background-color: var(--primary-color, #2d6a4f);
  border-color: var(--primary-color, #2d6a4f);
  color: #ffffff !important;
}
.btn-card-detail:hover::after {
  transform: translateX(4px);
}

/* ★売り切れ商品のボタンは落ち着いたグレー表示に */
.card-wrapper.is-soldout .btn-card-detail {
  background-color: #f0ede8;
  border-color: #cfc9bf;
  color: #7a736d;
}
.card-wrapper.is-soldout .btn-card-detail:hover {
  background-color: #7a736d;
  border-color: #7a736d;
  color: #ffffff !important;
}

/* 0件時のエンプティステート */
.empty-collection {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border-color, #eae5dd);
}
.empty-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main, #3a3532);
  margin-bottom: 12px;
}
.empty-collection p {
  color: var(--text-sub, #5c4d43);
  font-size: 16px;
  margin: 0 0 25px 0;
}
.btn-back-all {
  display: inline-block;
  padding: 14px 40px;
  background-color: var(--primary-color, #2d6a4f);
  color: #fff !important;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
}

/* =======================================================
   4. ページネーション
   ======================================================= */
.pagination-wrap {
  margin-top: 55px;
  display: flex;
  justify-content: center;
}
.pagination-list {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border-color, #eae5dd);
  border-radius: 4px;
  background: #fff;
  color: var(--text-main, #3a3532);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: 0.2s;
  box-sizing: border-box;
}
.pagination-item:hover {
  border-color: var(--primary-color, #2d6a4f);
  color: var(--primary-color, #2d6a4f);
}
.pagination-item.current {
  background-color: var(--primary-color, #2d6a4f);
  border-color: var(--primary-color, #2d6a4f);
  color: #fff;
}

/* =======================================================
   5. 商品カテゴリーから探す (main-list-collections)
   ======================================================= */
.list-collections-section {
  padding: 70px 0 80px;
  background-color: var(--bg-base, #fbfaf8);
  border-top: 1px solid var(--border-color, #eae5dd);
}
.list-collections-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  color: var(--text-main, #3a3532);
  margin: 0 0 35px 0;
}
.collection-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.collection-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border-color, #eae5dd);
  border-radius: 8px;
  background: #fff;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.collection-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color, #2d6a4f);
  box-shadow: 0 8px 20px rgba(45,106,79,0.08);
}
.collection-card-info {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.collection-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main, #3a3532);
  margin: 0;
}
.collection-card-arrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color, #2d6a4f);
}

/* =======================================================
   6. レスポンシブ対応
   ======================================================= */
@media (max-width: 960px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .collection-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }
  .soldout-overlay-badge {
    font-size: 13px;
    padding: 6px 14px;
  }
  .card-info {
    padding: 16px 12px;
  }
  .card-title {
    font-size: 15px;
  }
  .card-price {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .btn-card-detail {
    padding: 9px 0;
    font-size: 12.5px;
  }
  .collection-list-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
