@charset "utf-8";

/*
Theme Name: saka-d.com Template child
Theme URI: 
Author: saka-d.com テンプレート 子テーマ
Author URI: 
Description: saka-d.com テンプレート 子テーマ
Version: 0.1
Template: saka-d.com
*/



/*------------------------------------------------------------------------

◆目次

------------------------------------------------------------------------*/



/*------------------------------------------------------------------------
◆要素
------------------------------------------------------------------------*/
*{
	font-family: "Zen Kaku Gothic New", sans-serif;
}



/*------------------------------------------------------------------------
◆共通
------------------------------------------------------------------------*/
#main_wrap ul.catch li{
	padding-left: 16px;
	position: relative;
}

#main_wrap ul.catch li:before {
    font-family: "fontello";
    content: '\e828';
    font-size: 72%;
    width: auto;
    position: absolute;
	top: 0.4em;
    left: 0.4em;
}


/*------------------------------------------------------------------------
◆wordpress調整
------------------------------------------------------------------------*/
figure.wp-block-table thead th{
	background: #333;
	color: #fff;
}

.wp-block-file:not(.wp-element-button) {
    font-size: 1em;
}



/* テーブル
--------------------------------------------------------------------------*/
figure.wp-block-table{
	width: 100%;
	font-size: 90%;
	line-height: 160%;
	margin: 0 auto;
}

figure.wp-block-table thead {
    border-bottom: none;
}

figure.wp-block-table tfoot {
    border-top: 2px solid #333;
}

figure.wp-block-table th,
figure.wp-block-table td{
	border: 1px solid #E6E6E6;
	padding: 16px;
}

figure.wp-block-table thead th{
	background: #333;
	color: #fff;
	font-weight: bold;
}

figure.wp-block-table td{
	text-align: left;
	background: #FFFFFF;
}

figure.wp-block-table tbody th{
	text-align: left;
	background: #f4f4f4;
	color: #333333;
	font-weight: bold;
	width: 24%;
}

figure.wp-block-table td *{
	margin-bottom: 0em !important;
}

figure.wp-block-table td ul.catch{
	margin-bottom: 0em !important;
}

figure.wp-block-table td ul.catch li{
	margin-bottom: 0.4em !important;
}

figure.wp-block-table td ul.catch li:last-of-type{
	margin-bottom: 0em !important;
}

figure.wp-block-table td ul.catch br{
	display: none !important;
}

figure.wp-block-table td *:last-of-type{
	margin-bottom: 0 !important;
}

figure.wp-block-table tfoot td {
    background: #fff;
}





/*------------------------------------------------------------------------
◆カスタマイズの調整
------------------------------------------------------------------------*/


/*------------------------------------------------------------------------
◆ヘッダー
------------------------------------------------------------------------*/
#header_wrap h1{
}

#header_wrap h1 a{
	font-family: "Roboto", sans-serif;
	font-optical-sizing: auto;
    font-size: 120%;
    font-weight: bold;
}

#header_wrap div#h_contact{
    display: inline;
    position: relative;
    top: 30px;
    left: 32px;
}

#header_wrap div#h_contact a{
    display: inline-block;
    text-align: center;
    padding: 8px;
    width: 156px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 88%;
}

#header_wrap div#h_contact a:hover{
	opacity: 0.8;
}

body #header_right.nav {
    top: 32px;
    width: auto;
}

#header_right div#h_logo {
    width: 256px;
}



/*------------------------------------------------------------------------
◆メインイメージ
------------------------------------------------------------------------*/
.keyvisual_wrap.text, .keyvisual_wrap.back {
    max-height: 100vh;
}

body .keyvisual_wrap.text .maincopy{
	font-family: "Roboto", sans-serif;
	font-optical-sizing: auto;
    font-size: 332%;
    font-size: 5.3rem;
    font-weight: bold;
    letter-spacing: 0.4px;
}

body .keyvisual_wrap.text .subcopy {
    font-weight: 500;
    font-size: 92%;
    letter-spacing: 0.2px;
	position: relative;
}

body .keyvisual_wrap.text .subcopy span{
	position: relative;
	color: #fff;
}

body .keyvisual_wrap.text .subcopy span::after{
	content: "";
    height: 1px;
    width: 4em;
    background-color: #fff;
    position: absolute;
    bottom: 0;
    right: 0;
}

body .keyvisual_wrap.text .button {
    margin-top: 32px;
}

