@charset "utf-8";
/*==================================================
  ヘッダ
--------------------------------------------------*/
#header {
	position: relative;
	height: 80px;
	padding: 15px;
	background: #fff;
	font-family: var(--font-sans);
	text-align: left;
}
/* タイトル */
#header h1.title {
	height: 100%;
	/* 縦方向中央揃え */
	display: flex;
	align-items: center;
}
#header h1.title img {
	object-fit: contain;
	width: 100%;
	height: 100%;
	max-width: none;
}
/* お問い合わせ */
#header .contact a {
	display: block;
}
#header .contact a img {
	vertical-align: middle;
}
@media print, screen and (min-width: 769px){ /* PCのみ */
	#header {
		position: relative;
		clear: both;
		width: 950px;
		height: 98px;
		margin: auto;
		background: url(../img/bg_header.gif) no-repeat right 22px;
		text-align: right;
		font-size: 14px;
	}
	#header p {
		margin: 0px;
	}
	#header p.mail {
		position: absolute;
		top: 24px;
		right: 204px;
	}
	#header ul li {
		display: inline;
	}
	#header ul.link li {
		padding-left: 5px;
	}
	#header ul.font {
		position: absolute;
		top: 27px;
		right: 8px;
	}
}
@media only screen and (max-width: 768px) {  /* タブレット以下 */
	/* ベースカラー*/
	#header .contact .tel a { background: #EB1B15; }
	#header .contact .btn a { background: #EB1B15; }

	/* ヘッダ */
	#header {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 50px;
		padding: 0;
		background: #fff;
		z-index: 9997;
		border-bottom: 1px solid #EB1B15;
	}
	#header h1.title {
		width: calc(100% - 138px);
		height: 100%;
		padding: 10px;
	}
	#header h1.title img {
		width: 100px;
		height: auto;
	}
	/* お問い合わせ */
	#header .contact .btn {
		border-left: 1px solid #fff;
	}
	#header .contact .tel a,
	#header .contact .btn a {
		width: 46px;
		height: 50px;
		padding: 0 10px;
		/* 縦方向中央揃え */
		display: flex;
		align-items: center;
		justify-content: center;
	}
	#header .contact .txt,
	#header .contact .tel span,
	#header .contact .btn span {
		display: none;
	}
}
/*--------------------------------------------------
  メニュー
--------------------------------------------------*/
#menu {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 1;
}
#menu li {
	height: 31px;
	list-style: none;
}
/*--------------------------------------------------
  ページタイトル
--------------------------------------------------*/
#page_title {
	clear: both;
	width: 100%;
	border-top: 5px solid #EB1B15;
	text-align: center;
}
#page_title img {
	width: 100%;
	height: auto;
}
/*--------------------------------------------------
  コンテナ
--------------------------------------------------*/
#wrap {
	overflow: hidden;
	transition: all 0.3s ease-in-out;
}
#container {
	text-align: left;
	line-height: 1.5;
}
#container p {
	margin-bottom: 1em;
}
#container h3.sub {
	position: relative;
	margin-bottom: 40px;
	font-size: 23px;
	font-family: var(--font-sans);
	font-weight: 500;
	text-align: center;
}
#container h3.sub::after {
	display: block;
	width: 50px;
	height: 2px;
	margin: 15px auto 0;
	background: var(--color-primary);
	content: "";
}
.main.sub_page {
	font-size: 105%;
	line-height: 1.7;
}
.main.sub_page h3 {
	margin-bottom: 10px;
}
.main.sub_page p.pad {
	margin-left: 32px;
}
@media print, screen and (min-width: 769px){ /* PCのみ */
	#wrap {
		min-width: 1150px;
	}
}
@media only screen and (max-width: 768px) {  /* タブレット以下 */
	#menu {
		display: none;
	}
	#container h3.sub {
		margin-bottom: 30px;
		font-size: 23px;
	}
	#main, #navi {
		clear: both;
		padding-bottom: 30px;
	}
	#page_title {
		border: none;
		padding-top: 50px;
	}
}
@media only screen and (max-width: 640px){ /* スマホ */
	#wrap, #footer {
		min-width: 320px;
	}
	#container h3.sub {
		margin-bottom: 20px;
		font-size: 20px;
	}
}
/*--------------------------------------------------
  メイン
--------------------------------------------------*/
.main {
	width: 950px;
	max-width: 100%;
	margin: auto;
	padding: 0 25px;
}
@media only screen and (max-width: 768px) {  /* タブレット以下 */
	.main {
		padding-left: 15px;
		padding-right: 15px;
	}
}
/*--------------------------------------------------
  フッタ
--------------------------------------------------*/
#footer {
	position: relative;
	clear: both;
	width: 100%;
	min-height: 180px;
	margin-top: auto;
	background: #EB1B15 url(../img/bg_footer.gif) repeat-x top;
	font-size: 12px;
	line-height: 1;
	display: block;
}
#footer p {
	margin: 0;
}
#footer ul {
	margin-bottom: 20px;
}
#footer li {
	display: inline;
	margin: 0 10px;
	list-style: none;
}
#footer li a {
	color: #FFFFFF;
}
/**/
#footer .box {
	position: relative;
	clear: both;
	width: 930px;
	height: 107px;
	margin: auto;
	margin-bottom: 30px;
	padding: 50px 0 0 230px;
	font-size: 14px;
	text-align: left;
}
#footer .box h2 {
	position: absolute;
	top: -10px;
	left: 0;
}
/* ページトップ */
#pagetop {
	position: absolute;
	right: 0;
	bottom: 0;
}
/* コピーライト */
#copyright {
	color: #FFFFFF;
	font-size: 11px;
	text-align: center;
}
#footer_contact {
	clear: both;
	width: 100%;
	margin-bottom: 15px;
	background: url(../img/bg_contact.gif) repeat-x top;
	color: #FFFFFF;
	font-size: 20px;
	font-weight: bold;
	line-height: 40px;
}
#footer_contact p {
	margin: 0;
	padding-bottom: 17px;
	background: url(../img/bg_contact_arow.gif) no-repeat center bottom;
	text-align: center;
}
@media print, screen and (min-width: 641px){ /* PC・タブレット */
	#footer .contact li {
		width: 48%;
	}
}
@media only screen and (max-width: 768px) {  /* タブレット以下 */
	#footer {
		background: none;
		min-height: unset;
		border-top: 2px solid #EB1B15;
	}
	#footer .box {
		width: 100%;
		height: auto;
		padding: 10px 0 20px;
		margin-bottom: 0;
	}
	#footer .box h2 {
		position: relative;
		top: auto;
		text-align: center;
		margin-bottom: 20px;
	}
	#footer .box .address {
		text-align: center;
	}
	#copyright {
		padding: 10px 0;
		font-size: 10px;
		background: #EB1B15;
	}
	#pagetop {
		top: -38px;
		bottom: auto;
	}
	#pagetop a {
		position: relative;
		z-index: 1;
	}
}
@media only screen and (max-width: 640px){ /* スマホ */
	#footer .contact li+li {
		margin-top: 15px;
	}
	#footer .contact li.tel a {
		font-size: 25px;
	}
	#footer .box .address {
		font-size: 11px;
		line-height: 1.8;
	}
	#copyright {
		padding: 5px 0;
	}
}
/*--------------------------------------------------
  共通
--------------------------------------------------*/
/* 枠のマージン・パディング */
.mt { margin-top: 100px; }
.mb { margin-bottom: 100px; }
.pt { padding-top: 100px; }
.pb { padding-bottom: 100px; }
@media only screen and (max-width: 768px) {  /* タブレット以下 */
	.mb { margin-bottom: 50px; }
	.pt { padding-top: 50px; }
	.pb { padding-bottom: 50px; }
}
@media only screen and (max-width: 640px){ /* スマホ */
	.mb { margin-bottom: 40px; }
	.pt { padding-top: 40px; }
	.pb { padding-bottom: 40px; }
}
/*------------------------------------------------*/
/* パンくずリスト */
#page_navi {
	clear: both;
	margin: 30px 0 40px;
	color: #888888;
	font-size: 12px;
	line-height: 1;
	/* フレックス */
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}
#page_navi li+li:before {
	content: ">";
	margin-right: 0.5em;
}
#page_navi a {
	color: var(--color-thin);
	text-decoration: none;
}
@media only screen and (max-width: 768px) {  /* タブレット以下 */
	#page_navi {
		margin-top: 0;
		margin-bottom: 20px;
		padding-top: 15px;
		font-size: 11px;
	}
}
/*------------------------------------------------*/
/* テーブル */
.tbl {
	width: 100%;
	background: #fff;
}
.tbl th,
.tbl td {
	padding: 14px;
	border: 1px solid var(--color-tbl-border);
}
.tbl th {
	white-space: nowrap;
	background: var(--color-tbl-th);
}
@media only screen and (max-width: 640px){ /* スマホ */
	.tbl {
		border-bottom: 1px solid var(--color-tbl-border);
	}
	.tbl th,
	.tbl td {
		display: block;
		width: auto;
		padding: 10px;
		border-bottom: none;
	}
}
/*------------------------------------------------*/
/* 注意書き */
p.attention {
	margin-left: 1em;
	text-indent: -1em;
}
/* マーク */
.mark {
	padding-left: 16px;
	background: url(../img/p.gif) no-repeat 0px 5px;
}

