@charset "utf-8";

/* 
layout.css - サイト固有の構造（骨組み）
プレフィックス：l-
編集者 人間：編集する
	   AI ：編集しない
役割：header, footer, container, grid, nav, megamenu, セクション構造など。
禁止：UI部品のデザイン
	 ページ固有装飾
	 c- や p- の記述
*/

/* B-01. Layout base */
.l-wrapper {
	position: relative;
	margin: 0 auto;
	padding: 0;
	overflow: clip;
}

.l-fixbox {
	max-width: 1360px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 4rem;
	padding-right: 4rem;
}

main {
	display: flex;
}
main article {
	margin-top: 6.0rem;
	width: calc(100% - 220px);
	flex-grow: 1;
}
main article#top {
	margin: 0;
	width: 100%;
}
main article section {
	/*h2*/
	margin-top: 8rem;
}
main article section section {
	/*h3*/
	margin-top: 6rem;
}
main article section section section {
	/*h4*/
	margin-top: 4rem;
}
main article section section section section {
	/*h5 h6*/
	margin-top: 3rem;
}

/* B-02. header */
/*************************** B-02. header ************************/
header {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 10.4rem;
	padding: 0 var(--gutter-x);
	background-color: var(--color-white);
	border-bottom: 1px solid var(--color-border);
}
.l-header-container div.logo {
	display: flex;
}
.l-header-container div.logo a {
	display: grid;
	grid-template-columns: auto auto;
	align-items: center;
	justify-content: start;
	column-gap: 1.6rem;
	color: var(--color-txt);
	text-decoration: none;
}
.l-header-container img {
	grid-row: 1 / 3;
	width: 5.6rem;
	height: auto;
}
.l-header-container span {
	display: block;
	font-size: 1.6rem;
	line-height: 1.6;
}
.l-header-container span:first-of-type {
	font-size: 2.4rem;
	font-weight: bold;
	line-height: 1.4;
	color: var(--color-main);
}

/* ハンバーガーボタン */
.l-hamburger,
.l-header-sp {
	display: none;
}

/* B-03. nav */
/*************************** B-03. nav ***************************/
/*megamenu 共通部分*/
.l-megamenu {
	margin-top: 0;
}
.l-megamenu a {
	display: block;
	text-decoration: none;
	color: var(--color-txt);
}

/*megamenu 2階層目以降のhere共通*/
.l-megamenu div ul li.here>a {
	color: var(--color-mega-here);
}
.l-megamenu div ul li.here>a::before {
	content: "\f0da";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	padding-right: 4px;
	color: var(--color-mega-here);
}

/*.l-wrapper,footerをjsと共に黒くする*/
footer::after,
.l-wrapper::after {
	width: 100%;
	height: 100%;
	position: absolute;
	background: rgba(0, 0, 0, 0.8);
	content: '';
	left: 0;
	top: 0;
	z-index: -1;
	opacity: 0;
	transition: z-index .3s, opacity .3s;
}

footer.l-overlay::after,
.l-wrapper.l-overlay::after {
	z-index: 1;
	opacity: 1;
}

/* 第一階層 */
.l-megamenu>ul {
	display: flex;
	align-items: center;
	gap: 8px;
}
.l-megamenu>ul>li {
	text-align: center;
	flex: none;
	width: auto;
}
.l-megamenu>ul>li>a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 10.4rem;
	padding: 0 12px 4px;
	font-size: 1.8rem;
	font-weight: bold;
	color: var(--color-main);
	border-top: none;
}

/*現在地の下線。ヘッダーの最下部に付け、左右を1pxずつ空けて隣の項目の線とつなげない*/
.l-megamenu>ul>li>a::after {
	content: "";
	position: absolute;
	left: 1px;
	right: 1px;
	bottom: 0;
	height: 3px;
	background-color: transparent;
	transition: background-color .3s;
}
.l-megamenu>ul>li.here>a {
	font-weight: bold;
	color: var(--color-main);
}
.l-megamenu>ul>li.here>a::after {
	background-color: var(--color-accent);
}

