/* ==============================
   リンク色：本文・コンテンツ内の a を #2c5282 に統一（ボタン・ヘッダーはテーマカラーのまま）
   ============================== */
body {
  --mf-link-color: #2c5282;
}
a {
  color: var(--mf-link-color, #2c5282);
}

/* ==============================
   ヘッダー検索ボタン：常に虫眼鏡アイコンのみ表示
   （「検索結果のみに表示」などの文字が出ないよう CSS で強制）
   ============================== */
#site-header .product-extra-search .search-submit {
  position: relative !important;
  font-size: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  width: 42px !important;
  min-width: 42px !important;
  padding: 0 !important;
}
#site-header .product-extra-search .search-submit::before {
  content: "\e922";
  font-family: 'Linearicons' !important;
  font-size: 18px;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  speak: none;
  text-indent: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #fff !important;
}

/* ヘッダー：検索ボタン・アイコン右下バッジの文字を白抜き */
#site-header .extras-menu > li > a .mini-item-counter {
  color: #fff !important;
}
/* ウィッシュリストの数字を白抜き（ヘッダー・モバイルナビ） */
#site-header .menu-item-wishlist .mini-item-counter,
.mf-navigation-mobile .navigation-mobile_wishlist .mini-item-counter {
  color: #fff !important;
}

/* ==============================
   アクセシビリティ：フォーカス時は枠線で現在地が分かるように（キーボード操作時のみ :focus-visible）
   ============================== */
a:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible {
  outline: 2px solid var(--mf-primary-color, #0071df) !important;
  outline-offset: 2px !important;
}
/* 検索エリアのフォーカス：ドロップダウン＋入力欄をひとまとまりでグロー、質を揃える */
#site-header .product-extra-search .products-search .psearch-content:focus-within {
  outline: none !important;
  background-color: #fff !important;
  box-shadow: 0 0 6px 1px rgba(0, 100, 255, 0.25) !important;
}
#site-header .product-extra-search .products-search .psearch-content:focus-within .product-cat-label,
#site-header .product-extra-search .products-search .psearch-content:focus-within .search-field {
  background-color: #fff !important;
  box-shadow: none !important;
}
/* 境界枠はテーマのまま（focus で transparent にしないのでドロップダウン・検索窓とも枠が残る） */
#site-header .product-extra-search .search-field:focus,
#site-header .product-extra-search .search-field:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* ==============================
   マイアカウント・カート・Wishlist：送信・戻るボタンの文字を白抜き
   ============================== */
.customer-login .colect-magic-login-form button[type="submit"],
.customer-login form.woocommerce-form-register button[name="register"] {
  color: #fff !important;
}
.return-to-shop .button,
.return-to-shop a.button {
  color: #fff !important;
}

/* ショップ／カタログ：全品無料のため価格フィルター（BY PRICE）を非表示 */
.catalog-sidebar .widget_price_filter {
  display: none !important;
}

/* ==============================
   表示領域をブラウザ端まで広げる
   Elementor Flexbox Container (.e-con) + 旧セクション (.elementor-section-boxed)
   ============================== */
.e-con {
  --container-max-width: 100% !important;
}
.e-con > .e-con-inner {
  max-width: 100% !important;
}
.e-con-boxed {
  padding-left: 24px !important;
  padding-right: 24px !important;
}
.elementor .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 100% !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .e-con-boxed {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .elementor .elementor-section.elementor-section-boxed > .elementor-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ==============================
   ヒーロー（mf-slides）：背景画像を繰り返さない・中央で1枚だけ
   Elementor が background-size:auto を出すため、no-repeat を強制
   ============================== */
.mf-slides .slick-slide-bg {
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* モバイル：ヒーローエリアを非表示 */
@media (max-width: 767px) {
  .mf-slides-wrapper,
  .mf-slides,
  .elementor-widget-slides,
  .consultation-hero,
  body.page-id-505 .elementor .e-con.e-parent:first-of-type,
  body.page-id-1955 .elementor .e-con:first-of-type,
  body.page-id-1955 .elementor .elementor-top-section:first-of-type { display: none !important; }
}

/* ==============================
   Header 1：メインメニューの幅とスタイル
   ============================== */
/* メインメニューは子テーマで container + col-md-12 の1カラム構造にしている（幅は Bootstrap .container で制御） */
.header-layout-1 .site-header .main-menu .header-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

/* メニュー：広い幅では横一列（折り返さない）、中央寄せ */
#site-header .main-menu .col-header-menu {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  overflow: visible;
}
#site-header .main-menu .primary-nav,
#site-header .main-menu .primary-nav .menu,
#site-header .main-menu .primary-nav > ul {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
}
#site-header .main-menu .primary-nav .menu > li,
#site-header .main-menu .primary-nav > ul > li {
  flex-shrink: 0;
  white-space: nowrap;
}

/* メインメニューがはみ出したときは非表示にし、ハンバーガーメニューに切り替え（JS で body に colect-main-menu-overflow を付与） */
body.colect-main-menu-overflow #site-header .main-menu {
  display: none !important;
}

/* 常にオフキャンバスメニュー：横並びメニューは使わず、ハンバーガーは検索窓の左に表示 */
/* メインメニューを再表示する場合は以下を有効に戻す（display: none を付与）
#site-header .main-menu.hidden-xs.hidden-sm {
  display: none !important;
}
*/
#site-header .mobile-menu.hidden-lg.hidden-md {
  display: none !important; /* ハンバーガーは .header-main 内に移動したためこの行は非表示 */
}

/* 幅が広いときもオフキャンバスを表示（テーマは狭い幅でのみ .primary-mobile-nav に display:block を当てているため上書き） */
body.display-mobile-menu .primary-mobile-nav {
  display: block !important;
}

/* ロゴ左のハンバーガーボタン：枠＋背景＋「メニュー」ラベル */
#site-header .header-main .header-hamburger-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
#site-header .header-main .header-hamburger.mf-toggle-menu {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 50px;
  height: 50px;
  padding-left: 14px;
  padding-right: 14px;
  margin-right: 12px;
  flex-shrink: 0;
  color: var(--mf-dark-color, #000);
  text-decoration: none;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}
#site-header .header-main .header-hamburger.mf-toggle-menu:hover {
  color: var(--mf-primary-color, #0071df);
  background-color: #e8e8e8;
  border-color: #aaa;
}
#site-header .header-main .header-hamburger .icon-menu {
  font-size: 26px;
}
#site-header .header-main .header-hamburger .header-hamburger-label {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* 大画面：ハンバーガー | ロゴ(25%) | 検索＋カート等(75%)、検索は残り幅いっぱい */
#site-header .header-main .header-right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}
#site-header .header-main .header-right .header-search-wrap {
  flex: 1;
  min-width: 0;
}
#site-header .header-main .header-right .header-search-wrap .product-extra-search {
  display: flex;
  flex: 1;
  min-width: 0;
  width: 100%;
}
#site-header .header-main .header-right .header-search-wrap .product-extra-search .products-search {
  flex: 1;
  min-width: 0;
  width: 100%;
}
#site-header .header-main .header-right .header-search-wrap .product-extra-search .psearch-content {
  flex: 1;
  min-width: 0;
  width: 100%;
}
#site-header .header-main .header-right .header-search-wrap .product-extra-search .search-wrapper {
  flex: 1;
  min-width: 120px; /* 入力欄が潰れて消えないように最低幅を確保 */
  max-width: none !important;
  width: 100% !important;
}
#site-header .header-main .header-right .header-search-wrap .product-extra-search .search-wrapper .search-field {
  min-width: 100px !important; /* テキスト入力が必ず見えるように */
}
#site-header .header-main .header-right .header-extras {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  width: auto !important;
  justify-content: flex-end;
}

/* 大画面のみ：検索窓を確実に全面に伸ばす（他スタイルの上書き用） */
@media (min-width: 992px) {
  #site-header .header-main .header-right .header-search-wrap {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
  }
  #site-header .header-main .header-right .header-search-wrap .product-extra-search,
  #site-header .header-main .header-right .header-search-wrap .product-extra-search .products-search,
  #site-header .header-main .header-right .header-search-wrap .product-extra-search .psearch-content,
  #site-header .header-main .header-right .header-search-wrap .product-extra-search .search-wrapper {
    max-width: none !important;
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 0% !important;
  }
  /* 検索入力欄：潰れないよう最低幅を確保しつつ伸ばす */
  #site-header .header-main .header-right .header-search-wrap .product-extra-search .search-wrapper {
    min-width: 120px !important;
  }
  #site-header .header-main .header-right .header-search-wrap .product-extra-search .search-wrapper .search-field {
    flex: 1 1 0% !important;
    min-width: 100px !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    display: block !important;
  }
}

/* 小さい画面：ハンバーガー｜ロゴ｜…、検索は下段（.header-right は contents で子を並べ替え） */
@media (max-width: 991px) {
  #site-header .header-main .header-right {
    display: contents;
  }
  #site-header .header-main .header-row {
    display: flex;
    flex-wrap: wrap;
  }
  #site-header .header-main .header-row .header-hamburger-wrap {
    order: 1;
    flex: 0 0 auto;
    padding-left: 15px;
    padding-right: 0;
  }
  #site-header .header-main .header-row .header-logo {
    order: 2;
    flex: 0 0 50%;
    max-width: 50%;
  }
  #site-header .header-main .header-row .header-extras {
    order: 3;
    flex: 1 1 0;
    min-width: 0;
    justify-content: flex-end;
    padding-right: 15px;
  }
  #site-header .header-main .header-row .header-search-wrap {
    order: 4;
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 8px;
    padding-left: 15px;
    padding-right: 15px;
  }
  #site-header .header-main .header-search-wrap .product-extra-search {
    width: 100%;
  }
}

/* メニュー要素の距離を小さく */
.header-layout-1 .site-header .main-menu .primary-nav > ul > li,
#site-header .main-menu .primary-nav.nav .menu > li {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}
/* 文字とドロップダウンマークの間を十分あけ、被らないようにする */
.header-layout-1 .site-header .main-menu .primary-nav > ul > li.menu-item-has-children > a,
#site-header .main-menu .primary-nav .menu > li.menu-item-has-children > a {
  padding-right: 28px !important;
  margin-right: 8px !important;
}
#site-header .main-menu .primary-nav .menu > li.menu-item-has-children > a:after,
.header-layout-1 .site-header .main-menu .primary-nav > ul > li.menu-item-has-children > a:after {
  right: 0 !important;
}

/* メインメニューバー：テーマカラー背景 + 白文字
   martfury-inline-css が #site-header .main-menu { background:#f5f5f5 } を後から出力するため
   同じ ID セレクタ + !important で上書き */
