/* ================================
   SWELLデフォルトMVを非表示
   ================================ */

.home .p-mainVisual {
	display: none;
}

/* ================================
   SWELLのコンテンツ余白をリセット（TOPページのみ）
   ================================ */

.home #content {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.home .l-content {
	max-width: 100% !important;
	padding-top: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* ================================
   ヒーロー
   ================================ */

.p-home-hero {
	position: relative;
	min-height: calc(100dvh - var(--header-height, 0px));
	background-color: #1a2a4a;
	display: flex;
	align-items: flex-start;
	overflow: hidden;
}

.p-home-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
	transform-origin: center center;
	animation: pHomeHeroKenBurns 15s linear both;
	will-change: transform;
}

@keyframes pHomeHeroKenBurns {

	from {
		transform: scale(1);
	}

	to {
		transform: scale(1.08);
	}
}

@media (prefers-reduced-motion: reduce) {

	.p-home-hero__bg {
		animation: none;
	}
}

.p-home-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: clamp(80px, 14.8vw, 191px) 40px 0 clamp(40px, 5vw, 64px);
	color: #fff;
}

.js-enabled .p-home-hero__desc.js-fade-in {
	transition-delay: 0.6s;
}

.p-home-hero__title {
	font-family: 'Zen Old Mincho', serif;
	font-size: clamp(32px, 3.5vw, 52px);
	font-weight: 400;
	letter-spacing: 0.15em;
	line-height: 1.65;
	margin-bottom: 24px;
}

.p-home-hero__desc {
	font-size: 14px;
	letter-spacing: 0.05em;
	opacity: 0.9;
}

/* ================================
   人気ブログ
   ================================ */

.p-home-popular {
	padding: 160px 0;
	background: #F9F9F9;
	scroll-margin-top: 100px;
}

.p-home-popular__inner {
	max-width: var(--container_size);
	margin: 0 auto;
	padding: 0 var(--swl-pad_container);
}

.p-home-popular .c-page-title,
.p-home-biz-blog .c-page-title,
.p-home-case-blog .c-page-title,
.p-home-news .c-page-title {
	margin-bottom: 48px;
}

.p-home-popular__grid,
.p-home-biz-blog .p-blog__grid,
.p-home-case-blog .p-blog__grid {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-right: calc(var(--swl-pad_container) * -1);
	padding-right: var(--swl-pad_container);
}

.p-home-popular__grid .c-blog-card,
.p-home-biz-blog .p-blog__grid .c-blog-card,
.p-home-case-blog .p-blog__grid .c-blog-card {
	flex: 0 0 calc((100% - 48px) / 3);
}

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

	.p-home-popular__grid .c-blog-card,
	.p-home-biz-blog .p-blog__grid .c-blog-card,
	.p-home-case-blog .p-blog__grid .c-blog-card {
		flex: 0 0 calc((100% - 24px) / 2);
	}
}

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

	.p-home-popular__grid .c-blog-card,
	.p-home-biz-blog .p-blog__grid .c-blog-card,
	.p-home-case-blog .p-blog__grid .c-blog-card {
		flex: 0 0 calc(100% - 24px);
	}
}

/* ================================
   会社紹介
   ================================ */

.p-home-about {
	background: #fff;
	padding: 160px 0;
	scroll-margin-top: 100px;
}

.p-home-about__inner {
	max-width: var(--container_size);
	margin: 0 auto;
	padding: 0 var(--swl-pad_container);
}

.p-home-about__banner {
	background: var(--color_main);
	text-align: center;
	padding: 13px 0;
	margin-bottom: 64px;
}

.p-home-about__banner-text {
	font-size: 24px;
	color: #fff;
	font-weight: 600;
	white-space: pre-line;
}

.p-home-about__banner-text--sp {
	display: none;
}


.p-home-about__main {
	display: grid;
	grid-template-columns: 37% 1fr;
	gap: 64px;
	align-items: start;
	margin-bottom: 64px;
}

.p-home-about__media img {
	width: 100%;
	display: block;
}

.p-home-about__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.6;
	margin-bottom: 32px;
	color: #1a1a2e;
}

.p-home-about__body {
	line-height: 2;
}

.p-home-about__body p+p {
	margin-top: 16px;
}

.p-home-about__features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	margin-bottom: 32px;
}

.p-home-about__feature {
	background: #E9F3FA;
	padding: 32px 16px 28px;
	text-align: center;
}

.p-home-about__feature-icon {
	width: 48px;
	height: 48px;
	margin: 0 auto 24px;
}

