/* FC Site Core — styles for the parts that used to come from Elementor Pro widgets. */

:root {
	--fcc-ink: var(--fc-ink, #3b3331);
	--fcc-muted: var(--fc-muted, #6b615e);
	--fcc-line: var(--fc-line, #e2dad5);
	--fcc-soft: var(--fc-soft, #f3e6e2);
	--fcc-white: var(--fc-white, #fffdfb);
	--fcc-base: #f7f4f1;
	--fcc-accent: var(--fc-accent, #f09090);
	--fcc-jp: 'Noto Sans JP', sans-serif;
}

/* ---------- Header container (kept identical to the Theme Builder header) ---------- */
.fc-site-header {
	display: block;
}

/* ---------- Main menu ---------- */
.fc-nav {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.fc-nav__toggle {
	display: none;
}

.fc-nav__menu,
.fc-nav__menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fc-nav__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}

.fc-nav__menu > li {
	position: relative;
}

.fc-nav__menu a {
	display: block;
	font-family: var(--fcc-jp);
	font-size: 13px;
	font-weight: 500;
	line-height: 22px;
	letter-spacing: 0.25px;
	color: var(--fcc-ink);
	padding: 8px 16px;
	text-decoration: none;
	transition: color 0.2s, background-color 0.2s;
}

.fc-nav__menu > li > a:hover,
.fc-nav__menu > li > a:focus-visible {
	color: var(--fcc-ink);
	text-decoration: underline;
	text-decoration-color: var(--fcc-accent);
	text-underline-offset: 6px;
}

.fc-nav__menu > li.current-menu-item > a,
.fc-nav__menu > li.current-menu-ancestor > a,
.fc-nav__menu > li.current_page_parent > a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 6px;
}

.fc-nav__menu > li.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	margin-left: 10px;
	vertical-align: middle;
	border: 4px solid transparent;
	border-top: 5px solid currentColor;
	border-bottom: 0;
}

.fc-nav__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 200;
	min-width: 260px;
	padding: 8px 0;
	background: var(--fcc-white);
	border: 1px solid var(--fcc-line);
	box-shadow: 0 12px 28px rgba(59, 51, 49, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.fc-nav__menu > li:hover > .sub-menu,
.fc-nav__menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.fc-nav__menu .sub-menu a {
	font-weight: 400;
	padding: 10px 20px;
	white-space: nowrap;
}

.fc-nav__menu .sub-menu a:hover,
.fc-nav__menu .sub-menu a:focus-visible,
.fc-nav__menu .sub-menu .current-menu-item > a {
	background: var(--fcc-soft);
}

.fc-nav__sub-toggle {
	display: none;
}

@media (min-width: 768px) {
	.fc-nav__menu > li.fc-menu-contact {
		display: none;
	}
}

@media (max-width: 767px) {
	.fc-nav__menu > li:last-child > a {
		border-bottom: 0;
	}

	.fc-nav {
		justify-content: flex-end;
	}

	.fc-nav__toggle {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 5px;
		width: 34px;
		height: 34px;
		padding: 6px;
		background: transparent;
		border: 0;
		border-radius: 0;
		cursor: pointer;
		color: var(--fcc-ink);
	}

	.fc-nav__toggle:hover,
	.fc-nav__toggle:focus {
		background: transparent;
	}

	.fc-nav__bar {
		display: block;
		width: 20px;
		height: 2px;
		background: currentColor;
		transition: transform 0.25s, opacity 0.25s;
	}

	.fc-nav.is-open .fc-nav__bar:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.fc-nav.is-open .fc-nav__bar:nth-child(2) {
		opacity: 0;
	}

	.fc-nav.is-open .fc-nav__bar:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.fc-nav__menu {
		display: none;
		position: fixed;
		top: var(--fc-nav-top, 60px);
		left: 0;
		right: 0;
		z-index: 300;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: flex-start;
		max-height: calc(100vh - var(--fc-nav-top, 60px));
		overflow-y: auto;
		background: var(--fc-paper, var(--fcc-white));
		box-shadow: 0 12px 28px rgba(59, 51, 49, 0.08);
		border-top: 1px solid var(--fcc-line);
		border-bottom: 1px solid var(--fcc-line);
	}

	.fc-nav.is-open .fc-nav__menu {
		display: flex;
	}

	.fc-nav__menu > li > a,
	.fc-nav__menu .sub-menu a {
		font-size: 14px;
		padding: 16px 20px;
		border-bottom: 1px solid var(--fcc-line);
		text-decoration: none !important;
	}

	.fc-nav__menu > li.current-menu-item > a,
	.fc-nav__menu > li.current_page_parent > a {
		background: var(--fcc-soft);
	}

	.fc-nav__menu > li.menu-item-has-children > a {
		padding-right: 56px;
	}

	.fc-nav__menu > li.menu-item-has-children > a::after {
		display: none;
	}

	.fc-nav__sub-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 0;
		right: 0;
		width: 56px;
		height: 55px;
		padding: 0;
		background: transparent;
		border: 0;
		border-radius: 0;
		color: var(--fcc-ink);
		cursor: pointer;
	}

	.fc-nav__sub-toggle:hover,
	.fc-nav__sub-toggle:focus {
		background: transparent;
		color: var(--fcc-ink);
	}

	.fc-nav__sub-toggle::before {
		content: '';
		border: 5px solid transparent;
		border-top: 6px solid currentColor;
		border-bottom: 0;
		transition: transform 0.2s;
	}

	.fc-nav__menu li.is-sub-open > .fc-nav__sub-toggle::before {
		transform: rotate(180deg);
	}

	.fc-nav__menu .sub-menu {
		display: none;
		position: static;
		min-width: 0;
		padding: 0;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}

	.fc-nav__menu li.is-sub-open > .sub-menu {
		display: block;
	}

	.fc-nav__menu .sub-menu a {
		padding-left: 36px;
		font-size: 13px;
		white-space: normal;
	}
}

/* ---------- Single post ---------- */
.fc-postmeta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	font-family: 'DM Sans', var(--fcc-jp);
	font-size: 12px;
	line-height: 18px;
	letter-spacing: 0.06em;
	color: var(--fcc-muted);
}

.fc-postmeta a {
	color: var(--fcc-muted);
	text-decoration: none;
}

.fc-postmeta a:hover {
	color: var(--fcc-ink);
	text-decoration: underline;
}

.fc-post-title.elementor-heading-title {
	margin: 0;
	font-family: var(--fcc-jp);
	font-size: 32px;
	font-weight: 500;
	line-height: 1.625;
	letter-spacing: 0.3px;
	color: var(--fcc-ink);
}

@media (max-width: 767px) {
	.fc-post-title.elementor-heading-title {
		font-size: 24px;
		line-height: 1.6;
	}
}

.fc-post-thumb {
	margin: 0;
}

.fc-post-thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 2px;
}

/* ---------- Post cards ---------- */
.fc-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 24px;
}

@media (max-width: 1024px) {
	.fc-posts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.fc-posts-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.fc-posts-grid .elementor-post {
	display: flex;
	flex-direction: column;
	background: var(--fcc-white);
	border-radius: 2px;
	overflow: hidden;
}

.fc-posts-grid .elementor-post__thumbnail__link {
	display: block;
}

.fc-posts-grid .elementor-post__thumbnail {
	aspect-ratio: 1 / 0.62;
	overflow: hidden;
}

.fc-posts-grid .elementor-post__thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.fc-posts-grid .elementor-post:hover .elementor-post__thumbnail img {
	transform: scale(1.03);
}

.fc-posts-grid .elementor-post__text {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 22px 24px;
}

.fc-posts-grid .elementor-post__meta-data {
	margin: 0 0 6px;
	font-family: 'DM Sans', var(--fcc-jp);
	font-size: 11px;
	line-height: 1.3;
	letter-spacing: 0.06em;
	color: var(--fcc-muted);
}

.fc-posts-grid .elementor-post__title {
	margin: 0 0 10px;
	font-family: var(--fcc-jp);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.7;
}

.fc-posts-grid .elementor-post__title a {
	color: var(--fcc-ink);
	text-decoration: none;
}

.fc-posts-grid .elementor-post__title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--fcc-accent);
	text-underline-offset: 4px;
}

