/* CSS Document */

:root{
	--color-theme: #0b4c96;
	--color-accent: #009fe8;
	--color-problem: #ed2e85;
	--color-solve: #65b232;
}

#localNav{
	& a[href$="payroll.html"]{
		border-left: 2px solid;
		padding-left: 0.5em;
		color: #60E3FF;
	}
}

#payroll{
	padding: 0;
	& header{
		padding: 0;
		& .notes li{
			font-size: 0.9em;
		}
	}
	& img{
		all: unset;
		width: 100%;
		height: auto;
	}
}

#problem{
	position: relative;
	margin-top: 2em;
	padding: clamp(24px, calc(32 / 1200 * 100vw), 32px);
	border: 1px solid #ccc;
	&:after{
		content: "";
		position: absolute;
		bottom: -32px;
		left: 50%;
		transform: translateX(-50%);
		aspect-ratio: 1;
		width: clamp(48px, calc(64 / 1200 * 100vw), 64px);
		-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66.11 53"><polygon points="66.11 0 33.05 53 0 0 66.11 0"/></svg>') no-repeat;
		background: var(--color-problem);
		@media (min-width: 768px) {
			bottom: -48px;
		}
	}
	& h3{
		display: grid;
		grid-template-rows: auto auto;
		justify-items: center;
		grid-gap: 16px;
		margin-bottom: clamp(24px, calc(32 / 1200 * 100vw), 32px);
		font-weight: 700;
		font-size: 1.4em;
		letter-spacing: 0.05em;
		@media (min-width: 768px) {
			font-size: 1.6em;
		}
		&:after{
			content: "";
			width: 3.5em;
			height: 2px;
			background: var(--color-problem);
		}
	}
	& ul{
		display: grid;
		grid-gap: clamp(24px, calc(32 / 1200 * 100vw), 32px);
	}
	& li{
		display: grid;
		justify-content: start;
		grid-template-columns: auto auto;
		grid-gap: 8px;
		padding-bottom: 8px;
		font-size: clamp(18px, calc(24 / 1200 * 100vw), 24px);
		border-bottom: 1px dotted #ccc;
		&:before{
			content: "";
			margin-top: 0.25em;
			aspect-ratio: 1;
			width: clamp(18px, calc(24 / 1200 * 100vw), 24px);
			-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M8.44,11.56l-2.39-2.39c-.2-.2-.46-.31-.78-.31s-.57.1-.78.31-.31.46-.31.78.1.57.31.78l3.17,3.17c.22.22.48.33.78.33s.56-.11.78-.33l6.28-6.28c.2-.2.31-.46.31-.78s-.1-.57-.31-.78c-.2-.2-.46-.31-.78-.31s-.57.1-.78.31l-5.5,5.5ZM2.22,20c-.61,0-1.13-.22-1.57-.65-.43-.43-.65-.96-.65-1.57V2.22c0-.61.22-1.13.65-1.57C1.09.22,1.61,0,2.22,0h15.56c.61,0,1.13.22,1.57.65.44.44.65.96.65,1.57v15.56c0,.61-.22,1.13-.65,1.57-.43.44-.96.65-1.57.65H2.22Z"/></svg>') center / contain no-repeat;
			background: var(--color-accent);
		}
	}
}

