@charset "UTF-8";
/* ================================
   記事コンテンツ用 CSS
   ================================ */
@media screen and (min-width: 993px) {
    body {
        padding-top: 260px!important;
    }
	.article-content {
		scroll-margin-top: 180px;
	}
}

/* ページコンテンツ幅 */
.article-wrapper {
  max-width: 1240px;
  margin: 0 auto;
}
/* 2カラムレイアウト */
.layout-two-column {
    display: flex;
    gap: 30px;
}
/* 左側メイン（可変） */
.main-column {
    flex: 1;
    min-width: 0;
}
/* =========================================
   右カラム
   ========================================= */
.sidebar-column {
    width: 250px;
    flex-shrink: 0;
}
.sidebar-inner {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
}
/* ---- 各ブロックのベース ---- */
.sidebar-block {
    background: #f5f5f5;   /* グレー枠（カテゴリ・キーワード） */
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
}
/* ---- タイトル ---- */
.sidebar-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ccc;
}

/* ---- カテゴリ ---- */
.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* ★PCでは縦1列 */
    gap: 8px;
}
.sidebar-category-list li {
    width: 100%; /* ★PCでは1列 */
}

.sidebar-category-list a {
    text-decoration: none;
    color: #333;
    display: block;
}
.sidebar-category-list a:hover {
    text-decoration: underline;
}
/* ▼ カテゴリ名の左に ▶ アイコン追加 ▼ */
.sidebar-category-list a {
    position: relative;
    padding-left: 16px; /* アイコン分の余白 */
    display: block;
}
/* ▶&#9654; アイコン本体 */
.sidebar-category-list a::before {
    content: "\25B6";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);  /* 垂直センター */
    font-size: 10px;
    color: #666;
}   
/* ---- キーワード ---- */
.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.keyword {
    display: inline-block;
    padding: 4px 8px;
    background: #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
}
.keyword:hover {
    background: #ccc;
}
/* ---- バナー（枠なし） ---- */
.sidebar-banner img {
    max-width: 100%;
    display: block;
    border-radius: 4px;
}
/* ----  人気記事ランキング ---- */
.popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.popular-posts li {
    position: relative;
}
/* 1件分のレイアウト：画像＋タイトル横並び */
.popular-post-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    background: #ffffff;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}
.popular-post-item:hover {
    background: #e9e9e9;
}
/* サムネイル画像 */
.popular-post-item img {
    width: 65px !important;
    height: 65px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    flex-shrink: 0;
}
/* タイトル */
.post-title {
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* ← ここを2にすると2行表示も可 */
    overflow: hidden;
}
/* ▼ 順位バッジ（丸●の中に数字） ▼ */
.popular-posts li::before {
    content: attr(data-rank);
    position: absolute;
    top: 3px;
    left: 3px;
    width: 25px;
    height: 25px;
    line-height: 23px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
    color: #fff;
    background: #000; /* デフォルト（4位以降） */
}
/* 1位＝金、2位＝銀、3位＝銅 */
.popular-posts li[data-rank="1"]::before { background: #d4af37; }
.popular-posts li[data-rank="2"]::before { background: #c0c0c0; }
.popular-posts li[data-rank="3"]::before { background: #cd7f32; }

/* ▼▼▼ スマホ時は1カラム（レスポンシブ） ▼▼▼ */
@media (max-width: 768px) {
    .layout-two-column {
        flex-direction: column;
    }
    .sidebar-column {
        width: 100%;
    }
	.sidebar-category-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* ここで2列を強制 */
        gap: 8px 0;
    }
    .sidebar-category-list li {
        width: auto !important; /* gridに任せる */
    }
}
/* =========================================
   メインビジュアル背景ぼかし　ON
   ※769～847付近が縦にぼかしが入るため、848px以上に設定
   ========================================= */
@media screen and (min-width: 848px) {   
.blur-bg-main {
    position: relative;
    width: 100%;            
    max-width: 960px;      
    margin: 0 auto;         
    overflow: hidden;       
    height: 290px;          
    display: flex;
    justify-content: center;
    align-items: center;
}
/* 背景ぼかし用擬似要素 */
.blur-bg-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://gigaplus.makeshop.jp/CHIYODAEC/images/articles/toiletpaper-best-title.png');
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    z-index: 1;
    transform: scale(1.02);
}

/* 白い半透明レイヤー */
.blur-bg-main::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.4); /* 40%白 */
    z-index: 2;
}

