/* お問い合わせフォーム用スタイル */
.contact-form {
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: calc(48px * var(--scale-factor, 1));
}

.contact-form .form-group {
	display: flex;
	flex-direction: column;
	gap: calc(8px * var(--scale-factor, 1));
	margin-bottom: 0;
}

.contact-form label {
	font-size: calc(32px * var(--scale-factor, 1));
	font-family: '07YasashisaGothicBold', sans-serif;
	color: var(--color-black);
	margin-bottom: 4px;
}

.contact-form select,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	font-size: calc(32px * var(--scale-factor, 1));
	padding: calc(16px * var(--scale-factor, 1));
	border-radius: calc(24px * var(--scale-factor, 1));
	border: 1.5px solid #cfcfcf;
	background: var(--color-white);
	color: var(--color-black);
	font-family: system-ui, 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
	outline: none;
	transition: border 0.2s;
	width: 100%;
	box-sizing: border-box;
}

.contact-form select,
.contact-form input[type="text"],
.contact-form input[type="email"] {
	height: calc(72px * var(--scale-factor, 1));
}

.contact-form select:disabled,
.contact-form input:disabled,
.contact-form textarea:disabled {
	background: #f0f0f0;
	color: #aaa;
	opacity: 0.7;
}

.contact-form textarea {
	min-height: 120px;
	resize: vertical;
	font-family: system-ui, 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

.contact-form button[type="submit"] {
	margin-top: 8px;
	font-size: var(--font-size-section-title);
	font-family: '07YasashisaGothicBold', sans-serif;
	font-weight: bold;
	background: var(--color-brown);
	color: var(--color-white);
	border: none;
	border-radius: calc(200px * var(--scale-factor, 1));
	padding: calc(24px * var(--scale-factor, 1)) calc(64px * var(--scale-factor, 1));
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: background 0.2s, transform 0.2s;
	width: calc(500px * var(--scale-factor, 1));
	height: calc(120px * var(--scale-factor, 1));
}

.contact-form button[type="submit"] span {
	width: 100%;
	text-align: center;
}

.contact-form button[type="submit"]:hover {
	background: #a07a3a;
	transform: scale(1.03);
}

.center-submit {
	display: inline-block;
	margin-left: auto;
	margin-right: auto;
}

.contact-form [id$="-desc"] {
	font-size: calc(18px * var(--scale-factor, 1));
	color: #888;
	margin-bottom: 4px;
}

.label-required {
	display: inline-block;
	background: #e74c3c;
	color: #fff;
	font-size: 0.7em;
	border-radius: 8px;
	padding: 2px 10px;
	margin-left: 8px;
	vertical-align: middle;
}

.label-optional {
	display: inline-block;
	background: #bdbdbd;
	color: #fff;
	font-size: 0.7em;
	border-radius: 8px;
	padding: 2px 10px;
	margin-left: 8px;
	vertical-align: middle;
}

.contact-privacy-wrapper {
	width: 100%;
	margin-top: calc(56px * var(--scale-factor, 1));
}

.contact-privacy {
	display: block;
	width: 100%;
	text-align: center;
	text-decoration: underline;
	font-size: calc(24px * var(--scale-factor, 1));
}

.contact-note {
	text-align: center;
	margin-top: calc(12px * var(--scale-factor, 1));
	font-size: calc(24px * var(--scale-factor, 1));
}

@media (max-width: 600px) {
	.contact-form label {
		font-size: var(--font-size-subtitle);
	}

	.contact-form select,
	.contact-form input[type="text"],
	.contact-form input[type="email"],
	.contact-form textarea {
		font-size: var(--font-size-body);
		padding: calc(8px * var(--scale-factor, 1));
		border-radius: calc(8px * var(--scale-factor, 1));
		font-family: system-ui, 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
	}

	.contact-form select,
	.contact-form input[type="text"],
	.contact-form input[type="email"] {
		height: calc(60px * var(--scale-factor, 1));
	}

	.contact-form button[type="submit"] {
		font-size: calc(32px * var(--scale-factor, 1));
		padding: calc(6px * var(--scale-factor, 1)) calc(24px * var(--scale-factor, 1));
		width: 100%;
		height: calc(80px * var(--scale-factor, 1));
	}

	.contact-form [id$="-desc"] {
		font-size: calc(12px * var(--scale-factor, 1));
	}

	.contact-privacy-wrapper {
		margin-top: calc(48px * var(--scale-factor, 1));
	}

	.contact-privacy {
		font-size: calc(16px * var(--scale-factor, 1));
	}

	.contact-note {
		margin-top: calc(8px * var(--scale-factor, 1));
		font-size: calc(16px * var(--scale-factor, 1));
	}
}

.privacy-policy-strong {
	font-family: 'Hiragino Kaku Gothic ProN', '07YasashisaGothicBold', sans-serif;
	font-weight: bold;
	font-size: calc(32px * var(--scale-factor, 1));
	color: var(--color-black);
}

.transaction-law-section {
	background: var(--color-light-brown);
	border-radius: var(--border-radius);
	padding: var(--spacing-content);
	display: flex;
	flex-direction: column;
	gap: var(--spacing-content);
	align-items: center;
	max-width: 100%;
}

.transaction-law-title {
	font-size: var(--font-size-system);
	color: var(--color-black);
	font-family: 'Hiragino Kaku Gothic ProN', '07YasashisaGothicBold', sans-serif;
	font-weight: bold;
	margin-bottom: var(--spacing-content);
	text-align: left;
	width: 100%;
}

.transaction-law-items {
	display: flex;
	flex-direction: column;
	gap: calc(64px * var(--scale-factor, 1));
	width: 100%;
}

.transaction-law-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: calc(16px * var(--scale-factor, 1));
	width: 100%;
	margin-bottom: calc(16px * var(--scale-factor, 1));
}

