/* =====================================
   ホーム画面専用スタイル (index.css)
   レスポンシブ対応、動的スケーリング対応
   ===================================== */

/* 共通セクションスタイル */
section {
	width: 100%;
	overflow: hidden;
}

/* フェードインアニメーション用 */
.section-fade {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-fade.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ============================
   Hero Section (ヒーローセクション)
   ============================ */
.hero-section {
	position: relative;
	height: calc(740px * var(--scale-factor));
	width: 100%;
}

.hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero-container {
	position: absolute;
	left: calc(80px * var(--scale-factor));
	top: calc(111px * var(--scale-factor));
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(40px * var(--scale-factor));
	width: auto;
	padding: 0;
	margin: 0;
}

.hero-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(24px * var(--scale-factor));
	width: calc(600px * var(--scale-factor));
}

.hero-title {
	font-family: var(--font-primary);
	font-size: calc(var(--font-size-heading-5) * var(--scale-factor));
	font-weight: bold;
	color: var(--color-white);
	text-align: center;
	line-height: 1.2;
	letter-spacing: calc(-0.56px * var(--scale-factor));
	width: 100%;
}

.hero-logo {
	position: relative;
	width: 100%;
	aspect-ratio: 768 / 333.405;
}

.hero-logo img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	pointer-events: none;
}

.hero-description {
	font-family: var(--font-primary);
	font-size: calc(var(--font-size-body-medium-large) * var(--scale-factor));
	font-weight: bold;
	color: var(--color-white);
	text-align: center;
	line-height: 1.5;
	width: 100%;
}

.hero-description p {
	margin: 0;
}

.store-badges {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: center;
}

.store-badge {
	display: block;
	transition: opacity 0.3s ease;
	flex-shrink: 0;
}

.store-badge:not(.store-badge-disabled):hover {
	opacity: 0.8;
}

.store-badge-disabled {
	cursor: default;
}

.store-badge:first-child {
	width: auto;
	height: calc(80px * var(--scale-factor));
}

.store-badge:last-child {
	width: auto;
	height: calc(80px * var(--scale-factor));
}

.store-badge img {
	height: 100%;
	object-fit: contain;
	pointer-events: none;
}

.device-image-overlay {
	position: absolute;
	right: 0;
	top: calc(500px * var(--scale-factor));
	width: calc(480px * var(--scale-factor));
	z-index: 100;
	pointer-events: none;
}

.device-image-overlay img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: right bottom;
}

/* ============================
   About Section
   ============================ */
.about-section {
	position: relative;
	width: 100%;
}

.about-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

.about-bg img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.about-bg img:nth-child(2) {
	filter: sepia(1) saturate(3) hue-rotate(10deg) brightness(0.8);
}

.about-container {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: calc(80px * var(--scale-factor));
	padding-top: calc(97px * var(--scale-factor));
	padding-bottom: calc(97px * var(--scale-factor));
}

.about-section .section-title {
	display: flex;
	flex-direction: column;
	gap: calc(16px * var(--scale-factor));
}

.about-section .section-title h2 {
	font-family: var(--font-secondary);
	font-size: calc(var(--font-size-heading-2) * var(--scale-factor));
	font-weight: 400;
	color: var(--color-white);
	line-height: 1.2;
	letter-spacing: calc(-0.96px * var(--scale-factor));
	width: calc(1334px * var(--scale-factor));
	margin: 0;
}

.about-content {
	display: flex;
	flex-direction: column;
	gap: calc(64px * var(--scale-factor));
	width: 100%;
}

.about-video {
	width: calc(960px * var(--scale-factor));
	height: calc(540px * var(--scale-factor));
	margin: 0 auto;
	border-radius: calc(40px * var(--scale-factor));
	overflow: hidden;
}

.about-video iframe,
.about-video img {
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	object-position: center;
	display: block;
}

.about-columns {
	display: flex;
	gap: calc(80px * var(--scale-factor));
	align-items: flex-start;
}

.about-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: calc(var(--spacing-gap-xxs) * var(--scale-factor));
}

.about-text p {
	font-family: var(--font-primary);
	font-size: calc(var(--font-size-body-medium) * var(--scale-factor));
	color: var(--color-white);
	margin: 0;
}

.about-images {
	flex: 1;
	min-width: 0;
	display: flex;
	gap: calc(32px * var(--scale-factor));
	align-items: flex-end;
	justify-content: flex-end;
}

.about-image-wrapper {
	flex: 1;
	min-width: 0;
	border-radius: calc(40px * var(--scale-factor));
	overflow: hidden;
	display: flex;
	gap: calc(8px * var(--scale-factor));
	align-items: flex-end;
	justify-content: flex-end;
}

