/**
 * お問い合わせページ専用CSS
 * contact/index.php で使用
 */

body {
    padding-bottom: 80px;
}
@media (min-width: 600px) {
    body {
        padding-bottom: 0;
        background: white;
    }
}
.main-feed {
    min-height: 100vh;
    background: white;
}
/* フォームカード */
.contact-form-card {
    padding: 20px 15px;
}
.contact-form-card .form-group {
    margin-bottom: 16px;
}
.contact-form-card label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}
.contact-form-card label .required {
    color: #e74c3c;
    font-size: 12px;
}
.contact-form-card select,
.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}
.contact-form-card select:focus,
.contact-form-card input[type="text"]:focus,
.contact-form-card input[type="email"]:focus,
.contact-form-card textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.15);
}
.contact-form-card textarea {
    min-height: 150px;
    resize: vertical;
}
.contact-form-card .char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.contact-form-card .char-count.over {
    color: #e74c3c;
}
.contact-submit-btn {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-submit-btn:hover {
    background: #2980b9;
}
.contact-submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* 成功メッセージ */
.contact-success {
    display: none;
    padding: 20px;
    text-align: center;
}
.contact-success .success-icon {
    font-size: 48px;
    margin-bottom: 10px;
}
.contact-success h2 {
    font-size: 18px;
    color: #27ae60;
    margin-bottom: 8px;
}
.contact-success p {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}
.contact-success .btn-again {
    display: inline-block;
    padding: 8px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

/* お問い合わせ履歴 */
.contact-history {
    border-top: 8px solid #f5f5f5;
    padding: 15px;
}
.contact-history h2 {
    font-size: 16px;
    color: #333;
    margin: 0 0 12px 0;
}
.contact-history-empty {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}
.contact-history-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}
.contact-history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.contact-history-category {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #ecf0f1;
    color: #555;
}
.contact-history-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
}
.contact-history-subject {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.contact-history-message {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}
.contact-history-date {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
}
.contact-history-reply {
    margin-top: 10px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 6px;
    border-left: 3px solid #27ae60;
}
.contact-history-reply-label {
    font-size: 11px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 4px;
}
.contact-history-reply-text {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}
.contact-history-reply-date {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}


/* ━━━ スパム対策: ハニーポット ━━━ */
/* bot だけが入力する罠フィールド。人間には見えない位置・サイズに退避させる。
   display:none だと一部 bot に無視されるため、画面外へ飛ばす方式を採用。 */
.contact-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
