/*
Theme Name: Agishiki
Theme URI: https://agishiki.com/
Author: wauworks a.k.a piayo
Author URI: https://wauworks.com/
Description: 株式会社アギシキのテーマです。
Version: 1.0
*/

/* reset
-------------*/
*,*:before,*.after {
    box-sizing: border-box;
    min-width: 0;
}

:root {
    interpolate-size: allow-keywords;
}

html,
body {
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    background-color: #fff;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
    display: flow-root;
}

header, main, article, section, aside, footer, div {
    display: block;
}

h1, h2, h3, h4 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

/* layouts
-------------*/

#root {
    position: relative;
    margin: 0 auto;
    padding: 0 16px;
    display: block;
}

.header {
    background-color: #e8edef;
    border-radius: 16px;
    margin: 1em 0;
    height: 24dvh;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    h1 {
        margin: 0;
        padding: 16px 0;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        font-size: 24px;
    }
}

.main {
    section {
        margin: 4em 0;

        h2 {
            position: relative;
            display: inline-block;
        }

        h2::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            height: 3px;
            width: 100%;
            background-color: #0168bb;
        }
    }
}

.about-list {
    display: flow-root;
    dt, dd {
        float: left;
        padding: .5em 0;
    }
    dt {
        clear: both;
        min-width: 4em;
        color: #656c78;
        font-weight: bold;
    }
}

.footer {
    margin-top: 4em;

    .copyright {
        text-align: center;
        font-size: 12px;
    }
}

@media screen and (min-width: 768px) {
    #root {
        padding-left: calc(40% + 48px);
    }

    .header {
        display: flex;
        height: auto;
        position: fixed;
        left: 16px;
        top: 16px;
        width: 40%;
        bottom: 16px;
        margin: 0;
        align-content: center;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .footer {
        .copyright {
            text-align: left;
        }
    }
}