/* =====================================
    audio-ui.css
    見た目・配置
===================================== */
/* 下層ページ */
/* ミニプレイヤー */
.mini-player {
    position: fixed;
    bottom: 24px;
    right: auto;
    z-index: 1000;
    left: 22px;
    width: 123px;
    /* height: 212px; */
    height: 223px;
    align-items: center;
    justify-content: space-around;
    background: transparent;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: block;
    padding: 8px;
    border: 1px solid #fff;
    line-height: 1;
    transition: all .5s;
    border-radius: 0;
    position: relative;
    margin-bottom: 16px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: fixed;
}
.mini-player:before {
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    background-color: #fff;
    top: 77px;
    left: 0;
}
.miniPlayer_flex {
    /* display: flex; */
    display: block;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}
/* .top_fixed-list .mini-player {
    position: relative;
    margin-bottom: 0;
} */

@media(max-width:768px){
    .mini-player {
    padding: 6px 10px 5px;
    border-radius: 5px;
    border: solid .6px #2C3E4D;
    flex-direction: row-reverse;
    width: auto;
    height: 78px;
    display: grid;
    grid-template-columns: 50px 1fr auto;
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 6px;
    row-gap: 3px;
    background: rgba(255, 255, 255, 0.61);
    backdrop-filter: blur(5px) brightness(1.15);
    -webkit-backdrop-filter: blur(5px) brightness(1.15);
    left: auto;
    right: 20px;
    bottom: 20px;
    color: #000;
    }
    .miniPlayer_flex {
    color: #000;
    }
    .mini-player:before {
    display: none;
    }
    dotlottie-wc.lottie-white {
    display: none;
    }
    .mini-player h2 {
    font-size: 12px;
    color: #000000;
    text-decoration-line: underline;
    /* grid-column: 2 / 4;
    grid-row: 1 / 2; */
    letter-spacing: 0.03em;
    text-underline-offset: 6px;
    }
    .miniPlayBtn_wrap p {
    display: none;
    }
}


/* dialog/フルプレイヤー */
#popup {
    width: min(90vw, 600px);
    border: none;
    border-radius: 16px;
    height: 100vh;
    width: 100vw;
    border: none;
    border-radius: 0;
    padding: 0;
    border: none;
    background-color: rgba(0, 0, 0, 0.7);
}
#popup .original-song__wrap {
    background: #000000;
    padding: 30px;
    width: 90vw;
    margin: 5vh auto;
    height: 85vh;
    display: flex;
    align-items: center;
/* 追加 */
    padding: 30px 30px 30px 5%;
    gap: 5%;
}
#popup img.record {
    width: 100%;
    object-fit: contain;
}

#popup button#muteBtn {
    border: none;
    background: no-repeat;
}
img.down-icon {
    height: 40px;
    width: auto;
    display: block;
    margin: 20px auto;
}
@media(max-width:768px){
    #popup .original-song__wrap {
    width: 100%;
    padding: 30px 5%;
    flex-direction: column;
    margin: auto;
    height: auto;
}
}


/* ボタン */
.miniPlayBtn_wrap button {
    background: none;
    border: none;
    cursor: pointer;
}
.miniPlayer_flex .record-wrap {
    width: 70px;
    text-align: center;
}
button.mini-toggle-btn {
    background: no-repeat;
    border: none;
    color: #fff;
    padding: 6px;
    cursor: pointer;
    width: 100px;
}
        @media(max-width:768px){
            button.mini-toggle-btn {
            width: 80px;
            position: absolute;
            bottom: 0;
            right: 0;
        }
        }


button.mini-toggle-btn img {
  /* width: 100%; */
  object-fit: contain;
  width: 90px;
}
img.play-img {
    width: 80px;
}
.miniPlayBtn_wrap {
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
}



.miniPlayBtn_wrap p {
    position: absolute;
    bottom: 122px;
    left: 50%;
    transform: translateX(-50%);
}



img.mute-img {
    width: 35px;
    height: 35px;
}
dotlottie-wc.lottie-white {
    display: none;
}
.top_fixed-list .miniPlayer_flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    left: 0;
    transform: translateX(0);
}
button.open-btn {
    width: 15px;
    height: 15px;
    display: flex;
    justify-content: end;
    margin: 0 0 7px auto;
}
.miniPlayer_flex img.record {
    width: 100%;
    width: 100%;
    object-fit: contain;
}

        @media(max-width:768px){
        .miniPlayer_flex .record-wrap {
        width: 47px;
        }
        .miniPlayer_flex {
        color: #000;
        display: flex;
        }
        .mini-player {
        padding: 6px 10px 5px;
        border-radius: 5px;
        border: solid .6px #2C3E4D;
        flex-direction: row-reverse;
        width: 195px;
        height: 78px;
        background: rgba(255, 255, 255, 0.61);
        backdrop-filter: blur(5px) brightness(1.15);
        -webkit-backdrop-filter: blur(5px) brightness(1.15);
        }



            button.open-btn {
            width: 15px;
            height: 15px;
            margin: 0;
            position: absolute;
            top: 0;
            right: 0;
            }
        }



