body {
    background:
        radial-gradient(circle at top left, rgba(0, 86, 179, 0.14), transparent 28%),
        linear-gradient(145deg, #f5f8fc 0%, #eef3f9 45%, #f7fafc 100%);
    color: #1f2933;
}

.form-container {
    min-height: 100vh;
}

.card {
    border-radius: 1rem;
}

.form-header {
    border-bottom: 1px solid #e5edf5;
    padding-bottom: 1.5rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #0056b3;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

img#logo{
    width: 100px;
    float:left;
}

h1,
.section-title {
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 1.5rem;
}

h1 span{
    font-size: 1.2rem;
}

.section-title {
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.form-section + .form-section {
    margin-top: 2rem;
}

.selection-flow {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.flow-step {
    flex: 1 1 180px;
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 1px solid #d8e1eb;
    border-radius: 0.85rem;
    background-color: #f9fbfd;
}

.flow-step.is-active {
    border-color: #8fb7e4;
    background-color: #f3f8fe;
}

.flow-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background-color: #0056b3;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    float:left;
    margin-right: 8px;
}

.flow-step-title {
    font-weight: 700;
    color: #243b53;
    line-height: 1.2;
}

.flow-step-text {
    margin-top: 0.25rem;
    color: #52606d;
    font-size: 0.92rem;
    line-height: 1.5;
}

.flow-arrow {
    display: flex;
    align-items: center;
    color: #7b8794;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0 0.1rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.2rem;
    margin-bottom: 0;
    padding: 0.35rem 1rem;
    border-radius: 0.75rem;
    
}

.radio-option input[type="radio"] {
    margin-top: 0.25rem;
    accent-color: #0056b3;
}

.radio-option span {
    line-height: 1.5;
}

label.radio-option{
    font-weight: normal;
}

.input-w-sm { 
    max-width: 240px; 
}

.input-w-md { 
    max-width: 360px; 
}

.input-w-lg { 
    max-width: 520px; 
}

.input-w-full { 
    max-width: 100%; 
}

.lh-sm { 
    line-height: 1.3; 
}

.lh-md { 
    line-height: 1.6; 
}

.lh-lg { 
    line-height: 1.9; 
}



label{
    font-weight: bold;
}

#acceptance_area label{
	font-weight: normal;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


#majorLabel,
#facultyLabel {
    display: inline-block;
    white-space: nowrap;
    font-size: 0.95rem;
}

.faculty-count-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background-color: #eaf2fb;
    color: #0056b3;
    font-size: 0.78rem;
    font-weight: 700;
    vertical-align: middle;
}

.confirm-table th {
    width: 28%;
    background-color: #f8f9fa;
}

.consent-box {
    padding: 1rem 1.25rem;
    border: 1px solid #d8e1eb;
    border-radius: 0.85rem;
    background-color: #f9fbfd;
}

.guideline-box {
    padding: 1rem 1.25rem;
    border: 1px solid #d8e1eb;
    border-radius: 0.85rem;
    background-color: #f8fbff;
}

.guideline-links {
    padding-left: 1.25rem;
}

.guideline-links li + li {
    margin-top: 0.35rem;
}

.privacy-note {
    color: #52606d;
    font-size: 0.95rem;
    line-height: 1.7;
}

.form-check + .form-check {
    margin-top: 1rem;
}

.consent-box.has-error {
    border-color: #dc3545;
}

.custom-file-label::after {
    content: "参照";
}

.badge-danger {
    background-color: #dc3545;
}

.btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #004494;
    border-color: #004494;
}

@media (max-width: 767.98px) {
    .selection-flow {
        flex-direction: column;
    }

    .flow-arrow {
        justify-content: center;
        transform: rotate(90deg);
    }

    .confirm-table th,
    .confirm-table td {
        display: block;
        width: 100%;
    }

    .confirm-table th {
        border-bottom: 0;
    }
}

@media (min-width: 1200px){
    .container, 
    .container-lg, 
    .container-md, 
    .container-sm, 
    .container-xl{
        max-width: 1400px;
    }
}