.l-megamenu>ul>li:hover>a,
.l-megamenu>ul>.l-nav_open>a {
	background-color: var(--color-sub);
	border-top: none;
	opacity: 1;
}

/*子階層がある場合。矢印は文字の下の余白に置く*/
.l-megamenu>ul>li.l-has-child>a {
	position: relative;
}
.l-megamenu>ul>li>a {
	position: relative;
}
.l-megamenu>ul>li.l-has-child>a::before {
	position: absolute;
	bottom: 2.2rem;
	right: 0;
	left: 0;
	margin: auto;
	content: "";
	width: 5px;
	height: 5px;
	border-top: 2px solid var(--color-accent);
	border-right: 2px solid var(--color-accent);
	transform: rotate(135deg);
	display: block;
	transition: transform .3s;
}

.l-megamenu>ul>li.l-nav_open>a::before {
	transform: rotate(-45deg);
}

/*お問合せボタン（CV）*/
.l-megamenu>ul>li.l-nav-cv>a {
	height: 5.6rem;
	gap: 1rem;
	padding: 1.4rem 2.4rem;
	background-color: var(--color-conversionbg);
	color: var(--color-conversiontxt);
	border-radius: var(--radius-sm);
}
.l-megamenu>ul>li.l-nav-cv>a::before {
	content: "";
	width: 1.8rem;
	height: 1.4rem;
	background: url(../images/top/icon-mail.svg) no-repeat center / contain;
}
.l-megamenu>ul>li.l-nav-cv>a::after {
	display: none;
}
.l-megamenu>ul>li.l-nav-cv>a:hover {
	background-color: var(--color-conversionbg);
	opacity: .75;
}

/* 第2階層 */
.l-megamenu div {
	display: none;
	background-color: var(--color-mega-bg);
	width: 100%;
	left: 0;
	top: 100%;
	z-index: 10000;
	position: absolute;
	padding: 50px 0;
}
.l-megamenu div p {
	width: 400px;
	margin: 0 auto 16px;
	text-align: left;
	font-weight: bold;
}
.l-megamenu div p a {
	border: 1px solid var(--color-txt);
	padding: 15px;
	position: relative;
}
.l-megamenu div p a::after {
	position: absolute;
	top: 0;
	bottom: 0;
	vertical-align: middle;
	right: 14px;
	margin: auto;
	content: "";
	width: 6px;
	height: 6px;
	border-top: 3px solid var(--color-mega-border);
	border-right: 3px solid var(--color-mega-border);
	transform: rotate(45deg);
	display: block;
	transition: right .3s, background-color .3s;
}
.l-megamenu div a:hover {
	opacity: .5;
	transition: .5s;
}
.l-megamenu div p a:hover::after {
	right: 24px;
}
.l-megamenu div>ul {
	display: flex;
	flex-wrap: wrap;
	padding: 0 calc(var(--gutter-x) - 1%);
}
.l-megamenu div>ul>li {
	width: 23%;
	margin: 1%;
	background-color: var(--color-mega-bg2nd);
	text-align: left;
}
.l-megamenu div>ul>li>a {
	font-size: 2.0rem;
	color: var(--color-mega-txt2nd);
	font-weight: bold;
	padding: 15px;
}

/* 第3階層 */
.l-megamenu div>ul>li>ul {
	padding: 0 0 10px 16px;
}
.l-megamenu div>ul>li>ul>li>a {
	padding: 10px 0;
	font-weight: 500;
	color: var(--color-mega-txt3rd);
}

/* 第4階層 */
.l-megamenu div>ul>li>ul>li>ul {
	margin: 2px 0 10px;
}
.l-megamenu div>ul>li>ul>li>ul>li {
	margin-left: 4px;
	padding-left: 8px;
	border-left: 1px solid var(--color-mega-txt4th);
}
.l-megamenu div>ul>li>ul>li>ul>li>a {
	padding: 3px 0 6px;
}

