:focus-visible {
    outline: 2px solid CanvasText;
    outline-offset: 2px;
}


header {
    padding: 0;
    background-color: rgba(215, 240, 255, 1);
}

:root { --header-h: 150px; }         /* ヘッダーの高さに合わせて調整 */

html { scroll-behavior: smooth; }   /* お好みで */

[id] {                              
  scroll-margin-top: var(--header-h);
}


nav {
    position: absolute;
    display: block;
    top: 68px;
}

.menuContent h2 {
    position: relative;
    display: block;
    width: 100%;
    /* top: 10px; */
    /* font-size: 1.5em; */
    margin: 0 auto;
    padding: 0;
    text-align: center;
    font-size: 20px;
}

.menuContent {
    display: block;
    width: 100%;
    padding: 10px 0;
}



#mainNav ul {
    max-width: none;
    position: absolute;
    padding: 0;
    width: 100%;
    height: 50px;
    flex-wrap: nowrap;
    background-color: rgb(106, 147, 167);
}

#mainNav ul li {
    position: relative;
    padding: 0;
    width: calc(100% / 5);
    display: inline;
}

/* 項目の区切り線（薄め） */
#mainNav ul li+li {
    border-left: 1px solid color-mix(in srgb, CanvasText 8%, transparent);
}

#mainNav ul li a {
    position: relative;
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 250;
    font-size: 15.5px;
}

.toc li[aria-current="true"] {
    border-radius: 0;
}

.applyICON {
    display: flex;
    justify-content: center;
    gap: 21px;
    /* width: 200px; */
    align-items: center;
    margin: 15px;
}

.applyICON p {
    vertical-align: middle;

}

/* #toForm div a{
    display: block;
} */

#toForm {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    z-index: 9000;
}

#toForm .cta {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    font-weight: 600;
    font-size: 30px;
    text-decoration: none;
}

#toEntryForm {
    background: blue;
    color: #fff;
}

#recommendationForm {
    background: #555;
    color: black;
}






/* モバイルでの押しやすさ（任意） */
@media (max-width: 640px) {
    #toForm .cta {
        font-size: 18px;
        padding: 12px;
    }
}



#recommendationForm {
    position: relative;
    width: 50%;
    right: 0;
    background-color: bisque;
    text-align: center;
    padding: 15px;
}

#recommendationForm a {
    color: black;
    font-weight: 500;
    font-size: 30px;
}


.applyIMG {
    width: 70px;
    height: 70px;
}

.steps {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* width: 150px; */
}


.steps p {
    text-align: center;
    margin: 0;
    padding: 0;
    font-size: xx-large;
    font-weight: 900;
    color: rgb(46, 46, 46);
}

.stepNumber {
    font-size: 50px;
}





.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.qaWrapper {
    max-width: 650px;
}

.QA {
    padding: 0;
    margin: 0;
}

.QA dl {
    margin: 0;
    padding: 0;
    counter-reset: qa;
    margin: 0;
}

.QA dl dt {
    counter-increment: qa;
    font-weight: 600;
    border-top: 1px solid #e5e5e5;

}



.QA dl dt,
.QA dl dd {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 3.2em;
    /* ← 行頭から3.2em空ける：折り返しもここから始まる */
    margin: .4rem 0;
    padding-top: 0.6rem;
}

.QA dl dt::before,
.QA dl dd::before {
    position: absolute;
    left: 0;
    top: 0;
    padding-top: 0.6rem;
    width: 3em;
    text-align: right;
    /* 数字をきれいに右寄せ */
    font-weight: 700;
    line-height: 1.4;
    /* 高さを文字に合わせる */
    color: #555;
    content: "";
}

.QA dl dt::before {
    content: "Q" counter(qa)"：";
}

.QA dl dd::before {
    content: "A" counter(qa)"：";
    color: #777;
}


.QA dl dd {
    margin-left: 0;
    padding-bottom: .6rem;
}