.about-image-wrapper:first-child {
	padding-top: calc(74px * var(--scale-factor));
}

.about-image-wrapper:last-child {
	padding-bottom: calc(74px * var(--scale-factor));
}

.about-image-wrapper img {
	width: 100%;
	height: auto;
	display: block;
}

/* 共通セクションタイトル（about以外） */
.section-title h2 {
	font-family: var(--font-secondary);
	font-size: calc(var(--font-size-heading-1) * var(--scale-factor));
	font-weight: 400;
	color: var(--color-white);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

/* ============================
   Social Links Section
   ============================ */
.social-links-section {
	position: relative;
	padding-top: calc(24px * var(--scale-factor));
	padding-bottom: calc(24px * var(--scale-factor));
}

.social-links-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.social-links-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.social-links-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--color-overlay-dark);
	z-index: 1;
}

.social-links-container {
	position: relative;
	z-index: 2;
	display: flex;
	gap: calc(var(--spacing-gap-small) * var(--scale-factor));
	align-items: center;
	justify-content: center;
}

/* ============================
   Controls Section
   ============================ */
.controls-section {
	background-color: var(--color-off-white);
	padding-top: calc(var(--spacing-section-large) * var(--scale-factor));
	padding-bottom: calc(var(--spacing-section-large) * var(--scale-factor));
}

.controls-content {
	display: flex;
	gap: calc(var(--spacing-gap-large) * var(--scale-factor));
	align-items: center;
}

.controls-image {
	flex: 1;
	border-radius: var(--radius-large);
	overflow: hidden;
}

.controls-image img {
	width: 100%;
	height: auto;
	display: block;
}

.controls-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: calc(var(--spacing-gap-xxs) * var(--scale-factor));
}

.controls-text .section-title h2 {
	color: var(--color-base-brown);
	font-size: calc(var(--font-size-heading-3) * var(--scale-factor));
}

.controls-description {
	font-size: calc(var(--font-size-body-medium) * var(--scale-factor));
	color: var(--color-black);
}

.controls-description p {
	margin-bottom: 1em;
}

.controls-description p:last-child {
	margin-bottom: 0;
}

/* ============================
   Quality Section
   ============================ */
.quality-section {
	position: relative;
	padding-top: calc(var(--spacing-section-large) * var(--scale-factor));
	padding-bottom: calc(var(--spacing-section-large) * var(--scale-factor));
}

.quality-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.quality-bg img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.quality-bg img:nth-child(2) {
	filter: brightness(0.5) sepia(4) saturate(2) hue-rotate(80deg);
}

.quality-container {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: calc(var(--spacing-gap-large) * var(--scale-factor));
}

.quality-header {
	display: flex;
	gap: calc(var(--spacing-gap-large) * var(--scale-factor));
	align-items: flex-start;
}

.quality-title {
	flex: 1;
}

.quality-title h2 {
	font-family: var(--font-secondary);
	font-size: calc(var(--font-size-heading-3) * var(--scale-factor));
	color: var(--color-white);
	line-height: 1.2;
}

.quality-description {
	flex: 1;
	font-size: calc(var(--font-size-body-medium) * var(--scale-factor));
	color: var(--color-white);
}

.quality-description p {
	margin-bottom: 1em;
}

.quality-description p:last-child {
	margin-bottom: 0;
}

.quality-gallery {
	position: relative;
	height: calc(580px * var(--scale-factor));
}

.quality-row {
	position: absolute;
	display: flex;
	gap: calc(16px * var(--scale-factor));
	width: calc(2009px * var(--scale-factor));
}

.quality-row-top {
	bottom: 0;
	left: calc(-219px * var(--scale-factor));
}

.quality-row-bottom {
	top: 0;
	left: calc(-88px * var(--scale-factor));
}

.quality-image {
	width: calc(366px * var(--scale-factor));
	height: calc(282px * var(--scale-factor));
	border-radius: var(--radius-medium);
	overflow: hidden;
	flex-shrink: 0;
}

.quality-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ============================
   Volume Section
   ============================ */
.volume-section {
	background-color: var(--color-orange);
	padding-top: calc(var(--spacing-section-large) * var(--scale-factor));
	padding-bottom: calc(var(--spacing-section-large) * var(--scale-factor));
}

.volume-container {
	display: flex;
	flex-direction: column;
	gap: calc(var(--spacing-gap-small) * var(--scale-factor));
}

