/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

::placeholder {
   font-size: 0.75em;
   color: #aaa;
}

body {
    background-color: #f4f4f4;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin: 0; /* Ensure body has no margin */
    width: 100%; /* Ensure body takes full width */
    overflow-x: hidden; /* Prevent horizontal overflow */
}

header {
    background: #333;
    color: #fff;
    padding: 1em 0;
    width: 100%;
    text-align: center;
    overflow: hidden; /* Contain floating elements */
    max-width: 100%; /* Prevent header from exceeding viewport width */
}

header h1 {
    margin: 0; /* Ensure no margin on h1 */
}

header h1 a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

header h1 img {
    max-width: 100%;
    height: auto;
}

#menubar {
    background: #444;
    padding: 0.5em 0;
    max-width: 100%; /* Prevent menubar from exceeding viewport width */
}

#menubar nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

#menubar nav ul li {
    margin: 0 1em;
}

#menubar nav ul li a {
    color: #fff;
    text-decoration: none;
}

#container {
    max-width: 1200px;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-top: 2em;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1em;
    font-size: 2em;
}

form dl {
    margin-bottom: 1.5em;
    font-size: 1.3em; /* Adjust font size for form elements */
}

dt {
    margin-bottom: 0.5em;
    font-weight: bold;
    font-size: 1.4em; /* Adjust font size for dt elements */
}

dd {
    margin-bottom: 1em;
    font-size: 1.3em; /* Adjust font size for dd elements */
}

.mfp_rows {
    display: flex;
    flex-wrap: wrap;
}

.mfp_col5 {
    width: 100% !important;
    margin-bottom: 1em;
}

form#mailformpro label.mfp_not_checked {
    border:1px solid #666;
    font-size: 1.5em;
    border-radius: 10px;
    padding: 1.1em !important;
}

form#mailformpro label.mfp_checked {
    border:1px solid #666;
    font-size: 1.5em;
    border-radius: 10px;
    padding: 1.1em !important;
    background-color: #840606;
    color: #fff;
}


.mfp_col10 {
    width: 100%;
    color: red;
    font-size: 1.5em;
    font-weight: bold;
}

.kiyaku {
	border: 1px solid #666;
	padding: 1em;
	width: 80%;
	border-radius: 10px;
}

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.3em; /* Adjust font size for input elements */
}

textarea {
    resize: vertical;
}


                
.mfp_buttons {
    width: 100%;
    padding: 15px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.4em;
    text-transform: uppercase;
}

.mfp_buttons:hover {
    background: #555;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    margin-top: 2em;
    width: 100%;
}

footer a {
    color: #fff;
    text-decoration: none;
}

#footermenu {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-bottom: 1em;
}

#footermenu li {
    margin: 0 1em;
}

#footermenu li a {
    color: #fff;
    text-decoration: none;
}

@media (min-width: 769px) {
    .mfp_col5 {
        width: 48% !important;
        margin-right: 2%;
    }
    .mfp_col5:nth-child(2n) {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
h2 {
    font-size: 1.5em;
}

	.mfp_col10{
		font-size: 0.8em !important;
		line-height: 2em;
	}
.kiyaku {
	width: 100%;
}
    .mfp_col5 {
        width: 100% !important;
        font-size: 0.8em !important;
        margin-right: 0;
    }

    header h1 img {
        max-width: 80%;
    }

    #menubar nav ul {
        flex-direction: column;
    }

    #menubar nav ul li {
        margin: 0.5em 0;
    }
}