@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* カラーパレット */
:root {
  --doujin-accent: #ff4b6b;        /* メインのピンクレッド */
  --doujin-accent-light: #fff3f6;  /* 見出し背景などの薄いピンク */
  --doujin-accent-dark: #d93a57;   /* 濃いめのアクセント */
  --doujin-text-main: #222222;     /* 本文のメイン文字色 */
  --doujin-text-sub: #666666;      /* 補足テキスト用 */
  --doujin-border-soft: #eeeeee;   /* 薄めの罫線色 */
  --doujin-card-bg: #ffffff;       /* カードの背景色 */
}

/* ベースレイアウト・文字 */
.doujin-article {
  max-width: 760px;
  margin: 0 auto;
  color: var(--doujin-text-main);
}

.doujin-article p,
.doujin-article li {
  line-height: 1.8;
  font-size: 0.95rem;
}

.doujin-article ul {
  padding-left: 1.5em;
  margin-bottom: 1.8em;
}

/* 見出し装飾 */
.doujin-article h2.wp-block-heading {
  position: relative;
  margin: 2.5em 0 1em;
  padding: 0.4em 0.8em 0.4em 1em;
  border-left: 4px solid var(--doujin-accent);
  background: var(--doujin-accent-light);
  font-size: 1.2rem;
  font-weight: 700;
}

.doujin-article h3.wp-block-heading {
  margin: 1.8em 0 0.8em;
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid var(--doujin-border-soft);
  padding-bottom: .3em;
}

.doujin-article h4.wp-block-heading {
  margin: 1.2em 0 0.4em;
  font-size: 1rem;
  font-weight: 600;
}

/* サムネ（ジャケット） */
.doujin-article p.has-text-align-center a img,
.doujin-article p.has-text-align-center img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.doujin-article p.has-text-align-center {
  margin-bottom: 1.5em;
}

/* CTAボタン（フル漫画をダウンロード） */
.doujin-article .swell-block-button {
  margin: 1.8em auto;
  max-width: 420px;
}

.doujin-article .swell-block-button__link {
  font-weight: 700;
  letter-spacing: .05em;
  border-radius: 999px;
  /* SWELLのred_を少しだけカスタム（グラデーション） */
  background: linear-gradient(135deg, var(--doujin-accent), var(--doujin-accent-dark));
  box-shadow: 0 6px 14px rgba(217, 58, 87, 0.35);
}

.doujin-article .swell-block-button__link .swl-fz {
  font-size: 0.95rem;
}

.doujin-article .swell-block-button__link:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* PR表記（広告含みます）を少し馴染ませる */
.doujin-article .c-prNotation {
  margin-bottom: 1.5em;
  font-size: 0.85rem;
  color: var(--doujin-text-sub);
}

/* 関連作品カード（[related_posts_by_tag] が出力する部分想定） */
.doujin-article .related-posts-container {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin: 1.5em 0 0;
}

.doujin-article .related-post {
  background: var(--doujin-card-bg);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease;
}

.doujin-article .related-post img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.doujin-article .related-post-title {
  margin-top: .5em;
  font-size: 0.85rem;
  line-height: 1.5;
}

.doujin-article .related-post-title a {
  color: var(--doujin-text-main);
  text-decoration: none;
}

.doujin-article .related-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

/* 注意喚起ボックス（違法RAW注意） */
.doujin-article .cap_box {
  margin-top: 2.5em;
}

.doujin-article .cap_box_ttl span {
  font-size: 0.95rem;
}

.doujin-article .cap_box_content p {
  font-size: 0.9rem;
  color: var(--doujin-text-sub);
}

