/* 共通 */
.magazon-work {
  padding: 16px 12px;
}

/* ヘッダー全体のレイアウト */
.magazon-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

/* ヘッダー全体の下余白とパディングを強制リセット */
.l-header {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important; /* 無駄な高さ確保を解除 */
}

/* ロゴが入っているエリアの下余白も削除 */
.l-header__inner {
    padding-bottom: 0 !important;
}

/* ロゴ画像の配置調整（画像下の数ミリの隙間を消す） */
.logoImage img, 
.siteTitle img {
    vertical-align: bottom !important;
    margin-bottom: 0 !important;
    display: block; /* ブロック要素にして隙間を埋める */
}

/* もし「赤い帯」がヘッダーの外にある場合、その上の余白も消す */
.l-header + div, 
.magazon-home-container {
    margin-top: 0 !important;
}
/* =========================================
   マガゾン作品詳細レイアウト（修正・確定版）
   ========================================= */

/* ----------------------------------
   0. テーマ標準のタイトル・メタ情報を強制非表示
   ---------------------------------- */
/* THE THORのあらゆるパターンに対応させるためセレクタを列挙 */
.single-post .heading-primary,     /* 基本パターン */
.single-post .main__title,         /* パターン2 */
.single-post .singleTitle,         /* パターン3 */
.single-post .post-title,
.single-post .entry-title,
.single-post .meta-box,            /* 日付やカテゴリの箱 */
.single-post .singleMeta,
.single-post .post-meta,
.single-post .main__meta,
.single-post .archive__title,
.single-post .u-txt-shadow,
.single-post h1.heading-primary {  /* 強制指定 */
    display: none !important;
}

/* ==============================================
   【再修正】タイトルとカテゴリをピンポイントで消す
   ============================================== */

/* 記事のメインタイトル(H1)を非表示 */
/* テーマ標準のクラス名「heading-primary」を直接指定 */
.l-main .heading.heading-primary {
    display: none !important;
}

/* 記事のカテゴリ・タグ情報(リスト)を非表示 */
/* テーマ標準のクラス名「dateList」を直接指定 */
.l-main .dateList {
    display: none !important;
}

/* もしタイトル下の薄い線や余白が残る場合、それも詰める */
.l-main .dividerBottom {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

/* ----------------------------------
   1. レイアウト枠
   ---------------------------------- */
.magazon-work {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
}

.magazon-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
    position: relative !important; /* 安全策 */
}

/* ----------------------------------
   2. 左側：表紙画像と完結バッジ
   ---------------------------------- */
