@import url('/css/variables.css');

/* ============================================================
   Smartmart ロボット消耗品 定期便 — ハブLP
   Prefix: rsp-（robot-inspection.css の rin- 構造を踏襲・改名）
   既存 rin-/rlg-/ri- と衝突しないクラス名のみ使用。インラインスタイル禁止。
   ============================================================ */

/* ─── Container / Section ───────────────────────────── */
.rsp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.rsp-section {
    padding: 48px 0;
}

.rsp-section--alt {
    background: #f7f9fc;
}

/* ─── Hero ──────────────────────────────────────────── */
.rsp-hero {
    background: linear-gradient(135deg, #eef3f9 0%, #c7d6ea 100%);
    padding: 64px 0;
}

.rsp-hero-inner {
    max-width: 860px;
}

.rsp-hero h1 {
    font-size: 2rem;
    line-height: 1.35;
    margin: 0 0 16px;
    color: #1b2733;
}

.rsp-hero-lead {
    font-size: 1.075rem;
    line-height: 1.8;
    color: #33424f;
    margin: 0 0 28px;
}

.rsp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ─── Buttons ───────────────────────────────────────── */
.rsp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s ease, transform .15s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.rsp-btn:hover {
    transform: translateY(-1px);
    opacity: .92;
}

.rsp-btn--primary {
    background: #2563a8;
    color: #fff;
}

.rsp-btn--outline {
    background: transparent;
    color: #2563a8;
    border-color: #2563a8;
}

.rsp-btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .8);
}

.rsp-btn--lg {
    padding: 15px 32px;
    font-size: 1.05rem;
}

/* ─── 見出し ─────────────────────────────────────────── */
.rsp-h2 {
    font-size: 1.55rem;
    color: #1b2733;
    margin: 0 0 8px;
}

.rsp-h2-lead {
    color: #51606c;
    margin: 0 0 28px;
    line-height: 1.75;
}

/* ─── 消耗品一覧テーブル ─────────────────────────────── */
.rsp-table-wrap {
    overflow-x: auto;
}

.rsp-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: .96rem;
}

.rsp-table th,
.rsp-table td {
    border: 1px solid #dfe6ee;
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    line-height: 1.7;
}

.rsp-table th {
    background: #eef3f9;
    color: #1b2733;
    font-weight: 700;
    white-space: nowrap;
}

.rsp-table caption {
    caption-side: bottom;
    font-size: .82rem;
    color: #6b7884;
    padding-top: 8px;
    text-align: left;
}

/* ─── 3ステップ ─────────────────────────────────────── */
.rsp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rsp-step {
    background: #fff;
    border: 1px solid #e2e9f1;
    border-radius: 10px;
    padding: 24px;
}

.rsp-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2563a8;
    color: #fff;
    font-weight: 800;
    margin-bottom: 12px;
}

.rsp-step h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: #1b2733;
}

.rsp-step p {
    margin: 0;
    color: #51606c;
    line-height: 1.75;
}

/* ─── 誠実文言 / インフォボックス ───────────────────── */
.rsp-infobox {
    background: #fff;
    border: 1px solid #e2e9f1;
    border-left: 4px solid #2563a8;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
}

.rsp-infobox--note {
    border-left-color: #d99a2b;
    background: #fffaf0;
}

.rsp-infobox p {
    margin: 0 0 10px;
    line-height: 1.85;
    color: #33424f;
}

.rsp-infobox p:last-child {
    margin-bottom: 0;
}

.rsp-infobox-title {
    font-weight: 700;
    color: #1b2733;
    margin-bottom: 8px;
    display: block;
}

/* ─── カテゴリカード ─────────────────────────────────── */
.rsp-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rsp-card {
    display: block;
    background: #fff;
    border: 1px solid #e2e9f1;
    border-radius: 10px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s ease, transform .15s ease;
}

.rsp-card:hover {
    box-shadow: 0 6px 18px rgba(27, 39, 51, .1);
    transform: translateY(-2px);
}

.rsp-card h3 {
    font-size: 1.15rem;
    margin: 0 0 8px;
    color: #2563a8;
}

.rsp-card p {
    margin: 0;
    color: #51606c;
    line-height: 1.7;
}

/* ─── 関連リンク ────────────────────────────────────── */
.rsp-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.rsp-related a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e2e9f1;
    border-radius: 8px;
    padding: 14px 18px;
    text-decoration: none;
    color: #2563a8;
    font-weight: 600;
}

.rsp-related a:hover {
    background: #f3f7fc;
}

/* ─── CTA帯 ─────────────────────────────────────────── */
.rsp-cta {
    background: linear-gradient(135deg, #1f3d5c 0%, #2563a8 100%);
    color: #fff;
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
}

.rsp-cta h2 {
    font-size: 1.5rem;
    margin: 0 0 12px;
}

.rsp-cta p {
    margin: 0 0 24px;
    line-height: 1.8;
    opacity: .95;
}

.rsp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ─── FAQ ───────────────────────────────────────────── */
.rsp-faq-item {
    background: #fff;
    border: 1px solid #e2e9f1;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 12px;
}

.rsp-faq-q {
    font-weight: 700;
    color: #1b2733;
    margin: 0 0 8px;
}

.rsp-faq-a {
    margin: 0;
    color: #51606c;
    line-height: 1.85;
}

/* ─── 本文段落 ──────────────────────────────────────── */
.rsp-lead-block p {
    line-height: 1.9;
    color: #33424f;
    margin: 0 0 16px;
}

.rsp-list {
    line-height: 1.9;
    color: #33424f;
    padding-left: 1.4em;
}

.rsp-list li {
    margin-bottom: 8px;
}

/* ─── レスポンシブ ──────────────────────────────────── */
@media (max-width: 768px) {
    .rsp-steps,
    .rsp-cards {
        grid-template-columns: 1fr;
    }

    .rsp-hero h1 {
        font-size: 1.6rem;
    }

    .rsp-hero {
        padding: 44px 0;
    }
}