.p-home-about__feature-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.p-home-about__feature-text {
	font-weight: 600;
	line-height: 1.7;
	white-space: pre-line;
}

.p-home-about__footer {
	text-align: center;
	line-height: 2;
}

@media (max-width: 768px) {
	.p-home-hero__title {
		font-size: 24px;
	}

	.p-home-hero {
		align-items: center;
		min-height: calc(100dvh - var(--header-height, 0px));
	}

	.p-home-hero__inner {
		padding-top: 0;
		padding-left: 24px;
		padding-right: 24px;
	}

	.p-home-about__banner-text--pc {
		display: none;
	}

	.p-home-about__banner-text--sp {
		display: block;
		font-size: 20px;
		white-space: pre-line;
	}

	.p-home-about__banner {
		margin-bottom: 32px;
	}

	.p-home-about__main {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.p-home-about__title {
		font-size: 18px;
	}

	.p-home-about__features {
		grid-template-columns: 1fr;
	}

	.p-home-about__body,
	.p-home-about__feature-text,
	.p-home-about__footer {
		font-size: 14px;
	}

	.p-home-links__desc {
		font-size: 14px;
	}

	.p-home-popular,
	.p-home-about,
	.p-home-biz-blog,
	.p-home-case-blog,
	.p-home-news,
	.p-home-links {
		padding-top: 80px;
		padding-bottom: 80px;
	}

	.p-home-banners {
		padding-top: 80px;
		padding-bottom: 80px;
	}
}

/* ================================
   ブログセクション（事業別・事案別共通）
   ================================ */

.p-home-biz-blog,
.p-home-case-blog {
	padding: 160px 0;
}

.p-home-case-blog {
	border-top: 1px solid #CCCCCC;
}

.p-home-biz-blog {
	background: #f5f5f5;
}

.p-home-case-blog {
	background: #f5f5f5;
}

.p-home-biz-blog__inner,
.p-home-case-blog__inner {
	max-width: var(--container_size);
	margin: 0 auto;
	padding: 0 var(--swl-pad_container);
}

/* 事業別ブログ：横スクロール */
.p-home-biz-blog .p-blog__tabs,
.p-home-case-blog .p-blog__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 48px;
}

