@media (max-width: 767px){ 
.pc { display: none; }
.sp { display: flex; flex-flow: column; }

  /* =========================
    KV 縦マルquee – 共通変数
    ここだけ調整すれば全体に反映
  ========================= */
  :root{
    --kv-rail-w: 20px;           /* 帯の幅 */
    --kv-rail-h: 96%;            /* 帯の高さ（親の中で） */
    --kv-speed: 15s;             /* スクロール1周の時間 */
    --kv-unit-gap: 10px;         /* ユニット間の間隔（等間隔） */
    --kv-font-size: clamp(10px, 1.15vw, 10px); /* 文字サイズ */
    --kv-letter-spacing: .04em;  /* 文字の字間 */
    --kv-label-icon-gap: .4em;   /* 文字とSVGの間隔 */
    --kv-icon-size: 10px;        /* SVGアイコンの一辺 */
  }

    body
    {
        overflow-x: hidden;
        font-size: 14px;
    }
    .content-yosakoi
    {
        background-image: url(../img/yosakoi/yosakoi-bg-sp.jpg);
    }
    .top
    {
        height: 80vh;
        justify-content: space-between;
    }
    .kv
    {
            width: calc(100% - 30px);
    }
    .title
    {
        width: 55%;
        min-width: 250px;
        left: 53%;
    }
    section
    {
        width: 90%;
        margin: 40px auto;
        max-width: 100vw;
    }
    h2>span
    {
        font-size: 14px;
    }
    .yosakoi>h2
    {
        width: 100%;
        font-size: 26px;
        margin: 0 auto 40px;
    }
    .yosakoi>h2::before
    {
        left: calc(50% - 3.5em);
        height: 50%;
        aspect-ratio: 71 / 25;
        background-image: url(../img/yosakoi/head-line_sp.png);
    }
    .yosakoi>h2::after
    {
        left: calc(50% + 3.5em);
        height: 50%;
        aspect-ratio: 71 / 25;
        background-image: url(../img/yosakoi/head-line_sp.png);
    }
    .yosakoi>h3
    {
        font-size: 0.95em;
        line-height: 1.5;
        margin-bottom: 40px;
        text-align: left;
    }
    .yosakoi>h3 br
    {
        display: initial;
    }
    
    .local>h2
    {
        width: 100%;
        font-size: 26px;
        margin: 40px auto;
    }
    .local>h2::after
    {
        left: calc(50% - 4.5em);
        height: 50%;
        aspect-ratio: 71 / 25;
        background-image: url(../img/local-festival/head-line_sp.png);
    }
    .local>h2::before
    {
        left: calc(50% + 4.5em);
        height: 50%;
        aspect-ratio: 71 / 25;
        background-image: url(../img/local-festival/head-line_sp.png);
    }
    .kv-text>p
    {
        font-size: clamp(1em, 4vw, 1em);
        white-space: nowrap;
    }
    .kv-text-left,
    .kv-text-right
    {
        width: 5%;
    }
    .season-btn-con
    {
        min-width: 250px;
        flex-flow: column;
        padding: 0;
        margin: 40px auto;
        width: 100%;
    }
    .season-btn
    {
        margin: 20px auto 0;
        width: 100%;
        font-size: 20px;
    }
    .season-btn:first-of-type
    {
        margin-top: 0;
    }

    .spring-summer-festival>h2,
    .autumn-winter-festival>h2
    {
        width: 100%;
        max-width: 100%;
        min-width: 250px;
        aspect-ratio: 345/88;
        font-size: 20px;
    }

    .lf-modal
    {
        width: 90%;
        max-width: 90%;
        max-height: 85vh;
        min-width: 0;
        padding: 0;
        border: none;
        border-radius: 20px;
    }
    .lf-title
    {
        font-size: 21px;
    }
    .lf-meta
    {
        font-size: 14px;
    }
    .lf-button
    {
        font-size: 14px;
    }
    .lf-button__dot
    {
        width: 20px;
        height: 20px;
    }
    .lf-badge
    {
        width: 12%;
        font-size: 14px;
    }

    .lf-modal__panel
    {
       padding: 7.5% 5%;
       box-sizing: border-box; 
       display: flex;
        flex-direction: column;
        height: 100%;
        max-height: inherit;
        overflow: visible;
    }
    .lf-modal__grid
    {
        flex: 1 1 auto;
        overflow-y: auto;
        min-height: 0;
        overflow: auto;
         -webkit-overflow-scrolling: touch; 
        display: flex;
        flex-direction: column;
    }
    .lf-modal__grid>div
    {
        width: 100%;
    }
    .lf-img-wrap{
        max-width: 100%;
        max-height: none;
        line-height: 0;
    }
    .lf-img-wrap > .js-fes-img,
    .lf-img-bg .js-m-img{
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        border-radius: 10px;
        object-fit: contain;
        /* max-height: 35vh; */
    }
    .lf-img-bg
    {
        aspect-ratio: auto;
        margin: 0 auto 20px;
            width: 100%;
        max-width: none;
        height: auto;
        aspect-ratio: auto !important;
        overflow: visible;
    }
    .lf-modal__close
    {
        width: 12%;
        top: -15px;
        right: -15px;
    }
    html:has(.lf-modal[open]) body{
        overflow: hidden;
        }

    .js-m-title,
    .js-fes-title
    {
        font-size: 24px;
        margin: 0 0 20px;
    }
    .lf-modal__body
    {
        border: none;
    }
    .lf-modal__body>p
    {
        font-size: 1em;
        flex-flow: column;
        
    }

    /* 行自体 */
    .lf-modal__meta{
        display:block;
        border-top:1px solid #AAAAAA;
        padding:14px 0;
        margin:0;
        border: none;
    }

    /* ラベル用の帯 */
    .lf-modal__meta .lf-meta__tag{
        display:inline-block;
        background:#F7F6ED;
        padding:10px 5%;
        width: 100%;
        border-radius:5px;
        box-sizing: border-box;
    }

    /* 値（既存の .js-*** span）が下に来るよう block化 */
    .lf-modal__meta > span{
        display:block;
        margin-top:12px;
        line-height:1.7;
        word-break:break-all;
    }
    .lf-modal-badge
    {
        top: 10px;
        right: 10px;
        writing-mode: vertical-rl;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 6px;
        font-size: 14px;
        line-height: 1;
        color: #000;
        width: 8.5%;
        
    }

    html:has(.lf-modal[open]) body{ overflow: hidden; }
    .line
    {
        margin: 60px auto;
    }


    footer
    {
        padding: 5px 0;
    }
    footer>p
    {
        font-size: 12px;
    }
    

    /* テキストだけのバナー */
    .bn-text{
        font-size: 4vw;
        line-height: 1.2;
        white-space: normal;
    }
  
}
