/**
 * AWLL Front Page Custom Styles
 *
 * @package WordPress
 * @subpackage Twenty_Seventeen
 * @since AWLL 1.0
 */

/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
	--awll-primary: #5AB5B2;
	--awll-header-top: #2E5B61;
	--awll-header-middle: #357075;
	--awll-header-bottom: #3C7A7F;
	--awll-header-dark: #1F3A40;
	--awll-header-light: #E7F5F4;
	--awll-section-bg: #C6E4E2;
	--awll-accent-light: #EBF7F6;
	--awll-accent-warm: #F2A541;
	--awll-accent-warm-hover: #D98C32;
	--awll-text: #3B4E53;
	--awll-text-dark: #162024;
	--awll-text-light: #6b7a8c;
	--awll-text-offwhite: #F4F8F8;
	--awll-gray: #E7F5F4;
	--awll-white: #FFFFFF;
	--awll-spacing: 80px;
	--awll-spacing-sm: 40px;
	--transition-smooth: 0.25s ease;
	--transition-fast: 0.2s ease;
}

.awll-front-page {
	margin: 0;
	padding: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.awll-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--awll-white);
	overflow: hidden;
	margin-top: 0 !important;
	padding-top: 0 !important;
	margin-bottom: 0;
}

.awll-hero-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('/wp-content/uploads/hero-bg-pc.jpg');
	background-image: -webkit-image-set(
		url('/wp-content/uploads/hero-bg-pc.webp') 1x,
		url('/wp-content/uploads/hero-bg-pc.jpg') 1x
	);
	background-image: image-set(
		url('/wp-content/uploads/hero-bg-pc.webp') type('image/webp') 1x,
		url('/wp-content/uploads/hero-bg-pc.jpg') type('image/jpeg') 1x
	);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
}

.awll-hero-background::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(31, 58, 64, 0.6) 0%, rgba(90, 181, 178, 0.3) 100%);
	mix-blend-mode: multiply;
}

.awll-hero-content {
	position: relative;
	z-index: 10;
	max-width: 900px;
	padding: 0 20px;
}

.awll-hero-title {
	font-size: 3.6rem;
	font-weight: 700;
	margin-bottom: 20px;
	letter-spacing: 0.05em;
	line-height: 1.3;
}

.awll-hero-subtitle {
	font-size: 2rem;
	font-weight: 400;
	margin-bottom: 30px;
	letter-spacing: 0.1em;
}

.awll-hero-description {
	font-size: 1.15rem;
	line-height: 1.8;
	opacity: 0.9;
	max-width: 700px;
	margin: 0 auto;
}

/* ==========================================================================
   Section Common Styles
   ========================================================================== */
.awll-section {
	padding: var(--awll-spacing) 0;
}

.awll-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.awll-section-title {
	font-size: 2.8rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 60px;
	letter-spacing: 0.1em;
	position: relative;
	color: var(--awll-header-dark);
	line-height: 1.3;
}

.awll-section-title::after {
	content: '';
	display: block;
	width: 80px;
	height: 3px;
	background: var(--awll-primary);
	margin: 24px auto 0;
	border-radius: 1.5px;
	transition: width var(--transition-smooth);
}

.awll-section-footer {
	text-align: center;
	margin-top: 50px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.awll-button {
	display: inline-block;
	padding: 15px 40px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--awll-white);
	background: var(--awll-accent-warm);
	border: 2px solid var(--awll-accent-warm);
	border-radius: 50px;
	transition: all var(--transition-fast);
	letter-spacing: 0.05em;
	cursor: pointer;
	outline: none;
}

.awll-button:hover {
	background: var(--awll-accent-warm-hover);
	border-color: var(--awll-accent-warm-hover);
	color: var(--awll-white);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(242, 165, 65, 0.4);
}

.awll-button:focus {
	box-shadow: 0 0 0 4px rgba(90, 181, 178, 0.35);
}

.awll-button-primary {
	background: var(--awll-primary);
	border-color: var(--awll-primary);
	color: var(--awll-white);
}

.awll-button-primary:hover {
	background: var(--awll-header-dark);
	border-color: var(--awll-header-dark);
	box-shadow: 0 6px 20px rgba(31, 58, 64, 0.3);
}

/* ==========================================================================
   TOPICS Section
   ========================================================================== */
.awll-topics {
	background: #C6E4E2;
	background-color: #C6E4E2;
	border-top: 3px solid var(--awll-header-dark);
	position: relative;
}

.awll-topics::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient(180deg, rgba(31, 58, 64, 0.05) 0%, transparent 100%);
	pointer-events: none;
}

.awll-topics-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
}

