@import url('/common/css/root.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Container */
#wrapper {
    /* min-height: 100vh; */
}

#container {
    margin: 0 auto;
}

/* Form Section */
.form-section {
    max-width: 1200px;
    margin: auto;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding-top: 60px;
}

.sectionTitle {
    text-align: center;
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 60px;
    position: relative;
    font-weight: 300;
    letter-spacing: 2px;
    font-family: var(--font-base);
}

@media (max-width:768px) {
    .sectionTitle {
        font-size: 1.8rem;
    }
}

.sectionTitle::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(135deg, #EA7317 0%, #ff8a2b 100%);
}

.form-section__body {
    padding: 2rem;
}

@media (max-width:768px) {
    .form-section__body {
        padding: 20px;
    }
}

/* Form Table */
.form-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 2rem;
}

@media (max-width:768px) {
    .form-table tbody {
        width: 100%;
        display: block;
    }
}

.form-table th {
    background-color: #f8f9fa;
    padding: 1.2rem;
    text-align: left;
    font-weight: bold;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
    width: 220px;
}

.form-table td {
    padding: 1.2rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

.form-table tr:last-child th,
.form-table tr:last-child td {
    border-bottom: none;
}

/* Form Elements */
input[type="text"],
input[type="password"],
select,
textarea {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #458237;
    box-shadow: 0 0 0 3px rgba(69, 130, 55, 0.1);
}

input[type="text"][size="60"],
input[type="text"][size="72"] {
    width: 100%;
    max-width: 500px;
}

input[type="text"][size="50"] {
    width: 100%;
    max-width: 400px;
}

input[type="text"][size="32"] {
    width: 100%;
    max-width: 250px;
}

input[type="text"][size="30"] {
    width: 100%;
    max-width: 200px;
}

input.zip {
    width: 80px;
}

@media (max-width:768px) {
    input[name="zip2"] {
        width: 100px;
        margin-bottom: 25px;
    }
}

/* Radio Buttons and Checkboxes */
input[type="radio"],
input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

label {
    margin-right: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.label2 label,
.label3 label,
.label4 label {
    display: block;
    margin-bottom: 0.5rem;
}

/* Required Field Indicator */
.requisite {
    color: #dc3545;
    font-weight: bold;
    margin-left: 0.25rem;
}

/* Hints */
.hint {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Submit Button */
.form-action {
    text-align: center;
    padding: 2rem 0;
}

.btn_check {
    background-color: #EA7317;
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(234, 115, 23, 0.3);
}

.btn_send {
    background-color: #EA7317;
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(234, 115, 23, 0.3);
}

.btn_back {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(138, 138, 138, 0.3);
}

@media (min-width:769px) {
    .btn_back {
        margin-right: 10px;
    }
}

@media (max-width:768px) {

    .btn_back,
    .btn_send {
        width: 100%;
    }
}

@media (max-width:768px) {
    .btn_back {
        margin-bottom: 10px;
    }

}

.btn_check:hover {
    background-color: #d1611a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(234, 115, 23, 0.4);
}

.form-message__link a {
    display: inline-block;
    background-color: #EA7317;
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 25px;
    box-shadow: 0 4px 6px rgba(234, 115, 23, 0.3);
}

.form-message__link li {
    list-style: none;
}

/* Responsive Design */
@media (max-width: 768px) {

    .form-table {
        display: block;
    }

    .form-table tr {
        display: block;
        margin-bottom: 0;
        border: 1px solid #dee2e6;
        overflow: hidden;
    }

    .form-table th,
    .form-table td {
        display: block;
        width: 100% !important;
        border: none;
    }

    .form-table th {
        border-bottom: 1px solid #dee2e6;
    }

    .footerMenu {
        /* flex-direction: column; */
        gap: 1rem;
    }
}

/* Accessibility Improvements */
input:focus,
select:focus,
button:focus {
    outline: 3px solid rgba(69, 130, 55, 0.5);
    outline-offset: 2px;
}

/* Animation for form interactions */
.form-table tr {
    transition: background-color 0.2s ease;
}

@media (min-width:769px) {
    .form-table th {
        width: 220px;
    }

}

@media (max-width:768px) {
    .form-table th {
        width: 100%;
    }

}

.form-table tr:hover {
    background-color: rgba(69, 130, 55, 0.02);
}

/* Hidden elements remain hidden */
.personal[style*="display: none"] {
    display: none !important;
}

@media (max-width:768px) {

    .corporation select[name="business_type"],
    input[type="password"] {
        width: 100%;
    }
}

@media (max-width:768px) {
    select[name="adds"] {
        margin-bottom: 10px;
    }
}

@media (max-width:768px) {
    select[name="add_sub"] {
        margin-bottom: 10px;
        max-width: 140px;
    }
}