/* H2：背景を薄くして文字を大きく・余白多めに */
.doujin-article h2.wp-block-heading {
  position: relative;
  margin: 2.5em 0 1.2em;
  padding: 0.6em 0.9em 0.6em 1.1em;
  border-left: 4px solid var(--doujin-accent);
  border-radius: 4px;
  background: linear-gradient(to right, #fff9fb, #ffffff); /* ほぼ白に近い淡いグラデ */
  font-size: 1.1rem;
  font-weight: 700;
  color: #222222; /* コントラストをはっきり */
}

/* PC幅ではもう少しだけ大きく */
@media (min-width: 768px) {
  .doujin-article h2.wp-block-heading {
    font-size: 1.25rem;
  }
}

/* H3：少しだけ強調して、H2との階層をわかりやすく */
.doujin-article h3.wp-block-heading {
  margin: 1.8em 0 0.8em;
  font-size: 1.02rem;
  font-weight: 600;
  border-bottom: 1px solid var(--doujin-border-soft);
  padding-bottom: .3em;
  color: #333333;
}

/************************************************
 * 同人作品情報テーブル（[detail-table]）調整
 ************************************************/

.doujin-detail-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

/* セル共通：行を詰めて、上寄せに */
.doujin-detail-table th,
.doujin-detail-table td {
  padding: 0.5em 0.7em;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

/* 1列目（ラベル） */
.doujin-detail-table th {
  width: 5.5em;              /* ラベル列の幅を固定気味に */
  white-space: nowrap;       /* できるだけ折り返さない */
  font-weight: 600;
  color: #666;
  text-align: left;
}

/* 2列目（値） */
.doujin-detail-table td {
  color: #222;
}

/* スマホ向け調整 */
@media (max-width: 480px) {

  .doujin-detail-table table {
    font-size: 0.85rem;
  }

  .doujin-detail-table th,
  .doujin-detail-table td {
    padding: 0.45em 0.6em;
  }

  .doujin-detail-table th {
    width: 4.5em;           /* もう少しだけタイトに */
  }
}

/* スマホでは1列目ラベルを強制的に横書きにする */
@media (max-width: 768px) {
  .doujin-detail-table th {
    writing-mode: horizontal-tb !important;  /* 縦書き指定を上書き */
    -ms-writing-mode: lr-tb !important;      /* 古いIE系の保険 */
    text-orientation: mixed !important;
    white-space: nowrap;                     /* できるだけ1行で */
    line-height: 1.6;                        /* 文字間も普通に */
  }
}

/************************************************
 * 同人作品情報テーブル [detail-table2] 用
 ************************************************/

.doujin-detail-table {
  margin: 1.5em 0;
}

/* 共通テーブルスタイル */
.doujin-detail-table__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.doujin-detail-table__table th,
.doujin-detail-table__table td {
  padding: 0.5em 0.75em;
  border-bottom: 1px solid #eeeeee;
  vertical-align: top;
}

/* 1列目（ラベル） */
.doujin-detail-table__table th {
  font-weight: 600;
  color: #666666;
  text-align: left;
  writing-mode: horizontal-tb;  /* 念のため縦書きを打ち消す */
  text-orientation: mixed;
  white-space: nowrap;          /* できるだけ1行で表示 */
}

/* 2列目（値） */
.doujin-detail-table__table td {
  color: #222222;
}

/* スマホ時の幅比率 3:7 */
@media (max-width: 768px) {
  .doujin-detail-table__table {
    font-size: 0.85rem;
  }
  .doujin-detail-table__table th {
    width: 30%;
    padding-right: 0.4em;
  }
  .doujin-detail-table__table td {
    width: 70%;
  }
}

/* PCでは少しゆったりめに */
@media (min-width: 769px) {
  .doujin-detail-table__table th {
    width: 25%;
  }
  .doujin-detail-table__table td {
    width: 75%;
  }
}


/*tarou用*/
.post_content:not(.p-blogParts) {
  margin: 0em !important;
}
/* Custom Accordion Styles (No JS) */
.custom-accordion-no-js {
    margin: 2em 0;
    border: 1px solid #e0e0e0; /* 枠線 */
    border-radius: 6px; /* 角丸 */
    overflow: hidden; /* 角丸が適用されるように */
    background-color: #ffffff; /* 背景色 */
}

/* チェックボックスは非表示 */
.custom-accordion-checkbox {
    display: none;
}

.custom-accordion-trigger-no-js {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    background-color: #f7f7f7; /* ヘッダーの背景色 */
    border: none; /* ここでは不要 */
    text-align: left;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    color: #333; /* 文字色 */
    user-select: none; /* テキスト選択を無効に */
}

.custom-accordion-trigger-no-js:hover {
    background-color: #e9e9e9; /* ホバー時の背景色 */
}

/* アイコンのスタイル */
.custom-accordion-icon-no-js {
    display: block;
    width: 10px;
    height: 10px;
    position: relative;
    transition: transform 0.3s ease;
}

.custom-accordion-icon-no-js::before,
.custom-accordion-icon-no-js::after {
    content: '';
    position: absolute;
    background-color: #333; /* アイコンの色 */
}

/* プラス記号の縦線 */
.custom-accordion-icon-no-js::before {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

/* プラス記号の横線 */
.custom-accordion-icon-no-js::after {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

/* チェックされたらアイコンをマイナスにする */
.custom-accordion-checkbox:checked + .custom-accordion-trigger-no-js .custom-accordion-icon-no-js::before {
    transform: translateX(-50%) scaleY(0); /* 縦線を非表示にする */
}

/* チェックされたらヘッダーの背景色を変更 */
.custom-accordion-checkbox:checked + .custom-accordion-trigger-no-js {
    background-color: #e9e9e9;
}

/* コンテンツのスタイル */
.custom-accordion-content-no-js {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 20px; /* 閉じた状態ではパディングを0に */
    background-color: #ffffff; /* 内容の背景色 */
}

.custom-accordion-content-no-js p {
    margin-bottom: 1em; /* 段落の下マージン */
    line-height: 1.7; /* 行の高さ */
    color: #555; /* 文字色 */
}

/* チェックされたらコンテンツを表示 */
.custom-accordion-checkbox:checked + .custom-accordion-trigger-no-js + .custom-accordion-content-no-js {
    /* ▼ 変更点：1000px だと足りないので 5000px に増やしました ▼ */
    max-height: 5000px; 
    
    padding: 20px; /* 開いた状態のパディング */
    transition: max-height 0.8s ease-in, padding 0.5s ease-in; /* 高さが大きい分、時間を少し長く(0.5s→0.8s)すると自然です */
}
/* --- スマホ表示の調整（600px以下） --- */
@media screen and (max-width: 600px) {

    /* トリガーボタン（タップ部分）の調整 */
    .custom-accordion-trigger-no-js {
        padding: 12px 10px;    /* 余白を縮小（上下12px、左右10px） */
        font-size: 0.95em;     /* 文字サイズを少し小さく */
        align-items: flex-start; /* 長いタイトルでも崩れないよう上揃えに */
    }
    
    /* ボタン内のテキスト（左側） */
    /* ※HTML側にspanなどがなくても効くように工夫 */
    
    /* アイコン（右側）の固定幅を確保して侵食を防ぐ */
    .custom-accordion-icon-no-js {
        flex-shrink: 0;        /* 縮まないように固定 */
        margin-left: 15px;     /* テキストとの間に隙間を作る */
        margin-top: 5px;       /* 上揃えにした際の位置微調整 */
    }

}
/* カスタムクラスが付与されたカテゴリ「kpop」の記事ページの場合 */
.my-custom-kpop-category header,
.my-custom-kpop-category footer,
/* パンくずリストを非表示にする（IDが"breadcrumb"の要素） */
.my-custom-kpop-category #breadcrumb
{
    display: none !important; /* !important を使用して優先させます */
}
.my-custom-kpop-category .textwidget.custom-html-widget {
    display: none !important;
}
/* KPOPカテゴリ(ID:39)を非表示 */
li.cat-item-39 {
    display: none;
}
/* 記事下の区切り線を「太い破線」に変更 */
.p-articleFoot {
    border-top: 3px dashed #bbb !important; /* 太さ3px、破線、濃いめのグレー */
    opacity: 1 !important; /* 透明度をなくしてハッキリ見せる */
    margin-top: 20px !important; /* 少しだけ余白を開けて見やすく */
    margin-bottom: 20px !important;
	padding-top: 0 !important;
}
/* 記事下メタタグ */
.p-articleMetas.-bottom  {
    display: none !important;
}
/* SWELL風H3：2色の線が重なるデザイン */
.swell-h3-solid {
    position: relative;           /* 線の位置合わせの基準 */
    padding: 0 .5em .5em;    /* 余白 */
    font-size: 1.3em;             /* 文字サイズ */
    font-weight: 700;             /* 太文字 */
    color: #333;                  /* 文字色 */
    margin-top: 3em;              /* 上の余白 */
    margin-bottom: 1.5em;         /* 下の余白 */
    line-height: 1.5;

    /* 1. ベースとなる薄い線（全幅に引く） */
    border-bottom: 2px solid rgba(210, 31, 79, 0.2); 
}

/* 2. 上に重ねる濃い線（メインカラー） */
.swell-h3-solid::after {
    content: '';
    position: absolute;
    bottom: -2px;                 /* ベースの線と同じ高さに合わせる */
    left: 0;
    width: 29.3%;                   /* 線の長さ（左から25%まで） */
    height: 2.5px;                  /* 線の太さ */
    background-color: #a8193f; /* SWELLのメインカラー */
    z-index: 1;
}

/* スマホ表示時の調整 */
@media (max-width: 959px) {
    .swell-h3-solid {
        font-size: 1.1em;
        margin-top: 2.5em;
        margin-bottom: 1.2em;
    }
    /* スマホでは濃い線を少し長めにするなどの調整（お好みで） */
    .swell-h3-solid::after {
        width: 35%;
    }
}
/* --- 複数ジャンルリンクのデザイン（除外機能付き） --- */

/* 全体の枠組み */
.genre-link-container {
    margin: 20px 0 30px;    /* 上下の余白 */
    text-align: center;     /* 中央寄せ */
}

/* 「この作品のジャンルをもっと見る ＞」の文字 */
.genre-search-label {
    display: inline-block;
    font-size: 0.9em;
    font-weight: bold;
    color: #555;
    margin-bottom: 8px;     /* 下のタグとの隙間 */
}

/* タグを並べるエリア */
.genre-link-list {
    display: flex;
    flex-wrap: wrap;        /* 折り返し許可 */
    justify-content: center;/* 中央配置 */
    gap: 8px;               /* タグ同士の隙間 */
}

/* カテゴリタグのデザイン */
.genre-link-tag {
    display: inline-block;
    padding: 6px 14px;      /* 内側の広さ */
    font-size: 0.85em;
    color: #333;
    background-color: #fff;
    border: 1px solid var(--color_main); /* SWELLメインカラーの枠線 */
    border-radius: 4px;     /* 角を少し丸く */
    text-decoration: none;  /* 下線なし */
    transition: all 0.2s;
}

/* ホバー時・タップ時 */
.genre-link-tag:hover {
    background-color: var(--color_main); /* 背景色がメインカラーに */
    color: #fff;            /* 文字色が白に */
    transform: translateY(-2px); /* 少し浮く */
}

/* スマホ表示の微調整 */
@media (max-width: 600px) {
    .genre-link-container {
        /* スマホでは文字とタグの距離を少し詰める */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}
/* =========================================
   関連作品・タグ一覧用 CSS（修正版）
   ========================================= */

/* --- 関連作品リスト（カード型） --- */
.p-relatedPosts .p-postList__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    height: auto !important;
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
}

/* --- タグ（ジャンル）一覧リスト --- */
.genre-link-container {
    margin-bottom: 40px;
    margin-top: 30px;
    text-align: left !important; /* コンテナ全体を左揃え */
}

.genre-search-label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    color: #555;
    text-align: left !important; /* 見出しも左揃え */
}

/* タグリストの横並び設定 */
.genre-link-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* 左寄せ配置 */
    gap: 8px; /* ボタン同士の間隔 */
}

/* タグボタン本体 */
.genre-link-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85em;
    color: #444;
    transition: all 0.2s ease;
    /* 旧コードのマージンをリセットしてgapに任せる */
    margin: 0;
}

.genre-link-tag:hover {
    background: #fff;
    border-color: #d14444;
    color: #d14444;
}
/* =========================================
   海賊版対策アコーディオン（漫画版）
   ========================================= */

/* コンテナ */
.piracy-accordion-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
    margin-bottom: 30px;
}