.transaction-law-label {
	display: flex;
	align-items: center;
	font-size: calc(40px * var(--scale-factor, 1));
	font-family: 'Hiragino Kaku Gothic ProN', '07YasashisaGothicBold', sans-serif;
	font-weight: bold;
	color: var(--color-black);
	min-width: 240px;
	position: relative;
}

.transaction-law-label span {
	display: inline-block;
	background: var(--color-brown);
	width: calc(24px * var(--scale-factor, 1));
	height: calc(64px * var(--scale-factor, 1));
	margin-right: calc(24px * var(--scale-factor, 1));
}

.transaction-law-value {
	font-size: calc(32px * var(--scale-factor, 1));
	color: var(--color-black);
	font-family: 'Hiragino Kaku Gothic ProN', '07YasashisaGothicBold', sans-serif;
	line-height: 1.5;
	flex: 1;
}

.transaction-law-value .mb-0 {
	margin-bottom: 0;
}

@media (max-width: 600px) {
	.transaction-law-title {
		font-size: calc(32px * var(--scale-factor, 1));
	}

	.transaction-law-label {
		font-size: var(--font-size-body);
		min-width: 100px;
	}

	.transaction-law-label span {
		width: calc(12px * var(--scale-factor, 1));
		height: calc(32px * var(--scale-factor, 1));
		margin-right: calc(12px * var(--scale-factor, 1));
	}

	.transaction-law-value {
		font-size: var(--font-size-body);
	}

	.transaction-law-items {
		gap: calc(32px * var(--scale-factor, 1));
	}
}

/* 特商法テーブル */
.transaction-law-table {
	width: 100%;
	margin: var(--spacing-content) 0 0 0;
	overflow-x: auto;
}

