@charset "utf-8";

@font-face {
	font-family: "Utsukushi-Mincho";
	src: url("./UtsukushiFONT.otf");
}

@font-face {
	font-family: "KleeOne-Regular";
	src: url("./KleeOne-Regular.ttf");
}

@font-face {
	font-family: "KleeOne-SemiBold";
	src: url("./KleeOne-SemiBold.ttf");
}

::-webkit-scrollbar {
	background: rgba(255,255,252,1);}
	
::-webkit-scrollbar-thumb {
	background: linear-gradient(rgba(255,255,252,1), rgba(104,183,161,1) 25% 75%, rgba(255,255,252,1));
}

html {
	min-height: 100vh;
	max-width: 800px;
	margin: 0 auto;
}

body {
/*	background: linear-gradient(to bottom, #fff 60%, #8bddd1); */
	background: linear-gradient(rgba(255,255,252,1) 30%, rgba(104,183,161,1)); /* 胡粉色#fffffc／青磁色#68b7a1 */
	color: rgba(76,73,72,1); /* 消炭色#4c4948 */
	font-family: 'Shimanami JIS2004';
}

a {
	color: rgba(76,73,72,1);
	cursor:default;
	text-decoration: none;
	padding: 0 0.5em;
	border-radius: 0.3em;
}

a:hover {
	transition: 0.5s;
	background:linear-gradient(transparent 25%, rgba(104,183,161,0.5) 75%, transparent);
}

/* index */

body.index h1 { 
	cursor:default;
	padding: 50px 0 25px;
	text-align: center;
	font-size: xx-large;
}	

div.index-search-text {
	text-align: center;
	margin: 0 auto 1em;
}

.index input[type="text"] {
	font-family:'KleeOne-Regular';
	font-size: medium;
	text-align: center;
	color: rgba(76,73,72,1);
	height: 2em;
	width: 60%;
	box-sizing: border-box;
	padding-bottom: 0.2em;
	border: none;
	border-bottom: 3px solid rgba(76,73,72,0.5);
	background: transparent;
}

.index input[type="text"]:focus {
	transition: 0.5s;
	border-bottom: 3px solid rgba(104,183,161,1);
	outline: none;
}

.index input[type="text"]::placeholder {
	font-family:'KleeOne-Regular';
	color: rgba(76,73,72,0.5);
	letter-spacing: 0.1em;
}

div.index-search-button {
	text-align: center;
	margin: 0 auto 1.5em;
}

.index input[type="button"] {
	font-family:'KleeOne-Regular';
	font-size: medium;
	color: rgba(76,73,72,1);
	height: 2em;
	margin: 0 0.25em;
	box-sizing: border-box;
	border: 3px outset;
	background: transparent;
}

.index input[type="button"]:hover {
	background:linear-gradient(transparent 25%, rgba(104,183,161,0.5) 75%, transparent);
}

.highlight{
	padding:0 0.25em;
	color: rgba(76,73,72,1);
	background:linear-gradient(transparent 25%, rgba(104,183,161,0.5) 75%, transparent);
	display: inline-block;
	border-radius: 0.3em;
}

div.index-recipes {
	text-align: center;
	width: 80%;
	margin: 0 auto;
	font-size: large;
}

body.index p {
	margin: 15px 0;
}

/* recipe */

h2 {
	margin-left: 0.5em;
	margin-top: 50px;
	text-align: left;
	font-size: x-large;
}	

h3 {
	margin: 2em 0.5em 1em;
	text-align: left;
	font-size: large;
	text-decoration: underline;
}	

h4 {
	margin-top: -1em;
	margin-left: 0.75em;
	text-align: left;
	font-size: small;
}	

img {
	max-width: 100%;
}	

ul {
	list-style-type: square;
	margin-right: 1em;
}

ol {
	margin-right: 1em;
}

ul li {
	margin-bottom: 0.25em;
}
ol li {
	margin-bottom: 1em;
}

table {
	max-width: 80%;
	margin: 0 auto;
	page-break-inside:avoid;
	background: rgba(255,255,252,0.5);
}

table, th, td {
	border-collapse: collapse;
	border: 1.5px solid rgba(76,73,72,1);
}

th, td {
	padding: 0.25em 0.5em;
}

thead th, thead td {
	text-align: center;
}

tbody th {
	text-align: left;
}

tbody td {
	text-align: right;
}

details {
	margin: 0 1em 1em;
}

summary {
	margin: 0 0 0.5em;
	text-decoration: underline;
}

details span {
	text-decoration: underline;
}

div.ing&pre {
	page-break-inside:avoid;
}

div.image {
	margin: 0 auto;
	width: 60%;
}

div.ingredients {
	page-break-inside:avoid;
}

div.preparation {
	page-break-inside:avoid;
}

div.process {
	page-break-inside:avoid;
}

.recipe input[type="text"] {
	font-family:'Shimanami JIS2004';
	text-align: center;
	font-size: 1em;
	color: rgba(76,73,72,1);
	width: 3em;
	box-sizing: border-box;
	border: none;
	border-bottom: 1px solid rgba(76,73,72,0.5);
	background: transparent;
}

.recipe input[type="text"]:focus {
	transition: 0.5s;
	border-bottom: 1px solid rgba(104,183,161,1);
	outline: none;
}

.recipe input[type="text"]::placeholder {
	font-family:'Shimanami JIS2004';
	color: rgba(76,73,72,0.5);
}

/* footer */

footer div {
	text-align: right;
	margin-top: 1em;
	margin-bottom: 1em;
}

footer div.figures {
	display: none;
}

footer a:hover {
	background:linear-gradient(transparent 25%, rgba(255,255,252,0.5) 75%, transparent);
}

/* print */

@media print {
	html {
		width: 100%;
		max-width: none;
	}
	body {
		background : none;
		color: black;
	}
	h2 {
		margin-top: 0;
	}
	table {
		background : none;
	}
	footer {
		display: none;
	}
}