/**
 * index.css - 質問一覧ページ固有のスタイル
 * v1.92L27: index.phpのインラインCSSから外部化
 */


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* ベースフォント設定はcommon.cssに移動 */

        body {
            /* フォント設定はcommon.cssに移動 */
            line-height: 1.7;
            color: #000000;
            background: #fdfcfb;
        }

        /* ヘッダー（トップページと統一） */
        header {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 2px 15px rgba(0,0,0,0.06);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-weight: bold;
            text-decoration: none;
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
            font-size: inherit; /* 継承をリセット */
        }

        .logo-main {
            font-size: 3.2rem; /* 32px */
            background: linear-gradient(135deg, #8b6f47 0%, #d4af37 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.2;
        }

        .logo-subtitle {
            font-size: 1.8rem; /* 18px */
            color: #666;
            font-weight: normal;
            line-height: 1.2;
        }

        /* ナビゲーションスタイルはcommon.cssで定義 */


        /* パンくずリスト */
        .breadcrumb {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem 2rem;
            font-size: 1.4rem;
        }

        .breadcrumb a {
            color: #8b6f47;
            text-decoration: none;
        }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

        .breadcrumb span {
            color: #999;
            margin: 0 0.5rem;
        }

        /* コンテナ */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1.5rem 2rem;
        }

        .main-layout {
            display: grid;
            grid-template-columns: 1fr 280px;
            grid-template-rows: min-content 1fr; /* 第1行は最小高さ、第2行は残り */
            grid-template-areas:
                "main sidebar-top"
                "main sidebar-bottom";
            column-gap: 2rem; /* 列の間隔のみ */
            row-gap: 0; /* 行の間隔なし */
            align-items: start;
        }

        .main-content {
            grid-area: main;
            min-width: 0;
        }

        .sidebar-top {
            grid-area: sidebar-top;
            align-self: start; /* 上揃え */
            margin-bottom: 0 !important; /* 下マージンなし */
            padding-bottom: 0 !important; /* 下パディングもなし */
        }

        .sidebar-bottom {
            grid-area: sidebar-bottom;
            align-self: start; /* 上揃え */
            margin-top: 0 !important; /* 上マージンなし */
            padding-top: 0 !important; /* 上パディングもなし */
        }

        /* sidebar-top内のすべての要素のmarginを0に */
        .sidebar-top * {
            margin-bottom: 0 !important;
        }

        /* sidebar-bottom内の最初の要素も上マージン不要 */
        .sidebar-bottom > *:first-child {
            margin-top: 0 !important;
        }

        /* sidebar-top内の検索ウィジェットは下マージン不要 */
        .sidebar-top .search-widget {
            margin-bottom: 0 !important;
        }

        /* sidebar-top内のsidebar-widgetも下マージン不要 */
        .sidebar-top .sidebar-widget {
            margin-bottom: 0 !important;
        }

        /* ページヘッダー */
        .page-header {
            background: white;
            padding: 1.5rem;
            border-radius: 10px;
            margin-bottom: 1.5rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .page-title {
            font-size: 2.0rem; /* 20px - ページタイトルは大きく */
            font-weight: 700;
            color: #000000;
            margin-bottom: 0.3rem;
        }

        .page-meta {
            color: #000;
            font-size: 1.4rem;
        }

        /* サービスの特徴 */
        .service-features {
            background: linear-gradient(135deg, #fff9e6 0%, #fffaf0 100%);
            border-left: 4px solid #d4af37;
            padding: 1.5rem;
            border-radius: 10px;
            margin-bottom: 1.5rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .service-features p {
            font-size: 1.4rem;
            line-height: 1.8;
            color: #333;
            margin: 0;
        }

        /* カテゴリーフィルター */
        .category-filter {
            background: white;
            padding: 1rem 1.2rem;
            border-radius: 10px;
            margin-bottom: 1.5rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.04);
        }

        .category-filter-header {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .category-filter-title {
            font-size: 1.9rem;
            font-weight: 600;
            color: #8b6f47;
            letter-spacing: 0.1em;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .category-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .category-tab {
            padding: 0.4rem 1rem;
            background: #f9f8f6;
            border: 1px solid #ebe7e0;
            border-radius: 20px;
            color: #000;
            text-decoration: none;
            font-size: 1.4rem;
            font-weight: 500;
            transition: all 0.3s;
        }

        .category-tab:hover,
        .category-tab.active {
            background: linear-gradient(135deg, #8b6f47 0%, #d4af37 100%);
            color: white;
            border-color: transparent;
        }

        /* 質問リスト */
        .questions-list {
            display: grid;
            gap: 1rem;
        }

        .question-card {
            background: white;
            padding: 1.2rem 1.5rem;
            border-radius: 10px;
            text-decoration: none;
            color: inherit;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            border-left: 3px solid #d4af37;
            transition: all 0.3s ease;
        }

        .question-card:hover {
            transform: translateX(5px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            color: #8b6f47; /* v1.89L30: ホバー時ゴールド色（今月の人気質問と統一） */
        }

        .question-card:hover .question-title {
            color: #8b6f47; /* v1.89L30: タイトルもゴールド色 */
        }

        .question-category {
            display: inline-block;
            background: linear-gradient(135deg, #8b6f47 0%, #d4af37 100%);
            color: white;
            padding: 0.15rem 0.6rem;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .question-title {
            font-size: 1.6rem; /* 16px */
            font-weight: bold;
            color: #000000;
            margin-bottom: 0.5rem;
            line-height: 1.6; /* v1.87L03: 統一 */
        }

        .question-excerpt {
            font-size: 1.5rem; /* 15px */
            color: #000;
            margin-bottom: 0.5rem;
            white-space: pre-wrap;
            overflow: hidden;
        }

        .question-meta {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            font-size: 1.4rem;
            color: #000;
            line-height: 1.5;
        }

        .question-meta .meta-row {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            align-items: center;
        }

        .question-meta span {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            white-space: nowrap;
        }

        /* ページネーション */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 2rem;
            flex-wrap: wrap;
        }

        .pagination .page-link {
            padding: 0.5rem 1rem;
            border-radius: 5px;
            text-decoration: none;
            font-size: 1.4rem;
            background: white;
            color: #8b6f47;
            border: 1px solid #e0e0e0;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .pagination .page-link:hover:not(.disabled):not(.active) {
            background: #f9f8f6;
            border-color: #8b6f47;
        }

        .pagination .page-link.active {
            background: linear-gradient(135deg, #8b6f47 0%, #d4af37 100%);
            color: white;
            border-color: transparent;
            font-weight: bold;
        }

        .pagination .page-link.disabled {
            background: #f5f5f5;
            color: #ccc;
            border-color: #e0e0e0;
            cursor: not-allowed;
            opacity: 0.6;
        }

        .pagination .page-ellipsis {
            padding: 0.5rem 1rem;
            font-size: 1.4rem;
            color: #999;
        }

        /* 旧クラス対応（後方互換性） */
        .pagination a,
        .pagination span {
            padding: 0.5rem 1rem;
            border-radius: 5px;
            text-decoration: none;
            font-size: 1.4rem;
        }

        .pagination a {
            background: white;
            color: #8b6f47;
            border: 1px solid #e0e0e0;
        }

        .pagination a:hover {
            background: #f9f8f6;
        }

        .pagination .current {
            background: linear-gradient(135deg, #8b6f47 0%, #d4af37 100%);
            color: white;
        }

        /* サイドバー */
        .sidebar {
            position: sticky;
            top: 80px;
        }

        .sidebar-widget {
            background: white;
            border-radius: 10px;
            padding: 1rem;
            margin-bottom: 1rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .sidebar-title {
            font-size: 1.5rem; /* 15px */
            font-weight: 700;
            color: #000000;
            margin-bottom: 0.8rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #d4af37;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .sidebar-banner {
            width: 100%;
            aspect-ratio: 7 / 5;  /* 280:200の比率 */
            overflow: hidden;
            background: linear-gradient(135deg, #f9f8f6 0%, #f0ebe5 100%);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #bbb;
            font-size: 1.4rem;
            margin-bottom: 1rem;
        }

        .sidebar-banner img {
            width: 100%;
            height: 100%;
            object-fit: contain;  /* 縦横比を保ちながら全体を表示 */
            display: block;
        }

        .sidebar-list {
            list-style: none;
        }

        .sidebar-list li {
            padding: 0.5rem 0;
            border-bottom: 1px solid #f5f3f0;
        }

        .sidebar-list li:last-child {
            border-bottom: none;
        }

        .sidebar-list a {
            color: #000000; /* v1.89L30: グレーから黒に変更 */
            text-decoration: none;
            font-size: 1.4rem;
            transition: color 0.3s;
            display: block;
            line-height: 1.4;
        }

        /* 画像付きリストの場合は例外（flexを維持） */
        .sidebar-list-with-images a {
            display: flex;
        }

        .sidebar-list a:hover {
            color: #8b6f47;
        }

        .sidebar-meta {
            font-size: 1.4rem; /* v1.89L30: 14pxに変更 */
            color: #000;
            margin-top: 0.2rem;
        }

        /* 空の状態 */
        .empty-state {
            text-align: center;
            padding: 3rem;
            color: #000;
        }

        .empty-state h3 {
            font-size: 1.9rem;
            margin-bottom: 0.5rem;
        }

        /* フッター */
        footer {
            background: #000000;
            color: white;
            padding: 2rem;
            margin-top: 2rem;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            flex-wrap: wrap;
            margin-bottom: 1rem;
        }

        .footer-links a {
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            font-size: 1.4rem;
        }

        .footer-links a:hover {
            color: white;
        }

        .footer-copyright {
            font-size: 1.4rem;
            color: rgba(255,255,255,0.5);
        }

        /* レスポンシブ */
        @media (max-width: 1024px) {
            .main-layout {
                grid-template-columns: 1fr;
            }

            .sidebar {
                position: static;
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }
        }

        /* タブレット用（769px〜1024px） */
        @media (min-width: 769px) and (max-width: 1024px) {
            .header-content {
                padding: 1rem 2rem; /* 左右に余白を確保 */
            }
            /* ナビゲーションスタイルはcommon.cssで定義 */
        }

        @media (max-width: 768px) {
            .header-content {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                padding: 1.2rem 1.5rem;
                gap: 0;
            }

            .logo {
                flex: 1;
            }

            .logo-main {
                font-size: 2.4rem;
            }

            .logo-subtitle {
                font-size: 1.2rem;
            }

            /* ナビゲーションスタイルはcommon.cssで定義 */

            /* main-layoutを1カラム+順序変更 */
            .main-layout {
                grid-template-columns: 1fr;
                grid-template-areas:
                    "sidebar-top"
                    "main"
                    "sidebar-bottom";
            }

            .container {
                padding: 1rem;
            }

            .footer-links {
                flex-direction: column;
                gap: 0.8rem;
            }
            
            /* v1.87L03: スマホ用文字サイズ */
            .question-title {
                font-size: 1.5rem; /* 15px */
                line-height: 1.6;
            }

            /* v1.89L76: カテゴリーフィルター縦並び */
            .category-filter-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.8rem;
            }

            .service-features p {
                font-size: 1.3rem;
                line-height: 1.6;
            }
        }

        /* 検索ウィジェット */
        .search-widget {
            background: #fff;
            border-radius: 10px;
            padding: 2rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            margin-bottom: 2rem;
        }

        .search-form {
            display: flex;
            flex-wrap: wrap; /* 折り返し可能 */
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .search-input {
            flex: 1;
            min-width: 0; /* 縮小可能 */
            padding: 0.8rem 1rem;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 1.4rem;
        }

        .search-button,
        .search-detail-toggle {
            padding: 0.8rem 1.5rem;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1.4rem;
            font-weight: 500;
            white-space: nowrap;
        }

        .search-button {
            background: linear-gradient(135deg, #8b6f47 0%, #d4af37 100%);
            color: white;
        }

        .search-detail-toggle {
            background: #f0f0f0;
            color: #000;
            width: 100%; /* 詳細ボタンは1行占有 */
        }

        .detail-search {
            margin-top: 1rem;
            padding: 1.5rem;
            background: #f9f9f9;
            border-radius: 5px;
        }

        .search-field {
            margin-bottom: 1rem;
        }

        .search-field label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            font-size: 1.3rem;
        }

        .search-field input {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 1.4rem;
        }

        .search-field span {
            margin: 0 0.5rem;
            font-size: 1.3rem;
        }

        .search-submit {
            width: 100%;
            padding: 1rem;
            background: linear-gradient(135deg, #8b6f47 0%, #d4af37 100%);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1.5rem;
            font-weight: 500;
        }

        .search-submit:hover {
            opacity: 0.9;
        }

        /* 画像付き記事用スタイル */
        .sidebar-list-with-images {
            list-style: none;
        }

        .article-item-with-image {
            padding: 1rem 0;
            border-bottom: 1px solid #f5f5f5;
        }

        .article-item-with-image:last-child {
            border-bottom: none;
        }

        .sidebar-list-with-images .article-link {
            display: flex !important;
            gap: 1rem;
            text-decoration: none;
            color: inherit;
            transition: opacity 0.2s;
        }

        .sidebar-list-with-images .article-link:hover {
            opacity: 0.8;
        }

        .article-thumbnail {
            flex-shrink: 0;
            width: 80px;
            height: 80px;
            overflow: hidden;
            border-radius: 4px;
        }

        .article-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .article-content {
            flex: 1;
            min-width: 0;
        }

        .article-category {
            display: inline-block;
            padding: 0.2rem 0.6rem;
            font-size: 1rem;
            border-radius: 3px;
            margin-bottom: 0.3rem;
            font-weight: 600;
        }

        /* カテゴリ別の色分け */
        .sidebar-list-with-images .article-category-experience {
            background: #ffebee !important;
            color: #d32f2f !important;
        }

        .sidebar-list-with-images .article-category-analysis {
            background: #e8f5e9 !important;
            color: #388e3c !important;
        }

        .sidebar-list-with-images .article-category-misc {
            background: #f3e5f5 !important;
            color: #7b1fa2 !important;
        }

        .sidebar-list-with-images .article-category-how-to {
            background: #fff8e1 !important;
            color: #f57c00 !important;
        }

        .article-title {
            font-size: 1.3rem;
            font-weight: 600;
            line-height: 1.4;
            margin-bottom: 0.3rem;
            color: #000000;
        }

        .article-meta {
            font-size: 1rem;
            color: #999;
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
        }

        .article-date, .article-author, .article-views {
            font-size: 1rem;
            line-height: 1.4;
        }

        /* NEWバッジのアニメーション */
        @keyframes newPulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 2px 6px rgba(255, 68, 68, 0.4);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 0 2px 12px rgba(255, 68, 68, 0.6);
            }
        }

        .new-badge {
            animation: newPulse 2s ease-in-out infinite !important;
        }
    