#problemList{
	margin-top: 2em;
	padding-bottom: 0;
	counter-reset: number 0;
	& h3{
		display: none;
	}
	& h3+div{
		display: grid;
		grid-gap: clamp(32px, calc(40 / 1200 * 100vw), 40px) clamp(18px, calc(32 / 1200 * 100vw), 32px);
		@media (min-width: 768px) {
			grid-template-columns: repeat(2, 1fr);
		}
	}
	& dl{
		display: grid;
		align-content: start;
		background: linear-gradient(to bottom, transparent 0, transparent 70px, color-mix(in srgb, var(--color-theme) 10%, transparent) 70px);
		&:before,
		&:after{
			align-self: baseline;
			grid-column: 1;
			grid-row: 1;
			margin-bottom: 4px;
			line-height: 1;
		}
		&:before{
			content: "お悩み";
			color: var(--color-accent);
			font-size: clamp(18px, calc(24 / 1200 * 100vw), 24px);
		}
		&:after{
			counter-increment: number 1;
			content: counter(number);
			padding-left: clamp(56px, calc(76 / 1200 * 100vw), 76px);
			color: var(--color-accent);
			font-size: clamp(32px, calc(40 / 1200 * 100vw), 40px);
		}
	}
	& dt{
		position: relative;
		padding: clamp(32px, calc(48 / 1200 * 100vw), 48px) 16px 16px;
		background: var(--color-accent);
		font-weight: 500;
		font-size: 1.4em;
		color: #fff;
		text-align: center;
		@media (min-width: 768px) {
			font-size: 1.6em;
		}
		&:before{
			content: "";
			position: absolute;
			top: -45px;
			left: 50%;
			transform: translateX(-50%);
			aspect-ratio: 1;
			width: clamp(72px, calc(90 / 1200 * 100vw), 90px);
			box-sizing: border-box;
			border: 4px solid var(--color-accent);
			border-radius: 50%;
		}
		dl:nth-child(1) &:before{
			background: #fff url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M1,17.2c0-.57.15-1.09.44-1.56.29-.48.68-.84,1.16-1.09,1.03-.52,2.08-.9,3.15-1.16,1.07-.26,2.15-.39,3.25-.39s2.18.13,3.25.39c1.07.26,2.12.65,3.15,1.16.48.25.87.61,1.16,1.09s.44,1,.44,1.56v.8c0,.55-.2,1.02-.59,1.41s-.86.59-1.41.59H3c-.55,0-1.02-.2-1.41-.59-.39-.39-.59-.86-.59-1.41v-.8ZM21,20h-2.55c.18-.3.32-.62.41-.96s.14-.69.14-1.04v-1c0-.73-.2-1.44-.61-2.11s-.99-1.25-1.74-1.74c.85.1,1.65.27,2.4.51s1.45.54,2.1.89c.6.33,1.06.7,1.38,1.11s.48.85.48,1.34v1c0,.55-.2,1.02-.59,1.41s-.86.59-1.41.59ZM6.17,10.82c-.78-.78-1.18-1.73-1.18-2.83s.39-2.04,1.18-2.83c.78-.78,1.73-1.18,2.83-1.18s2.04.39,2.83,1.18,1.18,1.73,1.18,2.83-.39,2.04-1.18,2.83c-.78.78-1.73,1.18-2.83,1.18s-2.04-.39-2.83-1.18ZM17.83,10.82c-.78.78-1.73,1.18-2.83,1.18-.18,0-.42-.02-.7-.06s-.52-.09-.7-.14c.45-.53.8-1.13,1.04-1.78s.36-1.33.36-2.03-.12-1.38-.36-2.03-.59-1.24-1.04-1.78c.23-.08.47-.14.7-.16s.47-.04.7-.04c1.1,0,2.04.39,2.83,1.18s1.18,1.73,1.18,2.83-.39,2.04-1.18,2.83ZM3,18h12v-.8c0-.18-.05-.35-.14-.5s-.21-.27-.36-.35c-.9-.45-1.81-.79-2.73-1.01s-1.84-.34-2.78-.34-1.86.11-2.78.34c-.92.23-1.83.56-2.73,1.01-.15.08-.27.2-.36.35-.09.15-.14.32-.14.5v.8ZM10.41,9.41c.39-.39.59-.86.59-1.41s-.2-1.02-.59-1.41-.86-.59-1.41-.59-1.02.2-1.41.59-.59.86-.59,1.41.2,1.02.59,1.41.86.59,1.41.59,1.02-.2,1.41-.59Z" fill="%23009fe8"/></svg>') center / 70% no-repeat;
		}
		dl:nth-child(2) &:before{
			background: #fff url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10.95,12.68l-1.4-1.4c-.2-.2-.43-.3-.7-.3s-.5.1-.7.3-.3.44-.3.71.1.51.3.71l2.1,2.13c.2.2.43.3.7.3s.5-.1.7-.3l4.25-4.25c.2-.2.3-.44.3-.71s-.1-.51-.3-.71-.44-.3-.71-.3-.51.1-.71.3l-3.53,3.53ZM11.67,21.85c-.1-.02-.2-.04-.3-.08-2.25-.75-4.04-2.14-5.38-4.16-1.33-2.03-2-4.2-2-6.54v-4.73c0-.42.12-.79.36-1.13s.55-.58.94-.73l6-2.25c.23-.08.47-.13.7-.13s.47.04.7.13l6,2.25c.38.15.7.39.94.73s.36.71.36,1.13v4.73c0,2.33-.67,4.51-2,6.54s-3.13,3.41-5.38,4.16c-.1.03-.2.06-.3.08s-.21.03-.33.03-.23,0-.33-.03ZM12,19.88c1.73-.55,3.17-1.65,4.3-3.3,1.13-1.65,1.7-3.48,1.7-5.5v-4.73l-6-2.25-6,2.25v4.73c0,2.02.57,3.85,1.7,5.5s2.57,2.75,4.3,3.3Z" fill="%23009fe8"/></svg>') center / 70% no-repeat;
		}
		dl:nth-child(3) &:before{
			background: #fff url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3.5,10.5v6V4.5v6ZM13.5,19.5c.28,0,.52-.1.71-.29.19-.19.29-.43.29-.71s-.1-.52-.29-.71-.43-.29-.71-.29-.52.1-.71.29-.29.43-.29.71.1.52.29.71c.19.19.43.29.71.29ZM19.5,9.5c.28,0,.52-.1.71-.29s.29-.43.29-.71-.1-.52-.29-.71-.43-.29-.71-.29-.52.1-.71.29-.29.43-.29.71.1.52.29.71.43.29.71.29ZM5.5,9.5h5v-2h-5v2ZM5.5,13.5h5v-2h-5v2ZM3.5,18.5c-.55,0-1.02-.2-1.41-.59s-.59-.86-.59-1.41V4.5c0-.55.2-1.02.59-1.41s.86-.59,1.41-.59h16c.55,0,1.02.2,1.41.59s.59.86.59,1.41H3.5v12h5v2H3.5ZM11.37,20.63c-.58-.58-.88-1.29-.88-2.13,0-.65.19-1.23.56-1.75s.85-.88,1.44-1.08v-3.18h6v-1.18c-.58-.2-1.06-.56-1.44-1.08s-.56-1.1-.56-1.75c0-.83.29-1.54.88-2.13s1.29-.88,2.13-.88,1.54.29,2.13.88.88,1.29.88,2.13c0,.65-.19,1.23-.56,1.75s-.85.88-1.44,1.08v3.18h-6v1.18c.58.2,1.06.56,1.44,1.08s.56,1.1.56,1.75c0,.83-.29,1.54-.88,2.13-.58.58-1.29.88-2.13.88s-1.54-.29-2.13-.88Z" fill="%23009fe8"/></svg>') center / 70% no-repeat;
		}
		dl:nth-child(4) &:before{
			background: #fff url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.71,15.21c-.28,0-.52-.1-.71-.29-.19-.19-.29-.43-.29-.71s.1-.52.29-.71c.19-.19.43-.29.71-.29h2c.28,0,.52.1.71.29s.29.43.29.71-.1.52-.29.71-.43.29-.71.29h-2ZM6.71,11.21c-.28,0-.52-.1-.71-.29-.19-.19-.29-.43-.29-.71s.1-.52.29-.71c.19-.19.43-.29.71-.29h11c.28,0,.52.1.71.29s.29.43.29.71-.1.52-.29.71-.43.29-.71.29H6.71ZM6.71,7.21c-.28,0-.52-.1-.71-.29-.19-.19-.29-.43-.29-.71s.1-.52.29-.71c.19-.19.43-.29.71-.29h11c.28,0,.52.1.71.29s.29.43.29.71-.1.52-.29.71-.43.29-.71.29H6.71ZM15.28,18.73c-.12-.04-.23-.11-.33-.21l-2.85-2.85c-.2-.2-.3-.44-.29-.71s.11-.51.31-.71.44-.3.71-.3.51.1.71.3l2.1,2.13,4.93-4.93c.2-.2.44-.3.71-.29s.51.11.71.31c.18.2.28.43.29.7s-.09.5-.29.7l-5.65,5.65c-.1.1-.21.17-.33.21s-.24.06-.38.06-.26-.02-.38-.06ZM2.71,7.21c-.28,0-.52-.1-.71-.29s-.29-.43-.29-.71.1-.52.29-.71.43-.29.71-.29.52.1.71.29.29.43.29.71-.1.52-.29.71-.43.29-.71.29ZM2.71,11.21c-.28,0-.52-.1-.71-.29s-.29-.43-.29-.71.1-.52.29-.71.43-.29.71-.29.52.1.71.29.29.43.29.71-.1.52-.29.71-.43.29-.71.29ZM2.71,15.21c-.28,0-.52-.1-.71-.29s-.29-.43-.29-.71.1-.52.29-.71.43-.29.71-.29.52.1.71.29.29.43.29.71-.1.52-.29.71-.43.29-.71.29Z" fill="%23009fe8"/></svg>') center / 70% no-repeat;
		}
	}
	& dd{
		padding: 16px;
		line-height: 1.8;
		& span{
			color: var(--color-problem);
		}
	}
	
}