.awll-topic-item {
	background: var(--awll-white);
	border-radius: 12px;
	border-top: 3px solid var(--awll-primary);
	box-shadow: 0 4px 16px rgba(31, 58, 64, 0.1);
	overflow: hidden;
	transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth);
}

.awll-topic-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	transition: color var(--transition-fast);
}

.awll-topic-item:hover {
	transform: translateY(-6px);
	background-color: #F5FBFB;
	box-shadow: 0 12px 36px rgba(31, 58, 64, 0.15);
}

.awll-topic-item:hover .awll-topic-title {
	color: var(--awll-primary);
}

.awll-topic-thumbnail {
	margin: 0;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #dfe5ea;
	overflow: hidden;
}

.awll-topic-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.awll-topic-image--placeholder {
	background: linear-gradient(135deg, #f4f7fa 0%, #e4e9ef 100%);
}

.awll-topic-meta {
	padding: 20px 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.awll-topic-date {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--awll-text-light);
	letter-spacing: 0.08em;
}

.awll-topic-title {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.6;
	color: var(--awll-text);
	margin: 0;
	transition: color var(--transition-fast);
}

.awll-topic-excerpt {
	font-size: 0.95rem;
	line-height: 1.8;
	color: var(--awll-text);
	margin: 0;
}

.awll-no-posts {
	text-align: center;
	color: #999;
	padding: 40px 0;
	font-size: 1rem;
}

/* ==========================================================================
   Company Section
   ========================================================================== */
.awll-company-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.awll-company-item {
	background: var(--awll-white);
	padding: 40px 30px;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.awll-company-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.awll-company-item-title {
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--awll-primary);
	border-bottom: 2px solid var(--awll-primary);
	padding-bottom: 10px;
}

.awll-company-item-content p {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--awll-text);
}

.awll-company-item-content ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.awll-company-item-content li {
	position: relative;
	padding-left: 25px;
	margin-bottom: 15px;
	line-height: 1.6;
}

.awll-company-item-content li::before {
	content: '●';
	position: absolute;
	left: 0;
	color: var(--awll-primary);
	font-size: 0.8rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.awll-services {
	background: #C6E4E2;
	background-color: #C6E4E2;
	border-top: 3px solid var(--awll-header-dark);
	position: relative;
}

.awll-services::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient(180deg, rgba(31, 58, 64, 0.05) 0%, transparent 100%);
	pointer-events: none;
}

.awll-services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
}

.awll-service-item {
	background: var(--awll-white);
	padding: 50px 30px;
	text-align: center;
	border-radius: 12px;
	border-top: 3px solid var(--awll-primary);
	box-shadow: 0 4px 16px rgba(31, 58, 64, 0.1);
	transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth);
}

.awll-service-item:hover {
	transform: translateY(-8px);
	background-color: #F5FBFB;
	box-shadow: 0 12px 36px rgba(31, 58, 64, 0.15);
}

.awll-service-item:hover .awll-service-icon {
	color: var(--awll-accent-warm);
}

.awll-service-icon {
	font-size: 3.5rem;
	color: var(--awll-primary);
	margin-bottom: 25px;
	transition: color var(--transition-smooth);
}

.awll-service-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--awll-header-dark);
}

.awll-service-description {
	font-size: 1rem;
	line-height: 1.85;
	color: var(--awll-text);
}

/* ==========================================================================
   Recruit Section
   ========================================================================== */
.awll-recruit {
	background: var(--awll-primary);
	background-color: var(--awll-primary);
	color: var(--awll-white);
}

.awll-recruit .awll-section-title {
	color: var(--awll-white);
}

.awll-recruit .awll-section-title::after {
	background: var(--awll-white);
}

.awll-recruit-content {
	max-width: 900px;
	margin: 0 auto;
}

.awll-recruit-message {
	text-align: center;
	margin-bottom: 50px;
}

.awll-recruit-subtitle {
	font-size: 2rem;
	font-weight: 600;
	margin-bottom: 20px;
}

.awll-recruit-message p {
	font-size: 1.1rem;
	line-height: 1.8;
	opacity: 0.95;
}

.awll-recruit-positions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.awll-recruit-position {
	position: relative;
	padding: 48px 38px;
	border-radius: 16px;
	text-align: center;
	transition: transform var(--transition-smooth), background var(--transition-smooth), box-shadow var(--transition-smooth);
	overflow: hidden;
}

/* Badge (left-top corner) */
.awll-recruit-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	z-index: 2;
}

.awll-recruit-badge--teal {
	background: #79C8B6;
	box-shadow: 0 2px 8px rgba(121, 200, 182, 0.4);
}

