@media screen and (max-width: 767px) {

/* スマホで電話を自動生成されたものを上書き */
a[href^="tel"] {
    color: #000;
    text-decoration: none !important;
    font-weight: 600 !important;
}

body {
    font-size: 14px;
    line-height: 1.5em;
    letter-spacing: 0.05em;

}
h2 {
    margin: 0 0 20px;
    font-size: 18px;
    line-height: 1.5em;
}
h3 {
    font-size: 16px;
}

.wrapper0 {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}
.wrapper {
    width: calc(100% - 20px);
    overflow: hidden;
    margin: 60px auto;
}
.wrapper100 {
    width: calc(100% - 20px);
    overflow: hidden;
    margin: 40px auto;
    padding: 0 20px;
}
header .logo_header {
    width: 200px;
    height: 50px;
    margin: 20px 20px 0;
    float: left;
}
header .contact {
    position: fixed;
    z-index: 100;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    float: right;
    background: #f9c26b;
}
header .contact a {
    color: #fff;
    font-size: 18px;
    text-align: center;
}
header .phone {
    position: fixed;
    z-index: 100;
    bottom: 0;
    width: 50%;
    height: 50px;
    margin: 0;
    font-size: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    float: right;
    background: var(--main-color);
}
header .phone a {
    position: relative;
    margin: 2px 7px 0 15px;
    margin-left: 15px;
    letter-spacing: 0.1em;
    color: #fff;
}
header .phone a:before {
    position: absolute;
    top: 3px;
    left: -15px;
    content: "";
    width: 10px;
    height: 15px;
    background: url(../images/icon_tel_fix.svg);
    background-size: contain;
}

header #g-nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: fixed;
    top:   60px;
    right: 0;
    width: 100%;
    height: calc(100vh - 110px);
    background: #fff;
    transform: translateX(100%);
    transition: transform .5s ease;
    z-index: 999;
}
header #g-nav ul {
    display: block;
}
#g-nav.panelactive{
    transform: translateX(0);
}
header #g-nav ul {
	position: static !important;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
header #g-nav li a{
    display: block;
    width: 100%;
	padding: 30px 10px;
	display: block;
	font-size: 21px;
    font-weight: 600;
	line-height: 1rem;
	letter-spacing: 0.1em;
    text-align: center;
}
header #g-nav ul:not(.sns) li {
    border-bottom: 1px solid #000;
}
header #g-nav ul:not(.sns) li a {
    display: block;
    padding: 30px 10px;
    text-align: center;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: .1em;
}
header #g-nav ul.sns {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
header #g-nav ul.sns li {
    margin: 0;
}
header #g-nav ul.sns li a {
    padding: 20px 0;
}
header #g-nav ul.sns li img {
    width: 30px;
    height: 30px;
}
/*========= ボタンのためのCSS ===============*/
.openbtn1{
	position:fixed;
    z-index: 999;
	top: 20px;
	right: 20px;
	cursor: pointer;
    width: 30px;
    height: 30px;
}
.openbtn1 span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 0;
    height: 2px;
    border-radius: 2px;
	background-color: var(--main-color);
    width: 30px;
}
.openbtn1 span:nth-of-type(1) {	top:0px; }
.openbtn1 span:nth-of-type(2) {	top:10px;}
.openbtn1 span:nth-of-type(3) {	top:20px;}
.openbtn1.active {
	background: #fff;
}
.openbtn1.active span:nth-of-type(1) {
    top: 5px;
    left: 0px;
    transform: translateY(6px) rotate(-45deg);
    width: 30px;
	background-color: var(--main-color);
}
.openbtn1.active span:nth-of-type(2) {
	opacity: 0;
}
.openbtn1.active span:nth-of-type(3){
    top: 17px;
    left: 0px;
    transform: translateY(-6px) rotate(45deg);
    width: 30px;
	background-color: var(--main-color);
}

.fv {
    width: 100%;
    height: 600px;
}
.fv img {
    width: 100%;
    height: 600px;
}
.fv .hero {
    position: absolute;
    bottom: 80px;
    left: 30px;
    font-size: 24px;
}

