@charset "UTF-8";

@media screen and (max-width: 1024px) {
    img {
        max-width: 100%;
    }
    #header {
        padding: 1.4rem 2.5% 0.8rem;
        display: block;
        width: 95%;
    }
    #header > p {
        width: 100%;
        text-align: center;
        right: 0;
    }
    header h1 {
        width: 17%;
        margin: 1rem auto;
    }
    header nav {
        width: auto;
    }
    header nav ul {
        justify-content: space-between;
    }
    header nav ul li:not(:last-child) {
        margin-right: 0;
    }
    #overview h2 {
        font-size: 2rem;
    }
    #overview {
        padding: 3.5rem 2.5% 5rem;
    }
    #overview section {
        width: auto;
    }
    #contact {
        top: 60%;
    }
    #form h2 {
        font-size: 2rem;
    }
    #form .formBox01 {
        width: auto;
        margin: 0 2.5%;
    }
    #form .formBox01 table th, #form .formBox01 table td {
        padding: 1.8rem 0.5rem;
    }
    #form .formBox01 table td input, #form .formBox01 table td textarea {
        width: 93%;
    }
    footer {
        width: auto;
    }
}

@media screen and (max-width: 767px) {
    .sp {
        display: block;
    }
    .pc {
        display: none;
    }
    p {
        font-size: 0.9rem;
    }
    .delighter {
        transition: all .3s ease-out;
        transform: translateX(-10%);
        opacity: 0.8;
    }
    .serviceBox02.delighter {
        transition: all .3s ease-out;
        transform: translateX(10%);
        opacity: 0.8;
    }
    #header {
        padding: 0.8rem 2.5%;
    }
    header h1 {
        width: 35%;
        margin: 0 auto;
    }
    header nav {
        display: none;
        margin-top: 1.5rem;
    }
    header nav ul {
        display: block;
        border-top: 1px solid #ddd;
    }
    header nav ul li {
        display: block;
    }
    header nav ul li:not(:last-child) {
        border-bottom: 1px solid #ddd;
    }
    header nav ul li a {
        padding: 0.8rem 0;
        font-size: 1rem;
        display: block;
        text-align: center;
    }
    header nav ul li a::after {
        bottom: -1px;
    }
    .menu-trigger {
        position: absolute;
        top: 5vw;
        right: 2.5%;
        display: block;
    }
    .menu-trigger div,
    .menu-trigger span {
        display: inline-block;
        transition: all .2s;
        box-sizing: border-box;
    }
    .menu-trigger div {
        position: relative;
        width: 40px;
        height: 34px;
    }
    .menu-trigger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 5px;
        background-color: #073a71;
    }
    .menu-trigger span:nth-of-type(1) {
        top: 0;
    }
    .menu-trigger span:nth-of-type(2) {
        top: 15px;
    }
    .menu-trigger span:nth-of-type(3) {
        bottom: 0;
    }   
    .menu-trigger::after {
        position: absolute;
        left: 0;
        bottom: -1rem;
        content: 'MENU';
        display: block;
        width: 100%;
        color: #073a71;
        font-size: 0.8rem;
        text-decoration: none;
        text-align: center;
        white-space: nowrap;
        transition: all .2s;
    }
    .menu-trigger.active::after {
        content: 'CLOSE';
    }
    .menu-trigger.active span:nth-of-type(1) {
        -webkit-transform: translateY(14.5px) rotate(-45deg);
        transform: translateY(14.5px) rotate(-45deg);
    }
    .menu-trigger.active span:nth-of-type(2) {
        opacity: 0;
    }
    .menu-trigger.active span:nth-of-type(3) {
        -webkit-transform: translateY(-14.5px) rotate(45deg);
        transform: translateY(-14.5px) rotate(45deg);
    }
    #contents {
        background: none;
    }
    #overview h2,
    #form h2 {
        font-size: 1.7rem;
    }
    #overview h2 span,
    #form h2 span {
        margin-top: 0;
    }
    #overview .inner {
        display: block;
    }
    #overview .inner section {
        width: auto;
    }
    #overview .inner section:not(:last-child) {
        margin-bottom: 2.5em;
    }
    #form .formBox01 table {
        display: block;
    }
    #form .formBox01 table th, #form .formBox01 table td,
    #form .formBox01 table tbody, #form .formBox01 table tr {
        display: block;
    }
    #form .formBox01 table th, #form .formBox01 table td {
        padding: 1rem 0.5rem;
    }
    #form .formBox01 table td input, #form .formBox01 table td textarea {
        width: 90%;
    }
    #form .formBox01 table tr:nth-child(odd) th {
        width: auto;
    }
    #form .formBox01 table tr:nth-child(odd) td {
        width: auto;
    }
    #form .formBox01 table tr:nth-child(even) th {
        width: auto;
    }
    #form .formBox01 table tr:nth-child(even) td {
        width: auto;
    }
    #form .formBox01 .btnConfirm01 {
        width: 100%;
    }
    #contact {
        top: inherit;
        bottom: 0;
        right: 0;
        width: 100%;
    }
    #contact a {
        padding: 1.2rem 0.5rem;
        -ms-writing-mode: inherit;
        writing-mode: inherit;
        height: auto;
        width: auto;
    }
    #contact a strong {
        position: static;
        z-index: 2;
    }
    #contact a span {
        left: 90%;
        display: none;
    }
    #toTop {
        position: fixed;
        bottom: 22vw;
        right: 2.5%;
        text-align: center;
        font-size: 85%;
        width: 15%;
    }
    footer {
        padding: 1rem 0 7rem;
        margin: 0 auto;
    }

}