#solve{
	& h3{
		background: color-mix(in srgb, var(--color-problem) 10%, transparent);
		border-top: 2px solid var(--color-problem);
	}
	& h3+div{
		display: grid;
		grid-gap: clamp(8px, calc(16 / 1200 * 100vw), 16px);
	}
	& dl{
	}
	& dt,
	& dd{
		position: relative;
		padding: 16px 16px 16px calc(56px + 16px);
		&:before{
			position: absolute;
			inset: 0;
			padding: 16px 0;
			width: 56px;
			height: 100%;
			font-weight: 500;
			font-size: 12px;
			color: #fff;
			text-align: center;
			box-sizing: border-box;
		}
	}
	& dt{
		background: color-mix(in srgb, var(--color-problem) 5%, transparent);
		color: var(--color-problem);
		&:before{
			content: "Before";
			background: var(--color-problem);
		}
	}
	& dd{
		font-weight: 500;
		font-size: 18px;
		background: color-mix(in srgb, var(--color-solve) 5%, transparent);
		&:before{
			content: "After";
			padding: 20px 0 16px;
			background: var(--color-solve);
		}
		&:after{
			content: "";
			position: absolute;
			top: 0;
			left: 0;
			aspect-ratio: 56 / 10;
			width: 56px;
			-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 56 10"><polygon class="cls-1" points="0 0 28.44 10 56 0 0 0"/></svg>') no-repeat;
			background: var(--color-problem);
		}
	}
}