/* 第5階層 */
.l-megamenu div>ul>li>ul>li>ul>li>ul {
	margin: 4px 0 0;
	padding-bottom: 4px;
}
.l-megamenu div>ul>li>ul>li>ul>li>ul>li {
	margin-left: 6px;
	padding-left: 7px;
	border-left: 1px solid var(--color-mega-border);
}
.l-megamenu div>ul>li>ul>li>ul>li>ul>li>a {
	padding: 3px 0 6px;
}

/* 第6階層 */
.l-megamenu div>ul>li>ul>li>ul>li>ul>li>ul {
	margin: 4px 0 0;
	padding-bottom: 4px;
}
.l-megamenu div>ul>li>ul>li>ul>li>ul>li>ul>li {
	margin-left: 5px;
	padding-left: 6px;
	border-left: 1px solid var(--color-mega-border);
}
.l-megamenu div>ul>li>ul>li>ul>li>ul>li>ul>li>a {
	padding: 3px 0 6px;
}

/* 第7階層 */
.l-megamenu div>ul>li>ul>li>ul>li>ul>li>ul>li>ul {
	margin: 4px 0 0;
	padding-bottom: 4px;
}
.l-megamenu div>ul>li>ul>li>ul>li>ul>li>ul>li>ul>li {
	margin-left: 4px;
	padding-left: 5px;
	border-left: 1px solid var(--color-mega-border);
}
.l-megamenu div>ul>li>ul>li>ul>li>ul>li>ul>li>ul>li>a {
	padding: 3px 0 6px;
}


