@charset "utf-8";

html {
    min-height: 100%;
    font-size: 100%;
}

body {
    font-family: "Yu Gothic Medium", "游ゴシック Medium", "YuGothic", "游ゴシック体", "ヒラギノ角ゴ Pro W3", sans-serif;
    line-height: 1.7;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

img {
    max-width: 100%;
}

header {
    background-image: url(../img/header/bg_img.png);
    background-repeat: repeat;
    background-size: contain;
    height: 130px;
    color: ghostwhite;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    margin: 0 auto;
    padding: 0.4% 0.8%;
}

.logo {
    display: block;
    width: 200px;
    margin-top: 5px;
}

.header-nav {
    display: flex;
    justify-content: space-around;
}

.header-nav a {
    color: ghostwhite;
    margin-left: 20px;
}

.main-title {
    text-align: center;
    font-size: 2.3rem;
    padding-bottom: 100px;
    text-shadow: 1px 1px #F09;
}

.sub-title {
    text-align: center;
    font-size: 1rem;
    margin: 10px auto;
}

.sub-title::before {
    content: "◆";
}

.sub-title::after {
    content: "◆";
}

.display-h2 {
    display: none;
}

.main {
    width: 95%;
    margin: auto;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    background-image: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url(../img/main/main-back.png);
    background-repeat: repeat;
}

.sidebar {
    border: solid 1px #666;
    border-radius: 10px;
    width: calc(100% / 5);
    max-height: 408px;
    background-color: rgba(170, 255, 204, .5);
    order: 1;
}

.sidebar-title {
    margin: auto;
    text-align: center;
    margin-bottom: 1em;
    text-shadow: 2px 2px #FFF;
}

.sidebar-items {
    list-style: none;
    width: 90%;
    margin: auto;
}

.sidebar-items a {
    color: #000;
    text-shadow: 2px 2px #FFF;
    text-indent: 1em;
}

.sidebar-items li {
    margin-bottom: 1em;
    border-bottom: solid 1px #AAA;
}

.sidebar-items li:before {
    content: "◆ ";
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: calc(100% / 5 * 4);
    order: 2;
}

.main-content-image {
    width: 50%;
}

.main-content-image,
.main-content-description {
    margin: auto;
}

.lose-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 100px);
    gap: 10px;
    width: calc(100% / 5 * 4);
    margin: 1%;
    order: 2;
}

.lose-content a {
    transition: all 0.3s linear;
}

.lose-content a:hover {
    filter: hue-rotate(135deg);
}

.lose-content-items {
    border: solid 1px #AAA;
    border-radius: 10px;
    /*background-color: rgba(238, 238, 238, .8);*/
    background: linear-gradient(rgba(170, 255, 204, .7), rgba(170, 204, 255, .7));
    height: 100px;
    color: #000;
    padding-left: 1em;
}

.lose-page-link {
    font-weight: bold;
}

.lose-content-page {
    width: calc(100% / 5 * 4);
    order: 2;
    text-indent: 1em;
    padding-left: 1em;
}

.annotation {
    margin: auto;
    text-align: center;
    text-indent: 0;
}

.footer {
    background-color: #CC9;
    height: 50px;
    color: ghostwhite;
    text-align: center;
}

.underline {
    text-decoration: underline;
}

.float-right {
    float: right;
}

.margin-auto {
    margin: auto;
}

.margin-top-10px {
    margin-top: 10px;
}

.margin-right-10px {
    margin-right: 10px;
}

.margin-left-10px {
    margin-left: 10px;
}

.margin-bottom-10px {
    margin-bottom: 10px;
}

.text-align-center {
    text-align: center;
}

.clear-right {
    clear: right;
}

@media (max-width: 600px) {
    .header-wrapper {
        flex-direction: column;
    }

    .logo {
        margin: auto;
        width: 50%;
    }

    .header-nav a {
        font-size: 0.5em;
        margin-top: 5px;
    }

    .header-nav a:nth-child(2) {
        display: none;
    }

    .main-title {
        /*margin-top: 20px;*/
        margin-top: 5px;
    }

    .sub-title {
        font-size: 0.8em;
    }

    .display-h2 {
        display: block;
        margin-top: 10px;
        order: 2;
    }

    .main {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        order: 1;
    }

    li {
        text-align: center;
    }

    .main-content {
        margin-top: 10px;
        width: 100%;
    }

    .lose-content {
        margin: 0%;
        margin-top: 10px;
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 130px);
        gap: 10px;
    }

    .lose-content-items {
        height: 130px;
    }

    .lose-content-page .float-right {
        float: none;
        margin: auto;
    }

    .lose-content-page figure img {
        display: block;
        width: 250px;
        margin: auto;
    }

    .lose-page-link {
        font-size: 0.8em;
    }

    .lose-content-page {
        width: 100%;
        order: 3;
    }
    
    .lose-content-page p {
        margin-top: 10px;
        font-size: 0.9em;
    }
}
