/* 統合お問い合わせ（/contact/）
   既存サイトのトーン（#333 / 余白 / 明朝）に合わせたタブ＋カードUI */

.contact {
	color: #333;
}

.contact__hero {
	text-align: center;
	padding: 24px 24px 0;
}

@media screen and (min-width: 1024px) {
	.contact__hero {
		padding-top: 48px;
	}
}

.contact__hero-en {
	font-size: 1.125rem;
	letter-spacing: 0.2em;
	line-height: 1.4;
}

@media screen and (min-width: 1024px) {
	.contact__hero-en {
		font-size: 1.25rem;
	}
}

.contact__hero h1 {
	margin: 0.25em 0 0;
	font-size: 1.5rem;
	font-weight: 400;
	letter-spacing: 0.08em;
}

.contact__password {
	max-width: 480px;
	margin: 0 auto;
	padding: 24px 0 48px;
}

.contact__password-lead {
	margin: 0 0 20px;
	text-align: center;
	font-size: 13px;
	letter-spacing: 0.06em;
	color: #666;
}

.contact .post-password-form p {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.8;
	color: #555;
}

.contact .post-password-form label {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 13px;
	letter-spacing: 0.06em;
}

.contact .post-password-form input[type="password"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #999;
	border-radius: 2px;
	background: #fff;
	font-size: 14px;
}

.contact .post-password-form input[type="submit"] {
	display: block;
	margin: 16px auto 0;
	padding: 10px 40px;
	border: 0;
	border-radius: 3em;
	background: #333;
	color: #fff;
	font-size: 13px;
	letter-spacing: 0.12em;
	cursor: pointer;
}

.contact__main {
	width: 100%;
	margin: 48px 0 64px;
	padding: 0 24px;
}

@media screen and (min-width: 1024px) {
	.contact__main {
		width: auto;
		margin: 64px 16% 96px;
	}
}

.contact__tabs {
	display: flex;
	max-width: 640px;
	margin: 0 auto;
	border: 1px solid #333;
}

.contact__tab {
	flex: 1;
	padding: 14px 16px;
	border: 0;
	border-right: 1px solid #333;
	background: #fff;
	color: #333;
	font-family: inherit;
	font-size: 13px;
	letter-spacing: 0.12em;
	line-height: 1.4;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease;
}

.contact__tab:last-child {
	border-right: 0;
}

.contact__tab:hover:not(.is-active) {
	background: #f5f5f5;
}

.contact__tab.is-active {
	background: #333;
	color: #fff;
}

.contact__panel {
	display: none;
	max-width: 860px;
	margin: 48px auto 0;
}

.contact__panel.is-active {
	display: block;
}

.contact__section-head {
	margin-bottom: 28px;
	padding-bottom: 16px;
	border-bottom: 1px solid #d4d4d4;
}

.contact__section-head h2 {
	margin: 0 0 8px;
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0.1em;
}

@media screen and (min-width: 1024px) {
	.contact__section-head h2 {
		font-size: 1.125rem;
	}
}

.contact__section-head p {
	margin: 0;
	font-size: 12px;
	line-height: 1.9;
	color: #666;
}

.contact__label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	font-size: 13px;
	letter-spacing: 0.08em;
}

.contact__badge {
	display: inline-block;
	padding: 1px 6px;
	font-size: 10px;
	letter-spacing: 0.04em;
	line-height: 1.6;
	color: #fff;
	background: #333;
}

.contact__cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
	.contact__cards {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}
}

.contact__card {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 1px solid #d4d4d4;
	background: #fff;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact__card:hover {
	border-color: #333;
}

.contact__card.is-selected {
	border-color: #333;
}

.contact__card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.contact__card-img {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 3;
	object-fit: cover;
	object-position: center;
	border-bottom: 1px solid #d4d4d4;
}

.contact__card-body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
}

.contact__card-body h3 {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.06em;
	line-height: 1.5;
}

.contact__card-body p {
	margin: 4px 0 0;
	font-size: 11px;
	line-height: 1.6;
	color: #888;
}

.contact__check {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border: 1px solid #bbb;
	background: #fff;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.contact__card.is-selected .contact__check {
	border-color: #333;
	background: #333;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='M5 12.5l5 5L19 7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px;
}

.contact__types {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
	.contact__types {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
}

.contact__type {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid #d4d4d4;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.contact__type:hover {
	border-color: #333;
	background: #fafafa;
}

.contact__type.is-selected {
	border-color: #333;
	background: #f5f5f5;
}

.contact__type input {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #333;
	cursor: pointer;
}

.contact__type-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #eee;
	color: #333;
}

.contact__type-icon svg {
	width: 30px;
	height: 30px;
}

.contact__type-icon svg[viewBox="0 0 226.5 195.04"] {
	width: 32px;
	height: 28px;
}

.contact__type-label {
	font-size: 13px;
	letter-spacing: 0.06em;
	line-height: 1.5;
	color: #333;
}

.contact__form-wrap {
	display: none;
	position: relative;
	padding-top: 32px;
	border-top: 1px solid #d4d4d4;
}

.contact__form-wrap.is-active {
	display: block;
}

.contact .ct-cf7-catalog {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.contact .swoda-cf7-form .text-xs p br:not(:first-of-type) {
	display: none;
}

.contact [hidden] {
	display: none !important;
}

.contact__error {
	margin: -24px 0 20px;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: #dc3232;
	line-height: 1.7;
}

.contact__placeholder {
	padding: 28px 16px;
	border: 1px dashed #ccc;
	text-align: center;
	font-size: 12px;
	letter-spacing: 0.06em;
	color: #888;
	line-height: 1.8;
}

@media screen and (max-width: 767px) {
	.contact__tabs {
		flex-direction: column;
	}

	.contact__tab {
		border-right: 0;
		border-bottom: 1px solid #333;
	}

	.contact__tab:last-child {
		border-bottom: 0;
	}

	.contact__hero h1 {
		font-size: 1.25rem;
	}

	.contact__type {
		padding: 12px 14px;
		gap: 10px;
	}

	.contact__type-icon {
		width: 36px;
		height: 36px;
	}

	.contact__type-icon svg {
		width: 18px;
		height: 18px;
	}

	.contact__type-icon svg[viewBox="0 0 226.5 195.04"] {
		width: 20px;
		height: 17px;
	}
}