/* B-08. aside */
/*************************** B-08. aside *************************/
aside {
	width: 200px;
	height: 100%;
	margin-top: 60px;
	margin-left: 20px;
	position: sticky;
	top: 0;
	display: table;
}
aside .tit {
	margin-bottom: 1.0rem;
	background: var(--color-aside-titbg);
	padding: 15px 8px;
}
aside .tit a {
	display: block;
	color: var(--color-aside-tittxt);
	text-decoration: none;
}
aside nav ul li {
	margin-bottom: 1px;
}
aside nav ul li ul {
	position: relative;
	margin-left: 10px;
	padding-left: 10px;
}
aside nav ul li ul::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 1px;
	height: calc(100% - 0.75em);
	background: var(--color-aside-tree);
}
/* here はテンプレート（plugins/page_all/aside*.html）で a に付く。li ではない */
aside nav ul li a.here {
	color: var(--color-aside-here, #009bde);
	font-weight: bold;
}
aside nav ul li a.here::before {
	content: "\f0da";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	padding-right: 4px;
	color: var(--color-aside-here, #009bde);
}
aside nav ul li a {
	display: block;
	color: #333;
	font-size: 1.4rem;
	text-decoration: none;
}
aside nav ul li a:hover {
	background-color: var(--color-aside-hoverbg, #f0f2f4);
	opacity: 1;
}
aside nav>ul>li {
	margin-bottom: 1px;
}
aside nav>ul>li>a {
	font-size: 1.8rem;
	font-weight: bold;
	padding: 10px 5px;
}
aside nav>ul>li>ul>li a {
	padding: 6px 4px;
}
aside nav ul li ul li{
	position: relative;
}
aside nav ul li ul li::before{
	content:"";
	position: absolute;
	left: -10px;
	top: 0.8em;
	width: 1.0rem;
	height: 1px;
	background: var(--color-aside-tree);
}

/*search*/
aside form dl {
	padding: 0;
	background: none;
	margin-bottom: 20px;
}
aside form dl dt {
	float: inherit;
	width: inherit;
	padding: 6px 0 0px;
	min-height: 40px;
	font-size: 16px;
}
aside form dl dd {
	padding: 0 0 6px 0;
	font-size: 16px;
	border-bottom: 3px solid #fff;
}
aside form dl dd input[type="text"] {
	padding: 12px;
	width: 100%;
	border: none;
	background-color: #f0f2f4;
	position: relative;
	display: inline-block;
	outline: none;
	transition: background-color .3s, border .3s;
	font-size: 16px;
}
aside form dl dd input::placeholder {
	color: #aaa;
}
aside form dl dd input[type="text"]:focus {
	background: rgb(220, 220, 220);
}
aside form dl ul li {
	list-style: none;
}

/* B-09. footer */
/*************************** B-09. footer ************************/
footer {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	padding: 6.4rem var(--gutter-x) 4rem;
	background-color: var(--color-footer-bg);
	color: var(--color-footer-sub);
	text-align: left;
}
footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2.4rem;
	background: linear-gradient(90deg, var(--color-footer-accent-from), var(--color-footer-accent-mid) 55%, var(--color-footer-accent-to));
}
.l-footer-container {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 2.6rem;
	margin-bottom: 2.6rem;
	border-bottom: 1px solid var(--color-footer-line);
}
footer .logo a {
	display: grid;
	grid-template-columns: auto auto;
	align-items: center;
	justify-content: start;
	column-gap: 2.4rem;
	color: var(--color-footer-txt);
	text-decoration: none;
}
footer .logo img {
	grid-row: 1 / 3;
	width: 7.6rem;
	max-width: none;
	height: auto;
	margin-top: 0;
}
footer .logo span {
	display: block;
	font-size: 2.0rem;
	line-height: 1.5;
}
footer .logo span:first-of-type {
	font-size: 3.2rem;
	font-weight: bold;
	line-height: 1.4;
	color: #f7f7f5;
}
ul.l-footerNav {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-end;
	max-width: none;
	margin: 0;
}
ul.l-footerNav li {
	list-style: none;
}
ul.l-footerNav li + li::before {
	content: "｜";
	padding: 0 1.2rem;
	color: var(--color-footer-sub);
}
ul.l-footerNav li a {
	font-size: 1.8rem;
	line-height: 1.6;
	padding: 0;
	color: var(--color-footer-txt);
	text-decoration: none;
}

address {
	font-size: 1.6rem;
	margin: 30px 0;
	line-height: 2.0;
}
footer small {
	display: block;
	grid-column: 1;
	padding: 0;
	background: none;
	font-size: 1.6rem;
	line-height: 1.6;
}
footer .l-contigo {
	grid-column: 2;
	margin: 0;
	font-size: 1.6rem;
	line-height: 1.6;
	opacity: 0.5;
}
footer .l-contigo a {
	display: inline-block;
	padding: 8px 0;
	margin: -8px 0;
	font-size: 1.6rem;
	color: inherit;
	text-decoration: none;
}
footer .l-contigo a:hover {
	color: var(--color-white);
}

#pageTop {
	position: fixed;
	bottom: 1%;
	right: 2%;
}
#pageTop a {
	z-index: 999;
	color: #333;
	text-decoration: none;
	font-size: 0.8rem;
	display: flex;
	flex-direction: column;
	align-items: center;
}
#pageTop a::before {
	content: "\f35b";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 3.6rem;
	padding-bottom: 6px;
	text-shadow: 0px 0px 5px #fff;
}
#pageTop a:hover {
	text-decoration: none;
	opacity: 0.7;
}

/* ========== レスポンシブ ========== */
/* 1279px以下：rem が 9px になり（foundation.css）、PCレイアウトのまま10%縮む。ヘッダーの幅指定だけ外す */
@media screen and (max-width: 1279px) {
	.l-megamenu div {
		padding: 4rem 0;
	}
	.l-megamenu div p {
		width: 90%;
	}
}

