/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* +++++++++++++++++ INIT ++++++++++++++++++++++++++++++++++++++++ */
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
html, body, div, span, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,abbr, address, cite, code,del, dfn, em, img, ins, kbd, q, samp,small, strong, sub, sup, var,b, i,dl, dt, dd, ol, ul, li,fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td,article, aside, dialog, figure, footer, header,hgroup, menu, nav, section,time, mark, audio, video
{
	margin: 0;
	padding: 0;
	font-size: 100%;
	font-weight:normal;
	list-style:none;
}


/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* +++++++++++++++++ Base Tag Init  ++++++++++++++++++++++++++++++ */
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
html {
	font-size: 100%;
	background-color: #000;
}
body {
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
	font-family: 'Noto Sans JP', "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "メイリオ", Meiryo, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", sans-serif;
	font-size: 16px;
	color: #333;
	line-height: 1.75;
	background-color: #fff;
	scroll-behavior: smooth;
}

img {
	max-width: 100%;
	height: auto;
	border: none;
	vertical-align: bottom;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

table td,
table th {
	border-width: 1px;
	border-style: solid;
}

a {
	color: #000;
	text-decoration: none;
	outline: none;
}

a:hover {
	text-decoration: underline;
}

/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* +++++++++++++++++++++++++ Layout ++++++++++++++++++++++++++++++ */
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

body{
    /* display: grid;
	grid-template:
	"header_area" auto
	"center_area" auto
	"footer_area" auto
	/100%;
	justify-content: space-between;
	justify-items: space-between;
	align-items: stretch;
	background-color: #fff; */
}

body > header{
	grid-area: header_area;
	position: sticky;
	top: 0;
	left: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1em;
	background-color: rgba(250 , 250 , 250 , 0.99);
	box-shadow: 0 0 0.25rem 0 rgba(180 , 180 , 180 , 0.9);
	z-index: 100;
	transition: all 0.5s;

}

body > header.fixed{
	box-shadow: 0 0 0.25rem 0 rgba(180 , 180 , 180 , 0.9);
}

body > header.mixed{
	/* mix-blend-mode: overlay; */
	mix-blend-mode: screen;
	/* opacity: 0.5; */
}



body > header.mixed2{
	/* mix-blend-mode: screen; */
	mix-blend-mode: none;
}


body > div,
body > footer{
    display: grid;
	grid-template-columns: 1fr 1200px 1fr;
	justify-content: space-between;
	justify-items: space-between;
	align-items: stretch;
	background-color: #fff;
}

body > div{
	grid-area: center_area;
	grid-template-areas:
	"image_cont image_cont image_cont"
	". main_cont .";
	grid-template-rows: auto auto;
	position: relative;

}

body > footer{
	grid-area: footer_area;
	grid-template-areas:
	". footer_cont .";
	grid-template-rows: auto;
	background-color: #000;
	padding: 2em 0;
}


/* --------------------------------------------------------------- */
/* ----- main area Layout ----- */
/* --------------------------------------------------------------- */
body > div > section {
	grid-area: image_cont;
	/* display: flex;
	justify-content: center;
	align-items: center; */
	height: 12rem;
	width: 100%;
	overflow: hidden;
	position: relative;
}

body > div > main {
	grid-area: main_cont;
}





/* --------------------------------------------------------------- */
/* ----- footer area Layout ----- */
/* --------------------------------------------------------------- */
body > footer > section {
	grid-area: footer_cont;
	display: grid;
	grid-template:
	"footer_logo ." auto
	"footer_lead footer_copy" auto
	/ 23em 1fr;
	justify-content: space-between;
	justify-items: space-between;
	align-items: end;
	gap: 1.5em;
	color: #fff;
}

/* @media only screen and (max-width:1232px){
	body > footer > section{
		grid-template:
		"footer_logo" auto
		"footer_lead" auto
		"footer_copy" auto
		/ 1fr;
	}
} */

body > footer > section > p:has(img) {
	grid-area: footer_logo;
}

body > footer > section > p#footer_lead {
	grid-area: footer_lead;
}

/* iphneが電話番号に自動でaリンク(tel:)を貼ってしまう対策 */
body > footer > section > p#footer_lead a{

	color: #fff;
	text-decoration: none;

}


body > footer > section > p#footer_copyright {
	grid-area: footer_copy;
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
}

body > footer > p{
	position: fixed;
	bottom: -400px;
	right: 2em;
	z-index: 110;
	mix-blend-mode: difference;
	transition: all 1s;
}

body > footer > p.disp{
	bottom: 2em;
	opacity: 1;
}

