@charset "utf-8";

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* http://www.rain-road.com/font/
   DEKISOKONAIFONT by rain-road
*/
@font-face {
    font-family: dekisokonai;
    src: url('../font/dekisokonaifont.ttf') format('truetype');
    src: url('../font/dekisokonaifont.woff') format('woff');
}

:root {
    --mainBg: #f3f3f3;
    --subBg: #ffffff;
    --mainInk: #333333;
}

@media(prefers-color-scheme: dark) {
    :root {
        --mainBg: #272822;
        --subBg: #3e3e3e;
        --mainInk: #ffffff;
    }
}

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

a {
    text-decoration: none;
    color: var(--mainInk);
}

body {
    background: var(--mainBg);
    color: var(--mainInk);
    font-size: 30px;
    font-family:
        dekisokonai,
        'ヒラギノ角ゴ Pro W3',
        'Hiragino Kaku Gothic Pro',
        Osaka,
        'メイリオ',
        Meiryo,
        'ＭＳ Ｐゴシック',
        'MS PGothic',
        sans-serif;
    position: relative;
    min-height: 100vh;
}

#headerBox {
    background: var(--subBg);
}

#linkBox {
    display: grid;
    grid-template-columns: 2fr 5fr;
}

#homeLink {
    height: 40px;
    text-align: center;
    font-size: 30px;
    background-color: lightgreen;
    color: #333333;
}

#gameLink {
    height: 40px;
    text-align: center;
    font-size: 30px;
    background-color: deepskyblue;
    color: #333333;
}

#headerIn {
    position: relative;
    display: grid;
    grid-template-columns: 160px 1fr 160px;
    grid-template-rows: 50px 50px;
    width: 100%;
    height: 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 50px;
    grid-column: 1;
    grid-row: 1/4;
    line-height: 40px;
    padding-left: 10px;
}

.logo::after {
    content: '';
    position: absolute;
    display: inline-block;
    background-image: url(../img/leopashop_icon.webp);
    background-size: 80px;
    top: 10px;
    left: 130px;
    width: 80px;
    height: 80px;
}

.disp {
    grid-column: 3;
    grid-row: 1/4;
    padding: 5px 10px;
    font-size: 40px;
}

#coin,
#korogi {
    position: relative;
    text-align: right;
}

