/* news_reel.css - ニュースリール表示用CSS */
html {
    scroll-behavior: smooth;
}

/* リール切替ボタン */
.reel-toggle-button {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.reel-toggle-button img {
    width: 40px;
    height: 40px;
}

/* ニュースリール基本スタイル */
.news-reel {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
    display: none;
    background: #000000;
}

.news-reel.is-active {
    display: block;
}

.news-reel-body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* リールヘッダー */
.news-reel-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    box-sizing: border-box;
    background: #000000;
    z-index: 1;
}

.news-reel-header-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
}

.fa-chevron-left:before {
    display: block;
    width: 13px;
    height: 13px;
    margin-top: -4px;
    position: absolute;
    right: 16px;
    left: 16px;
    border-bottom: 4px solid #fff;
    border-left: 4px solid #fff;
    transform: rotate(45deg) translateY(-50%);
    content: "";
}

.news-reel-header-setting {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.news-reel-header-setting img {
    width: 40px;
    height: 40px;
}

/* ニュースリールコンテンツ */
.news-reel-content {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    max-width: 1000px;
    left: 0;
    transition: top ease 0.25s;
    transform: unset;
    margin: auto;
    right: 0;
}

.news-reel-content.is-prev {
    top: -100%;
    left: 0;
}

.news-reel-content.is-current {
    top: 0;
    left: 0;
}

.news-reel-content.is-next {
    top: 100%;
    left: 0;
}

/* リール動画エリア */
.news-reel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.news-reel-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: black;
}

.news-reel-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-reel-video video.is-hidden {
    display: none;
}

.news-reel-video>video {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* 通知 */
.news-reel-notice {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: all ease 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-reel-notice.is-hidden {
    opacity: 0;
}

.news-reel-notice > img {
    max-width: 30%;
}

/* 再生ボタン */
/* .news-reel-play .fa-play {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -17px;
    margin-left: -17px;
    width: 33px !important;
} */

.news-reel-play.is-hidden {
    display: none;
}

.news-reel-play img {
    width: 33px;
    height: 33px;
}

/* リールコントローラー */
.news-reel-controllers {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.news-reel-right-controllers {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    right: 8px;
    top: 50%;
    top: calc(50% - 20px);
    transform: translateY(-50%);
}

.news-reel-controller-icon {
    position: relative;
    width: 35px;
    height: 35px;
    pointer-events: all;
    border-radius: 100%;
    font-size: 32px;
    color: #ffffff;
    background: none;
    border: none;
    text-align: center;
    cursor: pointer;
    opacity: 0.8;
}

.news-reel-controller-icon.is-hidden {
    display: none;
}

.news-reel-right-controllers > .news-reel-controller-icon {
    margin-bottom: 24px;
}

.news-reel-controller-icon > img {
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 3px 6px rgb(0 0 0 / 75%));
    will-change: filter;
}

/* ミュートボタン */
.news-reel-mute.news-reel-controller-icon > ._on {
    display: none;
}

.news-reel-mute.news-reel-controller-icon.is-active > ._off {
    display: none;
}

.news-reel-mute.news-reel-controller-icon.is-active > ._on {
    display: inline;
}

/* ログインボタン */
.news-reel-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.contents {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.right-icon-text {
    color: #fff;
    font-size: 10px;
    opacity: 0.8;
    margin-top: 2px;
    text-align: center;
}

/* リール情報エリア */
.news-reel-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    padding: 16px 0;
    box-sizing: border-box;
    background: #000000;
    z-index: 1;
}

.news-reel-info.limited-hidden {
    display: none !important;
}

.news-reel-info-inner {
    width: 100%;
    position: relative;
}

.news-reel-info-news {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
}

.news-reel-info-newsTitle {
    font-size: 18px;
    color: #FFF;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-reel-info-newsTitleText {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    box-sizing: border-box;
}

/* 設定モーダル */
.setting-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: all ease 0.25s;
}

.setting-modal.is-active {
    opacity: 1;
    pointer-events: all;
}

.setting-modal-body {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #FFF;
    border-radius: 10px 10px 0 0;
    padding-bottom: 40px;
    transition: all ease 0.25s;
    transform: translateY(100%);
}

.setting-modal.is-active .setting-modal-body {
    transform: translateY(0);
}

.setting-modal-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    color: #333333;
    border-bottom: 1px solid #CCC;
}

.setting-modal-close {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: #ccc;
    cursor: pointer;
}

.setting-content {
    padding: 16px;
}

.setting-content-header {
    font-size: 16px;
    margin: 8px 0;
    font-weight: bold;
    color: #333;
}

.setting-content-buttons {
    font-size: 16px;
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.setting-content-button {
    padding: 8px 24px;
    background: #DDD;
    border-radius: 100px;
    color: #333;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.setting-content-button.select {
    background: #0982FE;
    color: #FFF;
}

/* 女の子情報用スタイル */
.news-reel-header-girl {
    position: relative;
    width: calc(100% - 96px);
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* 女の子動画用（画像＋テキスト） */
.news-reel-header-with-girl {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.news-reel-header-with-girl.is-hidden {
    display: none;
}

.news-reel-header-girlImage {
    width: 48px;
    height: 48px;
    border-radius: 100%;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.news-reel-header-girlImage > img {
    border: 2px solid #ffffff;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 100%;
    box-sizing: border-box;
    object-position: top;
}

/* 店舗専用動画用 */
.news-reel-header-shop-only {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.news-reel-header-shop-only.is-hidden {
    display: none;
}

/* テキスト共通スタイル */
.news-reel-header-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 女の子動画用のテキスト */
.news-reel-header-with-girl .news-reel-header-text {
    width: calc(100% - 56px);
}

/* 店舗専用動画用のテキスト */
.news-reel-header-shop-only .news-reel-header-text {
    width: 100%;
}

.news-reel-header-girlName,
.news-reel-header-shop,
.news-reel-header-shop-kana {
    font-size: 14px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #FFF;
    line-height: 1.2;
}

.news-reel-header-girlName {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 2px;
}

.news-reel-header-shop {
    font-size: 13px;
    margin-bottom: 1px;
}

.news-reel-header-shop-kana {
    font-size: 12px;
    opacity: 0.8;
}

.news-reel-header-shop-only .news-reel-header-shop {
    font-size: 16px;
    font-weight: bold;
}

.news-reel-header-shop-only .news-reel-header-shop-kana {
    font-size: 14px;
}

/* リール画面用の限定動画ぼかし */
.news-reel-limited-overlay-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 100px;
}

.limited-message-reel {
    width: 100%;
    text-align: center;
    color: white;
    padding: 20px;
    background: #000000;
}

.limited-text-reel {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
}

/* 動画のぼかし効果（リール用） */
.js-modalVideo.limited-blur {
    filter: blur(7px);
    transition: filter 0.3s ease;
}

/* サムネイルのぼかし効果（リール用） */
.news-reel-video-thumb.limited-blur {
    filter: blur(7px);
    transition: filter 0.3s ease;
}

/* is-hiddenクラス */
.news-reel-limited-overlay-blur.is-hidden {
    display: none !important;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
    .reel-toggle-button {
        display: block;
    }

    .contents.clearfix.sp {
        display: none;
    }
    
    .header {
        display: none;
    }
}

/* フッター・メニュー制御 */
.footer-contents,
.menu_contents,
#fixed_menu_fixed {
    display: none !important;
}

.footer-contents.is-active,
#fixed_menu_fixed.is-active {
    display: block !important;
}

.menu_contents.is-active {
    display: flex !important;
}