* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;

}

* {
    font-family: "Expletus Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;


    font-family: "Bodoni MT";

    font-family: "Noto Serif JP", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;

    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;

}

:focus-visible {
    outline: 2px solid CanvasText;
    outline-offset: 2px;
}

.visually-hidden-focusable {
    position: absolute;
    left: -9999px
}

.visually-hidden-focusable:focus {
    left: auto;
    position: static
}



/* ヘッダー */

header {
    padding: 10px 30px;
    position: fixed;
    width: 100%;
    height: auto;
    align-items: center;
    background-color: rgba(215, 240, 255, 0.7);
    backdrop-filter: blur(10px);
    z-index: 3;
}

header div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



#mainNav ul {
    display: flex;
    flex-wrap: wrap-reverse;
    max-width: 350px;
    margin: 0;
}

#menuBtn {
    position: absolute;
    border: none;
    background-color: initial;
    margin-bottom: 0;
    padding-bottom: 0;
    top: -2vw;
    right: 5vw;
}

#menuBtn span {
    position: relative;
    display: inline-block;
    transform: scale(1.9, 1.4);
    font-size: 30px;
    font-weight: 100;
    margin: 0 auto;
    padding: 5px 0;
    height: auto;
    top: 0;
}

#menuBtn p {
    line-height: 0;
    font-size: 15px;
}


.menuContent {
    font-size: large;
    height: auto;
}

.menuContent .menuContent ul {
    display: flex;
    list-style-type: none;
    align-items: center;
    margin: 0;
    font-size: large;
}

.logoBox img {
    width: 300px;
}

.nav-link {
    text-decoration: none;
    font-size: 15px;
    width: 100%;
    text-align: start;
}



.menuContent ul {
    font-size: large;
    display: flex;
    list-style: none;
}

.menuContent ul li {
    padding-left: 30px;

}

.nav-link:hover {
    text-decoration: underline;

}



.detailLink {
    text-align: end;
}






caption {
    /* margin-bottom: 20px; */
    font-size: 18px;
    font-weight: bold;
    text-align: left;
}


/* 
th, td {
    border: 1px solid #fff;
} */

.defaultLinkStyle,
#mail {
    display: inline;
    color: blue;
    font-weight: 600;
    text-decoration: underline;
}


.cvButtons {
    display: flex;
    justify-content: space-around;
}



.category {
    text-align: end;
    padding-right: 30px;
    width: 30%;
    color: black;

}


.cvButton {
    color: white;
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}




.nav-link:active {
    color: black;
    font-weight: 800;
    text-decoration: underline;
    /* font-family: sans-serif; */
    border: 1px solid #98a6b573;
    font-size: larger;
}

main {
    padding-top: 84px;
    /* margin-bottom: 310px; */
}

/* 準備ページ */

.prepare {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10vh;
    background-color: #b3d8ff;
}


/* メインビジュアル */

.mainVisual {
    background-image: url("../images/sax_fuji.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 50vh;
    display: flex;
    /* align-items: center; */

    color: white;
}

.mainVisual h2 {
    z-index: 0;
    display: block;
    position: relative;
    line-height: 6vh;
    font-family: "Noto Serif JP";
    padding-left: 8vw;
}

#backToTop {
    position: fixed;
    right: 16px;
    bottom: 80px;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, background .2s;
    z-index: 9999;
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#backToTop:hover {
    background: rgba(0, 0, 0, .85);
}

#backToTop svg path {
    fill: currentColor;
}



/* 各セクション */

section {
    width: auto;
    padding: 20px 0;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.section {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}


.sectionTitle {
    position: relative;
    text-align: center;
    margin: 20px auto;
}


.sectionTitle::before {
    content: attr(data-en);
    position: relative;
    width: 100%;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(119, 188, 255, 0.15);
    font-size: 60px;
    display: block;
    text-align: center;
    margin: 0 auto;
}


section div p {
    /* margin-top: 20px; */
    line-height: 1.5lh;

}



/* =========  GENERAL  ========= */
body {
    background: #f8f9fa
}

.piece-item {
    cursor: pointer;
    user-select: none;
}

.piece-item.active {
    background: #0d6efd !important;
    color: #fff;
}

#detailPane img {
    max-width: 100%;
    border-radius: .5rem;
}

@media (max-width:767.98px) {
    #detailPane {
        display: none;
    }
}




/* 新着情報 */

.newInfo {
    align-items: center;
    text-align: center;
}

.newInfoWrapper {
    display: flex;
    text-align: center;
    justify-content: center;
}

.newInfoDl {
    width: auto;
    padding: 10px;
}

.newInfoDl dt {
    margin-right: 20px;
    min-width: 130px;
    margin-top: 0;
    padding-top: 0;
    position: relative;
    top: -3px;
    text-align: start;
}

.newInfoDl dd {
    text-align: start;
    max-width: 500px;
    min-width: 230px;
}



.InfoWrapper dd::before {
    content: attr(data-type);
    text-transform: uppercase;
    /* EVENT, NEW など */
    /* margin-left: 6px; */
    padding: 0 6px;
    font-size: 0.75rem;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    display: block;
}

