 #contents {
     max-width: 1200px;
     margin: 0 auto;
     padding: 2rem;
     min-height: 100vh;
 }

 .contents_inline {
     display: flex;
     justify-content: center;
 }

 .contents_m {
     width: 100%;
 }

 /* Page Title */
 .contents_m>h2 {
     font-size: 2.2rem;
     color: var(--gray-dark);
     margin-bottom: 2rem;
     font-weight: 700;
     text-align: center;
     position: relative;
 }

 .contents_m>h2::after {
     content: '';
     position: absolute;
     bottom: -10px;
     left: 50%;
     transform: translateX(-50%);
     width: 80px;
     height: 3px;
     background: linear-gradient(135deg, var(--main-color) 0%, var(--button-color) 100%);
     border-radius: 2px;
 }

 /* Main Container */
 .main {
     background: var(--white);
     border-radius: 16px;
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
     overflow: hidden;
     margin-bottom: 2rem;
     transition: var(--transition);
 }

 .main:hover {
     box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
 }

 /* Search Table */
 .search_table {
     padding: 2.5rem;
 }

 .search_table table {
     width: 100%;
     border-collapse: separate;
     border-spacing: 0;
     margin-bottom: 2rem;
 }

 .search_table th {
     background: linear-gradient(135deg, var(--main-color) 0%, #1a4bb8 100%);
     color: var(--white);
     padding: 1.5rem 2rem;
     text-align: left;
     font-weight: 600;
     font-size: 1rem;
     border: none;
     vertical-align: top;
     white-space: nowrap;
     width: 140px;
 }

 .search_table td {
     background: var(--white);
     padding: 1.5rem 2rem;
     border: 1px solid var(--gray-light);
     border-left: none;
     vertical-align: top;
 }

 .search_table tbody tr:first-child th:first-child {
     border-radius: 16px 0 0 0;
 }

 .search_table tbody tr:first-child td:last-child {
     border-radius: 0 16px 0 0;
 }

 .search_table tbody tr:last-child th:first-child {
     border-radius: 0 0 0 16px;
 }

 .search_table tbody tr:last-child td:last-child {
     border-radius: 0 0 16px 0;
 }

 .search_table tbody tr {
     transition: var(--transition);
 }

 .search_table tbody tr:hover td {
     background: rgba(36, 95, 229, 0.02);
 }

 /* Select Styles */
 .search_table select {
     padding: 0.75rem 1rem;
     border: 2px solid var(--gray-light);
     border-radius: var(--border-radius);
     font-size: 0.95rem;
     font-family: inherit;
     transition: var(--transition);
     background: var(--white);
     cursor: pointer;
     max-width: 115px;
 }

 .search_table select[name="adds_id"] {
     max-width: 180px;
 }

 .chackBox label {
     display: flex;
     gap: 10px;
 }

 .search_table select:focus {
     outline: none;
     border-color: var(--main-color);
     box-shadow: 0 0 0 3px rgba(36, 95, 229, 0.1);
 }

 /* Checkbox Styles for label2, label3, label5 */
 .label2,
 .label3,
 .label5 {
     display: grid;
     gap: 1rem;
     margin-top: 1rem;
 }

 .label2 {
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 }

 .label3 {
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 }

 .label5 {
     grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
     gap: 1.5rem;
 }

 .label2 label,
 .label3 label,
 .label5 label {
     display: flex;
     align-items: center;
     padding: 0.875rem 1.25rem;
     border-radius: var(--border-radius);
     transition: var(--transition);
     cursor: pointer;
     font-size: 0.95rem;
     background: rgba(36, 95, 229, 0.02);
     border: 1px solid rgba(36, 95, 229, 0.1);
 }

 .label2 label:hover,
 .label3 label:hover,
 .label5 label:hover {
     background: rgba(36, 95, 229, 0.05);
     border-color: rgba(36, 95, 229, 0.2);
     transform: translateY(-2px);
     box-shadow: 0 4px 12px rgba(36, 95, 229, 0.1);
 }

 .label2 input[type="checkbox"],
 .label3 input[type="checkbox"],
 .label5 input[type="checkbox"] {
     margin-right: 0.75rem;
     width: 18px;
     height: 18px;
     accent-color: var(--main-color);
 }

 .label2 input[type="checkbox"]:checked+span,
 .label3 input[type="checkbox"]:checked+span,
 .label5 input[type="checkbox"]:checked+span {
     color: var(--main-color);
     font-weight: 600;
 }

 .label2 input[type="checkbox"]:checked,
 .label3 input[type="checkbox"]:checked,
 .label5 input[type="checkbox"]:checked {
     transform: scale(1.1);
 }

 /* Specific checkbox styling */
 .label5 label {
     justify-content: center;
     text-align: center;
     min-height: 50px;
 }

 /* Button Container */
 .button {
     text-align: center;
     padding-top: 2rem;
     border-top: 2px solid var(--gray-light);
     margin-top: 1rem;
 }

 /* Search Button */
 .btn_search {
     background: linear-gradient(135deg, var(--button-color) 0%, #d66013 100%);
     color: var(--white);
     border: none;
     padding: 1.25rem 3rem;
     font-size: 1.2rem;
     font-weight: 700;
     border-radius: 50px;
     cursor: pointer;
     transition: var(--transition);
     box-shadow: 0 6px 20px rgba(234, 115, 23, 0.3);
     position: relative;
     overflow: hidden;
 }

 .btn_search:hover {
     transform: translateY(-3px);
     box-shadow: 0 10px 30px rgba(234, 115, 23, 0.4);
     background: linear-gradient(135deg, #d66013 0%, #c55511 100%);
 }

 .btn_search:active {
     transform: translateY(-1px);
 }

 .btn_search::before {
     content: '';
     position: absolute;
     top: 50%;
     left: 50%;
     width: 0;
     height: 0;
     background: rgba(255, 255, 255, 0.2);
     border-radius: 50%;
     transform: translate(-50%, -50%);
     transition: width 0.3s, height 0.3s;
 }

 .btn_search:hover::before {
     width: 400px;
     height: 400px;
 }

 /* Message Box */
 .message {
     background: linear-gradient(135deg, rgba(36, 95, 229, 0.05) 0%, rgba(234, 115, 23, 0.05) 100%);
     border: 1px solid rgba(36, 95, 229, 0.1);
     border-radius: 16px;
     padding: 2.5rem;
     text-align: center;
     margin-top: 2rem;
     backdrop-filter: blur(10px);
 }

 .message p {
     color: var(--gray-dark);
     font-size: 1.2rem;
     margin-bottom: 1.5rem;
     font-weight: 500;
 }

 .message ul {
     list-style: none;
 }

 .message a {
     color: var(--main-color);
     text-decoration: none;
     font-weight: 600;
     transition: var(--transition);
     padding: 0.5rem 1rem;
     border-radius: var(--border-radius);
 }

 .message a:hover {
     color: var(--button-color);
     background: rgba(36, 95, 229, 0.05);
 }

 input[name="name"] {
    height: 40px;
    border: #ddd solid 2px;
    border-radius: 7px;
 }

 /* Responsive Design */
 @media (max-width: 768px) {
     #contents {
         padding: 1rem;
     }

     .contents_m>h2 {
         font-size: 1.8rem;
         margin-bottom: 1.5rem;
     }

     .search_table {
         padding: 1.5rem;
     }

     .search_table table {
         display: block;
         width: 100%;
     }

     .search_table tbody,
     .search_table tr {
         display: block;
         width: 100%;
     }

     .search_table th,
     .search_table td {
         display: block;
         width: 100%;
         border: 1px solid var(--gray-light);
         box-sizing: border-box;
     }

     .search_table th {
         border-radius: 12px 12px 0 0 !important;
         padding: 1.25rem 1.5rem;
         margin-top: 2rem;
         white-space: normal;
     }

     .search_table tbody tr:first-child th {
         margin-top: 0;
     }

     .search_table td {
         border-radius: 0 0 12px 12px !important;
         border-top: none;
         padding: 1.5rem;
     }

     .search_table select {
         width: 100%;
         margin-bottom: 1rem;
     }

     .label2 {
         grid-template-columns: 1fr;
     }

     .label3 {
         grid-template-columns: 1fr;
     }

     .label5 {
         grid-template-columns: repeat(2, 1fr);
     }

     .btn_search {
         padding: 1rem 2rem;
         font-size: 1.1rem;
         width: 100%;
         max-width: 300px;
     }

     .message {
         padding: 2rem;
     }

     .age th,
     .age td {
         width: 100% !important;
        }
        .age td .label5 label {
            justify-content: flex-start;
        }
        .age td select {
            width: 37%;
        }
 }

 @media (max-width: 480px) {
     .contents_m>h2 {
         font-size: 1.5rem;
     }

     .search_table {
         padding: 1rem;
     }

     .search_table th {
         padding: 1rem 1.25rem;
         font-size: 0.95rem;
     }

     .search_table td {
         padding: 1.25rem;
     }

     .label5 {
         grid-template-columns: 1fr;
     }

     .btn_search {
         font-size: 1rem;
         padding: 0.875rem 1.5rem;
     }
 }

 /* Animation */
 .main {
     animation: fadeInUp 0.8s ease-out;
 }

 .contents_m>h2 {
     animation: fadeInDown 0.6s ease-out;
 }

 @keyframes fadeInUp {
     from {
         opacity: 0;
         transform: translateY(40px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 @keyframes fadeInDown {
     from {
         opacity: 0;
         transform: translateY(-30px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* Focus improvements for accessibility */
 .search_table select:focus,
 .btn_search:focus {
     outline: 2px solid var(--main-color);
     outline-offset: 2px;
 }

 /* Loading state for button */
 .btn_search:disabled {
     opacity: 0.7;
     cursor: not-allowed;
     transform: none;
 }

 .btn_search:disabled:hover {
     transform: none;
     box-shadow: 0 6px 20px rgba(234, 115, 23, 0.3);
 }