@charset "UTF-8";

/* ==========================================================================
   1. 基本設定 & リセット (Base & Reset)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #D4AF37;
    --secondary-navy: #1A237E;
    --dark-navy: #0D1B4A;
    --light-gray: #F5F5F5;
    --text-dark: #333;
    --text-light: #666;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Noto Sans JP', '游ゴシック', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #f0f0f0; /* 全体背景を薄グレーに統一 */
    margin: 0;
}

img {
    width: 100%;
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* 共通コンテナ */
.container, 
.inner-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. ヘッダー & ナビゲーション (Header)
   ========================================================================== */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 5px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.header-visual, 
.header-visual picture {
    width: 100%;
    height: 72px; /* 高さを72pxに指定 */
    overflow: hidden; /* はみ出した部分を隠す */
    display: block;
}

.header-visual img {
    width: 100%;
    height: 100% !important; /* 親要素(72px)に合わせる */
    object-fit: cover;       /* ★重要：画像を歪ませずにエリア全体を埋める */
    object-position: center; /* 画像の「中心」を表示（top や bottom に変更も可能） */
    vertical-align: bottom;
}

.logo {
    font-size: 1.8rem;
    color: var(--secondary-navy);
    font-weight: bold;
    display: inline-block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--primary-gold);
}

/* パンくずリスト */
.breadcrumbs,
.breadcrumbs-area {
    background-color: #dcdcdc;
    padding: 3px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    margin-top: 0px;
    /* 親要素からはみ出さないように念のため hidden を指定 */
    overflow: hidden; 
}

.breadcrumbs-list {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
    
    /* ▼ 変更・追加箇所 ▼ */
    flex-wrap: nowrap;          /* 折り返しを禁止 */
    overflow-x: auto;           /* 横にはみ出た分をスクロールさせる */
    white-space: nowrap;        /* テキストの改行を禁止 */
    -webkit-overflow-scrolling: touch; /* iOSでのスクロールを滑らかに */
    
    /* スクロールバーを見えなくする場合（お好みで） */
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE, Edge */
}

/* スクロールバー非表示（Chrome, Safari） */
.breadcrumbs-list::-webkit-scrollbar {
    display: none;
}

/* ▼ 新規追加: リストアイテムが潰れないようにする設定 ▼ */
.breadcrumbs-list li {
    flex-shrink: 0; /* 幅が足りなくても要素を縮めない */
}

.breadcrumbs-list li:after {
    content: ">";
    margin-left: 10px;
    color: #333;
}

.breadcrumbs-list li:last-child:after {
    display: none;
}

.breadcrumbs-list .current,
.breadcrumbs-list li span {
    font-weight: bold;
    color: #666;
    display: inline;
    /* max-widthなどは不要になるため削除してもOKですが、そのままでも動作します */
}
/* ヘッダーの土台 */
.site-header {
    background-color: #293C54; /* 指定の背景色 */
    width: 100%;
    height: 72px; /* 高さを固定 */
    position: relative !important;
    margin-top: 0 !important;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* コンテンツの整列 */
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 70px 0px 20px;
}

/* ロゴ */
.header-logo a {
    display: block;
    height: 40px; /* ロゴの高さ調整 */
}
.header-logo img {
    height: 100%;
    width: auto;
    display: block;
}

/* --- PC用ナビゲーション --- */
.header-nav-pc ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.header-nav-pc a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: opacity 0.3s;
}
.header-nav-pc a:hover {
    opacity: 0.7;
    color: #3574C2;
}

/* --- ハンバーガーメニューボタン（初期状態は非表示） --- */
.hamburger-btn {
    display: none; /* PCでは消す */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
}
.hamburger-btn img {
    width: 100%;
    height: auto;
}

