/* ============================================================
   CSS カスタムプロパティ（変数）
   ============================================================ */
:root {
    /* ブランドカラー */
    --primary-color: var(--primary--color); /* 既存変数との互換性を保持 */
    --color-orange: #f5a100;
    --color-orange-alt: #f95b01;
    --color-teal: #00a19a;

    /* テキスト・UI カラー */
    --color-text-primary: #000000;
    --color-text-secondary: #333333;
    --color-text-muted: #666666;
    --color-text-placeholder: #999999;
    --color-text-label: #424242;
    --color-text-caption: #828282;
    --color-text-white: #ffffff;

    /* ボーダー・背景 */
    --color-border: #c4c4c4;
    --color-border-light: #e2e2e2;
    --color-bg-white: #ffffff;
    --color-bg-disabled: #cccccc;

    /* フィードバック */
    --color-required: #ff0033;

    /* フォームサイズ */
    --form-max-width: 450px;
    --input-height: 50px;
    --button-height: 60px;
    --border-radius-input: 4px;
    --border-radius-button: 10px;
}

/* ============================================================
   基本スタイル
   ============================================================ */
* {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    font-optical-sizing: auto;
    font-style: normal;
}

/* ============================================================
   共通ステップフォーム
   ============================================================ */
.register_contents_inner {
    margin: 50px auto;
}

@media screen and (max-width: 486px) {
    .register_contents_inner {
        width: 90%;
        margin: initial auto;
    }
}

.is_pagebackbt {
    padding-top: 25px;
    padding-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back_button_link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 124.97px;
    height: 24px;
    text-decoration: none;
    font-family: "YuGothic", "Yu Gothic", "Meiryo", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text-label);
}

.back_button_link::before {
    content: "";
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--color-text-label);
    border-right: 2px solid var(--color-text-label);
    transform: rotate(225deg);
    flex: none;
}

.back_button_link span {
    width: 96px;
    height: 24px;
    display: flex;
    align-items: center;
    text-align: center;
}

/* ============================================================
   ステップフォームのヘッダー
   ============================================================ */
