/* 家具デモ — LPと同系トーン（#333 / #f9f8f6 / #e2ded0） */
:root {
	--ink: #333;
	--bg: #f9f8f6;
	--line: #e2ded0;
	--white: #fff;
	/* 取り扱い商品・Instagram など主要ブロックの共通最大幅 */
	--fdemo-content-max: 72rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body.fdemo-body {
	margin: 0;
	font-family: "Noto Sans JP", sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.65;
}

.fdemo-skip {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.fdemo-inner {
	max-width: var(--fdemo-content-max);
	margin: 0 auto;
	padding: 0 1rem;
}

@media (min-width: 768px) {
	.fdemo-inner {
		padding: 0 1.5rem;
	}
}

/* Header */
.fdemo-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(249, 248, 246, 0.95);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(8px);
}

.fdemo-header__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
}

.fdemo-logo {
	font-family: "Noto Serif JP", serif;
	font-weight: 600;
	font-size: 1.125rem;
	color: var(--ink);
	text-decoration: none;
	letter-spacing: 0.04em;
}

.fdemo-logo:hover {
	opacity: 0.85;
}

.fdemo-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fdemo-nav a {
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(51, 51, 51, 0.72);
	text-decoration: none;
}

.fdemo-nav a:hover,
.fdemo-nav a.is-active {
	color: var(--ink);
}

.fdemo-nav a.is-active {
	font-weight: 600;
	border-bottom: 2px solid var(--ink);
	padding-bottom: 2px;
}

/* Main */
.fdemo-main {
	min-height: 60vh;
}

/* メインビュー（ファーストビュー・画面いっぱいに近い高さ） */
.fdemo-mv {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 3.5rem);
	min-height: calc(100dvh - 3.5rem);
	padding: 2.5rem 0 5rem;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
}

/* 背景動画 + テキスト可読用オーバーレイ */
.fdemo-mv__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	background:
		linear-gradient(145deg, rgba(249, 248, 246, 0.96) 0%, rgba(255, 255, 255, 0.75) 42%, rgba(226, 222, 208, 0.55) 100%),
		radial-gradient(ellipse 80% 60% at 70% 40%, rgba(226, 222, 208, 0.45) 0%, transparent 55%);
}

.fdemo-mv__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.fdemo-mv__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			145deg,
			rgba(249, 248, 246, 0.88) 0%,
			rgba(255, 255, 255, 0.52) 44%,
			rgba(234, 230, 218, 0.45) 100%
		),
		radial-gradient(ellipse 90% 65% at 50% 38%, rgba(255, 255, 255, 0.42) 0%, transparent 58%);
}

.fdemo-mv__content {
	position: relative;
	z-index: 1;
	width: 100%;
	text-align: center;
	max-width: 40rem;
}

.fdemo-mv__label {
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(51, 51, 51, 0.55);
	margin: 0 0 1rem;
	font-weight: 600;
}

.fdemo-mv h1 {
	font-family: "Noto Serif JP", serif;
	font-size: clamp(1.85rem, 5.5vw, 2.85rem);
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 1.25rem;
	color: var(--ink);
}

.fdemo-mv__br {
	display: none;
}

@media (min-width: 480px) {
	.fdemo-mv__br {
		display: inline;
	}
}

.fdemo-mv__lead {
	font-size: clamp(0.95rem, 2.2vw, 1.1rem);
	color: rgba(51, 51, 51, 0.78);
	margin: 0 auto 2rem;
	max-width: 32rem;
	line-height: 1.75;
}

.fdemo-mv__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	justify-content: center;
}

.fdemo-mv__scroll {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	color: rgba(51, 51, 51, 0.45);
	text-decoration: none;
	transition: color 0.15s ease;
}

.fdemo-mv__scroll:hover {
	color: var(--ink);
}

.fdemo-mv__scroll-label {
	text-transform: uppercase;
}

.fdemo-mv__scroll-icon {
	width: 1.25rem;
	height: 1.25rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-top: -0.25rem;
	opacity: 0.75;
}

/* コンセプト（トップ用ティーザー） */
.fdemo-concept-teaser {
	background: var(--white);
	border-bottom: 1px solid var(--line);
}

.fdemo-concept-teaser__grid {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 900px) {
	.fdemo-concept-teaser__grid {
		grid-template-columns: 1.05fr 0.95fr;
		gap: 3rem;
	}
}

.fdemo-concept-teaser__text {
	text-align: left;
}

