/* ==========================================================================
   Top Page Template
   ========================================================================== */

.l-container{
		max-width: 100vw;
    padding-left: 0;
    padding-right: 0;
	 }

#body_wrap.page-template-page-templates-template-top-php,
#body_wrap.page-template-page-templates-template-top-php #content.l-content.l-container {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-bottom: 0 !important;
	margin: 0 !important;
}

.page-template-page-templates-template-top-php #sidebar,
.page-template-page-templates-template-top-php .p-mainVisual,
.page-template-page-templates-template-top-php .p-postSlider,
#body_wrap.page-template-page-templates-template-top-php #top_title_area,
.page-template-page-templates-template-top-php .p-pickupBanner,
#body_wrap.page-template-page-templates-template-top-php #breadcrumb,

.page-template-page-templates-template-top-php .top-page {
	width: 100%;
	max-width: none;
	overflow-x: clip;
}

.page-template-page-templates-template-top-php .top-page > section {
	width: 100%;
}

.top-page {
	--color-primary: #099ADB;
	--color-primary-dark: #005fa3;
	--color-green: #87B352;
	--color-navy: #0d1f3c;
	--color-text: #333;
	--color-gray: #888;
	--color-border: #ddd;
	--color-bg-light: #EBF9FF;
	--font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	--container-width: 1200px;
	font-family: var(--font-base);
	color: var(--color-text);
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}

.top-page *,
.top-page *::before,
.top-page *::after {
	box-sizing: border-box;
}

.top-page img {
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
}

.top-page a {
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s;
}

.top-page a:hover {
	opacity: 0.75;
}

.top-container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 40px;
}

/* Buttons
   -------------------------------------------------------------------------- */
.top-page .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 32px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	border: 2px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
	min-width: 300px;
}

.top-page .btn:hover {
	opacity: 1;
}

.top-page .btn-primary {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
}

.top-page .btn-primary:hover {
	background: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
}

.top-page .btn-outline {
	background: #fff;
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.top-page .btn-outline:hover {
	background: #f0f8ff;
}

.top-page .btn-white {
	background: #fff;
	color: var(--color-primary);
	border-color: #fff;
}

.top-page .btn-white:hover {
	background: #f5f5f5;
}

/* Section Heading
   -------------------------------------------------------------------------- */
.section-heading {
	text-align: center;
	margin-bottom: clamp(32px, 5vw, 48px);
}

.section-heading--left {
	text-align: left;
	margin-bottom: 24px;
	.section-heading__en{
		margin-left: 0;
	}
}

.section-heading__en {
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 900;
	line-height: 1.4;
	background: linear-gradient(90deg, #099ADB 0%, #099ADB 30%, #8DE522 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin: 0 auto 8px;
	letter-spacing: 0.02em;
	width: fit-content;
}

.section-heading__ja {
	font-size: 16px;
	font-weight: 700;
	color: var(--color-text);
	margin: 0;
}

.section-heading__ja--white {
	color: #fff;
}

.section-btn-wrap {
	text-align: center;
	margin-top: 48px;
}

/* Hero
   -------------------------------------------------------------------------- */
.top-hero {
	position: relative;
	overflow: hidden;
}

.top-hero__bg picture,
.top-hero__bg img {
	width: 100%;
	height: auto;
	display: block;
}

.top-hero__content {
	position: absolute;
	top: 25%;
	left: 8%;
	max-width: 600px;
}

.top-hero__title {
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 900;
	line-height: 1.6;
	color: var(--color-text);
	margin: 0;
	letter-spacing: 0.05em;
}

.top-hero__title .text-blue {
	color: var(--color-primary);
}

.top-hero__title .text-green {
	color: var(--color-green);
}

/* Our Strengths
   -------------------------------------------------------------------------- */
.top-strengths {
	padding: 100px 0 100px;
	background: #fff;
}

.top-strengths__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.top-strengths__card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	padding: 1rem;
}

.top-strengths__card-img img {
	width: 100%;
	object-fit: cover;
	display: block;
	margin-bottom: 1rem;
}

.top-strengths__card-title {
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 700;
	color: var(--color-primary);
	margin-bottom: 1rem;
	line-height: 1.6;
}

.top-strengths__card-text {
	font-size: clamp(14px, 2vw, 16px);
	color: var(--color-text);
	line-height: 1.8;
	margin-bottom: 1rem;
}

/* About Us
   -------------------------------------------------------------------------- */
.top-about {
	position: relative;
	padding: 80px 0;
	overflow: hidden;
	margin-bottom: 100px;
}

.top-about__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0 1rem;
}

.top-about__bg img {
	width: 100%;
	height: 100%;
	border-radius: 20px;
	object-fit: cover;
}


.top-about__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 60px;
	align-items: center;
	padding: 0 6rem;
}

.top-about__en {
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 900;
	color: #fff;
	margin: 0 0 8px;
	line-height: 1.1;
	text-align: center;
}

.top-about__ja {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	margin: 0;
	text-align: center;
}

.top-about__text {
	font-size: clamp(14px, 2vw, 16px);
	color: #fff;
	font-weight: 700;
	line-height: 2;
	margin: 0 0 32px;
}

/* Our Products
   -------------------------------------------------------------------------- */
