/* static/css/wakuwakuyoyaku_nologin.css */

/* フォームセクション */
.form-section {
    background-color: white;
    margin-bottom: 30px;
    overflow: hidden;
    color: #30728A;
}

.section-title {
    width: 100%;
    padding: 15px;
    background-color: #50BCCC;
    font-weight: 500;
    font-size: 17px;
    line-height: 140%;
    letter-spacing: 0.03em;
    color: #FFFFFF;
}

.section-subtitle {
    width: 100%;
    padding: 15px;
    background-color: #B7DFE5;
    font-weight: 500;
    font-size: 15px;
    line-height: 140%;
    letter-spacing: 0.03em;
    color: #30728A;
}
.form-group {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e0e0e0;
}

.form-group:last-child {
    border-bottom: none;
}

.form-label {
    background-color: #f0f8f8;
    padding: 20px;
    width: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
}

.form-label-text {
    display: block;
}

.form-label small {
    font-size: 12px;
    display: block;
}

.required {
    background-color: white;
    border: 2px solid #e91e63;
    color: #e91e63;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-left: auto; 
}

.form-value {
    flex: 1;
    padding: 20px;
}

/* フォームコントロール */
.form-control,
.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fafafa;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: #5dade2;
    background-color: white;
}

.form-control.short {
    width: auto;
    min-width: 100px;
}

.form-select.short {
    width: auto;
    min-width: 120px;
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

/* 名前入力グループ */
.name-group {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.name-field {
    flex: 1;
}

.field-label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
}

.input-note {
    white-space: nowrap;
    font-size: 12px;
    color: #666;
    padding: 10px 0;
}

/* ラジオボタングループ */
.radio-group {
    display: flex;
    gap: 30px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 日付グループ */
.date-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap; /* 追加：改行を防ぐ */
    width: 100%;
}

.date-group .form-control.short {
    width: auto;
    min-width: 80px; /* 60pxから80pxに拡大 */
    max-width: 100px; /* 最大幅を設定 */
    flex: 1; /* 均等に幅を分配 */
}

.date-group select.form-control.short {
    min-width: 100px; /* 80pxから100pxに拡大 */
    max-width: 120px;
    flex: 1;
}

/* 郵便番号グループ */
.postal-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-search {
    background: #E9F4F6;
    border: 2px solid #50BCCC;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    color: #30728A;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.btn-search:hover {
    background-color: #4a9fd1;
}

/* 電話番号グループ */
.phone-group {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 400px;
}

.phone-group .form-control {
    flex: 1;
}

/* 免許証番号 */
.license-number {
    display: flex;
    gap: 10px;
    align-items: center;
}

.license-number .form-control {
    max-width: 300px;
}

/* フォームアクション */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
}

.btn-back {
    margin-right: auto;
    background-color: #FFFFFF;
    color: #282828;
    padding: 15px 60px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #DEDEDE;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.btn-back:hover {
    background: #DEDEDE;
}

.btn-submit {
    margin-left: auto;
    background-color: white;
    color: #1B4599;
    padding: 15px 60px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #1B4599;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.btn-submit:hover {
    background: #1B4599;
    color: white;
}

.btn-login {
    width: 100%;
    background-color: white;
    color: #1B4599;
    padding: 15px 60px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #1B4599;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.btn-login:hover {
    background: #1B4599;
    color: white;
}


/* ログインコンテナ */
.login-container {
    max-width: 500px;
    width: 90%;
    margin: 80px auto;
    background-color: #ffffff;
    padding: 60px 50px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* タイトル（base_nologin.htmlに追加する必要がある場合） */
.login-container::before {
    content: '枠枠予約システム';
    display: block;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #2b5fac;
    margin-bottom: 40px;
}

/* フォームグループ */
.login-group {
    margin-bottom: 25px;
}

/* ラベル */
.login-label {
    display: block;
    font-size: 14px;
    color: #333333;
    margin-bottom: 8px;
    font-weight: normal;
}


.login-value {
    width: 100%;
}

.login-field {
    width: 100%;
}

/* メッセージ表示エリア */
.messages-container {
    margin-bottom: 20px;
}

/* 各メッセージの基本スタイル */
.message {
    padding: 10px 15px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    border-radius: 4px;
}

/* PC時はより広く */
@media (min-width: 769px) {
    .date-group .form-control.short {
        min-width: 90px;
    }
    
    .date-group select.form-control.short {
        min-width: 110px;
    }
}

@media (max-width: 768px) {
    .container {
        margin-top: 0px;
        width: 100%;
    }

    .page-title {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.25rem;
        font-weight: 500;
        font-size: 25px;
        line-height: 140%;
        letter-spacing: 0.03em;
    }

    .title-left,
    .title-right {
        width: 100%;
        justify-content: center;
    }

    .form-group {
        flex-direction: column;
    }

    .form-label {
        width: 100%;
        padding: 15px;
    }

    .form-label-text {
        display: inline; /* blockからinlineに変更 */
    }

    .form-label small {
        display: inline; 
        margin-left: 5px;
    }

    .form-value {
        padding: 15px;
    }

    .name-group {
        flex-direction: row;
        gap: 10px;
        align-items: flex-end;
        width: 100%;
    }

    .name-field {
        flex: 1;
        min-width: 0;
    }

    .name-field .form-control {
        width: 100%;
    }

    .input-note {
        padding-bottom: 10px; /* スマホ用 */
        font-size: 11px;
        flex-shrink: 0;
    }

   .date-group {
        gap: 5px;
        flex-wrap: nowrap;
    }
    
    .date-group .form-control.short {
        min-width: 50px;
        font-size: 14px;
        padding: 8px 5px;
    }
    
    .date-group select.form-control.short {
        min-width: 70px;
        font-size: 14px;
        padding: 8px 5px;
    }

    .postal-group {
        flex-direction: row;
        align-items: center;
    }
    
    .postal-group .form-control {
        flex: 1;
        min-width: 0;
    }
    
    .postal-group .btn-search {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .phone-group {
        max-width: 100%;
    }

    .radio-group {
        gap: 20px;
    }

    .form-actions {
        padding: 0 10px;  /* 両サイドに余白を追加 */
    }

    .btn-back {
        padding: 10px 20px;
    }

    .btn-submit {
        padding: 10px 20px;
    }

    .btn-login {
        padding: 10px 20px;
    }

    .login-container {
        padding: 40px 30px;
        margin: 40px auto;
    }
    
    .login-container::before {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .date-group {
        gap: 3px;
    }
    
    .date-group .form-control.short {
        min-width: 45px;
        font-size: 13px;
        padding: 6px 3px;
    }
    
    .date-group select.form-control.short {
        min-width: 60px;
        font-size: 13px;
        padding: 6px 3px;
    }
}