.fdemo-concept-teaser__lead {
	font-size: 1.05rem;
	font-weight: 500;
	color: rgba(51, 51, 51, 0.88);
	margin: 0 0 1rem;
	line-height: 1.7;
}

.fdemo-concept-teaser__body {
	font-size: 0.95rem;
	color: rgba(51, 51, 51, 0.75);
	margin: 0 0 1.5rem;
	line-height: 1.75;
}

.fdemo-concept-teaser__visual {
	border-radius: 1rem;
	border: 1px solid var(--line);
	overflow: hidden;
	background: linear-gradient(160deg, var(--line) 0%, #f5f3ed 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.fdemo-concept-teaser__visual-inner {
	display: block;
	width: 100%;
	line-height: 0;
}

.fdemo-concept-teaser__visual-inner img {
	display: block;
	width: 100%;
	height: auto;
}

/* セクション見出し共通 */
.fdemo-section-title {
	font-family: "Noto Serif JP", serif;
	font-size: 1.65rem;
	font-weight: 600;
	margin: 0 0 1rem;
}

.fdemo-section-title--center {
	text-align: center;
}

/* 商品プレビュー */
.fdemo-products-teaser {
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}

.fdemo-products-teaser__intro {
	text-align: center;
	font-size: 0.92rem;
	color: rgba(51, 51, 51, 0.72);
	margin: 0 auto 2rem;
	max-width: 36rem;
}

.fdemo-products-teaser__more {
	text-align: center;
	margin: 3.75rem 0 0;
}

.fdemo-products--preview {
	margin-top: 0.5rem;
	grid-template-columns: 1fr;
}

@media (min-width: 480px) {
	.fdemo-products--preview {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.fdemo-products--preview {
		grid-template-columns: repeat(4, 1fr);
	}
}

.fdemo-about-note {
	background: var(--white);
}

/* Sections */
.fdemo-section {
	padding: 3.5rem 0;
}

.fdemo-section--tight {
	padding: 2.5rem 0;
}

.fdemo-section h2:not(.fdemo-section-title) {
	font-family: "Noto Serif JP", serif;
	font-size: 1.65rem;
	font-weight: 600;
	margin: 0 0 1.25rem;
}

.fdemo-section p {
	color: rgba(51, 51, 51, 0.85);
}

/* Buttons */
.fdemo-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin-top: 0.5rem;
}

.fdemo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
	cursor: pointer;
}

.fdemo-btn--primary {
	background: var(--ink);
	color: var(--bg);
	border-color: var(--ink);
}

.fdemo-btn--primary:hover {
	opacity: 0.92;
}

.fdemo-btn--outline {
	background: transparent;
	color: var(--ink);
	border: 2px solid var(--ink);
}

.fdemo-btn--outline:hover {
	background: var(--ink);
	color: var(--bg);
}

.fdemo-btn--lg {
	padding: 0.9rem 1.75rem;
	font-size: 0.95rem;
}

.fdemo-btn--ghost {
	background: rgba(255, 255, 255, 0.65);
	color: var(--ink);
	border: 2px solid var(--ink);
	backdrop-filter: blur(6px);
}

.fdemo-btn--ghost:hover {
	background: var(--ink);
	color: var(--bg);
}

.fdemo-btn--wide {
	min-width: 14rem;
}

.fdemo-btn--sm {
	padding: 0.45rem 1rem;
	font-size: 0.8rem;
}

/* Cards grid (concept / products) */
.fdemo-grid-2 {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.fdemo-grid-2 {
		grid-template-columns: 1fr 1fr;
	}
}

.fdemo-card {
	border: 1px solid var(--line);
	border-radius: 0.75rem;
	padding: 1.5rem;
	background: var(--white);
}

.fdemo-card h3 {
	font-family: "Noto Serif JP", serif;
	font-size: 1.15rem;
	margin: 0 0 0.5rem;
}

/* Product grid */
.fdemo-products {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.fdemo-product {
	border: 1px solid var(--line);
	border-radius: 0.75rem;
	overflow: hidden;
	background: var(--white);
}

.fdemo-product__img {
	aspect-ratio: 1;
	background: var(--line);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	color: rgba(51, 51, 51, 0.45);
}

.fdemo-product__body {
	padding: 1rem 1.15rem 1.25rem;
}

.fdemo-product__name {
	font-weight: 600;
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
}

.fdemo-product__meta {
	font-size: 0.8rem;
	color: rgba(51, 51, 51, 0.65);
	margin: 0;
}

/* Form */
.fdemo-form {
	max-width: 32rem;
}

.fdemo-form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.fdemo-form input[type="text"],
.fdemo-form input[type="email"],
.fdemo-form textarea {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--line);
	border-radius: 0.5rem;
	font-family: inherit;
	font-size: 1rem;
	background: var(--white);
}

