/* common */

:root {
    --scrollbar-width: calc(100vw - 100%);
    --inner-width: calc(100vw - var(--scrollbar-width));
    --header-height: 128px;
    --footer-height: 48px;
    --base-color: #fffdfe;
    --main-1-color: #d6edf5;
    --main-2-color: #f1ebf9;
    --main-3-color: #f7e0ea;
    --grad-color: -webkit-linear-gradient(left, var(--main-1-color) 0%, var(--main-2-color) 50%, var(--main-3-color) 100%);
    --text-color: #7b714a;
    --accent-color: #dc8ba7;
    --correct-color: #1f8e83;
    --warning-color: #FFC20E;
    --error-color: #de4d4d;
    --border-color: #ded2a1;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--base-color);
}

html {
    font-size: 100%;
    font-family: "Noto Sans JP", sans-serif;
    color: var(--text-color);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

small {
    font-size: 0.75rem;
}

.philosopher {
    font-family: "Philosopher", sans-serif;
}

.wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.solid-border {
    border: solid 3px var(--border-color);
    background-color: #fff;
}

.center-box {
    display: flex;
    justify-content: center;
}

.title-box {
    position: relative;
    margin: 2em 0 1em 0;
    padding: 1em;
    border: solid 3px var(--border-color);
    border-radius: 0.5em;
    background-color: var(--base-color);
}

.title-box>.title {
    position: absolute;
    display: inline-block;
    top: -0.5em;
    left: 0.5em;
    padding: 0 1em;
    font-size: 1.25rem;
    line-height: 1;
    background-color: var(--base-color);
    color: var(--text-color);
}

.correct {
    color: var(--correct-color);
}

.warning{
    color: var(--warning-color);
}

.error {
    color: var(--error-color);
}

.sixteen-to-nine {
    width: 100%;
    padding-top: 56.25%;
}

article {
    margin: 1em 0;
    padding: 1em;
}

.grid {
    display: grid;
    gap: 2em;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    list-style: none;
}

figure a {
    position: relative;
    display: block;
}

figure a::after {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

figure a:hover::after {
    background-color: rgba(255, 255, 255, 0.3);
}


/* header */

header {
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    width: var(--inner-width);
    height: var(--header-height);
    background-image: url(/img/parts/bg_stripe.png), var(--grad-color);
    background-repeat: repeat;
    z-index: 10;
}

header h1 {
    display: flex;
    justify-content: center;
    padding: 0 1em;
    height: 100%;
}

header img {
    height: 100%;
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(var(--inner-width) - 512px - 2em);
}

header nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

header nav ul li {
    min-width: 160px;
    text-align: center;
}

header nav ul li a {
    display: block;
    padding: 0.5em 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    font-size: 1.5rem;
}

header #menu-btn {
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    width: 64px;
    height: 64px;
}

header nav a,
header nav a:visited {
    color: var(--text-color);
}


/* main */

main {
    position: relative;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    margin-top: var(--header-height);
    padding: 0.5em;
}

main h1,
main h3,
main h4 {
    margin: 0.5em 0;
    padding: 0.5em 0;
}

main h2 {
    margin: 0.5em 0;
    padding: 0.5em 2.5em;
    text-align: center;
    font-family: "Philosopher", sans-serif;
}

main h2 span {
    position: relative;
    display: inline-block;
    margin: 0.5em auto;
}

main h2 span::before,
main h2 span::after {
    content: "";
    position: absolute;
    top: 50%;
    display: inline-block;
    width: 1.25em;
    height: 0.4rem;
    border-top: solid 1px var(--text-color);
    border-bottom: solid 1px var(--text-color);
}

main h2 span::before {
    left: -2em;
}

main h2 span::after {
    right: -2em;
}

main ul {
    padding: 0.5em;
    list-style-position: inside;
}

main p {
    margin: 0.5em 0;
}

main li {
    text-indent: -1.5em;
    padding-left: 2em;
}


/* footer */

footer {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--footer-height);
    background-image: url(/img/parts/bg_stripe.png), var(--grad-color);
    background-repeat: repeat;
    text-align: center;
}


/* form */

form {
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
}

input,
textarea {
    border: 1px solid #ddd;
    border-radius: 5px;
}