/* 1025px以下：ハンバーガー（js/common.js の判定幅と同じ） */
@media screen and (max-width: 1025px) {
	.l-wrapper {
		padding: 7.2rem 0 0;
	}

	main {
		flex-direction: column;
	}
	main article {
		width: 100%;
		margin-top: 2.0rem;
	}

	header {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 1000;
		width: 100%;
		min-height: 0;
		height: 7.2rem;
		padding: 0 2.4rem 0 3.2rem;
	}
	.l-header-container {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
	}
	.l-header-container img {
		width: 4.8rem;
	}
	.l-header-container span {
		font-size: 1.3rem;
		line-height: 1.4;
	}
	.l-header-container span:first-of-type {
		font-size: 2.0rem;
		line-height: 1.3;
	}

	/* ハンバーガーボタン（タップ領域 4.8rem） */
	.l-header-sp {
		display: flex;
		align-items: center;
	}
	.l-hamburger {
		display: block;
		position: relative;
		width: 4.8rem;
		height: 4.8rem;
		cursor: pointer;
	}
	.l-hamburger span {
		display: block;
		position: absolute;
		left: 0.9rem;
		width: 3rem;
		height: 3px;
		background: var(--color-main);
		transition: 0.3s ease-in-out;
	}
	.l-hamburger span:nth-child(1) {
		top: 1.4rem;
	}
	.l-hamburger span:nth-child(2) {
		top: 2.3rem;
	}
	.l-hamburger span:nth-child(3) {
		top: 3.2rem;
	}
	.l-hamburger.l-nav_active span:nth-child(1) {
		top: 2.3rem;
		transform: rotate(-45deg);
	}
	.l-hamburger.l-nav_active span:nth-child(2) {
		opacity: 0;
	}
	.l-hamburger.l-nav_active span:nth-child(3) {
		top: 2.3rem;
		transform: rotate(45deg);
	}

	/* ドロワー：ヘッダーの下に重ねて、はみ出す分は中でスクロール */
	.l-megamenu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		max-height: calc(100vh - 7.2rem);
		overflow-y: auto;
		background: var(--color-white);
		border-top: 1px solid var(--color-border);
		box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
	}
	.l-megamenu>ul {
		display: block;
		padding: 0 0 2.4rem;
	}
	.l-megamenu>ul>li {
		width: 100%;
		text-align: left;
		border-bottom: 1px solid var(--color-border);
	}
	.l-megamenu>ul>li>a {
		justify-content: flex-start;
		height: auto;
		min-height: 5.6rem;
		padding: 1.4rem 3.2rem;
		font-size: 1.8rem;
	}
	.l-megamenu>ul>li>a::after {
		display: none;
	}
	.l-megamenu>ul>li.here>a {
		box-shadow: inset 4px 0 0 var(--color-accent);
	}
	.l-megamenu>ul>li:hover>a,
	.l-megamenu>ul>.l-nav_open>a {
		background-color: var(--color-sub);
	}
	.l-megamenu>ul>li.l-has-child>a {
		padding-right: 6rem;
	}
	.l-megamenu>ul>li.l-has-child>a::before {
		top: 50%;
		right: 3.2rem;
		bottom: auto;
		left: auto;
		margin: -0.6rem 0 0;
		width: 8px;
		height: 8px;
	}
	.l-megamenu>ul>li.l-nav-cv {
		padding: 2.4rem 3.2rem 0;
		border-bottom: none;
	}
	.l-megamenu>ul>li.l-nav-cv>a {
		justify-content: center;
		height: 5.6rem;
		padding: 1.4rem 2.4rem;
	}
	.l-megamenu>ul>li.l-nav-cv>a::before {
		right: auto;
		bottom: auto;
		left: auto;
		margin: 0;
		width: 1.8rem;
		height: 1.4rem;
		border: none;
		transform: none;
	}

	/* 子メニュー */
	.l-megamenu div {
		position: static;
		padding: 1.6rem 3.2rem 2.4rem;
	}
	.l-megamenu div p {
		width: 100%;
		margin: 0 0 1.2rem;
	}
	.l-megamenu div>ul {
		padding: 0;
	}
	.l-megamenu div>ul>li {
		width: 48%;
		margin: 1%;
	}
	.l-megamenu div>ul>li>ul>li>a {
		min-height: 4.4rem;
		display: flex;
		align-items: center;
	}

	aside {
		width: 100%;
		margin-left: 0;
		position: static;
		display: block;
	}
	aside nav>ul {
		display: flex;
		flex-wrap: wrap;
	}
	aside nav>ul>li {
		width: 48%;
		margin: 1%;
	}
	aside nav ul li ul {
		margin-left: 6px;
		padding-left: 6px;
	}
	aside nav ul li ul::before {
		height: calc(100% - 1.2em);
	}
	aside nav ul li a {
		font-size: 1.6rem;
		/* 指で押しやすい高さ（44px以上） */
		min-height: 44px;
		display: flex;
		align-items: center;
	}
	aside nav>ul>li>ul>li a {
		padding: 10px 4px;
	}
	aside nav ul li ul li::before{
		top: 1.2em;
		left: -6px;
	}

	.l-fixbox {
		padding-left: 3.2rem;
		padding-right: 3.2rem;
	}

	footer {
		grid-template-columns: 1fr;
		padding: 5.6rem 3.2rem 3.2rem;
	}
	footer::before {
		height: 1.6rem;
	}
	.l-footer-container {
		flex-direction: column;
		align-items: flex-start;
		gap: 2.4rem;
	}
	footer .logo img {
		width: 6.4rem;
	}
	footer .logo span {
		font-size: 1.6rem;
	}
	footer .logo span:first-of-type {
		font-size: 2.8rem;
	}
	ul.l-footerNav {
		flex-wrap: wrap;
		justify-content: flex-start;
		row-gap: 1rem;
	}
	ul.l-footerNav li a {
		display: inline-block;
		padding: 0.6rem 0;
		font-size: 1.6rem;
	}
	footer .l-contigo {
		grid-column: 1;
		margin-top: 1.2rem;
	}
}

