@charset "UTF-8";

/* ================================
   有限会社上華 - コーポレートサイト
   Renewal Stylesheet
================================ */

:root {
	--color-primary: #017737;
	--color-primary-dark: #015c2a;
	--color-accent: #fcc900;
	--color-accent2: #f98816;
	--color-text: #111;
	--color-text-light: #262626;
	--color-bg: #fff;
	--color-bg-alt: #f5f7f3;
	--color-border: #e3e7de;

	--font-base: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;

	--header-h: 88px;
	--container-w: 1080px;

	--ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   Reset / Base
================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
}

body {
	margin: 0;
	font-family: var(--font-base);
	color: var(--color-text);
	background-color: var(--color-bg);
	line-height: 1.8;
	text-align: justify;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1, h2, h3, p {
	margin: 0;
}

.container {
	width: 100%;
	max-width: var(--container-w);
	margin: 0 auto;
	padding: 0 24px;
}

/* ================================
   Header / Navigation
================================ */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-h);
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid transparent;
	z-index: 1000;
	transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
	border-bottom-color: var(--color-border);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
	max-width: var(--container-w);
	height: 100%;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.brand-mark {
	width: auto;
	height: 58px;
}

/* Menu toggle (hamburger) */
.menu-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	z-index: 1200;
}

.menu-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-primary);
	border-radius: 2px;
	transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 4px;
}

.site-nav a {
	display: inline-block;
	padding: 10px 16px;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--color-text);
	border-radius: 6px;
	transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-current {
	color: var(--color-primary);
	background-color: var(--color-bg-alt);
}

.site-nav a.nav-cta {
	margin-left: 6px;
	color: #fff;
	background-color: var(--color-primary);
}

.site-nav a.nav-cta:hover {
	background-color: var(--color-primary-dark);
	color: #fff;
}

.nav-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 20, 12, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
	z-index: 950;
}

.nav-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

/* ================================
   Hero
================================ */
.hero {
	position: relative;
	margin-top: var(--header-h);
	min-height: 62vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--color-primary) url("../img/main_titleBK01.png") center / cover no-repeat;
}

.hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(1, 92, 42, 0.72) 0%, rgba(1, 119, 55, 0.55) 55%, rgba(1, 92, 42, 0.78) 100%);
}

.hero-inner {
	position: relative;
	z-index: 2;
	max-width: 880px;
	margin: 0 auto;
	padding: 96px 24px;
	text-align: center;
}

.hero-eyebrow {
	display: inline-block;
	margin-bottom: 18px;
	padding: 6px 16px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: #1a1a1a;
	background: var(--color-accent);
	border-radius: 999px;
}

.hero-inner h1 {
	color: #fff;
	font-size: clamp(1.25rem, 6vw, 3rem);
	line-height: 1.65;
	font-weight: 700;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
	text-align: center;
}

/* ================================
   Page Header (inner pages)
================================ */
.page-header {
	position: relative;
	margin-top: var(--header-h);
	padding: 72px 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	background: var(--color-primary) url("../img/main_titleBK01.png") center / cover no-repeat;
}

.page-header::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(1, 92, 42, 0.78) 0%, rgba(1, 119, 55, 0.62) 55%, rgba(1, 92, 42, 0.82) 100%);
}

.page-header-inner {
	position: relative;
	z-index: 2;
}

.page-header-en {
	display: inline-block;
	margin-bottom: 14px;
	padding: 6px 16px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: #1a1a1a;
	background: var(--color-accent);
	border-radius: 999px;
}

.page-header h1 {
	color: #fff;
	font-size: clamp(1.75rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.5;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* ================================
   Section lead text
================================ */
.section-lead {
	max-width: 780px;
	margin: 0 auto;
	padding: 0 24px;
	text-align: center;
	font-size: clamp(1.125rem, 2.3vw, 1.375rem);
	line-height: 1.8;
	font-weight: 700;
	color: var(--color-text);
}

/* ================================
   Business cards
================================ */
.business-section {
	padding: 88px 0 20px;
}

.business-grid {
	max-width: var(--container-w);
	margin: 56px auto 0;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
}

.business-card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 16px 36px -22px rgba(1, 92, 42, 0.3);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.business-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 44px -18px rgba(1, 92, 42, 0.38);
}

.business-card-media img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.business-card-body {
	padding: 28px 26px 32px;
}

.business-card-body h1,
.business-card-body h2 {
	position: relative;
	margin-bottom: 16px;
	padding-bottom: 14px;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-primary);
}