.radio label {
    position: relative;
    padding-left: 1.25em;
    margin-right: 1em;
}

.radio label::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #eee;
}

.radio input:checked+label::after {
    content: "";
    display: block;
    position: absolute;
    top: 3px;
    left: 3px;
    width: 11px;
    height: 11px;
    background: #a66970;
    border-radius: 50%;
}

select {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    background: #eee;
}

textarea {
    margin: 10px 0 0;
    padding: 5px;
    width: 100%;
    height: 8em;
}

button {
    text-align: center;
    background: #a66970;
    padding: 0.5em 1em;
    color: #fff;
}

button:hover {
    opacity: 0.7;
    cursor: pointer;
}


/* image */

#kousha {
    background-image: url(/img/background/kousha.jpg);
    background-size: cover;
}

#prog {
    background-image: url(/img/background/prog.jpg);
    background-size: cover;
}

#hikari-gacha {
    background-image: url(/img/background/bg.jpg);
    background-size: cover;
}

#jp-gacha {
    background-image: url(/img/background/jpgacha.jpg);
    background-size: cover;
}


/* swiper */

.swiper-main {
    width: 100%;
    overflow-x: hidden;
    padding: 2em 0;
}

.swiper-sub {
    width: 100%;
    overflow-x: hidden;
}

.swiper-main .swiper-slide,
.swiper-sub .swiper-slide {
    box-shadow: 0px 0px 20px -5px rgba(0, 0, 0, 0.8);
}

.swiper-main .swiper-pagination,
.swiper-sub .swiper-pagination {
    position: static;
    margin-top: 0.5em;
}


/* tablet */

@media (max-width: 1023px) {
    /* header */
    header {
        height: calc(var(--header-height) / 2);
    }
    header h1 {
        padding: 0;
        width: calc(var(--inner-width) - 64px);
    }
    header.login h1,
    header.logout h1 {
        width: var(--inner-width);
    }
    header nav {
        visibility: hidden;
        position: fixed;
        left: 0;
        top: calc(var(--header-height) / 2);
        width: var(--inner-width);
        height: 0;
        background-color: var(--base-color);
        transition: all .2s linear;
    }
    header #menu-btn.active+nav {
        visibility: visible;
        height: calc(100vh - var(--header-height) / 2);
        background-color: var(--base-color);
    }
    header nav .double-border {
        width: calc(100% - 20px);
        height: calc(100% - 20px);
        margin: 10px;
        border: 5px double var(--text-color);
    }
    header nav ul {
        flex-direction: column;
    }
    header #menu-btn {
        display: block;
    }
    header #menu-btn .toggle-btn {
        display: block;
        position: absolute;
        top: 16px;
        right: 30px;
        width: 18px;
        height: 30px;
        transition: all 0.5s;
        cursor: pointer;
    }
    header #menu-btn .toggle-btn span {
        display: block;
        position: absolute;
        left: 0;
        width: 30px;
        height: 2px;
        background-color: var(--text-color);
        border-radius: 4px;
        transition: all 0.5s;
    }
    /*
  header #menu-btn.active .toggle-btn span {
    background-color: var(--text-color);
  }
  */
    header #menu-btn .toggle-btn span:nth-child(1) {
        top: 4px;
    }
    header #menu-btn .toggle-btn span:nth-child(2) {
        top: 14px;
    }
    header #menu-btn .toggle-btn span:nth-child(3) {
        bottom: 4px;
    }
    header #menu-btn.active .toggle-btn span:nth-child(1) {
        -webkit-transform: translateY(10px) rotate(-315deg);
        transform: translateY(10px) rotate(-315deg);
    }
    header #menu-btn.active .toggle-btn span:nth-child(2) {
        opacity: 0;
    }
    header #menu-btn.active .toggle-btn span:nth-child(3) {
        -webkit-transform: translateY(-10px) rotate(315deg);
        transform: translateY(-10px) rotate(315deg);
    }
    /* main */
    main {
        margin-top: calc(var(--header-height) / 2);
        min-height: calc(100vh - var(--header-height) / 2 - var(--footer-height));
    }
}


/* mobile */

@media (max-width: 600px) {}