/* =========================================================
   contact.css — contact.html / thanks.html 専用
   styles.css の変数（--ink, --line, --pink など）を利用
   ========================================================= */

.cf {
    max-width: 880px;
    margin: 0 auto;
    padding-top: 110px;
    padding-bottom: 140px;
}

.cf-head h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: clamp(48px, 7vw, 96px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 30px 0 28px;
}

.cf-head h1 em {
    font-family: 'Libre Bodoni', serif;
    font-style: italic;
    font-weight: 400;
}

/* contact.html の「MK Design.」— 同じ Libre Bodoni の正体（非イタリック） */
.cf-head h1 .cf-serif {
    font-family: 'Libre Bodoni', serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.cf-head p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--muted);
    margin: 0 0 56px;
}

.cf-error {
    margin: 0 0 32px;
    padding: 16px 20px;
    border: 1px solid var(--pink-ink);
    border-left-width: 4px;
    border-radius: 10px;
    color: var(--pink-ink);
    font-size: 15px;
    line-height: 1.7;
}

.cf-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.cf-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
}

.cf-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.cf-field > label,
.cf-field > legend {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
}

/* fieldset の legend は flex の gap が効かないため、同じ 10px を margin で付与 */
.cf-field > legend {
    margin-bottom: 10px;
}

/* 必須表示は控えめなテキストで */
.cf-req {
    font-size: 12px;
    font-weight: 400;
    color: var(--pink-ink);
    letter-spacing: .04em;
}

.cf-field input,
.cf-field select,
.cf-field textarea {
    width: 100%;
    padding: 14px 16px;
    font: inherit;
    font-size: 16px; /* iOS のズーム防止のため 16px 以上 */
    line-height: 1.6;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.cf-field textarea {
    resize: vertical;
    min-height: 180px;
}

.cf-field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23242521' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    cursor: pointer;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
    color: #a9a8a1;
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(185, 129, 138, .2);
}

/* ご依頼の種類（ラジオをチップ表示） */
.cf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cf-chip {
    position: relative;
    cursor: pointer;
}

.cf-chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.cf-chip span {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.cf-chip:hover span {
    border-color: var(--ink);
}

.cf-chip input:checked + span {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
}

.cf-chip input:focus-visible + span {
    outline: 3px solid var(--pink-ink);
    outline-offset: 3px;
}

/* スパム対策の隠し項目 */
.cf-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* 個人情報 */
.cf-privacy {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.cf-privacy p {
    margin: 0 0 14px;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--muted);
}

.cf-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    cursor: pointer;
}

.cf-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--ink);
    flex-shrink: 0;
}

.cf-submit {
    align-self: flex-start;
    min-width: 240px;
    cursor: pointer;
}

/* thanks.html */
.cf-thanks .cf-head p {
    margin-bottom: 40px;
}

@media (max-width: 600px) {
    .cf {
        padding-top: 70px;
        padding-bottom: 100px;
    }

    .cf-row-2 {
        grid-template-columns: 1fr;
    }

    .cf-submit {
        align-self: stretch;
    }
}