/* --- SP用ドロワーメニュー（初期状態は非表示） --- */
.sp-drawer-menu {
    display: none; /* JSでクラスが付与されたら表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2000;
}
/* メニュー本体（右からスライド用） */
.drawer-inner {
    /* --- ① 配置とスライド機能（既存の仕様を維持） --- */
    position: fixed;   /* ★重要：relativeではなくfixedにします（画面固定＋absoluteの基準点になる） */
    top: 0;
    right: -300px;     /* 初期状態は画面外（右） */
    z-index: 2002;
    transition: right 0.3s ease; /* スライドアニメーション */

    /* --- ② サイズと見た目 --- */
    width: 70%;        /* 画面の70%幅（80%だと大きすぎる場合があるため調整） */
    max-width: 300px;  /* PC等での最大幅 */
    height: 100%;      /* 縦いっぱい */
    background: #fff;  /* 背景色 */
    box-shadow: -2px 0 5px rgba(0,0,0,0.1); /* 影 */
    
    /* --- ③ 内部レイアウト（今回の変更点） --- */
    box-sizing: border-box; /* paddingを含めたサイズ計算 */
    
    /* ★ここが一番重要：閉じるボタン(absolute)と被らないように上部に余白を作る */
    padding: 80px 20px 20px; 
    
    overflow-y: auto;   /* メニューが縦に長すぎた場合にスクロール可能にする */
}
/* 背景の黒い膜 */
.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2001;
    opacity: 0;
    transition: opacity 0.3s;
}

/* 閉じるボタン */
.drawer-close {
    position: absolute;
    top: 20px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 2003;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 中身の画像（子） */
.drawer-close img {
    width: 50%;       /* 親の幅(40px)に合わせる */
    height: 50%;      /* 親の高さ(40px)に合わせる */
    object-fit: contain; /* 縦横比を崩さず、枠の中に収める */
    display: block;    /* 隙間をなくす */
}
/* メニューリスト（念のためリセット） */
.drawer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-list li a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
}

/* --- ドロワーが開いた時のスタイル（JSで .is-active を付与） --- */
.sp-drawer-menu.is-active {
    display: block;
}
.sp-drawer-menu.is-active .drawer-inner {
    right: 0; /* 画面内に出てくる */
}
.sp-drawer-menu.is-active .drawer-overlay {
    opacity: 1;
}

/* ドロワー内のリンク */
.drawer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #eee; /* デザインの区切り線（お好みで） */
}

.drawer-list li a {
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.drawer-close {
    font-size: 0; /* 画像読み込み失敗時にテキスト"閉じる"が崩れるのを防ぐ */
}



/* ==========================================================================
   3. トップページ用スタイル (Hero, Brands, Ranking)
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--secondary-navy) 0%, var(--dark-navy) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 0; /* パンくずがないページ用 */
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ブランド一覧 */
.brands-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #010202;
}
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.brand-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.brand-image {
    height: 200px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-content {
    padding: 2rem;
    flex: 1;
}

/* ランキング */
.ranking-section {
    padding: 45px 0;
}
.ranking-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}
.rank-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-gold);
    width: 50px;
    text-align: center;
}
.company-info h3 {
    font-size: 1.3rem;
    color: var(--secondary-navy);
}
.company-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.feature {
    background-color: var(--secondary-navy);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
}
.title-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* スマホなどで幅が狭いときは折り返す */
    gap: 15px;       /* タイトルとタグの間の余白 */
    margin-bottom: 0.5rem;
}

/* 既存のh3のスタイル調整（マージンをリセット） */
.company-info h3 {
    margin-bottom: 0 !important;
    line-height: 1.4;
}

/* タグエリアの設定 */
.company-features {
    display: flex;
    gap: 8px; /* タグ同士の隙間 */
}

/* タグ共通デザイン */
.feature {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: #1A237E;
}

/* 指定カラー1：店頭買取（薄い緑ベージュ系 #E6E1C6） */
.feature.type-tentou {
    background-color: #E6E1C6 !important;
    color: #333 !important; /* 必要に応じて文字色調整 */
}

/* 指定カラー2：宅配買取（薄いピンクベージュ系 #F0E4D4） */
.feature.type-takuhai {
    background-color: #F0E4D4 !important;
    color: #333 !important;
}

/* 1. レイアウト・余白用ユーティリティ（もし消えていれば） */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 30px !important;
}

.mb-1 {
    margin-bottom: 15px !important;
}

/* 2. 上部のテキスト（11社の詳細比較と...） */
.text-muted {
    color: #666;
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 10px; /* 下に少し余白 */
    display: block;
}

/* 3. ボタン本体*/
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #58ADE6, #3574C2);
    color: #fff !important;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    
    /* サイズと形 */
    width: 100%;
    max-width: 500px; /* 横幅が広がりすぎないように制限 */
    padding: 18px 20px;
    border-radius: 6px; 
    
    /* 影をつけて浮き上がらせる */
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    
    /* アニメーション */
    transition: opacity 0.3s, transform 0.2s;
    line-height: 1.2;
}