body .keyvisual_wrap.text .button a {
	background: rgb(255 255 255 / 20%);
	color: #ffffff;
	padding: 12px;
	width: 338px;
	max-width: 100%;
	border-radius: 0;
	margin-top: 0;
	box-shadow: none;
	letter-spacing: -0.8px;
	font-size: 76%;
	position: relative;
	overflow: hidden; /* 必須：線をはみ出させたくないとき */
}

body .keyvisual_wrap.text .button a::before {
	content: "";
	height: 1px;
	width: 84px;
	background-color: #fff;
	position: absolute;
	top: 50%;
	left: 0;
	/*transform: translateY(-50%);*/
	transition: left 0.4s ease; /* アニメーション追加 */
}

body .keyvisual_wrap.text .button a:hover::before {
	left: calc(84px * 2 * -1); /* ボタンの左端を超えてスライドアウト */
}



/*------------------------------------------------------------------------
◆ホーム
------------------------------------------------------------------------*/
body.home #contents_wrap {
    padding: 0;
}

.home #main_wrap h2 {
    margin: 0 0 40px;
    padding-bottom: 12px;
    text-align: inherit;
	font-family: "IBM Plex Sans JP", sans-serif;
	font-weight: bold;
    font-size: 38px;
	position: relative;
}

.home #main_wrap h2::after{
	content: "";
	display: block;
    height: 1px;
    width: 100px;
	border-bottom: none;
    background-color: #000;
    position: absolute;
    bottom: 0;
    left: 0;
}

body.home #contents_wrap section > *,
body.home #contents_container.sidebar_on #contents_wrap {
    max-width: 100%;
}

body.home #contents_wrap section .wp-block-columns:where(.wp-block-columns.is-layout-flex) {
    gap: 0;
}

body.home #contents_wrap section .wp-block-columns > *{
	flex: 1;
	font-size: 128%;
    font-weight: 500;
    letter-spacing: -0.8px;
    line-height: 1.6;
}

body.home #contents_wrap section .wp-block-columns ul li{
	padding-left: calc(1em + 8px);
    margin-top: 0.6em;
    position: relative;
}

body.home #contents_wrap section .wp-block-columns ul li:nth-child(1){
    margin-top: 0;
}

body.home #contents_wrap section .wp-block-columns ul li::before{
	content: "";
	display: block;
    height: 1px;
    width: 1em;
    background-color: #000;
    position: absolute;
    top: calc(0.84em);
    left: 0;
}

@media (min-width: 782px) {
    .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
        flex-basis: auto;
        flex-grow: inherit;
    }
}



.home #main_wrap section#section01,
.home #main_wrap section#section02,
.home #main_wrap section#section03{
    padding: 0;
    margin: 80px 0;
}

body.home #contents_wrap section#section01 .wp-block-columns > *:nth-child(1),
body.home #contents_wrap section#section03 .wp-block-columns > *:nth-child(1){
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.home #contents_wrap section#section01 .wp-block-columns > *:nth-child(1) > *,
body.home #contents_wrap section#section03 .wp-block-columns > *:nth-child(1) > *{
	width: calc(50% - ((100% - 1200px) / 2));
    margin-left: auto;
    padding-right: 24px;
}

body.home #contents_wrap section#section02{
	background: #fff;
}

body.home #contents_wrap section#section02 .wp-block-columns > *:nth-child(2){
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.home #contents_wrap section#section02 .wp-block-columns > *:nth-child(2) > *{
	width: calc(50% - ((100% - 1200px) / 2));
    margin-right: auto;
	margin-left: 80px;
}




.home #main_wrap section#section04{
	background: url(https://shadow-brain.com/wp-content/uploads/2025/07/pic04.jpg) no-repeat 50% 50%;
    background-size: cover;
    padding: 120px 0;
}

.home #main_wrap section#section04 .wp-block-columns{
	margin: 0 auto;
	padding: 64px;
	width: 100%;
	max-width: 800px;
	background-color: #fff;
}

.home #main_wrap section#section04 .wp-block-columns *{
	letter-spacing: 0;
}

.home #main_wrap section#section04 .wp-block-columns h2{
    margin: 0 0 16px;
	text-align: center;
}

.home #main_wrap section#section04 .wp-block-columns h2::after{
	display: none;
}

.home #main_wrap section#section04 figure.wp-block-table table{
    font-size: 100%;
}

