@charset "UTF-8";

/*==================================================
 入力フィールド
================================================== */

select,
textarea,
input[type="tel"],
input[type="text"],
input[type="email"],
input[type="url"] {
	width: 100%;
	padding: 2rem 1rem;
	font-size: 2rem;
	font-family: var(--font-base);
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0;
	background-color: var(--color-gray);
	border: none;
	border-radius: 2px;
	box-sizing: border-box;
	transition: all 0.3s ease-in-out;
}

select:focus,
textarea:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus {
	outline: none;
	border: none;
	background-color: var(--color-white);
	box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

textarea {
	width: 100%;
}

/* ボタン
-------------------------------------------------- */
button,
input[type="button"],
input[type="submit"] {
	font-size: 1em;
	font-family: var(--font-base);
	font-weight: var(--fw-bold);
	color: var(--color-white);
	background: var(--color-main);
	border: none;
	padding: 15px;

	-webkit-appearance: none;
	transition: all 0.4s ease;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
	transform: scale(1.05);
	cursor: pointer;
}

button:active,
input[type="button"]:active,
input[type="submit"]:active {
	transform: scale(1);
	cursor: pointer;
}

button[disabled],
input[type="button"][disabled],
input[type="submit"][disabled] {
	color: var(--color-white);
	background: var(--color-gray);
	pointer-events: none;
}

/* チェックボックス・ラジオボタン
-------------------------------------------------- */

input[type="radio"],
input[type="checkbox"] {
	display: inline-block;
	margin-right: 0.6rem;
}

input[type="radio"]+label,
input[type="checkbox"]+label {
	position: relative;
	display: inline-block;
	margin-right: 1.2rem;
	line-height: 3rem;
	cursor: pointer;
}

input[type="radio"]+label:last-child,
input[type="checkbox"]+label:last-child {
	margin-right: 0;
}

input[type="radio"],
input[type="checkbox"] {
	display: none;
	margin: 0;
}

input[type="radio"]+label,
input[type="checkbox"]+label {
	margin-bottom: 0.5rem;
	padding: 0 0 0 2.4rem;
}

input[type="radio"]+label::before,
input[type="checkbox"]+label::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	display: block;
	width: 1.8rem;
	aspect-ratio: 1;
	margin-top: -0.9rem;
	background: var(--color-white);
}

input[type="radio"]+label::before {
	border: 2px solid var(--color-gray);
	border-radius: 50%;
}

input[type="checkbox"]+label::before {
	border: 2px solid var(--color-gray);
}

input[type="radio"]:checked+label::after,
input[type="checkbox"]:checked+label::after {
	content: "";
	position: absolute;
	top: 50%;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	display: block;
}

input[type="radio"]:checked+label::after {
	left: 0.5rem;
	width: 0.8rem;
	aspect-ratio: 1;
	margin-top: -0.4rem;
	background: var(--color-main);
	border-radius: 50%;
}

input[type="checkbox"]:checked+label::after {
	left: 0.3rem;
	width: 1.6rem;
	aspect-ratio: 2 / 1;
	margin-top: -0.8rem;
	border-left: 0.3rem solid var(--color-main);
	border-bottom: 0.3rem solid var(--color-main);
	-webkit-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	transform: rotate(-45deg);
}

/*==================================================
 テーブル
================================================== */

.p-contact {
	padding: 12rem 0;
	position: relative;
	overflow: hidden;
}

.p-contact::before {
	content: "";
	background-image: url("/img/common/skyblue_tri_deco.png");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	width: 42rem;
	height: 42rem;
	position: absolute;
	top: 0;
	right: 0;
	z-index: -1;
}

.p-contact::after {
  width: clamp(37.5rem, 31.25vw, 60rem);
  height: clamp(37.5rem, 31.25vw, 60rem);
  position: absolute;
  content: '';
  bottom: 0;
  left: 0;
  background: url("../img/common/black_tri_deco.png") no-repeat center right;
  background-size: cover;
  z-index: -1;
}

.p-contact #mail-form {
	scroll-margin-top: 12rem;
}

.contact-form-table {
	width: 100%;
	font-family: var(--font-base);
	font-size: var(--font-size-base);
	margin-top: 5rem;
}

.contact-form-table tr {
	border-top: 1px solid var(--color-gray);
}

.contact-form-table tr:last-of-type {
	border-bottom: 1px solid var(--color-gray);
}

.contact-form-table th,
.contact-form-table td{
	font-weight: var(--fw-bold);
	padding: 15px;
	vertical-align: middle;
}