#site-header .main-menu {
  background-color: var(--mf-background-primary-color, #0071df) !important;
  border-color: var(--mf-background-primary-color, #0071df) !important;
  border-bottom: none !important;
}

/* 全項目に同じ padding を指定して縦位置を揃え、選択中だけ背景でハイライト */
#site-header .main-menu .primary-nav > ul > li > a,
#site-header .main-menu .primary-nav.nav .menu > li > a {
  color: #fff !important;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  padding: 6px 12px;
  margin: 0 -2px;
  border-radius: 4px;
}

#site-header .main-menu .primary-nav > ul > li > a:hover,
#site-header .main-menu .primary-nav.nav .menu > li > a:hover {
  color: rgba(255, 255, 255, 0.7) !important;
}

#site-header .main-menu .primary-nav > ul > li.current-menu-item > a,
#site-header .main-menu .primary-nav > ul > li.current-menu-ancestor > a,
#site-header .main-menu .primary-nav > ul > li.current-menu-parent > a,
#site-header .main-menu .primary-nav.nav .menu > li.current-menu-item > a,
#site-header .main-menu .primary-nav.nav .menu > li.current-menu-ancestor > a,
#site-header .main-menu .primary-nav.nav .menu > li.current-menu-parent > a {
  color: #fff !important;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
}

/* ドロップダウン：クリックした項目の真下に表示（左端を揃える） */
#site-header .main-menu .primary-nav.nav .menu > li > ul,
#site-header .main-menu .primary-nav .menu > li > ul {
  left: 0 !important;
  top: 100% !important;
  transform-origin: top left;
}
#site-header .main-menu .primary-nav.nav .menu > li.open > ul,
#site-header .main-menu .primary-nav .menu > li.open > ul {
  opacity: 1;
  z-index: 999;
  transform: scaleX(1);
}
/* クリックで開閉するため、.open のときだけドロップダウン表示（ホバーでは出さない） */
#site-header .main-menu .primary-nav.nav .menu > li:not(.open) > ul {
  opacity: 0;
  z-index: -1;
  transform: scaleX(0);
}

/* 吹き出し口：ホバーでは出さず、クリックで開いたときだけ表示 */
#site-header .main-menu .primary-nav .menu > li.menu-item-has-children > a:before {
  opacity: 0;
  top: 120%;
  z-index: -1;
}
#site-header .main-menu .primary-nav .menu > li.menu-item-has-children:hover > a:before {
  opacity: 0;
  top: 120%;
}
/* .open のときだけ吹き出し表示し、ドロップダウンマークの真下に配置 */
#site-header .main-menu .primary-nav .menu > li.menu-item-has-children.open > a:before {
  opacity: 1;
  top: 100%;
  z-index: 9999;
  left: auto;
  right: -5px;
  margin: 11px 0 0 0;
}

/* サブメニュー内リンクもテーマカラー */
#site-header .main-menu .primary-nav .nav li li a {
  color: var(--mf-dark-color, #000) !important;
}
#site-header .main-menu .primary-nav .nav li li a:hover {
  color: var(--mf-primary-color, #0071df) !important;
}

#site-header .main-menu .products-cats-menu .cats-menu-title,
#site-header .main-menu .products-cats-menu .cats-menu-title .text {
  color: #fff !important;
}

/* ドロップダウン矢印も白に */
#site-header .main-menu .primary-nav .menu > li.menu-item-has-children > a:after,
#site-header .main-menu .primary-nav > ul > li.menu-item-has-children > a:after {
  color: #fff !important;
}

/* ==============================
   Topbar：少しだけ余白を戻す
   ============================== */
#topbar.topbar{
  padding-top:2px !important;
  padding-bottom:2px !important;
}

#topbar.topbar .topbar-row{
  padding-top:2px !important;
  padding-bottom:2px !important;
  margin:0 !important;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* 左右カラム（右側は中身を右寄せで位置を揃える） */
#topbar.topbar .topbar-left,
#topbar.topbar .topbar-right{
  padding-top:0 !important;
  padding-bottom:0 !important;
}
#topbar.topbar .topbar-right{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

/* ウィジェット余白は引き続き殺す */
#topbar.topbar .widget,
#topbar.topbar .widget_block,
#topbar.topbar .widget_text{
  margin:0 !important;
}

/* ==============================
   検索窓は1つだけ：モバイルメニュー行の検索を非表示（ロゴ横の検索のみ表示）
   ============================== */
#site-header .mobile-menu .product-extra-search {
  display: none !important;
}

/* ==============================
   ヘッダー「すぐ共有」ボタン：廃止（トップバーに移動したため非表示）
   ============================== */
#site-header .colect-header-share-wrap {
  display: none !important;
}

/* ==============================
   トップバー「すぐ共有」ボタン（ヘッダーから移動・同じデザイン）
   ============================== */
/* トップバー右：ウィジェットの「共有」リンク等を非表示。表示するのは「すぐ共有」ボタンのみ */
#topbar .topbar-right .widget {
  display: none !important;
}
#topbar .colect-topbar-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
  line-height: 1;
}
#topbar .colect-topbar-share-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
#topbar .colect-topbar-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 14px;
  background-color: #AF4848;
  color: #fff !important;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background-color 0.2s, transform 0.15s;
}
#topbar .colect-topbar-share-btn:hover {
  background-color: #963d3d;
  color: #fff !important;
  transform: translateY(-1px);
}
#topbar .colect-topbar-share-btn svg {
  flex-shrink: 0;
}
#topbar .colect-topbar-share-btn:focus-visible {
  outline: 2px solid #AF4848;
  outline-offset: 2px;
}
#topbar .colect-topbar-share-wrap--mobile .colect-topbar-share-label {
  display: none;
}
@media (min-width: 768px) {
  #topbar .colect-topbar-share-wrap--mobile .colect-topbar-share-label {
    display: inline;
  }
}
#topbar .topbar-colect-mobile-row .colect-topbar-share-btn {
  padding: 2px 10px;
  font-size: 14px;
}

/* すぐ相談ボタン（すぐ共有の横） */
#topbar .colect-topbar-consult-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
#topbar .colect-topbar-consult-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 14px;
  background-color: var(--mf-primary-color, #0071df);
  color: #fff !important;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background-color 0.2s, transform 0.15s;
}
#topbar .colect-topbar-consult-btn:hover {
  background-color: #005bb5;
  color: #fff !important;
  transform: translateY(-1px);
}
#topbar .colect-topbar-consult-btn svg {
  flex-shrink: 0;
}
#topbar .colect-topbar-consult-btn:focus-visible {
  outline: 2px solid var(--mf-primary-color, #0071df);
  outline-offset: 2px;
}
#topbar .colect-topbar-consult-wrap--mobile .colect-topbar-consult-label {
  display: none;
}
@media (min-width: 768px) {
  #topbar .colect-topbar-consult-wrap--mobile .colect-topbar-consult-label {
    display: inline;
  }
}
#topbar .topbar-colect-mobile-row .colect-topbar-consult-btn {
  padding: 2px 10px;
  font-size: 14px;
}


/*レビューに追加情報出す*/
.colect-review-meta{
  padding-left: 12px;
  margin: 6px 0 10px;
  font-size: 12px;
  color: #444;
  font-weight: 500;
}

/*「ダウンロードランキング」にDL数を出す*/
/* いったん全部隠す */
.colect-meta-date {
  display: none;
  font-size: 12px;
  opacity: .75;
  margin-top: 4px;
}

.colect-meta-sales {
  display: none;
  font-size: 12px;
  opacity: .75;
  margin-top: 4px;
}

/* 最近共有・ダウンロードランキング：作者名 */
.colect-meta-author {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
  line-height: 1.4;
}
.colect-meta-author a {
  color: #555;
  text-decoration: none;
}
.colect-meta-author a:hover {
  color: #222;
  text-decoration: underline;
}

/* Recent（最近共有）だけ共有日を出す */
.colect-grid-recent .colect-meta-date {
  display: block;
}

/* Rank（ダウンロードランキング）だけDL数を出す */
.colect-grid-rank .colect-meta-sales {
  display: block;
}