.textbox01 {
    width: 100%;
    float: left;
    font-size: 14px;
}
.imgbox01 {
    width: 100%;
    float: left;
    margin-bottom: 30px;
}
.imgbox01 img {
    width: 80%;
    float: left;
    margin: 0 10% 0;
}
.textbox02 {
    width: calc(100% - 50px);
    margin: 0 0 0 0;
    float: left;
    font-size: 14px;
}
.textbox02 .ttl {
    display: block;
    width: 30px;
    height: 400px;
    float: left;
}
.h2_tategaki {
    float: left;
    margin: 0 20px 0 0;
    padding: 5px 0 0;
}
.textbox02 p {
    float: left;
    padding: 0 0 0 20px;
    margin-bottom: 30px;
}
.imgbox02 {
    width: 80%;
    margin: 0 10%;
}
.textbox03 {
    width: 100%;
    margin-bottom: 30px;
    font-size: 14px;
}
.imgbox03 {
    width: 100%;
    float: left;
}
.imgbox03 img {
    width: 80%;
    float: left;
    margin: 0 10% 0 10%;
}

.h2_service {
    margin-bottom: 30px;
    font-size: 28px;
}
.h2_service span {
    display: block;
    margin-top: 3px;
    padding: 3px 10px;
    font-size: 14px;
    line-height: 1em;
}
.service {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(1 , 1fr);
    grid-auto-rows: (400px , auto);
    gap: 30px;
}
.service li {
    margin: 10px 0;
    padding: 10px 20px;
}
.service li h3 {
    margin: 0 0 15px;
    padding: 8px 15px;
}
.service li img {
    width: 95%;
    margin: 0 2.5% 10px;
}
.service li p {
    padding: 0 10px;
    font-weight: 600;
}

.insta_feed {
    width: 80%;
    margin: 10px auto 30px;
}
.table_basic {
    width: 100%;
    margin: 30px auto;
}
.table_basic tr {
    border-bottom: 1px solid #000;
}
.table_basic th {
    width: 100%;
    display: block;
    padding: 1em 15px 1em;
    font-size: 14px;
    font-weight: 600;
    text-align-last: left;
}
.table_basic td {
    width: 100%;
    display: block;
    padding: 0 15px 1em;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6em;
}
.table_basic td li {
    font-size: 14px;
    font-weight: 600;
}

.box_contact {
    margin: 40px auto 50px;
    padding: 30px 10px;
}
.box_contact h3 {
    font-size: 18px;
    margin-bottom: 30px;
}
.box_contact p {
    margin-bottom: 5px;
    font-size: 13px;
}
.box_contact .tel01, .box_contact .tel02 {
    position: relative;
    display: inline-block;
    padding-left: 10px;
    font-size: 21px;
}
.box_contact .tel01::before, .box_contact .tel02::before {
    position: absolute;
    top: 2px;
    left: -15px;
    content: "";
    width: 15px;
    height: 18px;
    background-image: url(../images/icon_tel.svg);
    background-size: contain;
    background-repeat: no-repeat;
}
.line {
    width: 90%;
    margin: 15px auto;
}

.form-wrapper {
    width: 90%;
    display: block;
    margin: 30px auto;
}
.form-wrapper .form-group {
    display: block;
    margin-bottom: 40px;
}

.form-wrapper .form-group label {
    display: block;
    margin: 10px 0 0;
    letter-spacing: 0.05em;
}

.required {
    display: inline-block;
    color: #fff;
    margin: -3px 0 0 10px;
    padding: 5px 10px;
    font-size: 11px;
    line-height: 1em;
    border-radius: 100vh;
    background-color: #be1e2d;
}

input.wpcf7-form-control.input-text,
textarea.wpcf7-form-control.input-text {
    width: 100%;
    padding: 7px 8px;
    border: 1px solid #000;
    border-radius: 5px;
    font-size: 1em;
}

.form-submit .wpcf7-submit {
    position: relative;
    width: 200px;
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1em;
    background: var(--main-color);
    border-radius: 100vh;
    cursor: pointer;
}

.form-submit .wpcf7-submit:hover {
    background-color: #000e6a;
}
footer {
    width: 100%;
    padding: 40px 0 100px;
    background: url(../images/bg_footer_sp.jpg) no-repeat;
    background-size: 100%;
    background-position: right bottom;
    border-top: 3px solid var(--main-color)
}
footer .logo {
    width: 70%;
    max-width: 250px;
    margin: 0 20px 30px;
}
.footer_info {
    width: calc(100% - 60px);
    margin: 0 30px;
}
.footer_info dt {
    margin: 0 0 5px;
}
.footer_info dd {
    margin: 0 0 5px;
}
footer .copy {
    margin: 80px 20px 0;
    padding: 0 0 15px;
    font-size: 14px;
}

.pagetop {
    position: fixed;
    right: 15px;
    bottom: 60px;
    width: 25px;
    height: 130px;
    background-image: url(../images/icon_pagetop.svg);
    background-size: 13px 100px;
    background-repeat: no-repeat;
    background-position: top right;
}
.pagetop a {
    display: block;
    padding: 20px 2px 10px;
    font-size: 12px;
}
}