.magazon-header-left {
    width: 38% !important;
    max-width: 130px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* バッジの基準点となるラッパー */
.magazon-cover-wrap {
    position: relative !important; /* ★ここが重要：バッジの基準位置 */
    width: 100% !important;
    line-height: 0 !important;
    display: block !important;
}

.magazon-cover-wrap img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 完結バッジ（位置修正） */
.magazon-status-badge {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    background: #666 !important; /* グレー */
    color: #fff !important;
    font-size: 10px !important;
    padding: 3px 6px !important;
    border-radius: 4px 0 4px 0 !important;
    font-weight: bold !important;
    z-index: 10 !important;
    line-height: 1.2 !important;
    display: inline-block !important;
}

/* ----------------------------------
   3. 右側：情報エリア
   ---------------------------------- */
.magazon-header-right {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

/* 独自タイトル */
.magazon-title {
    font-size: 16px !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
    margin: 0 0 3px 0 !important; /* ★ここを3pxにして「少しだけ」隙間を作りました */
    padding: 0 !important;
    border: none !important;
    color: #333 !important;
    background: none !important;
}

/* サブ情報行（作者名の箱） */
.magazon-sub-info {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important; /* ★無理な引き上げ（マイナス指定）を解除 */
}

/* 作者名テキスト（色は変更済みのまま維持） */
.magazon-author-name {
    font-size: 13px !important;
    color: #555 !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
}

/* 無料バッジ（表示されない問題の修正） */
.magazon-free-badge {
    background: #ff3b30 !important; /* 赤色強制 */
    color: #fff !important;
    font-size: 10px !important;
    padding: 3px 6px !important;
    border-radius: 3px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

/* リスト部分 */
.magazon-meta-list {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.meta-row {
    display: flex !important;
    align-items: baseline !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 2px 0 !important;
    border-bottom: 1px dashed #eee !important;
    background: none !important;
}

.meta-row:last-child {
    border-bottom: none !important;
}

.meta-label {
    width: 3.5em !important;
    color: #888 !important;
    flex-shrink: 0 !important;
    font-weight: normal !important;
    margin-right: 5px !important;
}

.meta-val {
    color: #333 !important;
}
.meta-val.price {
    color: #d0021b !important;
    font-weight: bold !important;
    font-size: 13px !important;
}

/* ----------------------------------
   4. ボタンエリア
   ---------------------------------- */
.magazon-action-area {
    margin: 15px 0 25px 0 !important;
    text-align: center;
    clear: both;
}

.magazon-btn {
    display: block !important;
    width: 100% !important;
    padding: 14px 0 !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: bold !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    background-image: none !important;
}
.main-btn {
    background: linear-gradient(to right, #ff9a00, #ff5e00) !important;
}
.free-btn {
    background: linear-gradient(to right, #ff4b4b, #d0021b) !important;
}

/* ----------------------------------
   区切り（タブ風）
---------------------------------- */
.magazon-tab-divider {
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
    padding-left: 10px;
}
.tab-label {
    display: inline-block;
    background: #f5f5f5;
    padding: 8px 20px;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    font-size: 14px;
    color: #666;
}
.tab-label.active {
    background: #ff9a00;
    color: #fff;
}

/* ===== 同じ作者の作品（コミックシーモア風） ===== */

/* 見出しの下の余白を少し詰める */
.magazon-heading-related {
  margin-bottom: 10px;
}

/* 全体リスト */
.magazon-related-list {
  margin: 0 0 24px;
  list-style: none;
  padding-left: 0;
}

/* 各アイテム（カード） */
.magazon-related-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* 左：サムネイル（全面表示寄り） */
.magazon-related-thumb {
  flex: 0 0 80px;   /* 画像の幅だけを固定 */
  display: block;
}

.magazon-related-thumb img {
  width: 100%;      /* 枠いっぱいに表示 */
  height: auto;     /* 縦横比そのまま */
  border-radius: 4px;
  display: block;
  object-fit: contain;  /* 念のためトリミングを防ぐ */
}

.magazon-related-thumb--placeholder {
  display: inline-flex;
  width: 80px;
  height: 110px;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  font-size: 10px;
  color: #999;
  border-radius: 4px;
}

/* 右：本文エリア（縦方向フレックスにして右端まで使う） */
.magazon-related-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* タイトル行（タイトル＋無料バッジを横並び） */
.magazon-related-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.magazon-related-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

/* 無料バッジ */
.magazon-related-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ff5b3f;      /* シーモア系の赤 */
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

/* 説明テキスト（小さめグレー） */
.magazon-related-meta {
  margin: 0;
  margin-top: 2px;
  font-size: 11px;
  color: #777;
}

/* 作品ページへボタン
   → 本文エリアの右下に寄せる */
.magazon-related-btn {
  align-self: flex-end;     /* 右端寄せ */
  margin-top: 6px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 16px;
  background: #ff7f00;      /* 既存のオレンジと合わせる */
  color: #fff;
}

/* 念のため li の黒丸を完全リセット */
.magazon-related-list li {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

/* スマホ向け微調整 */
@media (max-width: 768px) {
  .magazon-related-item {
    padding: 8px 12px;
  }
  .magazon-related-title {
    font-size: 13px;
  }
  .magazon-related-btn {
    font-size: 11px;
    padding: 5px 14px;
  }
}

/* ====================================
   作品詳細エリア（修正版）
   ==================================== */

.magazon-detail-sec {
    margin-bottom: 32px;
}

/* --- 共通ボックスデザイン（あらすじ・短評） --- */
.magazon-story-box,
.magazon-review-box {
    padding: 20px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

/* ボックス内の見出し行 */
.magazon-box-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #ddd; /* 控えめな点線 */
    padding-bottom: 8px;
}

/* ラベル文字 */
.box-label {
    font-size: 15px;
    font-weight: 700;
    color: #444; /* デフォルトは濃いグレー */
}
.box-label.orange {
    color: #ff7f00; /* 編集部だけオレンジ */
}

/* 英字サブタイトル */
.box-sub {
    font-size: 11px;
    color: #999;
    font-weight: normal;
    letter-spacing: 0.05em;
}

/* --- あらすじ専用（薄いグレー背景） --- */
.magazon-story-box {
    background: #f7f7f7; 
}


/* ====================================
   作品詳細エリア（修正版v2）
   ==================================== */

/* --- マガゾン編集部（背景色をさらに薄く） --- */
.magazon-review-box {
    /* 変更：かなり白に近い、上品な薄オレンジに */
    background: #fffdfa !important; 
    border: 1px solid #f7f0e8 !important;
}
/* 点線の色も薄く馴染ませる */
.magazon-review-box .magazon-box-head {
    border-bottom-color: #efe6dc !important;
}


/* --- おすすめポイント（見出し縮小・リスト崩れ修正） --- */

/* 見出し：サイズダウン */
.magazon-point-title {
    font-size: 14px !important; /* 16px -> 14px */
    font-weight: 700;
    color: #333;
    margin: 0 0 12px;
    padding-left: 10px;
    border-left: 3px solid #ff7f00; /* 線も少し細く */
    line-height: 1.4;
    display: flex;
    align-items: center;
}
/* POINTの文字も少し小さく */
.magazon-point-title::after {
    content: "POINT";
    font-size: 10px;
    color: #ccc;
    font-weight: normal;
    margin-left: 8px;
    letter-spacing: 0.05em;
}

/* リスト本体 */
.magazon-point-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 各リストアイテム（文字被り解消） */
.magazon-point-list li {
    font-size: 14px;
    font-weight: 700;
    color: #444;
    background: #fff;
    /* 重要：左パディングを増やしてテキストを右に逃がす */
    padding: 10px 10px 10px 34px !important; 
    border: 1px solid #eee;
    border-radius: 4px;
    position: relative; /* チェックマーク配置の基準 */
    line-height: 1.5;
    
    /* テーマの余計な装飾を消す */
    list-style-type: none !important;
}
.magazon-point-list li::before {
    content: none !important;
    display: none !important;
}

/* チェックマーク（位置を絶対配置で固定） */
.magazon-point-list li::after {
    content: "✔";
    color: #ff7f00;
    font-weight: bold;
    font-size: 14px;
    
    /* 左端から12pxの位置に固定 */
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%); /* 常に上下中央に来るように */
}
    
    /* テーマのアイコン(::before)が出ないようにリセット */
    list-style-type: none !important;
}
.magazon-point-list li::before {
    content: none !important; /* テーマの黒丸などを消す */
}

/* オリジナルのチェックマーク */
.magazon-point-list li::after {
    /* 左側にチェックアイコンを配置（flexのorderで制御も可だが、擬似要素で簡易実装） */
    content: "✔"; 
    color: #ff7f00;
    font-weight: bold;
    font-size: 14px;
    position: absolute;
    left: 12px;
}
/* テキストをずらすためにpadding調整 */
.magazon-point-list li {
    position: relative;
    padding-left: 32px; /* チェックマーク分あける */
}


/* --- 共通：開閉トグル（続きを読む） --- */
.magazon-toggle-checkbox { display: none; }

.magazon-toggle-text {
    max-height: 4.8em; /* 3行程度 */
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s;
}

/* グラデーション */
.magazon-story-text::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 30px;
    background: linear-gradient(to bottom, rgba(247,247,247,0), #f7f7f7);
}
.magazon-review-text::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 30px;
    background: linear-gradient(to bottom, rgba(255,250,245,0), #fffaf5);
}

/* ボタン */
.magazon-toggle-btn {
    display: block;
    text-align: center;
    margin-top: 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    color: #aaa;
    transition: color 0.2s;
}
.magazon-toggle-btn:hover { color: #ff7f00; }
.magazon-toggle-btn::before { content: "もっと詳しく見る ▼"; }

/* 開いた状態 */
.magazon-toggle-checkbox:checked + .magazon-toggle-text { max-height: none; }
.magazon-toggle-checkbox:checked + .magazon-toggle-text::after { display: none; }
.magazon-toggle-checkbox:checked ~ .magazon-toggle-btn::before { content: "閉じる ▲"; }

/* ====================================
   タグ別おすすめ作品（商業サイト風デザイン）
   ==================================== */

/* セクション全体 */
.magazon-slide-section {
  margin-top: 20px;
  margin-bottom: 24px;
  overflow: hidden; /* 横スクロールのはみ出し防止 */
}

/* ①見出し：ブログっぽさを消す（シンプルに） */
.magazon-slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 8px; /* 下に少し余白 */
  margin-bottom: 8px;
  border-bottom: 1px solid #eaeaea; /* 薄い線で区切るだけにする */
}

.magazon-slide-heading {
  font-size: 14px;      /* h2だけど小さく */
  font-weight: 700;
  color: #333;
  margin: 0;
  letter-spacing: 0.03em;
}

/* 横スクロールのコンテナ */
.magazon-scroll-container {
  display: flex;
  gap: 10px;                /* カード間の隙間も少し狭く */
  overflow-x: auto;
  padding-bottom: 10px;
  
  /* スクロール設定 */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.magazon-scroll-container::-webkit-scrollbar {
  display: none;
}

/* 各アイテム（カード） */
.magazon-scroll-item {
  flex: 0 0 100px;          /* ★少し幅を狭めて「並んでる感」を出す（100px〜110px推奨） */
  width: 100px;
}

/* リンク全体（クリックしやすく） */
.magazon-scroll-link-wrap {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;             /* 高さを揃える */
}

/* 画像枠 */
.magazon-scroll-thumb {
  width: 100%;
  height: 140px;            /* 縦長比率を維持 */
  background: #f4f4f4;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;       /* ②余白を詰める：画像とタイトル */
  position: relative;
}

.magazon-scroll-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
/* タップ時のフィードバック */
.magazon-scroll-link-wrap:active .magazon-scroll-thumb img {
  opacity: 0.8;
}

/* タイトル */
.magazon-scroll-title {
  /* ④フォントサイズ：商用サイトっぽく小さく */
  font-size: 11px; 
  line-height: 1.35;
  font-weight: 700;         /* 小さいので太字にして視認性確保 */
  color: #333;
  margin: 0 0 4px;          /* ②余白を詰める：タイトルとボタン */
  
  /* 2行制限 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  height: 2.7em;            /* 高さ固定でガタつき防止 */
}

/* ボタン */
.magazon-scroll-btn {
  display: block;
  margin-top: auto;         /* 下寄せ */
  background: #f7f7f7;      /* 背景は非常に薄いグレー */
  color: #888;              /* 文字は少し薄く */
  font-size: 10px;          /* 極小サイズ */
  text-align: center;
  padding: 4px 0;           /* 上下も狭く */
  border-radius: 2px;
  border: 1px solid #eee;   /* 境界線をつけてボタン感を出す */
  font-weight: normal;
}

/* ===== 余白をギチギチに詰める版 ===== */

/* カード全体の中の不要な余白をゼロに */
.magazon-scroll-item,
.magazon-scroll-link-wrap {
  margin: 0;
  padding: 0;
}

/* 画像とタイトルの間をほぼゼロに */
.magazon-scroll-thumb {
  margin-bottom: 2px;     /* ← 4px → 2px に */
}

/* タイトルとボタンの間もほぼゼロに */
.magazon-scroll-title {
  font-size: 10px;        /* 11px → 10px（全体を少しコンパクトに） */
  line-height: 1.25;
  margin: 0 0 2px;        /* ← 4px → 2px に */
  height: auto;           /* 行数制限を外すならこの1行を入れる。2行制限のままなら消してOK */
}

/* ボタンも薄く＆コンパクトに */
.magazon-scroll-btn {
  padding: 2px 0;         /* 4px → 2px：上下の余白を半分に */
  font-size: 9px;         /* 10px → 9px：より“部品感”を出す */
  margin-top: 0;          /* 念のため余計な余白をリセット */
}

/* ▼タグ別おすすめ：画像とタイトルのスキマをギチギチに */

.magazon-scroll-thumb {
  margin-bottom: 2px;  /* 画像の下の余白をほぼゼロに */
}

/* h3 のグローバル指定に勝つためにセレクタを強くして margin を上書き */
.magazon-slide-section .magazon-scroll-item h3.magazon-scroll-title {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  color: #333;

  margin: 2px 0 2px !important;  /* ←上も下もほぼなしにする */
  height: 2.6em;                 /* 2行分だけ確保（必要なら調整） */

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* 「〇〇のおすすめ」見出しを小さくする */
.magazon-slide-heading {
  font-size: 14px !important;   /* ← 13〜15pxあたりが商業サイト風で綺麗 */
  font-weight: 700;
  margin: 0;
  padding: 0;
  line-height: 1.4;
}
/* ====================================
   ホーム画面追加バナー（JS制御版）
   ==================================== */

.magazon-app-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    padding: 10px;
    box-sizing: border-box;
    /* 初期状態は透明 */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* JSで付与されるクラス */
.magazon-app-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.magazon-app-banner-inner {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.2);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    border: 1px solid #f0f0f0;
}

/* 閉じるボタン */
.magazon-banner-close-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    font-size: 20px;
    color: #bbb;
    cursor: pointer;
    z-index: 10;
}

/* アイコンエリア */
.magazon-banner-icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.magazon-banner-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.magazon-banner-icon .m-icon {
    font-size: 24px; font-weight: bold; color: #ff7f00;
}

/* テキストエリア */
.magazon-banner-text { flex: 1; }

.magazon-banner-copy {
    font-size: 10px;
    color: #ff7f00;
    font-weight: 800;
    margin: 0 0 3px;
    letter-spacing: 0.05em;
}

.magazon-banner-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    margin: 0 0 8px;
}

/* ガイドエリア */
.magazon-banner-guide {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    color: #666;
    background: #f2f2f2;
    padding: 4px 8px;
    border-radius: 4px;
}
.guide-arrow { margin: 0 5px; color: #bbb; }
.guide-step {
    display: flex; align-items: center; gap: 3px; font-weight: bold; color: #444;
}

/* アイコン図形 */
.ios-share-icon {
    display: inline-block; width: 9px; height: 11px;
    border: 1px solid #007aff; border-top: none; position: relative; margin-top: -2px;
}
.ios-share-icon::before {
    content: ""; position: absolute; top: -3px; left: 50%; transform: translateX(-50%);
    width: 1px; height: 7px; background: #007aff;
}
.ios-share-icon::after {
    content: ""; position: absolute; top: -3px; left: 50%; transform: translateX(-50%) rotate(45deg);
    width: 3px; height: 3px; border-top: 1px solid #007aff; border-left: 1px solid #007aff;
}
.android-menu-icon {
    font-weight: bold; font-size: 14px; line-height: 0.5; color: #666;
}

/* ========================================
   ページ下部：ホームへ戻るボタン
   ======================================== */
.magazon-footer-action {
    margin-top: 48px;      /* 上のコンテンツとの距離 */
    padding-top: 32px;
    border-top: 1px solid #eee; /* 薄い区切り線 */
    text-align: center;
    margin-bottom: 20px;
}

/* 誘導テキスト（読み足りない？） */
.footer-action-lead {
    font-size: 12px;
    color: #999;
    font-weight: bold;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

/* ボタン本体 */
.magazon-home-btn {
    display: inline-block;
    min-width: 200px;      /* ある程度の幅を持たせる */
    padding: 12px 24px;
    background-color: #fff;
    border: 2px solid #ff7f00; /* オレンジ枠線 */
    color: #ff7f00;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;   /* 丸みをつける */
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ホバー時/タップ時の動き */
.magazon-home-btn:hover,
.magazon-home-btn:active {
    background-color: #ff7f00;
    color: #fff;
    transform: translateY(2px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 前に小さなアイコンをつける場合（お好みで） */
.magazon-home-btn::before {
    content: "🏠";  /* 家アイコン */
    margin-right: 6px;
    font-size: 1.1em;
    vertical-align: -1px;
}

/* ========================================
   MAGAZON TOP PAGE DESIGN (tuned)
   ======================================== */

/* コンテナ全体：左右余白を調整 */
.magazon-home-container {
    max-width: 100%;
    background: #fff;
    padding-bottom: 60px;
    overflow-x: hidden;
}

/* 共通：セクション設定 */
.magazon-sec {
    margin-bottom: 32px;          /* 少しだけタイトに */
    padding: 0 16px;              /* スマホでの左右余白 */
}

/* 共通：見出し周り */
.magazon-heading-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;          /* 余白を少し削る */
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 6px;
}
.magazon-heading-wrap.heading-center {
    justify-content: center;
    text-align: center;
    border-bottom: none;
}

/* セクションタイトル */
.magazon-sec-title {
    font-size: 16px;              /* 18 → 16 で落ち着いた印象に */
    font-weight: 700;             /* 800 → 700 で少しだけ軽く */
    color: #333;
    margin: 0;
    line-height: 1.3;
    display: flex;
    flex-direction: column;       /* サブタイトルを下に */
}

.magazon-sec-sub {
    font-size: 11px;
    color: #888;
    font-weight: normal;
    margin-top: 1px;
    letter-spacing: 0.05em;
}

/* 「もっと見る」リンク */
.magazon-more-link {
    font-size: 11px;              /* 1段だけ小さく */
    color: #ff7f00;
    text-decoration: none;
    font-weight: 600;
}

/* ----------------------------------------
   ヒーローバナー
   ---------------------------------------- */
.magazon-hero {
    margin: 0 0 20px 0;
    padding: 0 12px;
}
.magazon-hero-link {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.magazon-hero-link img {
    width: 100%;
    height: auto;
    display: block;
}
.magazon-hero-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #ff7f00;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 0 0 8px 0;
}

/* ----------------------------------------
   横スクロール (Sec1 & Sec3)
   ---------------------------------------- */
.magazon-scroll-container {
    display: flex;
    gap: 10px;                    /* 12 → 10 で密度アップ */
    overflow-x: auto;
    padding-bottom: 10px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
}
.magazon-scroll-container::-webkit-scrollbar {
    display: none;
}

.magazon-card {
    flex: 0 0 104px;              /* 110 → 104 でわずかにコンパクト */
    width: 104px;
}

.magazon-card-link {
    display: block;
    text-decoration: none;
    color: #333;
}

.magazon-card-thumb {
    position: relative;
    width: 100%;
    height: 146px;                /* 150 → 146 で縦長感を少し抑える */
    background: #f4f4f4;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 4px;           /* 6 → 4：画像とタイトルを近づける */
}
.magazon-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}
.magazon-card-thumb:active img {
    transform: scale(1.05);
}

/* バッジ共通 */
.magazon-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 9px;
    color: #fff;
    text-align: center;
    padding: 3px 0;
    font-weight: bold;
    line-height: 1;
}
.badge-red { background: rgba(255, 59, 59, 0.9); }
.badge-yellow { background: rgba(240, 173, 78, 0.95); color: #fff; }
.badge-blue { background: rgba(52, 152, 219, 0.9); }
.badge-gold { background: linear-gradient(45deg, #ffd700, #ffaa00); color: #fff; }

.magazon-card-title {
    font-size: 11px;              /* 12 → 11。カード枚数が多いので一段落とす */
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    margin: 0;
    font-weight: 700;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* ----------------------------------------
   Sec 2: フィルター探索UI (グリッドボタン)
   ---------------------------------------- */
.magazon-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 9px 11px;             /* 1pxずつ削って少しタイトに */
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    color: #444;
    font-weight: 600;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn:active {
    background: #f0f0f0;
    transform: translateY(1px);
}

/* 目立たせたいボタン */
.filter-btn.highlight {
    background: #fff5e5;
    border-color: #ffdbb3;
    color: #ff7f00;
}

/* ====================================
   特集記事リスト（参考画像風デザイン）
   ==================================== */

/* リスト全体 */
.magazon-feature-list {
    display: flex;
    flex-direction: column;
    border-top: 1px dotted #ccc; /* 一番上の線（お好みで削除可） */
}

/* 各アイテム */
.magazon-feature-item {
    border-bottom: 1px dotted #ccc; /* 参考画像のような点線区切り */
    padding: 12px 0;
}

.magazon-feature-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    gap: 12px; /* 画像と文字の隙間 */
    align-items: flex-start;
}

/* 特集記事リストのサムネイル（拡大版） */
.magazon-feature-thumb {
    flex: 0 0 160px; /* ★横幅を120px → 160pxに拡大 */
    width: 160px;
    height: 90px;    /* ★高さも比率に合わせて90pxに変更 (16:9) */
    background: #f4f4f4;
    overflow: hidden;
    border-radius: 4px;
    margin-right: 4px; /* 画像とテキストの距離を微調整 */
}

.magazon-feature-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ★枠サイズと画像サイズが完全に一致(16:9)ならcoverでOK */
    display: block;
}

/* 本文エリア（右側） */
.magazon-feature-body {
    flex: 1;
    min-width: 0; /* 文字がはみ出さないように */
}

/* タイトル */
.magazon-feature-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 0 0 4px;
    line-height: 1.4;
    
    /* 2行以上は省略 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* 抜粋文 */
.magazon-feature-desc {
    font-size: 11px;
    color: #777;
    line-height: 1.5;
    margin: 0;
}

/* (続きを見る)リンク */
.feature-read-more {
    color: #0088cc; /* リンクっぽい青 */
    margin-left: 4px;
    white-space: nowrap;
}
/* ----------------------------------------
   Sec 5: リスト表示 (アーカイブ)
   ---------------------------------------- */
.magazon-list-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    padding-bottom: 10px;
}
.magazon-list-item:last-child {
    border-bottom: none;
}
.magazon-list-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    gap: 12px;
}
.magazon-list-thumb {
    flex: 0 0 56px;
    height: 56px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}
.magazon-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.magazon-list-body {
    flex: 1;
}
.magazon-list-title {
    font-size: 13px;
    margin: 0 0 3px;
    line-height: 1.4;
}
.magazon-list-date {
    font-size: 11px;
    color: #999;
}

/* PC向け調整 */
@media (min-width: 768px) {
    .magazon-home-container {
        max-width: 800px;
        margin: 0 auto;
    }
    .magazon-sec {
        padding: 0;
    }
    .magazon-filter-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ====================================
   タグアーカイブページ（Grid追加版）
   ==================================== */

/* ベースコンテナ */
.magazon-tag-container {
    width: 100%;
    padding-bottom: 60px;
    background: #fff;
    box-sizing: border-box;
}

/* PC表示時：中央寄せ */
@media (min-width: 768px) {
    .magazon-tag-container {
        max-width: 1000px;
        margin: 0 auto;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 上部バナー */
.magazon-top-banner {
    margin: 0 0 32px;
    text-align: center;
}
.magazon-top-banner img {
    width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: bottom;
}
@media (min-width: 768px) {
    .magazon-top-banner img {
        width: 100%;
        border-radius: 8px;
    }
}

/* ページ見出し */
.magazon-tag-header {
    padding: 0 16px;
    margin-bottom: 32px;
    text-align: center;
}
@media (min-width: 768px) {
    .magazon-tag-header {
        padding: 0;
        margin-bottom: 48px;
    }
}
.magazon-tag-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #333;
}
.magazon-tag-sub {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* ====================================
   セクション共通
   ==================================== */
.magazon-tag-sec, 
.magazon-all-list-sec {
    margin-bottom: 48px;
    padding-left: 16px;
}
@media (min-width: 768px) {
    .magazon-tag-sec,
    .magazon-all-list-sec {
        padding-left: 0;
        margin-bottom: 60px;
    }
}

/* セクション見出し */
.magazon-tag-sec-head {
    margin-bottom: 16px;
    padding-right: 16px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}
.magazon-tag-sec-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.magazon-tag-sec-title .main-tag { color: #333; }
.magazon-tag-sec-title .cross-mark { color: #ccc; font-size: 14px; }
.magazon-tag-sec-title .sub-tag { color: #ff7f00; }

/* ====================================
   横スクロールエリア（上部用）
   ==================================== */
.magazon-tag-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.magazon-tag-scroll::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
    .magazon-tag-scroll {
        scrollbar-width: auto;
        scrollbar-color: #ddd #fff;
        padding-bottom: 20px;
    }
    .magazon-tag-scroll::-webkit-scrollbar { display: block; height: 8px; }
    .magazon-tag-scroll::-webkit-scrollbar-track { background: #fff; }
    .magazon-tag-scroll::-webkit-scrollbar-thumb { background: #eee; border-radius: 4px; }
    .magazon-tag-scroll::-webkit-scrollbar-thumb:hover { background: #ccc; }
}

/* 上部のカードスタイル */
.magazon-tag-card {
    flex: 0 0 110px;
    width: 110px;
    display: flex;
    flex-direction: column;
}
.magazon-tag-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.magazon-tag-thumb {
    position: relative;
    width: 100%;
    height: 150px;
    background: #f4f4f4;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}
.magazon-tag-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.badge-corner-free {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff3b3b;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 0 0 0 6px;
    z-index: 2;
    line-height: 1;
    box-shadow: -1px 1px 2px rgba(0,0,0,0.2);
}
.magazon-tag-vol {
    font-size: 10px;
    color: #888;
    margin-bottom: 4px;
    line-height: 1;
    font-weight: 600;
}
.magazon-tag-card-title {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    height: 2.8em;
}
.magazon-tag-card-btn {
    margin-top: auto;
    display: block;
    background: #f2f2f2;
    color: #666;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    padding: 5px 0;
    border-radius: 4px;
    transition: background 0.2s;
}
.magazon-tag-card-link:active .magazon-tag-card-btn { background: #e0e0e0; }


/* ====================================
   ★下部：全作品一覧グリッドスタイル
   ==================================== */

.magazon-grid-container {
    display: grid;
    /* スマホ：3列 (画像2枚目のレイアウト再現) */
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 10px; /* 縦の隙間16px, 横の隙間10px */
    padding-right: 16px; /* 右端の余白合わせ */
}

@media (min-width: 768px) {
    .magazon-grid-container {
        /* PC：5列くらいが見やすい */
        grid-template-columns: repeat(5, 1fr);
        gap: 24px 16px;
        padding-right: 0;
    }
}

/* グリッドアイテム */
.magazon-grid-item {
    display: flex;
    flex-direction: column;
}

.magazon-grid-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* グリッド用サムネイル（上部とほぼ同じだが独立定義） */
.magazon-grid-thumb {
    position: relative;
    width: 100%;
    /* アスペクト比を維持するための工夫 (1:1.4程度) */
    aspect-ratio: 2 / 3; 
    background: #f4f4f4;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}
/* aspect-ratio未対応ブラウザ用のフォールバックが必要なら height指定 */
@supports not (aspect-ratio: 2 / 3) {
    .magazon-grid-thumb {
        height: 160px; 
    }
}

.magazon-grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* タイトル（グリッド用） */
.magazon-grid-title {
    font-size: 11px; /* 少し小さめにして詰める */
    line-height: 1.4;
    font-weight: normal; /* タイトルは太字にしすぎない方がストアっぽい */
    color: #333;
    margin: 0;
    
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    height: 2.8em;
}

/* ====================================
   Sec: マガゾン厳選作品（修正版）
   ==================================== */

.magazon-sec-must-read {
    overflow: hidden;
}

/* スライダー枠 */
.magazon-slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 10px;
}
.magazon-slider-wrapper::-webkit-scrollbar { display: none; }

/* スライド1ページ分 */
.magazon-slide-page {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    padding: 0 4px;
    box-sizing: border-box;
}

/* 各アイテム */
.magazon-must-item {
    border-bottom: 1px dotted #ddd;
    padding: 12px 0;
}
.magazon-must-item:last-child { border-bottom: none; }

.magazon-must-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    gap: 12px;
    height: 100%; /* 高さを揃える */
}

/* 書影（左） */
.magazon-must-thumb {
    flex: 0 0 90px;
    width: 90px;
    aspect-ratio: 2 / 3; 
    background: #f4f4f4;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
@supports not (aspect-ratio: 2 / 3) {
    .magazon-must-thumb { height: 135px; }
}
.magazon-must-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 情報エリア（右） */
.magazon-must-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* タイトル */
.magazon-must-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* ★タグ（オレンジ色） */
.magazon-must-tags {
    margin-bottom: 6px;
    line-height: 1.4;
}
.must-tag {
    display: inline-block;
    color: #ff7f00; /* マガゾンオレンジ */
    font-size: 11px;
    font-weight: 700;
    margin-right: 8px;
}

/* 紹介文（Comment）のスタイル修正 */
.magazon-must-comment {
    font-size: 12px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 6px;
    flex-grow: 1;
    
    /* CSSでの行数制限を解除（PHPで文字数制御するため） */
    overflow: visible; 
    display: block; 
}

/* （続きを読む）リンクのスタイル */
.read-more-inline {
    color: #0088cc; /* リンクっぽい青 */
    font-size: 11px;
    font-weight: bold;
    margin-left: 2px;
}

/* 巻数・完結バッジ（最下部） */
.magazon-must-meta {
    margin-top: auto;
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
}
.status-badge.complete { background: #ff6b6b; }
.status-badge.ongoing { background: #52c41a; }
.vol-text { font-weight: 600; }

/* インジケーター */
.magazon-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}
.dot {
    width: 8px;
    height: 8px;
    background: #ddd;
    border-radius: 50%;
}
.dot:first-child { background: #ff7f00; }

/* ====================================
   作品ページの区切り（タブ風デザイン）
   ==================================== */

/* コンテナ：ボタンとコンテンツの間に余白を作る */
.magazon-tab-divider {
    margin-top: 32px;    /* ボタンとの距離 */
    margin-bottom: 24px; /* 下のコンテンツとの距離 */
    border-bottom: 1px solid #e0e0e0; /* 全体に引く薄いグレー線 */
}

/* タブリスト */
.magazon-tab-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px; /* タブ同士の間隔 */
}

/* タブ項目 */
.magazon-tab-item {
    font-size: 14px;
    font-weight: bold;
    color: #999;
    padding-bottom: 10px; /* 文字下の余白 */
    position: relative;
    cursor: default;
}

/* アクティブなタブ（現在地） */
.magazon-tab-item.active {
    color: #333; /* 文字色を濃く */
}

/* アクティブなタブの下線（オレンジ色） */
.magazon-tab-item.active::after {
    content: "";
    position: absolute;
    bottom: -1px; /* グレー線の上に重ねる */
    left: 0;
    width: 100%;
    height: 3px;  /* 線の太さ */
    background: #ff7f00; /* マガゾンオレンジ */
    border-radius: 3px 3px 0 0;
}

/* 無効なタブ（レビューなど） */
.magazon-tab-item.disabled {
    color: #ccc;
    font-weight: normal;
    font-size: 13px;
}

/* ====================================
   記事下部おすすめエリアの崩れ修正
   ==================================== */

/* セクション見出しの強制リセット */
.magazon-tag-sec-title {
    font-size: 16px !important;       /* 文字サイズを強制的に小さく */
    margin: 0 !important;             /* 余計な余白を削除 */
    padding: 0 !important;            /* テーマのパディングを削除 */
    border: none !important;          /* テーマの線を削除 */
    background: none !important;      /* テーマの背景色を削除 */
    line-height: 1.4 !important;
    
    /* レイアウト維持 */
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333 !important;
}

/* カードタイトルの強制リセット */
.magazon-tag-card-title {
    font-size: 11px !important;       /* 文字サイズを強制的に小さく */
    margin: 0 0 6px !important;       /* 下の余白だけ少し確保 */
    padding: 0 !important;
    border: none !important;
    background: none !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    
    /* 高さ制限 */
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* カード幅の強制固定 */
.magazon-tag-card {
    flex: 0 0 110px !important;
    width: 110px !important;
    margin: 0 !important;             /* カード自体の余白リセット */
}

/* 巻数表示の調整 */
.magazon-tag-vol {
    font-size: 10px !important;
    margin-bottom: 4px !important;
    color: #888 !important;
    line-height: 1 !important;
}

/* リンク要素の余白リセット */
.magazon-tag-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ========================================
   隙間時間で選ぶセクション
   ======================================== */
.magazon-time-section {
    margin: 40px 0;
    padding-bottom: 20px;
    background: #fff;
}

/* タブボタンエリア */
.magazon-time-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.time-tab {
    flex: 1;
    max-width: 120px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    padding: 8px 4px;
    font-weight: bold;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.2;
}
.time-tab .tab-sub {
    display: block;
    font-size: 10px;
    font-weight: normal;
    margin-top: 2px;
    opacity: 0.7;
}

/* アクティブなタブ */
.time-tab.active {
    background: #ff7f00;
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 127, 0, 0.3);
    transform: translateY(-2px);
}

/* コンテンツエリア */
.magazon-time-contents {
    position: relative;
    min-height: 200px; /* ガタつき防止 */
}

/* パネル（切り替え表示） */
.time-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.time-panel.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==============================
   隙間時間セクション（カード部分）
   ============================== */

/* 横スクロールコンテナ */
.magazon-time-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 8px 16px 4px;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.magazon-time-scroll::-webkit-scrollbar {
    display: none;
}

/* 1枚のカード：他セクションより一段小さめ */
.time-card {
    flex: 0 0 120px;      /* 横幅を少し小さく */
}

/* クリック範囲 */
.time-card-link {
    display: block;
    text-decoration: none;
    color: #333;
}

/* 表紙サムネ（縦長・小さめ） */
.time-card-thumb {
    position: relative;
    width: 100%;
    height: 180px;         /* ここで全体の小ささを調整 */
    border-radius: 8px;
    overflow: hidden;
    background: #f4f4f4;
    margin-bottom: 8px;
}
.time-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右上の「無料」バッジ（あれば） */
.badge-corner-free {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
}

/* タイトル */
.time-card-title {
    font-size: 13px;
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* 「作品ページへ」ボタン（他セクションと共通テイスト） */
.time-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 2px solid #ff7f00;
    font-size: 13px;
    font-weight: 700;
    color: #ff7f00;
    background-color: #fff;
}
/* ============================
   最新動画レビュー（YouTube）
   ============================ */
.magazon-sec-youtube {
    margin-bottom: 36px;
}

/* カード全体 */
.magazon-yt-card {
    display: block;
    text-decoration: none;
    color: #333;
}

/* サムネイル部分（16:9） */
.magazon-yt-thumb {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.magazon-yt-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* 再生ボタン風ラベル */
.magazon-yt-play {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-weight: 600;
}

/* タイトル／注記 */
.magazon-yt-title {
    max-width: 640px;
    margin: 8px auto 2px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.magazon-yt-note {
    max-width: 640px;
    margin: 0 auto;
    font-size: 11px;
    color: #999;
}

/* PCで少し余白を広げる */
@media (min-width: 768px) {
    .magazon-sec-youtube {
        padding: 0;
    }
    .magazon-yt-title {
        font-size: 14px;
    }
}

.magazon-yt-divider {
    max-width: 640px;           /* サムネと同じ幅に揃える */
    margin: 12px auto 0;        /* 上だけ少し余白 */
    border-bottom: 1px solid #eee;
}

/* ===========================
   今週のマガゾン激推し
   =========================== */

/* 巻数表示 */
.magazon-card-meta {
    font-size: 11px;
    color: #888;
    margin: 2px 0 2px;
}

/* ボタン風ラベル（作品ページへ） */
.magazon-card-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 8px;
    font-size: 11px;
    color: #555;
    background: #f6f6f6;
    border-radius: 4px;
    border: 1px solid #eee;
    text-align: center;
}

/* 特集バナー（3:1 横長） */
.magazon-weekly-banner {
    display: block;
    margin: 18px 0 0;
    border-radius: 8px;
    overflow: hidden;
}

.magazon-weekly-banner img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 1; /* 3:1 を強制 */
    object-fit: cover;
}

/* 今週のマガゾン激推し：カードを少しだけ小さくする */
.magazon-sec-weekly .magazon-card {
    flex: 0 0 100px;   /* 110px → 100px に縮小 */
    width: 100px;
}

.magazon-sec-weekly .magazon-card-thumb {
    height: 140px;     /* 150px → 140px に縮小 */
}

/* タイトルとボタンもわずかに縮小（任意） */
.magazon-sec-weekly .magazon-card-title {
    font-size: 11px;   /* 他より 1pt 小さく */
}

.magazon-sec-weekly .magazon-card-btn {
    font-size: 11px;
    padding: 6px 0;
}

/* 今週のマガゾン激推しの「作品ページへ」ボタンを
   隙間時間セクションと同じデザインに揃える */
.magazon-sec-weekly .magazon-card-btn {
    display: block;
    width: 100%;
    max-width: 160px;          /* ボタン自体の横幅 */
    margin: 8px auto 0;        /* 上に少し余白＋中央寄せ */
    padding: 8px 0;

    background: #fff;
    border: 1px solid #ff7f00; /* オレンジの枠線 */
    border-radius: 24px;       /* 角丸で pill っぽく */

    font-size: 10px;
    font-weight: 600;
    color: #ff7f00;
    text-align: center;
    text-decoration: none;

    box-shadow: none;
}

/* タップ時の軽いフィードバック（任意） */
.magazon-sec-weekly .magazon-card-link:active .magazon-card-btn {
    background: #fff7ec;
}

/* 今週のマガゾン激推し：タイトルとボタンの隙間を詰める */
.magazon-sec-weekly .magazon-card-title {
    height: auto;              /* 共通CSSの固定高さ(2.8em)を解除 */
    margin: 2px 0 0;           /* 上だけ少し余白、下はほぼゼロ */
}

/* ボタン側の余白も少しだけにする */
.magazon-sec-weekly .magazon-card-btn {
    margin-top: 4px;           /* 以前 8px くらいにしていたなら半分に */
}

/* 特集記事ミニヘッダー */
.magazon-feature-minihead {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 16px 6px;
    font-size: 11px;
}

.feature-tag-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ff7f00;
    color: #fff;
    font-weight: 700;
}

.feature-tag-text {
    color: #999;
}

/* 特集バナー本体 */
.magazon-feature-banner-link {
    position: relative;
    display: block;
    margin: 0 16px 16px;
    border-radius: 8px;
    overflow: hidden;
}

.magazon-feature-banner-thumb {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   週間ランキング（3×2）
   ========================= */
.magazon-sec-ranking {
    margin-bottom: 36px;
}

/* 3列×2段グリッド */
.magazon-ranking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* カード本体 */
.magazon-ranking-card {
    background: #fff;
    border-radius: 4px;
    padding: 6px 6px 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.magazon-ranking-link {
    display: block;
    text-decoration: none;
    color: #333;
}
/* 上部の「1位」リボン 共通 */
.magazon-ranking-ribbon {
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* 順位ごとの色分け */
.magazon-ranking-ribbon.rank-1 {
    background: #ffe9a3;   /* 1位：金系 */
    color: #5c3b00;
}
.magazon-ranking-ribbon.rank-2 {
    background: #e2ecff;   /* 2位：銀系 */
    color: #204070;
}
.magazon-ranking-ribbon.rank-3 {
    background: #ffe0e5;   /* 3位：銅系（ピンク寄り） */
    color: #7a2030;
}
.magazon-ranking-ribbon.rank-4 {
    background: #f2f2f2;   /* 4位以下：グレー */
    color: #555;
}

.magazon-ranking-ribbon .rank-no {
    font-size: 14px;
    margin-right: 2px;
}

/* サムネイル：3:4 比率 */
.magazon-ranking-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f4f4f4;
    border-radius: 2px;
    overflow: hidden;
}
.magazon-ranking-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 右上の「無料」バッジ（赤枠） */
.badge-free-corner {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 10px;
    color: #e60012;
    border: 1px solid #e60012;
    background: #fff;
    padding: 2px 5px;
    border-radius: 2px;
}

/* 巻数テキスト */
.magazon-ranking-volume {
    font-size: 11px;
    color: #777;
    margin: 6px 0 2px;
}

/* タイトル（2行で省略） */
.magazon-ranking-title {
    font-size: 12px;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* 下部ボタン（オレンジ枠・丸角） */
.magazon-ranking-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 12px;
    padding: 6px 0;
    border-radius: 999px;
    border: 1px solid #ff7f00;
    color: #ff7f00;
    font-weight: 600;
}

/* PCはカードを少し小さく */
@media (min-width: 768px) {
    .magazon-ranking-grid {
        max-width: 380px;   /* ★ここで全体幅を調整：小さめに */
        margin: 0 auto;
    }
    .magazon-ranking-card {
        padding: 4px 4px 8px;
    }
    .magazon-ranking-title {
        font-size: 11px;    /* 他セクションに寄せて少し小さく */
    }
    .magazon-ranking-volume {
        font-size: 10px;
    }
    .magazon-ranking-btn {
        font-size: 11px;
        padding: 5px 0;
    }
}

/* ===============================
   TOP 特集記事用 3:1 バナーリスト
   =============================== */

/* 全体ラッパ：縦に並べる */
.magazon-feature-banner-list {
    display: flex;
    flex-direction: column;
    gap: 12px;              /* バナー同士の間隔 */
}

/* 各バナーアイテム */
.magazon-feature-banner-item {
    width: 100%;
}

/* 特集記事バナーの縦のスキマを少し詰める */
.magazon-feature-banner-list {
    gap: 4px;          /* 以前 16px や 12px にしていた場合はここを小さく */
}

/* 各バナー下の余白もカット（入っている場合のみ有効） */
.magazon-feature-banner-item {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* クリック範囲を全面に */
.magazon-feature-banner-link {
    display: block;
    text-decoration: none;
}

/* 3:1 比率のバナー枠 */
.magazon-feature-banner-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;    /* 3:1 固定（対応ブラウザではこれでOK） */
    overflow: hidden;
    border-radius: 6px;
    background: #f4f4f4;
}

/* 画像を枠いっぱいにフィット */
.magazon-feature-banner-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;      /* バナー枠にトリミングしてフィット */
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* タップ / ホバー時のわずかなアクション */
.magazon-feature-banner-link:active .magazon-feature-banner-thumb img,
.magazon-feature-banner-link:hover .magazon-feature-banner-thumb img {
    transform: scale(1.01);
    opacity: 0.95;
}

/* PC 時の幅調整（既存トップと揃える） */
@media (min-width: 768px) {
    .magazon-sec.magazon-sec-select .magazon-feature-banner-list {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* タイトル上のランダムタグ（オレンジ変更版） */
.magazon-header-tags {
    font-size: 11px;
    color: #ff7f00;     /* ★ここを修正：鮮やかなオレンジ */
    margin-bottom: 4px; /* タイトルとの隙間 */
    line-height: 1.4;
    font-weight: bold;  /* ★修正：色に合わせて少し太字にすると読みやすいです */
}

.header-tag-item {
    margin-right: 8px;  /* タグ同士の間隔 */
    display: inline-block;
    letter-spacing: 0.02em;
}
