@charset "utf-8";

/* ==============================
   Layout
============================== */
main {
    position: relative;
    padding: 12.5% 0 11.5%;
}
@media print, screen and (max-width: 768px) {
    main {
        padding: 37.3vw 0 34.9vw; /*140/375*/
    }

}

/* ==============================
   Background decoration
============================== */
.contact-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 63.8%;   /* 1225/1920 */
    aspect-ratio: 245 / 93;
    z-index: 0;
    pointer-events: none;
}

.contact-bg--bottom {
    top: auto;
    bottom: 0;
    right: 0;
    left: auto;
    width: 65.7%;   /* 1263/1920 */
    aspect-ratio: 421 / 138;
}
@media print, screen and (max-width: 768px) {
    .contact-bg {
        top: -9.3vw;
        width: 100%;
        aspect-ratio: 375 / 347;
    }

    .contact-bg--bottom {
        top: auto;
        bottom: 0;
        right: 0;
        left: auto;
        width: 100%;
        aspect-ratio: 375 / 263;
    }
}

/* ==============================
   Hero
============================== */
.contact-hero {
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: 5%;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    margin-bottom: 4.7%;
}

.contact-hero-subtitle {
    font-size: min(2.4rem, 1.25vw);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #8d8d8d;
    line-height: 1;
    margin-bottom: 0.6em;
}

.contact-hero-title {
    font-size: min(4.8rem, 2.5vw);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #000;
    line-height: 1;
}

.contact-hero .text {
    font-size: min(2.4rem, 1.25vw);
    font-weight: 400;
    letter-spacing: 0.15em;
    line-height: 1.6;
    margin-bottom: 2.2em;
}
.contact-hero .phone {
    font-size: min(4.8rem, 2.5vw);
    font-weight: 500;
    letter-spacing: 0.15em;
    line-height: 1;
    margin-bottom: 0.52em;
}
.contact-hero .time {
    font-size: min(2.0rem, 1.0vw);
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.6;
}
@media print, screen and (max-width: 768px) {
    .contact-hero {
        margin-top: 0;
    }

    .contact-hero-content {
        margin-bottom: 11.7vw;
    }

    .contact-hero-subtitle {
        font-size: 3.7vw;
        margin-bottom: 0.35em;
    }

    .contact-hero-title {
        font-size: 6.6vw;
    }

    .contact-hero .text {
        width: 90%;
        margin-right: auto;
        margin-left: auto;
        font-size:2.65vw;
    }
    .contact-hero .phone {
        font-size: 6.6vw;
    }
    .contact-hero .time {
        font-size:2.65vw;
    }

}

#contact-form {
    position: relative;
    z-index: 1;
    width: 78.125%;
    max-width: 1500px;
    margin: 0 auto;
    background-color: #ebebec;
    padding: 3.4% 0 6% 0;
}
#contact-form .contact-form-inner {
    text-align: center;
}

#contact-form h3.contact-subsection-title {
    text-align: center;
    font-size: min(4.8rem, 2.5vw);
    line-height: 1;
}

#contact-form .read {
    text-align: center;
    font-size: min(2.0rem, 1.0vw);
    line-height: 1.6;
    margin: 1.8em 0 2.25em;
}

#contact-form .box_form table {
	margin: 0 auto;
	width: 86.6%;
	background-color: #FFF;
}

#contact-form .box_form table th {
	text-align: left;
	width: 19.5%;
	box-sizing: border-box;
	padding: 0 0 0 2.3%;
	vertical-align: middle;
	font-size: min(1.6rem, 1.0vw);
	border-bottom: 4px solid #ebebec;
}

#contact-form .box_form table td {
	text-align: left;
	box-sizing: border-box;
	padding: 1.5% 1.5% 1.5% 0;
	vertical-align: middle;
	border-bottom: 4px solid #ebebec;
}

#contact-form .box_form table td.add1 {
	padding: 1.5% 1.5% 0.3% 0;
	border-bottom: none;
}

#contact-form .box_form table td.add2 {
	padding: 0.3% 1.5% 1.5% 0;
	border-bottom: 4px solid #ebebec;
}

