@charset "utf-8";

.splogo {
	width: auto;
	height: 470px;
}

.agreement-sub-ttl {
	font-size: 16px;
}

.overview-img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-bottom: 30px;
}

.overview-img--sp {
	display: none;
}

.overview-img--pc {
	display: block;
}

@media (max-width: 768px) {
	.overview-img--sp {
		display: block;
		margin-top: 30px;
	}
	
	.overview-img--pc {
		display: none;
	}
	
	#overview {
		padding-top: 0 !important;
		margin-top: 0 !important;
	}
}

.agreement-download {
	display: flex;
	gap: 40px;
	justify-content: center;
	align-items: flex-start;
	flex-wrap: wrap;
	margin-top: 30px;
}

.agreement-download__item {
	flex: 1;
	min-width: 280px;
	max-width: 500px;
	display: flex;
	gap: 20px;
	align-items: flex-start;
	justify-content: center;
}

.agreement-download__ttl {
	color: #0066cc;
	font-size: 18px;
	font-weight: bold;
	line-height: 1.6;
	white-space: nowrap;
	margin: 0;
}

.agreement-download__item p {
	margin: 0;
}

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

@media (max-width: 768px) {
	.agreement-download {
		gap: 20px;
	}
	
	.agreement-download__item {
		min-width: auto;
		flex-direction: column;
		gap: 10px;
		align-items: center;
	}
	
	.agreement-download__ttl {
		white-space: normal;
		text-align: center;
		font-size: 14px;
	}
	
	.agreement-download__item img {
		max-width: 150px;
	}
}

.course-gmap {
    position: relative;
    max-width: 938px;
    width: 100%;
	margin: 0 auto;
    padding-top: 56.25%;
    /* 16:9のアスペクト比 */
    height: 0;
	text-align: center;
}

.course-gmap iframe {
    position: absolute;
    top: 0;
    left: 0;
	width: 100%;
    height: 100%;
}

/**
 * error message
 */
.mw_wp_form .error {
	font-size : 93%;
	color : #B70000;
	display : block;
}

/**
 * error message of akismet
 */
.mw_wp_form .akismet_error {
	display: block;
}

/**
 * vertical style of radio and checkbox
 */
.mw_wp_form .vertical-item {
	display: block;
}
.mw_wp_form .vertical-item + .vertical-item {
	margin-top: 5px;
}

/**
 * horizontal style of radio and checkbox
 */
.mw_wp_form .horizontal-item + .horizontal-item {
	margin-left: 10px;
}

/**
 * radio and checkbox
 */
.mwform-checkbox-field label,
.mwform-radio-field label {
	font-weight: normal;
	margin-bottom: 0;
}
.mwform-checkbox-field input,
.mwform-radio-field input {
	margin-right: 5px;
}

/**
 * datepicker
 */
.mw_wp_form .ui-datepicker .ui-datepicker-title select.ui-datepicker-month,
.mw_wp_form .ui-datepicker .ui-datepicker-title select.ui-datepicker-year {
	width: 40%;
	margin: 0 5px;
}

/**
 * deprecated message
 */
.mw-wp-form-deprecated-message {
	background: #fdeeee;
	border: 1px solid #f7bdb8;
	border-radius: 5px;
	color: #af4040;
	font-size: 13px;
	line-height: 1.6;
	margin: 0 0 10px;
	padding: 1em;
}

/**
 * file
 */
.mw_wp_form input[type="file"] {
	display: inline-block;
}

/**
 * file delete button
 */
.mwform-file-delete {
	cursor: pointer;
	visibility: hidden;
}

/**
 * tel and zip
 */
.mwform-tel-field input[type="text"],
.mwform-zip-field input[type="text"] {
	display: inline-block;
	width: auto;
}

/**
 * Contact Form Styles
 */
/* 確認画面用のスタイル */
.form-confirm {
	margin-bottom: 30px;
}

.form-confirm .form-group {
	margin-bottom: 20px;
}

.form-confirm-text {
	background-color: #f5f5f5;
	padding: 15px;
	border-radius: 4px;
	min-height: 40px;
	margin: 0;
	word-wrap: break-word;
}

/* エラー表示用のスタイル */
.form-group.has-error .form-control,
.form-group.has-error .form-select {
	border-color: #d32f2f !important;
	border-width: 2px;
	background-color: #fff5f5;
}

.form-group.has-error .form-control:focus,
.form-group.has-error .form-select:focus {
	border-color: #d32f2f !important;
	box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25);
	outline: none;
}

.form-control.is-invalid,
.form-select.is-invalid {
	border-color: #d32f2f;
	border-width: 2px;
	background-color: #fff5f5;
}

.error-message {
	display: block;
	color: #d32f2f;
	font-size: 14px;
	font-weight: bold;
	margin-top: 8px;
	padding-left: 4px;
}

.error-message::before {
	content: "⚠ ";
	font-weight: bold;
}

/* ボタンスタイル */
.form-btns {
	display: flex;
	gap: 15px;
	justify-content: center;
	align-items: center;
	flex-wrap: nowrap; /* PCでは折り返さない */
	margin-top: 30px;
}

.btn-submit,
.btn-back {
	padding: 15px 40px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 220px;
	max-width: 300px;
	flex: 0 1 auto; /* 幅を固定 */
	text-align: center;
	text-decoration: none;
	display: inline-block;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	white-space: nowrap; /* テキストを折り返さない */
}

.btn-submit {
	background-color: #2e7d32;
	color: #fff;
	order: 2; /* 確認画面で右側に配置 */
}

.btn-submit:hover {
	opacity: 0.9;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	transform: translateY(-1px);
}

.btn-back {
	background-color: #757575;
	color: #fff;
	order: 1; /* 確認画面で左側に配置 */
}

.btn-back:hover {
	opacity: 0.9;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	transform: translateY(-1px);
}

/* 完了画面用のスタイル */
.form-complete {
	padding: 40px 20px;
}

.form-complete p {
	line-height: 1.8;
}

/* アラートスタイル */
.alert {
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.alert-danger {
	background-color: #ffebee;
	border: 2px solid #d32f2f;
	box-shadow: 0 2px 8px rgba(211, 47, 47, 0.15);
}

/* エラーサマリー用のスタイル */
#error-summary {
	scroll-margin-top: 120px; /* ヘッダー分のマージン */
	animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
	.form-btns {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 12px;
	}
	
	.btn-submit,
	.btn-back {
		width: 100%;
		max-width: 100%;
		min-width: auto;
		flex: 1 1 auto;
	}
	
	/* モバイルでは戻るボタンを上に */
	.btn-back {
		order: 1;
	}
	
	.btn-submit {
		order: 2;
	}

	#concept .ttl-section__en img {
		width: 200px;
		height: auto;
	}

	.course-gmap {
		padding-top: 88.25%;
	}
}

/* タブレット・PC表示 */
@media (min-width: 769px) {
	.form-btns {
		flex-direction: row;
		flex-wrap: nowrap;
	}
}