.contact-form-table th {
	color: var(--color-main);
}

.privacy-link {
	text-decoration: underline !important;
	text-underline-offset: 0.4rem;
	color: var(--color-main);
}
/* スマホ表示時にはテーブルを縦向きにする */
@media screen and (max-width: 768px) {

	.contact-form-table,
	.contact-form-table tbody,
	.contact-form-table tr,
	.contact-form-table th,
	.contact-form-table td {
		width: auto;
		display: block;
	}

	.required-mark {
		float: none !important;
	}

	.p-contact::before {
		width: 10rem;
		height: 10rem;
	}

	.p-contact::before {
		width: 10rem;
		height: 10rem;
	}

  .p-contact:after {
    width: clamp(17.5rem, 45.573vw, 35rem);
    height: clamp(17.5rem, 45.573vw, 35rem);
  }
}

/* ご住所だけ2段なのでマージンを開ける */
input[name="items[address]"] {
	margin-top: 0.8rem;
}

/* 「不正な送信です」「時間を空けて再度送信ください」などのセキュリティエラー文 */
.sec-error-text {
	line-height: 1.5;
	padding: 4rem 1rem;
	text-align: center;
	color: var(--color-white);
	font-size: 1.5rem;
	background: #ff0000;
}

.sec-error-link {
	margin-top: 3rem;
	text-align: center;
	font-size: 1em;
}

@media screen and (max-width: 768px) {
	/* .sec-error-text {
    padding: 3rem 1rem;
    font-size: 4vw;
  }
  .sec-error-link {
    font-size: 5vw;
  } */
}

/* 「任意」「必須」マーク */
.optional-mark,
.required-mark {
	color: #ff0000;
	font-size: 1.3rem;
	line-height: 2;
	padding-inline: 0.5em;
	border-radius: 0.2rem;
	float: right;
}

.optional-mark {
	background: var(--color-main);
}

.required-mark {
	background: var(--color-white);
}

/* 「~が入力されていません」などの未記入エラー文 */
.error-text {
	font-size: 1.5rem;
	margin-bottom: 0.4rem;
	color: #ff0000;
}

/* 送信・確認ボタン */
.contact-submits-wrap {
  margin-top: 5rem;
	text-align: center;
  display: flex;
  justify-content: center;
  gap: 5rem;
}

/* プライバシーポリシー */
.inline-privacy-policy {
	height: 35rem;
	margin-block: 2rem;
	border: 1px solid var(--color-contact-border);
	background: var(--color-white);
}

.inline-privacy-policy-inner {
	width: 100%;
	height: 100%;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	overflow-scrolling: touch;
	display: inline-block;
}

.inline-privacy-policy iframe {
	width: 100%;
	height: 100%;
	display: block;
}

/* リキャプチャ */
.contact-recaptcha-wrap {
	margin: 1.6rem auto;
	display: table;
}

/*==================================================
 日付選択フォーム
================================================== */
.date-list {
	padding-left: inherit;
}

.date-list li {
	list-style: none;
	margin-bottom: 1.5rem;
}

.date-list li p {
	margin-bottom: 0.5rem;
}

/*==================================================
 画像アップロードフォーム
================================================== */

.upload-item-wrap {
	font-size: var(--font-size-sm);
	overflow: hidden;
}

.upload-item-wrap input[type="file"] {
	display: none;
}

/* アップされた画像のサムネイル */
.upload-item-wrap .thumb {
	width: min(22rem, calc(100% - 12rem));
	aspect-ratio: 1;
	margin-right: 1rem;
	position: relative;
	overflow: hidden;
	float: left;
}

.upload-item-wrap .thumb img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

/*選択・削除ボタン  */
.upload-item-wrap .ancion-btn-wrap {
	float: left;
}

.upload-item-wrap .ancion-btn {
	margin-bottom: 0.8rem;
	width: 11rem;
	line-height: 3.5rem;
	text-align: center;
	color: var(--color-white);
	border-radius: 0.4rem;
	background: var(--color-contact-gray);
	display: block;
}

.upload-item-wrap .select-file {
	background: var(--color-contact-green);
}

.upload-item-wrap .deselect-file {
	background: var(--color-contact-red);
}

.upload-item-wrap .ancion-btn:hover {
	cursor: pointer;
}

/*添付ファイルの注意文  */
.upload-notice {
	display: block;
	margin-top: 1rem;
	font-size: var(--font-size-xs);
	line-height: var(--line-height-xs);
}