.home #main_wrap section#section04 figure.wp-block-table table:not(table thead) tr > td:first-of-type {
    width: 24%;
    background: #000;
    color: #fff;
    text-align: center;
}

.home #main_wrap section#section04 figure.wp-block-table th,
.home #main_wrap section#section04 figure.wp-block-table td {
    border: 2px solid #fff;
    padding: 16px;
}

.home #main_wrap section#section04 figure.wp-block-table td {
    text-align: left;
    background: #f4f4f4;
}

.home #main_wrap section#section04 p{
    margin: 32px 0 0;
    letter-spacing: -0.8px !important;
    line-height: 1.6;
}



.home #main_wrap section#section05{
	background: none;
    margin: 80px 0;
    padding: 8px 0;
	min-height: 700px;
	position: relative;
    display: flex;
    align-items: center;
}

.home #main_wrap section#section05 > *{

}

.home #main_wrap section#section05::before{
	content: "";
	background: url(https://shadow-brain.com/wp-content/uploads/2025/07/pic05.jpg) no-repeat right 80%;
    background-size: cover;
    width: calc(100% - 12%);
    height: 100%;
	position: absolute;
	top: 0;
	right: auto;
	left: 0;
}

.home #main_wrap section#section05 *{
	color: #fff !important;
}

.home #main_wrap section#section05 .wp-block-columns{
	margin: 0 auto;
	padding: 64px;
	width: 100%;
	max-width: 800px;
    text-align: center;
}

.home #main_wrap section#section05 .wp-block-columns h2{
    margin: 0 0 32px;
	text-align: center;
}

.home #main_wrap section#section05 .wp-block-columns h2::after{
	display: none;
}

body.home #contents_wrap section#section05 .wp-block-columns ul{
    display: inline-block;
    width: auto;
    margin-bottom: 0;
}

body.home #contents_wrap section#section05 .wp-block-columns ul li{
    text-align: left;
}

body.home #contents_wrap section#section05 .wp-block-columns ul li::before {
    background-color: #fff;
}




.home #main_wrap section#section06{
	background: url(https://shadow-brain.com/wp-content/uploads/2025/07/pic06.jpg) no-repeat 14% center;
    background-size: cover;
    padding: 80px 0;
	min-height: 700px;
	position: relative;
}

.home #main_wrap section#section06 > *{
    display: flex;
    align-items: center;
}

.home #main_wrap section#section06 *{
	color: #fff !important;
}

.home #main_wrap section#section06 .wp-block-columns{
	margin: 0 auto;
	padding: 64px;
	width: 100%;
	max-width: 800px;
    text-align: center;
}

.home #main_wrap section#section06 .wp-block-columns h2{
    margin: 0 0 32px;
	text-align: center;
}

.home #main_wrap section#section06 .wp-block-columns h2::after{
	display: none;
}

body.home #contents_wrap section#section06 .wp-block-columns p{
    line-height: 1.8;
}



.home #main_wrap section#section07{
	background: none;
    margin: 80px 0;
    padding: 40px 0;
	min-height: 700px;
	position: relative;
}

.home #main_wrap section#section07 > *{
    display: flex;
    align-items: center;
}

.home #main_wrap section#section07::before{
	content: "";
    background: url(https://shadow-brain.com/wp-content/uploads/2025/07/pic07.jpg) no-repeat 16% bottom;
    background-size: cover;
    width: calc(100% - 12%);
    height: 100%;
	position: absolute;
	top: 0;
	right: 0;
	left: auto;
}

.home #main_wrap section#section07 *{
	color: #fff !important;
}

.home #main_wrap section#section07 > *{
    position: relative;
}

.home #main_wrap section#section07 .wp-block-columns{
	margin: 0 auto;
	padding: 64px 40px;
	width: 100%;
	max-width: 800px;
    text-align: center;
}

.home #main_wrap section#section07 .wp-block-columns h2{
    margin: 0 0 16px;
	text-align: center;
}

.home #main_wrap section#section07 .wp-block-columns h2::after{
	display: none;
}

.home #main_wrap section#section07 figure.wp-block-table table{
    font-size: 100%;
}

.home #main_wrap section#section07 figure.wp-block-table table:not(table thead) tr > td:first-of-type {
    width: 24%;
    background: none;
    color: #fff;
    text-align: left;
    vertical-align: baseline;
    font-weight: bold;
}

.home #main_wrap section#section07 figure.wp-block-table th, figure.wp-block-table td {
    border: none;
    padding: 16px;
}