/* シークバー */
.progress-container {
    width: 100%;
    height: 6px;          /* ← 必須 */
    background: #8E8E8E;
    position: relative;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;            /* JSで変わる */
    background: #fff;
}
.progress-container {
  cursor: pointer; /* 手の形 */
}
.progress-container.dragging {
  cursor: grabbing; /* 掴んでいる手 */
}

dialog {
    z-index: 10000;
}
footer {
    overflow: visible;
}


.player-bg--recruit img.record {
    width: 100%;
    object-fit: contain;
}
.audio-player.js-audio-player {
    width: 46%;
    margin: auto;
    text-align: center;
}
.original-song_wrap {
    display: flex;
    max-width: 1140px;
    margin: 0 auto;
    gap: 10%;
}

        @media(max-width:768px){
            .original-song_wrap {
                flex-direction: column;
            }
            .audio-player.js-audio-player {
                min-width: 222px;
                width: 60%;
                margin: 0 auto;
            }
        }


/* ================
    下層ページのみボタン画像切り替え
================ */
/* PC用: デフォルトで白 */
.mini-toggle-btn .play-img {
  content: url('../images/renovation/play.png');
}
.mini-toggle-btn .stop-img {
  content: url('../images/renovation/stop.png');
}

/* SP用: 画面幅 768px 以下で黒画像に切替 */
@media screen and (max-width: 768px) {
  .mini-toggle-btn .play-img {
    content: url('../images/renovation/play-bk.png');
    height: 21px;
    width: auto;
  }
  .mini-toggle-btn .stop-img {
    content: url('../images/renovation/stop-bk.png');
    height: 21px;
    width: auto;
  }
}

/* トップページSP用: 画面幅 768px 以下で白→白画像に切替 */
@media screen and (max-width: 768px) {
  .top-page .mini-toggle-btn .play-img {
    content: url('../images/renovation/play.png');
  }
  .top-page .mini-toggle-btn .stop-img {
    content: url('../images/renovation/stop.png');
  }
}


/* トップ以外のミニプレーヤー */
.mini-player h2 {
    text-align: center;
    line-height: 1.33;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
}


/* リクルートページかつ player-bg--recruit がある場合 ミニプレイヤー非表示 */
.mini-player {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mini-player.hidden {
  opacity: 0;
  pointer-events: none; /* クリックを無効化 */
  transform: translateY(10px); /* 少し下にスライド */
}



/* デフォルト（PC） */
.open-btn {
width: 50px;  /* 画像サイズに合わせる */
height: 50px;
background: url('../images/renovation/open-pc.png') no-repeat center/contain;
border: none;
cursor: pointer;
}
/* SP用: 画面幅 768px 以下で白い画像に切替 */
@media screen and (max-width: 768px) {
    .open-btn {
        background-image: url('../images/renovation/open-sp.png');
        grid-column: 2 / 4;
        grid-row: 1 / 3;
    }
    .top-page .open-btn {
        background-image: url('../images/renovation/open-pc.png');
        margin: 0 0 2px auto;
    }

}

button#dialogCloseBtn {
    background: none;
    border: none;
    position: absolute;
    top: 20px;
    right: 20px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
    cursor: pointer;
}
button#dialogCloseBtn img {
    width: 33px;
    display: block;
}
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
}
.controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: 0.25s ease;
}
.controls button img {
    width: 100%;
    object-fit: contain;
}


/* ul.top_fixed-list 内の .for-under は非表示 */
ul.top_fixed-list .mini-player h2 .for-under {
    display: none;
}

/* それ以外の場所の .for-under は表示 */
.mini-player h2 .for-under {
    display: block;
}

/* ただし上の rule より specificity が高い場合に効かせるために :not を使う方法もあります */
.mini-player h2 .for-under:not(ul.top_fixed-list .mini-player h2 .for-under) {
    display: block;
    text-align: center;
}
        @media(max-width:768px){
            .mini-player h2 .for-under:not(ul.top_fixed-list .mini-player h2 .for-under) {
            display: none;
            text-align: center;
        }
        }



/* TOP以外 */
.mini-player .for-under {
    display: block;
}
body:not(.home) .miniPlayer {
  width: 280px;             /* 小さくする */
  background-color: #333;    /* 背景色を変更 */
  color: #fff;               /* 文字色も変更 */
  border: 2px solid rgb(255, 255, 255);    /* 特別な枠線を追加 */
}
        @media(max-width:768px){
            .miniPlayer_flex .record-wrap {
                width: 47px;
                position: absolute;
                left: 9px;
                top: 50%;
                transform: translateY(-50%);
            }
            .miniPlayer_flex {
                display: contents;
            }
            .mini-player h2 {
                font-size: 11px;
                color: #000000;
                text-decoration-line: underline;
                letter-spacing: 0.03em;
                text-underline-offset: 6px;
                position: absolute;
                right: 11px;
                top: 25px;
            }
            button.mini-toggle-btn {
                width: 80px;
                position: absolute;
                bottom: 0;
                right: 28px;
            }
        }



