@charset "UTF-8";

/*!

    YDITS Site

    Copyright (C) よね/Yone

*/

/* main */

main {
    /* background-color: #080814;
    color: #f0f0f0; */
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* section */

.section {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    gap: 1rem;
}

.section__title {
    display: flex;
    align-items: stretch;

    gap: 0.5em;

    font-size: 2rem;
    padding-bottom: 1rem;

    &::before {
        display: block;
        width: 4px;
        height: auto;
        border-radius: 2px;
        background-color: #c0c0c0ff;
        content: "";
    }
}

.section__body {
    display: flex;
    flex-direction: column;
}

/* .path */

.path {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: .5rem;
}

.path__locate {
    border-radius: 1.7em;
    padding: .5em .8em;
    background-color: #0001;
    /* background-color: #ffffff10; */

    &:hover {
        background-color: #0002;
        /* background-color: #ffffff20; */
        user-select: none;
    }

    &:active {
        background-color: #0004;
        /* background-color: #ffffff40; */
    }
}

/* a */

a {
    color: #0ca788;
    /* color: #25caa9; */
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}

/* hero */

.hero {
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.hero__title {
    background: linear-gradient(128deg, #0556b3, #8f00b3);
    /* background: linear-gradient(128deg, #0b6ad7, #aa15cf); */
    background-clip: text;
    font-size: 5rem;
    font-weight: 700;
    line-height: calc(5rem + 1rem);
    color: transparent;
}

.hero__description {
    font-size: 1.5rem;
    font-weight: 700;
}

/* .description */

.description {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* .notice */

.notice {
    margin: 0 auto;
    width: calc(100% - 2rem);
    max-width: 512px;
    border-top: 4px solid #eea14a;
    border-radius: .5rem;
    padding: 1rem;
    background-color: #ffdbb1;
    /* background-color: #684823; */
    /* background: linear-gradient(128deg, #684823, #a16d32); */
    color: #222;
    /* color: #f0f0f0; */
}

.notice_p {
    text-align: center;
}

/* .title */

.title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* .api-links */

.api-links {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    gap: 2rem;
    display: flex;
    flex-direction: column;
}

.api-links h2 {
    font-size: 1.2rem;
}

.api-links h3 {
    margin-bottom: .5em;
}

.api-links__ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.api-links__li {
    background-color: #0001;
    /* background-color: #ffffff18; */
    border-radius: 1rem;
    padding: 1rem;
    list-style: none;
}

/* .links */

.links {
    display: flex;
    max-width: 1024px;
    margin: 0 auto;
}

.links__ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;

    @media (max-width: 768px) {
        grid-template-columns: 1fr;
    }
}

.links__li {
    border: 1px solid #c0c0c0ff;
    border-radius: 1rem;
    padding: 1rem;
    list-style: none;
}

.links__title {
    font-size: 1.2rem;
}

/* list */

.list {
    display: flex;
    flex-direction: column;
    padding-left: 1.2rem;
}

/* source */

.source {
    align-items: stretch;
    max-width: 1024px;
}

.source__list {
    list-style: none;
    padding-left: 0;
    gap: 1rem;
}

.source__item {
    display: flex;
    flex-direction: column;

    border-top: 1px solid #c0c0c0ff;
    padding: 16px 0;

    gap: 1rem;

    font-size: 1.2rem;

    &:first-child {
        border-top: none;
    }
}

.source__item a {
    font-size: 1.2rem;
}

.source__item-content {
    padding-left: 1rem;
}

/* data */

.data__list {
    border-left: 3px solid #c0c0c0ff;
    padding-left: 2rem;
}

/* map */

.map {
    width: fit-content;
    background-color: #fff;
    align-items: center;
}

/* schemas */

#schemasDescription {
    display: none;
    margin-bottom: 1em;
    font-size: 1.2em;
    font-weight: bold;
}

#schemas>h2 {
    font-size: 1.8em;
}

#schemaTables h3 {
    font-size: 1.5em;
}

#schemaTables {
    overflow: auto;
}

#schemas table {
    min-width: 768px;
    padding-bottom: 4em;
    line-height: 1.8em;
}

#schemas code {
    padding: .2em;
    background-color: #80808040;
    /* background-color: #000; */
    /* color: #158a5d; */
    color: #222;
    /* color: #f1bf9b; */
}

table tbody tr:nth-of-type(odd) {
    background-color: #0000401a;
    /* background-color: #f0f0f01a; */
}

table tbody tr:nth-of-type(even) {
    background-color: #0000400d;
    /* background-color: #f0f0f00d; */
}

table tbody th,
table tbody td {
    padding: 1em;
}

.endpoint {
    padding: .5em;
    background-color: #222;
    /* background-color: #000; */
    color: #fff;
    /* color: #f0f0f0; */
    border-radius: 0.5rem;
}

@media (max-width: calc(767px + 20vw)) {
    #schemasDescription {
        display: block;
    }
}

#pageTitle {
    text-align: center;
}