body > footer > p a{
	display: block;
	position: relative;
	color: #000;
	background-color: #000;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	overflow: hidden;
	z-index: 120;
	border: 1px solid rgba(250 , 250 , 250 , 0.4);
	box-shadow: 0 0 0.2em 0 rgba(50 , 50 , 50 , 0.8);
	opacity: 0.85;
}

body > footer > p a::after{
	display: block;
	position: absolute;
	content: '';
	right: 0;
	top: 0;
	width: 1rem;
	height: 1rem;
	border-top: 2px solid #fff;
	border-left: 2px solid #fff;
	transform: translate(-0.9rem, 1.3rem) rotate(45deg);
}

/* --------------------------------------------------------------- */
/* ----- layout responsive ----- */
/* --------------------------------------------------------------- */
@media only screen and (max-width:1232px){

	body > div,
	body > footer
	{
		grid-template-columns: 0 100% 0;
	}

	body > div > main,
	body > footer
	{
		padding: 2em 1em;
	}

}

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

	body > footer > section {
		grid-template:
		"footer_logo" auto
		"footer_lead" auto
		"footer_copy" auto
		/ 100%;
	}
}


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

	body > footer > section > p#footer_copyright {
		margin-top: 0.5em;
		justify-content: center;
	}
}



/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* ++++++++++++++++++++++++ DETAIL ++++++++++++++++++++++++++++++ */
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* --------------------------------------------------------------- */
/* ----- details header ----- */
/* --------------------------------------------------------------- */

/* ----- logo ----- */
body > header > h1 {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	column-gap: 1em;
	line-height: 1;
	padding: 0;
	margin: 0;
}

body > header > h1 > img {
	width: 7em;
}

body > header > h1 > p > img {
	max-width: 16em;
}

body > header > p > img {
	max-width: 4em;
}

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

	body > header > h1 > p > img {
		max-width: calc(100vw - 2em - 1em - 7em - 4em - 2em); /* 全幅 padding gap logo幅、nissanlogo幅 nissanlogoとの隙間 */
	}

}

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

	body > header > h1 > img {
		width: 5.5em;
	}

	body > header > h1 > p > img {
		max-width: calc(100vw - 2em - 1em - 5.5em); /* 全幅 padding gap logo幅、nissanlogo幅 nissanlogoとの隙間 */
	}

	body > header > p > img {
		display: none;
	}
}

/* --------------------------------------------------------------- */
/* ----- details main image ----- */
/* --------------------------------------------------------------- */
body > div > section p {
	position: absolute;
	top: -1.2em;
	left: 0;
	width: 100%;
	text-align: center;
	font-size: 1.8em;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: #fff;
	z-index: 10;
	line-height: 1.2;
	mix-blend-mode: overlay;
	background-color: rgba(0, 0, 0, 0.3);
	padding: 0.5em;
	opacity: 0;
}

body > div > section p.move {
	transition: top 2s, opacity 1.5s;
	mix-blend-mode: none;
}

body > div > section p.fixed {
	top: calc(50% - 0.6em - 0.5em); /* 現在のフォントサイズを1emとしたline-heightの半分 */
	opacity: 1;
	mix-blend-mode: none;
}

body > div > section img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --------------------------------------------------------------- */
/* ----- details links ----- */
/* --------------------------------------------------------------- */

body > div > main > #links{

	margin: 2em auto 4em;

}
body > div > main > #links > ul{

	display: flex;
	flex-direction: column;
	justify-content: stretch;
	align-items: flex-start;
	gap: 4em;

}

body > div > main > #links > ul > li{

	display: grid;
	grid-template:
	"links_image links_title" auto
	"links_image links_str" auto
	"links_image links_button" auto
	/ 12em 1fr;
	justify-content: space-between;
	align-items: center;
	align-self: top;
	column-gap: 2rem;
	row-gap: 2rem;

	padding: 2em 0;

	/* padding: 2em;
	box-shadow: 0 0 0.2em 1px rgba(153 ,153, 153, 0.3); */

}

body > div > main > #links > ul > li img{

	grid-area: links_image;

}

body > div > main > #links > ul > li h2{

	grid-area: links_title;
	padding: 0;
	margin: 0;
	line-height: 1;
	font-size: 1.8em;

}

body > div > main > #links > ul > li p{

	grid-area: links_str;

}

body > div > main > #links > ul > li ul{

	grid-area: links_button;
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax(calc(50% - 0.25em), 1fr) );
	justify-content: space-between;
	align-items: stretch;
	align-self: stretch;
	gap: 0.5em;
	text-align: center;

}

body > div > main > #links > ul > li ul.alone{

	/* grid-template-columns: calc(50% - 0.25em);
	justify-content: center;
	align-items: center; */

}

body > div > main > #links > ul > li ul li{

	display: contents;
}

