/* -------------------------------------------------------------------------
    base
  ------------------------------------------------------------------------- */
.c-form-input,
.c-form-select,
.c-form-textarea {
    font-family:
        "Helvetica Neue", "Arial", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
        "Meiryo", sans-serif;
    font-weight: normal;
    line-height: var(--line-height-snug);
    width: 100%;
    padding: 0.6em;
    background-color: var(--color-white);
    border: none;
}

.c-form-input,
.c-form-select,
.c-form-textarea,
.c-form__check-group .wpcf7-list-item-label::before {
    box-shadow: inset 0.2rem 0.2rem 0.4rem rgba(0, 0, 0, 0.15);
    border-radius: 0.3rem;
}

::placeholder {
    font-family:
        "Helvetica Neue", "Arial", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
        "Meiryo", sans-serif;
    font-weight: normal;
    color: #BFBFBF;
}

.c-form-input,
.c-form-select {
    /* ▼ 高さを「数値」でガチッと固定する */
    /* デザインに合わせて 40px〜56px (2.5rem〜3.5rem) くらいが一般的 */
    height: 4rem;
    line-height: 4rem;
    padding: 0 0.8em;
}

/* layout */
.wpcf7cf_step {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.c-form__container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.c-form__item {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.c-form__title {
    display: block;
    width: 100%;
    line-height: var(--line-height-snug);
}

/* asterisk */
.c-form__required {
    display: inline-block;
    font-size: 1em;
    line-height: var(--line-height-reset);
    margin-left: 0.8em;
}



/* -------------------------------------------------------- */
/* チェックボックスベース */
/* -------------------------------------------------------- */
/* グループ全体のレイアウト */
.c-form__check-group {}

.c-form-checkbox {}

.c-form__check-group .wpcf7-list-item {
    height: 4.4rem;
    display: inline-flex;
    align-items: center;
    margin-right: 1.4rem;
}

/* ラベル（クリックできる範囲） */
.c-form__check-group label {
    display: block;
    position: relative;
    cursor: pointer;
    user-select: none;
}

/* 1. 本物のチェックボックスを隠す */
.c-form__check-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.c-form__check-group {
    --check-group-icon-size: 2.2rem;
}

/* テキスト部分の調整 */
.c-form__check-group .wpcf7-list-item-label {
    display: flex;
    align-items: center;

}

/* 2. カスタムチェックボックス（四角い箱）を作る */
/* 箱（枠線）だけを担当 */
.c-form__check-group .wpcf7-list-item-label::before {
    content: "";
    display: block;
    width: var(--check-group-icon-size);
    height: var(--check-group-icon-size);
    background-color: var(--color-white);
    margin-right: 1rem;
    flex-shrink: 0;
    /* 箱自体の色変化などが不要なら transition はなくてOK */
}

/* ★追加：チェックマークだけを担当する要素を作る */
.c-form__check-group .wpcf7-list-item-label::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: var(--check-group-icon-size);
    height: var(--check-group-icon-size);
    /* 普通のチェックマーク（レ点）のSVG */
    /* stroke='%23xxxxxx' の部分が色指定。色を変更したい場合は、%23 に続く6桁の16進数を書き換え */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23192649' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    /* チェックマークの大きさを箱に対して調整 */
    background-size: 70% 70%;
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
    transition: all 0.2s var(--ease-out);
    pointer-events: none;
}

.c-form__check-group input[type="checkbox"]:checked+.wpcf7-list-item-label::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* -------------------------------------------------------------------------
  select
  ------------------------------------------------------------------------- */

.c-form-select-wrapper {
    position: relative;
    display: block;
}


.c-form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding-right: 40px;
}

.c-form-select-wrapper::after {
    content: "";
    position: absolute;
    right: 1.6rem;
    top: 50%;
    transform: translateY(-50%);

    border-style: solid;
    border-width: 0.6rem 0.5rem 0 0.5rem;
    border-color: currentColor transparent transparent transparent;
    pointer-events: none;
}

/* -------------------------------------------------------------------------
  確認・戻る・送信ボタン
  ------------------------------------------------------------------------- */
.wpcf7cf_step_controls {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;

    margin-top: 2.5rem;
}

@media screen and (min-width:744px) {
    .wpcf7cf_step_controls {
        margin-top: 5rem;
    }
}

/* ボタン共通 */
.wpcf7cf_next-container>button,
.wpcf7cf_prev-container>button,
.wpcf7-submit {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    width: 100%;
    max-width: 26.5rem;
    margin-inline: auto;
    padding: 0 3rem;
    text-align: center;

    position: relative;
    box-shadow: var(--shadow-base);

    cursor: pointer;
}

/* NEXTSTEP（次へ） */
.wpcf7cf_next-container>button {
    color: var(--color-white);
    background-color: var(--color-black);
}

/* BACK（戻る） */
.wpcf7cf_prev-container:has([disabled="disabled"]),
.wpcf7cf_prev-container:has([data-id="step-1"]) {
    display: none;
}

.wpcf7cf_prev-container>button {
    background-color: var(--color-white);
    color: var(--color-black);
    justify-content: center;
}

/* ENTRY（送信） */
.wpcf7-submit {
    color: var(--color-white);
    background-color: var(--color-black);
}

/* -------------------------------------------------------------------------
  確認画面
  ------------------------------------------------------------------------- */
.confirmContent {}

.confirm-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: dashed 1px currentColor;
}

.confirm-item:last-child {
    margin-bottom: 0;
}

.confirm-label {
    font-size: 0.85em;
    margin-bottom: 0.7em;
}

.confirm-value {
    text-indent: -1em;
    padding-left: 1em;
}


/* -------------------------------------------------------------------------
  バリデーションテキスト
  ------------------------------------------------------------------------- */
.wpcf7-response-output,
.wpcf7-not-valid-tip {
    font-size: 10px;
    display: block;
    margin-top: 8px;
    letter-spacing: 0.02em;

    color: #D32F2F;
}

.wpcf7-response-output {
    text-align: center;
}



/* -------------------------------------------------------------------------
  友だち追加URLをお送りします
  ------------------------------------------------------------------------- */
.p-form-caution {
    font-size: 0.8em;
    position: relative;
    padding-left: 1em;
    margin-left: 1.2em;
}

.p-form-caution::before {
    content: "※";
    position: absolute;
    top: 0;
    left: 0;
}