/* Contact Form 7
 * 旧Cocoon子テーマのcf7-custom.cssを、ダークテーマ向けに整理。
 * HTML側の .inquiry / .haveto / .any / #formbtn はそのまま利用する。
 */

.wpcf7 .inquiry {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    color: inherit;
}

.wpcf7 .inquiry th,
.wpcf7 .inquiry td {
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    vertical-align: middle;
}

.wpcf7 .inquiry th {
    width: 30%;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: inherit;
    background: rgba(255, 255, 255, 0.05);
}

.wpcf7 .inquiry td {
    font-size: 0.875rem;
    background: transparent;
}

/* 必須・任意 */
.wpcf7 .haveto,
.wpcf7 .any {
    display: inline-block;
    margin-right: 6px;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.3;
    vertical-align: 1px;
}

.wpcf7 .haveto {
    color: #111;
    background: #fa8072;
}

.wpcf7 .any {
    color: #ffb7b7;
    background: rgba(250, 128, 114, 0.08);
    border: 1px solid rgba(250, 128, 114, 0.45);
}

/* 入力欄 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 3px;
    font: inherit;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: 2px solid #fa8072;
    outline-offset: 2px;
    border-color: #fa8072;
}

/* ラジオ・チェックボックスを縦並び */
.wpcf7 .verticallist .wpcf7-list-item {
    display: block;
    margin-left: 0;
}

/* 送信ボタン */
.wpcf7 #formbtn {
    display: block;
    width: 100%;
    margin-top: 30px;
    padding: 1em 1.25em;
    border: 1px solid #fa8072;
    border-radius: 3px;
    background: transparent;
    color: #fa8072;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.wpcf7 #formbtn:hover {
    background: rgba(250, 128, 114, 0.10);
    border-color: #fa8072;
}

.wpcf7 #formbtn:active {
    transform: translateY(1px);
}

/* CF7メッセージ */
.wpcf7 .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #ff8c7e;
    font-size: 0.8125rem;
}

.wpcf7 form .wpcf7-response-output {
    margin: 24px 0 0;
    padding: 12px 14px;
    border-width: 1px;
    border-color: rgba(250, 128, 114, 0.55);
    color: inherit;
}

/* スマホ */
@media (max-width: 500px) {
    .wpcf7 .inquiry th,
    .wpcf7 .inquiry td {
        display: block;
        width: 100%;
        border-top: 0;
    }

    .wpcf7 .inquiry tr:first-child th {
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .wpcf7 .inquiry .haveto,
    .wpcf7 .inquiry .any {
        font-size: 0.6875rem;
    }
}