.QA dl dd:last-of-type {
    border-bottom: 1px solid #e5e5e5;
}

.question {
    margin-bottom: 10px;
}

.QA ul li p {
    margin: 0;
    line-height: 1.2;
}

.entry {
    margin-top: 50px;
    padding-top: 0;

}

.entryFlow {
    display: flex;
    flex-direction: column;
}


/* .entryFlow h5,
.requirements h5,
.fee h5 {
    text-align: center;
    padding: 0.55em;
    border-top: solid 2px #6cb4e4;
    border-bottom: solid 2px #6cb4e4;
    display: block;
    width: 100%;
} */



.entryRule,
.expOl {
    position: relative;
    margin: 0 auto;
    /* display: flex; */
    flex-wrap: wrap;
    /* flex-direction: column; */
    /* justify-content: center; */
    width: auto;
    list-style: none;
    padding: 0;
}

.entryRule li {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 30px;
    margin: 50px;
    max-width: 694px;
    border: 3px solid rgba(192, 192, 192, 1);
    border-radius: 15px;
    position: relative;
    /* height: 280px; */
}

.entryRule li::after {
    content: '';
    position: absolute;
    /* top: 100%; */
    bottom: -32px;
    /* left: 50%; */
    right: 46%;
    /* transform: translateX(-50%); */
    border-top: 30px solid rgba(192, 192, 192, 1);
    /* 好みで色を変えてください */
    border-right: 30px solid transparent;
    border-left: 30px solid transparent;
}

.entryRule li:last-of-type::after {
    content: '';
    position: absolute;
    /* top: 100%; */
    bottom: -12%;
    /* left: 50%; */
    right: 50%;
    /* transform: translateX(-50%); */
    border-top: 0px solid rgba(192, 192, 192, 0);
    /* 好みで色を変えてください */
    border-right: 0px solid transparent;
    border-left: 0px solid transparent;
}



/* .entryRule li div {
    margin: 0 15px;
} */

.entryDescription {
    margin: 0 15px;
}

.entryDescription h6 {
    font-weight: 600;
    font-size: large;
}

.entryDescription p {
    line-height: 1.6;
    margin: 0 0 15px 0;
}



/* 募集要項セクション */

.requirementsContents {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



.requirements table {
    /* width: 75%; */
    max-width: 720px;
    margin: 25px auto 5px;
}


#recruiting {
    background-color: red;
    padding: 5px 10px;
    color: white;
    font-weight: 550;
    /* margin-left: 30px; */
}



.requirements table tbody tr td dl {
    margin-bottom: 0;
}



.requirementPhase dt {
    margin: 0 0 10px 0;

}

.requirementPhase dd {
    margin: 0 0 10px 0px;
}

.requirementsUl {
    padding: 0;
    margin: 0;
}


.requirementsUl li {
    list-style-type: "✅️ ";
    /* padding-left: 20px; */
    padding: 0;
    margin-left: 25px;
}

.requirements table tbody tr th {
    background-color: darkgray;
    color: white;
    font-weight: normal;
    text-align: center;
    /* border-radius: 15px 0 0 15px;  */
    /* padding: 30px; */
    width: 25%;
}

/* .requirements table tbody tr td { */
/* padding: 20px; */
/* width: 75%; */
/* border-radius: 0 15px 15px 0; */
/* } */

.requirements table tbody tr td {
    padding: 15px;
}


.requirements div {
    /* width: 75%; */
    max-width: 645px;
    margin: 0 auto;
}

small {
    display: block;
    line-height: 1.3;
}


.otherUl {
    list-style: square;
    padding: 0 0 0 20px;
    margin: 0;
}

.otherUl li {
    margin-bottom: 10px;
}

.requirements div ol li {
    margin-left: 10px;
    line-height: 1.1;
    margin-bottom: 0;
}

.requirements div ol li p {
    margin: 0 0 3px 0;

}

.requirements div ol li::marker {
    content: "※" counter(list-item)"：";
    position: relative;
}