.business-card-body h1::after,
.business-card-body h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 32px;
	height: 3px;
	background: var(--color-accent);
	border-radius: 2px;
}

.business-card-body p {
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.85;
	color: var(--color-text-light);
}

.business-detail {
	padding-top: 40px;
}

@media screen and (min-width: 700px) {
	.business-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ================================
   Achievements (system development track record)
================================ */
.achievements {
	padding: 40px 0 96px;
}

.achievements-head {
	max-width: 780px;
	margin: 0 auto 48px;
	padding: 0 24px;
	text-align: center;
}

.achievements-head h2 {
	position: relative;
	display: inline-block;
	padding-bottom: 10px;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--color-text);
}

.achievements-head h2::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 56px;
	height: 6px;
	border-radius: 3px;
	background: var(--color-accent);
}

.achievements-head p {
	margin-top: 28px;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--color-text-light);
}

.achievements-grid {
	max-width: var(--container-w);
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.achievement-card {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 14px;
	box-shadow: 0 12px 28px -20px rgba(1, 92, 42, 0.25);
}

.achievement-icon {
	flex-shrink: 0;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	overflow: hidden;
}

.achievement-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.achievement-body {
	flex: 1;
	min-width: 0;
}

.achievement-title {
	display: inline-block;
	margin-bottom: 12px;
	padding: 7px 16px;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	background: var(--color-primary);
	border-radius: 6px;
}

.achievement-list li {
	position: relative;
	padding-left: 16px;
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.7;
	color: var(--color-text-light);
}

.achievement-list li + li {
	margin-top: 4px;
}

.achievement-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.65em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-accent2);
}

.achievement-card.is-summary {
	grid-column: 1 / -1;
	align-items: center;
	background: var(--color-bg-alt);
}

.achievement-summary-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--color-text);
}

.achievement-summary-text {
	margin-top: 6px;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--color-text-light);
}

@media screen and (min-width: 700px) {
	.achievements-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ================================
   Flow diagram (system flow steps)
================================ */
.flow-section {
	padding: 88px 0 40px;
}

.flow-diagram {
	max-width: var(--container-w);
	margin: 56px auto 0;
	padding: 0 24px;
	display: flex;
	flex-direction: column;
}

.flow-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 22px 20px;
	color: #fff;
	font-size: 1.125rem;
	font-weight: 700;
	text-align: center;
	line-height: 1.5;
	border-radius: 8px;
}

.flow-step small {
	display: block;
	margin-top: 4px;
	font-size: 0.75rem;
	font-weight: 500;
	opacity: 0.9;
}

.flow-step .br-pc {
	display: none;
}

.flow-step--1 { background-color: #8cbf00; }
.flow-step--2 { background-color: #70b30e; }
.flow-step--3 { background-color: #54a71c; }
.flow-step--4 { background-color: #389b29; }
.flow-step--5 { background-color: #1c8f37; }
.flow-step--6 { background-color: #008345; }

.flow-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px 0;
	color: #b7bdb2;
}

.flow-arrow svg {
	width: 22px;
	height: 22px;
	transform: rotate(90deg);
}

/* ================================
   Process list (numbered steps)
================================ */
.process-list {
	max-width: 860px;
	margin: 72px auto 0;
	padding: 0 24px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.process-item {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 20px;
}

.process-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--color-primary);
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
}

.process-title {
	margin-bottom: 10px;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-text);
}

.process-text {
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.9;
	color: var(--color-text-light);
}

@media screen and (max-width: 480px) {
	.process-item {
		grid-template-columns: 40px 1fr;
		gap: 12px;
	}

	.process-num {
		width: 40px;
		height: 40px;
		font-size: 1.05rem;
	}

	.process-title {
		font-size: 1.1rem;
	}
}

@media screen and (min-width: 900px) {
	.flow-diagram {
		flex-direction: row;
		align-items: stretch;
	}

	.flow-step {
		flex: 1;
		padding: 28px 14px;
		font-size: 1rem;
	}

	.flow-arrow {
		padding: 0 4px;
	}

	.flow-arrow svg {
		transform: rotate(0deg);
	}

	.flow-step .br-pc {
		display: inline;
	}
}

/* ================================
   Company info table
================================ */
.info-table {
	max-width: 860px;
	margin: 56px auto 0;
	padding: 0 24px;
}

.info-table dl {
	display: grid;
	grid-template-columns: 1fr;
	border-top: 1px solid var(--color-border);
}

.info-table dt {
	padding: 18px 4px 4px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--color-primary);
}

.info-table dd {
	margin: 0;
	padding: 0 4px 18px;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.85;
	color: var(--color-text);
	border-bottom: 1px solid var(--color-border);
}

@media screen and (min-width: 640px) {
	.info-table dl {
		grid-template-columns: 180px 1fr;
	}

	.info-table dt,
	.info-table dd {
		padding: 22px 12px;
		border-bottom: 1px solid var(--color-border);
	}

	.info-table dt {
		font-size: 0.9rem;
	}
}

/* ================================
   Section note (small supporting text)
================================ */
.section-note {
	max-width: 780px;
	margin: 16px auto 0;
	padding: 0 24px;
	text-align: center;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--color-text-light);
}

/* ================================
   Map embed
================================ */
.map-embed {
	max-width: 860px;
	margin: 48px auto 0;
	padding: 0 24px;
}

.map-embed iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 12px;
	box-shadow: 0 16px 36px -22px rgba(1, 92, 42, 0.3);
}

