* {
    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-detail-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 34px 24px 60px;
}

.back-link-wrap {
    margin-bottom: 18px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.back-link:hover {
    background: #f8fafc;
}

.guide-company-header {
    margin-bottom: 26px;
    padding: 26px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 34%),
        linear-gradient(135deg, #0f172a, #1e3a8a);
    border-radius: 22px;
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.18);
}

.guide-label {
    margin: 0 0 10px;
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.company-title {
    margin: 0;
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.4;
    word-break: break-word;
}

.company-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.feature-輸出可 {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.feature-新製品 {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.feature-実演あり {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.feature-代理店募集 {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}


.web-guide-box {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 22px;
    box-shadow:
        0 24px 50px rgba(15, 23, 42, 0.12),
        0 8px 18px rgba(15, 23, 42, 0.06);
}

.main-visual-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 240px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.main-visual-label {
    padding: 22px 16px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
    border-right: 1px solid #eef2ff;
    background: #f8fafc;
}

.main-visual-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.guide-logo-image {
    width: 360px;
    max-width: 100%;
    height: 190px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15,23,42,.08);
}

.guide-logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.no-main-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 360px;
    max-width: 100%;
    height: 190px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 900;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.guide-table th,
.guide-table td {
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.guide-table tr:last-child th,
.guide-table tr:last-child td {
    border-bottom: none;
}

.guide-table th {
    width: 150px;
    padding: 16px;
    color: #0f172a;
    background: #f8fafc;
    font-size: 15px;
    font-weight: 900;
    text-align: left;
    white-space: nowrap;
    border-right: 1px solid #eef2ff;
}

.guide-table td {
    padding: 16px 20px;
    color: #111827;
    background: #ffffff;
    font-size: 15px;
    line-height: 1.9;
}

/* ========================================
   製品一覧
======================================== */

.product-detail-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.product-detail-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    padding: 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.product-detail-image-area {
    min-width: 0;
}

.product-detail-image-link {
    display: block;
    width: 100%;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.product-detail-image-link img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px;
    transition: 0.2s ease;
}

.product-detail-image-link img:hover {
    transform: scale(1.03);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.product-detail-number {
    margin-bottom: 6px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.product-detail-name {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.5;
    word-break: break-word;
}

.product-export-status {
    margin-bottom: 16px;
}

.export-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.export-ok {
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #166534;
}

.export-ok::before {
    content: "✓";
    margin-right: 6px;
}

.export-ng {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.export-ng::before {
    content: "×";
    margin-right: 6px;
}

.export-none {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
}

.product-detail-description {
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.95;
    word-break: break-word;
}

.empty-text {
    color: #94a3b8;
    font-weight: 700;
}

.no-product-image {
    padding: 40px 20px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.guide-text {
    color: #111827;
    font-size: 15px;
    line-height: 2;
    word-break: break-word;
}

.company-url {
    color: #2563eb;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    word-break: break-all;
}

.company-url:hover {
    text-decoration: underline;
}

.guide-notice {
    margin: 28px 0 0;
    color: #334155;
    font-size: 12px;
    line-height: 1.8;
    text-align: right;
}

@media (max-width: 900px) {
    .main-visual-row {
        grid-template-columns: 1fr;
    }

    .main-visual-label {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .guide-table,
    .guide-table tbody,
    .guide-table tr,
    .guide-table th,
    .guide-table td {
        display: block;
        width: 100%;
    }

    .guide-table th {
        border-right: none;
        border-bottom: none;
    }

    .guide-table td {
        padding-top: 8px;
    }

    .product-detail-card {
        grid-template-columns: 1fr;
    }

    .product-detail-image-link {
        max-width: 440px;
        margin: 0 auto;
    }

    .product-detail-image-link img {
        height: 250px;
    }

    .product-detail-info {
        width: 100%;
    }

    .product-detail-name {
        font-size: 20px;
    }

    .guide-notice {
        text-align: left;
    }
}