.stepform__header {
    width: 100%;
    height: 100px;
    background: var(--color-bg-white);
    border-top: 8px solid var(--primary--color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px -1px 10px 0px rgba(0, 0, 0, 0.1);
}

.stepform__header .logo_wrap {
    margin: 0 auto 0 8vw;
}

.stepform__header .logo_wrap img {
    display: block;
    height: 60px;
}

@media screen and (max-width: 768px) {
    .stepform__header {
        height: 80px;
    }

    .stepform__header .logo_wrap img {
        height: 40px;
    }
}

/* ============================================================
   フォームコンテナ共通
   ============================================================ */
.register_contents.rc_member_info_input {
    padding-bottom: 0;
}

@media (min-width: 1001px) {
    .register_contents.rc_member_info_input {
        padding-bottom: 0;
    }
}

.register_contents.rc_member_info_input .formbox {
    width: var(--form-max-width);
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.register_contents.rc_member_info_input .register_btnbox {
    margin-top: 0;
}

.register_contents.rc_member_info_input .md_inputarea {
    width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    -webkit-box-shadow: none;
    background: transparent;
    padding: 0;
}

.register_contents.rc_member_info_input .md_form_list {
    width: 100%;
    max-width: var(--form-max-width);
    margin: 0 auto 20px;
    padding: 0;
}

.register_contents.rc_member_info_input .md_form_list dt {
    width: 100%;
    height: 21px;
    font-style: normal;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    margin: 0 0 10px;
    padding: 0;
}

.register_contents.rc_member_info_input .md_form_list dd {
    width: 100%;
    max-width: var(--form-max-width);
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.register_contents.rc_member_info_input .fc_inner {
    width: 100%;
    box-sizing: border-box;
    display: block;
}

/* ============================================================
   共通ラベル
   ============================================================ */
.register_contents.rc_member_info_input .name_label_wrapper,
.register_contents.rc_member_info_input .address_label_wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 6px;
    width: 100%;
    height: 21px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.register_contents.rc_member_info_input .name_label,
.register_contents.rc_member_info_input .address_label {
    height: 21px;
    font-style: normal;
    font-size: 14px;
    line-height: 21px;
    display: flex;
    align-items: center;
    color: var(--color-text-primary);
    flex: none;
    order: 0;
    flex-grow: 0;
    margin: 0;
    padding: 0;
}

.register_contents.rc_member_info_input .required_badge {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2px 5px;
    gap: 10px;
    width: 32px;
    height: 17px;
    background: var(--color-required);
    border-radius: 3px;
    flex: none;
    order: 1;
    flex-grow: 0;
    font-style: normal;
    font-size: 11px;
    line-height: 120%;
    color: var(--color-text-white);
}

/* ============================================================
   共通テキスト入力フィールド
   ============================================================ */
.register_contents.rc_member_info_input input[type="text"].input_name,
.register_contents.rc_member_info_input input[type="text"].input_zip,
.register_contents.rc_member_info_input input[type="text"].input_age,
.register_contents.rc_member_info_input input[type="email"],
.register_contents.rc_member_info_input input[type="tel"],
.register_contents.rc_member_info_input input[type="password"],
.register_contents.rc_member_info_input .password input[type="text"] {
    height: var(--input-height);
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1px 0 1px 8px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-input);
    box-shadow: none;
    -webkit-box-shadow: none;
    font-style: normal;
    font-size: 16px;
    line-height: 120%;
    color: var(--color-text-primary);
    outline: none;
}

.register_contents.rc_member_info_input input[type="text"].input_name,
.register_contents.rc_member_info_input input[type="email"],
.register_contents.rc_member_info_input input[type="tel"],
.register_contents.rc_member_info_input input[type="password"],
.register_contents.rc_member_info_input .password input[type="text"] {
    width: 100%;
}

.register_contents.rc_member_info_input input[type="text"].input_zip {
    width: 175px;
}

.register_contents.rc_member_info_input input[type="text"].input_age {
    width: 76px;
}

/* プレースホルダー */
.register_contents.rc_member_info_input input::placeholder {
    color: var(--color-text-placeholder);
    font-size: 16px;
    line-height: 120%;
}

/* フォーカス */
.register_contents.rc_member_info_input input[type="text"]:focus,
.register_contents.rc_member_info_input input[type="email"]:focus,
.register_contents.rc_member_info_input input[type="tel"]:focus,
.register_contents.rc_member_info_input input[type="password"]:focus {
    border: 1px solid var(--color-text-label);
    box-shadow: none;
    -webkit-box-shadow: none;
}

/* パスワードフィールド（アイコンスペース確保） */
.register_contents.rc_member_info_input .password input[type="password"],
.register_contents.rc_member_info_input .password input[type="text"] {
    padding-right: 50px;
}

/* ============================================================
   パスワード表示/非表示アイコン
   ============================================================ */
.password {
    position: relative;
}

.password .password_eye,
.password .password_eye_conf {
    position: absolute;
    top: 25px;
    right: 15px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 1;
    pointer-events: auto;
}

@media (max-width: 800px) {
    .password .password_eye,
    .password .password_eye_conf {
        right: 10px;
    }

    .register_contents.rc_member_info_input .password input[type="password"],
    .register_contents.rc_member_info_input .password input[type="text"] {
        padding-right: 40px;
    }
}

/* 説明テキスト */
.pw_txt,
.tel_txt {
    margin-top: 8px;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* ============================================================
   送信ボタン共通
   ============================================================ */
.next_button_container,
.md_center_bt {
    max-width: var(--form-max-width);
    margin: 40px auto 0;
    text-align: center;
}

.next_button,
.md_center_bt .md_bt_submit01 {
    width: 100%;
    max-width: var(--form-max-width);
    height: var(--button-height) !important;
    padding: 0 6px;
    border-radius: var(--border-radius-button);
    background: var(--color-orange);
    box-shadow: 0px 4px 3px 0px rgba(0, 0, 0, 0.16);
    color: var(--color-text-white);
    border: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.next_button:hover {
    opacity: 0.8;
}

.next_button[disabled],
.md_center_bt .md_bt_submit01[disabled] {
    background-color: var(--color-bg-disabled);
    opacity: 0.5;
    cursor: not-allowed;
}

.next_button[disabled]:hover,
.md_center_bt .md_bt_submit01[disabled]:hover {
    opacity: 0.5;
}

.md_bt_base {
    margin-bottom: 0;
    max-width: var(--form-max-width);
}

@media (max-width: 800px) {
    .next_button_container,
    .md_center_bt {
        padding-left: 30px;
        padding-right: 30px;
    }

    .next_button {
        font-size: 16px;
    }

    .md_bt_base {
        max-width: 100%;
        padding-left: 30px;
        padding-right: 30px;
        box-sizing: border-box;
    }
}

/* ============================================================
   経験分野の選択
   ============================================================ */
.experience_field_container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 20px;
    width: 100%;
    max-width: var(--form-max-width);
    margin: 50px auto;
}

.experience_field_row {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 20px;
    width: 100%;
    height: 19px;
}

.experience_field_checkbox_group {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 5px;
    width: 215px;
    height: 19px;
}

.experience_field_checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
}

.experience_field_checkbox input[type="checkbox"] {
    box-sizing: border-box;
    width: 19px;
    height: 19px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 3px;
    margin: 0;
    flex: none;
    cursor: pointer;
}

.experience_field_checkbox input[type="checkbox"]:checked {
    background: var(--color-orange);
    border: none;
}

.experience_field_checkbox label {
    height: 19px;
    font-style: normal;
    font-size: 14px;
    line-height: 120%;
    display: flex;
    align-items: center;
    color: var(--color-text-primary);
    cursor: pointer;
    margin: 0;
    flex: 1;
}

@media (max-width: 800px) {
    .experience_field_container {
        width: 100%;
        padding: 0 20px;
    }

    .experience_field_checkbox_group {
        width: calc(50% - 10px);
    }

    .experience_field_row {
        height: auto;
        min-height: 19px;
    }
}

/* ============================================================
   住所フォーム
   ============================================================ */
.register_contents.rc_member_info_input .address_section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 20px;
    width: var(--form-max-width);
}

.register_contents.rc_member_info_input .address_label_wrapper {
    width: var(--form-max-width);
}

.register_contents.rc_member_info_input .address_label {
    width: 130px;
}

/* 市区町村のみ下マージンを拡大 */
.register_contents.rc_member_info_input .md_form_list:has(#city2),
.register_contents.rc_member_info_input .md_form_list dd:has(#city2) {
    margin-bottom: 40px;
}

/* 住所プルダウンラッパー */
.register_contents.rc_member_info_input .address_select_wrapper {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1px 8px;
    width: var(--form-max-width);
    height: var(--input-height);
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-input);
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    position: relative;
    cursor: pointer;
}

.register_contents.rc_member_info_input .address_wrap {
    width: 100%;
}

.register_contents.rc_member_info_input .address_wrap .errormsg {
    padding-left: 10px;
}

/* プルダウン矢印 */
.register_contents.rc_member_info_input .address_select_wrapper::after {
    content: "";
    box-sizing: border-box;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 11px solid var(--color-text-secondary);
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    flex: none;
    order: 1;
    flex-grow: 0;
    pointer-events: none;
}

.register_contents.rc_member_info_input .address_select_wrapper.is-open::after {
    border-top: none;
    border-bottom: 11px solid var(--color-text-secondary);
}

/* ネイティブ select */
.register_contents.rc_member_info_input .address_select {
    height: 100%;
    border: none;
    background: transparent;
    font-style: normal;
    font-size: 16px;
    line-height: 120%;
    color: var(--color-text-secondary);
    outline: none;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    flex: 1;
    cursor: pointer;
}

.register_contents.rc_member_info_input .address_select option {
    color: var(--color-text-secondary);
}

.register_contents.rc_member_info_input .address_select_wrapper select#pref {
    order: 0;
    padding-left: 0;
    position: relative;
    z-index: 2;
    width: 100%;
}