/* ダウンロードランキング：週間・月間・年間の切り替えボタン */
.colect-rank-period-switcher {
  margin-bottom: 1em;
}
.colect-rank-products-wrap {
  position: relative;
  min-height: 120px;
}
.colect-rank-products-wrap--loading {
  pointer-events: none;
  opacity: 0.6;
}
.colect-rank-products-wrap--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid rgba(0, 0, 0, 0.15);
  border-top-color: #333;
  border-radius: 50%;
  animation: colect-rank-spin 0.7s linear infinite;
}
@keyframes colect-rank-spin {
  to { transform: rotate(360deg); }
}
.colect-rank-period-switcher-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  list-style: none;
  margin: 0;
  padding: 0;
}
.colect-rank-period-switcher-item {
  margin: 0;
}
.colect-rank-period-switcher-link {
  display: inline-block;
  padding: 0.4em 1em;
  border: 1px solid currentColor;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, color 0.2s;
}
.colect-rank-period-switcher-link:hover {
  background: rgba(0, 0, 0, 0.06);
}
/* 選択中：背景・文字色を固定してどのテーマでも確実に視認できるようにする */
.colect-rank-period-switcher-item.is-active .colect-rank-period-switcher-link {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* 最近共有・ダウンロードランキングのカードでは金額を非表示 */
.colect-grid-recent .mf-product-price-box,
.colect-grid-rank .mf-product-price-box {
  display: none !important;
}

/* 商品ループ：共有日・DL数・レビューをホバーなしで常に表示 */
.woocommerce ul.products li.product .mf-product-details .colect-meta,
.woocommerce ul.products li.product .mf-product-details .colect-meta-date,
.woocommerce ul.products li.product .mf-product-details .colect-meta-sales,
.woocommerce ul.products li.product .mf-product-details .colect-review-meta,
ul.products .product-inner .mf-product-details .colect-meta,
ul.products .product-inner .mf-product-details .colect-meta-date,
ul.products .product-inner .mf-product-details .colect-meta-sales,
ul.products .product-inner .mf-product-details .colect-review-meta {
  opacity: 1 !important;
  visibility: visible !important;
}
.woocommerce ul.products li.product .mf-product-details .colect-meta-date,
.woocommerce ul.products li.product .mf-product-details .colect-meta-sales,
.woocommerce ul.products li.product .mf-product-details .colect-meta-author,
ul.products .product-inner .mf-product-details .colect-meta-date,
ul.products .product-inner .mf-product-details .colect-meta-sales,
ul.products .product-inner .mf-product-details .colect-meta-author {
  display: block !important;
}

/* hover時でも通常の詳細を表示させる（Grid / shortcode 共通） */
.mf-product-details {
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 2;
}

/* 共有日・DL数・レビューは .mf-product-content 内。オーバーレイ(.mf-product-details-hover)より前面に */
.mf-product-details .mf-product-content,
.mf-product-details .mf-product-price-box {
  position: relative !important;
  z-index: 101 !important;
}

/* ホバー時：通常の詳細をオーバーレイより前面に（テーマの .mf-product-details-hover は z-index:100） */
.woocommerce ul.products li.product .product-inner:hover .mf-product-details,
.mf-products-grid .product-inner .mf-product-details,
ul.products .product-inner .mf-product-details {
  z-index: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.woocommerce ul.products li.product .product-inner:hover .mf-product-details .mf-product-content,
.woocommerce ul.products li.product .product-inner:hover .mf-product-details .mf-product-price-box,
.mf-products-grid .product-inner .mf-product-details .mf-product-content,
.mf-products-grid .product-inner .mf-product-details .mf-product-price-box,
ul.products .product-inner .mf-product-details .mf-product-content,
ul.products .product-inner .mf-product-details .mf-product-price-box {
  z-index: 101 !important;
}

.mf-product-details-hover {
  display: none !important;
}

/* 教材一覧（shop）：タイトルは3行まで・末尾…・高さは常に3行でカード揃え */
.woocommerce ul.products li.product .woo-loop-product__title {
  display: block;
  overflow: hidden;
  line-height: 1.3;
  min-height: calc(1.3em * 3);
  padding-bottom: 5px;
}
.woocommerce ul.products li.product .woo-loop-product__title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* ショップ一覧カードの金額を非表示 */
.woocommerce ul.products li.product .mf-product-price-box {
  display: none !important;
}

/* オーバーレイを実質つぶして覆わないようにする（詳細度を上げる） */
body .woocommerce ul.products li.product .product-inner .mf-product-details-hover,
body .mf-products-grid .product-inner .mf-product-details-hover,
body ul.products .product-inner .mf-product-details-hover {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: auto !important;
  z-index: 0 !important;
}

/* 商品カードホバー時：続きを読む・Quick View・Wishlist・Compare を非表示 */
body .woocommerce ul.products li.product .product-inner .footer-button,
body .woocommerce ul.products li.product .product-inner .mf-product-quick-view,
body ul.products .product-inner .footer-button,
body ul.products .product-inner .mf-product-quick-view {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ショートコード [products] 等：ホバー時もオーバーレイを出さず、共有日・DL数・レビューを表示 */
.woocommerce ul.products li.product .product-inner:hover .mf-product-details-hover {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.woocommerce ul.products li.product .product-inner:hover .mf-product-details .colect-meta,
.woocommerce ul.products li.product .product-inner:hover .mf-product-details .colect-meta-date,
.woocommerce ul.products li.product .product-inner:hover .mf-product-details .colect-meta-sales,
.woocommerce ul.products li.product .product-inner:hover .mf-product-details .colect-review-meta {
  opacity: 1 !important;
  visibility: visible !important;
}

.woocommerce ul.products li.product .product-inner:hover .mf-product-details .colect-meta-date,
.woocommerce ul.products li.product .product-inner:hover .mf-product-details .colect-meta-sales,
.woocommerce ul.products li.product .product-inner:hover .mf-product-details .colect-meta-author {
  display: block !important;
}

/* ショートコード直下の ul.products など、どのラッパーでも効くように */
.mf-products-grid .product-inner:hover .mf-product-details,
ul.products .product-inner:hover .mf-product-details {
  z-index: 101 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.mf-products-grid .product-inner:hover .mf-product-details-hover,
ul.products .product-inner:hover .mf-product-details-hover {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 通常時は下線なし（Grid / shortcode 共通） */
.mf-products-grid .product-inner,
ul.products .product-inner {
  border: none;
  box-shadow: none;
}

/* 最近共有・ランキング：タイトルを1行に収め、あふれたら…で省略（カード端で突き抜けない） */
.colect-grid-recent .woocommerce ul.products li.product,
.colect-grid-rank .woocommerce ul.products li.product {
  overflow: hidden;
}
.colect-grid-recent .woocommerce ul.products li.product .product-inner,
.colect-grid-rank .woocommerce ul.products li.product .product-inner {
  overflow: hidden;
  min-width: 0;
}
.colect-grid-recent .woocommerce ul.products li.product .mf-product-details,
.colect-grid-rank .woocommerce ul.products li.product .mf-product-details {
  min-width: 0;
}
.colect-grid-recent .woocommerce ul.products li.product .woo-loop-product__title,
.colect-grid-rank .woocommerce ul.products li.product .woo-loop-product__title {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  min-height: auto !important;
  padding-bottom: 0 !important;
}
.colect-grid-recent .woocommerce ul.products li.product .woo-loop-product__title a,
.colect-grid-rank .woocommerce ul.products li.product .woo-loop-product__title a {
  display: block !important;
  max-width: 100%;
  min-width: 0;
}
.colect-grid-recent .woo-loop-product__title .colect-loop-title-text,
.colect-grid-rank .woo-loop-product__title .colect-loop-title-text {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 0;
}
.colect-grid-recent .woocommerce ul.products li.product .mf-product-content,
.colect-grid-rank .woocommerce ul.products li.product .mf-product-content {
  min-width: 0;
  overflow: hidden;
}

/* 最近共有・ランキング：画像とテキストを縦にまとめ離れないように */
.colect-grid-recent .woocommerce ul.products li.product .product-inner,
.colect-grid-rank .woocommerce ul.products li.product .product-inner {
  display: flex !important;
  flex-direction: column !important;
}
.colect-grid-recent .woocommerce ul.products li.product .product-inner .mf-product-details,
.colect-grid-rank .woocommerce ul.products li.product .product-inner .mf-product-details {
  flex: 0 0 auto !important;
}

/* hover時だけ下線を内側に描く（Grid / shortcode 共通） */
.mf-products-grid .product-inner:hover,
ul.products .product-inner:hover {
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.025);
}

.colect-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

/*ショートコードタイトル下線*/
.colect-section-title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.colect-section-all {
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
  white-space: nowrap;
}

.colect-section-all:hover {
  text-decoration: underline;
}

/* ==============================
   colect セクション・7列商品グリッド：レスポンシブ
   ============================== */

/* セクションヘッダー：タブレット以下で縦並び・フォント調整 */
@media (max-width: 768px) {
  .colect-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .colect-section-title h2 {
    font-size: 18px;
  }
  .colect-section-all {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .colect-section-title h2 {
    font-size: 16px;
  }
}

/* 商品ショートコード：横1行 scroll-snap（デスクトップ）→ 縦並び4枚（スマホ） */
/* セレクタは .colect-grid-recent / .colect-grid-rank 配下の .woocommerce を対象 */

/* 幅が狭いときだけ：はみ出しを隠さない＋画像の下にテキスト＋詳細が消えない・タグが画像から離れない */
/* 実際のHTMLは .woocommerce.columns-12 > ul.products.columns-12（colect-grid ラッパーなし）なので columns-12 を対象に追加 */
@media (max-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce.columns-12,
  .woocommerce.columns-12 ul.products,
  .elementor-wc-products ul.products,
  .elementor-products-grid ul.products {
    overflow: visible !important;
    grid-template-rows: none !important;
    grid-auto-rows: auto !important;
  }
  .woocommerce ul.products li.product,
  .woocommerce.columns-12 li.product,
  .elementor-wc-products ul.products li.product,
  .elementor-products-grid ul.products li.product {
    overflow: visible !important;
    min-height: auto !important;
  }
  .woocommerce ul.products li.product .product-inner,
  .woocommerce.columns-12 li.product .product-inner,
  .elementor-wc-products ul.products li.product .product-inner,
  .elementor-products-grid ul.products li.product .product-inner {
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    min-height: auto !important;
  }
  .woocommerce ul.products li.product .product-inner .mf-product-details,
  .woocommerce.columns-12 li.product .product-inner .mf-product-details,
  .elementor-wc-products ul.products li.product .product-inner .mf-product-details,
  .elementor-products-grid ul.products li.product .product-inner .mf-product-details {
    flex: 0 0 auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }
  .woocommerce ul.products li.product .product-inner .mf-product-thumbnail,
  .woocommerce.columns-12 li.product .product-inner .mf-product-thumbnail,
  .elementor-wc-products ul.products li.product .product-inner .mf-product-thumbnail,
  .elementor-products-grid ul.products li.product .product-inner .mf-product-thumbnail {
    flex: 0 0 auto !important;
  }
}

/* レビューの地域・校種（常時表示） */
.colect-review-meta {
  font-size: 12px;
  opacity: .75;
  margin-top: 6px;
}

.colect-download-box {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fafafa;
}

.colect-download-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #2c7be5;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
}

.colect-download-button:hover {
    background: #1a5fc4;
    color: #fff !important;
}

/* 種別アイコン（YouTube / ファイル / Drive） */
.colect-download-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.colect-download-icon svg {
    vertical-align: middle;
}
/* 種別説明ラベル（常に表示） */
.colect-download-type-label {
    font-size: 0.8em;
    opacity: 0.9;
}
.colect-embed-label {
    display: flex;
    align-items: center;
    gap: 6px;
}
.colect-embed-label .colect-download-icon {
    flex-shrink: 0;
}

.colect-login-required {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fafafa;
}

/* 「この教材を受け取る」ボタン：文字色を白抜きに */
button.colect-claim-free-download,
.colect-free-download-wrap .button.colect-claim-free-download {
    color: #fff !important;
}
button.colect-claim-free-download:hover,
button.colect-claim-free-download:focus,
.colect-free-download-wrap .button.colect-claim-free-download:hover,
.colect-free-download-wrap .button.colect-claim-free-download:focus {
    color: #fff !important;
}

/* ==============================
   フッター「最近見たアイテム」：全幅 + カードサイズ拡大
   ============================== */
#footer-recently-viewed.mf-recently-products.footer-recently-viewed {
  width: 100vw;
  max-width: none;
  margin-left: calc(-50vw + 50%);
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
#footer-recently-viewed .container.rv-container {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
#footer-recently-viewed .product-list {
  padding-left: 40px;
  padding-right: 40px;
}
#footer-recently-viewed .product-list li {
  padding: 0 8px;
}
#footer-recently-viewed .product-list li a {
  display: block;
}
#footer-recently-viewed .product-list li a img {
  width: 100%;
  height: auto;
  display: block;
}
#footer-recently-viewed .product-list .slick-arrow {
  z-index: 10;
}
#footer-recently-viewed .product-list .slick-prev-arrow {
  left: 4px;
}
#footer-recently-viewed .product-list .slick-next-arrow {
  right: 4px;
}
@media (max-width: 767px) {
  #footer-recently-viewed.mf-recently-products.footer-recently-viewed {
    padding-left: 16px;
    padding-right: 16px;
  }
  #footer-recently-viewed .product-list {
    padding-left: 30px;
    padding-right: 30px;
  }
}

