/* リセットスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #fff !important;
}

body {
    font-family: "Hiragino Sans", "Yu Gothic Medium", "Meiryo", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ヘッダースタイル */
header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

#header_inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#title_logo {
    text-align: center;
    font-size: 18px;
    color: #F69F04;
    font-weight: bold;
}

.c_fullArea {
    background-color: #fff !important;
}

.login_logo {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

/* メインコンテンツ */
#wrapper {
    background-color: #fff;
    min-height: calc(100vh - 100px);
    padding: 40px 0;
}

#contents {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 会員登録フォーム */
#member-regist {
    position: relative;
}

#member-regist h2 {
    margin: 0 auto;
    position: relative;
    background-color: #fff;
    padding: 5px 15px;
    border-left: 5px solid #F69F04;
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

#member-regist .contents_box {
    position: relative;
    border: solid 1px #e1e1e1;
    background-color: #FFFFFF;
    width: 95%;
    max-width: 800px;
    box-sizing: border-box;
    margin: 0 auto;
    margin-bottom: 20px;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#member-regist .button_container {
    text-align: center;
    margin: 40px 0 20px;
}

#member-regist .button_container button {
    width: 210px;
    height: 40px;
    text-align: center;
    background: #F69F04;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(246, 159, 4, 0.3);
}

#member-regist .button_container button:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 159, 4, 0.4);
}

#member-regist .form-items {
    margin-top: 30px;
}

#member-regist .form-items ul li {
    margin-bottom: 30px;
    clear: both;
    position: relative;
}

#member-regist .form-items ul li label span {
    display: inline-block;
    width: 150px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    vertical-align: top;
    line-height: 1.5;
    min-height: 35px;
    padding-top: 0;
    height: 35px;
    display: flex;
    align-items: center;
}

/* チェックボックス項目のラベルを特別に調整 */
#member-regist .form-items ul li label span {
    align-items: flex-start;
    padding-top: 0;
}

/* チェックボックス項目のラベルを上揃えに */
#member-regist .form-items ul li label {
    display: inline-block;
    align-items: flex-start;
    padding-top: 0;
    margin-top: 0;
    vertical-align: top;
    width: 140px;
}

/* チェックボックス項目のラベルを特別に調整 */
#member-regist .form-items ul li label {
    align-items: flex-start;
    padding-top: 0;
    margin-top: 0;
    vertical-align: top;
}

#member-regist .form-items li label {
    width: 150px;
    margin-right: 10px;
    vertical-align: top;
    line-height: 1.5;
}

#member-regist .alert {
    color: #FF3F3F;
    font-weight: bold;
}

#member-regist ul .checkbox {
    width: 360px;
    margin-left: 150px;
    margin-bottom: 20px;
    display: inline-block;
    padding-top: 0;
    margin-top: 0;
    vertical-align: top;
}

#member-regist ul .checkbox li {
    min-width: 100px;
    display: inline-block;
    margin-bottom: 15px;
    line-height: 1.5;
    padding-top: 0;
    min-height: 35px;
    vertical-align: top;
}

#member-regist .input-block-level {
    width: 74%;
    height: 35px;
    border-radius: 3px;
    padding-left: 5px;
    border: 2px solid #ddd;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

#member-regist .input-block-level:focus {
    outline: none;
    border-color: #F69F04;
    box-shadow: 0 0 0 3px rgba(246, 159, 4, 0.1);
}

#member-regist .input-block-level.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

#member-regist select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 74%;
    padding: 7px 25px;
    border-radius: 3px;
    font-size: 14px;
    color: #747474;
    border: 2px solid #ddd;
    background-repeat: no-repeat;
    background-size: 12px 10px;
    background-position: right 10px center;
    background-color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    padding-left: 5px;
}

#member-regist .form-items ul li ul.checkbox {
    width: 74%;
}

#member-regist .form-items ul li.formLinkContainer,
#member-regist .form-items ul li.formLinkContainer ul,
#member-regist .form-items ul li.formLinkContainer ul li {
    margin-bottom: 0 !important;
}

#member-regist .form-items ul li.formLinkContainerFrist {
    margin-top: 50px;
    margin-bottom: 10px !important;
}

#member-regist select:focus {
    outline: none;
    border-color: #F69F04;
    box-shadow: 0 0 0 3px rgba(246, 159, 4, 0.1);
}

#member-regist select.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

#member-regist .form-items ul li ul.checkbox li input[type="checkbox"] {
    margin: 0 8px 0 0;
    width: 16px;
    height: 16px;
    accent-color: #ffc739;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

#member-regist .form-items ul li ul.checkbox li input[type="checkbox"]:focus {
    outline: 2px solid #F69F04;
    outline-offset: 2px;
}

/* チェックボックス項目のラベル位置調整 */
#member-regist .form-items ul li label span {
    display: flex;
    align-items: center;
    min-height: 35px;
    padding-top: 0;
}

#member-regist .login-link {
    text-decoration: none;
    font-size: 14px;
    color: #F69F04;
    text-align: center;
    display: block;
    margin-top: 20px;
}

#member-regist .login-link:hover {
    text-decoration: underline;
}

/* エラーメッセージ */
.error-message {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 必須マーク */
#member-regist .form-items ul li label span.required-mark {
    display: inline-block !important;
    color: #e74c3c !important;
    font-weight: bold !important;
    width: 10px;
    margin-left: 2px;
}

#member-regist .form-items ul li .formLink {
    color: #007bff !important;
    text-decoration: underline !important;
}

/* レスポンシブデザイン */
@media(max-width: 768px) {
    #header_inner {
        width: 100%;
    }
    #contents {
        width: 100%;
    }
    #member-regist .input-block-level {
        width: 100%;
    }
    #member-regist ul .checkbox {
        width: 100%;
        margin-left: 0;
        display: block;
    }
    #member-regist select {
        width: 100%;
    }
    #member-regist .form-items ul li label {
        height: 30px;
        width: 100%;
    }
    #member-regist .form-items ul li label span {
        width: 100%;
        display: block;
        margin-bottom: 5px;
        min-height: auto;
    }
    #member-regist .form-items li label {
        width: 100%;
        margin-right: 0;
    }
    #member-regist .form-items ul li {
        margin-bottom: 20px;
    }
    #member-regist .form-items ul li ul.checkbox {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #contents {
        padding: 0;
    }

    #member-regist .contents_box {
        padding: 20px 15px;
        width: 100%;
    }
    
    #member-regist .button_container button {
        width: 100%;
        max-width: 200px;
    }

    #member-regist .form-items ul li ul.checkbox {
        font-size: 14px;
    }

    #member-regist .form-items ul li ul.checkbox li input[type="checkbox"] {
        width: 14px;
        height: 14px;
        margin-right: 5px;
        margin-bottom: 3px;
    }
} 