.awll-recruit-badge--coral {
	background: #F2A8A0;
	box-shadow: 0 2px 8px rgba(242, 168, 160, 0.4);
}

/* Icon styling */
.awll-recruit-icon {
	font-size: 2.5rem;
	margin-bottom: 20px;
	transition: transform var(--transition-smooth);
}

/* Both cards use pale cyan styling */
.awll-recruit-position--mid-career,
.awll-recruit-position--side-job {
	background: #E9F6FF;
	border: 2px solid #8CC5E7;
	color: #2A4C5F;
	transition: transform var(--transition-smooth), background var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.awll-recruit-position--mid-career .awll-recruit-icon,
.awll-recruit-position--side-job .awll-recruit-icon {
	color: #79C8B6;
}

.awll-recruit-position--mid-career h4,
.awll-recruit-position--side-job h4 {
	color: #2A4C5F;
	transition: color var(--transition-smooth);
}

/* Hover: Warm ivory styling */
.awll-recruit-position--mid-career:hover,
.awll-recruit-position--side-job:hover {
	background: #F7F3EA;
	border-color: #E0C89B;
	transform: translateY(-8px);
	box-shadow: 0 12px 32px rgba(63, 74, 79, 0.15);
}

.awll-recruit-position--mid-career:hover h4,
.awll-recruit-position--side-job:hover h4 {
	color: #3F4A4F;
}

.awll-recruit-position--mid-career:hover .awll-recruit-icon,
.awll-recruit-position--side-job:hover .awll-recruit-icon {
	transform: scale(1.1);
}

/* Common card text styling */
.awll-recruit-position h4 {
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 16px;
	line-height: 1.4;
}

.awll-recruit-position p {
	font-size: 1rem;
	line-height: 1.7;
	margin: 0;
	opacity: 0.92;
}

.awll-recruit .awll-button {
	background: var(--awll-white);
	color: var(--awll-primary);
	border-color: var(--awll-white);
	transition: all var(--transition-fast);
}

.awll-recruit .awll-button:hover {
	background: var(--awll-accent-warm);
	color: var(--awll-white);
	border-color: var(--awll-accent-warm);
	box-shadow: 0 6px 20px rgba(242, 165, 65, 0.4);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media screen and (max-width: 768px) {
	:root {
		--awll-spacing: 60px;
		--awll-spacing-sm: 30px;
	}

	.awll-hero-background {
		background-image: url('/wp-content/uploads/hero-bg-sp.jpg');
		background-image: -webkit-image-set(
			url('/wp-content/uploads/hero-bg-sp.webp') 1x,
			url('/wp-content/uploads/hero-bg-sp.jpg') 1x
		);
		background-image: image-set(
			url('/wp-content/uploads/hero-bg-sp.webp') type('image/webp') 1x,
			url('/wp-content/uploads/hero-bg-sp.jpg') type('image/jpeg') 1x
		);
	}

	.awll-hero-title {
		font-size: 2.5rem;
	}

	.awll-hero-subtitle {
		font-size: 1.5rem;
	}

	.awll-hero-description {
		font-size: 1rem;
	}

	.awll-section-title {
		font-size: 2.2rem;
		margin-bottom: 40px;
	}

	.awll-topics-list {
		gap: 30px;
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	}

	.awll-topic-meta {
		padding: 18px 20px 24px;
	}

	.awll-topic-title {
		font-size: 1rem;
	}

	.awll-topic-excerpt {
		font-size: 0.9rem;
	}

	.awll-company-grid,
	.awll-services-grid,
	.awll-recruit-positions {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.awll-recruit-subtitle {
		font-size: 1.6rem;
	}

	/* Recruit cards - lighter styling on mobile */
	.awll-recruit-position {
		padding: 36px 28px;
	}

	.awll-recruit-position--mid-career,
	.awll-recruit-position--side-job {
		border-width: 1px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	}

	.awll-recruit-position--mid-career:hover,
	.awll-recruit-position--side-job:hover {
		transform: translateY(-4px);
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	}

	.awll-recruit-icon {
		font-size: 2.2rem;
		margin-bottom: 16px;
	}

	.awll-recruit-position h4 {
		font-size: 1.25rem;
	}

	.awll-recruit-position p {
		font-size: 0.95rem;
	}

	.awll-recruit-badge {
		width: 10px;
		height: 10px;
		top: 12px;
		left: 12px;
	}
}

@media screen and (max-width: 480px) {
	.awll-hero-title {
		font-size: 2rem;
	}

	.awll-hero-subtitle {
		font-size: 1.2rem;
	}

	.awll-section-title {
		font-size: 1.8rem;
	}

	.awll-button {
		padding: 12px 30px;
		font-size: 0.9rem;
	}
}
