body {
	padding-top: 0;
}

input,
select,
textarea,
button {
	font: inherit;
}

.gHeader {
	position: static;
	margin-bottom: 36px;
}

@media screen and (min-width: 1024px) {
	.gHeader {
		margin-bottom: 68px;
	}
}

.content {
	display: grid;
	gap: 44px;
}

.description {}

.description__text {
	color: rgb(69, 90, 100);
	font-size: 14px !important;
	line-height: 1.8;
}

.summerForm .description__text {
	margin-bottom: 0;
}

.description__text:nth-child(n + 2) {
	margin-top: 1em;
}

.description__button {
	margin-top: 44px;
	text-align: center;
}

.form {
	display: grid;
	gap: 16px;
}

.form__group {
	display: grid;
	gap: 8px;
}

.form__label {
	display: flex;
	align-items: center;
	gap: 4px;
	color: #000;
	font-weight: 400;
	font-size: 16px;
}

.form__input {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid rgb(217, 217, 217);
	border-radius: 0.25rem;
	background: rgb(255, 255, 255);
	color: rgb(0, 0, 0);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
}

.form__input.is-success {
	border-color: rgb(163 215 163);
	background-repeat: no-repeat;
	background-size: 20px 20px;
	background-position: right 16px center;
	background-image: url(../img/icon-success.svg);
	background-color: rgb(163 215 163 / 12%);
}

.form__input.is-error {
	border-color: rgb(217 83 79);
	background-repeat: no-repeat;
	background-size: 20px 20px;
	background-position: right 16px center;
	background-image: url(../img/icon-error.svg);
	background-color: rgb(217 83 79 / 12%);
}

.form__select {
	max-width: 100%;
	padding: 0.5rem 3rem 0.5rem 0.75rem;
	border: 1px solid rgb(217, 217, 217);
	border-radius: 0.25rem;
	background-color: rgb(255, 255, 255);
	color: rgb(0, 0, 0);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
}

.form__select.is-zip {
	width: 100%;
	padding-right: 0.75rem;
}

.form__select.is-success {
	border-color: rgb(163 215 163);
	background-repeat: no-repeat;
	background-size: 20px 20px;
	background-position: right 16px center;
	background-image: url(../img/icon-success.svg);
	background-color: rgb(163 215 163 / 12%);
}

.form__select.is-error {
	border-color: rgb(217 83 79);
	background-repeat: no-repeat;
	background-size: 20px 20px;
	background-position: right 16px center;
	background-image: url(../img/icon-error.svg);
	background-color: rgb(217 83 79 / 12%);
}

.form__textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.75rem;
	border-radius: 0.25rem;
	border: 1px solid rgb(217, 217, 217);
	background-color: rgb(255, 255, 255);
	color: rgb(0, 0, 0);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	overflow: scroll;
	resize: vertical;
}

.form__textarea.is-success {
	border-color: rgb(163 215 163);
	background-repeat: no-repeat;
	background-size: 20px 20px;
	background-position: right 16px center;
	background-image: url(../img/icon-success.svg);
	background-color: rgb(163 215 163 / 12%);
}

.form__textarea.is-error {
	border-color: rgb(217 83 79);
	background-repeat: no-repeat;
	background-size: 20px 20px;
	background-position: right 16px center;
	background-image: url(../img/icon-error.svg);
	background-color: rgb(217 83 79 / 12%);
}

.form__tag {
	display: inline-block;
	border-radius: 0.25rem;
	background: rgb(244, 67, 54);
	padding: 0.25em 0.4em;
	color: rgb(255, 255, 255);
	font-size: 12px;
	font-weight: bold;
	line-height: 1;
	text-align: center;
	vertical-align: baseline;
	white-space: nowrap;
}

.form__tag.is-required {
	background: rgb(244, 67, 54);
}


.form__tag.is-optional {
	background: rgb(96, 125, 139);
}

.form__text {
	font-size: 14px !important;
	line-height: 1.65;
}

.summerForm .form__text {
	grid-column: 1 / -1;
	margin-bottom: 0;
}

.form__text a {
	text-decoration: underline;
}

