body {
    margin: 0;
    font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
    background: #f6f6f2;
    color: #333;
}

.contact-header {
    text-align: center;
    padding: 40px 20px;
    background: #4a7c59;
    color: #fff;
}

.contact-header h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: 2px;
}

.catalog {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

.product.contact-card {
    background: #fff;
    padding: 30px 30px 40px;
    border-radius: 12px;
    max-width: 800px;
    margin: 40px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-title {
    font-size: 22px;
    margin-bottom: 20px;
    border-left: 6px solid #4a7c59;
    padding-left: 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.req {
    color: #d40000;
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 16px;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px;
    padding-right: 38px;
    cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
    background: #fff;
    border-color: #4a7c59;
    box-shadow: 0 0 6px rgba(74,124,89,0.3);
    outline: none;
}

.contact-submit {
    width: 100%;
    padding: 14px;
    background: #4a7c59;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.contact-submit:hover {
    background: #3a6247;
}

.contact-footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #666;
}

.g-recaptcha {
    margin-bottom: 20px;
}

/* ------------------------------------------------------------
   テーブル上部（件数＋履歴ボタン）
------------------------------------------------------------ */
.table-header {
    display: flex;
    justify-content: space-between; /* ← 左右に分ける */
    align-items: center;
    margin-bottom: 5px;
}

/* 件数・ページ */
.table-summary {
    font-size: 0.9rem;
    color: #555;
}

/* 履歴ボタン */
.table-actions {
    display: flex;
    align-items: center;
}

/* セカンダリボタン */
.status-button.secondary {
    background: #6c757d;
}

.status-button.secondary:hover {
    background: #5a6268;
}

/* 未対応件数 赤色表示 */
.pending-count {
    color: #b22222;
    font-weight: bold;
}

/* ページ番号リンク */
.pagination {
    margin-top: 15px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #eee;
    color: #333;
    text-decoration: none;
}

.pagination a.active {
    background: #2e8b57;
    color: #fff;
    font-weight: bold;
}

.pagination a:hover {
    background: #ddd;
}