@charset "UTF-8";

#contact * {
	font-family: fot-tsukuardgothic-std, sans-serif;
}

/* left
---------------------------------------------------------- */
#contact form > table > tbody > tr > td:nth-of-type(1) .required {
    background: #ef7d1b;
}

/* right（共通）
---------------------------------------------------------- */
#contact form > table > tbody > tr > td:nth-of-type(2) input[type="text"],
#contact form > table > tbody > tr > td:nth-of-type(2) textarea,
#contact form > table > tbody > tr > td:nth-of-type(2) select {
    padding: 0.5em;
}
#contact form > table > tbody > tr > td:nth-of-type(2) select {
    padding: 1em 0.5em;
}
#contact form > table > tbody > tr > td:nth-of-type(2) input[type="radio"]:checked {
    border: 1px solid #ef7d1b;
}
#contact form > table > tbody > tr > td:nth-of-type(2) input[type="radio"]:checked::after {
    background: #ef7d1b;
}
#contact form > table > tbody > tr > td:nth-of-type(2) input[type="checkbox"]:checked {
    border: 1px solid #ef7d1b;
}
#contact form > table > tbody > tr > td:nth-of-type(2) input[type="checkbox"]:checked::after {
    border: solid #ef7d1b;
    border-width: 0 3px 3px 0;
}

/* submit
---------------------------------------------------------- */
#contact .btn table tr td input[type="button"] {
    background: #ef7d1b;
}

/* right（個別）
---------------------------------------------------------- */
/* お名前・フリガナ */
#contact form > table:nth-of-type(1) > tbody > tr > td:nth-of-type(2) input[type="text"],
#contact form > table:nth-of-type(2) > tbody > tr > td:nth-of-type(2) input[type="text"] {
    margin-left: 0.5em;
}
/* お子様のお名前・電話・FAX番号 */
#contact form > table:nth-of-type(4) > tbody > tr > td:nth-of-type(2) input[type="text"],
#contact form > table:nth-of-type(7) > tbody > tr > td:nth-of-type(2) input[type="text"],
#contact form > table:nth-of-type(8) > tbody > tr > td:nth-of-type(2) input[type="text"] {
    max-width: 100px;
    margin-right: 0.5em;
}
#contact form > table:nth-of-type(4) > tbody > tr > td:nth-of-type(2) input[type="text"]:not(:first-of-type),
#contact form > table:nth-of-type(7) > tbody > tr > td:nth-of-type(2) input[type="text"]:not(:first-of-type),
#contact form > table:nth-of-type(8) > tbody > tr > td:nth-of-type(2) input[type="text"]:not(:first-of-type) {
    margin-left: 0.5em;
}
/* お子様の性別 */
#contact form > table:nth-of-type(5) > tbody > tr > td:nth-of-type(2) table tr,
#contact form > table:nth-of-type(5) > tbody > tr > td:nth-of-type(2) table tr td {
    margin-right: 2em;
    display: flex;
    align-items: center;
}
/* ご住所 */
#contact form > table:nth-of-type(6) > tbody > tr > td:nth-of-type(2) table {
    margin: 0;
}
#contact form > table:nth-of-type(6) > tbody > tr > td:nth-of-type(2) table tbody tr td:nth-of-type(1) {
    padding: 0 !important;
    vertical-align: middle;
}
#contact form > table:nth-of-type(6) > tbody > tr > td:nth-of-type(2) table tbody tr td:nth-of-type(2) {
    padding: 1em 0;
    display: flex;
    align-items: center;
}
#contact form > table:nth-of-type(6) > tbody > tr > td:nth-of-type(2) table tbody tr:nth-of-type(1) td:nth-of-type(2) input[type="text"]:nth-of-type(2) {
    max-width: 100px;
    margin-right: 0.5em;
}
#contact form > table:nth-of-type(6) > tbody > tr > td:nth-of-type(2) table tbody tr:nth-of-type(1) td:nth-of-type(2) input[type="text"]:nth-of-type(3) {
    max-width: 100px;
    margin-left: 0.5em;
}
#contact form > table:nth-of-type(6) > tbody > tr > td:nth-of-type(2) table tbody tr:last-of-type td:nth-of-type(2) input[type="text"] {
    width: 100%;
}

@media (max-width: 640px) {
	#contact .sec01 .inner {
	    width: 100%;
	}
    #contact form > table:nth-of-type(1) > tbody > tr > td:nth-of-type(2) input[type="text"], #contact form > table:nth-of-type(2) > tbody > tr > td:nth-of-type(2) input[type="text"] {
        margin-left: 0.3em;
        width: 33%;
    }
    #contact form > table:nth-of-type(3) > tbody > tr > td:nth-of-type(2) input[type="text"],
    #contact form > table:nth-of-type(9) > tbody > tr > td:nth-of-type(2) input[type="text"] {
        width: 100%;
    }
}