.volume-section .section-title h2 {
	font-family: var(--font-secondary);
	font-size: calc(var(--font-size-heading-3) * var(--scale-factor));
	color: var(--color-black);
}

.volume-content {
	display: flex;
	gap: calc(var(--spacing-gap-medium) * var(--scale-factor));
	align-items: flex-end;
}

.volume-text {
	flex: 0 0 calc(420px * var(--scale-factor));
	display: flex;
	flex-direction: column;
	gap: calc(var(--spacing-gap-xxs) * var(--scale-factor));
}

.volume-main-text {
	font-size: calc(var(--font-size-body-medium) * var(--scale-factor));
	color: var(--color-black);
}

.volume-main-text p {
	margin-bottom: 1em;
}

.volume-main-text p:last-child {
	margin-bottom: 0;
}

.volume-note {
	font-size: calc(var(--font-size-body-small) * var(--scale-factor));
	color: var(--color-black);
}

.volume-images {
	flex: 1;
	display: flex;
	gap: calc(var(--spacing-gap-xs) * var(--scale-factor));
	align-items: flex-end;
}

.volume-image-wrapper {
	flex: 1;
	border-radius: var(--radius-medium);
	overflow: hidden;
}

.volume-image-wrapper:first-child {
	padding-top: calc(80px * var(--scale-factor));
}

.volume-image-wrapper:last-child {
	padding-bottom: calc(80px * var(--scale-factor));
}

.volume-image-wrapper img {
	width: 100%;
	height: auto;
	display: block;
}

/* ============================
   Fun Section
   ============================ */
.fun-section {
	background-color: var(--color-off-white);
	padding-top: calc(var(--spacing-section-large) * var(--scale-factor));
	padding-bottom: calc(var(--spacing-section-large) * var(--scale-factor));
}

.fun-container {
	display: flex;
	flex-direction: column;
	gap: calc(var(--spacing-gap-large) * var(--scale-factor));
}

.fun-section .section-title h2 {
	font-family: var(--font-secondary);
	font-size: calc(var(--font-size-heading-3) * var(--scale-factor));
	color: var(--color-base-brown);
}

.fun-content {
	display: flex;
	gap: calc(var(--spacing-gap-medium) * var(--scale-factor));
	align-items: flex-end;
}

.fun-images {
	flex: 1;
	display: flex;
	gap: calc(var(--spacing-gap-xs) * var(--scale-factor));
	align-items: flex-end;
}

.fun-image-wrapper {
	flex: 1;
	border-radius: var(--radius-medium);
	overflow: hidden;
}

.fun-image-wrapper:first-child {
	padding-top: calc(80px * var(--scale-factor));
}

.fun-image-wrapper:last-child {
	padding-bottom: calc(80px * var(--scale-factor));
}

.fun-image-wrapper img {
	width: 100%;
	height: auto;
	display: block;
}

.fun-text {
	flex: 0 0 calc(520px * var(--scale-factor));
	font-size: calc(var(--font-size-body-medium) * var(--scale-factor));
	color: var(--color-black);
	line-height: 1.3;
}

.fun-text p {
	margin-bottom: 1em;
}

.fun-text p:last-child {
	margin-bottom: 0;
}

/* ============================
   CTA Section
   ============================ */
.cta-section {
	position: relative;
	padding-top: calc(var(--spacing-section-large) * var(--scale-factor));
	padding-bottom: calc(var(--spacing-section-large) * var(--scale-factor));
}

.cta-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.cta-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.cta-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--color-overlay-dark);
	z-index: 1;
}

.cta-container {
	position: relative;
	z-index: 2;
}

.cta-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(var(--spacing-gap-xs) * var(--scale-factor));
}

