@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap');
@import url('https://cdn.jsdelivr.net/npm/remixicon@3.5.0/fonts/remixicon.css');

:root {
    --main-theme: #71b2bc;
    --sub-theme: #d3e6bf;
    --body-bg: #ffffff;
    --text-dark-color: #1b1b1b;
    --text-light-color: #fff;
}

/*------------------------------------------------------ */

/* リセットCSS */

html {
    scroll-behavior: smooth;
}

* {
    position: relative;
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}

body {
    line-height: 1.8em;
    font-family: serif;
    font-weight: 300;
    background-color: var(--body-bg);
    color: var(--text-dark-color);
}

ol,
ul {
    margin: 1em;
}

li {
    margin: 0.4em 1em;
    line-height: 1.6em;
}

li::marker {
    color: var(--main-theme);
}

a {
    text-decoration: none;
    color: var(--main-theme);
    transition: color 0.3s;
}

a:hover {
    color: var(--text-dark-color);
}

p {
    line-height: 1.8em;
    margin: 0.5em 0;
}

mark {
    color: inherit;
    background-color: rgb(0 0 0 / 0);
    background-image: linear-gradient(rgba(0, 0, 0, 0) 60%, var(--sub-theme) 60%);
}

::selection {
    background-color: var(--main-theme);
    color: var(--body-bg);
}

hr {
    margin: 64px;
    margin-inline: auto;
    width: 70%;
    border: none;
    border-top: 1px solid rgb(0 0 0 /0.1);
}

button {
    margin: 0 0.2em;
    padding: 0.5em 1em;
    border: none;

    background-color: var(--main-theme);
    color: var(--text-light-color);
    transition: background-color 0.3s;
}

img {
    max-width: 100%;
}

.clause {
    display: inline-block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
}

.grid2 {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0 1em;
}

/* ----------------------------------------------------------------- */

/*メイン*/

header {
    margin: 5em;
    margin-inline: auto;
    padding: 0 1em;
    max-width: 800px;
}

h1 {
    margin: 1em;
    line-height: 1.3em;
    text-align: center;
}

/* 依頼の一覧 */
.requests-list {
    display: grid;
    justify-items: center;
    margin: 0 auto;
    padding: 0;
    max-width: 100%;

    list-style: none;

    /* 依頼の一枚 */
    .request {
        margin: 1em;
        padding: 1em 1.5em;
        max-width: 400px;
        height: fit-content;

        box-shadow: 0 0 4px rgb(0 0 0 / 0.2);
        background-color: #fbf9f6;
    }

    /* ナンバー */
    .id {
        position: absolute;
        top: -1.9em;
        left: 0;
        color: rgb(0 0 0 / 0.3);
    }

    h3 {
        margin: 1em 0;

        line-height: 1.3em;
        text-align: center;
        font-size: 1.5em;
    }

    /*難易度*/
    .difficulty {
        text-align: right;

        .opacity-low {
            opacity: 0.3;
        }
    }

    /* 日付欄 */
    .days {
        text-align: center;
        font-size: 0.9em;
        color: rgb(0 0 0 / 0.2);
    }
}

@media screen and (min-width: 600px) {
    .requests-list {
        grid-template-columns: repeat(2, 1fr);
        width: fit-content;
    }
}

@media screen and (min-width: 800px) {
    .requests-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1140px) {
    .requests-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

/*依頼種別ごと
.type-hunting {
}
.type-delivery {
}
.type-escort {
}
.type-gathering {
}
.type-procure {
}
.type-investigate {
}
.type-misc {
}
*/

/* 依頼進行度ごと-------------------------------- */

/*進行中の依頼*/ /*
.status-pending {
}

.status-pending:before {
}

/*成功した依頼*/ /*
.status-success {
}
/*失敗した依頼*/ /*
.status-failed {
}
/*期限切れの依頼*/ /*
.status-ended {
}
*/

/*緊急*/
.emergency {
    .difficulty {
        color: firebrick;
    }
}

:where(.status-success, .status-failed, .status-ended):before {
    display: block;
    position: absolute;
    margin-inline: auto;
    padding: 0.3em;
    top: 1em;
    right: 0;
    left: 0;
    width: fit-content;

    transform: rotate(-7deg);

    opacity: 0.15;
    content: 'Success';
    text-align: center;
    border-width: 5px;
    border-style: double;
    font-size: 3.5em;

    font-family: 'Dancing Script', serif;
    box-shadow: 0 0 4px var(--status-color);
    border-color: var(--status-color);
    color: var(--status-color);
    background-color: rgb(0 0 0 / 0);
}

.status-success:before {
    --status-color: #e80c0c;

    content: 'Success';
}

.status-failed:before {
    --status-color: #0c4ae8;

    opacity: 0.05;
    content: 'Failed';
}

.status-ended:before {
    --status-color: #636363;

    content: 'Overdue';
}