body > div > main > #links > ul > li ul a{

	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	color: #fff;
	padding: 0.5em 1.5em;
	background-color: #000;
	transition: all 0.4s;
	line-height: 1.25;

	min-height: 2.5em;
	position: relative;
}

body > div > main > #links > ul > li ul a::before,
body > div > main > #links > ul > li ul a::after{

	position: absolute;
	top: 50%;
	right: 1em;
	content: '';
	width: 0.8em;
	height: 4px;
	border-radius: 2px;
	background-color: #fff;
	transform: rotate(45deg);
	transform-origin: bottom right;
	transition: all 1s;

}

body > div > main > #links > ul > li ul a::after{

	transform: rotate(-45deg);
	transform-origin: top right;

}

body > div > main > #links > ul > li ul a:hover{

	background-color: #555;
	text-decoration: none;

}

body > div > main > #links > ul > li ul a:hover::before,
body > div > main > #links > ul > li ul a:hover::after{

	right: 0.75em;

}

body > div > main > #links > ul > li ul a span{

	display: block;
	width: 100%;

}





/* --------------------------------------------------------------- */
/* ----- details news ----- */
/* --------------------------------------------------------------- */
body > div > main > #news {

	margin: 2em auto;
	padding: 2em;
	background: #eeeeee;
}

body > div > main > #news h2 {
	text-align: center;
	font-size: 1.8rem;
	word-break: keep-all;
}

body > div > main > #news > p {
	margin: 1em auto 1em 0;
}

body > div > main > #news li {
	display: grid;
	grid-template:
	"news_cat news_date news_title news_new ." auto
	/ 6rem 6rem auto 1fr;
	justify-content: start;
	justify-self: start;
	justify-items: start;
	align-items: start;
	align-self: center;
	align-content: center;
	gap: 1em;


	border-bottom: 1px #ccc dotted;
	padding: 1rem 0 0.75rem;
	position: relative;
}

body > div > main > #news li > span{
	grid-area: news_cat;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 0.9rem;
	color: #fff;
	border-radius: 5px;
	width: 6em;
	text-align: center;
}

body > div > main > #news li > b{
	display: inline-flex;
	justify-content: center;
	align-items: center;
	font-size: 0.8em;
	color: #fff;
	background-color: #c30000;
	border-radius:0;
	width: 4em;
	text-align: center;
}

body > div > main > #news li > b{
	grid-area: news_new;
	/* display: none; */
}

body > div > main > #news li > p > b{
	margin-left: 1em;
}

body > div > main > #news li > p{
	grid-area: news_title;
}

body > div > main > #news li > time {
	grid-area: news_date;

}

body > div > main > #news .cat01{
	background-color: #f39800;
}

body > div > main > #news .cat02{
	background-color: #00a0e9;
}

body > div > main > #news .cat03{
	background-color: #7bb00a;
}

body > div > main > #news .cat04{
	background-color: #ff0b00;
}

body > div > main > #news .cat05{
	background-color: #6b6b6b;
}



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

	body > div > main > #links{
		margin: 0 auto 2em;
	}

	body > div > main > #links > ul{

		gap: 2em;

	}

	body > div > main > #links > ul > li{
		padding: 2em;
		width: calc(100% - 4em);
		box-shadow: 0 0 2.5px 0.5px rgba(175 , 175 , 175 , 0.8);
	}


}


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

	body > div > main > #news li {
		display: grid;
		grid-template:
		"news_cat news_date news_new . " auto
		"news_title news_title news_title news_title" auto
		/ 5rem 5rem 3rem 1fr;
	}

	body > div > main > #news li > b,
	body > div > main > #news li > span{
		font-size: 0.8rem;
	}

	body > div > main > #news li > b{
		display: inline-block;
	}



	body > div > main > #links > ul > li ul{

		grid-template-columns: repeat( auto-fill, 100% );

	}

}


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


	body > div > main > #links > ul > li{

		grid-template:
		"links_title" auto
		"links_image" auto
		"links_str" auto
		"links_button" auto
		/ 1fr;
		justify-content: center;
		align-items: start;
		align-self: top;

	}


	body > div > main > #links > ul > li img{

		max-width: 12em;
		margin: 0 auto;

	}

	body > div > main > #links > ul > li ul{

		width: 70%;
		margin: 0 auto;
	}

	body > div > main > #links > ul > li h2,
	body > div > main > #news h2 {
		font-size: 1.6rem;
	}

}


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


	body > div > main > #links > ul > li{

		padding: 1.5rem 1rem 2rem;
		width: calc(100% - 2em);

	}


	body > div > main > #links > ul > li img{

		max-width: 12em;
		margin: 0 auto;

	}

	body > div > main > #links > ul > li ul{

		width: 90%;
		margin: 0 auto;
	}

}

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

	body > div > main{
		padding: 1em 0.5em;
	}

}