#meritList{
	padding-bottom: 0;
	position: relative;
	&:before{
		content: "";
		position: absolute;
		top: 0;
		left: 50%;
		transform: translateX(-50%);
		aspect-ratio: 1;
		width: clamp(48px, calc(64 / 1200 * 100vw), 64px);
		-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66.11 53"><polygon points="66.11 0 33.05 53 0 0 66.11 0"/></svg>') no-repeat;
		background: var(--color-solve);
		@media (min-width: 768px) {
			bottom: -40px;
		}
	}
	& h3{
		display: grid;
		grid-template-rows: auto auto;
		justify-items: center;
		grid-gap: 16px;
		margin-bottom: clamp(24px, calc(32 / 1200 * 100vw), 32px);
		padding-top: 1.5em;
		font-weight: 700;
		font-size: 1.4em;
		letter-spacing: 0.05em;
		@media (min-width: 768px) {
			font-size: 1.6em;
		}
		&:after{
			content: "";
			width: 3.5em;
			height: 2px;
			background: var(--color-solve);
		}
	}
	& h3+div{
		display: grid;
		grid-gap: 8px;
		padding: 8px;
		background: color-mix(in srgb, var(--color-solve) 10%, transparent);
		@media (min-width: 768px) {
			grid-template-columns: repeat(2, 1fr);
		}
	}
	& dl{
		align-content: center;
		position: relative;
		padding: 8px 16px 8px calc(90px + 24px);
		min-height: 110px;
		background: var(--color-solve);
		color: #fff;
		letter-spacing: 0.025em;
	}
	& dt{
		font-weight: bold;
		font-size: 1.2em;
	}
	& dd{
		display: contents;
		& figure{
			position: absolute;
			top: 50%;
			left: 8px;
			aspect-ratio: 1;
			width: 90px;
			transform: translateY(-50%);
			& img{
				aspect-ratio: 1;
			width: 90px;
				object-fit: cover;
				border-radius: 50%;
				overflow: hidden;
				vertical-align: bottom;
			}
		}
	}
}

#flow{
	& h4{
		font-size: 1.2em;
		font-weight: bold;
	}
}

#flowCourse{
	& > div{
		padding: 1em;
		background: #efeedf;
		}
	& > div+div{
		background: #e1f0f4;
		}
	& h4{
		text-align: center;
		}
	& ol{
		margin: 1em 0;
		list-style: none;
		& li{
			position: relative;
			padding: 1em;
			background: #fff;
			}
		& li+li{
			margin-top: 1em;
			&:before{
				content: "";
				position: absolute;
				top: -1em;
				left: calc(50% - 0.3em);
				border: 0.6em solid transparent;
				border-top-color: #fff;
			}
		}
	}
	@media (max-width: 767px) and (orientation:portrait) {
		flex-direction: column;
	}
	@media (max-width: 767px) and (orientation:landscape) {
		justify-content: space-between;
		& > div{
			width: calc(50% - 0.5em);
			margin: 0;
		}
	}
	@media (min-width: 768px) {
		justify-content: space-between;
		& > div{
			width: calc(50% - 1em);
			margin: 0;
		}
	}
}