.fdemo-form textarea {
	min-height: 10rem;
	resize: vertical;
}

.fdemo-form__row {
	margin-bottom: 1.15rem;
}

.fdemo-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.fdemo-alert {
	padding: 1rem 1.15rem;
	border-radius: 0.5rem;
	margin-bottom: 1.25rem;
	font-size: 0.9rem;
}

.fdemo-alert--ok {
	background: #e8f4ea;
	border: 1px solid #c5e1c8;
	color: #1e4620;
}

.fdemo-alert--err {
	background: #fdecea;
	border: 1px solid #f5c2c0;
	color: #611a15;
}

/* Footer */
.fdemo-footer {
	border-top: 1px solid var(--line);
	padding: 2.5rem 0 1.5rem;
	margin-top: 3rem;
	background: var(--white);
}

.fdemo-footer__grid {
	display: grid;
	gap: 2rem;
}

@media (min-width: 768px) {
	.fdemo-footer__grid {
		grid-template-columns: 1.2fr 1fr 1fr;
		align-items: start;
	}
}

.fdemo-footer__brand {
	font-family: "Noto Serif JP", serif;
	font-weight: 600;
	margin: 0 0 0.35rem;
}

.fdemo-footer__tag {
	font-size: 0.85rem;
	color: rgba(51, 51, 51, 0.7);
	margin: 0;
}

.fdemo-footer__label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(51, 51, 51, 0.5);
	margin: 0 0 0.5rem;
}

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

.fdemo-footer__links a {
	color: rgba(51, 51, 51, 0.75);
	text-decoration: none;
	font-size: 0.9rem;
}

.fdemo-footer__links a:hover {
	color: var(--ink);
	text-decoration: underline;
}

.fdemo-footer__social p {
	font-size: 0.88rem;
	margin: 0 0 0.75rem;
	color: rgba(51, 51, 51, 0.82);
}

.fdemo-footer__copy {
	text-align: center;
	font-size: 0.78rem;
	color: rgba(51, 51, 51, 0.55);
	margin: 2rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

.fdemo-footer__demo {
	opacity: 0.8;
}

/* Instagram フィード */
.fdemo-ig-lead {
	font-size: 0.9rem;
	color: rgba(51, 51, 51, 0.72);
	margin: 0 0 1.25rem;
	text-align: center;
}

.fdemo-ig-lead a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Instagram（Behold）— 取り扱い商品と同じ .fdemo-inner 内で全幅（iframe の固定幅対策） */
.fdemo-ig-behold {
	margin-top: 0.5rem;
	min-height: 12rem;
	width: 100%;
	box-sizing: border-box;
}

.fdemo-ig-behold behold-widget {
	display: block;
	width: 100%;
	max-width: 100%;
}

.fdemo-ig-behold iframe {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

.fdemo-ig-placeholder {
	background: var(--white);
	border: 1px dashed var(--line);
	border-radius: 0.75rem;
	padding: 1.25rem 1.5rem;
	font-size: 0.9rem;
	color: rgba(51, 51, 51, 0.85);
}

.fdemo-ig-placeholder--err {
	border-color: #e0b4b0;
	background: #fdf6f5;
}

.fdemo-ig-placeholder code {
	font-size: 0.82rem;
}

.fdemo-ig-note {
	margin: 0.75rem 0 0;
	font-size: 0.88rem;
}

.fdemo-ig-api-msg {
	font-size: 0.8rem;
	color: rgba(97, 26, 21, 0.9);
	word-break: break-word;
}

.fdemo-ig-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

@media (min-width: 640px) {
	.fdemo-ig-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 900px) {
	.fdemo-ig-grid {
		grid-template-columns: repeat(6, 1fr);
		gap: 0.75rem;
	}
}

.fdemo-ig-item {
	margin: 0;
}

.fdemo-ig-link {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 0.5rem;
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--white);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.fdemo-ig-link:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.fdemo-ig-imgwrap {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--line);
}

.fdemo-ig-imgwrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	vertical-align: middle;
}

.fdemo-ig-cap {
	display: -webkit-box;
	font-size: 0.7rem;
	line-height: 1.35;
	padding: 0.45rem 0.5rem 0.55rem;
	color: rgba(51, 51, 51, 0.75);
	overflow: hidden;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}