/* トップのみ別スタイル */
.top-page .mini-player {
    display: none;
}
ul.top_fixed-list .mini-player {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    left: 0;
    width: 166.34px;
    height: 123px;
    align-items: center;
    justify-content: space-around;
    background: transparent;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: block;
    padding: 8px;
    border: 1px solid #fff;
    line-height: 1;
    transition: all .5s;
    border-radius: 0;
    position: relative;
    /* margin-bottom: 16px; */
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
}
ul.top_fixed-list .mini-player:before {
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    background-color: #fff;
    top: 52px;
    left: 0;
}
ul.top_fixed-list .miniPlayer_flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}
.top_fixed-list .mini-player {
    position: relative;
    margin-bottom: 0;
}
.top_fixed-list .miniPlayer_flex img.record {
    width: 47px;
    height: 47px;
    object-fit: contain;
}
.top_fixed-list .miniPlayBtn_wrap {
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
}
.top_fixed-list img.mute-img {
    width: 35px;
    height: 35px;
}
.top_fixed-list dotlottie-wc.lottie-white {
    position: absolute;
    top: 8px;
    filter: brightness(0) invert(1);
    width: 105px;
    left: 29px;
    display: block;
}
.top_fixed-list .miniPlayer_flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    left: 0;
    transform: translateX(0);
}
.top_fixed-list button.open-btn {
    width: 15px;
    height: 15px;
    display: flex;
    justify-content: end;
    margin: 0 0 5px auto;
}
.top_fixed-list .miniPlayer_flex img.record {
    width: 47px;
    height: 47px;
    object-fit: contain;
}
.top_fixed-list .miniPlayer_flex .record-wrap {
    width: 60px;
    text-align: center;
}
.top_fixed-list .miniPlayBtn_wrap p {
    position: static;
    transform: translateX(0);
}

.top_fixed-list button.mini-toggle-btn {
        position: static;
    }
.top-page .miniPlayBtn_wrap button {
    background: none;
    border: none;
    cursor: pointer;
}
.top-page .miniPlayer_flex .record-wrap {
    width: 60px;
    text-align: center;
    position: static;
    transform: translateY(0);
}
.top-page button.mini-toggle-btn {
    background: no-repeat;
    border: none;
    color: #fff;
    padding: 6px;
    cursor: pointer;
    width: 105px;
}
.top-page button.mini-toggle-btn img {
    width: 100%;
    object-fit: contain;
}
.top-page img.play-img {
    width: 80px;
}
.top-page .miniPlayBtn_wrap {
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
}
.top-page img.mute-img {
    width: 35px;
    height: 35px;
}
.top-page dotlottie-wc.lottie-white {
    position: absolute;
    top: 8px;
    filter: brightness(0) invert(1);
    width: 105px;
    left: 29px;
}
.top-page .top_fixed-list .miniPlayer_flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    left: 0;
    transform: translateX(0);
}
.top-page button.open-btn {
    width: 15px;
    height: 15px;
    display: flex;
    justify-content: end;
    margin: 0 0 7px auto;
}
.top-page .miniPlayer_flex img.record {
    width: 47px;
    height: 47px;
    object-fit: contain;
}








/* ボタン */




    @media(max-width:768px){
    .top-page .mini-player {
        position: absolute;
        bottom: 70px;
        left: 10px;
        z-index: 99;
        width: 140px;
        display: block;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        border: 1px solid #fff;
        backdrop-filter: none;
        color: #fff;
        height: 96px;
    }
    .top-page .mini-player h2 {
        color: #ffffff;
        text-decoration-line: none;
        text-underline-offset: 0;
        text-align: center;
        top: 22px;
        white-space: nowrap;
        font-size: 11px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    .top-page .mini-player h2 .for-under:not(ul.top_fixed-list .mini-player h2 .for-under) {
        display: none;
    }
    .top-page .miniPlayer_flex {
        color: #ffffff;
        width: auto;
        position: absolute;
        transform: translateX(0);
        left: 0;
        bottom: 3px;
        display: flex;
    }
    .top-page .mini-player::after {
        position: absolute;
        content: "";
        width: 100%;
        border-bottom: solid .5px;
        left: 0;
        top: 40px;
    }
    .top-page dotlottie-wc.lottie-white {
        display: block;
        position: absolute;
        top: 9px;
        filter: brightness(0) invert(1);
        width: 85px;
        left: 37px;
    }
    .top-page button.mini-toggle-btn {
    width: 80px;
    }
    .top-page button.open-btn {
        width: 15px;
        height: 15px;
        display: flex;
        justify-content: end;
        margin: 0 0 0 auto;
        background-image: url(../images/renovation/open-pc.png);
        right: 5px;
        top: 5px;
    }
    .top-page .miniPlayBtn_wrap p {
        display: block;
        position: static;
        transform: translateX(0);
    }
    .top-page  button.mini-toggle-btn {
    position: static;
}
}


dialog .original-song__lyrics {
    width: 50%;
}
dialog .audio-player.js-audio-player {
    width: 40%;
}
    @media(max-width:768px){
        dialog .audio-player.js-audio-player {
        text-align: center;
        min-width: 222px;
        width: 60%;
        margin: 0 auto;
    }
    dialog .original-song__lyrics {
    width: 100%;
    }
    }