.nextstageFee {
    width: auto;
    margin: 0 auto;
}


.nextstageFee tbody tr td {
    width: auto;
    padding: 0 15px;
    display: flex;

}

.nextstageFee tbody tr th {
    width: auto;
    padding: 0 15px;
}



/* スケジュール */

#scheduleSec {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;

}

.scheduleWrapper table {
    table-layout: auto;
    caption-side: top;
    /* width: auto; */
    max-width: 650px;
}

.scheduleWrapper table th {
    width: 25%;
    /* min-width: 162.5px; */
    min-width: 140px;
    /* padding-left: 20px; */
    text-align: center;
}

.scheduleWrapper table th span {
    display: inline-block;
    text-align: end;
    position: relative;
    width: 90%;
}

.scheduleWrapper table th span.time {
    text-align: center;

}

.scheduleWrapper table td {
    width: auto;
}


/* レパートリー */
.repertoire div {
    max-width: 650px;
}


.repertoireList {
    display: flex;
    width: 100%;
}


.repertoireTitle {
    width: auto;

}

.repertoireDetail {
    width: auto;
}




/* 開催概要 */


.eventTable {
    position: relative;
    width: 100%;
}

.oneEventDetail table tr th {
    min-width: 170px;
}


.eventTable tbody tr td dl div {
    display: flex;
}

.eventTable tbody tr td ul {
    list-style-type: square;

}

.eventTable tbody tr td ul li {
    margin: 15px 0;
    padding: 0;
}

/* .eventTable tbody tr td{

} */

.eventTable tbody tr td dl {
    margin-bottom: 0;
}

.oneEventDetail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* width: 70%; */
    max-width: 635.19px;
}

#confirmBtn {
    position: sticky;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    z-index: 9000;
    border-radius: 100px;
    box-shadow: 5px 10px 5px 0 rgba(0, 0, 0, .5);
    ;
}


.scheduleWrapper {
    position: relative;
    width: 100%;
}

.oneEventDetail table tr td,
.oneEventDetail table tr th {
    /* width: 100%; */
    /* padding-top: 20px; */
    /* padding-bottom: 20px; */
    border-bottom: 0.1px solid rgb(224, 224, 224);
    border-top: 0.1px solid rgb(224, 224, 224);
}

/* .oneEventDetail table tr td { */
/* padding-left: 30px; */
/* width: 70%; */
/* } */

/* .modal.show .modal-dialog {
    z-index: 200;
}

.modal-backdrop.show {
    z-index: 0;
} */

.oneEventDetail table tr th {
    padding: 10px;
    letter-spacing: 0.1em;
    font-weight: 400;
    text-align: center;
    /* width: 33%; */
    background-color: rgb(255, 248, 238);

}



.thumbnail {
    position: relative;
    width: 100%;
    max-width: 635.19px;
    /* margin: 0 auto; */
    display: flex;
    justify-content: center;

}

.thumbnail div {
    /* margin: 0 10px 0 0; */
    position: relative;
    width: 100%;
    max-width: 635.19px;
}


.tdthumbnail {
    /* text-align: center; */
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.frontFlyer {
    margin-right: 5px;
}

.backFlyer {
    margin-left: 5px;
}

.tdthumbnail div {
    margin: 0 5px;
    position: relative;
    width: 100%;
    max-width: calc(670px / 2);
}

.tdthumbnail a {
    display: block;
}

.thumbnailImg {
    display: block;
    position: relative;
    width: 100%;
    max-width: calc(670px / 2);
}

.tdthumbnail div figcaption {
    text-align: center;
}


.detailButton {
    display: block;
    margin-top: 10px;
}

/* フッター */

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 {
    vertical-align: middle;
}


.footerLogoBox p a {
    text-decoration: none;
    color: white;
    font-weight: 350;
}

.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;
}

.mailAddress {
    text-decoration: none;
    color: white;
}

