/* ===========================================
   御用聞キ屋×楽天 イヤーエンドキャンペーン LP CSS
   =========================================== */

/* --- 共通変数 --- */
:root {
	--goyo-red: #c41e3a;
	--goyo-red-light: #e8394d;
	--goyo-gray: #f1f1f1;
	--goyo-gray-dark: #666;
	--goyo-border: #ddd;
	--goyo-text: #333;
}

/* --- キービジュアル --- */
.yearend-hero {
	width: 100%;
	/* margin-bottom: 40px; */
}

/* PC版キービジュアル（16:9） */
.yearend-hero-inner-pc {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	/* 16:9 aspect ratio */
	background: var(--goyo-gray);
	overflow: hidden;
}

/* SP版キービジュアル（1:1 正方形） */
.yearend-hero-inner-sp {
	position: relative;
	width: 100%;
	padding-top: 100%;
	/* 1:1 aspect ratio */
	background: var(--goyo-gray);
	overflow: hidden;
}

.yearend-hero-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yearend-hero-placeholder {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 24px;
	color: var(--goyo-gray-dark);
}

/* --- セクション共通 --- */
.yearend-section {
	padding: 40px 0;
}

.yearend-section-title {
	text-align: center;
	font-size: 28px;
	font-weight: bold;
	color: var(--goyo-text);
	margin-bottom: 20px;
}

.yearend-section-box {
	background: #fff;
	border: 2px solid var(--goyo-red);
	border-radius: 8px;
	padding: 30px;
	margin-bottom: 30px;
}

.register-link {
	display: inline-block;
	color: rgb(255, 255, 255);
	font-size: 12px;
	font-weight: bold;
	text-decoration: none;
	background: var(--goyo-red);
	padding: 8px 20px;
	width: 100%;
	max-width: 260px;
	border-radius: 30px;
	transition: background 0.2s;
}

.register-link:hover {
	background: var(--goyo-red-light);
	color: #fff;
	text-decoration: none;
}

.register-link-description {
	margin-top: 14px;
	margin-bottom: 6px;
}

/* --- キャンペーン期間セクション --- */
.yearend-period-title {
	text-align: center;
	font-size: 26px;
	font-weight: bold;
	color: var(--goyo-text);
	margin-bottom: 10px;
}

.yearend-period-dates {
	text-align: center;
	font-size: 32px;
	font-weight: bold;
	color: var(--goyo-red);
	margin-bottom: 10px;
}

.yearend-period-note {
	text-align: center;
	font-size: 16px;
	font-weight: bold;
	color: var(--goyo-red);
	margin-bottom: 30px;
}

/* --- タイムライン（PC版：横方向） --- */
.yearend-timeline {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	position: relative;
	padding: 40px 0 40px;
	margin: 0 auto;
	max-width: 800px;
}

.yearend-timeline::before {
	content: '';
	position: absolute;
	top: 90px;
	left: 10%;
	right: 10%;
	height: 2px;
	border-top: 2px dashed var(--goyo-red);
}

.yearend-timeline-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 1;
	flex: 1;
	max-width: 180px;
}

.yearend-timeline-date-box {
	background: #fff;
	border: 2px solid var(--goyo-red);
	border-radius: 8px;
	padding: 8px 12px;
	text-align: center;
	margin-bottom: 10px;
}

.yearend-timeline-year {
	font-size: 12px;
	color: var(--goyo-red);
}

.yearend-timeline-date {
	font-size: 24px;
	font-weight: bold;
	color: var(--goyo-red);
}

.yearend-timeline-label-box {
	background: var(--goyo-red);
	color: #fff;
	border-radius: 20px;
	padding: 8px 16px;
	font-size: 13px;
	text-align: center;
	white-space: nowrap;
}

/* --- タイムライン（SP版：縦方向） --- */
@media (max-width: 767px) {
	.yearend-timeline {
		flex-direction: column;
		align-items: stretch;
		padding: 20px;
	}

	.yearend-timeline::before {
		top: 0;
		bottom: 0;
		left: 50px;
		right: auto;
		width: 2px;
		height: auto;
		border-top: none;
		border-left: 2px dashed var(--goyo-red);
	}

	.yearend-timeline-item {
		flex-direction: row;
		align-items: center;
		max-width: 100%;
		margin-bottom: 20px;
	}

	.yearend-timeline-item:last-child {
		margin-bottom: 0;
	}

	.yearend-timeline-date-box {
		margin-bottom: 0;
		margin-right: 20px;
		min-width: 80px;
	}

	.yearend-timeline-label-box {
		white-space: normal;
	}
}

/* --- 補足テキスト --- */
.yearend-notes {
	background: var(--goyo-gray);
	padding: 20px;
	border-radius: 8px;
	margin-top: 30px;
}

.yearend-notes ul {
	list-style: disc;
	padding-left: 20px;
	margin: 0;
}

.yearend-notes li {
	margin-bottom: 8px;
	font-size: 14px;
	color: var(--goyo-text);
}

.yearend-notes li:last-child {
	margin-bottom: 0;
}

.yearend-notes .text-red {
	color: var(--goyo-red);
}