/* トリガーボタン（閉じた状態） */
label.piracy-accordion-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 15px !important;
    margin: 0 !important;
    background: #f0f0f0;
    cursor: pointer;
    min-height: auto !important;
    line-height: 1.2 !important;
    transition: background 0.3s;
}

label.piracy-accordion-trigger:hover {
    background: #e0e0e0;
}

/* テキスト装飾 */
.trigger-main-text {
    font-weight: bold;
    color: #333;
    font-size: 1em;
}

.trigger-icon {
    font-weight: bold;
    color: #aaa;
    font-size: 1.2em;
    transition: transform 0.3s;
}

/* 開いた時のボタン変化（赤くなる） */
#accordion-toggle-piracy:checked ~ label.piracy-accordion-trigger {
    background: #d14444;
}

#accordion-toggle-piracy:checked ~ label.piracy-accordion-trigger .trigger-main-text,
#accordion-toggle-piracy:checked ~ label.piracy-accordion-trigger .trigger-icon {
    color: #fff;
}

#accordion-toggle-piracy:checked ~ label.piracy-accordion-trigger .trigger-icon {
    transform: rotate(45deg);
}

/* 開くコンテンツ部分 */
.piracy-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: #fff;
}

/* 開いた時に表示 */
#accordion-toggle-piracy:checked ~ .piracy-accordion-content {
    max-height: 1500px; /* 十分な高さを確保 */
    border: 2px solid #d14444;
    border-top: none;
}