/* 600px以下：スマホ */
@media screen and (max-width: 600px) {
	.l-wrapper {
		padding-top: 6.4rem;
	}

	header {
		height: 6.4rem;
		padding: 0 1.2rem 0 2rem;
	}
	.l-header-container img {
		width: 4.2rem;
	}
	.l-header-container .logo a {
		column-gap: 1.2rem;
	}
	.l-header-container span {
		font-size: 1.1rem;
	}
	.l-header-container span:first-of-type {
		font-size: 1.8rem;
	}
	.l-megamenu {
		max-height: calc(100vh - 6.4rem);
	}
	.l-megamenu>ul>li>a {
		padding: 1.4rem 2rem;
	}
	.l-megamenu>ul>li.l-has-child>a::before {
		right: 2rem;
	}
	.l-megamenu>ul>li.l-nav-cv {
		padding: 2rem 2rem 0;
	}
	.l-megamenu div {
		padding: 1.2rem 2rem 2rem;
	}
	.l-megamenu div>ul>li {
		width: 100%;
		margin: 0 0 0.8rem;
	}

	.l-fixbox {
		padding-left: 2rem;
		padding-right: 2rem;
	}

	aside nav>ul>li {
		width: 100%;
		margin: 10px 0;
	}
	aside nav ul li ul {
		margin-left: 10px;
		padding-left: 10px;
	}

	footer {
		padding: 4.8rem 2rem 2.4rem;
	}
	footer .logo a {
		column-gap: 1.6rem;
	}
	footer .logo span {
		font-size: 1.4rem;
	}
	footer .logo span:first-of-type {
		font-size: 2.4rem;
	}
	ul.l-footerNav {
		flex-direction: column;
		row-gap: 0;
	}
	ul.l-footerNav li + li::before {
		content: none;
	}
	ul.l-footerNav li a {
		display: block;
		padding: 1rem 0;
	}
	footer small,
	footer .l-contigo {
		font-size: 1.4rem;
	}
}