.InfoWrapper dd[data-type="new"] {
    --c: #e63946;
}

.InfoWrapper dd[data-type="event"] {
    --c: #457b9d;
}

.InfoWrapper dd[data-type="recruit"] {
    --c: #459d6a;
}

.InfoWrapper dd[data-type="system"] {
    --c: #9e9e9e;
}

.InfoWrapper dd::before {
    width: 60px;
    position: relative;
    left: 0;
    margin-right: 10px;
    background: var(--c);
}


.InfoWrapper {
    padding: 10px 0;
    border-bottom: 0.1px solid rgb(224, 224, 224);
    display: flex;
}




.fee {
    flex-direction: column;
}

/* .fee div {
    border: 1px solid black;
    padding: 10px;
    margin: 10px;
} */

.mount {
    font-size: 3vw;
}




/* イベント情報 */


.Events {
    position: relative;
    display: flex;
    flex-direction: column;
    /* width: 60%; */
    justify-content: center;
}

.Events div p {
    text-align: center;
    padding: 0 20px;
}

.eventsList {
    position: relative;
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    width: 100%;
    /* margin: 0 auto; */
    padding: 0;
    margin: 0;
}

.eventTitle {
    /* background-color: rgb(238, 235, 255); */
    border-left: 15px solid #457b9d;
    padding: 10px;
    text-align: start;
    /* max-width: 500px; */
}

.oneEventDetail {
    display: flex;
    justify-content: center;
    position: relative;
    width: auto;
    max-width: 635.19px;
}

/* .eventTable {
    font-size: small;
} */

.eventTable tr td {
    position: relative;
    width: 100%;
    border-bottom: 0.1px solid rgb(224, 224, 224);
    border-top: 0.1px solid rgb(224, 224, 224);
}

.eventTable tr td,
.eventTable tr th {
    padding: 10px 15px;
    letter-spacing: 0.1em;
}

.eventTable tr th {
    background-color: rgba(250, 218, 163, 0.2);
    border-top: 0.1px solid rgb(224, 224, 224);
    text-align: center;
    /* width: 30%; */
    min-width: 120px;
}

.eventTable tbody tr td ul {
    padding: 0 1.3rem;
    margin: 0;
}

.eventTable tbody tr td ul li {
    list-style: square;
    margin: 0 0 6px 0;
}

.eventTable tbody tr td ul li span {
    display: inline-block;
}



.flyerBox {
    text-align: center;
    width: 45%;
    display: block;
}

.flyerBox a {
    display: block;
}

