@charset "UTF-8";

/*---------------共通指定---------------*/

:root{
	--text_color:#111;
	--back_color:#eee;
	--formbg_color:#fff;
	--border_color:#b7b7b7;
	--button_color:#fafafa;
	--font_gothic:"Noto Sans JP", sans-serif;
	--font_borel:"Borel", cursive;
}
@media (prefers-color-scheme: dark) {
	:root{
		--text_color:#eee;
		--back_color:#222;
		--formbg_color:#000;
		--border_color:#5f5f5f;
		--button_color:#393939;
	}
}

*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
ul, ol, li{
	list-style:none;
}
img {
	border: 0;
}
p {
	line-height: 1.8;
}
a{
	color: var(--text_color);
	text-decoration: underline;
	text-decoration-line: underline;
	text-decoration-style: dashed;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
a:hover{
	text-decoration:none;
}
.screen-reader{
	clip: rect(1px,1px,1px,1px);
	word-wrap: normal!important;
	border: 0;
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

/* 背景 */

body{
	background-color: var(--back_color);
	color: var(--text_color);
	font-family: var(--font_gothic);
	font-weight: 300;
	font-size: 16px;
	padding: 1em 0 0;
	margin: 0;
	background-image: url(img/bg_header.png);
	background-size: auto 250px;
	background-repeat: no-repeat;
	background-position: top center;
}
#wrap{
	padding: 0;
	margin: 1em auto;
	width: 95%;
	max-width: 700px;
	position: relative;
	z-index: 2;
}
#wrap main{
	display: block;
}
#area_result{
	max-width: 400px;
	margin: 0 auto 20px;
}
#area_tool,
#area_about{
	width: 100%;
}
#area_latest,
#area_info,
#area_policy,
#area_howto{
	padding-top: 3em;
	width: 100%;
}

/*---------------レイアウト---------------*/


/*--------------- header ---------------*/

#header{
	position: relative;
	margin: 0 auto;
	padding: 10px 0 5px;
	width: 95%;
	max-width: 700px;
}
#sitetitle{
	font-size: 2em;
	text-align: left;
	font-weight: 600;
	margin: 0 auto;
	padding: 0px 0 20px;
}
#page-top #sitetitle{
	padding: 40px 0 20px;
}
#sitetitle a{
	display: block;
	text-decoration: none;
	background-image: url(img/sitetitle.png);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	width: 300px;
	height: 95px;
	text-indent: -9999px;
	overflow: hidden;
	margin: 0 auto;
}

/* nav */

nav ul{
	display: flex;
	justify-content: center;
	align-items: center;
}
nav ul li{
	display: flex;
	font-family: var(--font_borel);
	font-weight: 500;
	font-size: 18px;
}
nav ul li a{
	text-decoration: none;
}
nav ul li a:hover{
	text-decoration: underline;
	text-decoration-style: dashed;
}
nav ul li.current a{
	text-decoration: underline;
	text-decoration-style: solid;
}
nav ul li::after{
	content: ':';
	display: block;
	margin: 0 1em;
}
nav ul li:last-child::after{
	display: none;
}

/*--------------- footer ---------------*/

hr{
	border: none;
	background-color: transparent;
	background-image: url(img/line.png);
	background-size: auto 100%;
	background-position: center;
	height: 15px;
	width: 100%;
	max-width: 700px;
	margin: 3em auto 0;
}

#footer{
	margin: auto auto 0;
	padding-top: 6px;
	padding-bottom: 1em;
	width: 95%;
	position: relative;
	z-index: 1;
}
#footer .author{
	text-align: center;
	font-size: 0.8em;
}

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

}

/*--------------- content ---------------*/

p{
	padding: 0 16px;
	margin: 1em 0;
}
h1,h2,h3{
	font-size: 1.6em;
	font-weight: 500;
	padding: 0 16px;
	margin: 0 0 0.5em;
}
h3{
	margin-top: 2em;
	font-size: 1.2em;
	font-weight: 500;
}
h2:first-child{
	margin-top: 0;
}
p:last-child{
	margin-bottom: 0;
}
.txt-center{
	text-align: center;
}
.txt-large{
	font-size: 1.5em;
}
.data, .txt-small{
	font-size: .8em;
}
img{
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
}
.maker{
	background-color: rgb(255 154 235 / 25%);
}

/* content */

main hr{
	background-repeat: no-repeat;
}

/* -- about -- */
#area_about h2{
	margin-bottom: 40px;
}
#area_howto ol{
	padding: 0 16px;
	margin: 1em 0;
}
#area_howto ol li{
	position: relative;
	padding-left: 2em;
	margin: 8px 0;
	line-height: 1.6;
}
#area_howto ol li span.num{
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 400;
}


/* -- makes -- */
label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

#area_result{
	position: relative;
	display: flex;
}
.result {
	position: relative;
	border: 1px solid var(--border_color);
	border-radius: 4px;
	background-color: var(--formbg_color);
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	overflow: hidden;
}
#resultCanvas {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