/* Email欄は画面から見えないだけにする（値は送信される） */
#review_form .cr-review-form-email {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Dokan vendor sidebar (new UI) font size up */
body.dokan-dashboard .dokan-vendor-sidebar-scroll a.text-sm,
body.dokan-dashboard .dokan-vendor-sidebar-scroll a.text-sm span {
  font-size: 16px !important;
  line-height: 1.7 !important;
}

/* ついでにサイドバー内の文字全体も底上げ */
body.dokan-dashboard .dokan-vendor-sidebar-scroll {
  font-size: 16px !important;
}

/* アイコンも少し大きく（w-5/h-5を上書き） */
body.dokan-dashboard .dokan-vendor-sidebar-scroll svg.w-5.h-5 {
  width: 22px !important;
  height: 22px !important;
}

/* ドロップダウン矢印（w-4/h-4）も少し */
body.dokan-dashboard .dokan-vendor-sidebar-scroll svg.w-4.h-4 {
  width: 18px !important;
  height: 18px !important;
}

/* Dokan vendor sidebar (new UI) font size upここまで */

/* Dokan: Downloadable Options の File URL 行を安定させる */
body.dokan-dashboard .dokan-download-wrapper table.dokan-table td p{
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap; /* 画面が狭い時だけ折り返す */
}

body.dokan-dashboard .dokan-download-wrapper table.dokan-table td p input.wc_file_url{
  flex: 1 1 320px;
  min-width: 220px;
  width: auto !important; /* dokan-w8 等の幅指定を実質無効化 */
}

body.dokan-dashboard .dokan-download-wrapper table.dokan-table td p a.upload_file_button{
  flex: 0 0 auto;
  white-space: nowrap;
}

/* 教材ダウンロード設定（種別・表示名・URL）：ラベルと入力の整列（2行グリッドで表示名とURLを横揃え） */
.colect-download-table {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-collapse: separate;
  border-spacing: 0;
}
.colect-download-table thead,
.colect-download-table tbody,
.colect-download-table tfoot {
  display: contents;
}
.colect-download-table thead tr,
.colect-download-table tbody tr,
.colect-download-table tfoot tr {
  display: contents;
}
.colect-download-table thead th,
.colect-download-table tbody td,
.colect-download-table tfoot td {
  padding: 0.5em 8px 0.75em;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid #EDEDED;
}
.colect-download-table thead th {
  padding-bottom: 0.5em;
  border-bottom: 2px solid #EDEDED;
  font-weight: 600;
  vertical-align: top;
}
.colect-download-table tfoot td {
  border-bottom: none;
  padding-top: 0.75em;
}
.colect-download-table tfoot tr td {
  grid-column: 1 / -1;
}
/* 各行を2行グリッドに：1行目=種別・ボタン類、2行目=表示名・URL（横揃え） */
.colect-download-table .colect-row-grid {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.5em 0;
}
/* 1行目の高さを統一して、2行目（表示名・URL）の横揃えを確実に */
.colect-download-table .colect-row-1 {
  height: 2.5em;
  min-height: 2.5em;
  overflow: visible;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em;
}
.colect-download-table .colect-row-2 {
  display: flex;
  align-items: center;
}
.colect-download-table .colect-download-type-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 1em 1.5em;
}
.colect-download-table .colect-download-type-radios label {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  white-space: nowrap;
}
.colect-download-table .colect-download-name {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.colect-download-table .colect-download-url-cell .colect-row-2.colect-url-input-wrap {
  gap: 8px;
  flex-wrap: wrap;
}
.colect-download-table .colect-download-url-cell input.colect-download-url {
  flex: 1 1 200px;
  min-width: 180px;
}
/* 出金ページ：紫ボタン（button）の文字サイズを固定 */
body.dokan-dashboard #dokan-vendor-dashboard-root button.dokan-btn.text-sm{
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* 出金ページ：「設定」リンクだけ紫ボタン化 + 文字サイズ固定 */
body.dokan-dashboard #dokan-vendor-dashboard-root a.dokan-btn[href*="/dashboard/settings/payment/"]{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  border: 1px solid transparent;
  border-radius: 0.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);

  font-weight: 500;
  text-decoration: none;

  color: #fff;
  background-color: #7c3aed;
  padding: 0.5rem 1.25rem;

  font-size: 16px !important;
  line-height: 1.6 !important;
}

body.dokan-dashboard #dokan-vendor-dashboard-root a.dokan-btn[href*="/dashboard/settings/payment/"]:hover{
  background-color: #6d28d9;
}

/* コンタクトフォームを小さくする */
.wpcf7 {
  max-width: 680px;
  margin: 0 auto;
}

.wpcf7-submit {
  padding: 10px 24px;
  font-size: 14px;
}

/* よくあるご質問ページ(faqs)のsubmitボタンの文字を白抜き */
body.page-slug-faqs .wpcf7-submit,
body.page-slug-faqs .wpcf7 input[type="submit"] {
  color: #fff !important;
}

/*フッターロゴ*/
footer img {
  opacity: 0.85;
}

footer img:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  footer img {
    max-width: 140px;
  }
}

/* ==============================
   投稿カードグリッド [post_cards_grid]
   左端縦ライン（カテゴリー別色）。rows 指定時は JS で幅に合わせて列数・行数 fill。
   ============================== */
