/* ========================================
   お問合せページ専用スタイル
   （共通のレイアウトは global.css を参照）
   ======================================== */

/* 連絡先ボックス */
#explain_tex .contactinfo {
	margin: 10px 0 0;
	padding: 5px;
	border: solid 1px #D3D3D3;
	max-width: 100%;
	overflow-x: auto;
}

#explain_tex .contactinfo table {
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 450px;
	text-align: left;
}

#explain_tex .contactinfo td {
	margin: 0;
	padding: 10px;
}

#explain_tex .contactinfo img {
	margin: 0;
	padding: 0;
	vertical-align: middle;
}

#explain_tex .contactinfo .tex {
	font-size: 90%;
}

/* メールフォーム */
#mailform {
	/* margin: 20px 0 0; */
	margin: 20px auto 0;
	padding: 0;
	max-width: 880px;
	clear: both;
}

#mailform .title {
margin: 0 0 10px;
    padding: 0 0 0 25px;
    /* background-image: url(../img/bar_title.gif); */
    /* background-repeat: no-repeat; */
    /* height: 24px; */
    font-size: 1.2rem;
    line-height: 45px;
    background-color: #dddddd;
	font-size: 1.2rem;
	font-weight: bold;
}


.setsumei {
	background: #ebe9e9;
		width: 100%;
	margin: 10px 0 0;
	padding: 1rem;
	list-style: none;
	border-radius: .6rem;
}

/* #mailform .setsumei {
	width: 100%;
	margin: 10px 0 0;
	list-style: none;
} */

#mailform .setsumei_s {
	font-size: 90%;
}

#mailform li {
	list-style: none;
	margin: 5px 0 0 13px;
	padding: 0 0 0 15px;
	background: url(../img/icn_ten.gif) no-repeat 0 0.3em;
}

/* 入力フォーム本体を可変幅にする */
#mailform form {
	width: 100%;
}

#mailform input[type="text"],
#mailform input[type="email"],
#mailform input[type="tel"],
#mailform input:not([type]),
#mailform textarea {
	width: 100%;
	max-width: 1200px;
	box-sizing: border-box;
	line-height: 3;
	    padding: .5rem;
}

#mailform input[type="submit"] {
	/* padding: 8px 20px; */
		padding: 14px 20px;
}

#mailform input[type="reset"] {
		padding: 8px 20px;
}




.submit-btn-area {
	display: flex;
	justify-content: center;
	flex-direction: column;
	    max-width: 350px;
    margin: 0 auto;
}

.submit-btn-area__submit,
.submit-btn-area__reset {
background-color: #c2344c;
color: #fff;
font-weight: bold;
    border-radius: 6px;
	    font-size: 1rem;
}

.submit-btn-area__reset {
background-color: #dddddd;
color: #333;
    margin: .3rem 0;
    border: none;
	    font-size: .8rem;
}



/* 旧テーブル形式のフォームを使う場合の予備スタイル */
#mailform table {
	border-top: 1px solid #CCCCCC;
	border-bottom: none;
	border-left: none;
	border-right: none;
	font-size: 100%;
	margin-top: 10px;
	width: 100%;
}

#mailform td {
	border-top: none;
	border-bottom: 1px solid #CCCCCC;
	border-left: none;
	border-right: none;
	padding: 10px;
}

#mailform th {
	border-top: none;
	border-bottom: 1px solid #CCCCCC;
	border-left: 6px solid #CCCCCC;
	border-right: none;
	background-color: #F3F3F3;
	font-weight: normal;
	padding: 10px;
	width: 200px;
}

#mailform th.must {
	border-left-color: #D90000;
}

#mailform th em {
	font-style: normal;
	color: #FF0000;
	padding-left: 5px;
}

.text1, .text2, .text3, .text4 {
	border: 1px solid #CCCCCC;
	background-color: #F3F3F3;
	padding: 2px;
	max-width: 100%;
	box-sizing: border-box;
}

.text1 { width: 100px; }
.text2 { width: 4em; }
.text3 { width: 80%; }
.text4 { width: 95%; }

#mailform select {
	border: 1px solid #CCCCCC;
	background-color: #F3F3F3;
	max-width: 100%;
}

#mailform .submit {
	text-align: center;
	margin-top: 30px;
}

/* エラー表示 */
.warning {
	font-weight: bold;
	font-size: 120%;
	color: #FF0000;
	margin: 10px 0 0 25px;
}


.button-back {
	padding: .7rem 1.5rem;
	font-size: 1.3rem;
}


.button-send {
	padding: .7rem 1.5rem;
	font-size: 1.3rem;
	font-weight: bold;
    background-color: #f68e8e;
}





/* gridエリア */
.grid-box-area {
	margin: 0 0 3rem;

}
.box-text {
/* background-color: #ddd; */
    /* padding: .5rem; */
    font-weight: bold;
    font-size: 1rem;
    line-height: 2.4;
	text-align: center;
    max-width: 880px;
    margin: 0 auto;
}
.contact-fax {
    list-style-type: none;
	  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 8px;
    max-width: 880px;
    margin: 3rem auto 0;
  background-color: #eee;

  /* height: 500px; */
}
.contact-fax-list {
  font-weight: bold;
  font-size: 1rem;

}
.contact-fax-list__ttl {
	display: block;
	background-color: #7c6161;
	color: #fff;
    padding: .4rem .5rem;
}
.contact-fax-list__text {
	display: block;
	/* background-color: #ebe9e9; */
	color: #333;
    padding: .4rem .5rem;
	/* min-height: 70px; */
}




/* ========================================
   レスポンシブ調整
   ======================================== */

@media screen and (max-width: 600px) {
	#explain_tex .contactinfo table {
		font-size: 95%;
	}

	#explain_tex .contactinfo td {
		padding: 8px;
	}
	
	#mailform {
	width: 100%;
	}

	#mailform th {
		display: block;
		width: 100%;
		border-left: none;
		border-top: 6px solid #CCCCCC;
	}

	#mailform td {
		display: block;
		width: 100%;
	}

	#mailform input[type="text"],
	#mailform input[type="email"],
	#mailform input[type="tel"],
	#mailform input:not([type]),
	#mailform textarea {
		max-width: 100%;
	}



.contact-fax {
	  display: grid;
  grid-template-columns: repeat(1, auto);
  grid-template-rows: repeat(2, auto);
      margin: 1.5rem auto 0;
}

.box-text {
	    font-size: .9rem;
}


}