.fc-posts-grid .elementor-post__excerpt p {
	margin: 0;
	font-size: 13px;
	line-height: 1.9;
	color: var(--fcc-muted);
}

.fc-posts-grid .elementor-post__read-more {
	margin-top: auto;
	padding-top: 14px;
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
	color: var(--fcc-ink);
	text-decoration: none;
}

.fc-posts-grid .elementor-post__read-more:hover {
	text-decoration: underline;
}

.fc-posts-empty {
	color: var(--fcc-muted);
}

.fc-pagination {
	margin-top: 48px;
}

.fc-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fc-pagination a,
.fc-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	font-size: 13px;
	color: var(--fcc-ink);
	text-decoration: none;
	border: 1px solid var(--fcc-line);
	border-radius: 999px;
	background: var(--fcc-white);
}

.fc-pagination .current {
	background: var(--fcc-ink);
	border-color: var(--fcc-ink);
	color: var(--fcc-white);
}

/* ---------- Contact Form 7 (same look as the former Elementor Pro form) ---------- */
.fc-cf7 .fc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.fc-cf7 .fc-field {
	margin: 0 0 32px;
}

.fc-cf7 .fc-label {
	display: block;
	margin: 0 0 10px;
	font-family: var(--fcc-jp);
	font-size: 13px;
	font-weight: 500;
	line-height: 22px;
	color: var(--fcc-ink);
}

