* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 28%),
        linear-gradient(180deg, #eef4fb 0%, #f8fafc 100%);
    color: #0f172a;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.web-guide-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 24px 60px;
}

.web-guide-header {
    margin-bottom: 26px;
    padding: 32px 36px;
    background:
        radial-gradient(circle at 12% 18%, rgba(96, 165, 250, 0.34), transparent 28%),
        linear-gradient(135deg, #0f172a 0%, #1e3a8a 58%, #2563eb 100%);
    border-radius: 28px;
    color: #ffffff;
    box-shadow:
        0 24px 52px rgba(15, 23, 42, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.web-guide-header p {
    margin: 0 0 8px;
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.web-guide-header h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 900;
}

.search-box {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 22px;
    padding: 24px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(191,219,254,.9);
    border-radius: 24px;
    box-shadow:
        0 18px 38px rgba(15,23,42,.08),
        inset 0 1px 0 rgba(255,255,255,.9);
}

.search-accordion {
    overflow: hidden;
    margin-top: 0;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15,23,42,.06);
}

.search-accordion summary {
    position: relative;
    cursor: pointer;
    padding: 18px 52px 18px 20px;
    background:
        linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    color: #1d4ed8;
    font-size: 15px;
    font-weight: 900;
    list-style: none;
}

.search-accordion summary::-webkit-details-marker {
    display: none;
}

.search-accordion summary::after {
    content: "＋";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    text-align: center;
    line-height: 28px;
    font-size: 18px;
    font-weight: 900;
}

.search-accordion[open] summary {
    border-bottom: 1px solid #dbeafe;
}

.search-accordion[open] summary::after {
    content: "−";
}

.search-accordion .search-field,
.search-accordion .category-groups {
    padding: 18px 20px 22px;
    margin-top: 0;
}

.category-group {
    margin-bottom: 28px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

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

.category-group-title {
    display: inline-flex;
    align-items: center;
    margin: 0 0 14px;
    padding: 7px 13px;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
}

.search-field label {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.checkbox-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

.check-option {
    display: block;
    width: 100%;
    cursor: pointer;
}

.check-option input {
    display: none;
}

.check-option-inner {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 52px;
    padding: 12px 16px;

    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;

    transition: .2s ease;
}

.check-option:hover .check-option-inner {
    border-color: #60a5fa;
    background: #f8fbff;
}

.check-box-mark {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;

    border: 1px solid #94a3b8;
    border-radius: 3px;
    background: #ffffff;
}

.check-label-text {
    display: block;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.check-option input:checked + .check-option-inner {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 8px 18px rgba(37,99,235,.14);
}

.check-option input:checked + .check-option-inner .check-box-mark {
    background: #2563eb;
    border-color: #2563eb;
    position: relative;
}

.check-option input:checked + .check-option-inner .check-box-mark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check-option input:checked + .check-option-inner .check-label-text {
    color: #1d4ed8;
    font-weight: 900;
}

@media (max-width: 900px) {
    .checkbox-options {
        grid-template-columns: 1fr;
    }
}

.search-field.keyword input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    outline: none;
}

.search-field.keyword input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.search-actions {
    display: flex;
    gap: 12px;
}

.search-actions button,
.search-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 24px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.search-actions button {
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(37,99,235,.25);
}

.search-actions a {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
}

.search-actions a:hover {
    background: #f8fafc;
}

.result-count {
    margin-bottom: 16px;
    color: #334155;
    font-size: 14px;
    font-weight: 900;
}

.guide-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.guide-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.guide-card-link .guide-card {
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.guide-card-link:hover .guide-card {
    transform: translateY(-5px);

    border-color: #1d4ed8;

    background:
        linear-gradient(
            180deg,
            #dbeafe 0%,
            #bfdbfe 100%
        );

    box-shadow:
        0 32px 64px rgba(15, 23, 42, 0.18),
        0 14px 30px rgba(37, 99, 235, 0.25);
}

.guide-card-link:hover .guide-card-body {
    background:
        linear-gradient(
            90deg,
            #dbeafe 0%,
            #93c5fd 100%
        );
}

.guide-card-link:hover .guide-card-top {
    background:
        radial-gradient(
            circle at 8% 50%,
            rgba(191, 219, 254, 0.8),
            transparent 24%
        ),
        linear-gradient(
            135deg,
            #1e3a8a,
            #2563eb 60%,
            #60a5fa
        );
}

.guide-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 24px;
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.10),
        0 8px 18px rgba(15, 23, 42, 0.05);
}

.guide-card:hover .guide-card-top {
    background:
        radial-gradient(circle at 8% 50%, rgba(147, 197, 253, 0.45), transparent 24%),
        linear-gradient(
            135deg,
            #0f172a,
            #1d4ed8 65%,
            #3b82f6
        );
}

.guide-card-top {
    position: relative;
    min-height: 54px;
    padding: 14px 20px;
    background:
        radial-gradient(circle at 8% 50%, rgba(96, 165, 250, 0.35), transparent 24%),
        linear-gradient(135deg, #0f172a, #1e3a8a 65%, #2563eb);
    color: #ffffff;
}

.guide-card-top h2 {
    margin: 0;
    color: #ffffff;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: 0.02em;
    word-break: break-word;
}

.exhibition-ribbon {
    display: none;
}

.guide-card-body {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 30px;
    padding: 34px 28px 30px;
    background:
        linear-gradient(90deg, #ffffff 0%, #ffffff 58%, #f8fafc 100%);
}

.guide-logo-area {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.guide-logo-area img {
    display: block;
    width: 100%;
    max-width: 340px;
    height: 230px;
    padding: 12px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.no-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 340px;
    height: 230px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    color: #94a3b8;
    font-size: 24px;
    font-weight: 900;
}

.guide-info-area {
    min-width: 0;
}

.guide-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.booth-no,
.meta-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 15px;
    background: #ffffff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.4;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.10);
    max-width: 100%;
}

.booth-no {
    border: 1px solid #93c5fd;
    color: #1d4ed8;
}

.exhibition-chip {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

.category-chip {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

.guide-feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.guide-tags {
    display: none;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    border: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.feature-新製品 {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.feature-実演あり {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.feature-代理店募集 {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.guide-section {
    margin-top: 16px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.guide-section h3 {
    display: inline-flex;
    align-items: center;
    margin: 0 0 10px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    font-size: 14px;
    font-weight: 900;
}

.guide-section p {
    margin: 0;
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.95;
    word-break: break-word;
}

.empty-result {
    padding: 40px;
    background: #ffffff;
    border-radius: 22px;
    text-align: center;
    color: #64748b;
    font-size: 15px;
    font-weight: 800;
}

.pagination-wrap {
    margin-top: 28px;
}

/* ========================================
   ページネーション
======================================== */

.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.pagination-wrap nav {
    width: 100%;
}

.pagination-wrap .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.pagination-wrap .page-item {
    margin: 0;
    padding: 0;
}

.pagination-wrap .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;
    padding: 0 14px;

    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;

    color: #334155;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;

    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.pagination-wrap a.page-link:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;

    transform: translateY(-2px);

    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.16);
}

/* 現在のページ */
.pagination-wrap .page-item.active .page-link {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #2563eb;
    color: #ffffff;

    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

/* 前へ・次へが押せない状態 */
.pagination-wrap .page-item.disabled .page-link {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;

    cursor: not-allowed;
    box-shadow: none;
}

/* Bootstrapページネーション内の不要なフォーカス表示対策 */
.pagination-wrap .page-link:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

@media (max-width: 600px) {
    .pagination-wrap {
        margin-top: 24px;
    }

    .pagination-wrap .pagination {
        gap: 5px;
    }

    .pagination-wrap .page-link {
        min-width: 38px;
        height: 38px;
        padding: 0 11px;
        border-radius: 10px;
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    .checkbox-options {
        grid-template-columns: 1fr;
    }

    .search-actions {
        flex-direction: column;
    }

    .search-actions button,
    .search-actions a {
        width: 100%;
    }

    .guide-card-body {
        grid-template-columns: 1fr;
        padding: 24px 18px;
    }

    .guide-logo-area {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .web-guide-page {
        padding: 24px 14px 50px;
    }

    .web-guide-header {
        padding: 24px;
    }

    .web-guide-header h1 {
        font-size: 28px;
    }

    .guide-card-top h2 {
        font-size: 20px;
    }

    .guide-logo-area img,
    .no-logo {
        width: 100%;
        height: 190px;
    }

    .guide-section p {
        font-size: 14px;
    }
}