#contact-form .box_form table td .must {
	text-align: center;
	background-color: #ce0012;
	color: #FFF;
	box-sizing: border-box;
	font-size: min(1.3rem, 0.75vw);
	font-weight: bold;
	width: 3.2em;
	height: 1.6em;
	line-height: 1.6;
}


#contact-form .box_form table th .must_sp {
	display: none;
}


#contact-form .box_form table td.attention {
	font-size: min(1.2rem, 0.75vw);
	color: #888281;
	width: 20.8em;
}

#contact-form .box_form table td.attention2 {
	font-size: min(1.2rem, 0.75vw);
	color: #888281;
	width: 20.8em;
	border-bottom: none;
}


#contact-form .box_form input[type="text"],
#contact-form .box_form input[type="email"],
#contact-form .box_form input[type="tel"]  {
	border: 1px solid #c1bebd;
    padding: 1em;
    width: 90%;
	font-size: min(1.6rem, 1.0vw);
}

#contact-form .box_form input[type="submit"] {
	width: 16.6em;
    height: 3.2em;
    line-height: 1;
    color: #FFF;
    background-color: #ce0012;
    margin: 2.7% auto 0;
    display: block;
    font-size: min(1.8rem, 1.0vw);
    font-weight: bold;
    border: none;
    text-align: center;
    padding: 0;
	border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
}

#contact-form .box_form .wpcf7-list-item {
	width: 300px;
    display: inline-block;
	font-size: min(1.6rem, 1.0vw);
	margin: 4px 0 4px 0;
}
/* チェックボックスとテキストのズレ修正 */
#contact-form .box_form .wpcf7-list-item label {
    display: inline-flex;
    align-items: center; /* 縦の中央で揃える */
    gap: 0.5em; /* チェックボックスとテキストの間の余白 */
    cursor: pointer;
}

#contact-form .box_form .wpcf7-list-item input[type="checkbox"] {
    margin: 0; /* ブラウザのデフォルトマージンをリセット */
}

#contact-form .box_form textarea {
	border: 1px solid #c1bebd;
	width: 100%;
	font-size: min(1.6rem, 1.0vw);
	padding: 1em;
	box-sizing: border-box;
}

#contact-form .box_form #w_15 {
	width: 15%;
}

#contact-form .box_form #w_30 {
	width: 30%;
}

#contact-form .box_form #w_50 {
	width: 50%;
}

#contact-form .box_form #w_70 {
	width: 70%;
}

#contact-form .box_form #w_180 {
	width: 180%;
}

#contact-form .box_form span.governments {
	display: block;
	float: left;
	width: 15%;
}

#contact-form .box_form span.add {
	display: block;
	float: left;
}

#contact-form .box_form td p {
	width: 100%;
	padding: 10px 0 0 0;
}

#contact-form .box_form .btn_submit {
	text-align: center;
	width: 100%;
}

#contact-form span.wpcf7-not-valid-tip {
	color: #f00;
    font-size: 1em;
    display: block;
    padding: 8px 0 0 0;
}