.post-cards-grid-wrap {
  width: 100%;
}
.post-cards-grid-more {
  margin-top: 1.5rem;
}
.post-cards-grid-more-link {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.375rem;
  text-align: center;
  color: var(--mf-primary-color, #0071df);
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: 4px;
}
.post-cards-grid-more-link:hover {
  opacity: 0.85;
  text-decoration: none;
}
.post-cards-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, 250px);
  justify-content: center;
}

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e1e1e1;
  border-left-width: 6px;
  border-left-style: solid;
  border-radius: 4px;
  overflow: hidden;
}
/* ライン色のとても薄い背景 */
.post-card-line-cat-a { border-left-color: #e74c3c; background-color: #fdf2f1; }
.post-card-line-cat-b { border-left-color: #2ecc71; background-color: #f0fdf4; }
.post-card-line-cat-c { border-left-color: #3498db; background-color: #eff6ff; }
.post-card-line-default { border-left-color: #999999; background-color: #f7f7f7; }
/* ショートコードで category_colors 指定時 */
.post-card-line-custom {
  border-left-color: var(--post-card-line-color, #999999);
  background-color: var(--post-card-line-bg, #f7f7f7);
}

.post-card-thumb {
  line-height: 0;
  overflow: hidden;
}
.post-card-thumb a {
  display: block;
}
.post-cards-grid .post-card-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.post-card-body {
  padding: 0.6rem 0.75rem;
  flex: 1;
}
.post-cards-grid .post-card .post-card-title {
  font-size: 1.375rem !important;
  margin: 0 0 0.5rem;
  line-height: 1.4;
  min-height: 4.2em; /* 3行分 (1.4 * 3) */
}
.post-cards-grid .post-card .post-card-title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.post-cards-grid .post-card .post-card-title a:hover {
  text-decoration: underline;
}
.post-cards-grid .post-card .post-card-excerpt {
  display: none;
}
.post-cards-grid .post-card .post-card-footer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
  font-size: 1.59375rem !important;
  color: #777;
}
.post-cards-grid .post-card .post-card-footer .post-card-date {
  font-style: normal;
}
.post-cards-grid .post-card .post-card-footer-sep {
  margin: 0 0.25rem;
}
.post-cards-grid .post-card .post-card-footer-cats a {
  color: #777;
  text-decoration: none;
}
/* カテゴリー名のバックをラインと同じ色・文字は白抜き */
.post-cards-grid .post-card.post-card-line-cat-a .post-card-footer-cats a {
  background-color: #e74c3c;
  color: #fff !important;
  padding: 0.1em 0.4em;
  border-radius: 2px;
}
.post-cards-grid .post-card.post-card-line-cat-b .post-card-footer-cats a {
  background-color: #2ecc71;
  color: #fff !important;
  padding: 0.1em 0.4em;
  border-radius: 2px;
}
.post-cards-grid .post-card.post-card-line-cat-c .post-card-footer-cats a {
  background-color: #3498db;
  color: #fff !important;
  padding: 0.1em 0.4em;
  border-radius: 2px;
}
.post-cards-grid .post-card.post-card-line-default .post-card-footer-cats a {
  background-color: #999999;
  color: #fff !important;
  padding: 0.1em 0.4em;
  border-radius: 2px;
}
.post-cards-grid .post-card.post-card-line-custom .post-card-footer-cats a {
  background-color: var(--post-card-line-color, #999999);
  color: #fff !important;
  padding: 0.1em 0.4em;
  border-radius: 2px;
}
.post-cards-grid .post-card .post-card-footer-cats a:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* ==============================
   利用者の声 [cusrev_reviews_grid]：ブラウザ幅いっぱい・余白詰め・文字サイズを「最近共有」に合わせる
   ============================== */
.cr-reviews-grid {
  max-width: 100%;
  width: 100%;
}
/* カード幅：固定値（px）。相対幅は使わない */
.cr-reviews-grid .cr-review-card {
  margin: 0 4px 8px 4px;
  min-width: 220px;
  width: 220px;
  max-width: 220px;
  box-sizing: border-box;
}
.cr-reviews-grid .cr-review-card .top-row {
  padding: 8px 0;
  margin: 0 10px;
  border-bottom-width: 1px;
}
.cr-reviews-grid .cr-review-card .top-row .reviewer .reviewer-name {
  font-size: 13px;
}
.cr-reviews-grid .cr-review-card .top-row .reviewer .reviewer-verified {
  font-size: 12px;
}
.cr-reviews-grid .cr-review-card .top-row .rating .datetime {
  font-size: 12px;
}
.cr-reviews-grid .cr-review-card .rating-row {
  padding: 8px 0;
  margin: 0 10px;
}
.cr-reviews-grid .cr-review-card .cr-comment-head-text {
  font-size: 14px;
  margin: 0 10px 6px 10px;
}
.cr-reviews-grid .cr-review-card .rating-row .rating-label {
  font-size: 12px;
  margin-left: 10px;
}
.cr-reviews-grid .cr-review-card .middle-row,
.cr-reviews-grid .cr-review-card .cr-incentivized-row {
  padding: 10px;
  margin: 0 10px 10px 10px;
  font-size: 12px;
}
.cr-reviews-grid .cr-review-card .middle-row .review-content,
.cr-reviews-grid .cr-review-card .middle-row .review-content p {
  font-size: 12px;
  line-height: 1.4;
}
.cr-reviews-grid .cr-review-card .middle-row .review-content {
  margin-bottom: 8px;
}
.cr-reviews-grid .cr-review-card .colect-review-meta {
  font-size: 12px;
  margin-top: 4px;
}
.cr-reviews-grid .cr-review-card .middle-row .datetime {
  font-size: 12px;
}
.cr-reviews-grid .cr-review-card .verified-review-row {
  margin-bottom: 8px;
}
.cr-reviews-grid .cr-review-card .review-product {
  padding: 8px;
  margin-top: 6px;
}
.cr-reviews-grid .cr-review-card .review-product .product-title {
  font-size: 12px;
}
.cr-reviews-grid .cr-review-card .top-row .review-thumbnail img {
  width: 36px;
  height: 36px;
}
/* グリッド内の replies などもコンパクトに */
.cr-reviews-grid .cr-review-card .cr-grid-replies-container {
  margin-top: 8px;
}
.cr-reviews-grid .cr-review-card .cr-grid-first-reply .cr-grid-reply-content {
  font-size: 12px;
}

/* ==============================
   モバイル版ヘッダー：ハンバーガー＋検索窓を表示
   （子テーマの template-parts/mobile/header-v1.php, header-v2.php 用）
   ============================== */
.mobile-version .header-mobile-v1 .header-mobile-with-search,
.mobile-version .header-mobile-v2 .header-mobile-with-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.mobile-version .header-mobile-with-search .header-logo {
  order: 1;
  flex: 0 0 50%;
  max-width: 50%;
}
.mobile-version .header-mobile-v2 .header-mobile-with-search .header-title {
  order: 1;
  flex: 1 1 0;
  min-width: 0;
}
/* モバイル版ではメニューは下のナビから開くため、ヘッダーのハンバーガーは非表示 */
.mobile-version .header-mobile-with-search .header-hamburger-wrap {
  display: none !important;
}
.mobile-version .header-mobile-with-search .header-extras {
  order: 3;
  flex: 1 1 0;
  min-width: 0;
  justify-content: flex-end;
  padding-right: 15px;
}
.mobile-version .header-mobile-with-search .header-search-wrap {
  order: 4;
  flex: 0 0 100%;
  max-width: 100%;
  margin-top: 8px;
  padding-left: 15px;
  padding-right: 15px;
}
.mobile-version .header-mobile-with-search .header-search-wrap .product-extra-search {
  width: 100%;
}

/* ==============================
   ベンダー商品登録：教材・ツール用に不要項目を非表示
   ダウンロード＋バーチャル固定・0円固定（PHPで保存時に強制）
   ============================== */
/* ファイルアップロード（教材内容）は常に表示（ダウンロードはPHPで強制のため） */
.dokan-product-edit .dokan-download-options,
.dokan-product-edit .dokan-download-options.show_if_downloadable {
  display: block !important;
}
/* ダウンロード回数制限・有効期限はUI非表示（無制限・無期限で保存時に固定） */
.dokan-product-edit .dokan-download-options .dokan-download-wrapper > .dokan-clearfix {
  display: none !important;
}
/* 商品を保存ボタン：上の要素との間隔 */
.dokan-product-edit form #publish.dokan-btn {
  margin-top: 1.5em !important;
}
.dokan-product-edit .dokan-product-type-container,
.dokan-product-edit .show_if_simple .dokan-price-container,
.dokan-product-edit .show_if_simple .sale_price_dates_fields,
.dokan-product-edit .dokan-product-less-price-alert,
.dokan-product-edit .dokan-product-inventory,
.dokan-product-edit .dokan-other-options,
.dokan-product-edit .dokan-badges-options,
.dokan-product-edit .dokan-fbt-options {
  display: none !important;
}
/* ブランド（product_brand）の .dokan-form-group を非表示 */
.dokan-product-edit .dokan-form-group:has(label[for="product_brand"]),
.dokan-product-edit .dokan-form-group:has(#product_brand) {
  display: none !important;
}

/* 教材・ツール一覧ページ：フィルター欄のブランド・タグ・説明は表示しない（商品登録フォームのタグは残す） */
.dokan-product-date-filter .dokan-form-group:has(#product_brand),
.dokan-product-date-filter .dokan-form-group:has([name="product_brand"]),
.dokan-product-date-filter .dokan-form-group:has(#product_tag),
.dokan-product-date-filter .dokan-form-group:has([name="product_tag[]"]),
.dokan-product-date-filter .dokan-form-group:has(label[for="product_brand"]),
.dokan-product-date-filter .dokan-form-group:has(label[for*="product_tag"]),
.dokan-product-date-filter .dokan-form-group:has(label[for="post_excerpt"]),
.dokan-product-date-filter .dokan-form-group:has(label[for="post_content"]),
.dokan-product-date-filter .dokan-form-group:has(#post-excerpt),
.dokan-product-date-filter .dokan-form-group:has(#post_content) {
  display: none !important;
}

/* 一覧ページ（商品0件時の空状態の下など）に同じフォームが出る場合：ブランド・タグ・説明を非表示 */
.dokan-product-listing .dokan-form-group:has(#product_brand),
.dokan-product-listing .dokan-form-group:has([name="product_brand"]),
.dokan-product-listing .dokan-form-group:has(label[for="product_brand"]),
.dokan-product-listing .dokan-form-group:has(#product_tag_search),
.dokan-product-listing .dokan-form-group:has([name="product_tag[]"]),
.dokan-product-listing .dokan-form-group:has(label[for="product_tag_search"]),
.dokan-product-listing .dokan-form-group:has(label[for*="product_tag"]),
.dokan-product-listing .dokan-form-group textarea[name="post_excerpt"],
.dokan-product-listing .dokan-form-group:has(textarea[name="post_excerpt"]) {
  display: none !important;
}

/* 新規追加ポップアップ内：ブランドと説明のみ非表示（タグは登録用に残す） */
.dokan-add-new-product-popup .dokan-form-group:has(#product_brand),
.dokan-add-new-product-popup .dokan-form-group:has([name="product_brand"]),
.dokan-add-new-product-popup .dokan-form-group:has(label[for="product_brand"]),
.dokan-add-new-product-popup .dokan-form-group:has(textarea[name="post_excerpt"]),
.dokan-add-new-product-popup .dokan-form-group:has(label[for="post_excerpt"]) {
  display: none !important;
}

/* ==============================
   co-lect ベンダーダッシュボード：無料教材共有のためお金関連を非表示
   表示するのは「日付範囲」と「利用者数チャート」のみ
   ============================== */
.dokan-dashboard-content .dokan-analytics-vendor-earning-section {
  display: none !important;
}
.dokan-dashboard-content .woocommerce-dashboard__store-performance {
  display: none !important;
}
/* チャート：売上高チャート（1つ目）のみ非表示、利用者数チャート（2つ目）は表示 */
.dokan-dashboard-content .woocommerce-dashboard__dashboard-charts .woocommerce-dashboard__columns > div:first-child {
  display: none !important;
}
/* 利用者数チャートのみ残るため、1列で幅を有効に使う */
.dokan-dashboard-content .woocommerce-dashboard__dashboard-charts .woocommerce-dashboard__columns {
  grid-template-columns: 1fr;
}
.dokan-dashboard-content .woocommerce-dashboard__dashboard-charts .woocommerce-dashboard__columns > div:nth-child(2) {
  grid-column: 1 / -1;
  grid-row: 1 / 2;
}

/* ==============================
   co-lect 派生元の教材・ツール選択UI（一つのブロックとして表示）
   ============================== */
.colect-derived-from-wrap {
  margin: 1em 0;
  padding: 1.25em;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-sizing: border-box;
}
.colect-derived-from-wrap .colect-derived-from-block {
  margin: 0;
}
.colect-derived-from-wrap .form-label {
  margin-bottom: 0.25em;
}
.colect-derived-from-desc {
  margin-bottom: 1em;
}
.colect-derived-from-preview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1em;
  padding: 10px 12px;
  background: #f0f4f8;
  border-radius: 6px;
}
.colect-derived-from-clear {
  flex-shrink: 0;
}
.colect-derived-from-select-area {
  margin-top: 0.5em;
}
.colect-derived-from-section-title {
  font-weight: 600;
  font-size: 13px;
  margin: 1em 0 0.25em;
  color: #333;
}
.colect-derived-from-section-title:first-child {
  margin-top: 0;
}
.colect-derived-from-section-desc {
  font-size: 12px;
  color: #666;
  margin: 0 0 8px;
}
.colect-derived-from-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.colect-derived-from-search-row .dokan-form-control {
  max-width: 280px;
  flex: 1;
  min-width: 160px;
}
.colect-derived-from-search-row .button {
  flex-shrink: 0;
}
.colect-derived-from-message {
  font-size: 12px;
  color: #666;
  margin: 6px 0;
  min-height: 1.4em;
}
.colect-derived-from-message-error {
  color: #b00;
}
.colect-derived-from-block .colect-derived-from-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 24px;
}
.colect-derived-from-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  max-width: 280px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.colect-derived-from-item:hover {
  border-color: var(--mf-primary-color, #0071df);
  box-shadow: 0 0 0 1px var(--mf-primary-color, #0071df);
}
.colect-derived-from-thumb {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
}
.colect-derived-from-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.colect-derived-from-thumb-placeholder {
  display: block;
}
.colect-derived-from-item-title {
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.colect-derived-from-pager {
  margin-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.colect-derived-from-pager-btn {
  padding: 4px 10px;
  font-size: 12px;
}
.colect-derived-from-list.colect-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* 商品ページ：派生元の左の縦線を非表示 */
.woocommerce div.product .mf-summary-header .mf-summary-meta:after {
  display: none !important;
}

/* 商品ページ：1行目＝作者（左）・ダウンロード数（右）、2行目＝派生元、3行目＝派生先、その下＝改変OK塊 */
.mf-summary-header .colect-total-download-count-header {
  display: inline-block;
  margin-left: auto;
  font-size: 0.95em;
  color: #444;
}
.mf-summary-header .colect-derived-meta-block {
  width: 100%;
  flex-basis: 100%;
  margin-top: 0.5em;
}
.mf-summary-header .colect-derived-from-inline {
  display: block;
  margin-bottom: 0.25em;
  font-size: 0.95em;
}
.mf-summary-header .colect-derived-from-inline a {
  color: var(--mf-link-color, #2c5282);
}
.mf-summary-header .colect-derived-children-inline {
  display: block;
  margin-top: 0;
  font-size: 0.95em;
  color: #444;
}
.mf-summary-header .colect-derived-children-inline a {
  color: var(--mf-link-color, #2c5282);
}

/* 商品ページ：金額を非表示 */
.single-product .summary .price,
.single-product .mf-summary-header + .summary .price,
.single-product .entry-summary .price {
  display: none !important;
}

/* タブ「派生関係」 */
.colect-derivation-tab {
  padding: 1em 0;
}
.colect-derivation-tab-desc {
  margin-bottom: 1.5em;
  color: #555;
}
.colect-derivation-svg-wrap {
  overflow: hidden;
  width: 100%;
  min-height: 560px;
  height: 85vh;
  cursor: grab;
  margin: 1em 0;
  position: relative;
  background: #f8f9fb;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}
.colect-derivation-svg-wrap:active {
  cursor: grabbing;
}
.colect-derivation-reset-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.colect-derivation-reset-btn:hover {
  background: #f5f5f5;
  border-color: #999;
}
.colect-derivation-svg-wrap .colect-derivation-svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
}
.colect-derivation-svg-wrap {
  pointer-events: auto;
}
.colect-derivation-node-link {
  text-decoration: none;
  cursor: pointer;
}
.colect-derivation-node-link:hover rect {
  stroke: var(--mf-primary-color, #0071df);
  stroke-width: 2;
}
.colect-derivation-node-current rect {
  stroke-width: 2;
}
.colect-derivation-full-link {
  margin-top: 1.5em;
}
.colect-derivation-tab-empty {
  color: #666;
  font-style: italic;
}
.colect-derivation-more-node:hover rect {
  stroke: #3b82f6;
  fill: #f0f6ff;
}
.colect-derivation-more-node.colect-expanding {
  opacity: 0.6;
  pointer-events: none;
}
.colect-collapse-btn:hover rect {
  fill: #e2e8f0;
  stroke: #64748b;
}

/* ==============================
   become-a-vendor ページ：基本カラー青、CTAのみ赤、リスト中央寄せ
   ============================== */
body.page-id-1955 .elementor {
  /* アクセントを青に（共有を始めるボタンは下で上書き） */
  --e-global-color-accent: #2563eb;
}
/* ページ内のアイコン・SVGはすべて青（ボタンは除く） */
body.page-id-1955 .elementor .elementor-icon-list-icon .e-font-icon-svg,
body.page-id-1955 .elementor .elementor-icon-list-icon svg,
body.page-id-1955 .elementor .mf-icon svg,
body.page-id-1955 .elementor .mf-icon .e-font-icon-svg {
  fill: #2563eb !important;
  color: #2563eb !important;
}
body.page-id-1955 .elementor .elementor-widget-divider .elementor-divider-separator {
  border-top-color: #2563eb;
}
/* アイコンリスト（チェックマーク含む）はすべて青 */
body.page-id-1955 .elementor .elementor-widget-icon-list .elementor-icon-list-icon i,
body.page-id-1955 .elementor .elementor-widget-icon-list .elementor-icon-list-icon svg {
  color: #2563eb !important;
  fill: #2563eb !important;
}
/* アイコンボックス（教材・校務・工夫など）のアイコンは青 */
body.page-id-1955 .elementor .mf-elementor-icon-box .box-icon i,
body.page-id-1955 .elementor .mf-elementor-icon-box .box-icon svg,
body.page-id-1955 .elementor .mf-elementor-icon-box .mf-icon {
  color: #2563eb !important;
  fill: #2563eb !important;
}
body.page-id-1955 .elementor .elementor-widget-toggle .elementor-tab-title.elementor-active {
  color: #2563eb;
}
body.page-id-1955 .elementor .elementor-widget-toggle .elementor-tab-title.elementor-active .elementor-accordion-icon {
  color: #2563eb;
}
body.page-id-1955 .elementor .elementor-widget-text-editor [style*="color:#AF4848"],
body.page-id-1955 .elementor .elementor-widget-text-editor .fa-user-secret,
body.page-id-1955 .elementor .elementor-widget-text-editor .fa-gift,
body.page-id-1955 .elementor .elementor-widget-text-editor .fa-lock,
body.page-id-1955 .elementor .elementor-widget-text-editor .fa-th-large,
body.page-id-1955 .elementor .elementor-widget-text-editor .fa-credit-card,
body.page-id-1955 .elementor .elementor-widget-text-editor .fa-download {
  color: #2563eb !important;
}
/* 安心して使える理由：アイコンが &nbsp; で消えている3か所を CSS で修復 */
body.page-id-1955 .elementor-element-ek98ubs div[style*="margin-bottom: 10px"],
body.page-id-1955 .elementor-element-c04djpg div[style*="margin-bottom: 10px"],
body.page-id-1955 .elementor-element-dhacrf7 div[style*="margin-bottom: 10px"] {
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-size: 28px !important;
  color: #2563eb !important;
}
body.page-id-1955 .elementor-element-ek98ubs div[style*="margin-bottom: 10px"]::before {
  content: "\f06b"; /* fa-gift（全て無料） */
}
body.page-id-1955 .elementor-element-c04djpg div[style*="margin-bottom: 10px"]::before {
  content: "\f009"; /* fa-th-large（教員向けのカテゴリ設計） */
}
body.page-id-1955 .elementor-element-dhacrf7 div[style*="margin-bottom: 10px"]::before {
  content: "\f09d"; /* fa-credit-card（クレジットカード不要） */
}
/* 修復したアイコン用の &nbsp; は非表示にして ::before だけ見せる */
body.page-id-1955 .elementor-element-ek98ubs div[style*="margin-bottom: 10px"],
body.page-id-1955 .elementor-element-c04djpg div[style*="margin-bottom: 10px"],
body.page-id-1955 .elementor-element-dhacrf7 div[style*="margin-bottom: 10px"] {
  font-size: 0 !important;
}
body.page-id-1955 .elementor-element-ek98ubs div[style*="margin-bottom: 10px"]::before,
body.page-id-1955 .elementor-element-c04djpg div[style*="margin-bottom: 10px"]::before,
body.page-id-1955 .elementor-element-dhacrf7 div[style*="margin-bottom: 10px"]::before {
  font-size: 28px !important;
}
/* クロージングCTA：薄いグレー帯（赤ボタンが目立つように） */
body.page-id-1955 .elementor .elementor-top-section:last-of-type {
  background-color: #e0e0e0 !important;
}
body.page-id-1955 .elementor .elementor-top-section:last-of-type .elementor-heading-title {
  color: #333 !important;
}
/* 一番下の「共有してみる」ボタンも赤に */
body.page-id-1955 .elementor .elementor-top-section:last-of-type .elementor-button {
  background-color: #AF4848 !important;
  color: #fff !important;
}
/* 「共有を始める」ボタンだけ赤のまま（Hero＝最初のセクション内のボタン） */
body.page-id-1955 .elementor .elementor-top-section:first-of-type .elementor-widget-button .elementor-button {
  background-color: #AF4848 !important;
  color: #fff !important;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
/* ヒーロー「まずは教材を探す」（緑）→ ホバーも緑系 */
body.page-id-1955 .elementor .elementor-top-section:first-of-type .elementor-widget-button .elementor-button[href*="/shop/"]:hover {
  background-color: #43a047 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 160, 71, 0.4);
}
/* ヒーロー「教材を共有する」（赤）→ ホバーも赤系 */
body.page-id-1955 .elementor .elementor-top-section:first-of-type .elementor-widget-button .elementor-button[href*="become-a-vendor"]:hover {
  background-color: #c45a5a !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(175, 72, 72, 0.4);
}

/* 「ただのファイル置き場じゃない」直下の「教材が育つ仕組み…」をテーマカラーに（インライン style を上書き） */
body.page-id-1955 .elementor .elementor-element-acicxo0,
body.page-id-1955 .elementor .elementor-element-acicxo0 p {
  color: var(--e-global-color-accent, #2563eb) !important;
}

/* こういう人に、共有してほしい：リストを中央寄せ */
body.page-id-1955 .elementor .elementor-widget-icon-list {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
body.page-id-1955 .elementor .elementor-widget-icon-list .elementor-icon-list-items {
  display: inline-block;
  width: 100%;
}
/* よくある質問：トグルを中央寄せ */
body.page-id-1955 .elementor .elementor-widget-toggle {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* アカウント詳細：パスワード変更欄を非表示（マジックリンク方式のため不要） */
/* 元に戻す場合はこのブロックを削除する */
.woocommerce-EditAccountForm fieldset,
form.edit-account > fieldset {
  display: none !important;
}

/* ==============================
   ウィッシュリスト：ボタン横に件数表示（ハート＋件数）
   ============================== */
.wcboost-wishlist-button-with-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.wcboost-wishlist-button-with-count .wcboost-wishlist-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
/* ボタン状態テキスト（ウィッシュリスト追加済みの "Remove from wishlist" 等）を非表示 */
.wcboost-wishlist-button-with-count .wcboost-wishlist-button__text {
  display: none !important;
}
/* WooCommerce が a.button.added::after で表示するチェックマーク（\e017）を非表示 */
.wcboost-wishlist-button.added::after {
  display: none !important;
}
.wcboost-wishlist-button-with-count .wcboost-wishlist-count.mini-item-counter--wishlist {
  min-width: 1.4em;
  padding: 2px 6px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 10px;
  background-color: #9ca3af;
  color: #fff !important;
  font-weight: 600;
}
/* ウィッシュリスト追加ボタン：ハートを確実に表示 */
.wcboost-wishlist-button__icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 1.25em;
  min-height: 1.25em;
}
.wcboost-wishlist-button__icon svg.wcboost-wishlist-heart-icon {
  width: 1.25em;
  height: 1.25em;
  min-width: 20px;
  min-height: 20px;
  vertical-align: middle;
  flex-shrink: 0;
}
.products .product .wcboost-wishlist-button-with-count {
  margin-top: 4px;
}
/* 商品カード：ウィッシュリストボタンの青い枠を消し、ハートを淡いピンクに */
.colect-product-card-actions .colect-product-card-wishlist .wcboost-wishlist-button-with-count .wcboost-wishlist-button,
.colect-product-card-actions .colect-product-card-wishlist .wcboost-wishlist-button-with-count a.wcboost-wishlist-button {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #e8b4bc !important;
}
.colect-product-card-actions .colect-product-card-wishlist .wcboost-wishlist-button-with-count .wcboost-wishlist-button:focus,
.colect-product-card-actions .colect-product-card-wishlist .wcboost-wishlist-button-with-count a.wcboost-wishlist-button:focus {
  outline: none !important;
  box-shadow: none !important;
}
.colect-product-card-actions .colect-product-card-wishlist .wcboost-wishlist-button__icon svg.wcboost-wishlist-heart-icon {
  stroke: currentColor !important;
  fill: #e8b4bc !important;
  color: #e8b4bc;
}
.colect-product-card-actions .colect-product-card-wishlist .wcboost-wishlist-button-with-count .wcboost-wishlist-button:hover .wcboost-wishlist-heart-icon,
.colect-product-card-actions .colect-product-card-wishlist .wcboost-wishlist-button-with-count a.wcboost-wishlist-button:hover .wcboost-wishlist-heart-icon {
  stroke: currentColor !important;
  fill: #d498a0 !important;
}
.colect-product-card-actions .colect-product-card-wishlist .wcboost-wishlist-button-with-count .wcboost-wishlist-button:hover,
.colect-product-card-actions .colect-product-card-wishlist .wcboost-wishlist-button-with-count a.wcboost-wishlist-button:hover {
  color: #d498a0 !important;
}
/* 商品ループ全体：.colect-product-card-* がない場合もハートを淡いピンクに */
.products .product .wcboost-wishlist-button-with-count a.wcboost-wishlist-button {
  color: #e8b4bc !important;
}
.products .product .wcboost-wishlist-button-with-count a.wcboost-wishlist-button:hover {
  color: #d498a0 !important;
}
.products .product .wcboost-wishlist-button__icon svg.wcboost-wishlist-heart-icon {
  stroke: currentColor !important;
  fill: #e8b4bc !important;
}
.products .product .wcboost-wishlist-button-with-count a.wcboost-wishlist-button:hover .wcboost-wishlist-heart-icon {
  fill: #d498a0 !important;
}
/* 商品一覧：ハートアイコンを10px上にずらす */
.products .product .wcboost-wishlist-button__icon {
  transform: translateY(-5px) translateX(5px);
}
.single-product .wcboost-wishlist-button-with-count {
  margin-left: 8px;
}
/* 「この教材を受け取る」の右隣：ウィッシュリスト＝ヘッダーアイコンと同じ30px・位置は少し上寄せ */
.colect-claim-and-wishlist-row {
  align-items: flex-end;
}
.colect-claim-and-wishlist-row .wcboost-wishlist-button-with-count {
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 2px;
  position: relative;
  display: inline-block;
  width: 48px;
  height: 48px;
}
.colect-claim-and-wishlist-row .wcboost-wishlist-button-with-count .wcboost-wishlist-button,
.colect-claim-and-wishlist-row .wcboost-wishlist-button-with-count a.wcboost-wishlist-button {
  display: flex !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  align-items: center;
  justify-content: center;
  color: #e8b4bc !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  text-decoration: none !important;
  box-sizing: border-box;
}
.colect-claim-and-wishlist-row .wcboost-wishlist-button-with-count .wcboost-wishlist-button:hover,
.colect-claim-and-wishlist-row .wcboost-wishlist-button-with-count a.wcboost-wishlist-button:hover {
  color: #d498a0 !important;
  background: transparent !important;
}
.colect-claim-and-wishlist-row .wcboost-wishlist-button-with-count .wcboost-wishlist-button__text {
  display: none !important;
}
.colect-claim-and-wishlist-row .wcboost-wishlist-button-with-count .wcboost-wishlist-button__icon {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* ヘッダーの .extra-icon と同じ 30px・ハートはピンク塗りつぶし（一覧と同じ） */
.colect-claim-and-wishlist-row .wcboost-wishlist-button-with-count .wcboost-wishlist-button__icon svg.wcboost-wishlist-heart-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  display: block;
  vertical-align: middle;
  stroke: currentColor !important;
  fill: #e8b4bc !important;
  color: #e8b4bc;
}
.colect-claim-and-wishlist-row .wcboost-wishlist-button-with-count .wcboost-wishlist-button:hover .wcboost-wishlist-heart-icon,
.colect-claim-and-wishlist-row .wcboost-wishlist-button-with-count a.wcboost-wishlist-button:hover .wcboost-wishlist-heart-icon {
  color: #d498a0 !important;
  fill: #d498a0 !important;
}
/* 数字バッジ：ハートマークと重ねて、ハート内部の右下に表示（48px枠内で30pxハートの右下） */
.colect-claim-and-wishlist-row .wcboost-wishlist-button-with-count .wcboost-wishlist-count.mini-item-counter--wishlist {
  position: absolute;
  bottom: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 11px;
  line-height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-sizing: border-box;
}

/* ==============================
   教材いいね（👍＋バッジ）
   ============================== */
.colect-product-like-wrap {
  display: inline-block;
}
.colect-product-like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #333;
  cursor: pointer;
  font-size: inherit;
  line-height: 1;
}
.colect-product-like-button:hover {
  color: #000;
}
.colect-product-like-button:disabled {
  opacity: 0.7;
  cursor: wait;
}
.colect-product-like-icon {
  display: inline-block;
  font-style: normal;
  user-select: none;
}
.colect-product-like-badge {
  min-width: 1.4em;
  padding: 2px 6px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 10px;
  background-color: #9ca3af;
  color: #fff !important;
  font-weight: 600;
  margin-left: 4px;
}

/* 個別ページ：ウィッシュリストの右横（同じ行・同じトーン） */
.colect-claim-and-wishlist-row .colect-product-like-wrap {
  display: inline-block;
  position: relative;
  width: 48px;
  height: 48px;
}
.colect-claim-and-wishlist-row .colect-product-like-button {
  width: 48px;
  height: 48px;
  font-size: 24px;
}
/* いいねアイコンをハートと同じ30px高で中央揃えし、ベースラインを揃える */
.colect-claim-and-wishlist-row .colect-product-like-button .colect-product-like-icon {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.colect-claim-and-wishlist-row .colect-product-like-button .colect-product-like-badge {
  position: absolute;
  bottom: 6px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 11px;
  line-height: 18px;
  border-radius: 9px;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 一覧カード：カード右下 */
.colect-product-card-like {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}
.woocommerce ul.products li.product .colect-product-card-like .colect-product-like-button {
  font-size: 18px;
}
.woocommerce ul.products li.product .colect-product-card-like .colect-product-like-badge {
  margin-left: 4px;
}

/* 最近共有・ダウンロードランキングのカードにもいいね（カード右下） */
.colect-grid-recent .colect-product-card-like,
.colect-grid-rank .colect-product-card-like {
  margin-top: 6px;
  display: flex !important;
  justify-content: flex-end;
}
.colect-grid-recent .colect-product-card-like .colect-product-like-button,
.colect-grid-rank .colect-product-card-like .colect-product-like-button {
  font-size: 18px;
}
.colect-grid-recent .colect-product-card-like .colect-product-like-badge,
.colect-grid-rank .colect-product-card-like .colect-product-like-badge {
  margin-left: 4px;
}

/* 投稿カード・個別投稿のいいね（投稿 post 用） */
.post-card-footer .post-card-like .colect-product-like-button {
  font-size: 18px;
}
.post-card-footer .post-card-like .colect-product-like-badge {
  margin-left: 4px;
}
.colect-post-like-single-wrap .colect-product-like-button {
  font-size: 22px;
}
.colect-post-like-single-wrap .colect-product-like-badge {
  margin-left: 4px;
}

/* ==============================
   記事一覧：タイトル（フォント小さめ・最大3行・省略…・3行分の高さを確保）
   ============================== */
.blog-wapper .entry-title {
	font-size: 17px !important;
	line-height: 1.4 !important;
	margin: 0 0 20px;
	min-height: 4.2em !important; /* 3行分 (1.4 * 3) */
}
.blog-wapper .entry-title a {
	display: -webkit-box !important;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.4;
}

/* ==============================
   記事一覧：リンク形式も標準と同じ表示（サムネ＋右にタイトル・抜粋・日付）
   ============================== */
.blog-wapper.post-item-list.format-link {
	display: flex;
}
.blog-wapper.post-item-list.format-link .entry-header {
	width: 65.66%;
	float: left;
	background-color: transparent;
	padding: 0;
}
.blog-wapper.post-item-list.format-link .entry-format {
	margin-bottom: 0;
}
.blog-wapper.post-item-list.format-link .entry-content {
	display: flex !important;
	width: 34.33%;
	float: right;
	padding: 60px;
	background-color: #f2f2f2;
	justify-content: space-between;
	flex-direction: column;
}
.blog-wapper.post-item-list.format-link.blog-no-image .entry-content {
	width: 100%;
}
.blog-wapper.post-item-list.format-link.blog-no-image .entry-header {
	display: none;
}

.blog-wapper.post-item-small-thumb.format-link .entry-header {
	width: 33.33%;
	padding-right: 15px;
	background-color: transparent;
	border-bottom: none;
}
.blog-wapper.post-item-small-thumb.format-link .entry-content {
	display: block !important;
	width: 66.66%;
}

/* ============================================================
   ハートアイコン ON/OFF 状態切り替え
   OFF: グレーアウトライン  ON: ピンク塗りつぶし ＋ ぽわんアニメ
   ============================================================ */
@keyframes heart-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ON状態（追加済み）：ピンク塗りつぶし＋追加時ぽわんアニメ */
svg.wcboost-wishlist-heart-icon--filled {
  fill: #e8b4bc !important;
  stroke: #e8b4bc !important;
  animation: heart-pop 0.3s ease-out;
  transform-origin: center;
}

/* OFF状態（未追加）：グレーアウトライン
   ※ 既存ルールより詳細度を高めて全コンテキストで上書き */
svg.wcboost-wishlist-heart-icon--normal,
.wcboost-wishlist-button__icon svg.wcboost-wishlist-heart-icon--normal,
.products .product .wcboost-wishlist-button__icon svg.wcboost-wishlist-heart-icon--normal,
.colect-product-card-actions .colect-product-card-wishlist .wcboost-wishlist-button__icon svg.wcboost-wishlist-heart-icon--normal,
.colect-claim-and-wishlist-row .wcboost-wishlist-button-with-count .wcboost-wishlist-button__icon svg.wcboost-wishlist-heart-icon--normal {
  fill: none !important;
  stroke: #aaa !important;
}

/* OFF状態のホバー：追加後のプレビューとして薄いピンク */
.wcboost-wishlist-button:hover svg.wcboost-wishlist-heart-icon--normal,
.products .product .wcboost-wishlist-button-with-count a.wcboost-wishlist-button:hover svg.wcboost-wishlist-heart-icon--normal,
.colect-product-card-actions .colect-product-card-wishlist .wcboost-wishlist-button-with-count a.wcboost-wishlist-button:hover svg.wcboost-wishlist-heart-icon--normal {
  fill: #e8b4bc !important;
  stroke: #e8b4bc !important;
}

/* 個別記事：編集リンク */
.colect-edit-post-link-wrap {
  text-align: right;
  margin-bottom: 1em;
}
.colect-edit-post-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.85em;
  color: #555;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.colect-edit-post-link:hover {
  background: #f5f5f5;
  border-color: #999;
  color: #333;
  text-decoration: none;
}

/* ==============================
   ブログ専用検索フォーム（記事一覧の下）
   ============================== */
/* 記事一覧：見出し直下に配置した検索バー */
.martfury-child-blog-search-below-header {
  margin-bottom: 1rem;
}
.martfury-child-blog-search-below-header .martfury-child-blog-search-form {
  max-width: 100%;
}

.martfury-child-blog-search-form {
  display: inline-flex;
  align-items: center;
  max-width: 560px;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}
.martfury-child-blog-search-form .search-field {
  flex: 1;
  min-width: 120px;
  padding: 8px 12px;
  border: none;
  font-size: 1rem;
}
.martfury-child-blog-search-form .search-field:focus {
  outline: none;
}
.martfury-child-blog-search-form .search-submit {
  padding: 8px 12px;
  border: none;
  background: var(--mf-primary-color, #0071df);
  color: #fff;
  cursor: pointer;
}
.martfury-child-blog-search-form .search-submit:hover {
  opacity: 0.9;
}
.martfury-child-blog-search-form .search-submit .icon-magnifier {
  font-size: 1.1rem;
}
@media (max-width: 767px) {
  .martfury-child-blog-search-form {
    max-width: 100%;
  }
}

/* ==============================
   トップバー：バーとしてのデザイン + 教材共有 / 放課後相談室（現在地）+ すぐ共有
   ============================== */
#topbar.colect-topbar {
  min-height: 10px;
  padding: 0;
  background: #2d2d2d;
  border-bottom: 1px solid #1a1a1a;
  box-shadow: none;
}
#topbar.colect-topbar > div {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
#topbar.colect-topbar,
#topbar.colect-topbar a {
  color: #fff;
}
#topbar.colect-topbar a:hover {
  color: var(--mf-primary-color, #0071df);
}
#topbar.colect-topbar .topbar-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-left: -6px;
  margin-right: -6px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0;
}
#topbar.colect-topbar .topbar-row > [class*="col-"] {
  padding-left: 6px;
  padding-right: 6px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
#topbar.colect-topbar .topbar-colect-nav,
#topbar.colect-topbar .topbar-right {
  display: flex;
  align-items: center;
}
#topbar.colect-topbar .topbar-right {
  justify-content: flex-end;
}
/* 並び: 教材共有 [すぐ共有] | 放課後相談室 [すぐ相談] */
#topbar .colect-topbar-nav--pairs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 0.2em;
  font-size: 1.25rem;
  line-height: 1;
  padding: 6px 0;
  margin: 0;
}
#topbar .colect-topbar-pair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
/* セクションリンク：白ボタン・黒文字（#topbar.colect-topbar a の白より優先するため a 付きで指定） */
#topbar.colect-topbar a.colect-topbar-nav-link {
  padding: 0.45em 0.75em;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  background: #fff;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}
#topbar.colect-topbar a.colect-topbar-nav-link:hover {
  color: #1a1a1a;
  background: #e8e8e8;
  text-decoration: none;
}
#topbar.colect-topbar a.colect-topbar-nav-link.current {
  font-weight: 700;
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
}
#topbar.colect-topbar a.colect-topbar-nav-link.current:hover {
  background: #e8e8e8;
  color: #1a1a1a;
}
/* 現在地「今ここ」：●ドット頭だけ、後ろも同幅スペースで左右対称 */
#topbar.colect-topbar a.colect-topbar-nav-link::before,
#topbar.colect-topbar a.colect-topbar-nav-link::after {
  content: '●';
  display: inline-block;
  font-size: 0.85em;
  vertical-align: 0.05em;
  line-height: 1;
  color: transparent;
}
#topbar.colect-topbar a.colect-topbar-nav-link::before {
  margin-right: 0.35em;
}
#topbar.colect-topbar a.colect-topbar-nav-link::after {
  margin-left: 0.35em;
}
#topbar.colect-topbar .colect-topbar-pair:first-child a.colect-topbar-nav-link.current::before {
  color: #AF4848;
}
#topbar.colect-topbar .colect-topbar-pair:nth-child(3) a.colect-topbar-nav-link.current::before {
  color: var(--mf-primary-color, #0071df);
}
/* 左端の色ラインでセクションを示す（教材共有＝赤・放課後相談室＝青） */
#topbar.colect-topbar .colect-topbar-pair:first-child a.colect-topbar-nav-link {
  border-left: 3px solid #AF4848;
  padding-left: calc(0.75em + 2px);
}
#topbar.colect-topbar .colect-topbar-pair:nth-child(3) a.colect-topbar-nav-link {
  border-left: 3px solid var(--mf-primary-color, #0071df);
  padding-left: calc(0.75em + 2px);
}
/* StayLog：外部サイト → アウトラインスタイルで差別化 */
#topbar.colect-topbar .colect-topbar-pair--staylog a.colect-topbar-nav-link {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
  border-left: 3px solid #2e8b57;
  font-weight: 500;
  padding-left: calc(0.75em + 2px);
}
#topbar.colect-topbar .colect-topbar-pair--staylog a.colect-topbar-nav-link:hover {
  background: rgba(46,139,87,0.15);
  border-color: rgba(46,139,87,0.6);
  border-left-color: #2e8b57;
  color: #fff;
}
#topbar.colect-topbar .colect-topbar-pair--staylog a.colect-topbar-nav-link::before,
#topbar.colect-topbar .colect-topbar-pair--staylog a.colect-topbar-nav-link::after {
  display: none;
}
#topbar .colect-topbar-external-icon {
  margin-left: 0.4em;
  vertical-align: -0.1em;
  opacity: 0.7;
  flex-shrink: 0;
}
#topbar .colect-topbar-pair--staylog a:hover .colect-topbar-external-icon {
  opacity: 1;
}
#topbar .colect-topbar-sep {
  margin: 0 0.4em;
  opacity: 0.6;
  font-weight: 400;
}
/* モバイル：教材共有 [すぐ共有] | 放課後相談室 [すぐ相談] を1行で */
#topbar .topbar-colect-mobile-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  margin: 0;
  min-height: 0;
}
#topbar .topbar-colect-mobile-row .colect-topbar-nav--pairs {
  justify-content: flex-start;
  min-width: 0;
}