/* --- おすすめ商品セクション --- */
.yearend-products-tier {
	margin-bottom: 30px;
}

.yearend-products-tier-label {
	font-size: 16px;
	font-weight: bold;
	color: var(--goyo-text);
	padding-left: 10px;
	border-left: 4px solid var(--goyo-red);
	margin-bottom: 15px;
}

.yearend-products-grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -8px;
}

.yearend-product-item {
	width: calc(16.666% - 16px);
	margin: 8px;
}

@media (max-width: 991px) {
	.yearend-product-item {
		width: calc(33.333% - 16px);
	}
}

@media (max-width: 767px) {
	.yearend-product-item {
		width: calc(50% - 16px);
	}
}

.yearend-product-link {
	display: block;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yearend-product-link:hover {
	transform: scale(1.03);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.yearend-product-box {
	aspect-ratio: 1;
	border-radius: 4px;
	border: 1px solid #e5e5e5;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	overflow: hidden;
}

.yearend-product-link:hover .yearend-product-box {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.yearend-product-noimage {
	color: var(--goyo-gray-dark);
	font-size: 12px;
}

.yearend-product-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 2px;
}

/* 楽天市場ボタン */
.yearend-btn-shop {
	display: inline-block;
	background: var(--goyo-red);
	color: #fff;
	padding: 15px 40px;
	border-radius: 30px;
	font-size: 16px;
	font-weight: bold;
	text-decoration: none;
	transition: background 0.2s ease;
}

.yearend-btn-shop:hover {
	background: var(--goyo-red-light);
	color: #fff;
	text-decoration: none;
}

.yearend-btn-wrapper {
	text-align: center;
	margin-top: 30px;
}

/* --- ご利用方法セクション --- */
.yearend-howto {
	background: var(--goyo-gray);
	padding: 50px 0;
}

.yearend-steps {
	display: flex;
	justify-content: center;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 20px;
}

.yearend-step {
	flex: 1;
	max-width: 280px;
	text-align: center;
	padding: 25px 20px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #eee;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.yearend-step-icon-wrapper {
	position: relative;
	margin-bottom: 15px;
}

.yearend-step-number {
	position: absolute;
	top: -40px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--goyo-red);
	color: #fff;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: bold;
	z-index: 2;
}

/* アイコン枠：正方形・白背景・ボーダーなし */
.yearend-step-icon {
	width: 100px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	background: #fff;
}

.yearend-step-icon-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.yearend-step-icon-noimage {
	font-size: 11px;
	color: var(--goyo-gray-dark);
	border: 1px dashed var(--goyo-gray-dark);
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.yearend-step-title {
	font-size: 14px;
	font-weight: bold;
	color: var(--goyo-text);
	line-height: 1.5;
	margin-top: 10px;
}

.yearend-step-desc {
	font-size: 12px;
	color: var(--goyo-gray-dark);
	margin-top: 8px;
	line-height: 1.5;
}

@media (max-width: 767px) {
	.yearend-steps {
		flex-direction: column;
		align-items: center;
	}

	.yearend-step {
		max-width: 100%;
		width: 100%;
	}
}

/* --- キャンペーン条件詳細セクション --- */
.yearend-details {
	padding: 50px 0;
}

.yearend-details-box {
	background: #fff;
	padding: 30px;
}

.yearend-details h2 {
	font-size: 20px;
	font-weight: bold;
	color: var(--goyo-text);
	margin-top: 30px;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--goyo-red);
}

.yearend-details h2:first-child {
	margin-top: 0;
}

.yearend-details-intro {
	margin-bottom: 15px;
	font-size: 14px;
}

/* ルールテーブル */
.rule_table_wrapper {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.rule_table {
	min-width: 800px;
	width: 100%;
	background-color: #f1f1f1;
	border-collapse: collapse;
}

.rule_table tr td {
	padding: 12px 6px 0px 6px;
	text-align: left;
	vertical-align: top;
	font-size: 10pt;
	border-bottom: 1px solid silver;
}

.rule_table tr:last-child td {
	border-bottom: none;
}

.rule_table tr td:first-child {
	min-width: 100px;
	font-weight: bold;
}

.rule_table tr td p {
	margin-top: 0px;
	margin-bottom: 12px;
	line-height: 1.6em;
}

.rule_table a {
	color: var(--goyo-red);
}

/* --- レスポンシブ調整 --- */
@media (max-width: 767px) {
	.yearend-section-title {
		font-size: 22px;
	}

	.yearend-period-title {
		font-size: 20px;
	}

	.yearend-period-dates {
		font-size: 26px;
	}

	.yearend-section-box {
		padding: 20px 15px;
	}

	.yearend-details-box {
		padding: 20px 15px;
	}

	.yearend-details h2 {
		font-size: 18px;
	}
}

/* --- PC/SP表示切り替え（既存CSSの補完） --- */
.sp_hide {
	display: block;
}

.pc_hide {
	display: none;
}

@media (max-width: 767px) {
	.sp_hide {
		display: none;
	}

	.pc_hide {
		display: block;
	}
}