.register_contents.rc_member_info_input .address_select_wrapper select#city {
    display: none;
}

/* 都道府県・市区町村 select 共通 */
.register_contents.rc_member_info_input select#pref,
.register_contents.rc_member_info_input select#city {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    box-shadow: none;
    -webkit-box-shadow: none;
    background: transparent;
    padding: 10px 0;
    font-size: 16px;
    outline: none;
}

.register_contents.rc_member_info_input select#pref:focus,
.register_contents.rc_member_info_input select#city:focus {
    box-shadow: none;
    -webkit-box-shadow: none;
}

/* 市区町村ドロップダウン幅 */
.select2-dropdown[aria-labelledby="select2-city-container"] {
    width: var(--form-max-width) !important;
    min-width: var(--form-max-width) !important;
}

.select2-dropdown[aria-labelledby="select2-city-container"] .select2-results,
.select2-dropdown[aria-labelledby="select2-city-container"]
    .select2-results__options,
#select2-city-results,
#select2-city-results .select2-results__options {
    width: 100% !important;
    box-sizing: border-box !important;
    padding-right: 0 !important;
}

/* ============================================================
   Select2 共通スタイル
   ============================================================ */
.select2 {
    appearance: none;
    font-size: 11pt;
    height: var(--input-height);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-input);
}