.home #main_wrap section#section07 figure.wp-block-table td {
    text-align: left;
    background: none;
}

.home #main_wrap section#section07 figure.wp-block-table td ul li{
    margin-top: 0;
}

.home #main_wrap section#section07 figure.wp-block-table td ul li::before {
    background-color: #fff;
}

.home #main_wrap section#section07 dd.soshiki_service ul li br{
	display: none;
}

.home #main_wrap section#section07 p{
    margin: 32px 0 0;
    letter-spacing: -0.8px !important;
    line-height: 1.6;
    font-size: 92%;
}



.home #main_wrap section#contact_form{
	background: #f4f4f4;
}

.home #main_wrap section#contact_form > *{
	max-width: 800px;
	margin: 0 auto;
}

.home #main_wrap section#contact_form h2{
    margin: 0 0 16px;
	text-align: center;
}

.home #main_wrap section#contact_form h2::after{
	display: none;
}

.home #main_wrap section#contact_form ul li {
    font-weight: 500;
}

.home #main_wrap section#contact_form ul li{
	padding-left: calc(1em + 8px);
    margin-top: 0;
    position: relative;
}

.home #main_wrap section#contact_form ul li::before{
	content: "";
	display: block;
    height: 1px;
    width: 1em;
    background-color: #000;
    position: absolute;
    top: calc(0.9em);
    left: 0;
}

.home #main_wrap section#contact_form ul li strong{
	color: #cb2128;
    font-size: 92%;
}

.home #main_wrap section#contact_form ul li a{
	color: #333;
}

/*------------------------------------------------------------------------
◆メールフォーム
------------------------------------------------------------------------*/
#main_wrap form table {
    width: 100%;
    font-size: 100%;
}

#main_wrap form.wpcf7-form .require {
    font-weight: normal;
    font-size: 80%;
    line-height: 160%;
    color: #C82128;
    font-weight: bold;
    background: none;
    padding: 0px 4px;
    margin: 2px 8px 2px 0;
    position: relative;
    top: -1px;
}

#main_wrap form.wpcf7-form table th, #main_wrap form.wpcf7-form table td {
    padding: 12px 0px;
}

#main_wrap input[type="text"], #main_wrap input[type="email"], #main_wrap input[type="tel"], #main_wrap textarea, #main_wrap select {
    padding: 8px;
	border: none;
}

#main_wrap form table td textarea {
    height: 12em;
}

#main_wrap input[type="submit"] {
    background-color: #000 !important;
    padding: 16px;
    min-width: 256px;
    font-size: 100%;
    border-radius: 56px;
}

#main_wrap .wpcf7-acceptance .wpcf7-list-item label {
    display: inline-block;
    border: none;
    background: #fff;
    padding: 8px 16px;
    margin: 12px 0 4px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 500;
}


/*------------------------------------------------------------------------
◆代表者略歴
------------------------------------------------------------------------*/
#open_dialog {
	cursor: pointer;
}

dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  border-radius: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	padding: 40px;
	width: 640px;
  max-width: 90%;
  background-color: #fff;
}

dialog h2{
	margin-bottom: 24px;
    font-size: 120%;
}

dialog div > p{
	margin-top: 1.618em;
}

dialog div > p:first-child{
	margin-top: 0px;
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.8);
}

.dialog_content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dialog_content li{
    padding-left: 1.4em;
    text-indent: -1.4em;
}

.dialog_content a {
  text-decoration: underline;
  font-weight: 500;
}

.dialog_content a:hover {
  text-decoration: none;
}

.dialog_close {
    position: absolute;
    top: 16px;
    right: 20px;
    border: none;
    outline: none;
    background: none;
    font-size: 28px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.dialog_close:hover {
  opacity: 0.8;
}


/*------------------------------------------------------------------------
◆フッター
------------------------------------------------------------------------*/
#footer_middle_info {
    float: none;
    text-align: center;
    color: #fff;
    margin: 24px 0;
}

div#f_logo {
    width: 276px;
    text-align: center;
    margin: 40px auto 56px;
}

#footer_wrap_middle {
    font-size: 80%;
}

#footer_middle_info .footer_text a{
	text-decoration: none;
}

#footer_middle_info .footer_text a:hover{
	text-decoration: underline;
}

#footer_middle_menu {
    display: none;
}

