:root {
    --primary-color-club: #3977E9;
    --primary-background-color-club: #AFDBFF;

    --primary-color-junior: #e9981f;
    --primary-background-color-junior: #ffe695;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    background-color: #ffffff;
    width: 100%;
    height: 4rem;
    top: 0;
    padding: 0 1.3rem;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.header-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-logo {
    position: relative;
    display: flex;
    flex-flow: row;
    height: 2.5rem;
    align-items: center;
    justify-content: start;
    margin: 0;
    font-weight: normal;
    font-size: 2.1rem;
    color: #444444;
    text-decoration: none;
}
.header-logo img {
    height: 100%;
}
.header-logo img:first-child {
    margin-right: .3rem;
}

header #open-instagram-buttons-label {
    text-decoration: none;
    color: #444444;
    font-size: 1.8rem;
    transition: background-color 0.3s;
}

header #open-instagram-buttons-label:hover {
    background-color: #dddddd;
}

header #instagram-buttons {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #ffffff;
    padding: .7rem;
    border-radius: 1rem;
    box-shadow: #00000077 3px 3px 8px;
}
#open-instagram-buttons:checked ~ #instagram-buttons {
    display: block;
}
header #instagram-buttons .instagram-link {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2.6rem;
    width: 13rem;
    border-radius: .7rem;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.4rem;
    transition: opacity 0.3s;
    padding-bottom: .2rem;
}
header #instagram-buttons .instagram-link:first-child{
    background: var(--primary-color-club);
    margin-bottom: .4rem;
}
header #instagram-buttons .instagram-link:last-child{
    background: var(--primary-color-junior);
}
header #instagram-buttons .instagram-link img {
    position: relative;
    top: .1rem;
    width: 1.6rem;
    margin-right: .3rem;
}
header #instagram-buttons .instagram-link:hover {
    opacity: .7;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #444444;
}

nav.menu {
    display: none;
}

main{
    position: relative;
    margin-top: 4rem;
    width: 100%;
    overflow: hidden;
}

#club-main,#junior-main,#fixed-main {
    position: relative;
    top: 0;
    width: 100%;
    overflow: hidden;
    transition: left .5s;
}

footer {
    background-color: #333333;
    color: #ffffff;
    text-align: center;
    padding: .7rem 1.3rem;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

footer .instagram-link {
    position: relative;
    display: block;
    width: 9rem;
    margin: 1rem 0;
    padding: .3rem .7rem;
    box-sizing: border-box;
    border: solid #ffffff .07rem;
    border-radius: .3rem;
    color: #ffffff;
    left: 50%;
    transform: translate(-50%, 0);
}

footer .instagram-link:hover {
    background-color: #dddddd;
    color: #000000;
}

@media not (max-width: 48rem) {
    .header-content {
        max-width: 75rem;
    }

    #open-instagram-buttons-label {
        order: 2;
    }

    .menu-toggle {
        display: none;
    }

    nav.menu {
        display: block;
        position: fixed;
        top: 4rem;
        left: 0;
        height: 3rem;
        width: 100%;
        padding: 0 1.3rem;
        box-sizing: border-box;
        background-color: #eeeeee;
        z-index: 1;
    }

    nav.menu.open {
        transform: translateY(0);
    }

    nav.menu ul {
        position: relative;
        display: flex;
        list-style: none;
        height: 100%;
        width: 100%;
        max-width: 75rem;
        margin: 0;
        left: 50%;
        transform: translate(-50%, 0);
        padding: 0;
        box-sizing: border-box;
    }

    nav.menu li {
        margin-right: 1rem;
        height: 100%;
    }

    nav.menu a {
        text-decoration: none;
        color: #000000;
        height: 100%;
        box-sizing: border-box;
        padding: .7rem 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    nav.menu li.selected a {
        border-radius: .3rem;
        background-color: var(--primary-color);
        color: #ffffff;
        transition: background-color .4s;
    }

    #junior-toggle-button-spacer{
        position: fixed;
        top: 4rem;
        width: 100%;
        padding: 0 1.3rem;
        box-sizing: border-box;
        z-index: 2;
    }

    #junior-toggle-button-outer{
        position: relative;
        width: 100%;
        max-width: 75rem;
        left: 50%;
        transform: translate(-50%, 0);
    }

    #junior-toggle-button {
        position: absolute;
        display: flex;
        align-items: center;
        flex-flow: row;
        width: 12.5rem;
        height: 2.1rem;
        right: 0;
        border-radius: .3rem;
        box-sizing: border-box;
        padding: .3rem;
        margin: .3rem 0;
        background-color: var(--primary-background-color);
        cursor: pointer;
        transition: background-color .4s;
    }

    #junior-toggle-button .toggle-back {
        position: absolute;
        height: calc(100% - .6rem);
        width: calc(50% - .3rem);
        font-size: .7rem;
        padding: 0;
        margin: .3rem;
        top: 0;
        border-radius: .3rem;
        box-sizing: border-box;
        background-color: var(--primary-color);
        transition: .4s;
    }

    #junior-toggle-button p {
        position: relative;
        height: 100%;
        width: 100%;
        font-size: .7rem;
        font-weight: bold;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        color: #000000;
        transition: color .4s;
    }

    main{
        position: relative;
        margin-top: 7rem;
    }
}