.select2 > .selection > .select2-selection {
    display: block;
    height: 100%;
    width: 100%;
    padding-top: 15px;
}

.select2-results__options {
    width: 200px;
    height: 30vh;
    overflow: hidden;
    overflow-y: scroll;
}

/* address_select_wrapper 内 select2 */
.register_contents.rc_member_info_input
    .address_select_wrapper
    .select2-container,
.register_contents.rc_member_info_input .select2-container {
    position: relative !important;
    width: 100% !important;
    height: 100%;
    border: none !important;
    background: transparent !important;
}

.register_contents.rc_member_info_input .select2-container--focus {
    border: none !important;
    box-shadow: none;
    -webkit-box-shadow: none;
}

.register_contents.rc_member_info_input .select2-selection {
    height: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    cursor: pointer !important;
}

.register_contents.rc_member_info_input .select2-selection__rendered {
    padding: 0 !important;
    line-height: var(--input-height) !important;
}

/* select2 矢印・その他非表示 */
.register_contents.rc_member_info_input .select2-selection__arrow,
.register_contents.rc_member_info_input .select2-selection__arrow b,
.register_contents.rc_member_info_input .dropdown-wrapper,
.register_contents.rc_member_info_input .select2-selection__placeholder {
    display: none !important;
}

/* ============================================================
   年齢入力
   ============================================================ */
.register_contents.rc_member_info_input .md_input_age {
    display: flex;
    align-items: center;
    gap: 10px;
}

.register_contents.rc_member_info_input .age_unit {
    font-style: normal;
    font-size: 16px;
    line-height: 120%;
    color: var(--color-text-primary);
}

/* ============================================================
   性別ラジオボタン
   ============================================================ */
.register_contents.rc_member_info_input .gender_radio_group {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 20px;
    width: 165px;
    height: 19px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.register_contents.rc_member_info_input .gender_radio_item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 5px;
    width: 72.5px;
    height: 19px;
    flex: none;
    flex-grow: 1;
}

.register_contents.rc_member_info_input .gender_radio_item:last-child {
    order: 1;
}

.register_contents.rc_member_info_input .gender_radio_input {
    box-sizing: border-box;
    width: 19px;
    height: 19px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    flex: none;
    order: 0;
    flex-grow: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.register_contents.rc_member_info_input .gender_radio_input:checked {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
}

.register_contents.rc_member_info_input .gender_radio_input:checked::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-text-label);
    border-radius: 10px;
}