#footer_container_bottom {
    padding-bottom: 40px !important;
    font-size: 84%;
}

#footer_container_bottom #footer_wrap_copyright {
    text-align: center;
    color: #fff;
    box-sizing: border-box;
    font-weight: 500;
    font-size: 100%;
}

/*------------------------------------------------------------------------
◆スマホ改行
------------------------------------------------------------------------*/
.br-sp {
  display: none;
}

@media screen and (min-width: 390px) and (max-width: 430px) {
  .br-sp {
    display: block;
  }
}


/*------------------------------------------------------------------------
◆レスポンシブ
------------------------------------------------------------------------*/
@media screen and (min-width: 1281px) and (max-width: 1440px){

    body #keyvisual_container .keyvisual_wrap.text .maincopy {
        font-size: 4.8rem;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1296px) {

    body.home #contents_container.sidebar_off #contents_wrap section#contact_form > * {
        padding-right: 0;
        padding-left: 0;
        max-width: 800px;
    }

	body.home #contents_container.sidebar_off #contents_wrap section#section01 > *,
	body.home #contents_container.sidebar_off #contents_wrap section#section03 > *{
        padding-right: 0;
        padding-left: 4%;
	}

	body.home #contents_container.sidebar_off #contents_wrap section#section02 > *{
        padding-right: 4%;
        padding-left: 0;
	}

}

@media screen and (min-width: 961px) and (max-width: 1280px){

	body #header_wrap h1 {
	    margin: 24px 0;
	}

	#header_wrap div#h_contact {
	    top: 22px;
	}

	body #header_right.nav {
	    top: 24px;
	}

	/* メインイメージ
	------------------------------------------------------ */
    body #keyvisual_container .keyvisual_wrap.text .maincopy {
        font-size: 4.5rem;
    }

    #keyvisual_container .keyvisual_wrap.text .subcopy {
        font-size: 20px;
    }

	body .keyvisual_wrap.text .button {
	    margin-top: 24px;
	}

	body .keyvisual_wrap.text .button a {
	    font-size: 18px;
	}

	body .keyvisual_wrap.text .button a::before {
	    width: 72px;
	}

	/* ホーム
	------------------------------------------------------ */
	body.home #main_wrap {
	    font-size: 92%;
	}

	body.home #contents_wrap h2 {
        margin: 0 0 40px;
    	font-size: 32px;
    }

	body.home #contents_wrap section#section01 .wp-block-columns figure.wp-block-image img,
	body.home #contents_wrap section#section02 .wp-block-columns figure.wp-block-image img,
	body.home #contents_wrap section#section03 .wp-block-columns figure.wp-block-image img{
	    min-height: 480px;
	    object-fit: cover;
	}

	body.home #contents_wrap section#section01 .wp-block-columns ul li br,
	body.home #contents_wrap section#section02 .wp-block-columns ul li br,
	body.home #contents_wrap section#section03 .wp-block-columns ul li br{
		display: none;
	}

	body.home #contents_wrap section#section01 .wp-block-columns > *:nth-child(1) > *, body.home #contents_wrap section#section03 .wp-block-columns > *:nth-child(1) > * {
	    width: auto;
	    margin-left: 0;
	    padding-right: 24px;
	}

	body.home #contents_wrap section#section02 .wp-block-columns > *:nth-child(2) > * {
	    width: auto;
	    margin-left: 40px;
	}

	.home #main_wrap section#section05::before {
	    width: calc(100% - 8%);
	}

	.home #main_wrap section#section07::before {
	    width: calc(100% - 8%);
	}

	.home #main_wrap section#section07 dd.soshiki_service ul li br{
		display: block;
	}
}

@media screen and (max-width: 1023px) {
    body #gnav-switch {
        display: none;
	}
}

