/******************************************************************************
 * 横浜三協株式会社
 * WEB SITE ver.2023
 * RESPONSIVE
 * PC width min-width:1280px
 * SP max-width: 1279px(iPhone6+ ヨコイチまで)
******************************************************************************/
@import url(reset.css);
@import url(base.css);
/*******************************************************************************
 * COMMON
*******************************************************************************/
/*******************************************************************************
 * MAIN
*******************************************************************************/
main>article>section>header {
	position: relative;
}
main>article>section>header>p {
	color: white;
	font-weight: bold;
	padding: 0.5em;
	background: rgba(0,0,0,0.5);
	position: absolute;
	z-index: 10;
}
main>article>section>h2 {
	color: var(--sBlue);
	font-size: 1.6rem;
	margin-bottom: 0.5em;
}
main>article>section>p {
	font-size: 1.4rem;
	text-align: justify;
	line-height: 1.75;
	margin-bottom: 2.0em;
}
main>article>section>nav>ul>li>a {
	color: var(--sBlack);
	text-decoration: none;
	border: 1px solid var(--sGray);
	display: block;
}
section#news>ul>li>a {
	color: var(--sBlack);
	text-decoration: none;
}
section#news>ul>li>a:hover {
	text-decoration: underline;
}
/** NEWS **********************************************************************/
section#news>div {
	position: relative;
}
section#news>div>p {
	font-size: 1.2rem;
	position: absolute;
	bottom: 2px;
	right: 0;
}
section#news>div>p>a {
	color: white;
	text-decoration: none;
	background: var(--sBlue);
	display: inline-block;
}
section#news>div>p>a:hover {
	color: var(--sBlue);
	background-color: var(--sLblue);
}
section#news>ul>li {
	display: table;
}
section#news>ul>li>* {
	display: table-cell;
}
section#news>ul>li>*:nth-child(1) {
	color: var(--sBlue);
}
/** PC ************************************************************************/
@media screen and (min-width:641px),print{
	main>article>section {
		margin-bottom: 50px;
	}
	main>article>section>* {
		margin: 0 auto;
	}
	main>article>section>header {
		/* width: var(--body-width); */
		margin-bottom: 50px;
	}
	main>article>section>header>picture>img {
		width: 100%;
	}
	main>article>section>header>p {
		font-size: 1.6rem;
		top: 42px;
		left: 42px;
	}
	main>article>section>header>p>small {
		font-size: 1.2rem;
	}
	main>article>section>p:last-of-type,
	main>article>section>figure {
		margin-bottom: 50px;
	}
	main>article>section>*:not(header) {
		width: var(--content-width);
	}
	main>article>section>nav {
		padding: 24px 0;
		/* border-top: 1px solid var(--sBlack);
		border-bottom: 1px solid var(--sBlack); */
	}
	main>article>section>nav>ul {
		font-size: 1.6rem;
		display: flex;
		justify-content: space-between;
	}
	main>article>section>nav>ul>li {
		width: calc((var(--content-width) - 64px) / 3);
	}
	figure#canbnr {
		overflow: hidden;
	}
	figure#canbnr>a>img,
	main>article>section>nav>ul>li>a>span>img {
		width: 100%;
		opacity: 1.0;
		transition:0.5s ease;
	}
	figure#canbnr>a>img:hover,
	main>article>section>nav>ul>li>a>span>img:hover {
		opacity: 0.7;
		transform:scale(1.1,1.1);
		transition:0.5s ease;
	}
	main>article>section>nav>ul>li>a>span:first-of-type {
		width: 100%;
		aspect-ratio: 54 / 35;
		display: block;
		overflow: hidden;
	}
	main>article>section>nav>ul>li>a>span:last-of-type {
		text-align: center;
		padding: 8px 0;
		display: block;
	}
	/** NEWS ******************************************************************/
	section#news>div>h2 {
		font-size: 2.6rem;
		text-align: center;
	}
	section#news>div>p {
		bottom: 2px;
	}
	section#news>div>p>a {
		padding: 0.25em 2.0em;
	}
	section#news>ul {
		font-size: 1.4rem;
		padding: 1.5em 1.0em;
		border: 1px solid var(--sDgray);
	}
	section#news>ul>li:not(:last-of-type) {
		margin-bottom: 0.75em;
	}
	section#news>ul>li>*:nth-child(1) {
		width: 10.0em;
	}
	section#news>ul>li>*>b {
		color: white;
		font-size: 1.0rem;
		text-align: center;
		padding: 1px 0.5em 0;
		margin-left: 1.0em;
		background: var(--sBlue);
		display: inline-block;
	}
	section#news>ul>li>*:nth-child(3) {
		padding-left: 0.5em;
	}
}
/** TABLET & SMART PHONE *****************************************************/
@media screen and (max-width:640px) {
	main>article>section {
		margin-bottom: 20px;
	}
	main>article>section>header {
		width: 100%;
		position: relative;
		margin-bottom: 16px;
	}
	main>article>section>header>p {
		font-size: 1.4rem;
		text-align: justify;
		top: 8px;
		left: 8px;
		right: 8px;
	}
	main>article>section>header>figure>img {
		width: 100%;
		height: 50vw;
		object-fit: cover;
	}
	main>article>section>*:not(header) {
		width: var(--sp-width);
		margin-left: auto;
		margin-right: auto;
	}
	main>article>section>p:last-of-type,
	main>article>section>figure {
		margin-bottom: 30px;
	}
	main>article>section>nav>ul {
		font-size: 2.0rem;
		letter-spacing: 0.5em;
	}
	main>article>section>nav>ul>li {
		position: relative;
	}
	main>article>section>nav>ul>li:not(:last-of-type) {
		margin-bottom: 10px;
	}
	main>article>section>nav>ul>li:nth-of-type(3)>a {
		color: white;
	}
	main>article>section>nav>ul>li>a>span>img {
		width: 100%;
		height: 45vw;
		object-fit: cover;
	}
	main>article>section>nav>ul>li>a>span:last-of-type {
		position: absolute;
		top: 10px;
		right: 10px;
	}
	/** NEWS ******************************************************************/
	section#news>div {
		padding-top: 16px;
		border-top: 1px solid var(--sDgray);
	}
	section#news>div>h2 {
		font-size: 2.2rem;
	}
	section#news>div>p {
		bottom: 4px;
	}
	section#news>div>p>a {
		padding: 0 1.0em;
	}
	section#news>ul {
		font-size: 1.2rem;
		text-align: justify;
		padding: 1.0em 0;
		border-bottom: 1px solid var(--sDgray);
	}
	section#news>ul>li:not(:last-of-type) {
		margin-bottom: 0.75em;
	}
	section#news>ul>li>*:nth-child(1) {
		width: 6.0em;
	}
	section#news>ul>li>*>b {
		color: white;
		font-size: 1.0rem;
		text-align: center;
		padding: 1px 0.5em 0;
		margin-left: 1.0em;
		background: var(--sBlue);
		display: inline-block;
	}
	section#news>ul>li>*:nth-child(2) {
		padding-left: 0.5em;
	}
}

/*******************************************************************************
 * ヘッドイメージ部分
*******************************************************************************/

/** PC ************************************************************************/
@media screen and (min-width:641px),print{}
/** TABLET & SMART PHONE ******************************************************/
@media screen and (max-width:640px) {}


/******************************************************************************
 * ver 2023
******************************************************************************/