/* ホバー時の動き */
.cta-button:hover {
    opacity: 0.8;
    transform: translateY(-2px); /* 少し浮き上がる */
    color: #fff !important;
}

/* スマホでの調整 */
@media (max-width: 768px) {
    .cta-button {
        font-size: 16px;
        padding: 16px 20px;
        width: 90%; /* スマホでは画面幅の90%くらいに */
    }
    
    .text-muted {
        font-size: 13px;
    }

    .ranking-section {
        padding: 28px 0;
    }
}



/* ==========================================================================
   4. 記事一覧・おすすめコンテンツ (Archive & Article List)
   ========================================================================== */
.article_content {
    background-color: #fff;
    padding: 28px 0;
}
.article_content.archive-bg {
    background-color: #f0f0f0;
    min-height: 100vh;
}
.article_content h2,
.recommend-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    color: #333;
}
.article_content .sub,
.recommend-sub {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* グリッドレイアウト（横並び） */
.article-list,
.article-list-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    width: 100%;
}

/* 記事カード */
.article_item {
    /* 4列表示: (100% - 隙間60px) / 4 */
    width: calc((100% - 60px) / 4);
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    height: 420px; /* 高さ固定 */
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article_item:hover{
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article_item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

/* カード画像 */
.article_item .pic,
.card-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ddd;
    flex-shrink: 0;
}

/* カード内容 */
.article_item .content,
.card-content {
    padding: 15px 15px 60px; /* 下部余白はボタン用 */
    flex-grow: 1;
}

.article_item .title,
.card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #333;
    /* 3行制限 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.article_item .pc_content,
.card-text {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    /* 3行制限 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* カードボタン */
.article_item .btn-wrap {
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 100%;
    padding: 0;
    text-align: center;
}

.article_item .text,
.card-btn {
    display: inline-block;
    width: 90% !important; 
    max-width: 240px; 
    background-color: #3574C2 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    text-align: center;
    padding: 12px 0 !important; /* 上下の厚み */
    margin: 0 auto !important;  /* 念のための中央配置指定 */
}

/* もっと見るボタン */
.article_more,
.btn-green {
    display: block;
    width: 300px;
    margin: 8px auto 0;
    background: linear-gradient(135deg, #58ADE6, #3574C2);
    color: #fff;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.17);
}

/* ==========================================================================
   5. 記事詳細ページ (Single Page)
   ========================================================================== */
#wrapper-single {
    width: 100%;
    background-color: #f0f0f0;
    padding-bottom: 28px;
}

/* 詳細ページのメインエリア（白箱） */
.single-main-area .white-box {
    background-color: #fff;
    padding: 28px 40px 60px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 60px;
    max-width: 782px;
    margin: 0 auto 0px;
}

/* 記事ヘッダー */
.article-header-single {
    margin-bottom: 40px;
}
.article-date {
    font-family: serif;
    color: #666;
    margin-bottom: 10px;
}
.article-title-single {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #333;
    border: none;
}
.article-share-top {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 30px;
}
.article-share-top a {
    font-weight: bold;
    color: #333;
}

/* アイキャッチ */
.article-thumbnail-single img {
    width: 100%;
    margin-bottom: 40px;
}

/* 記事本文 */
.article-content-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.article-content-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 50px 0 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3574C2;
}
.article-content-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 5px solid #3574C2;
    background: #f9f9f9;
    padding: 10px 15px;
}
.article-content-body p {
    margin-bottom: 30px;
}
.article-content-body img {
    margin: 30px 0;
}

/* 詳細ページ下部のおすすめエリア */
.recommend-area {
    padding-top: 28px;
    border-top: 0px solid #ddd;
    text-align: center;
}

/* ==========================================================================
   6. ページネーション (Pagination)
   ========================================================================== */
.pagination-wrap {
    display: flex;
    justify-content: center;
}
.pagination-wrap ul {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
}
.pagination-wrap .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    background-color: #444;
    color: #fff;
    font-weight: bold;
    border-radius: 2px;
}
.pagination-wrap .page-numbers.current {
    background-color: #D4AF37;
}

