 :root {
   --primary: #1E3A8A;
   --bg: #FFF;
   --surface: #F8FAFC;
   --text: #0F172A;
   --subtext: #475569;
   --border: #E2E8F0;
   --accent: #D97706;
 }

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

 body {
   font-family: sans-serif;
   background-color: var(--bg);
   color: var(--text);
   padding: 2rem;
 }

 .header {
   text-align: center;
   margin-bottom: 1.5rem;
 }

 .header h1 {
   color: var(--primary);
   font-size: 1.8rem;
   margin-bottom: 0.5rem;
 }

 /* --- フィルターエリア --- */
 .filter-container {
   max-width: 1400px;
   margin: 0 auto 2rem auto;
   background: var(--surface);
   padding: 1.5rem;
   border-radius: 8px;
   border: 1px solid var(--border);
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
 }

 .filter-group {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   margin-bottom: 0.75rem;
   flex-wrap: wrap;
 }

 .filter-group:last-child {
   margin-bottom: 0;
 }

 .filter-label {
   font-weight: bold;
   font-size: 0.85rem;
   color: var(--subtext);
   min-width: 80px;
 }

 .filter-btn {
   background: #F1F5F9;
   border: 1px solid var(--border);
   color: var(--text);
   padding: 0.4rem 0.8rem;
   border-radius: 20px;
   font-size: 0.85rem;
   cursor: pointer;
   transition: all 0.2s ease;
 }

 .filter-btn:hover {
   background: #E2E8F0;
 }

 .filter-btn.active {
   background: var(--primary);
   color: #FFFFFF;
   border-color: var(--primary);
 }


 /* --- カードグリッド --- */
 .grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
   gap: 1.5rem;
   max-width: 1400px;
   margin: 0 auto;
 }

 
 footer {
   width: 100%;
   img{
    width: 70%;
   }
 }


 .card {
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: 8px;
   overflow: hidden;
   display: flex;
   flex-direction: column;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
   transition: transform 0.2s ease, opacity 0.2s ease;
   
 }

 .card.is-hidden {
   display: none;
 }

 .card-header {
   background: var(--primary);
   color: #fff;
   padding: 1rem;
   display: flex;
   justify-content: space-between;
   align-items: center;
 }

 .card-header .title {
   font-weight: bold;
   font-size: 1.1rem;
 }

 .card-header .shape {
   background: rgba(255, 255, 255, 0.2);
   padding: 0.2rem 0.6rem;
   border-radius: 4px;
   font-size: 0.85rem;
 }

 /* トラック画像用スタイル */
 .card-img-container {
   width: 100%;
   height: 350px;
   background-color: #E2E8F0;
   overflow: hidden;

 }

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

 .card-body {
   padding: 1rem;
   flex-grow: 1;
 }

 .spec-table {
   width: 100%;
   border-collapse: collapse;
   font-size: 0.88rem;
   margin-bottom: 1rem;
 }

 .spec-table th, .spec-table td {
   padding: 0.4rem 0;
   border-bottom: 1px solid var(--border);
 }

 .spec-table th {
   text-align: left;
   color: var(--subtext);
   width: 35%;
   font-weight: normal;
 }

 .spec-table td {
   text-align: right;
   font-weight: 500;
 }

 .price-box {
   background: #F1F5F9;
   padding: 0.75rem;
   border-radius: 6px;
 }

 .price-title {
   font-size: 0.8rem;
   color: var(--subtext);
   font-weight: bold;
   margin-bottom: 0.5rem;
 }

 .price-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 0.5rem;
   text-align: center;
 }

 .price-item {
   background: #fff;
   padding: 0.4rem;
   border-radius: 4px;
   border: 1px solid var(--border);
 }

 .price-label {
   font-size: 0.7rem;
   color: var(--subtext);
 }

 .price-value {
   font-size: 0.9rem;
   font-weight: bold;
   color: var(--accent);
 }

 .btn {
   display: block;
   width: 100%;
   padding: 0.75rem;
   background: var(--primary);
   color: #fff;
   text-align: center;
   text-decoration: none;
   font-weight: bold;
   border: none;
   cursor: pointer;
   margin-top: 1rem;
   border-radius: 4px;
 }

 .btn:hover {
   opacity: 0.9;
 }

 .no-results {
   grid-column: 1 / -1;
   text-align: center;
   padding: 3rem;
   color: var(--subtext);
   display: none;
 }



 /* PDFを表示するボタンのスタイル */
 .pdf-button {
   background-color: #ff0000d8;
   color: white;
   padding: 12px 24px;
   font-size: 16px;
   border: none;
   border-radius: 5px;
   cursor: pointer;
 }

 .pdf-button:hover {
   background-color: #b30600d3;
 }

 /* ポップアップの背景（画面全体を暗くする） */
 #pdf-popup {
   display: none;
   /* 初期状態は非表示 */
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.7);
   /* 半透明の黒 */
   z-index: 1000;
   justify-content: center;
   align-items: center;
 }

 /* ポップアップの中身（PDFや閉じるボタンが入るボックス） */
 .popup-content {
   background-color: white;
   width: 80%;
   max-width: 800px;
   height: 80vh;
   /* 高さは画面の80% */
   border-radius: 8px;
   display: flex;
   flex-direction: column;
   overflow: hidden;
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
   position: relative;
 }

 /* 閉じるボタン（×）のスタイル */
 .close-btn {
   align-self: flex-end;
   background-color: #ff4d4d;
   color: white;
   border: none;
   font-size: 18px;
   padding: 8px 16px;
   cursor: pointer;
   font-weight: bold;
 }

 .close-btn:hover {
   background-color: #cc0000;
 }

 /* PDFを表示するiframe */
 .popup-content iframe {
   width: 100%;
   height: 100%;
   border: none;
 }







        /* ナビゲーションコンテナ */
        .nav-container {
            width: 100%;
            max-width: 1400px;
            padding: 0 20px;
            background-color: #ffffff;
              margin: 0 auto 2rem auto;
            
        }

        /* メニュー（Flexboxレイアウト） */
        .nav-menu {
            display: flex;
            justify-content: center;
            align-items: center;
            list-style: none;
            flex-wrap: wrap;
            gap: 24px 32px; /* スマホ折り返し時の上下左右余白 */
        }

        /* 各リンク項目 */
        .nav-item a {
            display: inline-block;
            text-decoration: none;
            font-size: 18px;
            font-weight: 700;
            color: #222847; /* ダークネイビー */
            padding: 8px 2px;
            position: relative;
            transition: color 0.25s ease;
            letter-spacing: 0.03em;
            white-space: nowrap; /* テキストの途中で折り返さない */
        }

        /* ホバー時の下線アニメーション基調 */
        .nav-item a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: #0e9ce6; /* 水色 */
            border-radius: 2px;
            transform: scaleX(0);
            transform-origin: center;
            transition: transform 0.25s ease;
        }

        /* ホバーおよびキーボードフォーカス時 */
        .nav-item a:hover,
        .nav-item a:focus {
            color: #0e9ce6;
            outline: none;
        }

        .nav-item a:hover::after,
        .nav-item a:focus::after {
            transform: scaleX(1);
        }

        /* アクティブ状態 (1. ホーム) */
        .nav-item a.active {
            color: #0e9ce6;
        }

        .nav-item a.active::after {
            transform: scaleX(1);
        }

        /* レスポンシブ調整（画面幅が狭い場合） */
        @media (max-width: 768px) {
            .nav-menu {
                gap: 16px 20px;
            }

            .nav-item a {
                font-size: 15px;
            }
        }