table {
    margin: 15px auto 20px;
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    text-align: left;
}

table th {
    padding: 8px;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    color: #333;
    background-color: #f0f0f0;
    font-weight: normal;
}

table td {
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.show-sp {
    display: none;
}

.colWrap .colnum2 {
    max-width: 763px;
    margin: auto;
}

.contentOuterWrap {
    color: #000;
}

/* --- 旧レイアウトの背景バナーを削除し、余白を適正化 --- */

.zitsurei_wrap {
    /* 旧：background: url(../library/images/zitsurei/bg01.jpg) no-repeat left top; を削除 */
    background: none !important; 
    
    /* 旧：padding: 137px 3px 0; バナー用の大きな余白を消して、新ヘッダーに合わせる */
    padding: 0 !important; 
    margin: 0 auto 30px !important;
}

.zitsurei_summary {
    padding: 0 5px;
    text-align: right;
    font-size: 12px;
    font-weight: normal;
    line-height: 20px;
}
/* コンテンツエリアの背景色を白で安定させる（任意） */
.con01 {
    background: #fff;
    padding: 20px 0;
}

.zitsurei_wrap .scene_wrap,
.zitsurei_wrap .type_wrap {
    display: grid;
    gap: 12px 10px;
    margin-left: auto;
    margin-right: auto;
}

.zitsurei_wrap .scene_wrap {
    max-width: 750px;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0 5px;
}

.zitsurei_wrap .scene_wrap:after,
.zitsurei_wrap .type_wrap:after,
.zitsurei_wrap article .main_image_wrap:after,
.zitsurei_wrap article .jirei_wrap dd:after {
    display: block;
    clear: both;
    visibility: hidden;
    height: 0;
    font-size: 0;
    content: " ";
}

.zitsurei_wrap .type_wrap {
    max-width: 738px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 43px 0;
}

.zitsurei_wrap article {
    max-width: 720px;
    margin: 0 auto 20px;
    border: 1px solid #595757;
}

.zitsurei_wrap article .post_header {
    background: transparent url(../library/images/zitsurei/bg02.jpg);
    padding: 11px 20px 0;
    margin-bottom: 13px;
}

.zitsurei_wrap article .post_images {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.zitsurei_wrap article .post_images img {
    width: 26.5%;
}

.zitsurei_wrap article h3 {
    clear: both;
    padding: 0 0 7px;
    font-size: 20px;
    line-height: 24px;
    font-weight: bold;
}

.zitsurei_wrap article .main_image_wrap {
    padding: 0 0 14px;
}

.zitsurei_wrap article .main_image_wrap li {
    float: left;
    max-width: 330px;
    height: 249px;
    margin: 0 0 10px 17px;
    border: 1px solid #727171;
    padding: 1px;
}

.zitsurei_wrap article .main_image_wrap li img {
    display: block;
    max-width: 100%;
    height: 100%;
    margin: auto;
}

.zitsurei_wrap article .jirei_wrap,
.zitsurei_wrap article .detail_wrap {
    padding: 0 17px;
}

.zitsurei_wrap article .jirei_wrap dt,
.zitsurei_wrap article .detail_wrap dt {
    padding: 0 10px;
    border-left: 5px solid #231815;
    border-bottom: 1px solid #231815;
    font-size: 18px;
    line-height: 22px;
    font-weight: bold;
}

.zitsurei_wrap article .jirei_wrap dt {
    color: #e7233b;
}

.zitsurei_wrap article .detail_wrap dt {
    color: #1d2080;
}

.zitsurei_wrap article .jirei_wrap dd,
.zitsurei_wrap article .detail_wrap dd {
    padding: 10px 0 10px 15px;
}

.zitsurei_wrap article .jirei_wrap dd p,
.zitsurei_wrap article .detail_wrap dd p {
    font-size: 16px;
    line-height: 26px;
    white-space: pre-wrap;
}

.zitsurei_wrap article .detail_wrap dd .image_wrap {
    float: right;
    width: 166px;
    margin: 0 0 10px 10px;
}

/* ページネーション */
.zitsurei_wrap .pagenumber_area {
    margin: auto auto 30px;
    background-image: none;
}

.clearfix:before,
.clearfix:after,
.cf:before,
.comment-respond:before,
.cf:after,
.comment-respond:after,
.widget ul li:before,
.widget ul li:after {
    display: table;
    content: "";
}

.clearfix:after {
    display: block;
    clear: both;
    visibility: hidden;
    height: 0;
    line-height: 0;
    content: ".";
}

.zitsurei_wrap .pagenumber_area .navi {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background-color: #eee;
}

.zitsurei_wrap .pagenumber_area .navi .prev {
    margin-right: auto;
}

.zitsurei_wrap .pagenumber_area .navi * {
    padding: 0 5px;
    vertical-align: top;
    text-decoration: none;
}

@media only screen and (max-width: 480px) {
    .show-sp {
        display: block;
    }

    .zitsurei_wrap {
        width: 97.4%;
        padding: 0;
        margin: auto;
        background: none;
    }

    .zitsurei_wrap .scene_wrap,
    .zitsurei_wrap .type_wrap {
        grid-template-columns: 1fr 1fr;
    }

    .zitsurei_wrap .scene_wrap,
    .zitsurei_wrap .type_wrap {
        padding: 0;
    }

    .zitsurei_wrap article .post_images img {
        width: 49%;
    }

    .zitsurei_wrap article .post_header {
        padding: 0.5rem;
        margin: auto;
    }

    .zitsurei_wrap article h3 {
        margin: 0.37rem auto auto;
        padding: 0;
        font-size: 1rem;
        line-height: 1.52;
    }

    .zitsurei_wrap article .main_image_wrap {
        padding: 0;
        margin: 0.5rem 0;
    }

    .zitsurei_wrap article .main_image_wrap li {
        float: none;
        max-width: 100%;
        height: auto;
        margin: 0.5rem;
        border: 1px solid #727171;
        padding: 0.42rem;
        box-sizing: border-box;
    }

    .zitsurei_wrap article .main_image_wrap li img {
        width: 100%;
        height: auto;
    }

    .zitsurei_wrap article .jirei_wrap,
    .zitsurei_wrap article .detail_wrap {
        padding: 0;
        margin: 0.5rem;
    }

    .zitsurei_wrap article .jirei_wrap dd,
    .zitsurei_wrap article .detail_wrap dd {
        padding: 0;
    }

    .zitsurei_wrap article .detail_wrap dt {
        font-size: 0.98rem;
    }

    .zitsurei_wrap article .jirei_wrap dd p,
    .zitsurei_wrap article .detail_wrap dd p {
        margin: 0.7rem auto;
        font-size: 0.93rem;
        line-height: 1.6;
    }

    .zitsurei_wrap article .detail_wrap dd .image_wrap {
        float: right;
        width: 44.63%;
        margin-left: 1em;
    }

    .zitsurei_wrap article .detail_wrap dd .image_wrap img {
        width: 100%;
        height: auto;
        margin-top: 0.2rem;
    }

    .zitsurei_wrap article .post_images img.icon-type {
        width: 29.16%;
    }

    .zitsurei_wrap article .post_images img.icon-scene {
        width: 33.33%;
    }

    /* ページネーション */
    .zitsurei_wrap .pagenumber_area .navi * {
        vertical-align: middle;
        font-size: 0.9rem;
    }

    .zitsurei_wrap .pagenumber_area .navi .prev,
    .zitsurei_wrap .pagenumber_area .navi .next {
        width: 22.6%;
        padding: 0;
        vertical-align: middle;
    }

    .zitsurei_wrap .pagenumber_area .navi .prev a,
    .zitsurei_wrap .pagenumber_area .navi .next a {
        padding: 0;
    }
}
.zitsurei-btn {
    display: inline-block;
    width: 166px;
    padding: 9px 12px;
    background: #1d2080;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 4px;
    box-sizing: border-box;
    transition: opacity 0.2s ease;
}

.zitsurei-btn:hover {
    opacity: 0.9;
}

.zitsurei_wrap article .detail_wrap dd .image_wrap .zitsurei-btn {
    display: block;
    margin-top: 8px;
}
.zitsurei_wrap .scene_wrap,
.zitsurei_wrap .type_wrap {
    list-style: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
}

.zitsurei_wrap .scene_wrap li,
.zitsurei_wrap .type_wrap li {
    padding-top: 5px !important; 
    padding-bottom: 20px !important;
    margin-top: 0 !important;
}

.zitsurei-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    padding: 10px 14px;
    border: 1px solid #595757;
    background: #fff;
    color: #333;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.zitsurei-filter-btn:hover {
    background: #1d2080;
    color: #fff;
}

.zitsurei-filter-btn.is-active {
    background: #1d2080;
    border-color: #1d2080;
    color: #fff;
}

.zitsurei-filter-btn.type-btn {
    min-height: 48px;
    font-weight: bold;
}

@media only screen and (max-width: 480px) {
    .zitsurei-filter-btn {
        min-height: 48px;
        padding: 10px;
        font-size: 13px;
        line-height: 1.4;
    }

    .zitsurei-filter-btn.type-btn {
        min-height: 44px;
    }
}
/* --- NLAセレクト プロフェッショナル・スタイル追加 --- */

/* 1&2. バナーのテキスト+CSS化 */
.zitsurei_summary {
    text-align: center !important;
    background: #17395e;
    color: #ffbd09 !important;
    padding: 15px !important;
    font-weight: bold !important;
    letter-spacing: 0.1em;
    border-radius: 4px 4px 0 0;
    margin: 0 !important;
    display: none !important; /* 不要な古い要約テキストを完全に非表示 */
}

.zitsurei_wrap h2, .zitsurei_wrap h3 {
    margin: 0;
    padding: 0;
}

/* メインタイトル (H2) */
.nla-main-header {
    background: linear-gradient(135deg, #17395e 0%, #2a527d 100%);
    color: #fff !important;
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 0 !important;
    border-bottom: 4px solid #ffbd09;
}
.nla-main-header .title-main {
    display: block;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 5px;
}
.nla-main-header .title-sub {
    font-size: 14px;
    font-weight: normal;
    opacity: 0.8;
}

/* セクションタイトル (H3) */
.nla-section-header {
    background: #f8f9fb;
    border-left: 6px solid #17395e;
    padding: 12px 20px;
    margin: 40px auto 20px;
    max-width: 750px;
    font-size: 18px;
    font-weight: bold;
    color: #17395e;
    display: flex;
    align-items: center;
    margin-top: 15px !important; /* 上を詰めすぎず、かつ開きすぎない 15px に固定 */
    margin-bottom: 10px !important;
}

/* 3. 6つのカテゴリ装飾 (シーン別) */
.zitsurei-filter-btn.scene-btn {
    min-height: 60px;
    background: #fff;
    border: 1px solid #e0e6ed;
    color: #17395e;
    font-weight: bold;
    transition: all 0.3s ease;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.zitsurei-filter-btn.scene-btn:hover,
.zitsurei-filter-btn.scene-btn.is-active {
    background: #17395e;
    color: #ffbd09 !important;
    border-color: #17395e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 57, 94, 0.2);
}

/* 4. アイコンのテキスト+CSS化 (アイテム別) */
.type_wrap {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    max-width: 750px !important;
}
.type_wrap li a {
    text-decoration: none;
}
.nla-type-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e0e6ed;
    padding: 20px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nla-type-badge .type-icon {
    width: 40px;
    height: 40px;
    background: #f0f3f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #17395e;
    font-weight: bold;
    font-size: 12px;
}
.nla-type-badge .type-name {
    font-size: 13px;
    font-weight: bold;
    color: #333;
}

/* アクティブ状態 */
.active-type .nla-type-badge {
    border-color: #17395e;
    background: #f0f7ff;
}
.active-type .nla-type-badge .type-icon {
    background: #17395e;
    color: #ffbd09;
}

@media only screen and (max-width: 480px) {
    .nla-main-header .title-main { font-size: 20px; }
    .nla-section-header { font-size: 16px; margin: 30px 5px 15px; }
}

/* --- シーン別ボタンのプレミアム・デコーディング --- */
.scene_wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    padding: 0;
    list-style: none;
    max-width: 800px;
    margin: 20px auto;
}

.zitsurei-filter-btn.scene-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 左寄せで安定感を出す */
    padding: 15px 20px;
    background: #ffffff;
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 絵文字部分のスタイリング */
.nla-emoji {
    font-size: 1.4em;
    margin-right: 12px;
    line-height: 1;
}

/* テキスト部分のスタイリング */
.nla-scene-name {
    font-weight: 800;
    color: #17395e;
    font-size: 0.95em;
}

/* ホバー・アクティブ状態（NLAネイビー×イエロー） */
.zitsurei-filter-btn.scene-btn:hover,
.zitsurei-filter-btn.scene-btn.is-active {
    background: #17395e;
    border-color: #17395e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(23, 57, 94, 0.15);
}

.zitsurei-filter-btn.scene-btn:hover .nla-scene-name,
.zitsurei-filter-btn.scene-btn.is-active .nla-scene-name {
    color: #ffbd09 !important; /* 文字をブランドイエローに */
}

@media (max-width: 600px) {
    .scene_wrap {
        grid-template-columns: 1fr; /* スマホでは1列で押しやすく */
        margin-top: 5px !important;
        margin-bottom: 10px !important; /* 下側の余白を圧縮 */
    }
}
/* --- 記事カード（zitsurei-card）の現代化 --- */

/* ヘッダーの画像背景を削除 */
.zitsurei_wrap article .post_header {
    background: #f8f9fb !important; /* 画像 bg02.jpg を廃止 */
    padding: 20px !important;
    border-bottom: 1px solid #e0e6ed;
}

/* 記事タイトルの洗練 */
.nla-post-title {
    color: #17395e !important;
    font-size: 1.1em !important;
    font-weight: 800 !important;
    margin-top: 10px !important;
}

/* LED種類バッジ */
.nla-card-type-badge {
    background: #17395e;
    color: #ffbd09;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    margin-right: 5px;
}

/* シーン別絵文字バッジ */
.nla-card-scene-badge {
    background: #fff;
    border: 1px solid #17395e;
    color: #17395e;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
}

/* 「この商品を見る」ボタンをブランドカラーに同期 */
.zitsurei-btn {
    background: #17395e !important;
    color: #ffbd09 !important;
    font-weight: bold;
    border: none;
    transition: transform 0.2s ease;
}
.zitsurei-btn:hover {
    transform: scale(1.05);
    opacity: 1 !important;
}
/* --- プレミアム・ページネーション・デザイン --- */
.nla-pagination-wrapper {
    margin: 50px auto;
    text-align: center;
    padding-bottom: 40px;
}

.nla-next-btn {
    display: inline-block;
    background: #17395e; /* NLAネイビー */
    color: #ffbd09 !important; /* NLAイエロー */
    padding: 18px 60px;
    font-size: 1.1em;
    font-weight: 800;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(23, 57, 94, 0.2);
    transition: all 0.3s ease;
}

.nla-next-btn:hover {
    background: #2a527d;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(23, 57, 94, 0.3);
}

.nla-next-btn .arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.nla-next-btn:hover .arrow {
    transform: translateX(5px);
}

/* 記事が見つからない時のメッセージ */
.nla-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #17395e;
    font-weight: bold;
    background: #f8f9fb;
    border-radius: 8px;
}
/* --- レイアウト崩れ防止：フロート解除 --- */
.zitsurei_wrap article .detail_wrap dd {
    display: flow-root; /* テキストが短くても、右側の画像・ボタンを枠内に収める */
    min-height: 120px;  /* 最低限の高さを持たせて、ボタンの押しやすさを確保 */
}

/* 商品ボタンがはみ出すのを防ぐための微調整 */
.zitsurei_wrap article .detail_wrap dd .image_wrap {
    margin-bottom: 10px;
}

/* ページネーション全体のデザイン（数字版） */
.nla-pagination-wrapper {
    margin: 50px auto;
    text-align: center;
}

.nla-pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #e0e6ed;
    color: #17395e !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nla-pagination .page-numbers.current {
    background: #17395e;
    color: #ffbd09 !important;
    border-color: #17395e;
}

.nla-pagination .page-numbers:hover:not(.current) {
    background: #f8f9fb;
    border-color: #17395e;
}

.nla-pagination .prev, .nla-pagination .next {
    background: #f0f3f5;
}
/* トップページ：事例セクションを「カード型」に強制整形 */
.nla-top-zitsurei-section .zitsurei-list-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* カード1枚ずつの設定 */
.nla-top-zitsurei-section article {
    flex: 0 1 calc(33.333% - 20px) !important;
    min-width: 300px !important;
    background: #fff !important;
    padding: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    text-align: center !important;
}

/* ★重要：トップページでは「本文」や「長い説明」を非表示にする */
.nla-top-zitsurei-section article p, 
.nla-top-zitsurei-section article .entry-content,
.nla-top-zitsurei-section article .post_content {
    display: none !important;
}

/* タイトルと画像だけは表示し、整える */
.nla-top-zitsurei-section article h2,
.nla-top-zitsurei-section article h3 {
    font-size: 1.05em !important;
    line-height: 1.4 !important;
    margin: 15px 0 !important;
    display: block !important;
}

.nla-top-zitsurei-section article img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important; /* 画像のサイズを統一 */
    border-radius: 4px !important;
}