/* 極小画面：トップバーを2行に分ける + フォント・余白縮小 */
@media (max-width: 400px) {
  /* StayLog を2行目に改行 */
  #topbar .topbar-colect-mobile-row .colect-topbar-pair--staylog {
    flex-basis: 100%;
    margin-top: 4px;
    justify-content: flex-start;
  }
  /* 2行目の前の区切り線「|」を非表示にしてすっきりさせる */
  #topbar .topbar-colect-mobile-row .colect-topbar-nav--pairs > .colect-topbar-sep:nth-child(4) {
    display: none;
  }
  /* フォント・余白縮小 */
  #topbar .topbar-colect-mobile-row .colect-topbar-nav-link {
    font-size: 1.1rem;
    padding: 0.35em 0.5em;
  }
  #topbar .topbar-colect-mobile-row .colect-topbar-sep {
    margin: 0 0.2em;
  }
  #topbar .topbar-colect-mobile-row .colect-topbar-pair {
    gap: 4px;
  }
  #topbar .topbar-colect-mobile-row .colect-topbar-share-btn,
  #topbar .topbar-colect-mobile-row .colect-topbar-consult-btn {
    padding: 2px 8px;
    font-size: 13px;
  }
}

/* ==============================
   スティッキーヘッダー時：トップバーも一緒についてくる
   ============================== */
