/* 既存のスタイルを含む */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

h1 {
    color: #333;
    text-align: center;
}

.Form {
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
    width: 100%;
    padding: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

@media screen and (max-width: 480px) {
    .Form {
        margin-top: 40px;
        padding-left: 10px;
        padding-right: 40px;
    }
}

.Form-Item {
    border-top: 1px solid #ddd;
    padding-top: 24px;
    padding-bottom: 24px;
    width: 100%;
    display: flex;
    flex-direction: column; /* 縦方向に揃える */
    align-items: flex-start;
}

@media screen and (max-width: 480px) {
    .Form-Item {
        padding-left: 14px;
        padding-right: 14px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

.Form-Item:nth-child(5) {
    border-bottom: 1px solid #ddd;
}

.Form-Item-Label {
    width: 100%;
    letter-spacing: 0.05em;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 7px; /* ボックスとの間隔を追加 */
}

@media screen and (max-width: 480px) {
    .Form-Item-Label {
        font-size: 15px;
    }
}

.Form-Item-Label.isMsg {
    margin-top: 8px;
    margin-bottom: 10px;
}

@media screen and (max-width: 480px) {
    .Form-Item-Label.isMsg {
        margin-top: 0;
    }
}

.Form-Item-Label-Required {
    border-radius: 6px;
    margin-right: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    width: 48px;
    display: inline-block;
    text-align: center;
    background: #5bc8ac;
    color: #fff;
    font-size: 14px;
}

@media screen and (max-width: 480px) {
    .Form-Item-Label-Required {
        border-radius: 4px;
        padding-top: 4px;
        padding-bottom: 4px;
        width: 32px;
        font-size: 10px;
    }
}

.Form-Item-Input {
    border: 1px solid #ddd;
    border-radius: 6px;
    width: calc(100% - 22px);
    padding-left: 1em;
    padding-right: 1em;
    height: 48px;
    background: #eaedf2;
    font-size: 18px;
}

@media screen and (max-width: 480px) {
    .Form-Item-Input {
        height: 32px;
        font-size: 15px;
    }
}

.Form-Item-Textarea {
    border: 1px solid #ddd;
    border-radius: 6px;
    width: calc(100% - 22px);
    padding-left: 1em;
    padding-right: 1em;
    height: 216px;
    background: #eaedf2;
    font-size: 18px;
}

@media screen and (max-width: 480px) {
    .Form-Item-Textarea {
        height: 200px;
        font-size: 15px;
    }
}

.Form-Btn {
    border-radius: 6px;
    margin-top: 32px;
    padding-top: 20px;
    padding-bottom: 20px;
    width: 100%;
    max-width: 280px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.05em;
    background: #5bc8ac;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
}

@media screen and (max-width: 480px) {
    .Form-Btn {
        margin-top: 24px;
        padding-top: 8px;
        padding-bottom: 8px;
        width: 160px;
        font-size: 16px;
    }
}

/* モーダルウィンドウのスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
    padding-bottom: 20px; /* 下に空白を追加 */
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 8px;
    text-align: left;
    position: relative;
    padding-bottom: 60px;
}

@media screen and (max-width: 480px) {
    .modal-content { padding-bottom: 60px; /* モバイル表示時の余白を増やす */ }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* モーダルウィンドウの閉じるボタン */
#modal-close {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background-color: #5bc8ac;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

#modal-close:hover {
    background-color: #45a049;
}

/* 評価の星のスタイル */
.rating {
    direction: rtl;
    display: flex;
    justify-content: center; /* 中央寄せに変更 */
    width: 100%;
}

.rating input {
    display: none;
}

.rating label {
    font-size: 3rem; /* 星のサイズを大きくする */
    color: #ddd;
    cursor: pointer;
}

.rating label:before {
    content: '★';
}

.rating input:checked ~ label {
    color: gold;
}

.rating label:hover,
.rating label:hover ~ label {
    color: gold;
}

/* スタッフ選択関連のスタイル */
#loading-staff {
    margin-top: 8px;
    color: #666;
    font-size: 0.9em;
}

/* チェックボックスとテキストの配置調整 */
.Form-Item input[type="checkbox"] {
    width: auto;
    height: auto;
    margin-right: 8px;
}

.Form-Item input[type="checkbox"] + span {
    font-size: 16px;
    color: #333;
}

@media screen and (max-width: 480px) {
    .Form-Item input[type="checkbox"] + span {
        font-size: 14px;
    }
}

/* スタッフ選択の表示/非表示アニメーション */
#staff-selection {
    transition: all 0.3s ease;
}

#staff-selection.hidden {
    display: none;
}