/* 元画像を前面に配置 */
.blur-bg-main img {
    position: relative;
    z-index: 3;
    width: auto;
    height: 100%;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}
}
/* =========================================
   SP/タブレット（768px以下）：ぼかしなし
   ※769～847付近が縦にぼかしが入るため、847pxに設定
   ========================================= */
@media screen and (max-width: 847px) {

  .blur-bg-main {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    height: auto; /* → 高さ固定を解除し自然な表示に */
  }

  /* 擬似要素のぼかしOFF */
  .blur-bg-main::before,
  .blur-bg-main::after {
    display: none !important;
  }

  /* 画像フィット */
  .blur-bg-main img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }
}

.main-column p {
	letter-spacing: 0;
    margin: 0.6em 0 0.6em;
    font-weight: 400;
}
/* ---------- 記事タイトル下のメタ情報 ---------- */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;               /* 日付と他要素の間隔 */
  align-items: center;
  margin: 10px 0 16px;     /* h1下の余白、リード前の余白 */
  font-size: 11px;
  color: #666666;          /* 控えめなテキスト色 */
}

/* 日付の見せ方（目立ちすぎないラベル風） */
.post-meta .post-date,
.post-meta .published-date {
  background: #f5f8fb;     /* 薄い水色系の背景（違和感ある場合は #fff に） */
  color: #333333;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 400;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
  line-height: 1;
}

/* 公開日と更新日を並べて出す場合の区切り（細めで主張しない） */
.post-meta .published-date {
  background: transparent;
  color: #888888;
  padding: 0;              /* もし目立たせたくない場合はラベル化しない */
  font-weight: 400;
}

/* 例：読了時間などを付ける場合 */
.post-meta .reading-time {
  color: #777;
  font-size: 13px;
  background: transparent;
  padding: 0;
}

/* モバイル微調整 */
@media (max-width: 480px) {
  .post-meta {
    font-size: 10px;
    gap: 8px;
    margin-bottom: 12px;
  }
  .post-meta .post-date {
    padding: 5px 8px;
    border-radius: 5px;
  }
}

/* =========================================
   目次
   ========================================= */
.toc-box {
  background: #f0f8ff; /* 淡い青（パウダーブルー系） */
  border: 1px solid #c8dfee;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.toc-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  color: #007acc;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc-list li {
  margin: 5px 0;
}

.toc-list a {
  text-decoration: none;
  color: #005fa3;
  padding: 4px 0;
  display: inline-block;
  transition: opacity 0.2s ease;
}
.toc-list a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .toc-box {
    padding: 14px 16px;
  }
  .toc-title {
    font-size: 15px;
  }
  .toc-list a {
    font-size: 14px;
  }
}
   
/* =========================================
   見出し h2
   ========================================= */
.article-subtitle {
  display: block;
  width: 100%;
  font-size: 22px;
  font-weight: 600;
  padding: 10px 20px;
  margin: 40px 0 20px;
  line-height: 1.4;
  background-color: #e5eef5;
  border-radius: 50px;
}

/* =========================================
   見出し h3
   ========================================= */
.article-heading {
  position: relative;
  font-size: 20px;          
  font-weight: 600;         
  padding: 12px 0 12px 18px; 
  line-height: 1.4;
}