.sticky-header #topbar.colect-topbar.sticky-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
}
.sticky-header.admin-bar #topbar.colect-topbar.sticky-stuck {
  top: 32px;
}
/* 固定時は .header-main をトップバーの下に表示（親の top:0 を上書き） */
.sticky-header .site-header.minimized .header-main {
  top: var(--colect-topbar-height, 48px) !important;
  border-bottom: none !important;
}
.sticky-header.admin-bar .site-header.minimized .header-main {
  top: calc(32px + var(--colect-topbar-height, 48px)) !important;
  border-bottom: none !important;
}
/* スティッキー時：.main-menu を非表示にして、固定ヘッダー下に 3px の切れ端が見えないようにする */
.sticky-header .site-header.minimized .main-menu {
  visibility: hidden;
}

/* ==============================
   放課後相談室：検索フォーム左ボーダー補完
   （カテゴリドロップダウンがないため border-left:none を上書き）
   ============================== */
.consultation-header-search .search-field {
  border-left: 1px solid #ccc !important;
  border-radius: 5px 0 0 5px;
}

/* ==============================
   放課後相談室：モバイルボトムナビゲーションを非表示
   ============================== */
.consultation-page .mf-navigation-mobile {
  display: none !important;
}
.consultation-page.mobile-nav-enable {
  padding-bottom: 0 !important;
}

/* ==============================
   ログイン・新規登録ページ：サイト説明パネル
   ============================== */

/* 共通スタイル */
.colect-login-description-inner,
.colect-login-description--top {
  background: #f9f7f4;
  border-radius: 10px;
  padding: 28px 32px;
}

.colect-login-description--side {
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.colect-login-description--side .colect-login-description-inner {
  width: 100%;
}

.colect-login-description--top {
  margin-bottom: 24px;
  text-align: center;
}

.colect-login-description-lead {
  font-size: 1.15em;
  font-weight: 700;
  margin: 0 0 10px;
  color: #333;
}

.colect-login-description-sub {
  font-size: 0.97em;
  color: #555;
  margin: 0 0 14px;
  line-height: 1.6;
}

.colect-login-description-features {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.colect-login-description-features li {
  font-size: 0.95em;
  color: #444;
  padding: 4px 0;
}

.colect-login-description-cta {
  font-size: 0.93em;
  color: #777;
  margin: 0;
  border-top: 1px solid #e0ddd9;
  padding-top: 12px;
}

@media (max-width: 767px) {
  .colect-login-description--side {
    margin-top: 20px;
  }
  .colect-login-description-inner,
  .colect-login-description--top {
    padding: 20px 18px;
  }
}