#contact-form .contact_privacy {
	overflow-x: hidden;
    overflow-y: scroll;
    margin: 0 auto 2.5%;
    padding: 2.9% 4.6% 2.9% 3.2%;
    width: 100%;
    height: 18.75em;
    border: 1px solid #ccc;
	box-sizing: border-box;
	text-align: left;
}
#contact-form .contact_privacy h2 {
	font-size: min(1.6rem, 1.0vw);
	font-weight: 600;
	margin: 0 0 2em 0;
	text-align: left;
	padding: 0 0 1em 0;
	border-bottom: 1px solid #ccc;
}
#contact-form .contact_privacy .read {
    font-size: min(2.0rem, 1.0vw);
	line-height: 1.6;
	margin: 0 0 2em 0;
	text-align: left;
}
#contact-form .contact_privacy .box_privacy {
    font-size: min(2.0rem, 1.0vw);
	line-height: 1.6;
	margin: 0 0 2em 0;
	text-align: left;
}
#contact-form .contact_privacy .box_privacy h3 {
	font-weight: 600;
	margin: 0 0 1em 0;
}
#contact-form .contact_privacy .box_privacy .txt {
	margin: 0 0 1em 0;
}
#contact-form .contact_privacy .box_privacy ol {
	margin: 0 0 1em 1em;
}
#contact-form .contact_privacy .box_privacy ol li {
    list-style-type:decimal
}
@media print, screen and (max-width: 768px) {
    #contact-form {
        width: 90%;
    }
    #contact-form .contact-form-inner {
        width: 90%;
        margin: 0 auto;
    }

    #contact-form h3.contact-subsection-title {
        text-align: center;
        font-size: min(4.8rem, 2.5vw);
        line-height: 1;
    }

    #contact-form .read {
        text-align: center;
        font-size: min(2.0rem, 1.0vw);
        line-height: 1.6;
        margin: 1.8em 0 2.25em;
    }

    #contact-form .box_form {
        padding: 0 5% 10%;
        background-color: #FFF;
        box-sizing: border-box;
    }
    #contact-form .box_form table {
        width: 100%;
    }

    #contact-form .box_form table th {
        display: block;
        font-size:3.2vw;
        border-bottom: none;
        padding: 2em 0 0;
        width: 100%;
    }

    #contact-form .box_form table td {
        display: block;
        font-size:3.2vw;
        border-bottom: none;
        padding: 0.2em 0 0;
        width: 100%;
    }

    #contact-form .box_form table td.add1 {
    }

    #contact-form .box_form table td.add2 {
        border-bottom: none;
    }

    #contact-form .box_form table td .must {
        display: none;
    }


    #contact-form .box_form table th .must_sp {
        display: inline-block;
        vertical-align: middle;
        text-align: center;
        background-color: #ce0012;
        color: #FFF;
        box-sizing: border-box;
        font-size: 2.65vw;
        font-weight: bold;
        width: 3.2em;
        height: 1.6em;
        line-height: 1.6;
        margin-left: 0.5em;
    }


    #contact-form .box_form table td.attention {
        font-size: 2.65vw;
        width: 100%;
        padding-top: 1em;
    }

    #contact-form .box_form table td.attention2 {
        font-size: 2.65vw;
        width: 100%;
    }


    #contact-form .box_form input[type="text"],
    #contact-form .box_form input[type="email"],
    #contact-form .box_form input[type="tel"]  {
        font-size: 2.1vw;
        width: 100%;
    }

    #contact-form .box_form input[type="submit"] {
        width: 100%;
        height: 3.2em;
        margin: 2em auto 0;
        display: block;
        font-size: 4vw;
        border-radius: 0;
    }

    #contact-form .box_form .wpcf7-list-item {
        width: 100%;
        font-size: 3.2vw;
        margin: 0.5em 0 0.5em 0;
    }

    #contact-form .box_form textarea {
        width: 100%;
        font-size: 3.2vw;
    }

    #contact-form .box_form #w_15 {
        width: 15%;
    }

    #contact-form .box_form #w_30 {
        width: 30%;
    }

    #contact-form .box_form #w_50 {
        width: 50%;
    }

    #contact-form .box_form #w_70 {
        width: 70%;
    }

    #contact-form .box_form #w_180 {
        width: 180%;
    }

    #contact-form .box_form span.governments {
        display: block;
        float: left;
        width: 15%;
    }

    #contact-form .box_form span.add {
        display: block;
        float: left;
    }

    #contact-form .box_form td p {
        width: 100%;
        padding: 10px 0 0 0;
    }

    #contact-form .box_form .btn_submit {
        text-align: center;
        width: 100%;
    }

    #contact-form span.wpcf7-not-valid-tip {
        color: #f00;
        font-size: 1em;
        display: block;
        padding: 8px 0 0 0;
    }

    #contact-form .contact_privacy {
        width: 100%;
        margin-bottom: 1em;
    }
    #contact-form .contact_privacy h2 {
        font-size: 3.2vw;
    }
    #contact-form .contact_privacy .read {
        font-size: 2.9vw;
    }
    #contact-form .contact_privacy .box_privacy {
        font-size: 2.9vw;
    }

}