/* 共通の縦線の形状 */
.article-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 50%;
  border-radius: 1px;
}
/* ゴールド系グラデーション */
.article-heading.gold-grad::before {
  background: linear-gradient(to bottom, #c9a74d, #f2e4b8, #c9a74d);
}
/* ネイビー単色 */
.article-heading.navy::before {
  background: #002d68;
}
/* ピンク単色 */
.article-heading.pink::before {
  background: #e36aa5;
}
/* ゴールド単色 */
.article-heading.gold::before {
  background: #DCC37B;
}  
/* 区切り線 */
.article-divider {
  width: 120px;
  height: 4px;
  margin: 10px auto 30px auto;
  background: linear-gradient(to right, #bfa14a, #f5e1a4, #bfa14a);
  border: none;
}

.marker_yl {
  background: #fff9c4; /* 薄い黄色 */
  padding: 2px 4px;
  border-radius: 2px; 
}

/* =========================================
   BEST商品と説明文
   ========================================= */
.product-block {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.product-left {
  flex: 0 0 200px; /* 画像の幅 */
}

.product-right {
  flex: 1;
}

/* スマホ対応 */
@media screen and (max-width: 767px) {
  .product-block {
    flex-direction: column; /* 1列にする */
  }
  .product-left {
    margin-bottom: 15px; /* 画像下の余白 */
  }
}
    
.article-content .small {
  font-size: 14px; /* 小さめフォント */
  margin: 5px 0;   /* 上下の余白 */
}

.article-content .small a {
  color: #888888;        /* 薄いグレー */
  text-decoration: none; /* 下線なし */
}

.article-content .small a:hover {
  color: #666666;        /* ホバー時に少し濃く */
}

/* =========================================
   比較表
   ========================================= */
.product-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  table-layout: fixed; /* 列幅自動調整 */
  font-size: 14px;
}

.product-table th,
.product-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
  vertical-align: middle;
  word-wrap: break-word;
}

.product-table th {
  background-color: #f5f5f5;
  font-weight: bold;
  color: #333;
}

/* メイン表の1列目だけ背景色を付ける */
.product-table > tbody > tr:not(.details-row) > td:first-child {
  background-color: #f5f5f5;
}

/* 画像固定 */
.product-table img {
  max-width: 60px;
  height: auto;
}

/* -------------------------
  詳細折りたたみ
------------------------- */
.details-row > td {
  padding: 0 !important;
}

.details-content {
  display: none; /* 初期は非表示 */
  margin-top: 10px;
  width: 100%;  /* 追加 */
}

.details-content table.product-table {
  width: 100%;
  table-layout: fixed;
}
/* 詳細テーブルの左右の線を消す */
.details-content .product-table {
  border-left: none !important;
  border-right: none !important;
}
.details-content .product-table td:first-child,
.details-content .product-table th:first-child {
  border-left: none !important;
}
.details-content .product-table td:last-child,
.details-content .product-table th:last-child {
  border-right: none !important;
}

/* -------------------------
  ボタン
------------------------- */
.toggle-details {
  display: inline-block;
  padding: 6px 12px;
  background-color: #007acc;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  margin: 10px 0;
}

.toggle-details:hover {
  background-color: #005fa3;
}

/* -------------------------
  レスポンシブ調整
------------------------- */
@media (max-width: 768px) {
  .product-table {
    font-size: 12px;
  }
  .product-table img {
    max-width: 60px;
  }
}

/* セル内のレイアウトを縦積みに */
.price-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: none !important;
}

/* 通常価格（取り消し線） */
.regular-price {
  text-decoration: line-through;
  color: #666;
  font-size: 13px;
}

/* キャンペーン価格 */
.sale-price {
  color: #f44336;
  font-weight: bold;
  font-size: 15px;
}







/* デフォルトでは画像を原寸サイズで表示 */
.article-wrapper img {
  max-width: none;
  width: auto;
  height: auto;
}
/* メインバナー以外の画像を最大1240pxに収める */
.article-wrapper img:not(.article-banner img) {
  max-width: 100%;   /* 親要素幅を超えない */
  height: auto;
  display: block;
}
/* メインバナーだけ横幅980pxに制限＋中央寄せ */
.article-banner {
  text-align: center;
  margin-bottom: 30px;
}

.article-banner img {
  display: block;
  max-width: 980px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* 見出し */
.camp-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 10px;
}
/* h1 見出し */
.article-title {
  text-align: center;
  font-size: 28px;
  margin: 10px 0;
}

/* 区切り線 */
.article-divider {
  width: 120px;
  height: 4px;
  margin: 10px auto 30px auto;
  background: linear-gradient(to right, #bfa14a, #f5e1a4, #bfa14a);
  border: none;
}

/* コンテンツ部分 */
.camp-content {
  padding: 0 10px;
}

.camp-subtitle {
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: left;
}

.article-content p {
  font-size: 16px;
  line-height: 1.67;
  text-align: left;
  margin-bottom: 15px;
}

/* キャンペーン専用テーブル */
table.camp-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 980px;
  font-size: 16px;
}

