@charset "UTF-8";

/* ==========================================================================
   SoLU top page styles
   ========================================================================== */

/* Hero
   ------------------------------------------------------------------ */
.hero {
	position: relative;
	min-height: 560px;
	display: flex;
	align-items: center;
	background: url("../images/top.webp") center / cover no-repeat;
	color: var(--color-white);
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10, 20, 36, 0.8) 0%, rgba(10, 20, 36, 0.45) 32%, rgba(10, 20, 36, 0) 50%);
}

.hero__inner {
	position: relative;
	width: 100%;
	padding-inline: 80px;
}

.hero__title {
	font-size: 40px;
	font-weight: 700;
	line-height: 1.5;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero__lead {
	width: fit-content;
	padding-top: 12px;
	border-top: 2px solid #8db288;
	color: #8db288;
	font-size: 16px;
	font-weight: 500;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero__buttons {
	display: flex;
	gap: 16px;
	margin-top: 32px;
}

/* 安心ポイント
   ------------------------------------------------------------------ */
.points {
	background: var(--color-white);
	padding: 32px 0;
}

.points__list {
	display: flex;
	max-width: 1400px;
	margin-inline: auto;
	padding-inline: 20px;
}

.points__item {
	flex: 1;
	padding-inline: 32px;
}

.points__item + .points__item {
	border-left: 1px solid #dfe0e0;
}

.points__title {
	color: var(--color-green);
	font-size: 20px;
	font-weight: 700;
}

.points__title::before {
	content: "✓";
	margin-right: 8px;
	color: var(--color-green);
	font-weight: 700;
}

.points__text {
	margin-top: 8px;
	color: #868687;
	font-size: 13px;
}

/* サービス一覧
   ------------------------------------------------------------------ */
.services {
	background: var(--color-gray-bg);
	padding: 72px 0;
}

.services__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
	margin-top: 48px;
}

.services__card {
	position: relative;
	display: block;
	background: var(--color-white);
	border: 1px solid #ccc;
	border-radius: 6px;
}

.services__image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 5px 5px 0 0;
}

.services__name {
	padding: 24px 0 12px;
	color: var(--color-green);
	font-size: 20px;
	font-weight: 700;
	text-align: center;
}

.services__toggle {
	display: block;
	width: 100%;
	padding: 4px 0 20px;
	border: none;
	background: none;
	cursor: pointer;
}

.services__toggle::after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	border-right: 2px solid var(--color-green);
	border-bottom: 2px solid var(--color-green);
	transform: rotate(45deg);
	transition: transform 0.3s ease;
}

.services__card.is-open .services__toggle::after {
	transform: rotate(225deg) translate(-4px, -4px);
}

/* カード内アコーディオンメニュー（下のコンテンツに被せて展開） */
.services__menu {
	position: absolute;
	top: 100%;
	left: -1px;
	right: -1px;
	z-index: 10;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
}

.services__card.is-open .services__menu {
	max-height: 800px;
}

.services__menu-list {
	background: var(--color-white);
	border: 1px solid #ccc;
	border-top: none;
	border-radius: 0 0 6px 6px;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.services__menu-list li {
	border-top: 1px solid #dfe0e0;
}

.services__menu-list a {
	display: block;
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

.services__menu-list a:hover {
	color: var(--color-green);
	opacity: 1;
}

/* 施工実績
   ------------------------------------------------------------------ */
.works {
	padding: 72px 0;
}

.works__intro {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 48px;
}

.works__intro-logo {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
}

.works__intro-text {
	font-size: 14px;
}

.works__list-wrap {
	margin-top: 24px;
}

/* NEWS
   ------------------------------------------------------------------ */
.news {
	padding: 40px 0 96px;
}

.news__list {
	max-width: 900px;
	margin: 48px auto 0;
	display: grid;
	gap: 20px;
}

.news__item {
	min-width: 0;
}

.news__item a {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 20px 28px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: var(--color-white);
}

.news__meta {
	flex-shrink: 0;
	text-align: center;
}

.news__date {
	display: block;
	font-size: 14px;
	font-weight: 700;
}

.news__cat {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 14px;
	border-radius: 999px;
	background: #5b8def;
	color: var(--color-white);
	font-size: 10px;
	font-weight: 700;
}

.news__body {
	flex: 1;
	min-width: 0;
}

.news__title {
	font-size: 15px;
	font-weight: 700;
}

@media (max-width: 767px) {
	.news__excerpt {
		display: none;
	}

	.news__list {
		margin-top: 32px;
		gap: 8px;
	}

	.news__item a {
		position: relative;
		display: block;
		min-height: 78px;
		padding: 12px 44px 12px 16px;
		border-radius: 6px;
	}

	.news__meta {
		display: flex;
		align-items: center;
		gap: 12px;
		text-align: left;
	}

	.news__date {
		font-size: 14px;
	}

	.news__cat {
		margin-top: 0;
		padding: 2px 14px;
		font-size: 10px;
	}

	.news__title {
		margin-top: 8px;
		font-size: 13px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.news__arrow {
		position: absolute;
		top: 24px;
		right: 14px;
		font-size: 22px;
	}

	.works__list-wrap .solu-works {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		padding-bottom: 8px;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}

	.works__list-wrap .solu-works__item {
		flex: 0 0 100%;
		min-width: 0;
		scroll-snap-align: start;
	}

	.works__list-wrap .solu-works::-webkit-scrollbar {
		height: 4px;
	}

	.works__list-wrap .solu-works::-webkit-scrollbar-thumb {
		background: var(--color-green);
	}

	.news__excerpt {
	margin-top: 4px;
	overflow: hidden;
	color: #868687;
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.news__arrow {
	flex-shrink: 0;
	font-size: 20px;
}

	.hero {
		min-height: 535px;
	}

	.hero__inner {
		padding-inline: 24px;
	}

	.hero__title {
		font-size: 28px;
	}

	.hero__buttons {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.hero__buttons .c-btn {
		width: 70%;
		margin-inline: auto;
	}

	.services__list {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.points {
		padding: 0 20px;
	}

	.points__list {
		display: flex;
		flex-direction: column;
		padding-inline: 0;
	}

	.points__item {
		flex: none;
		padding: 14px 18px;
		border-bottom: 1px solid #dfe0e0;
	}

	.points__item + .points__item {
		border-left: 0;
	}

	.points__item:last-child {
		border-bottom: 0;
	}

	.hero::before {
		background: linear-gradient(90deg, rgba(10, 20, 36, 0.8) 0%, rgba(10, 20, 36, 0.45) 60%, rgba(10, 20, 36, 0) 100%);
	}
}