.thumbnail {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.thumbnailImg {
    width: 100%;
    /* max-width: 400px; */
    height: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


.detailButton {
    display: block;
    margin-top: 10px;
}



.aboutUsContents {
    /* display: flex; */
    align-items: center;
    padding: 0 2vw;
}

.aboutUsContents img {
    float: right;
    width: 300px;
    /* margin-right: 20px; */
    shape-margin: 0.5rem;
    -webkit-shape-outside: ellipse();
    shape-outside: ellipse();
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
    /* margin:0px; */
}


.mainSection p {
    text-align: start;
    /* padding: 0 20px; */
    /* margin-left: 200px; */
}



/* コンタクトフォーム */

.contact p {
    text-align: center;
}

.contact {
    background-color: beige;
    border-radius: 15px;
}

.contactForm {
    display: block;
    margin: 40px auto;
    width: 100%;
    max-width: 620px;
    padding: 20px;
}


/* フッター */

footer {
    background-color: #0C2D52;
    opacity: 0;
    /* 下にずらして見えない位置 */
    transform: translateY(-150%);
    transform: translateX(0);
    /* マウスも通り抜ける */
    transition: opacity 0.4s ease, transform 0.01s ease;
    transition: all 1s ease;
    /* 見えない間はクリック無効にするなら追加 */
    pointer-events: none;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

footer.visible {
    opacity: 1;
    transform: translateY(0);
    transform: translateX(0);
    pointer-events: auto;
    width: 100%;
}

.footer {
    display: flex;
    padding: 30px;
    color: white;
    justify-content: space-around;
    pointer-events: auto;
    width: 100%;
}



.footerLogoBox {
    display: flex;
    display: inline-block;
    align-items: center;
    margin: auto 0;
    justify-content: center;
    /* width: 30%; */
    /* text-align: center; */
}

.footerLogoBox p {
    display: block;
    margin: 0;
    padding: 0;
    color: white;
}


.footerLogoBox p a {
    display: inline-block;
    text-decoration: none;
    position: relative;
    vertical-align: middle;
    color: white;
    font-weight: 350;
    height: 100%;
}

.footerLogoBox img {
    width: 280px;
}

.footerMenu {
    width: 25%;
    padding: 0 50px;
}


.footerMenu {
    border-bottom: 1px solid white;
    border-top: 1px solid white;
    /* padding-bottom: 10px; */
    width: auto;
}

.footerMenu ul {
    list-style: square;
    display: inline-block;
    margin: 0;
    padding: 0;
    width: auto;
}

.footerMenu ul li {
    margin: 10px 0;
}

.bi-facebook {
    display: inline-block;
    font-size: 2rem;
    color: white;
}

.copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    /* padding-top: 30px; */
    /* width: 30%; */
}


@media screen and (max-width: 875px) {

    body {
        padding-bottom: 56px;
    }

    header {
        height: 68px;
        /* padding: 10px; */
        /* height: 10%; */
        vertical-align: middle;
        display: flex;
        justify-content: center;
        z-index: 400;
    }

    .menuContent {
        display: flex;
        position: relative;
        width: 100%;
    }


    header div {
        padding: 0;
        /* display: inline-block; */
        margin: auto 0;
        vertical-align: middle;
    }

    .toc {
        position: fixed;
        bottom: 0;
        top: auto;
        width: 100%;
        justify-content: space-around;
    }




    #menuBtn {
        display: block;
        align-items: center;
        gap: 6px;
        /* top: 5px; */
        right: 0;
    }

    .drawer {
        position: fixed;
        top: 0;
        right: 0;
        /* height: 100dvh; */
        transform: translateX(100%);
        transition: transform .3s;
        background: #fff;
    }



    /*     
    .footerMenu ul li {
        margin-right: 15px;
        justify-content: space-between;

    } */


    /* nav {
        display: none;
    } */

    .nav-open .drawer {
        transform: translateX(0);
    }

    #backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 300;
    }

    .nav-open #backdrop {
        display: block;
    }

    #backToTop .label {
        display: none;
    }



    #mainNav ul {
        flex-direction: column;
        width: 150px;
        right: 0;
        height: auto;

    }

    #mainNav ul li {
        width: auto;
        padding: 15px 0;

    }

    #mainNav ul li a {
        font-size: 14px;
    }


    .mainVisual {
        background-size: 145%;
        height: 100%;
        margin: 0;
    }


    .mainVisual h2 {
        font-size: larger;
    }

    .logoBox {
        display: block;
        position: relative;
        margin: auto 0;
    }

    .menuContent {
        padding: 0;
    }


    .logoBox a img {
        width: 50vw;
    }








    #menuBtn span {
        transform: scale(2.1, 1.2);
        font-size: 25px;
        font-weight: 550;
    }

    /* ドロワーの中では .toc を通常配置に（固定ボトム化を打ち消し） */
    .toc {
        position: static;
        bottom: auto;
        top: auto;
        width: auto;
    }

    /* ドロワー内は高さ可変でOK（横並びルールを弱める） */

    #mainNav ul {
        position: relative;
        flex-direction: column;
        width: 150px;
        right: 0;
        height: auto;
    }

    #mainNav ul li {
        width: auto;
        padding: 15px 0;

    }


    .flyerBox {
        display: block;
        width: 100%;
        padding: 5px;
    }

    .newInfoWrapper {
        font-size: small;
    }

    .eventsList {
        display: block;
    }

    .eventsList table tr td,
    .eventsList table tr th {
        padding: 10px;
        /* font-size: smaller; */
        font-weight: 400;
        letter-spacing: 0em;
        min-width: 10px;
    }

    .eventsList table tr th {
        width: auto;
    }

    .oneEventDetail {
        display: block;
        width: 100%;
    }

    .eventTable,
    .flyerBox {
        /* width: 80%; */
        margin: 0 auto;
    }


    .aboutUsContents {
        display: block;
        text-align: center;
    }

    .aboutUsContents img {
        width: 200px;
        float: none;
    }

    .contactForm {
        width: auto;
    }





    .footerMenu {
        width: 100%;
    }


    .footerMenu ul {
        display: flex;
        justify-content: space-between;
        list-style-type: none;
        margin-left: 0;
        padding-left: 0;
    }

    .footer {
        display: block;
        padding: 15px 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    footer {
        width: auto;
        padding: 0;
        text-align: center;
    }

    .footerLogoBox {
        width: auto;
    }

    .footerLogoBox p {
        display: inline-block;
        width: auto;
    }

    .footerMenu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        padding: 5px 0;
        margin: 10px auto;
        /* width: 80%; */
    }

    .footerMenu ul {
        justify-content: space-around;
        width: 100%;
    }

    .copyright {
        width: auto;
    }
}







/* ダーク・ライト自動切り替えにも対応（必要なら） */
@media (prefers-color-scheme: light) {
    #backToTop {
        background: rgba(0, 0, 0, .65);
        color: #fff;
    }
}

/* @media (prefers-color-scheme: dark){
    #backToTop{ background: rgba(255,255,255,.15); color: #fff; }
  } */

/* 動きが苦手な人への配慮 */
@media (prefers-reduced-motion: reduce) {
    #backToTop {
        transition: none;
    }

    /* html {
        scroll-behavior: auto;
    } */
}

/* ヘッダー高さに合わせて調整 */
section[id] {
    scroll-margin-top: 90px;
}