.transaction-law-table table {
	width: 100%;
	border-collapse: collapse;
	background: var(--color-white);
	border-radius: var(--border-radius);
	overflow: hidden;
	font-size: var(--font-size-body);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.transaction-law-table th,
.transaction-law-table td {
	padding: calc(24px * var(--scale-factor, 1)) calc(16px * var(--scale-factor, 1));
	border-bottom: 1px solid var(--color-light-brown);
	text-align: left;
}

.transaction-law-table th {
	background: var(--color-light-brown);
	color: var(--color-brown);
	font-weight: bold;
	width: 220px;
	white-space: nowrap;
}

.transaction-law-table tr:last-child th,
.transaction-law-table tr:last-child td {
	border-bottom: none;
}

.transaction-law-table a {
	color: var(--color-brown);
	text-decoration: underline;
}

/* CSS変数定義 */
:root {
	/* カラー */
	--color-black: #222222;
	--color-light-brown: #F4E5CC;
	--color-white: #FFFFFF;
	--color-brown: #865E1D;
	--color-background: #FFFFFF;

	/* フォントサイズ - デスクトップ */
	--font-size-title: calc(48px * var(--scale-factor, 1));
	--font-size-section-title: calc(48px * var(--scale-factor, 1));
	--font-size-subtitle: calc(32px * var(--scale-factor, 1));
	--font-size-body: calc(32px * var(--scale-factor, 1));
	--font-size-nav: calc(28px * var(--scale-factor, 1));
	--font-size-system: calc(64px * var(--scale-factor, 1));

	/* スペーシング */
	--spacing-section: calc(80px * var(--scale-factor, 1));
	--spacing-content: calc(64px * var(--scale-factor, 1));
	--spacing-medium: calc(32px * var(--scale-factor, 1));
	--spacing-small: calc(16px * var(--scale-factor, 1));

	/* コンテナ幅 */
	--container-width: calc(1600px * var(--scale-factor, 1));

	/* 角丸 */
	--border-radius: calc(64px * var(--scale-factor, 1));
	--border-radius-button: calc(100px * var(--scale-factor, 1));

	/* スケールファクター（JavaScriptで設定） */
	--scale-factor: 1;
}

/* ベーススタイル */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: '07YasashisaGothicBold', sans-serif;
	background: var(--color-background) url('../images/background_parts.png') repeat top left;
	background-size: calc(321.6px * var(--scale-factor, 1)) calc(256.8px * var(--scale-factor, 1));
	color: var(--color-black);
	line-height: 1.5;
}

@font-face {
	font-family: '07YasashisaGothicBold';
	src: url('../fonts/07YasashisaGothicBold.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	text-decoration: none;
	color: inherit;
}

/* コンテナ */
.container {
	max-width: var(--container-width);
	margin: 0 auto;
}

/* ヘッダー */
.header {
	padding: calc(80px * var(--scale-factor, 1)) 0;
}

.header-content {
	display: flex;
	flex-direction: column;
	gap: calc(16px * var(--scale-factor, 1));
}

.title {
	display: flex;
	flex-direction: column;
	gap: calc(8px * var(--scale-factor, 1));
}

.title-text {
	font-size: var(--font-size-title);
	color: var(--color-black);
	white-space: nowrap;
}

.logo {
	width: calc(780px * var(--scale-factor, 1));
	height: auto;
}

.characters {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	height: calc(240px * var(--scale-factor, 1));
	margin-right: calc(-64px * var(--scale-factor, 1));
}

.character {
	width: calc(229px * var(--scale-factor, 1));
	height: auto;
	margin-right: calc(-64px * var(--scale-factor, 1));
}

.character:nth-child(2) {
	width: calc(230px * var(--scale-factor, 1));
}

.character:nth-child(3) {
	width: calc(278px * var(--scale-factor, 1));
}

.character:nth-child(4) {
	width: calc(266px * var(--scale-factor, 1));
}

.character:nth-child(5) {
	width: calc(239px * var(--scale-factor, 1));
}

.character-rotate {
	transform: rotate(10deg);
}

/* メインコンテンツ */
.main {
	padding: var(--spacing-section) 0 calc(160px * var(--scale-factor, 1));
}

.content {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-section);
}

/* リンクセクション */
.link-section {
	background: var(--color-light-brown);
	border-radius: var(--border-radius);
	padding: var(--spacing-content);
	display: flex;
	flex-direction: column;
	gap: var(--spacing-medium);
	align-items: center;
}

.section-title {
	font-size: var(--font-size-section-title);
	color: var(--color-black);
	text-align: center;
}

.links {
	display: flex;
	gap: calc(56px * var(--scale-factor, 1));
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.social-links {
	display: flex;
	gap: calc(16px * var(--scale-factor, 1));
}

.social-link img {
	width: calc(80px * var(--scale-factor, 1));
	height: calc(80px * var(--scale-factor, 1));
}

.banner-link img {
	width: calc(512px * var(--scale-factor, 1));
	height: calc(128px * var(--scale-factor, 1));
}

/* アプリセクション */
.app-section {
	background: var(--color-light-brown);
	border-radius: var(--border-radius);
	padding: var(--spacing-content);
	display: flex;
	flex-direction: column;
	gap: var(--spacing-content);
	align-items: center;
}

.app-header {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-medium);
	width: 100%;
}

.app-title {
	display: flex;
	gap: var(--spacing-medium);
	align-items: center;
	justify-content: flex-start;
	height: calc(200px * var(--scale-factor, 1));
}

.app-icon {
	width: calc(200px * var(--scale-factor, 1));
	height: calc(200px * var(--scale-factor, 1));
	flex-shrink: 0;
}