/* 中身のレイアウト */
.piracy-inner-content {
    padding: 20px;
    background: #fff5f5; /* 薄い赤背景 */
}

/* 警告ヘッダー */
.warning-header {
    background: #d14444;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* リスク箇条書きボックス */
.risk-box {
    background: #fff;
    padding: 15px;
    border: 2px dashed #d14444;
    border-radius: 5px;
    margin: 15px 0;
}

.risk-title {
    color: #d14444;
    font-weight: bold;
    margin-bottom: 5px;
}

.risk-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
    color: #d14444;
    font-weight: bold;
}
/* =========================================
   あらすじ開閉（続きを読む）用 CSS
   ========================================= */

/* 全体の枠 */
.story-expander {
    position: relative;
    margin-bottom: 30px;
}

/* 本文エリア（閉じた状態） */
.story-content-box {
    max-height: 200px; /* ここで閉じた時の高さを指定 */
    overflow: hidden;
    transition: max-height 0.5s ease; /* 開くときのアニメーション */
    position: relative;
}

/* 下部の白グラデーション（文字をぼかす演出） */
.story-content-box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1) 80%);
    pointer-events: none;
    transition: opacity 0.3s;
}

/* ボタンのデザイン */
.story-read-more-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    color: #888;
    font-size: 0.9em;
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee; /* 下線で区切り */
    position: relative;
}