@media screen and (min-width: 864px) and (max-width: 1023px) {
    body.home #main_wrap > section#contact_form > * {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media screen and (min-width: 521px) and (max-width: 960px){

	/* ヘッダー
	------------------------------------------------------ */
	#header_wrap div#h_contact {
	    top: 22px;
	    left: 24px;
	}

	body #header_right.nav {
	    top: 24px;
	}

	/* メインイメージ
	------------------------------------------------------ */
    body #keyvisual_container .tb .keyvisual_wrap.text .maincopy {
        font-size: 60px;
    }

	body .keyvisual_wrap.text .button {
	    margin-top: 24px;
	}

	body .keyvisual_wrap.text .button a {
	    font-size: 14px;
	}

	body .keyvisual_wrap.text .button a::before {
	    width: 72px;
	}

	/* ホーム
	------------------------------------------------------ */
	.home #main_wrap {
	}

	.home #contents_wrap h2 {
        margin: 0 auto 24px !important;
        padding-bottom: 8px !important;
    }

	.home #main_wrap h2::after {
	    width: 64px;
	}

	body.home #contents_wrap section .wp-block-columns > * {
	}

	.home #main_wrap section#section01, .home #main_wrap section#section02, .home #main_wrap section#section03 {
	    margin: 40px 0;
	}

	body.home #contents_wrap section#section01 .wp-block-columns ul li br,
	body.home #contents_wrap section#section02 .wp-block-columns ul li br,
	body.home #contents_wrap section#section03 .wp-block-columns ul li br{
		display: none;
	}

	body.home #contents_wrap section .wp-block-columns:where(.wp-block-columns.is-layout-flex) {
	    gap: 40px;
	}

	body.home #contents_wrap section#section01 .wp-block-columns:where(.wp-block-columns.is-layout-flex),
	body.home #contents_wrap section#section03 .wp-block-columns:where(.wp-block-columns.is-layout-flex) {
	    flex-direction: column-reverse;
	}

	body.home #contents_wrap section#section02 .wp-block-columns:where(.wp-block-columns.is-layout-flex) {
	    flex-direction: column;
	}

	body.home #contents_wrap section#section01 .wp-block-columns > *:nth-child(1) > *, body.home #contents_wrap section#section03 .wp-block-columns > *:nth-child(1) > * {
	    width: 100%;
	    margin-left: auto;
	    padding-right: 0;
	}

	body.home #contents_wrap section#section02 .wp-block-columns > *:nth-child(2) > * {
	    width: 100%;
	    margin-right: auto;
	    margin-left: 0;
	}

	.home #main_wrap section#section04 {
	    padding: 40px 0;
	}

	.home #main_wrap section#section04 .wp-block-columns {
	    padding: 24px;
	}

	.home #main_wrap section#section04 .wp-block-columns h2 {
	    margin: 0 0 8px !important;
	}

	.home #main_wrap section#section04 p {
	    margin: 24px 0 0;
	}

	.home #main_wrap section#section05 {
	    margin: 40px 0;
    	min-height: 700px;
	}

	.home #main_wrap section#section05::before {
	    width: calc(100% - 4%);
	}

	.home #main_wrap section#section05 .wp-block-columns {
	    padding: 24px;
	}

	.home #main_wrap section#section06 {
        display: flex;
	    padding: 40px 0;
	    min-height: 700px;
	}

	.home #main_wrap section#section06 .wp-block-columns {
	    margin: 0 auto;
	    padding: 24px 4%;
	}

	.home #main_wrap section#section07 {
	    margin: 40px 0;
	    padding: 40px 0;
	    min-height: 700px;
	}

	.home #main_wrap section#section07::before {
	    width: calc(100% - 4%);
	}

	.home #main_wrap section#section07 .wp-block-columns {
	    padding: 24px 0 24px 4%;
	}

	.home #main_wrap section#section07 figure.wp-block-table th,
	.home #main_wrap section#section07 figure.wp-block-table td {
	    display: block;
    	width: 100%;
        padding: 8px 16px 16px;
	}

	.home #main_wrap section#section07 figure.wp-block-table table:not(table thead) tr > td:first-of-type {
    	width: 100%;
	    padding: 16px 16px 0;
	}

	div#f_logo {
	    width: 240px;
	    margin: 40px auto;
	}

	/* メールフォーム
	------------------------------------------------------ */
	.wpcf7-form-control-wrap {
	    z-index: 0;
	}

}