.app-name {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	height: 100%;
}

.app-subtitle {
	font-size: var(--font-size-subtitle);
	color: var(--color-black);
}

.app-logo {
	display: block;
	height: calc(150px * var(--scale-factor, 1));
	object-fit: contain;
}

.app-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.app-description {
	font-size: var(--font-size-body);
	color: var(--color-black);
	line-height: 1.5;
}

/* スクリーンショット - グリッド */
.app-screens-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	gap: calc(24px * var(--scale-factor, 1));
	width: 100%;
	height: calc(736px * var(--scale-factor, 1));
}

.app-screens-grid .screen-image {
	width: 100%;
	height: calc(356px * var(--scale-factor, 1));
	object-fit: contain;
}

.app-screens-grid .video-placeholder {
	background: #d9d9d9;
	grid-row: 1 / 2;
	grid-column: 1 / 2;
	position: relative;
	overflow: hidden;
}

.app-screens-grid .video-placeholder iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.screen-image-placeholder {
	grid-row: 2 / 3;
	grid-column: 2 / 3;
}

/* スクリーンショット - 横並び */
.app-screens-row {
	display: flex;
	gap: calc(24px * var(--scale-factor, 1));
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: calc(400px * var(--scale-factor, 1));
}

.app-screens-row .video-placeholder {
	width: calc(600px * var(--scale-factor, 1));
	height: auto;
	aspect-ratio: 16 / 9;
	flex-shrink: 0;
	position: relative;
	overflow: hidden;
	background: #d9d9d9;
}

.app-screens-row .video-placeholder iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.app-screens-row .app-screens-row-images {
	display: flex;
	gap: calc(16px * var(--scale-factor, 1));
	justify-content: space-between;
}

.app-screens-row .app-screens-row-images .screen-image {
	max-width: 32%;
	max-height: 400px;
	height: auto;
	object-fit: contain;
}

/* ボタン */
.app-button {
	background: var(--color-white);
	border-radius: var(--border-radius-button);
	padding: calc(41px * var(--scale-factor, 1)) calc(64px * var(--scale-factor, 1));
	display: flex;
	align-items: center;
	gap: calc(10px * var(--scale-factor, 1));
	box-shadow: 0 calc(6px * var(--scale-factor, 1)) calc(6px * var(--scale-factor, 1)) rgba(0, 0, 0, 0.25);
	font-size: var(--font-size-body);
	color: var(--color-black);
	cursor: pointer;
	transition: transform 0.2s;
}

.app-button:hover {
	transform: scale(1.02);
}

.external-icon {
	width: calc(48px * var(--scale-factor, 1));
	height: calc(48px * var(--scale-factor, 1));
}

/* データ連携システム */
.system-title {
	font-size: var(--font-size-system);
	color: var(--color-brown);
}

.system-explain {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-medium);
	font-size: var(--font-size-body);
	color: var(--color-black);
	line-height: 1.5;
	width: 100%;
}

.system-explain p {
	margin: 0;
}

.system-explain .merit {
	margin: calc(12px * var(--scale-factor, 1)) 0;
	padding: calc(12px * var(--scale-factor, 1)) calc(18px * var(--scale-factor, 1));
	background-color: #e8d4b2;
	border-radius: calc(16px * var(--scale-factor, 1));
}

.system-explain .note {
	font-size: var(--font-size-nav);
}

/* フッター */
.footer {
	background: var(--color-brown);
	padding: var(--spacing-section) var(--spacing-content);
}

.footer-content {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-content);
	align-items: center;
}

.footer-logo img {
	width: calc(623px * var(--scale-factor, 1));
	height: auto;
}

.footer-nav {
	display: flex;
	gap: calc(48px * var(--scale-factor, 1));
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: var(--spacing-medium);
}

.footer-nav a {
	font-size: var(--font-size-nav);
	color: var(--color-white);
	white-space: nowrap;
}

.footer-credits {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-medium);
	align-items: center;
	margin-top: var(--spacing-medium);
}

.divider {
	width: 100%;
	height: calc(2px * var(--scale-factor, 1));
	background: var(--color-white);
}

.copyright {
	font-size: calc(20px * var(--scale-factor, 1));
	color: var(--color-white);
}