/* ボタンの文字（閉じた状態） */
.story-read-more-btn::before {
    content: "あらすじを全文読む ∨";
    font-weight: bold;
}

/* --- 開いた時の挙動 --- */

/* 本文を全表示 */
#story-toggle:checked ~ .story-content-box {
    max-height: none; 
}

/* グラデーションを消す */
#story-toggle:checked ~ .story-content-box::after {
    opacity: 0;
    height: 0;
}

/* ボタンの文字を変更（開いた状態） */
#story-toggle:checked ~ .story-read-more-btn::before {
    content: "あらすじを閉じる ∧";
}
/* =========================================
   タグ一覧・見出しの左揃え強制（スマホ対応強化版）
   ========================================= */

/* コンテナと見出しを強制的に左寄せ */
.genre-link-container,
.genre-search-label {
    text-align: left !important;      /* 文字を左へ */
    align-items: flex-start !important; /* Flex要素だった場合も左へ */
    justify-content: flex-start !important;
    margin-left: 0 !important;        /* 左の余白を消す */
    margin-right: auto !important;    /* 右の余白を自動（左詰め） */
    width: 100% !important;           /* 幅を最大にして左寄せを有効化 */
    display: block !important;        /* ブロック要素として扱う */
}

/* タグリスト（ボタンの集まり）も左寄せ */
.genre-link-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start !important; /* ここが重要 */
    gap: 8px;
}

/* タグボタン本体 */
.genre-link-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85em;
    color: #444;
    transition: all 0.2s ease;
    margin: 0;
}

.genre-link-tag:hover {
    background: #fff;
    border-color: #d14444;
    color: #d14444;
}
/* =========================================
   フッター検索エリア（サークル・タグ一覧）
   ========================================= */

/* 見出しのデザイン */
.footer-search-title {
    font-size: 1.1em;
    font-weight: bold;
    border-bottom: 2px solid #ddd; /* 下線 */
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: #333;
}

/* リストをタグクラウド風（横並び）にする */
.my-footer-cat-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap; /* 横に並べて折り返す */
    gap: 8px; /* ボタン同士の間隔 */
}

/* リストアイテムの余白リセット */
.my-footer-cat-list li {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important; /* テーマの装飾を消す */
    border: none !important;
}

/* ボタン本体のデザイン */
.my-footer-cat-list li a {
    display: inline-block;
    padding: 6px 12px;
    background: #f7f7f7;     /* 背景色：薄いグレー */
    border: 1px solid #ccc;  /* 枠線 */
    border-radius: 4px;      /* 角を少し丸く */
    color: #444;             /* 文字色 */
    font-size: 0.85em;
    text-decoration: none;
    transition: 0.3s;
    line-height: 1.4;
}

/* ホバー時（マウスを乗せた時） */
.my-footer-cat-list li a:hover {
    background: #fff;
    border-color: #d14444;   /* 赤色 */
    color: #d14444;
}
/* スマホ・タブレット（幅959px以下）でサイドバーを非表示 */
@media screen and (max-width: 959px) {
  #sidebar {
    display: none !important;
  }
}
.l-articleBottom__section.w-afterRelated {
  margin-top: 0 !important;
}