@media (max-width: 48rem) {
    header{
        border-bottom: solid .14rem #eeeeee;
    }
    .header-content {
        justify-content: end;
    }
    .header-logo {
        margin-right: calc(100% - 10.81rem);
    }

    #open-instagram-buttons-label {
        order: 1;
        margin-right: .9rem;
    }

    .menu-toggle {
        order: 2;
        display: block;
    }

    nav.menu {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1.3rem 0;
        border-radius: 1.3rem 1.3rem 0 0;
        background-color: #ffffff;
        box-shadow: 0 .07rem .3rem .3rem #00000015;
        transform: translateY(100%);
        transition: transform 0.3s;
        z-index: 2;
    }

    nav.menu.open {
        transform: translateY(0);
    }

    nav.menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    nav.menu li {
        text-align: center;
        margin: .3rem 1rem;
        box-sizing: border-box;
    }

    nav.menu a {
        text-decoration: none;
        color: #000000;
        padding: 1.1rem;
        display: block;
    }

    nav.menu li.selected a {
        border-radius: .3rem;
        background-color: var(--primary-color);
        color: #ffffff;
    }

    #junior-toggle-button {
        position: fixed;
        display: flex;
        align-items: center;
        flex-flow: row;
        width: 16rem;
        height: 3.5rem;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 0);
        border-radius: .3rem .3rem 0 0;
        box-sizing: border-box;
        padding: .3rem;
        background-color: var(--primary-background-color);
        box-shadow: 0 .07rem .3rem .3rem #00000015;
        cursor: pointer;
        transition: background-color .4s;
        z-index: 1;
    }

    #junior-toggle-button .toggle-back {
        position: absolute;
        height: calc(100% - .7rem);
        width: calc(50% - .3rem);
        padding: 0;
        margin: .3rem;
        top: 0;
        border-radius: .3rem;
        box-sizing: border-box;
        background-color: var(--primary-color);
        transition: .4s;
    }

    #junior-toggle-button p {
        position: relative;
        height: 100%;
        width: 100%;
        font-size: .9rem;
        font-weight: bold;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        color: #000000;
        transition: color .4s;
    }

    footer {
        padding-bottom: 3.5rem;
    }
}


.slider {
    position: relative;
    display: block;
    overflow: hidden;
    user-select: none;
}

.slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0% 50%;
}

.slider .indicator{
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    display: flex;
    bottom: .3rem;
}

.slider .indicator_button{
    width: .9rem;
    height: .9rem;
    border-radius: 50%;
    position: relative;
    list-style: none;
    border: .14rem #ffffff solid;
    box-sizing: border-box;
    margin-left: .25rem;
    margin-right: .25rem;
    cursor: pointer;
}
.slider .indicator_button.selected{
    background: #ffffffd0;
}

.block,.card {
    position: relative;
    color: #000000;
    text-decoration: none;
    display: block;
    text-align: center;
    margin: 3.3rem 0;
    box-sizing: border-box;
}
.card {
    margin: 2rem 0;
    padding: 1.3rem;
    border-radius: 1.3rem;
    background-color: var(--primary-background-color);
    transition: background-color .4s;
}
.block .title,.card .title {
    margin: 0;
    margin-bottom: .6rem;
    padding-bottom: .4rem;
    text-align: center;
}
.block .title {
    border-bottom: solid .25rem var(--primary-color);
}
.card .title {
    border-bottom: solid .25rem #ffffff;
}
.block img,.card img {
    width: 100%;
    border-radius: .8rem;
}
.more_btn{
    overflow: hidden;
    position: absolute;
    width: 6rem;
    height: 3rem;
    border-radius: 50% / 100% 100% 0 0;
    bottom: -1.5rem;
    left: 50%;
    transform: rotate(180deg) translate(50%, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-background-color);
    transition: background-color .4s;
}
.more_btn div{
    transform: rotate(-180deg);
    text-align: center;
    font-size: 80%;
}

.margin_0 {
    margin: 0;
}

.text_left{
    text-align: left !important;
}

.text_center{
    text-align: center !important;
}

.accent{
    font-weight: bold;
    font-size: 1.2em;
}

.inline-block{
    display: inline-block;
}

.flex_column {
    display: flex;
    flex-flow: column;
}
.flex_row {
    display: flex;
    flex-flow: row;
}