/* ==========================================
   ハーネスQ&A（TOPの質問欄・回答ページ）
   ========================================== */
.qa-box {
    background-color: #f8fafd;
    border: 1px solid #cce0ff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 40px;
}
.qa-box h2 {
    font-size: 20px;
    color: #005caf;
    margin-bottom: 6px;
}
.qa-box .qa-lead {
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
}
.qa-form {
    display: flex;
    gap: 8px;
}
.qa-form input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    font-size: 16px;
    border: 1px solid #a9c4e6;
    border-radius: 4px;
    background: #fff;
}
.qa-form input[type="text"]:focus {
    outline: 2px solid #005caf;
    outline-offset: 0;
}
.qa-form button {
    height: 46px;
    padding: 0 24px;
    background-color: #005caf;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}
.qa-form button:hover { background-color: #003a70; }
.qa-examples {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.qa-examples a {
    display: inline-block;
    padding: 4px 12px;
    background: #fff;
    border: 1px solid #cbd5e0;
    border-radius: 999px;
    color: #333;
    font-size: 13px;
}
.qa-examples a:hover { border-color: #005caf; color: #005caf; }

/* 回答ページ */
.qa-question {
    background: #fff;
    border-left: 5px solid #005caf;
    padding: 14px 18px;
    margin-bottom: 28px;
    font-size: 17px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.qa-question small {
    display: block;
    font-size: 12px;
    font-weight: normal;
    color: #888;
    margin-bottom: 4px;
}
.qa-status {
    color: #666;
    font-size: 14px;
    padding: 20px 0;
}
.qa-note {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}
.qa-hit {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 18px;
    background: #fff;
}
.qa-hit-source {
    font-size: 13px;
    color: #005caf;
    font-weight: bold;
    margin-bottom: 8px;
}
.qa-hit-source span { color: #888; font-weight: normal; }
.qa-hit blockquote {
    margin: 0;
    padding: 4px 0 4px 14px;
    border-left: 3px solid #cce0ff;
    font-size: 15px;
    line-height: 1.85;
    color: #333;
}
.qa-hit mark {
    background: #fff3b0;
    padding: 0 1px;
}
.qa-hit-link {
    margin-top: 12px;
    text-align: right;
    font-size: 14px;
}
.qa-hit-link a {
    border-bottom: 1px solid #005caf;
}
.qa-related {
    margin-top: 10px;
    font-size: 14px;
}
.qa-related li { margin: 4px 0; }
.qa-related li::before { content: "› "; color: #005caf; }

.qa-nohit {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 22px;
    margin-bottom: 24px;
}
.qa-nohit p { margin-bottom: 10px; }
.qa-nohit .qa-nohit-title {
    font-size: 17px;
    font-weight: bold;
    color: #333;
}
.qa-pattern {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 24px;
}
.qa-pattern-label {
    display: inline-block;
    background: #718096;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
}
.qa-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 14px;
}
.qa-cta .header-contact-btn { font-size: 15px; padding: 12px 22px; }
.qa-cta .qa-tel { font-size: 14px; color: #444; }
.qa-cta .qa-tel strong { font-size: 18px; color: #333; }

.qa-inquiry { margin-top: 14px; }
.qa-inquiry label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin: 12px 0 4px;
}
.qa-inquiry label .req {
    background: #d9534f;
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: normal;
}
.qa-inquiry input,
.qa-inquiry textarea {
    width: 100%;
    font-size: 16px;
    padding: 9px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-family: inherit;
}
.qa-inquiry textarea { min-height: 120px; resize: vertical; }
.qa-inquiry .qa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.qa-inquiry button {
    margin-top: 18px;
    background: #005caf;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}
.qa-inquiry button:hover { background: #003a70; }
.qa-inquiry .qa-error { color: #d9534f; font-size: 13px; margin-top: 8px; }
.qa-footer-ask {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #555;
}

@media (max-width: 768px) {
    .qa-box { padding: 18px 16px; }
    .qa-form { flex-direction: column; }
    .qa-form button { width: 100%; }
    .qa-inquiry .qa-grid { grid-template-columns: 1fr; }
}
