html {
    font-size: 16px;
    height: -webkit-fill-available;
}

.app-button {
    display: none;
}

@media (display-mode: standalone) {
    .app-button {
        display: block;
    }
}

@media screen and (max-width: 550px) {
    html {
        font-size: 3.5vw;
    }
}

@media (prefers-color-scheme: light) {
    body {
        background: #fff;
        color: #000;
    }

    #items h2 strong,
    #all a code,
    #all rt b {
        -webkit-text-stroke: #000 0.075rem;
        color: #fff;
    }

    main#instagram,
    main#instagram form {
        filter: invert();
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: #000;
        color: #fff;
    }

    #items h2 strong,
    #all a code,
    #all rt b {
        -webkit-text-stroke: #fff 0.075rem;
        color: #000;
    }

    #items h2 img,
    #all a img {
        filter: brightness(1) invert(1);
    }
}

input[type="text"],
input[type="date"] {
    color: #000;
    background: #fff;
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: "San Francisco";
    src: url("font/Compact-Text-Regular.otf"),
        url("font/UI-Display-Regular.otf");
}

@font-face {
    font-family: "New York";
    src: url('font/NewYork.otf');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Times New Roman";
    src: url('font/TimesNewRoman.ttf');
}

body {
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    display: grid;
    place-items: center;
    min-height: 100dvh;
}

header,
#items,
#note,
form,
dialog,
footer {
    font-family: 'BlinkMacSystemFont', 'San Francisco', 'Hiragino Kaku Gothic ProN', 'メイリオ', Sans-Serif;
}

code,
footer h2 i {
    font-family: 'New York', Times, serif;
}

header select,
header button.button {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
}

body,
header h1,
dialog button.close {
    padding: 0;
}

header,
footer h2,
footer nav,
summary,
footer,
footer #readme {
    padding: 0.5rem;
}

input[type="text"],
input[type="submit"] {
    padding: 0.25rem;
}

#news li time {
    padding-right: 0.5rem;
}

footer h2 small {
    display: inline-block;
    padding-top: 0.5rem;
}

body,
header h1,
footer h2,
header h1 input,
input[type="text"],
input[type="submit"],
dialog button.close {
    margin: 0;
}

footer h2::after {
    margin-top: 0.5rem;
}

a,
button,
select,
input[type="submit"],
#addItem,
dialog button.close {
    appearance: none;
    color: inherit;
    font-family: inherit;
    text-decoration: none;
}

button,
input[type="submit"],
#addItem {
    background: transparent;
}

footer h2,
dialog button.close {
    font-size: 150%;
}

code,
footer h2 strong {
    font-size: 123%;
}

header input,
footer h2 b {
    font-size: 111%;
}

header h1,
select,
button.button {
    font-size: 100%;
}

footer h2 u {
    font-size: 90%;
}

footer h2 i,
footer h2 small {
    font-size: 75%;
}

footer h2::after {
    font-size: 55%;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="submit"] {
    font-size: 16px;
}

header h1,
footer h2,
footer h2 b,
footer h2 small,
button.button {
    font-weight: 500;
}

button:hover {
    cursor: pointer;
}

select,
a.button,
button.button {
    border: 0.1rem solid;
    border-radius: 50%;
    box-shadow: 0.1rem 0.1rem 0px, 0.2rem 0.2rem 0;
    display: inline-block;
    padding: 0.25rem 1rem;
    outline: none;
    text-align: center;
}

input[type="submit"],
#addItem,
dialog button.close {
    border: none;
    outline: none;
}

header input[type="submit"] {
    border-bottom: 0.1rem solid;
}

header,
footer {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

button.button[hidden],
footer[hidden] {
    display: none;
}

dialog button.close {
    display: block;
    float: right;
}

header {
    align-items: baseline;
    place-self: start center;
}

footer {
    align-items: end;
    flex-flow: wrap;
    place-self: end center;
}

header h1,
header a {
    min-width: 4.5rem;
}

header a {
    text-align: right;
}

header,
footer,
main,
details {
    width: 100%;
}

main#items {
    min-height: calc(100dvh - 11.111rem);
}

footer h2::after {
    content: "アビ ✨ ザ・ベスト・アイテムズ ✨ とてもおすすめの古着や雑貨";
    display: block;
}

header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}