textarea {
    white-space: pre-line;
    form-sizing: content;
}

select {
    outline: none;
    background-color: transparent;
}

a[role="button"],
button {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: max-content;
    background-color: transparent;
    z-index: var(--layer-default-btn);
    max-width: 100%;
    padding: 16px;
    background-color: #7a8479;
    border-radius: 16px;
    border: none;
    outline: none;
    cursor: pointer;
}

*[role="button"] span,
button span {
    display: block;
    margin: auto;
    text-align: center;
    font-size: var(--font-size-xs);
    color: #dcdcdc;
}

label,
input,
textarea,
select,
form {
    display: block;
    width: 100%;
}

input,
textarea,
select {
    padding: 8px;
    border-width: 1px;
    border-style: solid;
    border-radius: 2px;
    outline: none;
    font-size: var(--font-size-m);
}

button:disabled {
    cursor: unset;
}

label {
    font-weight: bold;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--color-white-offwhite);
}

/* プレイスホルダー個別にCSSを当てないといけない  */
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: var(--color-placeholder-text);
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: var(--color-placeholder-text);
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    color: var(--color-placeholder-text);
}


/* 共通アイテム */
.form_item {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 16px;
}

.error_message {
    color: var(--color-alert);
    font-size: var(--font-size-xs);
}

/* 問い合わせチェックボタン */
input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]:checked+.input_check::after {
    opacity: 1;
}

.input_check {
    position: relative;
    display: inline-block;
    padding: 0 30px;
    margin: auto 0;
    width: max-content;
    font-size: var(--font-size-xs);
    box-sizing: border-box;
    cursor: pointer;
}

.input_check::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5px;
    display: block;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    background: var(--color-white-offwhite);
    border: 0.5px solid #231815;
}

.input_check::after {
    border-right: 3px solid #ed7a9c;
    border-bottom: 3px solid #ed7a9c;
    content: '';
    display: block;
    height: 9px;
    left: 10px;
    margin-top: -7px;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: rotate(45deg);
    width: 5px;
}

.privacy_check_wrap {
    display: flex;
    flex-direction: column;
}

/* スイッチ */
.switch_item {
    display: flex;
    flex-direction: row;
}

.switch_name {
    display: block;
    width: max-content;
    margin: auto 8px auto 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #a0a0a0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch_item input:checked+.slider {
    background-color: var(--color-published);
}

.switch_item input:checked+.slider:before {
    transform: translateX(26px);
}

.switch_item .note,
.switch_item a {
    display: block;
    width: 100%;
}