/* 左セル */
table.camp-table td.bg-cell {
  background-color: #f2f2f2;
  width: 32%;
  text-align: center; /* 左セルは中央揃え */
  padding: 6px 10px;
  border: 1px solid #ccc;
}
table.camp-table td:not(.bg-cell) {
  text-align: left;
  background-color: #ffffff;
  padding: 10px;
  border: 1px solid #ccc;
}
/* 注意事項ブロック */
.camp-notice {
  background-color: #f5f5f5;
  padding: 20px 40px;
  margin: 40px auto;
  width: 100%;
  max-width: 980px;
  box-sizing: border-box;
}

/* 見出し */
.camp-notice-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-bottom: 10px;
  text-align: left;
}

/* リスト */
.camp-notice ul {
  margin: 0;
  padding-left: 1.2em;
  list-style-type: disc; /* ●黒丸 */
}

.camp-notice li {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.6;
}

/* ボタン */
.article-btn-area {
  text-align: center;
  margin: 40px 0;
}
.article-btn {
  display: inline-block;
  background-color: #2c67b5;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 60px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
}
.article-btn:hover {
  background-color: #275a9f;
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.camp-border {
  border-top: 1px solid #C6C6C6;
  margin-top: 50px;
}

/* === ピックアップ商品セクション === */
.camp-pickup {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 10px;
}

/* セクション見出し（中央寄せver） */
.camp-section-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin: 50px 0 25px;
  color: #333;
}
/* 英語部分（小さめ＋ブルー） */
.camp-section-title span {
  display: block; /* 下に配置 */
  font-size: 14px;
  color: #31b1d0;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* 商品リスト */
.camp-pickup-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4列均等幅 */
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 1200px;
  margin-inline: auto;
  box-sizing: border-box;
}
/* 商品アイテム */
.camp-pickup-item {
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 12px;
  text-align: left;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  overflow: hidden;
}
/* 商品画像 */
.camp-pickup-img {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.camp-pickup-img img {
  width: 100%;
  display: block;
  transition: opacity 0.4s ease;
}
/* 2枚目の画像は重ねて非表示にしておく */
.camp-pickup-img .hover-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
/* ホバー時に2枚目がフェードイン */
.camp-pickup-item:hover .hover-img {
  opacity: 1;
}
/* 同時に1枚目をフェードアウト */
.camp-pickup-item:hover .main-img {
  opacity: 0;
}

/* 商品名・商品コード・価格共通 */
.camp-pickup-item .name,
.camp-pickup-item .code,
.camp-pickup-item .price {
  width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}

/* 商品名 */
.camp-pickup-item .name {
  font-size: 14px;
  font-weight: bold;
  margin: 4px 0;
}
/* 商品コード */
.camp-pickup-item .code {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}
/* 価格 */
.camp-pickup-item .price {
  font-size: 16px;
  color: #111;
  font-weight: bold;
}

/* 割引があるとき　価格エリア */
.price-box {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 元の価格（取り消し線） */
.price-old {
  text-decoration: line-through;
  color: #333;
  font-size: 14px;
}

/* 新しい価格（強調） */
.price-new {
  color: #c9003f;
  font-size: 16px;
  font-weight: bold;
}

/* 割引率バッジ */
.discount {
  background-color: #c9003f;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .article-wrapper img {
    max-width: 98%;
    height: auto;
  }
  .article-title { font-size: 22px; }
  .camp-subtitle { font-size: 18px; }
  .article-content p { font-size: 15px; }
  .camp-wrapper { padding: 15px 10px; }
  table.camp-table { font-size: 14px; }
  table.camp-table td { padding: 4px 6px; }
  .camp-notice { padding: 15px; }
  .camp-notice-title { font-size: 18px; }
  .camp-notice li { font-size: 15px; }
  .camp-btn {
    font-size: 16px;
    padding: 12px 32px;
  }
  /* ピックアップ：2列 */
  .camp-pickup-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

   