@charset "UTF-8";
/* === メールフォーム  === */
/*   (c)2017 三宅龍太郎    */

	h3 {
		clear: none;
		line-height: 2;
		border: 0 none;
	}

	form dt {
		font-weight: 700;
	}
	form dd {
		margin: 0 0 0 4%;
	}
	form dd img {
		max-width: 200px;
		max-height: 200px;
		width: auto;
	}
	form ul {
		margin: 0;
		padding: 0;
		list-style: none;
	}
	form ol {
		margin: 0;
		padding: 0;
		list-style-position: inside;
	}

	form textarea {
		margin-top: .1875em;
		width: calc(100% - 3px);
	}
	form fieldset {
		border: 0;
	}
	form legend {
		display: none;
	}
	form [type='file'] {
		width: 85%;
		max-width: calc(100% - 50px);
	}
	form [type='submit'] {
		padding: 0 .5em;
		font-size: 1.2em;
		line-height: 1.8;
		border-radius: .3125em;
	}
	form [type='submit']:focus {
		color: inherit;
		background-color: #666;
	}
	button {
		font-size: 1em;
	}

	/* 添付ファイル入力エリア */
	#initial form dd:nth-of-type(5) {
		overflow: auto;
	}
	#initial form dd:nth-of-type(5) fieldset {
		display: block;
		width: 100%;
	}
	#initial form dd:nth-of-type(5) li {
		margin: 0 0 .8em 0;
	}
	#initial form dd:nth-of-type(5) li:last-of-type {
		margin: 0;
	}

	.flex._tright li {
		margin: 3px;
		list-style: none;
		text-align: right;
	}
	.flex._tright li button {
		display: block;
	}
	footer .flex._left, hr + .flex._left {
		margin-bottom: 1.5em;
	}
	.flex._left a::after {
		content: '';
		display: none;
	}
	address + ul {
		margin: 0 0 1em 0;
	}

	/* 著作権表示 */
	p[style]:last-of-type {
		clear: both;
	}
	p[style]:last-of-type a[target]::after {
		content: '';
		display: none;
	}

@media (min-width: 480px) {

	form {
		margin: 0;
		padding: 0;
	}
	form p {
		margin: 0 0 1.5em 0;
		padding: 0;
		border-bottom: .0625em dashed light-dark(#333, #ccc);
	}
	form hr {
		display: none;
	}
	form dl {
		display: grid;
		grid-template-columns: auto 1fr;
		gap: 0 .5em;
		margin: 0;
		padding: 1px 1px 1px 0;
		width: 100%;
	}
	form :is(dt, dd, li) {
		margin: 0;
		padding: 0;
		text-align: start;
	}
	form dt {
		display: block;
		text-align: center;
	}
	form + ul {
		margin: 0;
		padding: 0;
		list-style: none;
		text-align: center;
		font-size: .8em;
	}
	form :is([type='text'], [type='email']) {
		width: 70%;
	}
	form :is([type='text'], [type='email'])::placeholder {
		color: rgb(210, 61, 36);
	}
	form [type='file'] {
		width: 80%;
		max-width: 25em;
		font-size: 1em;
	}
	form [type='submit'] {
		font-size: 1em;
		line-height: inherit;
	}
	form button {
		margin-left: .3em;
	}

	/* 添付ファイル入力エリア */
	#initial form dt:nth-of-type(4) {
		grid-row: 4 / 6;
		grid-column: 1;
	}
	#initial form dd:nth-of-type(5) :is(ol, li) {
		margin: 0 0 .2em;
	}

	.flex._tright {
		list-style: none;
		/* background: url('./image/address5.webp') no-repeat 50% 100%/auto 22px; */
	}
	.flex._tright li button {
		display: inline;
	}
	.flex._right {
		margin: 0 .3em .5em 1em;
	}

	#confirm form dd {
		border-bottom: #ccc solid .0625em;
	}
	#confirm form dd img {
		margin-top: .2em;
	}

	#ending div:first-of-type {
		margin: 0;
		padding: 112px 0 0;
		background: url('./image/sumahoneko.webp') no-repeat 50% 0/auto 150px;
	}
	/* ホームボタン */
	#ending .flex li a {
		display: inline-block;
	}
	#ending .flex li a::after {
		content: '';
		display: none;
	}

	#error {
		padding-bottom: 2em;
	}
	#error .errmsg {
		margin: 0;
	}
	#error form + ul {
		font-size: 1em;
	}
}

@media (min-width: 680px) {

	#error .errmsg {
		min-height: 9em;
		background: url('./image/okorineko.webp') no-repeat 100% 0/contain;
	}
	/* 添付ファイル */
	/*
	form ol {
		background: url('./image/post.webp') no-repeat right bottom/6em;
	}
	*/

}
