    html{
        scroll-behavior: smooth;
    }
    *:focus {
  outline: none;
}
    html, body {
        overscroll-behavior-x: none; /* 横方向のバウンスを禁止 */
        overscroll-behavior-y: none; /* 縦方向も禁止したい場合 */
        }
    img
    {
    max-width: 100%;
    }
    ul li
    {
        list-style: none;
    }
    a
    {
        text-decoration: none;
        color: inherit;
    }
  .pc { display: flex; flex-flow: column; }
  .sp { display: none; }

  body {
    margin: 0;
    padding: 0;
    /* background-color: #FCFAF2;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; */
    color: #000000;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: bold;
    font-size: 16px;
    line-height:2em;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }
  section
  {
    margin: 60px auto;
    width: 80%;
    max-width: 1584px;
  }

  /*よさこいエリアのコンテンツ（TOP含む）*/
  .content-yosakoi
  {
    width: 100vw;
    background-image: url(../img/yosakoi/yosakoi-bg.jpg);
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: relative;
    height: fit-content;
    z-index: 3;
  }

  @property --reveal {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 0%;
  }

  .content-yosakoi::after{
    content: "";
    z-index: 2;
    width: 100vw;
    aspect-ratio: 1920/287;
    position: absolute;
    bottom: -14.8vw;
    left: 0;
    background-image: url(../img/local-festival/local-festival_top.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    --reveal: 0%;
    clip-path: inset(0 0 calc(100% - var(--reveal)) 0 round 0);
    transition: --reveal 1500ms cubic-bezier(.2,.8,.2,1);
    will-change: clip-path;
  }

  /* 発火後：100%まで露出（上→下に伸びる） */
  .content-yosakoi.is-in::after{
    --reveal: 100%;
  }

  @media (prefers-reduced-motion: reduce){
    .content-yosakoi::after{ transition:none; --reveal:100%; }
  }

  /* JSが観測する見えないトリガー（::afterと同位置/同サイズ） */
  .yosakoi-after-trigger{
    position: absolute;
    left: 0;
    bottom: -14.8vw;
    width: 100vw;
    aspect-ratio: 1920/287;
    pointer-events: none;
  }


  @media (prefers-reduced-motion: reduce){
    .content-yosakoi::after{ transition:none; opacity:1; transform:none; }
  }

  /*TOP*/
  .top
  {
    width: 100vw;
    height: 100vh;
    max-width: 1920px;
    position: relative;
    display: flex;
    padding: 1%;
    box-sizing: border-box;
    margin: 0 auto;
    overflow: hidden;
  }
    .top-img-1
    {
      animation-delay: 0.1s; 
      border-radius: 30px 0 0 0;
    }
    .top-img-1>img
    {
      border-radius: 30px 0 0 0;
    }
    .top-img-2
    {
      animation-delay: 0.9s;
      border-radius:  0 0 30px 0;
    }
    .top-img-2>img
    {
      border-radius:  0 0 30px 0;
    }
    .top-img-3
    {
      animation-delay: 1.7s;
      border-radius:  0 30px 0 0;
    }
    .top-img-3>img
    {
      border-radius:  0 30px 0 0 ;
    }
    .top-img-4
    {
      animation-delay: 2.6s;
      border-radius: 0  0 0 30px;
    }
    .top-img-4>img
    {
      border-radius: 0  0 0 30px;
    }
  .kamihubuki-pc
  {
    position: absolute;
    width: 100%;
    object-fit: contain;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }
  .kv-text-left
  {
    width: 20px;
    writing-mode: sideways-lr;
  }
  .kv-text-right
  {
    width: 20px;
    writing-mode: vertical-rl;
  }
  .kv-text>p
  {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    padding: 2% 0;
    margin: 0;
    font-size: clamp(20px, 1.8vw, 20px);
    vertical-align: middle;
    z-index: 0;
    line-height: 1;
    max-width: 5%;
    white-space: nowrap;
  }
  .kv-text span
  {
    display: inline-flex;
    line-height: 1;
    align-items: center;
    width: 1em;
    height: 1em;
  }
  .kv-text span>img
  {
    display: inline-grid;
    place-items: center;
    width: 100%;
    height: 100%;
    line-height: 0;
  }
  
  .kv
  {
    width: calc(100% - 50px);
    height: 100%;
    display: grid;
    grid-template-columns:repeat(2,2fr);
    gap:0;
    border-radius: 30px;
    overflow: hidden;
    margin: auto;
    z-index: 1;
  }
  .kv>div
  {
    display: inline-flex;
    flex-flow: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .kv>div>img
  {
    object-fit: cover;
    flex-flow: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .title
  {
    width: 43%;
    position: absolute;
    aspect-ratio: 155/137;
    max-width: 725px;
    min-width: 540px;
    top: 50%;
    left: 51.2%;
    transform: translate(-50%,-50%);
    z-index: 10;
  }

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

  /* =========================
    レール（左右共通）
  ========================= */
  .kv-rail{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: var(--kv-rail-w);
    height: var(--kv-rail-h);
    overflow: hidden;
    pointer-events: none;
    box-sizing: border-box;
  }
  .kv-rail--left  { left: 0; }
  .kv-rail--right { right: 0; }

  /* =========================
    走るトラック
  ========================= */
  .kv-track{
    display: flex;
    flex-direction: column;
    gap: var(--kv-unit-gap);
    will-change: transform;
    animation: kv-scroll var(--kv-speed) linear infinite;
  }
  /* 右側だけ進行方向を反転（上→下） */
  .kv-rail--right .kv-track{ animation-direction: reverse; }

  /* =========================
    ユニット（テキスト+アイコン）
  ========================= */
  .kv-item{
    margin: 0; padding: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--kv-label-icon-gap);
    line-height: 1;
    white-space: nowrap;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: var(--kv-font-size);
    letter-spacing: var(--kv-letter-spacing);
  }
  /* 左側はユニットごと反転（文字の向きだけ変えたい場合は .kv-label にして） */
  .kv-rail--left .kv-item{ transform: rotate(180deg); }

  /* アイコン（spanとimgをまとめて） */
  .kv-item span{
    display: inline-grid;
    place-items: center;
    width: var(--kv-icon-size);
    height: var(--kv-icon-size);
    line-height: 0;
  }
  .kv-item span > img{
    width: 100%;
    height: 100%;
    display: block;
  }

  /* =========================
    アニメーション（距離は JS が --kv-loop-h を注入）
  ========================= */
  @keyframes kv-scroll{
    from { transform: translateY(0); }
    to   { transform: translateY(calc(-1 * var(--kv-loop-h, 0px))); }
  }

  /* 動きを減らすユーザー設定 */
  @media (prefers-reduced-motion: reduce){
    .kv-track{ animation: none !important; transform: none !important; }
  }


  /*注意書き*/
  .note
  {
    background-color: #D35135;
    width: 80%;
    max-width: 1584px;
    margin: 0 auto 60px;
    height: 2em;
    border-radius: 10px;
  }
  .note>p
  {
    display: inline-flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    color: #ffffff;
  }

  /*よさこい*/
  .yosakoi
  {
    margin-bottom: 0;
  }
  .yosakoi>h2
  {
    font-size: 2.5em;
    font-weight: bolder;
    width: 100%;
    color: #ffffff;
    text-align: center;
    position: relative;
    margin: 60px auto;
  }
  .yosakoi>h2>span
  {
    font-size: 16px;
    margin-top: 5px;
    color: #ffffff;
    text-align: center;
    display: block;
  }
  .yosakoi>h2::before
  {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(45% - 5em);
    height: 100%;
    transform: translate(-50%,-50%);
    aspect-ratio: 301/68;
    background-image: url(../img/yosakoi/head-line_pc.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }
  .yosakoi>h2::after
  {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(55% + 5em);
    height: 100%;
    transform: translate(-50%,-50%);
    aspect-ratio: 301/68;
    background-image: url(../img/yosakoi/head-line_pc.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }
  .yosakoi>h3
  {
      color: #fff;
      font-size: 1em;
      margin-bottom: 60px;
      text-align: center;
  }
  .yosakoi>h3 br
  {
      display: none;
  }

  :root{
    --card-bg:#fff;
    --text:#000000;
    --muted:#000000;
    --btn:#0A0A0A;
    --btn-text:#fff;
    --radius:20px;
    --gap: 24px;
    --maxw: max-width: 1584px;
  }
  .grid{
    display:grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
    margin: 0 auto;
    padding: 0 0 120px;
  }
  .col{
    grid-column: span 12;
  }

  /* カード */
  .card{
    background:var(--card-bg);
    border-radius: var(--radius);
    display:flex;
    flex-direction:column;
    padding: 2.5%;
    box-sizing: border-box;
    min-height: 100%;
    position:relative;
  }

  .card__thumb{
    aspect-ratio: 198 / 159;
    border-radius: 10px;
    width:100%;
    position:relative;
    background:#f5f5f5;
    overflow: hidden;
  }
  .card__thumb img{
    position:absolute; 
    inset:0;
    width:100%; 
    height:100%;
    object-fit:cover; 
    object-position:center;
    display:block;
  }

  .card__body{
    padding: 16px 8px;
    display:flex;
    flex-direction:column;
    gap: 10px;
  }

  .card__title{
    font-size: clamp(16px, 1.7vw, 26px);
    margin: 0;
    letter-spacing:.02em;
  }

  .meta{
    font-size: 1em;
    color: var(--muted);
    display:flex;
    flex-direction:column;
    gap: 4px;
  }
  .meta__row{
    display:flex; align-items:flex-start; gap:8px;
  }
  .meta__label{
    white-space:nowrap; color:#000000;;
  }

  .card__footer{
    margin-top:auto;
    padding-top:6px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom:21px; 
  }
  .card__body{ padding-bottom: calc(21px + 44px); }

  .btn{
    display:inline-flex;
    align-items:center;
    width: 200px;
    aspect-ratio: 200/45;
    display: flex;
    justify-content: center;
    gap:.5em;
    background: var(--btn);
    color: var(--btn-text);
    border:0; 
    border-radius: 999px;
    text-decoration:none;
    font-size:16px;
    transition: transform .06s ease, box-shadow .2s ease;
  }
  
  .btn__icon{
    width: 22px; height: 22px; display:inline-block; 
  }
  .btn__icon svg{ width:100%; height:100%; display:block;}

  /*地域のお祭りエリアのコンテンツ*/
  .content-local-choice
  {
    width: 100vw;
    position: relative;
    height: fit-content;
    z-index: 1;
    background-image: url(../img/local-festival/bg.jpg);
    background-position: center;
    background-repeat: repeat;
    background-size: contain;
    padding: 10vw 0 60px 0;
  }
  
  .local
  {
    margin-top: 0;
    margin-bottom: 0;
  }
  .local>h2
  {
    font-size: 2.5em;
    font-weight: bolder;
    width: 100%;
    color: #000000;
    text-align: center;
    position: relative;
    margin: 60px auto;
  }
  .local>h2>span
  {
    font-size: 16px;
    color: #C4BDA2;
    text-align: center;
    display: block;
    margin-top: 5px;
  }
  .local>h2::before
  {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(45% - 5em);
    height: 100%;
    transform: translate(-50%,-50%);
    aspect-ratio: 301/68;
    background-image: url(../img/local-festival/head-line_pc.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }
  .local>h2::after
  {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(55% + 5em);
    height: 100%;
    transform: translate(-50%,-50%);
    aspect-ratio: 301/68;
    background-image: url(../img/local-festival/head-line_pc.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }
  .season-btn-con
  {
    width: 75%;
    min-width: 650px;
    margin: 100px auto 0;
    display: flex;
    justify-content: space-between;
    padding-bottom: 100px;
  }
  .season-btn
  {
    display:flex;
    justify-content:center;
    align-items:center;
    gap: .7em;
    width:48%;
    min-width: 250px;
    aspect-ratio: 47/11;
    font-size: 1.625em;
    line-height: 1;
    background-position:center;
    background-repeat:no-repeat;
    background-size:100% 100%;
  }
  .season-btn .label{ line-height:1; }
    .season-btn .season-btn-icon{
    display:inline-grid;
    place-items:center;
    width: 1.4em;
    height: 1.4em;
    line-height: 0;
  }
  .season-btn .season-btn-icon svg{
    display:block;
    width:100%;
    height:100%;
  }

  /*季節ごと*/
  .spring-summer
  {
    background-image: url(../img/local-festival/scroll-bg-ss.svg);
  }
  .autumn-winter
  {
    background-image: url(../img/local-festival/scroll-bg-aw.svg);
  }
  .spring-summer-festival
  {
    margin: 0 auto 60px;
  }
  .spring-summer-festival>h2
  {
    width: 33%;
    min-width: 400px;
    display:flex;
    flex-flow: column;
    justify-content:center;
    align-items:center;
    aspect-ratio: 400/102;
    font-size: 1.625em;
    line-height: 1;
    background-image: url(../img/local-festival/spring-summer.svg);
    background-position:center;
    background-repeat:no-repeat;
    background-size:100% 100%;
    margin: 0 auto 60px;
  }
  .autumn-winter-festival>h2
  {
    width: 33%;
    min-width: 400px;
    display:flex;
    flex-flow: column;
    justify-content:center;
    align-items:center;
    aspect-ratio: 400/102;
    font-size: 1.625em;
    line-height: 1;
    background-image: url(../img/local-festival/autumn-winter.svg);
    background-position:center;
    background-repeat:no-repeat;
    background-size:100% 100%;
    margin: 0 auto 60px;
  }
  .spring-summer-festival>h2>span,
  .autumn-winter-festival>h2>span
  {
    font-size: 16px;
    margin-top: 5px;
    color: #A5A5A5;
    text-align: center;
    display: block;
  }

  /* ===== 地域のお祭りカード ===== */
    .lf-gallery { 
        max-width: 1584px; 
        width: 100%;
        
    }

    .lf-grid{
        display:grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 24px;
    }

    .lf-card{
        background:#fff;
        border:2px solid #E6DDBD;
        border-radius:20px;
        overflow:hidden;
        display:flex;
        flex-direction:column;
        min-height:100%;
        padding: 2.5%;
        box-sizing: border-box;
        position: relative;
    }

    .lf-thumb
    {
        aspect-ratio: 198 / 159;
        border-radius: 10px;
        width:100%;
        position:relative;
        background:#f5f5f5;
        overflow: hidden;
    }

    /* 右上の縦バッジ */
    .lf-badge{
        position: absolute;
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        width: 15%;
        right: 2.5%;
        top: 2.5%;
        writing-mode: vertical-rl;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 19px;
        letter-spacing: .05em;
    }
    .lf-badge.kagura
    {
        background-image: url(../img/local-festival/badge-pink.svg);
        aspect-ratio: 49/88;
    }
    .lf-badge.huryu
    {
        background-image: url(../img/local-festival/badge-blue.svg);
        aspect-ratio: 49/88;
    }
    .lf-badge.sisimai
    {
        background-image: url(../img/local-festival/badge-green.svg);
        aspect-ratio: 53/114;
    }
    .lf-badge.sairei
    {
        background-image: url(../img/local-festival/badge-orange.svg);
        aspect-ratio: 45/128;
    }
    .lf-badge.denraku
    {
        background-image: url(../img/local-festival/badge-red.svg);
        aspect-ratio: 45/86;
    }
    .lf-badge--purple{ background:linear-gradient(180deg,#efe3f7 0%, #dbbef2 100%); color:#5a3182; }

    /* 左下の所在地チップ */
    .lf-labels{ position:absolute; left:10px; bottom:10px; display:flex; gap:6px; flex-wrap:wrap; }
    .lf-chip{
        display:inline-flex;
        align-items:center;
        text-align: left;
        gap:6px;
        padding:9px 15px;
        border-radius:999px 999px 999px 0;
        line-height: 1;
        background:#fff;
        color:#222;
        font-size:16px;
        font-weight:700;
    }
    .lf-chip svg{ width:14px; height:14px; display:block; }

    /* 本文 */
    .lf-card__body{ 
        display:flex;
        flex-direction:column;
        gap:5px;
        padding:17px 14px 74px; 
        text-align: left;
      }
    .lf-kana{
        font-size:14px;
        letter-spacing:.05em;
        font-weight: 500;
        line-height: 1;
    }
    .lf-title{
        margin:2px 0 0;
        font-size:26px;
        text-align: justify;
    }
    .js-fes-kana
    {
      margin-bottom: 10px;
    }
    .js-fes-title
    {
      margin: 0 0 30px;
      font-size:30px;
    }
    .lf-meta{
        font-size:16px;
        display: flex;
    }
    .lf-meta>{
        font-size:16px;
        display: flex;
        flex-flow: column;
    }
    .lf-meta__label
    {
      white-space: nowrap;
    }

    /* フッター（ボタンを下寄せ） */
    .lf-card__footer{
        position: absolute;
        bottom: 0;
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
    }

    .lf-button{
        width:100%;
        display:flex;
        align-items:center;
        justify-content:center; 
        gap:10px;
        padding:10px 12px;
        border: none;
        border-radius:0;
        line-height: 1;
        font-size: 24px;
        font-weight: bold;
        border-top:2px solid #E6DDBD ;
        background:#fff;
        aspect-ratio: 420/60;
        cursor: pointer;
    }
    
    .lf-button__dot{
        display:inline-grid;
        place-items:center;
        width:28px;
        height:28px;
    }
    .lf-button__dot>img{
        width: 100%;
        height: 100%;
    }

    .line
    {
        width: 100%;
        margin: 100px auto;
    }

    .links>h2,
    .outher-festival
    {
        text-align: center;
        margin: 60px auto;
    }

    /*バナー*/
  .bn-list{
    list-style:none;
    width: 100%;
    margin:0; 
    padding:0;
    display:grid;
    gap: 24px;
    grid-template-columns: repeat(2, 1fr);
  }

  .bn-item
  {
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 5px;
      box-sizing: border-box;
      background:#fff;
      border:1px solid #D8D8D8;
      /* aspect-ratio: 315/80; */
      min-height: 100px;
  }
  .bn-item:first-child
  {
      border: none;
      grid-column: 1 / -1;
      padding: 0;
  }
  .bn-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    height:100%;
    width:100%;
    text-decoration:none;
    transition: box-shadow .2s ease, transform .05s ease, border-color .2s ease;
  }
  

  /* 画像は枠内で縮小（比率維持） */
  .bn-link img{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
    display:flex;
  }
  /* テキストだけのバナー */
  .bn-text{
    font-size: 22px;
    width: 100%;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /*モーダル（部分共通）*/

    .lf-modal[open]::backdrop{
      background: rgba(0,0,0,.7);
    }
    .lf-modal
    {
        width: 80%;
        height: 85vh;
        max-height: 85vh;
        border: none;
        padding: 0;
        /* position: fixed; */
        box-sizing: border-box;
        border-radius: 20px;
        overflow: visible;
        min-width: 1000px;
        border-radius: 20px;
        max-width: 1580px;
        
    }
      .lf-modal__panel {
        position: relative;
        background: #fff;
        border-radius: 20px;
        padding: 50px 45px;
        overflow: visible;
        max-height: inherit;
          overflow: visible;
          box-sizing: border-box; 
          display: flex;
      }
        .lf-modal__grid
        {
           flex: 1 1 auto;
        overflow-y: auto;
        min-height: 0; 
        overflow: auto;
         -webkit-overflow-scrolling: touch; 
        }
      .lf-modal__close {
        position: absolute;
        top: -30px;
        right: -30px;
        width: 5%;
        aspect-ratio: 1/1;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 28px;
        line-height: 1;
        background: #000;
        color: #fff;
        border: 2px solid #ffffff;
        cursor: pointer;
      }

      .cross
      {
        position: relative;
        display: inline-flex;
        width: 100%;
        height: 100%;
      }
      .cross::before, .cross::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 3px;
        height: 60%;
        background: #fff;
      }
      
      .cross::before {
        transform: translate(-50%,-50%) rotate(45deg);
      }
      
      .cross::after {
        transform: translate(-50%,-50%) rotate(-45deg);
      }
    .lf-modal__meta { 
        border-top: 1px solid #AAAAAA;
        padding: 15px 0; 
        margin: 0;
        display: flex;
        white-space: nowrap;
    }
    .js-open
    {
      color: #000000;
    }
    .js-fes-date
    {
      white-space: wrap;
    }
    .lf-modal__contact a { text-decoration: underline; }
    .lf-modal__grid
    {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .js-m-img
    {
        width: 100%;
        height: auto;
        max-height: 100%;
        object-fit: contain;
    }
    .lf-modal__body
    {
        width: 55%;
        border-bottom: 1px solid #AAAAAA;
    }
    .lf-img-bg
    {
      width: 43%;
      max-width: 500px;
      aspect-ratio: 500/707;
      /* height: 75vh; */
      background-color: #F7F6F2;
      border-radius: 10px;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
    }

    .js-m-title
    {
      font-size: 30px;
      margin: 0 0 30px;
    }
    .js-m-row-contact
    {
      display: flex;
    }
    .js-m-desc
    {
      font-size: 16px;
      font-weight: 500;
    }
    .js-m-site,
    .js-m-contact-url,
    .js-fes-link
    {
      text-decoration: underline;
      color: #ED5D3B;
      white-space: wrap;
      word-break: break-all;
      display: inline; 
    }

    .lf-img-wrap{
      position: relative;
      display: inline-block;
      line-height: 0;
      max-width: 500px;
      max-height: 707px;
    }
    .lf-img-wrap > .js-fes-img{
      display: block;
      max-width: 100%;
      height: auto;
    }
    .lf-modal-badge{
      position: absolute;
      top: 20px;
      right: 20px;
      writing-mode: vertical-rl;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px 6px;
      font-size: 18px;
      line-height: 1;
      color: #000;
      width: min(10%, 88px);
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
      text-shadow: 0 1px 0 rgba(255,255,255,.6);
    }
    .lf-modal__meta span
    {
          white-space: wrap;
    }

    .lf-modal-badge.is-kagura
    {
        background-image: url(../img/local-festival/badge-pink.svg);
        aspect-ratio: 49/88;
    }
    .lf-modal-badge.is-huryu
    {
        background-image: url(../img/local-festival/badge-blue.svg);
        aspect-ratio: 49/88;
    }
    .lf-modal-badge.is-sisimai
    {
        background-image: url(../img/local-festival/badge-green.svg);
        aspect-ratio: 53/114;
    }
    .lf-modal-badge.is-sairei
    {
        background-image: url(../img/local-festival/badge-orange.svg);
        aspect-ratio: 45/128;
    }
    .lf-modal-badge.is-denraku
    {
        background-image: url(../img/local-festival/badge-red.svg);
        aspect-ratio: 45/86;
    }

    footer
    {
        width: 100vw;
        background-color: #000000;
        padding: 10px 0;
        color: #ffffff;
        text-align: center;
    }
    footer>p
    {
      font-size: 14px;
    }

    /* ===== open アニメのみ ===== */
    .lf-modal[open]{
      opacity: 0;
      transform: translateY(12px) scale(.96);
      animation: lf-modal-in .22s ease-out forwards;
      will-change: transform, opacity;
    }
    .lf-modal[open]::backdrop{
      background: rgba(0,0,0,0);
      animation: lf-backdrop-in .22s ease-out forwards;
    }

    /* keyframes */
    @keyframes lf-modal-in{
      to{ opacity:1; transform: translateY(0) scale(1); }
    }
    @keyframes lf-backdrop-in{
      to{ background: rgba(0,0,0,.45); }
    }

    /* 動きを減らすユーザー設定対応 */
    @media (prefers-reduced-motion: reduce){
      .lf-modal[open],
      .lf-modal[open]::backdrop{
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
      }
    }

    @media screen and (min-width: 767px){
      .col{ grid-column: span 6; }

      .btn:focus-visible{ outline: 2px solid #fff; outline-offset:2px; }
      .btn:hover{ transform: translateY(-1px); opacity: 0.8; }
      .btn:active{ transform: translateY(1px); }

      .season-btn:hover{ transform: translateY(-1px); opacity: 0.8; }
      .season-btn:active{ transform: translateY(1px); }
      .season-btn .icon{ display:inline-flex; }

      .lf-button:hover{ opacity: 0.8; }
      .js-m-site:hover{ opacity: 0.8; }
      .lf-modal__close:hover{ filter: brightness(0.7); }
      .js-fes-link:hover{ opacity: 0.8; }

      .bn-link:hover{ box-shadow:0 4px 16px rgba(0,0,0,.08); border-color:#dedede; }
      .bn-link:active{ transform: translateY(1px); }
      .bn-link:focus-visible{ outline:2px solid #2ea06b; outline-offset:2px; }
    }
    @media screen and (min-width: 1200px){
      .col{ grid-column: span 4; }
      .bn-list{ grid-template-columns: repeat(4, 1fr); }
      .lf-card{ grid-column: span 4; } 
    }
    @media (max-width: 767px){ 
      .lf-card{ grid-column: span 12; } 
    }
    @media (min-width: 767px) and (max-width: 1200px){
       .lf-card{ grid-column: span 6; } 

       .title
       {
        width: 45%;
        min-width: 400px;
       }
       .kv-text-left,
       .kv-text-right
        {
            width: 3%;
        }
        .kv
        {
          width: 92%;
        }
        .lf-modal
        {
          width: 80%;
          min-width: 700px;
          max-height: 85vh;
          min-width: 0;
        padding: 0;
        border: none;
        border-radius: 20px;
        }
        .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 > .js-fes-img
        {
          max-height: 35vh;
        }
        .lf-img-bg
        {
          aspect-ratio: auto;
          margin: 0 auto 30px;
        }
        .lf-modal__close
        {
          width: 10%;
        }

      .lf-img-bg
      {
          aspect-ratio: auto;
          margin: 0 auto 20px;
              width: 100%;
          max-width: none;
          height: auto;
          aspect-ratio: auto !important;
          overflow: visible;
      }

    html:has(.lf-modal[open]) body{
        overflow: hidden;
        }


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



    }