.area_btn{
	padding-top: 1em;
	text-align: center;
}
button#generate{
	border: var(--border_color) 2px solid;
	background-color: var(--button_color);
	color: var(--text_color);
	background-image: none;
	border-radius: 30px;
	padding: 3px 1em;
	cursor: pointer;
	font-size: 1.2em;
}
button#generate:hover{
	opacity: 0.6;
}

#area_tool {
	max-width: 600px;
	margin: 0 auto;
}
.options {
}
.opt-lists {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	border-bottom: var(--text_color) 2px solid;
	position: relative;
}
.opt-lists li {
	padding: 8px 10px;
	border-radius: 8px 8px 0 0;
	border: var(--text_color) 2px solid;
	cursor: pointer;
	transition: all 0.3s ease;
	user-select: none;
	font-weight: 600;
	translate: 0 2px;
	background-color: var(--back_color);
}
.opt-lists li:hover {
	background-color: var(--button_color);
}
.opt-lists li.open {
	background-color: var(--formbg_color);
	border-bottom: transparent;
}
.opt-imgs {
	list-style: none;
	padding: 1em;
	margin: 0;
	display: none;
	flex-wrap: wrap;
	gap: 15px;
	background-color: var(--formbg_color);
	border-radius: 0 0 8px 8px;
	border: var(--text_color) 2px solid;
	border-top: none;
	max-height: 35vh;
	overflow: scroll;
}
.opt-imgs.show {
	display: flex;
}
.opt-imgs li {
	width: 80px;
	height: 80px;
	border: 2px solid var(--border_color);
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--back_color);
	position: relative;
}
.opt-imgs li:hover {
	border-color: var(--text_color);
	transform: scale(1.05);
}
.opt-imgs li.selected {
	border-color: var(--text_color);
}
.opt-imgs li.selected::after {
	content: '\2713';
	position: absolute;
	top: -5px;
	right: -5px;
	width: 20px;
	height: 20px;
	background-color: var(--text_color);
	color: var(--back_color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
}
.opt-imgs li.icon-new::before {
	content: 'New!';
	position: absolute;
	top: -5px;
	left: -5px;
	color: rgb(255, 46, 213);
	font-size: 12px;
	font-weight: 900;
	text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}
.opt-imgs li[data-part1="title"],
.opt-imgs li[data-part2="title"],
.opt-imgs li[data-part3="title"]{
	width: 100%;
	height: fit-content;
	padding: 5px 8px;
	border: none;
	justify-content: flex-start;
	cursor: none;
	pointer-events: none;
}
.opt-imgs img {
	max-width: 70px;
	max-height: 70px;
	object-fit: contain;
}
.preview-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.opt-imgs .accordion{
	width: 100%;
}
.opt-imgs .accordion-header{
	width: 100%;
	padding: 5px 8px;
	border-radius: 10px;
	background-color: var(--back_color);
	position: relative;
	font-weight: 700;
	display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}
.opt-imgs .accordion-header.icon-new::before {
	content: 'update!';
	display: inline-block;
	color: rgb(255, 46, 213);
	font-size: 12px;
	font-weight: 900;
	text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}
.opt-imgs .accordion-header::after{
	content: '\25bc';
	display: inline-block;
	position: absolute;
	right: 10px;
}
.opt-imgs .accordion-header.active::after{
	rotate: 90deg;
}
.opt-imgs .accordion-content{
	width: 100%;
	height: fit-content;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 15px;
}

@media screen and (max-width: 499px){
	.opt-imgs .accordion-content,
	.opt-imgs{
		gap: 10px;
	}
	.opt-imgs li {
		width: 72px;
		height: 72px;
	}
}

/* ポップアップスタイル */
.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	background-image: url(img/icon_loading.gif);
	background-position: center;
	background-repeat: no-repeat;
}
.popup-content {/*
	background-color: var(--back_color);
	padding: 20px 10px 20px;
	border-radius: 15px;
	text-align: center;
	max-width: 400px;
	width: 90%;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	animation: popupFadeIn 0.3s ease-out;*/
}
@keyframes popupFadeIn {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}
.popup-image {
	max-width: 300px;
	max-height: 300px;
	border: 2px solid var(--border_color);
	border-radius: 10px;
	margin: 20px 0 0;
	opacity: 0;
}
.popup-title {
	font-size: 24px;
	margin-bottom: 10px;
	font-weight: bold;
}
.popup-message {
	font-size: 16px;
	margin-bottom: 0px;
}
.popup-close {
	padding: 10px 25px;
	border: 2px solid var(--border_color);
	color: var(--text_color);
	background-color: var(--back_color);
	border-radius: 20px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	margin: 0 10px;
}
.popup-download {
	padding: 10px 25px;
	border: 2px solid var(--back_color);
	background-color: var(--text_color);
	color: var(--back_color);
	border-radius: 20px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	margin: 0 10px;
}
.popup-close:hover,
.popup-download:hover {
	opacity: 0.6;
}