/* ==========================================================================
   7. フッター (Footer)
   ========================================================================== */
.main-footer {
    background-color: #293C54;
    color: var(--white);
    padding: 60px 0 20px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-gold);
}
.footer-section ul {
    list-style: none;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

.sp-br {
    display: none;
}

/* ==========================================================================
   8. レスポンシブ対応 (Responsive)
   ========================================================================== */
@media (max-width: 1024px) {
    .article_item {
        width: calc((100% - 40px) / 3); /* 3列 */
    }
}

@media (max-width: 768px) {

    .section-title {
        font-size: 26px;
    }
    /* 記事一覧 */
    .article_item {
        width: calc((100% - 20px) / 2);
        height: auto;
        margin-bottom: 20px !important;
        background: #fff;
        border: 1px solid #eee;
        overflow: hidden;
    }
    .article_item .content, .card-content {
        text-align: left !important;
        width: 100%; /* 念のため幅を確保 */
        padding-bottom: 60px;
    }

    .article-list,
    .article-list-grid {
        gap: 0px;
    }
    
    /* 詳細ページ */
    .single-main-area .white-box {
        padding: 28px 20px 28px;
    }
    .article-title-single {
        font-size: 22px;
    }
    .article-share-top {
        justify-content: flex-start;
    }
    
    /* 共通 */
    .hero-title {
        font-size: 2rem;
    }
    .footer-content {
        grid-template-columns: 1frlog
    }
    .sp-br {
        display: block;
    }

    /* PCナビを消す */
    .header-nav-pc {
        display: none;
    }
    /* ハンバーガーボタンを表示 */
    .hamburger-btn {
        display: block;
    }

    /* 1. カード全体の枠組み（角丸と切り抜き） */
    .article_item {
        overflow: hidden;               /* 画像が角丸からはみ出ないように切り抜く */
        border: 1px solid #eee;         /* 薄い枠線（お好みで） */
        margin-bottom: 20px !important;
        background: #fff;
    }

    /* 2. リンク全体（Flexコンテナ） */
    .article_item a {
        display: grid; 
        width: 100%;
        padding: 0 !important;
        text-decoration: none;
        height: 148px;
        overflow: hidden;
        
        /* 列の定義: [左130px] [右は残り全部] */
        grid-template-columns: 130px 1fr;
        
        /* 行の定義: [上段:なりゆき] [下段:中身に合わせて自動] */
        grid-template-rows: 1fr auto;
        
        grid-template-areas: 
            "image content"
            "image button";
    }

    /* 2. 画像エリア (左側全域) */
    .article_item .pic {
        grid-area: image;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        background-size: cover !important;
        background-position: center !important;
    }

    /* 3. コンテンツエリア (右上) */
    .article_item .content {
        grid-area: content;
        padding: 15px 15px 0 15px !important; /* 下の余白は不要 */
        overflow: hidden; /* 万が一のあふれ防止 */
    }
    /* タイトルなどの設定はそのまま */
    .article_item .title {
        font-size: 14px !important;
        line-height: 1.5 !important; /* 1行の高さは約21px */
        font-weight: bold;
        margin-bottom: 0 !important;
        color: #333;

        /* 2行で切る */
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        white-space: normal !important;
    }

    .article_item .pc_content {
        display: none !important;
    }

    /* 4. ボタンエリア (右下) */
    .article_item .btn-wrap {
        grid-area: button; /* エリア名を指定 */
        
        /* コンテンツと同じパディングを与えて位置を揃える */
        padding: 5px 15px 15px 15px !important;
        /* サイズと形 */
        width: 100%;
        max-width: 500px; /* 横幅が広がりすぎないように制限 */
        border-radius: 6px;
        
        position: static !important;
        background: none !important;
        margin: 0 !important;
    }

    .article_item .text {
        font-size: 12px !important;
        padding: 8px 0 !important;
        background-color: #010202;
        color: #fff !important;
        border-radius: 6px !important;
        width: 100% !important;
        display: block;
        text-align: center;
        margin: 0 !important;
        position: static !important;
    }

    /* 1. 見出しのフォントサイズを26pxに変更 */
    .section-title {
        font-size: 26px !important;
        line-height: 1.4 !important; /* 読みやすい行間に調整 */
        margin-bottom: 30px !important;
    }

    /* 2. ランキングボックスの中身を中央揃えにする */
    .ranking-item {
        flex-direction: column !important; /* 横並びから縦積みに変更 */
        align-items: center !important;    /* 左右中央揃え */
        text-align: center !important;     /* テキストを中央揃え */
        padding: 30px 20px !important;     /* 内側の余白を調整 */
        gap: 10px !important;
    }

    /* 順位番号（1, 2, 3...） */
    .rank-number {
        margin: 0 auto 10px !important; /* 中央配置と下の余白 */
        width: auto !important;         /* 幅制限を解除 */
    }

    /* 会社情報エリア */
    .company-info {
        width: 100%;
    }

    /* タイトルとタグのエリア */
    .title-area {
        justify-content: center !important; /* 中央寄せ */
        flex-direction: column !important;  /* スマホではタイトルとタグを縦に積む */
        gap: 10px !important;
        margin-bottom: 10px !important;
    }

    /* 会社名（h3） */
    .company-info h3 {
        font-size: 20px !important; /* 少し大きくして強調 */
        text-align: center !important;
    }

    /* タグ群（店頭買取など） */
    .company-features {
        justify-content: center !important; /* タグを中央寄せ */
    }

    /* 評価（星） */
    .rating {
        justify-content: center !important;
        display: flex;
        margin-bottom: 15px !important;
    }

    /* 説明文 */
    .company-info p {
        text-align: center !important; /* 本文も中央揃え */
        font-size: 14px !important;
        line-height: 1.6;
    }
}

/* --- ヘッダー固定分の余白調整 --- */
/* ヘッダーがfixedになったので、bodyかmainの上部に余白が必要 */
body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
/* もしindex.phpのトップ画像(hero)がズレる場合はここで調整 */
.hero {
    margin-top: 0 !important; /* padding-topがあるのでmarginは不要 */
}


@media (max-width: 480px) {
    .article_item {
        width: 100%; /* 1列 */
    }
}

/* 記事一覧ページのタイトルを中央揃えにする */
.archive-title {
    text-align: center !important;
    width: 100%;
    margin-bottom: 28px;
}


/* 記事ボックスのタイトルと本文に下線を引く */
/* .article_item .title,
.article_item .pc_content,
.card-title,
.card-text {
    text-decoration: underline !important;
    /* 下線の色を少し薄くしたい場合は以下を有効化してください */
    /* text-decoration-color: #999; */

/* 下線により読みづらくなるのを防ぐため、行間を少し広げる */
.article_item .title,
.card-title {
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
}

/* 1. リスト全体（親の箱）の設定 */
/* ここには背景色をつけない！ */
.pagination-wrap ul.page-numbers {
    display: flex !important;
    gap: 10px !important;       /* ボタン同士の隙間 */
    justify-content: center;
    align-items: center;
    padding: 0 !important;
    margin: 28px 0 !important;
    list-style: none !important;
    background-color: transparent !important; /* 背景透明（ここが重要） */
    border: none !important;
}

/* 2. リスト項目（li）の設定 */
.pagination-wrap ul.page-numbers li {
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. 個別のボタン（aタグとspanタグ）の設定 */
/* ここだけに背景色をつける */
.pagination-wrap ul.page-numbers li a,
.pagination-wrap ul.page-numbers li span {
    display: flex !important;
    justify-content: center;
    align-items: center;
    
    /* サイズ設定 */
    height: 40px !important;
    min-width: 40px !important; /* 正方形を維持 */
    width: auto !important;     /* 文字数に合わせて伸びる */
    padding: 0 15px !important; /* 文字の左右の余白 */
    
    /* デザイン */
    background-color: #444 !important; /* ボタンの色 */
    color: #fff !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 14px;
    line-height: 1 !important;
    white-space: nowrap !important; /* 改行防止 */
    
    transition: opacity 0.3s;
}

/* 現在のページ*/
.pagination-wrap ul.page-numbers li span.current {
    background: linear-gradient(135deg, #58ADE6, #3574C2);
    color: #fff !important;
    cursor: default;
}

/* 「...」のデザイン */
.pagination-wrap ul.page-numbers li span.dots {
    background-color: transparent !important;
    color: #333 !important;
    min-width: auto !important;
}

/* ホバー時のデザイン */
.pagination-wrap ul.page-numbers li a:hover {
    opacity: 0.8;
}