/**
 * YELL Main Visual Slider - Styles
 * 
 * @package YELL
 */

/* ========================================
   メインビジュアルスライダー
   ======================================== */
.yl-main-visual-slider {
	position: relative;
	width: 100%;
	height: var(--slider-height-sp, 400px);
	overflow: hidden;
	background-color: #000;
}

@media (min-width: 768px) {
	.yl-main-visual-slider {
		height: var(--slider-height, 600px);
	}
}

.yl-slider-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
}

.yl-slider-track {
	position: relative;
	width: 100%;
	height: 100%;
}

/* ========================================
   スライド
   ======================================== */
.yl-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0.8s ease;
}

.yl-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

/* 背景画像 */
.yl-slide-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.yl-slide-background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* オーバーレイ */
.yl-slide-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.3) 0%,
		rgba(0, 0, 0, 0.5) 100%
	);
	z-index: 1;
}

/* コンテンツ */
.yl-slide-content {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	z-index: 2;
}

.yl-slide-content-inner {
	max-width: 800px;
	padding: 2rem;
	color: #ffffff;
	text-align: center;
}

@media (min-width: 768px) {
	.yl-slide-content-inner {
		padding: 3rem;
		text-align: left;
	}
}

/* タイトル */
.yl-slide-title {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 1rem;
	color: #ffffff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	animation: slideInUp 0.8s ease both 0.2s;
}

@media (min-width: 768px) {
	.yl-slide-title {
		font-size: 3rem;
	}
}

.yl-slide.is-active .yl-slide-title {
	animation: slideInUp 0.8s ease both 0.2s;
}

/* 説明文 */
.yl-slide-description {
	font-size: 1rem;
	line-height: 1.7;
	margin: 0 0 2rem;
	color: #f3f4f6;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
	.yl-slide-description {
		font-size: 1.25rem;
	}
}

.yl-slide.is-active .yl-slide-description {
	animation: slideInUp 0.8s ease both 0.4s;
}

/* ボタン */
.yl-slide-button-wrapper {
	animation: slideInUp 0.8s ease both 0.6s;
}

.yl-slide.is-active .yl-slide-button-wrapper {
	animation: slideInUp 0.8s ease both 0.6s;
}

.yl-slide-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 2rem;
	background-color: var(--yl-color-primary, #3B82F6);
	color: #ffffff;
	text-decoration: none;
	border-radius: 0.5rem;
	font-weight: 600;
	font-size: 1rem;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.yl-slide-button:hover {
	background-color: #2563EB;
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.yl-slide-button-icon {
	font-size: 1.25rem;
	transition: transform 0.3s ease;
}

.yl-slide-button:hover .yl-slide-button-icon {
	transform: translateX(4px);
}

/* ========================================
   ナビゲーションドット
   ======================================== */
.yl-slider-dots {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.75rem;
	z-index: 3;
}

.yl-slider-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.yl-slider-dot:hover {
	background-color: rgba(255, 255, 255, 0.8);
	transform: scale(1.2);
}

.yl-slider-dot.is-active {
	background-color: #ffffff;
	width: 32px;
	border-radius: 6px;
}

/* ========================================
   前後ボタン
   ======================================== */
.yl-slider-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	background-color: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	color: #1F2937;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.yl-slider-button:hover {
	background-color: #ffffff;
	transform: translateY(-50%) scale(1.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.yl-slider-button--prev {
	left: 1rem;
}

.yl-slider-button--next {
	right: 1rem;
}

@media (min-width: 768px) {
	.yl-slider-button {
		width: 56px;
		height: 56px;
	}

	.yl-slider-button--prev {
		left: 2rem;
	}

	.yl-slider-button--next {
		right: 2rem;
	}
}

/* モバイルでは小さく */
@media (max-width: 640px) {
	.yl-slider-button {
		width: 40px;
		height: 40px;
		font-size: 1.5rem;
	}
}

/* ========================================
   アニメーション
   ======================================== */
@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========================================
   フロントページ - 最新記事グリッド
   ======================================== */
.yl-front-page-section {
	padding: 4rem 0;
}

.yl-front-page-section-title {
	font-size: 2rem;
	font-weight: 700;
	text-align: center;
	margin: 0 0 3rem;
	color: var(--yl-color-text, #1F2937);
}

.yl-front-page-posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
}

.yl-front-page-post-item {
	background: #ffffff;
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.yl-front-page-post-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.yl-front-page-post-thumbnail img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.yl-front-page-post-content {
	padding: 1.5rem;
}

.yl-front-page-post-title {
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 0.75rem;
}

.yl-front-page-post-title a {
	color: var(--yl-color-text, #1F2937);
	text-decoration: none;
}

.yl-front-page-post-title a:hover {
	color: var(--yl-color-primary, #3B82F6);
}

.yl-front-page-post-meta {
	font-size: 0.875rem;
	color: #6B7280;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 640px) {
	.yl-front-page-posts {
		grid-template-columns: 1fr;
	}
}