.fc-cf7 .fc-req {
	color: var(--fcc-ink);
}

.fc-cf7 input[type='text'],
.fc-cf7 input[type='email'],
.fc-cf7 input[type='tel'],
.fc-cf7 input[type='url'],
.fc-cf7 select,
.fc-cf7 textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: 54px;
	padding: 14px 16px;
	font-size: 15px;
	line-height: 24px;
	color: var(--fcc-ink);
	background: var(--fcc-base);
	border: 1px solid var(--fcc-line);
	border-radius: 2px;
	box-shadow: none;
	transition: border-color 0.2s, background-color 0.2s;
}

.fc-cf7 textarea {
	height: 198px;
	resize: vertical;
}

.fc-cf7 select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 44px;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
	background-size: 6px 6px;
	background-repeat: no-repeat;
}

.fc-cf7 input::placeholder,
.fc-cf7 textarea::placeholder {
	color: #9a8f8b;
}

.fc-cf7 input:focus,
.fc-cf7 select:focus,
.fc-cf7 textarea:focus {
	outline: none;
	border-color: var(--fcc-ink);
	background-color: var(--fcc-white);
}

/* checkbox tiles */
.fc-cf7 .fc-choices .wpcf7-checkbox {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

@media (max-width: 767px) {
	.fc-cf7 .fc-choices .wpcf7-checkbox {
		grid-template-columns: minmax(0, 1fr);
	}
}

.fc-cf7 .fc-choices .wpcf7-list-item {
	margin: 0;
}

.fc-cf7 .fc-choices .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 14px 16px;
	box-sizing: border-box;
	font-size: 13px;
	font-weight: 500;
	line-height: 22px;
	color: var(--fcc-ink);
	background: var(--fcc-base);
	border: 1px solid var(--fcc-line);
	border-radius: 2px;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
}

.fc-cf7 .fc-choices .wpcf7-list-item label:hover {
	border-color: var(--fcc-ink);
}

.fc-cf7 input[type='checkbox'] {
	width: 16px;
	height: 16px;
	margin: 0;
	flex: none;
	accent-color: var(--fcc-ink);
}

.fc-cf7 .fc-accept .wpcf7-list-item {
	margin: 0;
}

.fc-cf7 .fc-accept label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 500;
	line-height: 22px;
	color: var(--fcc-ink);
	cursor: pointer;
}

.fc-cf7 .fc-accept a {
	color: var(--fcc-ink);
	text-decoration: underline;
	text-decoration-color: var(--fcc-accent);
	text-underline-offset: 4px;
}

.fc-cf7 .fc-submit {
	margin: 8px 0 0;
}

.fc-cf7 .wpcf7-submit {
	position: relative;
	width: 280px;
	max-width: 100%;
	height: 56px;
	padding: 0 24px;
	font-family: var(--fcc-jp);
	font-size: 13px;
	font-weight: 500;
	line-height: 22px;
	letter-spacing: 0.25px;
	color: #fff;
	background: var(--fcc-ink);
	border: 0;
	border-radius: 2px;
	cursor: pointer;
	transition: opacity 0.2s;
}

.fc-cf7 .wpcf7-submit:hover,
.fc-cf7 .wpcf7-submit:focus {
	opacity: 0.85;
	color: #fff;
	background: var(--fcc-ink);
}

.fc-cf7 .wpcf7-spinner {
	margin: 0 0 0 12px;
	vertical-align: middle;
}

.fc-cf7 .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 12px;
	color: #c0392b;
}

.fc-cf7 .wpcf7-not-valid {
	border-color: #c0392b !important;
}

.wpcf7 form.fc-cf7 .wpcf7-response-output,
.fc-cf7 .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 14px 18px;
	font-size: 14px;
	line-height: 1.8;
	color: var(--fcc-ink);
	background: var(--fcc-white);
	border: 1px solid var(--fcc-line);
	border-radius: 2px;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #6aa37a;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border-color: #c0392b;
}

/* ---------- Template wrapper (full width, like Elementor Pro Theme Builder) ---------- */
.fc-main {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}