.top-products {
	position: relative;
	padding: 120px 0 80px;
	background-color: var(--color-bg-light);
	background-image: url('../img/our-products_bg.png');
	background-repeat: repeat-x;
	background-position: top center;
	background-size: auto 120px;
	overflow: hidden;
}

.top-products .top-container {
	position: relative;
	z-index: 1;
}

.top-products__intro {
	text-align: center;
	font-size: clamp(14px, 2vw, 16px);
	margin: 0 auto 48px;
	max-width: 700px;
	line-height: 1.9;
}

.top-products__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.top-products__item {
	width: calc(16.666% - 17px);
	min-width: 150px;
	max-width: 180px;
	background: #fff;
	border: 2px solid var(--color-primary);
	border-radius: 12px;
	padding: 20px 12px 16px;
	text-align: center;
	flex-shrink: 0;
	box-shadow: 0 4px 4px rgba(0, 0, 0, 0.08);
}



.top-products__item-icon img {
	width: 100px;
	height: 100px;
	object-fit: contain;
	margin: 0 auto;
	display: block;
}

.top-products__item-label {
	font-size: 18px;
	font-weight: 700;
	color: var(--color-primary);
	margin: 0;
	line-height: 1.5;
}

/* News
   -------------------------------------------------------------------------- */
.top-news {
	padding: 100px 0;
	background: #fff;
}

.top-news__inner {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 80px;
	align-items: stretch;
}

.top-news__heading {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.top-news__heading .btn {
	align-self: flex-start;
}

.top-news__list {
	border-top: none;
}

.top-news__item {
	padding: 28px 0;
	border-bottom: 1px solid var(--color-border);
}

.top-news__item:first-child {
	padding-top: 0;
}

.top-news__meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
}

.top-news__tag {
	display: inline-block;
	background: #e8f4fc;
	color: var(--color-primary);
	font-size: 13px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 4px;
	line-height: 1.4;
	white-space: nowrap;
}

.top-news__date {
	font-size: 14px;
	color: var(--color-gray);
	white-space: nowrap;
}

.top-news__title {
	display: block;
	font-size: clamp(14px, 2vw, 16px);
	font-weight: 500;
	color: var(--color-text);
	line-height: 1.6;
}

a.top-news__title:hover {
	color: var(--color-primary);
	opacity: 1;
}

/* Recruit
   -------------------------------------------------------------------------- */
.top-recruit {
	position: relative;
	padding: 100px 0;
	overflow: hidden;
}

.top-recruit__bg {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 0;
	opacity: 0.4;
}

.top-recruit__bg picture,
.top-recruit__bg img {
	width: 100%;
	height: auto;
	display: block;
}

.top-recruit__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.top-recruit__img img {
	width: 100%;
	max-width: 520px;
	display: block;
}

.top-recruit__text {
	font-size: clamp(14px, 2vw, 16px);
	line-height: 2;
	margin: 0 0 32px;
}

/* Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.top-strengths__cards {
		grid-template-columns: 1fr;
		max-width: 480px;
		margin: 0 auto;
	}

	.top-about__inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.top-products__item {
		width: calc(33.333% - 14px);
		min-width: 140px;
	}

	.top-news__inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.top-recruit__inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.top-recruit__img {
		text-align: center;
	}
}

@media (max-width: 768px) {
	#top-page {
		display: flow-root;
	}

	.top-hero {
		margin-top: 80px;
	}

	.top-container {
		padding: 0 20px;
	}

	.top-strengths,
	.top-about,
	.top-products,
	.top-news,
	.top-recruit {
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.top-about {
		margin-bottom: 0;
	}
	.top-recruit {
		padding-top: 0;
		.section-heading__ja{
			text-align: center;
		}
	}
	.top-hero__content {
		left: 5%;
		right: 5%;
		top: 8%;
	}

	.top-products__item {
		width: calc(50% - 10px);
		min-width: 0;
		max-width: none;
	}

	.top-news__inner {
		display: flex;
		flex-direction: column;
		gap: 32px;
	}

	.top-news__heading {
		display: contents;
	}

	.top-news__heading .section-heading {
		order: 1;
	}

	.top-news__list {
		order: 2;
	}

	.top-news__heading .btn {
		order: 3;
		align-self: center;
		margin: 0;
	}

	.top-recruit__inner {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.top-recruit__body {
		display: contents;
	}

	.top-recruit__body .section-heading {
		order: 1;
	}

	.top-recruit__text {
		order: 2;
	}

	.top-recruit__img {
		order: 3;
	}

	.top-recruit__body .btn {
		order: 4;
	}
}

@media (max-width: 480px) {
	.top-products__grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.top-products__item {
		padding: 16px 8px 12px;
	}

	.top-products__item-icon img {
		width: 80px;
		height: 80px;
	}

	.top-products__item-label {
		font-size: 14px;
	}
}

/* Animation
   -------------------------------------------------------------------------- */
.top-hero__content {
	animation: top-hero-fade-in 1s ease 0.2s both;
}

.top-fade-up {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.top-fade-up.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@keyframes top-hero-fade-in {
	from {
		opacity: 0;
		transform: translateY(24px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.top-hero__content {
		animation: none;
	}

	.top-fade-up {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