@media screen and (min-width: 521px) and (max-width: 768px){

	/* ヘッダー
	------------------------------------------------------ */
	#header_wrap h1 a{
	    font-size: 24px;
	}

	#header_right div#h_logo {
    	display: none;
	}

	#header_wrap div#h_contact {
	    position: absolute;
	    top: 22px;
		right: 4%;
	    left: auto;
	}

	#header_wrap div#h_contact a {
	    width: 136px;
	    font-size: 13px;
	}

	/* ホーム
	------------------------------------------------------ */
	.home #main_wrap {
	    font-size: 100%;
	}

	.home #contents_wrap h2 {
        margin: 0 auto 24px !important;
        padding-bottom: 8px !important;
    }

	.home #main_wrap h2::after {
	    width: 64px;
	}

	body.home #contents_wrap section .wp-block-columns > * {
	    font-size: 100%;
	}

	.home #main_wrap section#section01, .home #main_wrap section#section02, .home #main_wrap section#section03 {
	    margin: 40px 0;
	}

	body.home #contents_wrap section#section01 .wp-block-columns ul li br,
	body.home #contents_wrap section#section02 .wp-block-columns ul li br,
	body.home #contents_wrap section#section03 .wp-block-columns ul li br{
		display: none;
	}

	body.home #contents_wrap section .wp-block-columns:where(.wp-block-columns.is-layout-flex) {
	    gap: 24px;
	}

	body.home #contents_wrap section#section01 .wp-block-columns:where(.wp-block-columns.is-layout-flex),
	body.home #contents_wrap section#section03 .wp-block-columns:where(.wp-block-columns.is-layout-flex) {
	    flex-direction: column-reverse;
	}

	body.home #contents_wrap section#section01 .wp-block-columns > *:nth-child(1) > *, body.home #contents_wrap section#section03 .wp-block-columns > *:nth-child(1) > * {
	    width: 100%;
	    margin-left: auto;
	    padding-right: 0;
	}

	body.home #contents_wrap section#section02 .wp-block-columns > *:nth-child(2) > * {
	    width: 100%;
	    margin-right: auto;
	    margin-left: 0;
	}

	.home #main_wrap section#section04 {
	    padding: 40px 0;
	}

	.home #main_wrap section#section04 .wp-block-columns {
	    padding: 24px;
	}

	.home #main_wrap section#section04 .wp-block-columns h2 {
	    margin: 0 0 8px !important;
	}

	.home #main_wrap section#section04 p {
	    margin: 24px 0 0;
	}

	.home #main_wrap section#section05 {
	    margin: 40px 0;
    	min-height: 400px;
	}

	.home #main_wrap section#section05::before {
	    width: calc(100% - 4%);
	}

	.home #main_wrap section#section05 .wp-block-columns {
	    padding: 24px;
	}

	.home #main_wrap section#section06 {
	    padding: 40px 0;
	    min-height: 400px;
	}

	.home #main_wrap section#section06 .wp-block-columns {
	    margin: 0 auto;
	    padding: 24px 4%;
	}

	.home #main_wrap section#section07 {
	    margin: 40px 0;
	    padding: 40px 0;
	    min-height: 400px;
	}

	.home #main_wrap section#section07::before {
	    width: calc(100% - 4%);
	}

	.home #main_wrap section#section07 .wp-block-columns {
	    padding: 24px 0 24px 4%;
	}

	.home #main_wrap section#section07 figure.wp-block-table th,
	.home #main_wrap section#section07 figure.wp-block-table td {
	    display: block;
    	width: 100%;
        padding: 8px 16px 16px;
	}

	.home #main_wrap section#section07 figure.wp-block-table table:not(table thead) tr > td:first-of-type {
    	width: 100%;
	    padding: 16px 16px 0;
	}

	div#f_logo {
	    width: 240px;
	    margin: 40px auto;
	}

	/* メールフォーム
	------------------------------------------------------ */
	#main_wrap form table{
	    margin-top: 0;
	}

	#main_wrap form table tbody{
		border-top: 0;
	}

	#main_wrap form.wpcf7-form table tr{
		display: block;
	}

	#main_wrap form.wpcf7-form table tbody{
		border-top: none;
	}

	#main_wrap form.wpcf7-form table th,
	#main_wrap form.wpcf7-form table td{
		display: block;
		border-bottom: 0;
		padding: 2px 0;
	}

	#main_wrap form.wpcf7-form table th{
		padding: 16px 0 4px;
		width: 100%;
	}

	#main_wrap form table td label {
		margin-bottom: 0.5em !important;
	}

	#main_wrap form textarea{
		height: 8em;
	}

	#main_wrap form .long,
	#main_wrap form .middle,
	#main_wrap form .short{
		width: 100%;
		min-height: 0;
		box-sizing: border-box;
	}

	#main_wrap form table td label input[type="checkbox"] {
		position: relative;
		top: 2px;
	}

	#main_wrap form input[type="submit"] {
		font-size: 100% !important;
	}

	#sub_wrap form input[type="submit"]{
		font-size: 100% !important;
		margin-top: 0.5em;
	}

}


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

	/* ヘッダー
	------------------------------------------------------ */
	#header_wrap h1 a{
	    font-size: 16px;
	}

	#header_right div#h_logo {
    	display: none;
	}

	#header_wrap div#h_contact {
	    position: absolute;
	    top: 10px;
		right: 4%;
	    left: auto;
	}

	#header_wrap div#h_contact a {
	    width: 120px;
	    font-size: 12px;
	}

	/* メインイメージ
	------------------------------------------------------ */
	body .keyvisual_wrap.text .button {
	    margin-top: 16px;
	}

	body .keyvisual_wrap.text .button a {
	    font-size: 14px;
	}

	body .keyvisual_wrap.text .button a::before {
	    width: 72px;
	}

	/* ホーム
	------------------------------------------------------ */
	.home #main_wrap {
	    font-size: 92%;
	}

	.home #contents_wrap h2 {
        margin: 0 auto 24px !important;
        padding-bottom: 8px !important;
    }

	.home #main_wrap h2::after {
	    width: 64px;
	}

	body.home #contents_wrap section .wp-block-columns > * {
	    font-size: 100%;
	}

	.home #main_wrap section#section01, .home #main_wrap section#section02, .home #main_wrap section#section03 {
	    margin: 40px 0;
	}

	body.home #contents_wrap section#section01 .wp-block-columns ul li br,
	body.home #contents_wrap section#section02 .wp-block-columns ul li br,
	body.home #contents_wrap section#section03 .wp-block-columns ul li br{
		display: none;
	}

	body.home #contents_wrap section .wp-block-columns:where(.wp-block-columns.is-layout-flex) {
	    gap: 24px;
	}

	body.home #contents_wrap section#section01 .wp-block-columns:where(.wp-block-columns.is-layout-flex),
	body.home #contents_wrap section#section03 .wp-block-columns:where(.wp-block-columns.is-layout-flex) {
	    flex-direction: column-reverse;
	}

	body.home #contents_wrap section#section01 .wp-block-columns > *:nth-child(1) > *, body.home #contents_wrap section#section03 .wp-block-columns > *:nth-child(1) > * {
	    width: 100%;
	    margin-left: auto;
	    padding-right: 0;
	}

	body.home #contents_wrap section#section01 .wp-block-columns > *:nth-child(1) > p br{
		display: none;
	}

	body.home #contents_wrap section#section02 .wp-block-columns > *:nth-child(2) > * {
	    width: 100%;
	    margin-right: auto;
	    margin-left: 0;
	}

	.home #main_wrap section#section04 {
	    padding: 40px 0;
	}

	.home #main_wrap section#section04 .wp-block-columns {
	    padding: 24px;
	}

	.home #main_wrap section#section04 .wp-block-columns h2 {
	    margin: 0 0 8px !important;
	}

	.home #main_wrap section#section04 p {
	    margin: 24px 0 0;
	}

	.home #main_wrap section#section05 {
	    margin: 40px 0;
    	min-height: 400px;
	}

	.home #main_wrap section#section05::before {
	    width: calc(100% - 4%);
	}

	.home #main_wrap section#section05 .wp-block-columns {
	    padding: 24px;
	}

	.home #main_wrap section#section06 {
	    padding: 40px 0;
	    min-height: 400px;
	}

	.home #main_wrap section#section06 .wp-block-columns {
	    margin: 0 auto;
	    padding: 24px 4%;
	}

	.home #main_wrap section#section07 {
	    margin: 40px 0;
	    padding: 40px 0;
	    min-height: 400px;
	}

	.home #main_wrap section#section07::before {
	    width: calc(100% - 4%);
	}

	.home #main_wrap section#section07 .wp-block-columns {
	    padding: 24px 0 24px 4%;
	}

	.home #main_wrap section#section07 figure.wp-block-table th,
	.home #main_wrap section#section07 figure.wp-block-table td {
	    display: block;
    	width: 100%;
        padding: 8px 16px 16px;
	}

	.home #main_wrap section#section07 figure.wp-block-table table:not(table thead) tr > td:first-of-type {
    	width: 100%;
	    padding: 16px 16px 0;
	}

	div#f_logo {
	    width: 240px;
	    margin: 40px auto;
	}

	/* メールフォーム
	------------------------------------------------------ */
	.wpcf7-form-control-wrap {
	    z-index: 0;
	}

}