.register_contents.rc_member_info_input .gender_radio_label {
    width: 32px;
    height: 19px;
    font-style: normal;
    font-size: 16px;
    line-height: 120%;
    display: flex;
    align-items: center;
    color: var(--color-text-primary);
    flex: none;
    order: 1;
    flex-grow: 0;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

/* ============================================================
   パスワード確認の下マージン
   ============================================================ */
.register_contents.rc_member_info_input .md_form_list:has(#password_confirm) {
    margin-bottom: 40px;
}

/* ============================================================
   レスポンシブ（フォーム共通）
   ============================================================ */
@media (max-width: 800px) {
    .register_contents.rc_member_info_input .formbox,
    .register_contents.rc_member_info_input .md_form_list,
    .register_contents.rc_member_info_input .md_form_list dd,
    .register_contents.rc_member_info_input .md_form_list dd .fc_inner {
        width: 100%;
        box-sizing: border-box;
    }

    .register_contents.rc_member_info_input .md_form_list {
        max-width: var(--form-max-width);
        margin: 0 auto 20px;
    }

    .register_contents.rc_member_info_input .name_label_wrapper,
    .register_contents.rc_member_info_input .address_label_wrapper,
    .register_contents.rc_member_info_input .address_section,
    .register_contents.rc_member_info_input .address_select_wrapper,
    .register_contents.rc_member_info_input
        .address_select_wrapper
        .select2-container,
    .register_contents.rc_member_info_input .address_select,
    .register_contents.rc_member_info_input .address_wrap {
        width: 100%;
        box-sizing: border-box;
    }

    .register_contents.rc_member_info_input .md_form_list dd:first-of-type,
    .register_contents.rc_member_info_input
        .md_form_list
        dd:first-of-type
        .fc_inner {
        width: 100%;
        max-width: var(--form-max-width);
        margin: 0 auto;
        box-sizing: border-box;
    }
}

/* ============================================================
   完了ページ
   ============================================================ */
.md_complete h2 {
    color: var(--color-orange);
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    padding: 30px 0;
}

.register_section {
    max-width: 65%;
    padding: 20px 0;
    margin: 0 auto;
    border: 2px solid var(--color-orange-alt);
    border-radius: 24px;
    display: grid;
    place-items: center;
}

.register_text {
    font-size: 18px;
    text-align: center;
    line-height: 1.25;
    margin-bottom: 20px;
}

.msg_orange{
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    color: var(--color-orange-alt);
    line-height: 1.25;
    margin-bottom: 20px;
}

.register_tel {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--color-text-primary);
}

.register_caption {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-text-caption);
}

@media screen and (max-width: 480px) {
    .md_complete h2 {
        font-size: 20px;
        padding: 25px 0;
    }

    .register_section {
        max-width: 100%;
        padding: 20px;
        border-radius: 12px;
    }

    .register_text {
        font-size: 16px;
    }

    .register_tel {
        font-size: 36px;
    }
}
/* -------- */
/* Location */
/* -------- */
/* Location select styles */
.location_select_wrapper {
    width: 450px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
}

.location_select_wrapper .select_wrap {
    width: 100%;
    padding-right: 0;
    position: relative;
}

.location_select_wrapper .select_wrap.address2 {
    padding: 0;
}

.md_inputarea.location_select_center
    .location_select_wrapper
    label.select_wrap::after,
.md_inputarea.location_select_center
    .location_select_wrapper
    .select_wrap.address2::after {
    right: 12px !important;
}

.location_select_wrapper .select_wrap select {
    box-sizing: border-box;
    width: 450px;
    height: 50px;
    padding: 1px 28px 1px 8px;
    background: #ffffff;
    border: 1px solid #c4c4c4;
    border-radius: 4px;
    font-family: "YuGothic", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    color: #333333;
}

/* SP styles */
@media screen and (max-width: 800px) {
    .location_select_wrapper {
        max-width: 100%;
        width: 100%;
        padding: 0;
    }

    .location_select_wrapper .select_wrap select {
        max-width: 100%;
        width: 100%;
    }

    .md_inputarea.location_select_center .md_center_bt {
        width: 100%;
        padding: 0 30px;
    }

    .md_inputarea.location_select_center .md_center_bt .md_bt_base {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .md_inputarea.location_select_center
        .md_center_bt
        .md_bt_base
        .md_bt_submit01 {
        width: 100%;
    }
}


/* エラーテキスト */

.reg_error{
    color: #ff0033;
    font-size: 16px;
    text-align: center;
    padding: 30px 0 0;
}