.p-home-biz-blog .p-blog__tab,
.p-home-case-blog .p-blog__tab {
	display: inline-flex;
	align-items: center;
	padding: 4px 16px;
	border: 1px solid var(--color_main);
	border-radius: 2px;
	color: var(--color_main);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	background: transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.p-home-biz-blog .p-blog__tab.is-active,
.p-home-case-blog .p-blog__tab.is-active {
	background-color: var(--color_main);
	color: #fff;
}

@media (hover: hover) {

	.p-home-biz-blog .p-blog__tab:hover,
	.p-home-case-blog .p-blog__tab:hover {
		background-color: var(--color_main);
		color: #fff;
	}
}

.p-home-biz-blog .p-blog__tab:focus-visible,
.p-home-case-blog .p-blog__tab:focus-visible {
	outline: 2px solid var(--color_main);
	outline-offset: 2px;
}

/* グリッドとVIEW MOREボタンの余白 */
.p-home-biz-blog .p-blog__more,
.p-home-case-blog .p-blog__more,
.p-home-news .p-blog__more {
	margin-top: 48px;
}


/* ================================
   CTAバナー
   ================================ */

.p-home-cta-banner {
	position: relative;
	overflow: hidden;
	height: 400px;
}

.p-home-cta-banner__bg {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.p-home-cta-banner__text {
	font-family: 'Zen Old Mincho', serif;
	position: absolute;
	right: 12%;
	top: 50%;
	transform: translateY(-50%);
	color: #fff;
	font-size: 32px;
	line-height: 1.8;
}

@media (max-width: 768px) {
	.p-home-cta-banner {
		height: 250px;
	}

	.p-home-cta-banner__text {
		font-size: 24px;
		right: auto;
		left: 8%;
	}
}

/* ================================
   NEWS
   ================================ */

.p-home-news {
	padding: 160px 0 80px;
	background: #fff;
}

.p-home-news__inner {
	max-width: var(--container_size);
	margin: 0 auto;
	padding: 0 var(--swl-pad_container);
}

/* c-news-list 系スタイルは news.css（develop）に委ねる */

/* ================================
   3カラムリンク
   ================================ */

.p-home-links {
	padding: 80px 0 160px;
	background: #fff;
}

.p-home-links__image {
	overflow: hidden;
}

.p-home-links__image img {
	transition: transform 0.4s ease;
}

@media (hover: hover) {

	.p-home-links__item:hover .p-home-links__image img,
	.p-home-links__item:focus-within .p-home-links__image img {
		transform: scale(1.05);
	}

	.p-home-links__title {
		transition: color 0.3s ease;
	}

	.p-home-links__item:hover .p-home-links__title,
	.p-home-links__item:focus-within .p-home-links__title {
		color: var(--color_main);
	}
}

.p-home-links__inner {
	max-width: var(--container_size);
	margin: 0 auto;
	padding: 0 var(--swl-pad_container);
}

.p-home-links__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.p-home-links__item {
	background: #fff;
	display: flex;
	flex-direction: column;
}

.p-home-links__image img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	display: block;
}

.p-home-links__content {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.p-home-links__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: 16px;
}

.p-home-links__desc {
	line-height: 1.7;
	margin-bottom: 24px;
	flex: 1;
}

.p-home-links__content .c-btn-viewMore {
	width: 100%;
}

@media (max-width: 768px) {
	.p-home-links__grid {
		grid-template-columns: 1fr;
	}
}

/* ================================
   業種別バナー
   ================================ */

.p-home-banners {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: var(--container_size);
	margin: 0 auto;
	padding: 160px var(--swl-pad_container);
}

.p-home-banners__item {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 220px;
	text-decoration: none;
	overflow: hidden;
}

.p-home-banners__media {
	overflow: hidden;
}

.p-home-banners__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

@media (hover: hover) {

	.p-home-banners__item:hover .p-home-banners__media img,
	.p-home-banners__item:focus-visible .p-home-banners__media img {
		transform: scale(1.06);
	}

	.p-home-banners__cta {
		transition: transform 0.35s ease;
	}

	.p-home-banners__item:hover .p-home-banners__cta,
	.p-home-banners__item:focus-visible .p-home-banners__cta {
		transform: rotate(45deg) scale(1.15);
	}
}

.p-home-banners__item:focus-visible {
	outline: 2px solid var(--banner-color, var(--color_main));
	outline-offset: 4px;
}

.p-home-banners__media--empty {
	background: #1a2a4a;
}

.p-home-banners__body {
	background: var(--color_main);
	padding: 36px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	position: relative;
	overflow: hidden;
	color: #fff;
}

.p-home-banners__caption {
	font-size: 20px;
	font-weight: 500;
	text-align: center;
	letter-spacing: 0.08em;
	margin-bottom: 16px;
	opacity: 0.9;
}

.p-home-banners__title {
	font-size: 40px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 16px;
}

.p-home-banners__desc {
	line-height: 1.75;
	opacity: 0.9;
}

.p-home-banners__tags {
	display: flex;
	flex-wrap: wrap;
	margin-top: 16px;
}

.p-home-banners__tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 35px;
	padding: 0 20px;
	font-size: 16px;
	font-weight: 500;
	border: 1px solid #fff;
	color: #fff;
	background: transparent;
	letter-spacing: 0.04em;
}

.p-home-banners__tag:nth-child(even) {
	background: #fff;
	color: var(--banner-color, var(--color_main));
	border-color: #fff;
}

.p-home-banners__cta {
	position: absolute;
	bottom: -40px;
	right: -40px;
	width: 80px;
	height: 80px;
	background: #fff;
	transform: rotate(45deg);
}

.p-home-banners__cta-text {
	position: absolute;
	bottom: 9px;
	right: 0px;
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	white-space: nowrap;
	transform: rotate(-45deg);
	transform-origin: center;
}

@media (max-width: 768px) {
	.p-home-banners__item {
		grid-template-columns: 1fr;
		background-color: var(--banner-color, var(--color_main));
		position: relative;
		overflow: hidden;
	}

	.p-home-banners__media {
		padding: 16px 16px 0;
	}

	.p-home-banners__media img {
		aspect-ratio: 16 / 9;
		height: auto;
	}

	.p-home-banners__body {
		background: transparent;
		position: static;
		overflow: visible;
		padding: 16px 16px 24px;
	}

	.p-home-banners__cta {
		top: -40px;
		left: -40px;
		bottom: auto;
		right: auto;
	}

	.p-home-banners__cta-text {
		top: 9px;
		left: 0;
		bottom: auto;
		right: auto;
	}

	.p-home-banners__caption {
		font-size: 18px;
	}

	.p-home-banners__title {
		font-size: 28px;
	}

	.p-home-banners__desc {
		font-size: 14px;
	}
}