#nextStageArtistEntry {
    text-decoration: line-through;
    position: relative;
    display: block;
    width: auto;
    text-align: center;
    margin: 10px 20px;
    padding: 15px 25px;
    border-radius: 0;
    box-shadow: #0C2D52 1px 1px 3px;
    z-index: 500;
}

.beforeApply {
    position: relative;
    text-align: center;
    margin: 20px 0;
    font-size: 1.2em;
    color: rgb(255, 255, 255);
    width: 100%;
    right: 0;
    background-color: brown;
}

#entryFlowSec {
    margin-top: 100px;
}

.sectionTitle::before {
    top: 46px;
    left: 0;
    transform: none;
    font-size: 26px;
}

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

    .drawer {
        height: auto;
        top: 68px;
        bottom: initial;
        transform: none;
        right: 0;
    }

    .toc {
        bottom: initial;
    }

}


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

    header {
        /* padding: 5px 15px; */
        display: inline;
        text-align: center;

    }



    #entryFlowSec {
        margin-top: 70px;
    }


    .entryRule li {
        margin: 45px 0;
        padding: 25px;
        height: auto;
        width: 100%;
    }



    .entryDescription p {
        margin-top: 0;
    }

    .scheduleWrapper table tbody tr th {
        width: 25%;
        text-align: center;
    }

    .oneEventDetail table tr td {
        width: auto;
    }

    #toForm {
        display: flex;
        flex-direction: column;

    }

    #toEntryForm {
        display: block;
        width: 100%;
        height: auto;
        position: relative;
    }

    #recommendationForm {
        width: 100%;
    }

    .entryRule {
        margin: 0 auto;
        padding: 0;
    }

    .entryRule li {
        display: inline-block;
        margin: 25px 0;
        height: auto;
        padding: 0 15px;
    }



    .entryDescription p {
        margin-top: 0;
    }

    .scheduleWrapper table tbody tr th {
        width: 25%;
        text-align: center;
    }


}



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



    /* .entryDescription{
    width: auto;
} */

    .oneEventDetail table tr td {
        width: auto;
    }


    .entryRule li::after {
        position: relative;
        /* right: 50%; */
        bottom: -55px;
        /* padding-top: 23%; */
        left: 42%;
        /* display: inline-block; */
        /* width: 100%; */
    }

    .steps,
    .applyICON {
        width: auto;
        margin: 20px;
    }

    .requirements table tbody tr th {
        width: auto;
    }

    .oneEventDetail table tr th {
        width: 33%;
    }

    .eventTable tbody tr td ul li span {
        display: block;
    }

    .eventTable tbody tr td span {
        display: inline-block;
        font-size: smaller;
    }


    .footer {
        display: block;
        padding: 15px 0;
    }

    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%;
    }

}


@media screen and (max-width:875px) {
    #mainNav ul {
        flex-direction: column;
        width: 150px;
        right: 0;
        height: auto;
    }

    #mainNav ul li {
        width: auto;
        padding: 15px 0;

    }


}

/* PC幅（836px以上）：タイトルの下に横並び。項目は均等割り */
@media (min-width: 875px) {
    #menuBtn {
        display: none !important;
    }

    /* ハンバーガー隠す */

    /* 横並びナビ本体（下記は既存ルールの上書きや補強） */
    #mainNav {
        left: 0;
        right: 0;
    }



    /* positionは既存のabsoluteを活かす */

    #mainNav .toc {
        display: flex;
        height: 50px;
        margin: 0;
        padding: 0;
    }

    #mainNav .toc>li {
        flex: 1 1 0;
        /* 項目を“数に関係なく”均等割り */
        display: block;
    }

    #mainNav .toc>li+li {
        border-left: 1px solid color-mix(in srgb, CanvasText 8%, transparent);
    }

    #mainNav .toc>li>a {
        display: flex;
        align-items: center;
        justify-content: center;
        inline-size: 100%;
        block-size: 100%;
        color: white;
        text-decoration: none;
    }


}