.form__description {
	margin: 0;
	color: rgb(153, 153, 153);
	font-weight: 400;
	font-size: 13px !important;
	overflow-wrap: anywhere;
}

.summerForm .form__description {
	margin-bottom: 0;
}

/* お住まいセクション */
.form__address {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.form__address .form__group {
	margin-bottom: 0;
}

/* 郵便番号 */
.form__address .form__zip {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* 都道府県 */
.form__address .form__prefecture {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* 市区町村 */
.form__address .form__city {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* 番地 */
.form__address .form__address1 {
	/* grid-column: 1 / -1;
	grid-row: 3 / 4; */
}

/* 建物名・部屋番号 */
.form__address .form__address2 {
	/* grid-column: 1 / -1;
	grid-row: 4 / 5; */
}

.form__street {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* 郵便番号と都道府県のエラーメッセージ */
.form__zip .form__error,
.form__prefecture .form__error {
	min-height: 20px;
	margin: 0;
	align-self: start;
}

/* 入力欄とセレクトボックスの高さを揃える */
.form__zip .form__input,
.form__prefecture .form__select {
	align-self: start;
}

/* 確認画面用のテキスト */
.form__zip .from__confirm-text,
.form__prefecture .from__confirm-text {
	align-self: start;
	min-height: 44px;
	/* 入力欄と同じ高さ */
}

.button {
	display: inline-block;
	min-width: 250px;
	padding: 12px;
	border-radius: 9999px;
	border: none;
	background: url(../img/bg-green.png) center no-repeat;
	color: rgb(255, 255, 255);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	text-align: center;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	cursor: pointer;
	transition: opacity 0.3s;
}

.button:hover {
	opacity: 0.6;
	color: rgb(255, 255, 255);
}

.form__buttons {
	display: grid;
	grid-column: 1 / -1;
	gap: 16px;
	width: 100%;
	max-width: 400px;
	margin-inline: auto;
}

.form__button {
	display: block;
	width: 100%;
	max-width: 400px;
	height: 70px;
	border-radius: 45px;
	margin-inline: auto;
	padding: 12px;
	border: none;
	background: url(../img/bg-green.png) center no-repeat;
	color: rgb(255, 255, 255);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.5;
	letter-spacing: 0.1em;
	text-align: center;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	cursor: pointer;
	transition: opacity 0.3s;
}

.form__event-date {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 5px;
}

.form__input-readonly {
	border: none;
}

.form__button[disabled] {
	cursor: not-allowed;
	background: rgb(214, 221, 226);
}

.form__button:not([disabled]):hover {
	opacity: 0.6;
}

.form__back {
	display: block;
	width: 100%;
	max-width: 400px;
	height: 50px;
	margin-inline: auto;
	padding: 8px !important;
	border-radius: 9999px;
	border: 2px solid #90a5af !important;
	background: #fff !important;
	color: #7b919c !important;
	font-weight: 400;
	font-size: 20px !important;
	line-height: 1.5;
	letter-spacing: 0.1em;
	text-align: center !important;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	cursor: pointer;
	transition: opacity 0.3s;
}

.form__back:hover {
	color: #7b919c;
	opacity: 0.6;
}

.form__button.disabled {
	cursor: not-allowed;
	background-color: rgb(214, 221, 226);
	border-color: rgb(214, 221, 226);
}

.form__birthday {
	display: grid;
	grid-template-columns: auto auto auto;
	justify-content: start;
	gap: 8px;
}

.form__year>.form__select,
.form__month>.form__select,
.form__day>.form__select {
	padding-right: 1rem;
}

.form__year,
.form__month,
.form__day {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* 年 */
.form__year {
	grid-column: 1 / 2;
	grid-row: 1 / 2;
}

.form__year-error {
	grid-column: 1 / 2;
	grid-row: 2 / 3;
}

/* 月 */
.form__month {
	grid-column: 2 / 3;
	grid-row: 1 / 2;
}

.form__month-error {
	grid-column: 2 / 3;
	grid-row: 2 / 3;
}

/* 日 */
.form__day {
	grid-column: 3 / 4;
	grid-row: 1 / 2;
}

.form__day-error {
	grid-column: 3 / 4;
	grid-row: 2 / 3;
}

.form__error {
	margin: 0;
	color: rgb(244, 67, 54);
	font-weight: 500;
	font-size: 13px !important;
	overflow-wrap: anywhere;
}

.summerForm .form__error {
	margin-bottom: 0;
}
.form__radio-group {
	display: flex;
}
.form__radio,.form__radio-label {
	display: flex;
	align-items: center;
}

.form__confirm-text {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0.5rem 0;
	padding: 0.5rem 0.75rem;
	/* border: 1px solid rgb(217 217 217); */
	background: rgb(217 217 217 / 12%);
	color: rgb(0, 0, 0);
	font-weight: 400;
	font-size: 16px !important;
	line-height: 1.5;
}

.g-recaptcha {
	width: fit-content;
	max-width: 100%;
	height: 78px;
	margin-inline: auto;
	overflow: hidden;
}

.form__checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form__checkbox-label {
	display: flex;
	align-items: center;
}

/* summerForm */
.summerForm .pageH {
  margin-top: 0;
}
.summerForm h2 {
  line-height: 1.5;
  font-size: 1.25em;
  margin-bottom: 1em;
  font-weight: 700;
  color: #5BB647;
}
.summerForm p {
  line-height: 1.75;
  margin-bottom: 1em;
}
.summerForm .lessonCont {
  margin-bottom: 1em;
  padding: 1em;
  background-color: #F6F5F0;
  border-radius: 20px;
}
.summerForm .lessonCont ul {
  margin-bottom: 1em;
}
.summerForm .lessonCont ul li {
  line-height: 1.5;
  margin-bottom: .5em;
  margin-left: 1em;
  text-indent: -1em;
}
.summerForm .lessonCont p.memo {
  margin-bottom: 0;
  font-size: .8em;
}
.summerForm .btnBox {
  margin-top: 3em;
}

@media screen and (min-width: 768px) {
	.form {
		grid-template-columns: repeat(2, 1fr);
		align-items: start;
		/* 上揃えに変更 */
	}

	.form__group--half {
		grid-column: span 1;
		/* 高さを揃えるための調整 */
		display: grid;
		grid-template-rows: auto auto 1fr auto;
		/* ラベル、説明、入力欄、エラーの4行 */
		gap: 8px;
	}

	/* 1カラムにする項目（デフォルト） */
	.form__group:not(.form__group--half) {
		grid-column: 1 / -1;
	}

	/* エラーメッセージの最小高さを確保 */
	.form__group--half .form__error {
		min-height: 20px;
		/* エラーメッセージ1行分の高さ */
		align-self: start;
	}

	/* 確認画面テキストも同様に */
	.form__group--half .from__confirm-text {
		align-self: start;
	}

	/* input/selectの高さを揃える */
	.form__group--half .form__input,
	.form__group--half .form__select {
		align-self: start;
	}

	.form__address .form__zip {
		grid-column: 1 / 2;
	}

	.form__address .form__prefecture {
		grid-column: 2 / 3;
	}

	.form__checkbox-label {
		align-items: stretch;
	}

	.form__address {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
		align-items: start;
	}

	/* 郵便番号と都道府県を横並び */
	.form__zip {
		grid-column: 1 / 2;
		display: grid;
		grid-template-rows: auto 1fr auto;
		/* 入力欄、エラー */
		gap: 8px;
	}

	.form__prefecture {
		grid-column: 2 / 3;
		display: grid;
		grid-template-rows: auto 1fr auto;
		/* 入力欄、エラー */
		gap: 8px;
	}

	/* 市区町村は2カラムにまたがる */
	.form__city {
		grid-column: 1 / -1;
	}

	.form__street {
		grid-column: 1 / -1;
	}

	.form__checkbox-group {
		flex-direction: row;
	}
	
	.form__address .form__address1 {
		grid-column: 1 / -1;
		grid-row: 3 / 4;
	}

	/* 建物名・部屋番号 */
	.form__address .form__address2 {
		grid-column: 1 / -1;
		grid-row: 4 / 5;
	}
}