@charset "UTF-8";

main {
	margin-top: 200px;
}

.btns {
	display: flex;
	justify-content: center;
	gap: 60px;

	a {
		border-radius: 150px;
		color: #fff;
		display: flex;
		align-items: center;
		gap: 67px;
		font-weight: 500;
		font-size: 41px;
		letter-spacing: .04em;
		line-height: 1.46;
		width: 510px;
		height: 142px;

		img {
			width: 142px;
			height: 142px;
		}
	}

	.technical {
		background: #0661B5;
	}

	.administrative {
		background: #EF5A39;
	}
}

/* =================================
    セクション
================================= */

.work-section {
	border: 1px solid #0661B5;
	border-radius: 70px;
	box-shadow: 4px 4px 12px 1px rgba(0, 0, 0, 0.25);
	margin: 182px auto 0;
	padding: 174px 152px 146px;
	position: relative;
	width: 90%;
	max-width: 1484px;
	scroll-margin-top: 50px;

	h2 {
		background: #fff;
		border: 1px solid #0661B5;
		border-radius: 10px;
		color: #0661B5;
		font-size: 38px;
		letter-spacing: .11em;
		line-height: 1.15;
		padding: 19px 27px;
		position: absolute;
		top: -45px;
		left: 50%;
		transform: translateX(-50%);
	}

	&#administrative {
		border: 1px solid #EF5A39;

		h2 {
			border: 1px solid #EF5A39;
			color: #EF5A39;
		}
	}
}

/* =================================
    記事
================================= */
.work-item {
	display: flex;
	align-items: center;
	gap: 40px;
	margin: 140px auto 0;
	width: 100%;
	max-width: 1180px;
	scroll-margin-top: 40px;

	&:first-child {
		margin-top: 0;
	}

	>div {
		width: 50%;
	}

	img {
		width: 50%;
		min-width: 0;
		max-width: 575px;
	}

	p {
		color: #1F1F1F;
		font-weight: 500;
		font-size: 16px;
		line-height: 1.875;
	}

	.content {
		border: 1px solid #0661B5;
		border-radius: 20px;
		margin-top: 80px;
		padding: 46px 1em 46px 42px;
		position: relative;

		&::before {
			content: "";
			position: absolute;
			inset: 0;
			background-image:
				linear-gradient(#F1F1F1 2px, transparent 2px),
				linear-gradient(90deg, #F1F1F1 2px, transparent 2px);
			background-size: 45px 45px;
			background-position: -20px -20px;
			border-radius: 20px;
			z-index: -1;
		}

		.content>* {
			position: relative;
			z-index: 1;
		}

		>p {
			background: #EF5A39;
			border-radius: 100%;
			color: #fff;
			font-weight: bold;
			font-size: 16px;
			padding: 21px 30px;
			position: absolute;
			top: -46px;
			left: 50px;

			&::after {
				content: "";
				background: #EF5A39;
				clip-path: polygon(0 0, 100% 0, 52% 100%);
				position: absolute;
				bottom: -10px;
				left: 50%;
				transform: translateX(-50%);
				width: 23px;
				height: 19px;
				z-index: -1;
			}
		}

		span {
			color: #0661B5;
			font-weight: 500;
			font-size: 16px;
			display: none;
		}

		li {
			color: #0661B5;
			font-weight: 500;
			font-size: 16px;
			line-height: 2.31;
			padding-left: 1em;
			position: relative;

			&::before {
				content: "・";
				position: absolute;
				left: 0;
			}

			span {
				display: inline-block;
				margin-left: 2em;
			}
		}
	}

	.title {
		border-bottom: 1px solid #0661B5;
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
		gap: 12px;
		padding-bottom: 15px;

		.role {
			color: #0661B5;
			display: flex;
			align-items: center;
			gap: 8px;
			font-weight: bold;
			font-size: 38px;
			letter-spacing: .11em;
			line-height: 1;

			&::before {
				content: "";
				background-image: linear-gradient(90deg, #FCDFC8, #0661B5);
				border-radius: 50%;
				display: block;
				transform: rotate(-30deg);
				width: 26px;
				height: 18px;
				margin-top: 8px;
			}
		}

		p,
		a {
			color: #0661B5;
			font-weight: 500;
			font-size: 18px;
		}

		.links {
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;
			gap: 0 1em;
			margin: 0 auto;
			width: 95%;

			div {
				display: flex;
				gap: 18px;
			}

			a {
				gap: 6px;
			}
		}

		a {
			display: flex;
			align-items: center;
			gap: 9px;
			position: relative;

			&::after {
				content: "";
				background-color: #0661B5;
				background-image: url(../images/work/arrow.svg);
				background-repeat: no-repeat;
				background-position: center;
				background-size: 13px auto;
				border-radius: 30px;
				display: block;
				width: 39px;
				height: 22px;
				transition: .3s;
			}

			&:hover::after {
				transform: translateX(8px);
			}
		}
	}

	.intro {
		margin-top: 37px;
	}
}

/* =================================
    レスポンシブ
================================= */
@media screen and (max-width: 1400px) {
	.work-section {
		padding: 174px 86px 146px;
	}
}

@media screen and (max-width: 1200px) {

	main {
		margin-top: 75px;
	}

	.btns {
		align-items: center;
		flex-flow: column;
		gap: 20px;

		a {
			gap: 52px;
			font-size: 28px;
			width: 344px;
			height: 95px;

			img {
				width: 95px;
				height: 95px;
			}
		}
	}

	.work-section {
		margin-top: 95px;
		padding: 102px 86px;
	}

	.work-item {
		flex-flow: column;

		img,
		>div {
			width: 100%;
		}
	}
}

@media screen and (max-width: 1000px) {
	.work-item {
		margin-top: 75px;

		.title {
			align-items: flex-start;
			flex-flow: column;
			border-bottom: none;
			padding-bottom: 0;

			.role {
				border-bottom: 1px solid #0661B5;
				font-size: 28px;
				padding-bottom: 14px;
				width: 100%;

				&::before {
					margin-top: 4px;
				}
			}
		}
	}
}

@media screen and (max-width: 767px) {
	.work-section {
		border: none !important;
		border-radius: 0;
		box-shadow: none;
		padding: 0;
		margin-top: 60px;
		width: 100%;

		h2 {
			position: relative;
			inset: 0;
			transform: none;
			font-size: 28px;
			padding: 25px 0;
			text-align: center;
			margin: 0 auto;
			width: 90%;
		}
	}

	.work-list {
		margin-top: 60px;

		>div {
			width: 90%;
		}
	}

	.work-item {
		margin-top: 65px;

		.intro {
			margin-top: 25px;
		}

		.content {
			padding: 52px 25px 27px;
			margin-top: 68px;

			>p {
				padding: 26px 30px;
				left: 50%;
				transform: translateX(-50%);
			}

			li {
				line-height: 1.875;

				span {
					display: none;
				}
			}

			span {
				display: block;
				margin: 1em 0 0 1em;
			}
		}
	}
}