/* モバイル対応 (max-width:600px) */
@media (max-width: 600px) {
	:root {
		--font-size-title: calc(24px * var(--scale-factor, 1));
		--font-size-section-title: calc(28px * var(--scale-factor, 1));
		--font-size-subtitle: calc(22px * var(--scale-factor, 1));
		--font-size-body: calc(24px * var(--scale-factor, 1));
		--font-size-nav: calc(24px * var(--scale-factor, 1));
		--font-size-system: calc(32px * var(--scale-factor, 1));

		--spacing-section: calc(40px * var(--scale-factor, 1));
		--spacing-content: calc(32px * var(--scale-factor, 1));
		--spacing-medium: calc(16px * var(--scale-factor, 1));
		--spacing-small: calc(8px * var(--scale-factor, 1));

		--container-width: calc(540px * var(--scale-factor, 1));

		--border-radius: calc(32px * var(--scale-factor, 1));
		--border-radius-button: calc(50px * var(--scale-factor, 1));
	}

	.header {
		padding: calc(40px * var(--scale-factor, 1)) 0;
	}

	.logo {
		width: 100%;
		max-width: calc(400px * var(--scale-factor, 1));
	}

	.characters {
		height: calc(120px * var(--scale-factor, 1));
		justify-content: flex-start;
		margin-left: calc(130px * var(--scale-factor, 1));
	}

	.character {
		width: calc(100px * var(--scale-factor, 1));
		margin-right: calc(-32px * var(--scale-factor, 1));
	}

	.character:nth-child(2) {
		width: calc(100px * var(--scale-factor, 1));
	}

	.character:nth-child(3) {
		width: calc(115px * var(--scale-factor, 1));
	}

	.character:nth-child(4) {
		width: calc(115px * var(--scale-factor, 1));
	}

	.character:nth-child(5) {
		width: calc(108px * var(--scale-factor, 1));
	}

	.main {
		padding: calc(40px * var(--scale-factor, 1)) 0 calc(80px * var(--scale-factor, 1));
	}

	.links {
		flex-direction: column;
		gap: calc(24px * var(--scale-factor, 1));
	}

	.social-link img {
		width: calc(60px * var(--scale-factor, 1));
		height: calc(60px * var(--scale-factor, 1));
	}

	.banner-link img {
		width: 100%;
		max-width: calc(300px * var(--scale-factor, 1));
		height: auto;
	}

	.app-title {
		height: auto;
		align-items: flex-start;
	}

	.app-icon {
		width: calc(120px * var(--scale-factor, 1));
		height: calc(120px * var(--scale-factor, 1));
	}

	.app-logo {
		height: calc(90px * var(--scale-factor));
	}

	.app-screens-grid {
		display: flex;
		flex-direction: column;
		gap: calc(16px * var(--scale-factor, 1));
		height: auto;
	}

	.app-screens-grid .video-placeholder {
		width: 100%;
		aspect-ratio: 16 / 9;
		height: auto;
	}

	.app-screens-grid .screen-image {
		height: auto;
	}

	.app-screens-row {
		display: flex;
		flex-direction: column;
		height: auto;
		gap: calc(16px * var(--scale-factor, 1));
	}

	.app-screens-row-images {
		display: flex;
		gap: calc(8px * var(--scale-factor, 1));
		justify-content: space-between;
	}

	.app-screens-row .video-placeholder {
		width: 100%;
		aspect-ratio: 16 / 9;
		height: auto;
	}

	.app-screens-row .screen-image {
		flex: 1 1 0;
		width: 100%;
		height: auto;
		max-height: calc(320px * var(--scale-factor, 1));
		object-fit: contain;
		min-width: 0;
	}

	.app-button {
		padding: calc(20px * var(--scale-factor, 1)) calc(32px * var(--scale-factor, 1));
		font-size: calc(24px * var(--scale-factor, 1));
		width: 100%;
		justify-content: center;
	}

	.external-icon {
		width: calc(32px * var(--scale-factor, 1));
		height: calc(32px * var(--scale-factor, 1));
	}

	.system-explain .note {
		font-size: calc(16px * var(--scale-factor, 1));
	}

	.privacy-policy-strong {
		font-size: var(--font-size-body);
		margin-bottom: calc(8px * var(--scale-factor, 1)) !important;
	}

	.footer-logo img {
		width: 100%;
		max-width: calc(300px * var(--scale-factor, 1));
	}

	.footer-nav {
		flex-direction: column;
		gap: calc(12px * var(--scale-factor, 1));
	}

	.copyright {
		font-size: calc(16px * var(--scale-factor, 1));
	}
}