#flowReference{
	& dl{
		display: flex;
		margin-top: 1em;
		}
	& dt,
	& dd{
		border: 1px solid #dddddd;
		text-align: center;
		}
	& dt{
		position: relative;
		&:before{
			content: "＝";
			position: absolute;
			top: calc(50% - 0.5em);
			display: block;
			font-weight: bold;
		}
	}
	& dd+dd{
		position: relative;
		&:before{
			content: "＋";
			position: absolute;
			top: calc(50% - 0.5em);
			display: block;
			font-weight: bold;
		}
	}
	& .notes{
		& li{
			font-size: 0.9em;
		}
	}
	@media (max-width: 767px) {
		& dt,
		& dd{
			padding: 0.8em 0.5em;
			}
		& dt{
			&:before{
				transform: scale(1.5);
			}
		}
		& dd+dd{
			&:before{
				transform: scale(1.5);
			}
		}
	}
	@media (max-width: 767px) and (orientation:portrait) {
		& dl{
			flex-direction: column;
			}
		& dt,
		& dd{
			width: 100%;
			}
		& dt{
			&:before{
				top: -1.75em;
				left: calc(50% - 0.5em);
			}
		}
		& dd{
			margin-bottom: 2em;
		}
		& dd+dd{
			&:before{
				top: -1.75em;
				left: calc(50% - 0.5em);
			}
		}
	}
	@media (max-width: 767px) and (orientation:landscape) {
		& dt{
			&:before{
				left: -1.5em;
			}
		}
		& dd{
			margin-right: 2em;
		}
		& dd+dd{
			&:before{
				left: -1.5em;
			}
		}
	}
	@media (min-width: 768px) {
		& dt,
		& dd{
			padding: 0.8em;
			}
		& dt{
			&:before{
				left: -2em;
				transform: scale(2);
			}
		}
		& dd{
			margin-right: 3em;
		}
		& dd+dd{
			&:before{
				left: -2em;
				transform: scale(2);
			}
		}
	}
}

#contact{
	display: grid;
	grid-gap: clamp(32px, calc(48 / 1200 * 100vw), 48px);
	background: var(--color-theme);
	text-align: center;
	border-radius: 16px;
	& h3{
		justify-self: center;
		display: grid;
		grid-template-columns: 24px 1fr 24px;
		position: relative;
		font-weight: 500;
		font-size: 1.4em;
		color: #fff;
		@media (min-width: 768px) {
			font-size: 1.6em;
		}
		&:before,
		&:after{
			content: "";
			width: 2px;
			height: 100%;
			background: #fff;
			transform: rotate(335deg);
		}
		&:after{
			margin-left: auto;
			transform: rotate(25deg);
		}
	}
	& h3+div{
		justify-self: center;
		display: grid;
		grid-gap: 16px;
		@media (min-width: 768px) {
			grid-template-columns: repeat(2, auto);
		}
	}
	& a{
		display: grid;
		grid-template-columns: auto auto;
		justify-content: center;
		align-items: center;
		grid-gap: 8px;
		padding: 0.5em 1em;
		width: 100%;
		min-height: 48px;
		font-weight: 500;
		background: #fff;
		color: #333;
		text-decoration: none;
		@media (min-width: 768px) {
			width: 280px;
		}
		&:before{
			content: "";
			aspect-ratio: 1;
			width: 16px;
			-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="3 3 14 14"><path d="M11 10l-3.141-3.42c-0.268-0.27-0.268-0.707 0-0.978 0.268-0.27 0.701-0.27 0.969 0l3.83 3.908c0.268 0.271 0.268 0.709 0 0.979l-3.83 3.908c-0.267 0.272-0.701 0.27-0.969 0s-0.268-0.707 0-0.978l3.141-3.419z"/></svg>') center / contain no-repeat;
			background: #000;
			transition: all 0.2s ease-out;
		}
		&[href="/contact/index.html"]{
			background: #efea3a;
		}
		&:hover{
			background: var(--color-accent);
			color: #fff;
			&:before{
				background: #fff;
			}
		}
	}
}


