/* =========================================================
   contact.php 専用スタイル
   店舗・事業者向けのお問い合わせページ。
   ましゅまろワークのブランド（ピンク・丸み）は保ちつつ、
   求職者向け画面より落ち着いた・フォーマル寄りのトーンにする。
   （親しみ30 / フォーマル70 を目安）
========================================================= */

.contact-main {
    padding: 8px 0 32px;
}

.contact-wrap {
    width: min(640px, calc(100% - 24px));
    margin: 0 auto;
}

/* =========================
   カード
========================= */
.contact-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 28px 22px 32px;
}

@media (min-width: 768px) {
    .contact-card {
        padding: 36px 40px 40px;
    }
}

/* =========================
   見出し・導入文
========================= */
.contact-intro {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.contact-intro__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    margin-top: 2px;
}

.contact-intro__text {
    min-width: 0;
}

.contact-heading {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.4;
}

.contact-lead {
    font-size: 14.5px;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* =========================
   エラーサマリー
========================= */
.contact-error-summary {
    background: #fff5f6;
    border: 1px solid rgba(230, 87, 127, 0.35);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 22px;
}

.contact-error-summary__title {
    font-weight: 700;
    color: #d94b72;
    margin: 0 0 6px;
    font-size: 14px;
}

.contact-error-summary ul {
    margin: 0;
    padding-left: 1.2em;
}

.contact-error-summary li {
    color: #c8567e;
    font-size: 13.5px;
    line-height: 1.7;
}

/* =========================
   フォーム全体
========================= */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 4px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-field__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #444;
}

.contact-req,
.contact-opt {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.6;
}

.contact-req {
    color: #fff;
    background: #ff6f91;
}

.contact-opt {
    color: #888;
    background: #f0f0f0;
}

/* テキスト系入力（base.css の input,select 共通スタイルの上に、
   このページに合わせて枠色・角丸だけ調整する） */
.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    transition: border-color .15s, box-shadow .15s;
}

.contact-field input[type="text"]:focus,
.contact-field input[type="email"]:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: #ff6f91;
    box-shadow: 0 0 0 3px rgba(255, 111, 145, 0.15);
}

.contact-field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.7;
}

.contact-field input.is-invalid,
.contact-field textarea.is-invalid {
    border-color: #e6577f;
    background: #fff8f9;
}

.contact-field-error {
    color: #e6577f;
    font-size: 12.5px;
    line-height: 1.6;
}

/* ハニーポット（人には見せない） */
.contact-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: .01;
}

/* =========================
   お問い合わせ種別：選択カード型radio
========================= */
.contact-type-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 560px) {
    .contact-type-group {
        flex-direction: row;
    }
}

.contact-type-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    transition: border-color .15s, background .15s, box-shadow .15s;
    flex: 1 1 0;
}

.contact-type-card input[type="radio"] {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: #ff6f91;
    margin: 0;
}

.contact-type-card:has(input:checked),
.contact-type-card.is-checked {
    border-color: #ff6f91;
    background: #fff5f8;
    box-shadow: 0 2px 8px rgba(255, 111, 145, 0.15);
    color: #d94b72;
}

.contact-type-card.is-invalid {
    border-color: #e6577f;
}

/* =========================
   CTA
========================= */
.contact-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: filter .15s, box-shadow .15s;
}

.contact-btn--submit {
    background: linear-gradient(135deg, #ff8aa8, #ff6f91);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 111, 145, 0.25);
    margin-top: 4px;
}

.contact-btn--submit:hover {
    filter: brightness(1.05);
}

.contact-btn--submit:active {
    filter: brightness(0.95);
}

.contact-btn--ghost {
    background: #fff;
    color: #d94b72;
    border: 1.5px solid #ff8fa5;
    margin-top: 24px;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}

.contact-btn--ghost:hover {
    background: #fff5f8;
}

/* =========================
   送信完了
========================= */
.contact-card--done {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.contact-card--done .contact-heading {
    margin-bottom: 16px;
}

.contact-done-text {
    font-size: 14.5px;
    line-height: 1.9;
    color: #555;
    margin: 0;
}
