html {
    margin-top: 0 !important;
}

body {
    background-color: rgb(245, 245, 245);
}

main {
    background-color: white;
    margin: 0 20%;
}

h1 {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
}

.entry_container {
    padding-top: 10%;
}

.logo_box {
    text-align: center;
}

.logo_box img {
    width: 34rem;
    height: 10rem;
}

.text_box {
    padding: 0 25%;
}

.line_entry_btn {
    display: flex;
    justify-content: center;
    margin: 4rem 0;
}

.text {
    font-size: 1.5rem;
}

.text_small {
    font-size: 1.2rem;
    margin: 1rem 0;
}

.entry_btn_box {
    display: flex;
    justify-content: center;
    margin-top: 5rem;
}

.entry_btn {
    width: 25rem;
    border: 0.1rem solid rgb(230, 230, 230);
    padding: 2rem 4rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
    display: flex;
    justify-content: center;
    border-radius: 1rem;
    background-color: rgb(230, 230, 230);
}


/* フォーム全体のラッパー */
.entry_form_wrapper {
    padding: 5rem 0rem;
}

.entry_form_container {
    margin: 0 auto;
    padding: 0 15%;
}

.entry_form_container .form_group {
    margin-bottom: 4.5rem;
}

.entry_form_container .form_label_container {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.entry_form_container .form_label {
    font-weight: bold;
    margin-right: 2rem;
    font-size: 1.6rem;
}

.entry_form_container .form_required {
    background-color: #d9534f;
    color: white;
    padding: 0.2rem 0.6rem;
    font-size: 1.2rem;
    border-radius: 0.3rem;
}

.entry_form_container .form_input_group input[type="text"],
.entry_form_container .form_input_group input[type="tel"],
.entry_form_container .form_input_group input[type="email"],
.entry_form_container .form_input_group select {
    width: 80%;
    padding: 1.2rem;
    border: 0.1rem solid #ccc;
    border-radius: 0.4rem;
    box-sizing: border-box;
    font-size: 1.6rem;
    display: block;
}

.entry_form_container .form_input_name input[type="text"] {
    width: 22rem;
    display: inline-block;
}

.entry_form_container .form_input_name input[type="text"]:first-child {
    margin-right: 2rem;
}

.entry_form_container .form_input_group_small select {
    max-width: 22rem;
}

.entry_form_container .form_input_group label {
    font-size: 1.6rem;
}

.entry_form_container .form_submit {
    text-align: center;
    margin-top: 3rem;
}

.entry_form_container .form_submit input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 1.5rem 3rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: bold;
    width: 100%;
    max-width: 20rem;
}

.entry_form_container .form_submit input[type="submit"]:hover {
    background-color: #0056b3;
}

.entry_form_container .spam_対策 {
    display: none;
}

/* ========== 以下、ステップフォーム用の追加CSS ========== */

/* ステップ2の初期状態をアニメーション用に変更 */
#step2_content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.7s ease-in-out, opacity 0.5s ease-in-out, margin-top 0.7s ease-in-out;
    margin-top: 0;
}

/* ステップ2を表示するときのスタイル */
#step2_content.is_visible {
    max-height: 150rem;
    /* コンテンツが収まる十分な高さ (1500px相当) */
    opacity: 1;
    margin-top: 4rem;
    /* 表示されたときの上に余白を追加 */
}


/* 「次へ」ボタン */
.next_button_container {
    text-align: center;
    margin-top: 4rem;
}

.button_next {
    background-color: #28a745;
    color: white;
    padding: 1.5rem 3rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: bold;
    width: 100%;
    max-width: 20rem;
}

.button_next:hover {
    background-color: #218838;
}

/* ステップ2のラジオボタン（カード型） */
.form_input_radio_cards .radio_card {
    display: block;
    border: 0.3rem solid #ccc;
    border-radius: 1.8rem;
    padding: 3.5rem;
    margin-bottom: 2.5rem;
    cursor: pointer;
    transition: all 0.2s;
    width:100%;
}
/* ここを追加 */
.form_input_radio_cards .radio_card1 {
    display: block;
    border: 0.3rem solid #ccc;
    border-radius: 1.8rem;
    padding: 3.5rem;
    margin-bottom: 2.5rem;
    cursor: pointer;
    transition: all 0.2s;
    width:100%;
}

.form_input_radio_cards .radio_card:hover {
    border-color: #007bff;
}

.form_input_radio_cards input[type="radio"] {
    display: none;
    /* 元のラジオボタンは隠す */
}

.form_input_radio_cards .radio_card.is_selected {
    /* JSでクラスを付与 */
    border-color: #007bff;
    box-shadow: 0 0 0.5rem rgba(0, 123, 255, 0.5);
}

.radio_card_title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.radio_card_info {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #555;
}

/* 個人情報同意チェックボックス */
.form_group_privacy {
    text-align: center;
    margin-top: 4rem;
}

.privacy_policy_label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.6rem;
}

.privacy_policy_label input[type="checkbox"] {
    width: 1.8rem;
    height: 1.8rem;
    margin-right: 1rem;
}
.privacy_policy_link{
    text-align: center;
    font-size:1.2rem;
    margin-top:5rem;
}
.radio_card1 {
  background-color: #f0f0f0; /* 薄いグレー */
  opacity: 0.6; /* 少し透けて見せたい場合 */
  pointer-events: none; /* クリックできないようにする場合 */
}


/* ========== レスポンシブ対応 ========== */
@media screen and (max-width: 768px) {
    main {
        margin: 0 5%;
        
    }

    .entry_form_container {
        padding: 0 5%;
    }

    .logo_box {
        margin-bottom: 2rem;
    }

    .logo_box img {
        width: 20rem;
        height: 5.9rem;
    }

    h1 {
        font-size: 2.6rem;
    }

    .text_box {
        padding: 0 5%;
    }

    .text_box img {
        width: 20rem;
    }

    .text {
        font-size: 1.4rem;
    }

    .text_small {
        font-size: 1.1rem;
    }

    .entry_btn {
        width: 20rem;
        padding: 1.8rem 3rem;
    }

    .entry_form_container .form_input_group input[type="text"],
    .entry_form_container .form_input_group input[type="tel"],
    .entry_form_container .form_input_group input[type="email"],
    .entry_form_container .form_input_group select {
        width: 100%;
    }

    .entry_form_container .form_input_name input[type="text"] {
        width: 100%;
        display: block;
    }

    .entry_form_container .form_input_name input[type="text"]:first-child {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .form_input_radio_cards .radio_card {
        width: 100%;
        padding: 1.5rem;
    }

    .radio_card_title {
        font-size: 1.6rem;
    }

    .radio_card_info {
        font-size: 1.4rem;
    }

    .button_next,
    .entry_form_container .form_submit input[type="submit"] {
        padding: 1.2rem 2.5rem;
        font-size: 1.6rem;
    }
}