/* -- farm -- */

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}
.image-item {
	border-radius: 8px;
	overflow: hidden;
	border: var(--border_color) 2px solid;
	transition: all 0.3s ease;
	cursor: pointer;
	background-color: var(--button_color);
}
.image-item:hover {
	border: var(--text_color) 2px solid;
}
.image-container {
	position: relative;
	width: 100%;
	height: auto;
	overflow: hidden;
	aspect-ratio: 1;
}
.image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.image-info {
	padding: 0;
	text-align: center;
}
.datetime {
	font-size: 10px;
	margin-bottom: 5px;
}

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
	margin-top: 30px;
	font-weight: 400;
	line-height: 1;
}
.pagination a, .pagination span {
	padding: 8px 8px;
	text-decoration: none;
	border: transparent 1px solid;
	color: var(--text_color);
	transition: all 0.3s ease;
}
.pagination a:hover {
	border-color: var(--text_color);
}
.pagination .current {
	border-bottom-color: var(--text_color);
}
.pagination .disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ポップアップモーダル */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.5);
	transition: all 0.3s;
	backdrop-filter: blur(3px);
	background-image: url(img/icon_loading.gif);
	background-position: center;
	background-repeat: no-repeat;
	overflow-y: scroll;
}
.modal-content {
	background-color: var(--back_color);
	padding: 10px 10px 20px;
	border-radius: 15px;
	text-align: center;
	max-width: 500px;
	width: 90%;
	margin: auto;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	animation: popupFadeIn 0.3s ease-out;
}
.modal img {
	max-width: 90%;
	max-height: 70vh;
	border-radius: 8px;
}
.modal-info {
	color: var(--text_color);
	margin-top: 15px;
}
.modal-buttons {
	margin-top: 20px;
	display: flex;
	justify-content: center;
	gap: 15px;
}
.btn {
	padding: 10px 15px;
	border: 2px solid var(--back_color);
	background-color: var(--text_color);
	color: var(--back_color);
	border-radius: 20px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	margin: 0 10px;
	text-decoration: none;
	transition: all 0.3s;
}
.btn-close {
	border: 2px solid var(--border_color);
	color: var(--text_color);
	background-color: var(--back_color);
}
.btn-download:hover,
.btn-close:hover {
	opacity: 0.6;
}
.no-images {
	text-align: center;
	color: var(--text_color);
	font-size: 18px;
	margin: 50px 0;
}
.info-bar {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
	padding: 10px 0;
}
.total-info {
	font-family: var(--font_borel);
	color: var(--text_color);
	font-size: 14px;
}
.modal-info　p{
	text-align: center;
}
.modal-info #modalCopyarea{
	width: 90%;
	height: 4rem;
	padding: 0.5rem;
	margin: 1em 0;
	border: var(--border_color) 1px solid;
	border-radius: 8px;
	background-color: var(--formbg_color);
	color: var(--text_color);
}
.modelShereBtn{
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}
.modelShereBtn li{
	opacity: 0.8;
}
.modelShereBtn li img{
	width: 32px;
	height: auto;
	filter: invert(0);
	border-radius: 0;
}
#modalFixText{
	padding: 1em 0 0.5em;
	font-weight: 500;
}
#modalDatetime{
	font-size: 12px;
}
@media (prefers-color-scheme: dark) {
	.modelShereBtn li img{
		filter: invert(1);
	}
}

/* -- top -- */

#area_top{
	padding-top: 2em;
}
#area_top p{
	font-size: 20px;
	font-weight: 400;
}
#area_top p a.btn{
	display: block;
	border: var(--border_color) 2px solid;
	max-width: 75%;
	margin: 0 auto;
	font-size: 20px;
}
#area_top p a.btn:hover{
	background-color: var(--border_color);
}

#area_latest h2,
#area_info h2{
	font-family: var(--font_borel);
	line-height: 1.2;
	border-bottom: var(--text_color) 1px solid;
}
#area_latest ul{
	display: flex;
	flex-wrap: wrap;
}
#area_latest ul li{
	width: calc(100% / 6);
}
#area_latest ul li img{
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
#area_latest ul li a{
	display: block;
	margin: 4px;
	border-radius: 8px;
	border: transparent 2px solid;
	transition: all 0.3s;
}
#area_latest ul li a:hover{
	border: var(--text_color) 2px solid;
}

#area_info ul li{
	padding: 10px 16px;
	display: flex;
	gap: 3px 5px;
	border-bottom: var(--border_color) 1px solid;
	line-height: 1.4;
}
#area_info ul li span.date{
	width: 100px;
	font-weight: 400;
}
#area_info ul li span.text{
	width: calc(100% - 105px);
}

@media screen and (max-width: 499px){
	#area_latest ul li{
		width: calc(100% / 4);
	}
	#area_info ul li{
		flex-wrap: wrap;
	}
	#area_info ul li span{
		width: 100% !important;
	}
}

/* ads */
.ads{
	margin: 3em auto 0;
}
.ads_anchor{
	height: 120px;
	width: 100%;
	position: sticky;
	left: 0;
	bottom: 0;
	z-index: 5;
	display: flex;
	justify-content: center;
	align-items: center;
	backdrop-filter: blur(3px);
}
.ads_anchor-in{
	max-width: 800px;
	margin: auto;
}

@media screen and (max-width: 599px){
	.ads_anchor{
		height: 100px;
	}
}