main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 10px 145px;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(243, 243, 243, .5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.footerIn {
    font-size: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 10px 15px;
}

.footerIn > div {
    display: inline;
}

.rapo {
    transition: 1s;
}

.rapo:hover {
    background: -webkit-linear-gradient(135deg, #3c54f0, #eb3877);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* -------------------------------- 

search

-------------------------------- */

.fllter li {
    border-radius: 5px;
    border: 2px solid;
    padding: 0 10px 10px;
    display: inline-block;
    margin-bottom: 10px;
    border-color: var(--mainInk);
}

.fllter .act {
    background-color: #28a8e0;
    color: #fff;
}

.fllter #mist {
    vertical-align: top;
    display: inline-block;
    position: relative;
    z-index: 2;
    overflow: hidden;
    transition: .2s;
    background-color: rgba(0, 179, 255, 0.3);
}

.fllter .empty {
    border-color: gray;
    background-color: transparent !important;
}

.fllter .empty::after {
    background-color: rgba(40, 169, 224, 0.5);
    position: absolute;
    z-index: -1;
    display: block;
    content: '';
    bottom: 0%;
    left: 0;
    width: 100%;
    height: 100%;
	-webkit-animation:tank 30s linear;
	        animation:tank 30s linear;
}

@-webkit-keyframes tank {
	0% { bottom: 0%; }
	1% { bottom: -100%; }
	85% { bottom: -25%; }
	100% { bottom: 0%; }
}

@keyframes tank {
	0% { bottom: 0%; }
	1% { bottom: -100%; }
	85% { bottom: -25%; }
	100% { bottom: 0%; }
}

.fllter .empty:hover {
    cursor: wait;
}

.fllter .empty .mistIcon {
    background: gray;
    transition: .2s;
}


.searchBox {
    display: flex; /* icon textbox */
    align-items: center; /* y */
    justify-content: center; /* x */
    width: 100%;
    max-width: 500px;
    height: 50px;
    border-radius: 5px;
    border: 2px solid var(--mainInk);
}

.searchBoxInner {
    width: 100%;
    height: 100%;
    background-color: transparent;
    position: relative;
}

.search {
    color: var(--mainInk);
    position: absolute;
    z-index: 1; /* up */
    height: 100%;
    width: 100%;
    top: 0; left: 0; bottom: 0; right: 0;
    border: none;
    outline: none; /* at focus */
    padding: 0 10px;
    font-size: 16px;
    background-color: transparent;
    box-sizing: border-box;
}

.searchText {
    position: absolute;
    height: 100%;
    width: 292px; /* txtwidth */
    top: 0; left: 0; bottom: 0; right: 0;
    padding-left: 10px;
    font-size: 30px;
    line-height: 37px;
    background-color: transparent;
    color: var(--mainInk);
    box-sizing: border-box;
    transition: all 0.2s;
    -webkit-transition: all 0.2s;
}

.seFo {
    color: var(--mainInk);
    font-size: 30px;
    line-height: 0px;
    width: 286px;
    height: 15px;
    padding: 0 2px;
    background-color: var(--mainBg);
    transform:translate3d(5px, -6px, 0);
    transition: .1s;
}

.searchIcon {
    height: 20px;
    width: 20px;
    position: relative;
    right: 20px;
    display: block;
    mask: url(../img/sicon.svg);
    -webkit-mask: url(../img/sicon.svg);
    background: var(--mainInk);
}

.sort {
    font-family: dekisokonai;
    border-radius: 5px;
    border: 2px solid var(--mainInk);
    padding: 0 10px 10px;
    display: inline-block;
    margin: 10px 0 0;
    width: 230px;
    display:inline-block;
    color:#fff;
    text-decoration: none;
    background-color: #28a8e0;
    font-size: 30px;
}
.sort:hover {
    text-decoration: none;
    background-color:#1b8aba;
}
.sort:focus {
    outline:none;
}
.sort:after {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid transparent;
    content:"";
    position: relative;
    top:-10px;
    right:-5px;
}
.sort.asc:after {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #fff;
    content:"";
    position: relative;
    top:25px;
    right:-5px;
}
.sort.desc:after {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #fff;
    content:"";
    position: relative;
    top:-15px;
    right:-5px;
}

/* -------------------------------- 

card

-------------------------------- */

.list {
    margin: 10px 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

.card {
    border: 2px solid transparent;
    font-size: 20px;
    background: var(--subBg);
    border-radius: 5px;
    padding: 10px;
    position: relative;
}

.card:hover {
    border: 2px solid #28a8e0;
}

.card img {
    display: inline-block;
    width: 128px;
}

.card .kumori::before, .card .mist::before {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    width: 116px;
    height: 59px;
    content: '';
    position: absolute;
    top: 37px;
    left: 16px;
    border-radius: 0px 0px 5px 10px;
}

.mistIcon {
    height: 20px;
    width: 20px;
    position: relative;
    top: 4px;
    display: inline-block;
    mask: url(../img/misticon.svg);
    -webkit-mask: url(../img/misticon.svg);
    background: var(--mainInk);
}

.card .mist::before {
    animation: kirifuki 30s forwards;
}

@keyframes kirifuki {
    0% {
        -webkit-backdrop-filter: blur(0px);
        backdrop-filter: blur(0px);
    }
    2%, 8% {
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }
    85% {
        -webkit-backdrop-filter: blur(1px);
        backdrop-filter: blur(1px);
    }
    100% {
        -webkit-backdrop-filter: blur(0px);
        backdrop-filter: blur(0px);
    }
}

.card .hiddenLeopa {
    display: none;
}

img[class*="leopaPos"] {
    position: absolute;
    width: 60px;
    height: 22px;
    object-fit: cover;
}

.card .leopaPos0 {
    object-position: -20px -45px;
    left: 37px;
    top: 71px;
}

.card .leopaPos1 {
    object-position: 36px 0;
    left: -7px;
    top: 71px;
}

.card .leopaPos2 {
    object-position: -31px 0;
    left: 37px;
    top: 71px;
}

.card .leopaPos3 {
    object-position: -10px 0;
    left: 37px;
    top: 71px;
}

.card .leopaPos4 {
    transform: scale(-1, 1);
    object-position: 30px -22px;
    left: 69px;
    top: 70px;
}

.card .leopaPos5 {
    transform: scale(-1, 1);
    object-position: 0 -22px;
    left: 53px;
    top: 73px;
}

.card .leopaPos6 {
    object-position: 0 0;
    left: 51px;
    top: 71px;
}

.card .leopaPos7 {
    height: 15px;
    object-position: 0 -131px;
    left: 16px;
    top: 34px;
}

.morphName, .itemName {
    font-size: 35px;
}

.morphPrice, .itemPrice {
    font-size: 45px;
}

.morphPrice::before,
.itemPrice::before,
#coin::before,
#korogi::before {
    background-image: url(../img/item_x4.webp);
    background-size: 80px;
    content: '';
    display: inline-block;
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.morphPrice::before,
.itemPrice::before,
#coin::before {
    background-position-x: -40px;
}

.morphPrice::after, .itemPrice::after {
    content: 'LCOIN';
    font-size: 20px;
    padding-left: 5px;
}

.morphLevel::before {
    content: 'めずらしさ：　';
}

.morphLock, .itemLock {
    position: absolute;
    top: 15px;
    right: 5px;
    rotate: 20deg;
}

.have,
.donthave {
    padding: 0 4px 4px;
    border-radius: 4px;
}

.have {
    color: #ff5050;
    border: 2px solid #ff5050;
}

.donthave {
    background-color: yellow;
    color: #333333;
}

.card::after {
    content: '→';
    position: absolute;
    bottom: 10px;
    right: 10px;
}

/* -------------------------------- 

pagination

-------------------------------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 15px;
}

.pagination li a {
    border-radius: 5px;
    color: var(--mainInk);
    padding: 0 10px 10px;
    margin-bottom: 10px;
    display: flex;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
}

.pagination .active a {
    border: 2px solid  var(--mainInk);
}

/* -------------------------------- 

paper

-------------------------------- */

nav {
    font-size: 40px;
    margin-bottom: 20px;
}

.paper {
    font-size: 40px;
    background: var(--subBg);
    border-radius: 5px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    position: relative;
}

.paper * {
    margin-bottom: 30px;
}

.paper img {
    margin-top: 30px;
    margin-left: 30px;
    margin-bottom: 0;
}

.paper .kumori::after {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(6px);
    width: 234px;
    height: 119px;
    content: '';
    position: absolute;
    top: 93px;
    left: 52px;
    border-radius: 0px 0px 14px 13px;
}

#cageLeopa {
    margin-top: 20px;
    margin-left: 20px;
    position: absolute;
    width: 120px;
    height: 44px;
    object-fit: cover;
}

.paper .leopaPos0 {
    object-position: -40px -90px;
    left: 74px;
    top: 142px;
}

.paper .leopaPos1 {
    object-position: 72px 0;
    left: -14px;
    top: 142px;
}

.paper .leopaPos2 {
    object-position: -62px 0;
    left: 74px;
    top: 142px;
}

.paper .leopaPos3 {
    object-position: -20px 0;
    left: 74px;
    top: 142px;
}

.paper .leopaPos4 {
    transform: scale(-1, 1);
    object-position: 60px -44px;
    left: 138px;
    top: 140px;
}

.paper .leopaPos5 {
    transform: scale(-1, 1);
    object-position: 0 -44px;
    left: 106px;
    top: 146px;
}

.paper .leopaPos6 {
    object-position: 0 0;
    left: 102px;
    top: 142px;
}

.paper .leopaPos7 {
    height: 30px !important;
    object-position: 0 -262px;
    left: 32px;
    top: 68px;
}

.paper div .morphName, .paper div .itemName {
    font-size: 70px;
}

.paper div .morphPrice, .paper div .itemPrice {
    font-size: 90px;
}

.paper div .morphPrice::before, .paper div .itemPrice::before {
    background-position-x: -80px;
    background-size: 160px;
    width: 40px;
    height: 40px;
}

.paper .morphPrice::after, .paper .itemPrice::after {
    content: 'LEOPA COIN';
    font-size: 40px;
    padding-left: 10px;
}

.paper div .morphLevel::before, .paper div .itemLevel::before {
    font-size: 40px;
    padding-right: 10px;
}

#kau, #kauItem {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 0 20px 20px;
    font-size: 50px;
    border-radius: 5px;
    background-color: orange;
    color: #333333;
}

