@charset "UTF-8";

body {
    font-size: 62.5%;
    /*emの計算をしやすくするための定番設定*/
    font-family: "noto-sans-cjk-jp", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-family: "noto-sans-cjk-jp", sans-serif;
    font-weight: 300;
    font-style: normal;
    color: #000;
}

@media only screen and (max-width:768px) {

    body {
        width: 100%;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

}

/* フォームの全体枠 */
form {
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    padding: 70px 30px 25px 30px;
}

/* セクション */
fieldset {
    border: none;
    max-width: 750px;
}

legend {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #444;
}

/* ラベル */
label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #252d3a;
}

/* 入力欄 */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 90%;
    padding: 10px 12px;
    margin-bottom: 30px;
    font-size: 1rem;
    border: 1px solid #b2b2b2;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: #007BFF;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.4);
    outline: none;
}

.required {
    display: inline-block;
    margin-right: 8px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    background-color: #e12a2a;
    /* 赤 */
    border-radius: 5px;
    vertical-align: middle;
}

.optional {
    display: inline-block;
    margin-right: 8px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #555;
    /* グレー系 */
    background-color: #ddd;
    /* 薄いグレー */
    border-radius: 5px;
    vertical-align: middle;
}

.gender-wrap {
    display: flex;
    gap: 10px;
    /* 横並びの間隔 */
}

/* 四角い枠 */
.gender-box {
    width: 42.6%;
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid #b2b2b2;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    background-color: #fff;
}

.gender-box input[type="radio"] {
    margin-right: 8px;
    /* ←ここでラジオボタンとテキストの間隔を設定 */
}

/* ボタン */
button[type="submit"] {
    display: block;
    width: 50%;
    border: none;
    cursor: pointer;
    background: transparent;
    margin: 0 auto;
    margin-bottom: 25px;
    transition-duration: .4s;
}

button[type="submit"]:hover {
    opacity: 0.6;

}

/* 成功・エラー メッセージ */
p[style*="color: green"] {
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 12px;
    background: #e6f9e6;
    border: 1px solid #90d890;
    color: #2d662d;
    border-radius: 6px;
    font-size: 0.95rem;
}

p[style*="color: red"] {
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 12px;
    background: #fdeaea;
    border: 1px solid #f5a5a5;
    color: #a33a3a;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* レスポンシブ */
@media (max-width: 480px) {

    form {
        padding: 40px 10px 20px 10px;
    }

    /* ボタン */
    button[type="submit"] {
        display: block;
        width: 60%;
        border: none;
        cursor: pointer;
        background: transparent;
        margin: 0 auto;
        margin-bottom: 25px;
        transition-duration: .4s;
    }

    button[type="submit"]:hover {
        opacity: 0.6;
    
    }
    
}