/* ================================
   Intro sections
================================ */
.intro {
	padding: 96px 0 60px;
}

.intro-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: center;
	max-width: var(--container-w);
	margin: 0 auto;
	padding: 0 24px 88px;
}

.intro-row:last-child {
	padding-bottom: 0;
}

.intro-media img {
	width: 100%;
	border-radius: 14px;
	box-shadow: 0 20px 44px -18px rgba(1, 92, 42, 0.35);
}

.intro-body h1,
.intro-body h2 {
	position: relative;
	padding-left: 18px;
	margin-bottom: 18px;
	font-size: clamp(1.25rem, 2.4vw, 1.5rem);
	line-height: 1.5;
	font-weight: 700;
	color: var(--color-text);
	border-left: 10px solid var(--color-accent);
}

.intro-row.is-alt .intro-body h1,
.intro-row.is-alt .intro-body h2 {
	border-left-color: var(--color-primary);
}

.intro-body p {
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.9;
	color: var(--color-text-light);
}

/* ================================
   Page top button
================================ */
.page-top {
	position: fixed;
	right: 20px;
	bottom: 24px;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-primary);
	color: #fff;
	border-radius: 50%;
	box-shadow: 0 8px 20px -6px rgba(1, 92, 42, 0.5);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease), background-color 0.25s var(--ease);
	z-index: 900;
}

.page-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.page-top:hover {
	background: var(--color-primary-dark);
}

.page-top svg {
	width: 18px;
	height: 18px;
}

/* ================================
   Footer
================================ */
.site-footer {
	margin-top: 60px;
	padding: 56px 0 24px;
	background-color: var(--color-primary);
	color: #fff;
	border-top: 8px solid var(--color-accent);
}

.footer-inner {
	max-width: var(--container-w);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	text-align: center;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer-brand-mark {
	width: 230px;
	height: auto;
}

.footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 4px;
}

.footer-nav a {
	padding: 8px 14px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #fff;
	border-radius: 6px;
	transition: background-color 0.25s var(--ease);
}

.footer-nav a:hover {
	background-color: rgba(255, 255, 255, 0.14);
}

.copyright {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.75);
}

/* ================================
   Mobile navigation (< 900px)
================================ */
@media screen and (max-width: 899px) {
	.menu-toggle {
		display: flex;
	}

	.site-nav {
		position: fixed;
		top: 0;
		right: 0;
		height: 100vh;
		width: min(78%, 320px);
		background: #fff;
		padding: calc(var(--header-h) + 24px) 8px 24px;
		box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
		transform: translateX(100%);
		transition: transform 0.35s var(--ease);
		z-index: 1100;
		overflow-y: auto;
	}

	.site-nav.is-open {
		transform: translateX(0);
	}

	.site-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.site-nav a {
		padding: 14px 16px;
		border-radius: 8px;
	}

	.site-nav a.nav-cta {
		margin: 10px 8px 0;
		text-align: center;
	}
}

@media screen and (min-width: 900px) {
	.menu-toggle {
		display: none;
	}

	.nav-overlay {
		display: none;
	}
}

/* ================================
   Tablet / Desktop refinements
================================ */
@media screen and (min-width: 640px) {
	.intro-row {
		grid-template-columns: 1fr 1fr;
	}

	.intro-row.is-alt .intro-media {
		order: 2;
	}

	.intro-row.is-alt .intro-body {
		order: 1;
	}
}

@media screen and (min-width: 900px) {
	:root {
		--header-h: 112px;
	}

	.brand-mark {
		height: 74px;
	}

	.hero {
		min-height: 74vh;
	}

	.intro-row {
		gap: 64px;
	}

	.page-header {
		padding: 108px 24px;
	}
}