.cta-title h2 {
	font-family: var(--font-primary);
	font-size: calc(var(--font-size-heading-4) * var(--scale-factor));
	font-weight: bold;
	color: var(--color-white);
	text-align: center;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.cta-description {
	font-family: var(--font-primary);
	font-size: calc(var(--font-size-body-medium) * var(--scale-factor));
	font-weight: bold;
	color: var(--color-white);
	text-align: center;
	line-height: 1.5;
}

.cta-description p {
	margin: 0;
}

/* ============================
   モバイル対応 (max-width: 600px)
   ============================ */
@media (max-width: 600px) {

	/* Hero Section */
	.hero-section {
		height: auto;
		min-height: calc(900px * var(--scale-factor));
	}

	.hero-container {
		position: relative;
		left: 0;
		top: 0;
		transform: none;
		width: 100%;
		height: auto;
		padding-top: calc(80px * var(--scale-factor));
		padding-bottom: calc(80px * var(--scale-factor));
	}

	.hero-content {
		width: 100%;
		max-width: 100%;
	}

	.hero-logo {
		width: 80%;
	}

	.hero-description {
		font-size: calc(var(--font-size-body-large) * var(--scale-factor));
	}

	.device-image-overlay {
		top: calc(680px * var(--scale-factor));
	}

	/* About Section */
	.about-container {
		padding-top: calc(80px * var(--scale-factor));
		padding-bottom: calc(80px * var(--scale-factor));
	}

	.about-section .section-title h2 {
		width: 100%;
		font-size: calc(var(--font-size-heading-2) * var(--scale-factor));
	}

	.about-video {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
	}

	.about-columns {
		flex-direction: column;
	}

	.about-images {
		gap: calc(16px * var(--scale-factor));
	}

	.about-image-wrapper:first-child {
		padding-top: 0;
	}

	.about-text p {
		font-size: calc(var(--font-size-body-large) * var(--scale-factor));
	}

	/* Social Links */
	.social-links-container {
		flex-direction: column;
	}

	.banner-links {
		flex-direction: column;
		width: 100%;
	}

	/* Controls Section */
	.controls-content {
		flex-direction: column;
	}

	.controls-text .section-title h2 {
		font-size: calc(var(--font-size-heading-2) * var(--scale-factor));
	}

	.controls-description {
		font-size: calc(var(--font-size-body-large) * var(--scale-factor));
	}

	/* Quality Section */
	.quality-header {
		flex-direction: column;
	}

	.quality-title h2 {
		font-size: calc(var(--font-size-heading-2) * var(--scale-factor));
	}

	.quality-description {
		font-size: calc(var(--font-size-body-large) * var(--scale-factor));
	}

	.quality-gallery {
		position: relative;
		height: calc(400px * var(--scale-factor));
		width: calc(1712px * var(--scale-factor));
		overflow: visible;
	}

	.quality-row {
		position: absolute;
		display: flex;
		gap: calc(16px * var(--scale-factor));
		width: calc(1505px * var(--scale-factor));
		flex-wrap: nowrap;
	}

	.quality-row-top {
		top: 0;
		left: calc(-128px * var(--scale-factor));
		height: calc(180px * var(--scale-factor));
	}

	.quality-row-bottom {
		top: calc(196px * var(--scale-factor));
		left: calc(-190px * var(--scale-factor));
		height: calc(180px * var(--scale-factor));
	}

	.quality-image {
		height: 100%;
		width: auto;
		flex-shrink: 0;
	}

	.quality-image:nth-child(1) {
		aspect-ratio: 337.391 / 259.532;
	}

	.quality-image:nth-child(2) {
		aspect-ratio: 373.391 / 287.224;
	}

	.quality-image:nth-child(3) {
		aspect-ratio: 263.391 / 202.609;
	}

	.quality-image:nth-child(4) {
		aspect-ratio: 363.227 / 279.405;
	}

	.quality-row-bottom .quality-image:nth-child(1) {
		aspect-ratio: 295.391 / 227.224;
	}

	.quality-row-bottom .quality-image:nth-child(2) {
		aspect-ratio: 283.391 / 217.993;
	}

	.quality-row-bottom .quality-image:nth-child(3) {
		aspect-ratio: 294.573 / 226.595;
	}

	.quality-row-bottom .quality-image:nth-child(4) {
		aspect-ratio: 335.391 / 257.993;
	}

	/* Volume Section */
	.volume-content {
		flex-direction: column;
		align-items: stretch;
	}

	.volume-section .section-title h2 {
		font-size: calc(var(--font-size-heading-2) * var(--scale-factor));
	}

	.volume-main-text {
		font-size: calc(var(--font-size-body-large) * var(--scale-factor));
	}

	.volume-text {
		flex: 1;
	}

	.volume-image-wrapper:first-child {
		padding-top: 0;
	}

	.volume-note {
		font-size: calc(var(--font-size-body-medium) * var(--scale-factor));
	}

	/* Fun Section */
	.fun-content {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.fun-section .section-title h2 {
		font-size: calc(var(--font-size-heading-2) * var(--scale-factor));
	}

	.fun-text {
		flex: 1;
		font-size: calc(var(--font-size-body-large) * var(--scale-factor));
	}

	.fun-image-wrapper:first-child {
		padding-top: 0;
	}

	.cta-title h2 {
		font-size: calc(var(--font-size-heading-3) * var(--scale-factor));
	}

	.cta-description {
		font-size: calc(var(--font-size-body-large) * var(--scale-factor));
	}

}