.fllter li:hover,
.sort:hover,
#kau:hover {
    cursor: pointer;
}
/* -------------------------------- 

notice

-------------------------------- */

.notice {
    z-index: 99;
    width: 90%;
    max-width: 720px;
    height: 70px;
    padding: 20px;
    border-radius: 15px;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    background-color: rgba(256, 256, 256, 0.5);
    font-size: 30px;
    text-align: center;
    
    position: fixed;
    inset: 0;
    margin: 10px auto 0;
}

.hidden {
    display: none;
}

.popup {
    animation: popup 2.5s forwards;
}

@keyframes popup {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    15%, 85% {
        transform: none;
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }
}

/* -------------------------------- 

save load menu

-------------------------------- */

.slMenu {
    width: 90%;
    max-width: 280px;
    padding: 10px 10px 5px;
    margin: 0 auto 10px;
    border-radius: 15px;
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    background-color: rgba(256, 256, 256, 0.6);
    position: absolute;
    bottom: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    left: 50%;
    transform: translateX(-50%);
}

input[type="file"] {
    display: none;
}

#saveBtn, #loadBtnL {
    padding-bottom: 10px;
    background: none;
    text-align: center;
    font-family: dekisokonai;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 30px;
}

#saveBtn:hover, #loadBtnL:hover {
    border-color: #333;
}

.emoji {
    font-size: 20px;
}

/* -------------------------------- 

dark

-------------------------------- */

@media(prefers-color-scheme: dark) {
    .notice, footer, .slMenu {
        background-color: rgba(0, 0, 0, .5);
    }

    #saveBtn:hover, #loadBtnL:hover {
        border-color: var(--mainInk);
    }
}

/* -------------------------------- 

responsive

-------------------------------- */

@media only screen and (max-width:1024px) {
    .list {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media only screen and (max-width:512px) {
    .paper,
    .list {
        grid-template-columns: 1fr;
    }

    .footerIn {
        padding: 10px;
    }
    .fence {
        color: transparent;
    }
    #fontby {
        display: block; 
    }
    .notice {
        height: 100px;
    }
    main {
        padding-bottom: 155px;
    }
    .slMenu {
        margin-bottom: 25px;
    }
}