/*------------------------------------------------*/
/* 横100％ */
.w100 {
	width: 100vw;
	margin-left: calc(((100vw - 100%) / 2) * -1);
	margin-right: calc(((100vw - 100%) / 2) * -1);
}
/*------------------------------------------------*/
/* 横100％背景 */
.bg_wide {
	position: relative;
}
.bg_wide::before,
.bg_wide.bg_after::after {
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	width: 100vw;
	height: 100%;
	margin-left: calc(((100vw - 100%) / 2) * -1);
	margin-right: calc(((100vw - 100%) / 2) * -1);
	content: "";
	z-index: -1;
}
@media only screen and (max-width: 1150px) {
	.w100,
	.bg_wide::before,
	.bg_wide.bg_after::after {
		width: calc(100% + 50px);
		margin-left: -25px;
		margin-right: 0;
	}
}
@media only screen and (max-width: 640px){ /* スマホ */
	.w100,
	.bg_wide::before,
	.bg_wide.bg_after::after {
		width: calc(100% + 40px);
		margin-left: -20px;
		margin-right: 0;
	}
}
/*------------------------------------------------*/
/* フレックスボックス */
.box_flex_sp {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
.box_flex_sp.rev { flex-direction: row-reverse; }
.box_flex_sp.vcen { align-items: center; }
.box_flex_sp.vtop { align-items: flex-start; }
.box_flex_sp.htop { justify-content: flex-start; }
.box_flex_sp.hcen { justify-content: center; }
@media print, screen and (min-width: 641px){ /* PC用 */
	.box_flex {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}
	.box_flex.rev { flex-direction: row-reverse; }
	.box_flex.vcen { align-items: center; }
	.box_flex.vtop { align-items: flex-start; }
	.box_flex.htop { justify-content: flex-start; }
	.box_flex.hcen { justify-content: center; }
}
/*------------------------------------------------*/
/* 箱のパディング */
.box_pad {
	padding: 20px;
}
@media print, screen and (min-width: 641px){ /* PC用 */
	.box_pad { padding: 30px; }
}
