/*
    Theme Name: sagaedam-entry
*/


/* Box sizing rules */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Prevent font size inflation */
html {
	-moz-text-size-adjust: none;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
	margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
	list-style: none;
}

/* Set core body defaults */
body {
	min-height: 100vh;
	line-height: 1.8;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
	line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
	text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
	text-decoration-skip-ink: auto;
	color: currentColor;
}

/* Make images easier to work with */
img,
picture {
	max-width: 100%;
	display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
	font-family: inherit;
	font-size: inherit;
	padding: 5px;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
	min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
	scroll-margin-block: 5ex;
}

.sponly {
	display: none;
}

@media screen and (max-width: 639px) {
	.sponly {
		display: inline-block;
	}
}

.ta-c {
	text-align: center;
}

main {
	box-sizing: border-box;
	width: 800px;
	margin: 0 auto;
}

@media screen and (max-width: 639px) {
	main {
		width: 100%;
		padding: 0 20px;
	}
}

h1 {
	margin: 50px auto 50px;
	font-size: 30px;
	text-align: center;
}

h3 {
	font-size: 20px;
	text-align: center;
	margin-top: 50px;
}

dl {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	border-top: 1px solid #ddd;
}

@media screen and (max-width: 639px) {
	dl {
		font-size: 14px;
		flex-direction: column;
	}

	p {
		font-size: 14px;
	}
}


dt {
	margin: 0;
	box-sizing: border-box;
	width: 10em;
	padding: 15px 0;
	text-align: center;
	font-weight: bold;
	background: #deebff;
	border-bottom: 1px solid #ddd;
}

@media screen and (max-width: 639px) {
	dt {
		padding: 5px 7px;
		font-size: 14px;
		width: 100%;
		border-bottom: none;
		text-align: left;
	}
}

dd {
	margin: 0;
	box-sizing: border-box;
	width: calc(100% - 10em);
	padding: 15px 10px;
	line-height: 2;
	border-bottom: 1px solid #ddd;
}

@media screen and (max-width: 639px) {
	dd {
		padding: 10px 0;
		font-size: 14px;
		width: 100%;
	}
}


.name,
.tel,
.fax,
.mail,
.hogoname {
	width: 100%;
}


dd table {
	margin: 0;
	padding: 0;
}

dd table th {
	text-align: left;
	font-weight: normal;
	vertical-align: bottom;
}

dd table td.top {
	vertical-align: top;
}

.ninzu,
.class6,
.class5,
.class4,
.class3,
.hogosyaninzu {
	width: 2em;
}

.message {
	width: 100%;
}

ol {
	margin-left: 1em;
	padding: 0;
}

@media screen and (max-width: 639px) {
	ol {

		font-size: 14px;

	}
}


ol li+li {
	margin-top: 10px;
}

.cl-red {
	color: red;
}

.btn-kakunin {
	text-align: center;
}

.btn-submit {
	text-align: center;
}

.btn-list {
	display: flex;
	margin: 50px auto;
	justify-content: center;
}


.button {
	display: inline-block;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	color: white;
	transition: background-color 0.3s, color 0.3s;
	border-radius: 10px;
	padding: 15px;
}

.btn-kakunin {
	margin: 0 0 0 15px;
	text-align: left;
}

.btn-back {
	margin: 0;
	text-align: right;
}




.btn-list input {

	box-sizing: border-box;
	padding: 15px;
	border: none;
	color: #fff;
	font-weight: bold;
	border-radius: 5px;
	cursor: pointer;
}

.submit {
	background: #fc6e42;

}

.btn-kakunin input {
	width: 20em;
}

.back {
	background: #aaa;
}

.btn-back {
	margin-left: 15px;
}

.btn-back input {

	width: 8em;
}

footer {
	width: 800px;
	margin: 50px auto;
	border-top: 1px solid #ddd;
	padding-top: 50px;
	text-align: center;
}

@media screen and (max-width: 639px) {
	footer {
		margin: 30px auto 0;
		padding: 30px 0 20px;
		width: 100%;
	}
}

.footer-name {
	font-weight: bold;
}

footer p+p {
	margin-top: 0px;
}


.mw_wp_form .error {
	background: #ffe5e5;
	box-sizing: border-box;
	padding: 5px 10px;
	margin-bottom: 10px;
	font-size: 13px;
}

table+.error {
	margin-top: 20px;
}