/*
 * mailform8 - スタイルシート
 * タブインデント・font-size宣言なし
 */
input, select, textarea {
	scroll-margin-top: 50px;
}

:root {
	--mf-black:    #000000;
	--mf-gray:     #cccccc;
	--mf-gray-bg:  #f9f9f9;
	--mf-white:    #ffffff;
	--mf-red:      #cc0000;
}

.mailform8 h2 {
    font-family: inherit;
    font-size: 100%;
    display: inline-block;
    border: 0;
    padding: 0;
    margin: 10px 5px 5px 0;
}

.mailform8 h2:first-child {
    margin: 20px 5px 5px 0;
}

.Required_check {
    display: inline-block;
    background-color: var(--mf-red);
    color: var(--mf-white);
    font-size: 70%;
    border-radius: 5px;
    padding: 5px 10px;
    top: -1px;
    line-height: 1em;
}

/* ── ベース ── */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* ── ラッパー ── */
#mf-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 0;
}

#mf-wrap h1 {
    line-height: 1.5;
    text-align: center;
}

/* ── フォームフィールド ── */

/* ── 横並び50% ── */
.mf-w50 {
	display: flex;
	gap: 16px;
}

.mf-w50 label {
	flex: 1;
}

.short-input {
    width: 4em!important;
    margin: 0 0.5em 10px 0.5em;
    text-align: right;;
}

label {
    cursor: pointer;
}

/* ── input・select・textarea・button・checkbox・radio 共通 ── */
input,
select,
textarea,
button {
	font-size: 100%;
	font-family: inherit;
	margin: 0 auto 10px auto;
}

/* ── テキスト系input・textarea ── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
	width: 100%;
	border: var(--mf-gray) solid;
	border-width: 1px;
	padding: 6px 10px 7px 10px;
	appearance: none;
	background: var(--mf-gray-bg) !important;
}

input[type="text"]:not(:placeholder-shown),
input[type="email"]:not(:placeholder-shown),
input[type="tel"]:not(:placeholder-shown),
input[type="number"]:not(:placeholder-shown),
textarea:not(:placeholder-shown) {
	background: var(--mf-white) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus {
	outline: none;
	border-color: var(--mf-black);
	background: var(--mf-white) !important;
}

input[type="checkbox"],
input[type="radio"] {
	width: 1em;
	height: 1em;
	cursor: pointer;
	top: 2px;
    margin: 0 5px 10px 0;
}

label.check_radio {
    margin: 0 1em 0 0;
}

input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px var(--mf-white) inset;
}

textarea {
	resize: vertical;
	min-height: 120px;
}

/* ── select ── */
select {
	border: var(--mf-gray) solid;
	border-width: 1px;
	padding: 6px 30px 7px 10px;
	appearance: none;
	background-color: var(--mf-gray-bg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
}

select.selected {
	background-color: var(--mf-white);
}

select:focus {
	outline: none;
	border-color: var(--mf-black);
}

.mf-check-label {
    display: inline-block;
    margin: 20px auto;
}

/* ── 送信ボタン ── */
.mf-submit {
	text-align: center;
}

button[type="submit"],
.mf-btn-top,
.mf-btn-back,
.mf-btn-send {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 160px;
	height: 46px;
	border-radius: 5px;
	cursor: pointer;
	text-decoration: none;
	border: var(--mf-gray) solid;
	border-width: 1px;
	background-color: var(--mf-white);
	color: var(--mf-black);
	transition: 0.2s;
	margin: 0;
}

button[type="submit"].mf-disabled {
	opacity: 0.5;
	cursor: default;
}

button[type="submit"]:hover,
.mf-btn-top:hover,
.mf-btn-back:hover,
.mf-btn-send:hover {
	border: var(--mf-red) solid;
	border-width: 1px;
	background-color: var(--mf-red);
	color: var(--mf-white);
	transition: 0.2s;
}

button[type="submit"].mf-disabled:hover {
	border: var(--mf-gray) solid;
	border-width: 1px;
	background-color: var(--mf-white);
	color: var(--mf-black);
}

/* ── 確認画面 ── */
.mf-confirm-lead {
	margin: 0 0 24px 0;
}

.mf-confirm-list {
	border: var(--mf-gray) solid;
	border-width: 1px 0 0 0;
	margin: 0 0 30px 0;
	padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.mf-confirm-list dt {
	border-bottom: var(--mf-gray) solid;
    background-color: var(--mf-gray-bg);
	border-width: 1px;
	padding: 8px 12px 8px 12px;
	margin: 0;
    width: 14em;
    text-align: center;
}

.mf-confirm-list dd {
	border-bottom: var(--mf-gray) solid;
	border-width: 1px;
	padding: 10px 12px 10px 12px;
	margin: 0;
	white-space: pre-wrap;
	word-break: break-all;
    width: calc(100% - 14em);
}

.mf-confirm-btns {
	display: flex;
	gap: 16px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

/* ── 完了画面 ── */
.mf-thanks-box {
	border: var(--mf-gray) solid;
	border-width: 1px;
	padding: 30px 30px 30px 30px;
	margin: 0 0 30px 0;
	line-height: 1.8;
    border-radius: 10px;
    display: inline-block;
    text-align: left;
}

.mf-gmail-note {
	margin: 20px 0 0 0;
}

.mf-contact-info {
	margin: 20px auto;
}

.mf-coment {
    margin: 0 auto 10px auto;
}

/* ── スマホ ── */
@media (max-width: 600px) {
	#mf-wrap {
		padding: 0;
	}

	.mf-w50 {
		flex-direction: column;
		gap: 0;
	}

	.mf-confirm-btns {
		flex-direction: column;
		align-items: center;
	}

	button[type="submit"],
	.mf-btn-top,
	.mf-btn-back,
	.mf-btn-send {
		width: 100%;
		height: 46px;
	}
}
