* {
    margin: 0;
    padding: 0;
}

:root {
    --color-a: #7b00d6;
    /* --color-b: gray;
    --color-c: silver; */
    --color-b: #b889dc;
    --color-c: #cbb4dd;
    --color-d: #f9f3ff;
}

body {
    background-color: var(--color-d);
}

.container {    
    min-width: 100%;
    min-height: 100vh;
}

header {
    width: 100%;
    height: 60px;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid;
    position: fixed;
    z-index: 99999;
    background-color: var(--color-d);
    box-shadow: 0 0 5px;
    transition: all 0.5s ease;
    overflow: hidden;
}

header.opened {
    height: 100vh;
}

header.opened nav {
    display: block;
}

header.opened ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100vw;
}

.menu-open-btn {
    display: none;
    width: 60px;
    height: 60px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.menu-open-btn span {
    position: absolute;
    display: inline-block;
    width: 30px;
    height: 3px;
    background-color: var(--color-c);
    transition: all 0.5s;
}

.menu-open-btn span:first-of-type {
    margin-top: -20px;
}

.menu-open-btn span:last-of-type {
    margin-bottom: -20px;
}

header.opened .menu-open-btn span:first-of-type {
    margin-top: 0;
    transform: rotate(45deg);
}

header.opened .menu-open-btn span:nth-of-type(2) {
    opacity: 0;
}

header.opened .menu-open-btn span:last-of-type {
    margin-bottom: 0;
    transform: rotate(-45deg);
}

nav {
    padding-right: 15px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
}

nav>ul {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 25px;
}

nav>ul>li {
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

nav>ul>li:hover {
    border-bottom: 3px solid var(--color-a);
}

nav>ul>li>a {
    text-decoration: none;
    color: black;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    max-width: calc(100% - 80px);
}

.logo a {
    display: flex;
    height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: black;
}

footer {
    background-color: var(--color-b);
}

.footer-contact {
    height: 450px;
    background: url(../imgs/contact_img.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

.footer-contact .inner {
    background-color: var(--color-c);
    position: absolute;
    bottom: 15px;
    right: 0px;
    padding: 20px;
}

.footer-contact .inner::before {
    content: '';
    display: block;
    width: 100px;
    height: 100%;
    left: -100px;
    top: 0;
    clip-path: polygon(100% 0,100% 100% ,0 100%);
    position: absolute;
    background: var(--color-c);
}

.footer-sitemap > ul{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    list-style: none;
    gap: 30px;
}

.footer-sitemap > ul > li > ul > li{
    text-indent: 2em;
    list-style: none;
}

@media screen and (max-width:1080px) {

    /* 1080px以下に適用されるCSS（タブレット用） */
    nav {
        display: none;
    }

    header {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    
    .menu-open-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    /* 480px以下に適用されるCSS（スマホ用） */
}

.contents {
    min-height: 100vh;
    margin-top: 60px;
}