/* ================================================
   1. 全体のカードレイアウト（.dmm-results-grid）
   ================================================ */
.dmm-results-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;               /* カード間の余白 */
  justify-content: center !important; /* 中央寄せ */
  padding: 20px !important;
  border: none !important;
  margin: 0 auto !important;          /* 左右中央寄せ */
}

.product-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    justify-content: center !important;
    padding: 20px !important;
    border: none !important;
    margin: 0 auto !important;
}

/* ================================================
   2. 各商品カード（.product-box）
   ================================================ */
.product-box {
  display: block !important; /* flex をブロックに変更 */
  width: 260px !important;
  box-sizing: border-box !important;
  border: 1px solid #000 !important;
  background: #fff !important;
  padding: 10px !important;
  text-align: center !important;
  height: auto !important;
  min-height: 0 !important;
}
/* 画像部分 */
.product-box img.product-image {
  width: 100% !important;
  border-bottom: 1px solid #000 !important;
  height: auto !important;
}

/* ================================================
   3. タイトルなどテキストのスタイル
   ================================================ */
.product-box .product-title {
  font-size: 12px !important;
  line-height: 1.2 !important;         /* 行間を縮める */
  margin: 10px 0 !important;
  padding-bottom: 5px !important;
  font-weight: bold !important;
}

/* 詳細情報 */
.product-box .product-details {
  font-size: 14px !important;
  line-height: 1.2 !important;         /* 行間を縮める */
  color: #333 !important;
  margin: 5px 0 !important;
  font-weight: bold !important;
}

/* レビュー平均点など */
.product-box .review-score,
.product-box .review-label { 
  font-size: 14px !important;
  color: #333 !important;
  margin: 5px 0 !important;
  border-bottom: 1px solid #000 !important;
  padding-bottom: 5px !important;
}

/* ================================================
   4. 価格表示
   ================================================ */
.product-box .product-price {
  font-size: 14px !important;
  color: #e60012 !important;
  font-weight: bold !important;
  padding-bottom: 5px !important;
  margin: 5px 0 !important;
}

/* 定価や割引率 */
.product-box .product-list-price,
.product-box .product-discount {
  font-size: 14px !important;
  color: #333 !important;
  line-height: 1.2 !important;
  margin: 5px 0 !important;
  font-weight: bold !important;
  border-bottom: none !important;
}

/* ================================================
   5. お気に入り/ブックマーク関連
   ================================================ */
.bookmark-icon {
  width: 24px !important;
  height: 24px !important;
  cursor: pointer !important;
  object-fit: contain !important;
  display: inline-block !important;
  border-bottom: none !important;
}

.post-button {
  background: #f0f0f0 !important;
  border: 1px solid #ccc !important;
  padding: 5px 8px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  border-radius: 3px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  transition: background 0.2s ease, box-shadow 0.2s ease !important;
  margin-top: 5px !important;
}
.post-button:hover {
  background: #e0e0e0 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

/* ブックマークセクション */
.bookmark-section {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  margin-bottom: 5px !important;
}

/* ================================================
   6. ボタン類 (アフィリエイトURL / 立ち読み / サンプル動画)
   ================================================ */
.product-box .product-buttons {
  margin-top: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  align-items: center !important;
}

.product-box .product-buttons a {
  display: block !important;
  text-decoration: none !important;
  background: #e60012 !important;
  color: #fff !important;
  padding: 8px !important;
  border-radius: 5px !important;
  font-size: 14px !important;
  border: 1px solid #000 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
}
.product-box .product-buttons a:hover {
  background: #c40010 !important;
}

/* 立ち読み・サンプル動画ボタン（通常時） */
.product-box .product-buttons .tachiyomi-button,
.product-box .product-buttons .sampleMV-button {
  background: #0073e6 !important;
  border: 1px solid #000 !important;
  color: #fff !important;
}

/* ホバー時 */
.product-box .product-buttons .tachiyomi-button:hover,
.product-box .product-buttons .sampleMV-button:hover {
  background: #005bb5 !important;
  color: #fff !important;
}

/* ================================================
   7. その他カスタマイズ例
   ================================================ */
.product-box .product-details.cid-info {
  font-size: 12px !important;
  color: #666 !important;
  margin-top: 3px !important;
}

button.mypage-detail-button {
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
  font-size: 14px !important;
  padding: 12px !important;
  border: 2px solid #000 !important;
  border-radius: 5px !important;
  background: #808080 !important; /* 灰色ベース */
  color: #fff !important;
  text-align: center !important;
  cursor: pointer !important;
  margin: 0 !important;
  text-decoration: none !important;
  transition: background 0.2s ease !important;
}

button.mypage-detail-button:hover {
  background: #696969 !important; /* ホバー時の濃い灰色 */
}

.x-write-setting-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.x-write-setting-sample-images-container {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  margin-top: 20px;
}

.x-write-setting-sample-image {
  max-width: 300px;
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.x-post-button.on {
  background-color: lightblue; /* 水色 */
  color: #000;
}
.x-post-button.off {
  background-color: red; /* 赤 */
  color: #fff;
}
.x-post-status-label {
  margin-right: 5px;
  font-weight: bold;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table td {
  height: 20px; /* 行の高さを調整 */
}

.on-off-label {
  margin-top: 5px;
  font-weight: bold;
}

.on-off-label.off {
  color: red;
}

.on-off-label.on {
  color: green;
}
/* 段と段の間隔を詰める（特異度を高めて強制適用） */
#infoContainer .service-name,
#infoContainer .floor-name,
#infoContainer .title {
    margin: 2px 0 !important; /* 上下のマージンを2pxに強制 */
    padding: 0 !important;    /* パディングをリセット */
    line-height: 1.2 !important; /* 行間を狭く */
}

/* 段と段の間隔を詰める（クラス名に合わせて修正） */
.x-write-setting-info .service-name,
.x-write-setting-info .floor-name,
.x-write-setting-info .title {
    margin: 2px 0 !important; /* 上下のマージンを2pxに強制 */
    padding: 0 !important;    /* パディングをリセット */
    line-height: 1.2 !important; /* 行間を狭く */
}

/* カスタム投稿時の input 要素のスタイル調整 */
.x-write-setting-info .title input#custom-title {
    margin: 0 !important;
    padding: 2px !important;
    vertical-align: middle !important;
}

/* x-write-setting-info 自体の余白をリセット */
.x-write-setting-info {
	margin-top: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* 段と段の間隔を詰める（下側の要素用） */
.x-write-setting-container .volume,
.x-write-setting-container .review,
.x-write-setting-container .person-info,
.x-write-setting-container .price {
    margin: 2px 0 !important; /* 上下のマージンを2pxに強制 */
    padding: 0 !important;    /* パディングをリセット */
    line-height: 1.2 !important; /* 行間を狭く */
}

/* x-write-setting-container 自体の余白をリセット */
.x-write-setting-container {
    margin: 0 !important;
    padding: 0 !important;
}
/* 日付を非表示 */
time.entry-date,
time.date,
time.published,
time.updated {
    display: none !important;
}

/* 時計アイコンを非表示 */
.fa.fa-clock-o {
    display: none !important;
}

/* 間隔を詰める（必要に応じて調整） */
h1 {
    margin-bottom: 5px !important;
}
/* 著者名を非表示 */
span.author-name,
span.fn {
    display: none !important;
}

/* 著者リンクとその子要素を非表示 */
.author-link,
.post-author,
.vcard {
    display: none !important;
}

/* 著者情報全体とその子要素を非表示 */
.author-info,
.fa.fa-pencil,
.author-link,
.post-author,
.vcard {
    display: none !important;
}