/* ユーザー画面カスタムスタイル（Viteビルド不要・即時反映用） */

/* event/info 系ページ（#event-page）はテキスト選択・コピーを許可（_base.scss の body 全体 user-select:none を上書き） */
#event-page,
#event-page * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}

/* お問合せID 等、 サポート時にコピーされる前提のテキスト */
.contact-id,
.contact-id * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
    cursor: text;
}

/* PC/SP で対応するヘッダー画像だけを表示する（ページ固有CSSが効かないイベントページ等のフォールバック） */
/* 基本: SP 画像のみ表示 */
.pc-mainimg {
    display: none;
}
.sp-mainimg {
    display: block;
    width: 100%;
}

/* PC幅以上: PC 画像のみ表示 */
@media (min-width: 768px) {
    .pc-mainimg {
        display: block;
        width: 100%;
        max-width: 1180px;
        margin: auto;
    }
    .sp-mainimg {
        display: none;
    }
}

/* BJ イベント: コインテーブルのコインアイコン */
.coin-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}

/* チケットアイコン */
.ticket-icon {
    display: inline-block;
    width: 56px;
    height: auto;
    vertical-align: middle;
    margin-right: 4px;
}

/* BJ イベント: 全体を白ベース(0.8透過)・文字黒に */
#event-page {
    color: #000 !important;
    font-size: calc(1em + 1px);
}
#event-page [v-cloak] { display: none; }
/* 129〜131 の見た目。 ⚠️ イベントIDで閉じてある。
   132 以降は event/_shared/_base/style.blade.php が基調を持ち、 各イベントは
   #event-page.event-{id} で自由に上書きする。 ここを全イベントに当てると
   !important のせいでイベント側の指定が効かなくなるので、 広げないこと。 */
#event-page.event-129 .event-section,
#event-page.event-130 .event-section,
#event-page.event-131 .event-section {
    background: rgba(255, 179, 233, 0.85) !important;
    color: #000;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
/* グッズ交換セクション専用 modifier。
   にじGAME 環境でレンダリング直後にスクロール領域が固定化される事象の対策として、
   グッズ交換ビューだけ縦領域を確保し親iframeの高さ計算ズレを回避する。
   他のセクション (ランキング・履歴・コイン履歴等) は短い表示でも余白が出ないよう min-height を付けない。 */
#event-page .event-section.event-section-goods {
    min-height: 1000px;
}
/* にじGAME のみ: 親iframe の幅が固定で、グッズ交換セクションの中身が
   枠外へはみ出してしまうため、内容が枠幅(≒1000px)を超えたら
   セクション内で横スクロールに収める。 他PFは従来通り(スクロールなし)。
   目印クラス .nijiyome-scroll は info_129.blade.php で $is_nijiyome のときだけ付与。 */
#event-page .event-section.event-section-goods.nijiyome-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
#event-page .event-section p {
    color: #000 !important;
}

/* event 130 用セクション（min-height なし、 ピンクを薄めに）
   既存 .event-section（カジノ用、min-height: 1000px）と共存させるため、 別クラスとして定義。 */
#event-page .evt130-section {
    background: rgba(255, 220, 240, 0.75) !important;
    color: #000;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
#event-page .evt130-section p {
    color: #000 !important;
}
#event-page .evt130-section .event-h2 {
    color: #c2185b;
}

/* event 130 キャスト視点表示: 水色系背景に切り替え
   .event130-frame--cast を wrap に付けた範囲で、 ユーザーと共通の .evt130-section を青ベースに上書き。
   .evt130-section--cast-only (キャスト専用 partial) は対象外として デフォルトのピンク系を維持する */
#event-page .event130-frame--cast .evt130-section:not(.evt130-section--cast-only) {
    background: rgba(180, 220, 240, 0.75) !important;
}
#event-page .event130-frame--cast .evt130-section:not(.evt130-section--cast-only) .event-h2 {
    color: #1f6b87;
}

/* event 130: 薄いグレー (#888/#777) を 濃グレー (#444) に統一して ピンク/水色背景でも読めるように。
   (#aaa/#ccc は既存ルールで #000 化済み) */
#event-page .evt130-section [style*="color: #888"],
#event-page .evt130-section [style*="color:#888"],
#event-page .evt130-section [style*="color: #777"],
#event-page .evt130-section [style*="color:#777"] {
    color: #444 !important;
}

/* event 130 共通 「※」 備考スタイル — 全テキスト注釈はこの class を付けて統一 */
#event-page .event-note {
    font-size: 11px !important;
    color: #000 !important;
    line-height: 1.8 !important;
    margin-top: 6px;
}

/* ユーザートップ お知らせウィジェット (.frame / .information-list の SCSS デフォルトを上書き)
   白の角丸カードに統一。 SCSS を触らず ここで完結 */
.user-information-card {
    /* before-frame と同じ 8px 10px の外側 margin で 横の余白を揃える */
    margin: 8px 10px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: none !important;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.user-information-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border: none !important;
    background: transparent !important;
}
.user-information-card li {
    border: none !important;
    background: transparent !important;
    padding: 4px 0;
}
.user-information-card a {
    text-decoration: none;
    /* タイトルが長くても 1行に収めて末尾を ellipsis に。 NEW バッジ + タイトルを横並び固定 */
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
/* NEW バッジ (お知らせ系 共通) */
.badge-new {
    display: inline-block;
    background: #fd7cb6;
    color: #fff !important;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    margin-right: 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    font-weight: bold;
}
#event-page .event-h2 {
    color: #ff1493;
    font-size: 1.2em;
    margin-bottom: 10px;
}
#event-page .event-table {
    width: 100%;
    border-collapse: collapse;
}
#event-page .event-table th {
    color: #e91e63 !important;
    border-color: #ccc;
    padding: 8px;
    border-bottom: 1px solid #ccc;
    font-weight: bold;
    text-align: left;
}
#event-page .event-table td {
    color: #000 !important;
    border-color: #ccc;
    padding: 8px;
    border-bottom: 1px solid #ccc;
}
/* 上位ランク: 王冠アイコン */
#event-page .event-table .rank-row .rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: bold;
    white-space: nowrap;
    line-height: 1;
}
#event-page .event-table .rank-medal-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
#event-page .event-table .rank-row td {
    vertical-align: middle;
}
#event-page .event-table .rank-row td:first-child {
    white-space: nowrap;
    min-width: 72px;
    text-align: center;
}
#event-page .event-table .rank-row .rank-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 2em;
}
#event-page .event-table .rank-1 td {
    font-size: 1.25em;
    font-weight: bold;
    color: #111 !important;
}
#event-page .event-table .rank-2 td {
    font-size: 1.1em;
    font-weight: bold;
    color: #222 !important;
}
#event-page .event-table .rank-3 td {
    font-size: 1.05em;
    font-weight: bold;
    color: #333 !important;
}

/* ランキング: 自分の行ハイライト */
#event-page .event-table .rank-self td {
    color: #e91e63 !important;
    font-weight: bold;
}

/* コイン交換モーダル */
#event-page .coin-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
#event-page .coin-modal {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    min-width: 280px;
    max-width: 90vw;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #000;
    text-align: center;
}
#event-page .coin-modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #e91e63;
    margin-bottom: 14px;
}
#event-page .coin-modal-body {
    margin-bottom: 20px;
    line-height: 1.6;
}
#event-page .coin-modal-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 10px;
}
#event-page .coin-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
#event-page .coin-modal-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #e91e63;
}
#event-page .coin-modal-btn--primary {
    background: #e91e63;
    color: #fff;
}
#event-page .coin-modal-btn--cancel {
    background: #fff;
    color: #e91e63;
}
#event-page .coin-modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ランキングローディング */
.ranking-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: #000;
}
.ranking-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(233, 30, 99, 0.3);
    border-top-color: #e91e63;
    border-radius: 50%;
    animation: ranking-spin 0.8s linear infinite;
}
@keyframes ranking-spin {
    to { transform: rotate(360deg); }
}
/* グレー系(#aaa, #ccc) を黒に、黄/ゴールド系を濃いピンクに統一 */
#event-page [style*="color: #aaa"],
#event-page [style*="color:#aaa"],
#event-page [style*="color: #ccc"],
#event-page [style*="color:#ccc"] {
    color: #000 !important;
}
#event-page [style*="color: gold"],
#event-page [style*="color:gold"],
#event-page [style*="color: #ffcb6b"],
#event-page [style*="color:#ffcb6b"],
#event-page [style*="color: #fdff28"] {
    color: #d6006b !important;
}
/* 視認性の低い淡い見出し色を濃色に */
#event-page [style*="color: #ff9999"],
#event-page [style*="color:#ff9999"] {
    color: #c23030 !important;
}
#event-page [style*="color: #99ccff"],
#event-page [style*="color:#99ccff"] {
    color: #1f4fbf !important;
}

/* コメント欄のホバー展開を完全無効化 */
.person-block-l:hover {
    overflow: hidden !important;
    z-index: auto !important;
}

/* カレンダー: 年月選択バーの上に隙間 */
#calendar .head {
    margin-top: 10px;
}

/* キャスト向け報酬テーブル: 順位列のフォントを強調 */
.cast-reward-table td:first-child {
    font-size: calc(1em + 2px);
    font-weight: 600;
}

/* ポイント購入ボタン: PC版チャット内の位置調整 */
.chat .roomstatus .chat-buypoint-talk {
    margin-top: 2px;
}

/* モバイル: ポイント行を横幅いっぱいに広げる */
.chat .roomstatus .chatbg-roomstatus.dom-point {
    width: 100%;
}

/* モバイル: VLPt購入ボタンの行は固定高さを解除（ボタンがはみ出て下要素と重なるのを防ぐ） */
.chat .roomstatus:has(.chat-buypoint-talk-l) {
    height: auto;
    padding-bottom: 4px;
}

/* イベントランキング枠: サンプルボイスと揃えて薄ピンクに、外側の茶枠を撤去 */
.char-ranking .ttl-sky-light .inner {
    background: linear-gradient(to right, #fd7cb6, #f5a6c8) !important;
}
.char-ranking .box-fraborder-color-pink {
    border-color: #fd7cb6 !important;
}
/* ゲージ外側の黒枠/半透明黒背景を撤去 */
.box-intimacies .gauge-area,
.box-intimacies-pc .gauge-area,
.box-intimacies-sp .gauge-area {
    border: none !important;
    background: transparent !important;
}
/* ゲージ base の背景をグレーから薄灰に */
.box-intimacies .gauge-area .base,
.box-intimacies-pc .gauge-area .base,
.box-intimacies-sp .gauge-area .base {
    background-color: #eee !important;
}
/* 獲得Exp 行のフォントサイズ */
.char-ranking .box-fraborder-color-pink .point {
    font-size: 14px !important;
}
/* イベント限定親密度の横に表示する小さなイベント名 */
.char-ranking .ttl-sky-light .inner .event-title-sub {
    font-size: 11px;
    margin-left: 8px;
    font-weight: normal;
    opacity: 0.85;
}
@media (max-width: 767px) {
    .char-ranking .ttl-sky-light .inner .event-title-sub {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
}

/* BJランキング: ツールバー（非公開チェック + 総合/報酬タブ） */
.ranking-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    min-height: 24px;
}
.ranking-privacy-label {
    font-size: 12px;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ranking-privacy-label input[type="checkbox"] {
    accent-color: #e91e63;
}

/* BJランキング: 総合/報酬 切替タブ */
.ranking-scope-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-left: auto;
}
.ranking-scope-tabs span {
    cursor: pointer;
    color: #888;
}
.ranking-scope-tabs span.sep {
    cursor: default;
    color: #ccc;
}
.ranking-scope-tabs span.active {
    color: #e91e63;
    font-weight: bold;
}

/* BJランキング: キャストアイコン */
.rank-actor-icon {
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #e91e63;
    vertical-align: middle;
    margin-right: 4px;
}

/* SP: チャット内ポイント表示 */
@media (max-width: 767px) {
    .chat .chatbg-roomstatus.dom-point .pointstatus .point-row {
        display: flex;
        width: 100%;
        z-index: 1;
        font-size: 11px;
        white-space: nowrap;
        overflow: visible;
    }
    .chat .chatbg-roomstatus.dom-point .pointstatus .point-row span {
        flex: none;
        text-align: left;
        width: auto;
        margin-right: 8px;
    }
    .chat .chatbg-roomstatus.dom-point .pointstatus .rest-row {
        width: auto;
        text-align: right;
        font-size: 11px;
        font-weight: bold;
        color: #c23030;
        z-index: 1;
        white-space: nowrap;
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
    }
}
@media (max-width: 300px) {
    .chat .chatbg-roomstatus.dom-point .pointstatus .rest-row {
        display: none;
    }
}

/* 残り時間ゲージ: 右端のラベル（5分/1分） */
.chat .pointstatus .rest_gauge_label {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%);
    font-weight: bold;
    color: #c23030;
    font-size: 0.9em;
    z-index: 2;
    margin-left: auto;
}

/* 残り時間ゲージ：端から端まで光沢が流れるアニメーション */
.chat .pointstatus .rest_bar {
    overflow: hidden;
    transition: width 0.6s ease-out, background-color 0.5s ease;
}
.chat .pointstatus .rest_bar::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: linear-gradient(to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.7) 50%,
        rgba(255,255,255,0) 100%);
    transform: translateX(100%);
    animation: rest_bar_flow 8s linear infinite;
}
@keyframes rest_bar_flow {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* イベント限定親密度: Exp 増加時の shine sweep */
.gauge-area {
    position: relative;
}
.gauge-area .gauge {
    position: relative;
    overflow: hidden;
}
@keyframes gauge-shine {
    0%   { transform: translateX(-100%); opacity: 1; }
    100% { transform: translateX(200%); opacity: 0; }
}
.gauge-area .gauge.shine::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.7) 50%,
        rgba(255,255,255,0) 100%);
    animation: gauge-shine 0.6s ease-out forwards;
    pointer-events: none;
}

/* ポイント残少ふわふわ点滅（残1pt以下 & 15秒以内） */
@keyframes point-fade-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}
.chat .pointstatus.point-fading {
    animation: point-fade-pulse 2s ease-in-out infinite;
}

/* +N Exp フローティング */
@keyframes exp-float {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-28px); }
}
.exp-float-badge {
    position: absolute;
    right: 8px;
    top: -6px;
    font-size: 12px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    animation: exp-float 1.2s ease-out forwards;
    pointer-events: none;
    z-index: 5;
}

/* イベント限定親密度ランキング */
.ranking-modal table td.rank {
    font-size: 14px;
    width: 20%;
}
.ranking-modal table td.level {
    font-size: 14px;
    width: 25%;
}
.ranking-modal table td.total_exp {
    font-size: 14px;
    width: 25%;
}
.ranking-name {
    font-size: 12px;
    width: 30%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ranking-name--self {
    font-weight: bold;
}

/* 点滅アニメーション速度（ビルド不要で上書き） */
.blink {
    animation-duration: 1.5s !important;
}

/* ポイント購入モーダルのスクロール対応（ビルド不要で上書き） */
/* 項目数が多い時に下部が見切れないよう、内側で縦スクロールさせる */
/* footer.blade.php のポイント購入モーダルだけに当たるよう .point-buy-modal で絞っている。
   shop/index.blade.php も同じ #js_modal_sales を使っているため、ID で絞ると副作用が出る。 */
.point-buy-modal .dialog_popup {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
}
.point-buy-modal .dialog_popup-inner {
    /* 100vh はモバイルWebView/iOS Safari で URL バー展開時に実領域より大きく出るため、
       100dvh（動的ビューポート高）を優先。dvh 未対応ブラウザは vh にフォールバック。 */
    max-height: calc(100vh - 108px); /* margin50+50 + border4+4 */
    max-height: calc(100dvh - 108px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
/* 閉じる×ボタンが画面ヘッダーに隠れないように z-index を引き上げ */
.point-buy-modal .dialog-close {
    z-index: 10;
}

/* マイページ「イベント記録一覧」のテキストを画像の下段（=画像と重ならない別行）に表示する
   元 SCSS は .info を画像にオーバーレイ表示しているため、ここで上書きする。
   並び順: 画像 → 区切り線 → キャラ名 → ランキング */
.event .event_reward .body .box-event {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
}
.event .event_reward .body .box-event img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
}
.event .event_reward .body .box-event .info {
    /* position: relative は voice ボタンの絶対配置基準として残す。
       元の position:absolute による画像オーバーレイは解除される（top/bottom 指定なし） */
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    background: transparent !important;
    border-top: 1px solid #fd7bb6 !important;
    padding: 8px 10px !important;
}
.event .event_reward .body .box-event .info .btn-voice {
    position: absolute !important;
    right: 8px !important;
    bottom: 8px !important;
    top: auto !important;
    width: 30px !important;
}

/* イベント案内 ヘッダーバナー（白カード型・PC専用・3状態）
   テンプレート: resources/views/event/_shared/header_banner.blade.php
   PC専用は none_sp（SPで display:none !important）で担保。 */
/* イベントページ タブ列: 中途半端な幅で「3-1」に割れるのを防ぐ。
   狭い幅では2列(4タブ=2x2)、広い幅(>=600px)では1行に並べる。
   ボタンの色は各 info_*.blade.php の tabBtnStyle()（Vueインライン）が担当。 */
.evt-tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    max-width: 460px;
    margin: 0 auto 15px;
}
.evt-tab-grid > button {
    width: 100%;
}
@media (min-width: 600px) {
    .evt-tab-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        max-width: none;
    }
    .evt-tab-grid > button {
        width: auto;
    }
}

/* イベントページ サブタブ列: 縦並び（狭い幅）になったら全幅まで広げる。
   メインタブ(.evt-tab-grid)と同じ max-width に揃えて左右を合わせる。
   広い幅(>=600px)では従来どおり1行に並べる。 */
.evt-subtab-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    max-width: 460px;
    margin: 0 auto 12px;
}
.evt-subtab-stack > button,
.evt-subtab-stack > a {
    width: 100%;
    box-sizing: border-box;
}
@media (min-width: 600px) {
    .evt-subtab-stack {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        max-width: none;
    }
    .evt-subtab-stack > button,
    .evt-subtab-stack > a {
        width: auto;
    }
}

/* 共通: 白カード・ピンク文字 */
.event-header-banner {
    /* うっすら上下グラデ。 中央を白にして、 上下だけほんのりピンクにする。
       ⚠️ 濃くしないこと。 見出し(#d6006b)とサブ(#e0578d)を白地前提の色で置いているので、
          地が濃いと読みにくくなる */
    background: linear-gradient(180deg, #ffeef6 0%, #ffffff 28%, #ffffff 72%, #ffeef6 100%);
    border: 1px solid #f3b3cd;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
    text-decoration: none;
    line-height: 1.35;
    transition: transform .15s ease, box-shadow .15s ease;
}
.event-header-banner:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(214, 0, 107, 0.20);
}
.event-header-banner .ehb-headline {
    font-weight: bold;
    color: #d6006b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.event-header-banner .ehb-sub {
    color: #e0578d;
    white-space: nowrap;
}

/* PC: ロゴ（float:left）の右横に並べる白カード（2行） */
.event-header-banner--pc {
    float: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 460px;
    margin: 10px 0 0 16px;       /* ロゴとの間隔 + 縦位置の微調整 */
    padding: 7px 18px;
}
.event-header-banner--pc .ehb-headline { font-size: 14px; }
.event-header-banner--pc .ehb-sub { font-size: 11px; }

/* SP: ロゴ行の下に全幅の細い1行リボン */
.event-header-banner--sp {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 6px 10px;
    padding: 6px 12px;
}
.event-header-banner--sp .ehb-headline { font-size: 13px; flex: 1 1 auto; min-width: 0; }
.event-header-banner--sp .ehb-sub { font-size: 11px; flex: 0 0 auto; }

/* ============================================================
   お知らせ本文のリンクに下線を出す
   ============================================================
   _base.scss が a { text-decoration: none } をサイト全体にかけているため、
   運営がお知らせ本文に貼ったリンクが「色の付いた文字」にしか見えず、
   リンクだと気づかれなかった。 本文の中だけ下線を戻す。
   （「次のお知らせ」等のページ内ナビは対象外＝従来どおり下線なし）
   ※ user-custom.css は master.blade で @vite(app.scss) の後に読まれるので、
      ここに書けば _base.scss を上書きできる（SCSS を触らない＝ビルド不要）。 */
#information-user .information-message a,
#information-user .information-message a:hover,
#information-user .information-message a:focus,
#information-user .information-message a:active {
    text-decoration: underline;
}

/* ============================================================
   お月見メダルの獲得状況（キャラクター詳細）
   ============================================================
   部品: resources/views/user/character/_event_medal.blade.php
   ⚠️ SCSS ではなくここに置いている。 yarn build を通さずに当てるため。
   ⚠️ 色はイベントページの贈り先カード（133 の teaser_style）に合わせた金系。
      キャラ詳細のピンク系の枠の中に金の数字を置く形で、 イベントの物だと分かるようにする。 */
.mm-body {
    padding: 10px 12px 12px;
    text-align: center;
}
/* 枚数は金のグラデ。 ⚠️ color を先に置くこと。 background-clip が効かない
   ブラウザでは -webkit-text-fill-color も無視され、この color で出る */
.mm-num {
    color: #b8860b;
    background: linear-gradient(180deg, #f3c757 0%, #b9860f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 30px;
    font-weight: bold;
    line-height: 1.2;
}
.mm-num span {
    -webkit-text-fill-color: #8a6b16;
    margin-left: 4px;
    font-size: 14px;
    font-weight: normal;
}
.mm-gauge {
    position: relative;
    max-width: 320px;
    height: 10px;
    margin: 8px auto 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #f0e6ef;
}
.mm-gauge-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffd875 0%, #e0a51f 100%);
}
/* お揃い衣装のしきい値の目印 */
.mm-gauge-mark {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(163, 42, 99, 0.55);
}
.mm-state {
    font-size: 12px;
    line-height: 1.7;
}
.mm-state .is-todo { display: block; color: #7a6a80; }
.mm-state .is-selectable { display: block; color: #c2185b; font-weight: bold; }
.mm-state .is-original { display: block; color: #b8860b; font-weight: bold; }
.mm-mine {
    margin-top: 4px;
    color: #7a6a80;
    font-size: 11px;
}
.mm-mine strong { color: #b8860b; }
.mm-btn-wrap { margin-top: 10px; }
/* ⚠️ .btn-more-gradipink は button 想定の既存クラス。 a に付けるので
   下線と行の高さだけ打ち消す（ 色や地は既存の定義に任せる ） */
.mm-btn {
    display: inline-block;
    text-decoration: none;
}
.mm-closed {
    margin-top: 8px;
    color: #999;
    font-size: 11px;
}

/* ============================================================
   特別オファー（2026-10-08）
   ⚠️ SCSS は触らず ここで当てる（ビルド無しで反映できるようにするため）。
   ブレークポイントは _setting.scss と同じ 768px。
   ============================================================ */
/* 上から降りてくる案内バナー（#top .monthly_point_up）。 KV の上に重なるので輪郭が無いと絵に溶ける。
   白 5px の枠＋外側に紫ピンクの細線＋濃い落ち影で浮かせる */
#top .monthly_point_up img {
    border: 5px solid #ffffff;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 0 0 0 2px #e67cf5, 0 10px 28px rgba(0, 0, 0, 0.55);
}

/* SP: KV 下のメニュー（.navi）直下の特別オファーバナー（user/index .home-offer_sp）。 PC は .navi と同じく隠す */
#top .home-offer_sp {
    margin: 2px 0 10px;
    text-align: center;
}
@media (min-width: 768px) {
    #top .home-offer_sp { display: none; }
}
#top .home-offer_sp .banner_btn {
    display: inline-block;
    width: 100%;
    max-width: 420px;
    cursor: pointer;
}
#top .home-offer_sp .banner_btn img {
    width: 100%;
    border-radius: 8px;
    vertical-align: top;
}
/* 残り時間（カプセル型・白背景） */
#top .home-offer_sp .rest_time {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 36px;
    background: #ffffff;
    border: 1px solid #f4a8cd;
    border-radius: 999px;
    font-size: 11px;
    font-weight: bold;
    color: #c2185b;
    line-height: 1.6;
}
#top .home-offer_sp .rest_time .number {
    font-size: 15px;
    margin: 0 0.1em;
}
/* お知らせ欄のオファーバナーは SP では KV 下と二重になるので PC だけ */
@media (max-width: 767px) {
    #top .home-offer-banner--pc-only { display: none; }
}


/* ===== 非会員ヘッダーの ログイン / 新規登録 ボタン =====
   ⚠️ header.blade.php に <style> を置くと Vue のマウントで消える（ #header が data-v-app ）。
      サーバが描いた直後は見えて、 再描画で落ちるので「一瞬出て消える」になる。
      ビルド不要でヘッダーより先に読まれる このファイルに置くこと（ 2026-10-15 ）。 */
    /* ⚠️ 会員用ヘッダーの li は 46px 角のアイコン前提（ parts/_header.scss ）。
         そのままだとボタンが 46px に潰れて文字が折り返す。 幅と float を外す。 */
    .navi-header--guest {
        display: flex !important;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
        position: relative;
        z-index: 2;   /* イベントの帯に隠されないように */
    }
    /* ===== 使い方ダイアログの画像 =====
       ⚠️ 原寸（ 横800px ）を超えて引き伸ばさないこと。 元は style="width:100%" で、
          ダイアログが800pxより広いPCでは拡大されて輪郭がぼやけていた。
       スマホは画面幅に合わせて縮める（ 縮小はぼやけない ）。 */
    .dialog_popup .help-image {
        display: block;
        width: 100%;
        max-width: 800px;
        height: auto;
        margin: 0 auto;
    }
    /* ⚠️ ダイアログは width:800px / box-sizing:border-box / border:4px なので、
       中身が入る幅は 792px しかなく 画像が 800→792 に縮んで僅かににじむ。
       枠ぶん広げて 内側をちょうど 800px にし、 PCでは等倍で出す。
       ⚠️ 画面が狭いときは広げない（ はみ出す ）。 */
    @media (min-width: 840px) {
        #js_modal_help .dialog_popup {
            width: 808px;
            max-width: 808px;
        }
    }

    /* ===== ヘッダーの［使い方］ =====
       ⚠️ 隣の .bluesky-link と同じ寸法にすること（ padding 1px 12px / 高さ20px /
          border-radius 9999px ）。 揃っていないと ここだけ別部品に見える。
       ⚠️ 影や立体感を足さない。 隣がフラットなピルなので浮く（ 元の画像ボタンがそれだった ）。
       ⚠️ セレクタに .twitter_area を挟むこと。 SCSS の「.header .twitter_area span」が
          height:24px / display:inline-block を当てていて、 要素セレクタぶん詳細度が上。
          省くと高さが揃わず 隣のピルと段差が出る。 */
    .header .twitter_area .header-help-container {
        display: inline-block;
        margin-right: 10px;
        margin-bottom: 6px;
    }
    .header .twitter_area .header-help-link {
        /* ⚠️ flex で縦中央にすること。 block のままだと「?」の丸（14px）が
           行ボックスを押し広げ、 隣の Bluesky（20px）より高くなって段差が出る */
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        padding: 1px 12px;
        height: 20px;
        border-radius: 9999px;
        background: #e6d9f7;
        color: #6b3fa0;
        font-weight: bold;
        cursor: pointer;
        white-space: nowrap;
    }
    .header .twitter_area .header-help-link:hover { background: #d9c7f2; }
    /* 先頭の「?」。 画像を使わず文字で丸を作る */
    .header .twitter_area .header-help-link .icon {
        display: inline-block;
        width: 14px;
        height: 14px;
        margin: 0 3px 0 0;
        border-radius: 50%;
        background: #6b3fa0;
        color: #fff;
        font-size: 11px;
        line-height: 14px;
        text-align: center;
        flex: 0 0 auto;
    }

    /* ===== 非会員ヘッダーの地色 =====
       エントランス（ entrance/layouts-master の #header ）と同じグラデにして、
       /service-guide から /character に来たときに continuity を保つ。
       ⚠️ bg_stars の星背景を消すため background ショートハンドで上書きすること
          （ background-color だけだと星が残る ）。 */
    #header.header--guest {
        background: linear-gradient(180deg, #fff 0%, #fff2f8 45%, #ffe3f0 80%, #ffd6e9 100%) !important;
    }

    .navi-header--guest li {
        width: auto !important;
        height: auto !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        background: none !important;
    }
    .navi-header--guest .guest-btn,
    .navi-header--guest .guest-btn:link,
    .navi-header--guest .guest-btn:visited,
    .navi-header--guest .guest-btn:hover,
    .navi-header--guest .guest-btn:focus,
    .navi-header--guest .guest-btn:active {
        text-decoration: none;
    }
    .navi-header--guest .guest-btn {
        display: inline-block;
        padding: 9px 20px;
        border-radius: 999px;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
        transition: background .2s, box-shadow .2s;
    }
    /* 一番弱い見た目。 枠も背景も付けず、 文字リンクのまま並べる。
       ⚠️ 全状態に色を当てること（ 共通の a:hover に負けて灰色になる ） */
    .navi-header--guest .guest-btn--text,
    .navi-header--guest .guest-btn--text:link,
    .navi-header--guest .guest-btn--text:visited,
    .navi-header--guest .guest-btn--text:hover,
    .navi-header--guest .guest-btn--text:active {
        color: #e0689c;
        background: none;
        border: none;
        padding: 9px 8px;
        font-weight: 600;
    }
    .navi-header--guest .guest-btn--text:hover { text-decoration: underline; }
    .navi-header--guest .guest-btn--outline {
        color: #e0689c;
        background: #fff;
        border: 2px solid #e0689c;
    }
    .navi-header--guest .guest-btn--outline:hover { background: #ffeef6; }
    /* 主役。 装飾は足さない。 ログインより一回り大きく、 文字を1段上げるだけで差を付ける */
    .navi-header--guest .guest-btn--filled {
        color: #fff;
        padding: 10px 26px;
        font-size: 15px;
        background: linear-gradient(135deg, #f58bb4, #e0689c);
        border: none;
        box-shadow: 0 2px 8px rgba(224, 104, 156, .30);
    }
    .navi-header--guest .guest-btn--filled:hover { box-shadow: 0 4px 12px rgba(224, 104, 156, .40); }
    @media (max-width: 767px) {
        .navi-header--guest { gap: 6px; }
        .navi-header--guest .guest-btn { padding: 7px 12px; font-size: 12px; }
    }


/* ===== キャラ詳細の 非会員ボタン =====
   ボタンの枠は既存の .char-btn-no_login をそのまま使い、 中の文字だけ差し替える。
   元は .icon-login_prompt（ 文字を焼いた画像 ）。 位置と大きさはそれに合わせてある。
   元定義: resources/sass/utils/_icons.scss の .icon-login_prompt。 2026-10-15 */
.char-btn-no_login__text {
    position: absolute;
    top: 11px;
    left: 0;
    right: 0;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    white-space: nowrap;
}
@media (max-width: 480px) {
    .char-btn-no_login__text { font-size: 15px; }
}

/* 旧: テキストだけのボタン（ いまは未使用。 他で使うときのために残す ） */
.char-btn-register,
.char-btn-register:link,
.char-btn-register:visited,
.char-btn-register:hover,
.char-btn-register:focus,
.char-btn-register:active {
    color: #fff;
    text-decoration: none;
}
.char-btn-register {
    display: block;
    width: 100%;
    padding: 15px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f58bb4, #e0689c);
    box-shadow: 0 4px 12px rgba(224, 104, 156, .35);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
    transition: box-shadow .2s, transform .15s;
}
.char-btn-register:hover {
    box-shadow: 0 6px 16px rgba(224, 104, 156, .45);
    transform: translateY(-1px);
}

/* ============================================================
   汎用ボタン（カプセル）
   ------------------------------------------------------------
   ⚠️ 色は **指示が無ければこれ**（ サイト共通の濃いピンク #e91e63 ／ 影は #c2185b 系 ）。
      イベントのアクセント色（ --event-accent ）や その場限りの薄いピンクに寄せないこと。
      押せるものの見た目をページごとにバラけさせない（ 2026-11-03 の方針 ）。
   ⚠️ ラベルに絵文字アイコンを付けない。
   ⚠️ a に付けるので :link 〜 :active まで色を書く。 書かないと素の a のスタイルに負ける
      （ .char-btn-register と同じ理由 ）。
   ⚠️ ここは **ユーザー側だけ**（ master.blade.php が読む ）。 キャスト側は actor-custom.css。

   使い方:
     <div class="vl-btn-wrap"><a href="..." class="vl-btn">アイテムを購入</a></div>
     <button class="vl-btn">送信する</button>
   ============================================================ */
.vl-btn,
.vl-btn:link,
.vl-btn:visited,
.vl-btn:hover,
.vl-btn:focus,
.vl-btn:active {
    color: #fff;
    text-decoration: none;
}
.vl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    background: #e91e63;
    box-shadow: 0 2px 6px rgba(194, 24, 91, .35);
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition: box-shadow .2s, transform .15s;
}
.vl-btn:hover {
    box-shadow: 0 4px 12px rgba(194, 24, 91, .45);
    transform: translateY(-1px);
}
.vl-btn:active {
    box-shadow: 0 1px 4px rgba(194, 24, 91, .35);
    transform: translateY(1px);
}
.vl-btn:disabled,
.vl-btn.is-disabled {
    opacity: .45;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}
/* 幅いっぱい（ スマホのフォーム下など ） */
.vl-btn--block { display: flex; width: 100%; }
/* 置き場。 中央に置いて 上下の余白をそろえる */
.vl-btn-wrap { margin: 12px 0 2px; text-align: center; }

/* ===== プレゼントダイアログの種別タブ（ イベント / 有料 / 無料 ）=====
   スマホで「イベント」が「イベ／ント」と2行に折り返すのを止める。

   ⚠️ 元の指定は **2タブ前提**。 .box-price_type が width:33%、 中の > div が width:50% で、
      タブが3つになると 50%×3 = 150% が 33% の枠に押し込まれて折り返す。
      （ 「イベント」タブは あとから増えたもの ）
   ⚠️ PC は触らない。 枠が広いぶん1タブあたりの実寸が足りていて、 いま崩れていないため。
   ⚠️ 置き場所がここ（ public/css ）なのはビルド不要だから。 読み込みは
      user/layouts/master.blade.php で、 バンドルより後なので同詳細度で勝つ。 */
@media (max-width: 767px) {
    .box-modal-present .box-price_type {
        width: auto;
        max-width: 92%;
    }
    .box-modal-present .box-price_type > div {
        width: auto;
        flex: 1 1 auto;
        padding: 2px 14px;
        white-space: nowrap;   /* 折り返さない */
    }
}

/* ===== 所持アイテム一覧（ スマホ・VLPt購入ボタンの上 ）=====
   映像の上（ 左端に縦並び ）だと背景やイベント演出（ 焚き火など ）に重なるので、
   スマホでは映像の外へ出す。 縦に積む余裕は無いので **横並び**にする。

   ⚠️ 映像の上のもの（ .chat .box-character .chat-room-presents ）とは別の実体。
      あちらは user/chat/index.blade.php の @media で display:none にしている。
   ⚠️ **色は映像の上とは別物にする**。 .btn-bl は background:rgba(49,49,49,.6)・文字白 で、
      暗い映像の上に乗せる前提の色。 白い帯の上ではそのままだと黒い塊になる。
      枠（ 焚き火メニュー・今日のメッセージ ）と同じ「白地にピンク枠」に揃える。 */
.vl-present-list {
    box-sizing: border-box;
    position: relative;
    width: calc(100% - 16px);
    max-width: 1180px;
    margin: 6px auto 2px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #f5c6d4;
    border-radius: 14px;
    color: #932A7B;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 16px;   /* 個別の枠が無いぶん、 アイテム同士の間を少し広げる */
    cursor: pointer;
}
/* 1つぶん。 枠は外側だけで、 中は素で並べる。
   ⚠️ .btn-bl の暗い背景（ rgba(49,49,49,.6) ）を打ち消すのが要る。 あれは暗い映像の上に
      乗せる前提の色で、 白い帯の上では黒い塊になる（ 詳細度はこちらが上 ） */
.vl-present-list .btn-bl {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0;
    background: none;
    border: none;
}
.vl-present-list .btn-bl .text-name {
    color: #932A7B;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}
.vl-present-list img { width: 30px; height: 30px; }
/* ナビの指。 映像の上のものとは置き方が違うので ここで持つ（ 一覧の右脇に添える ） */
.vl-present-list .vl-present-finger {
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 40px;
    height: 40px;
    pointer-events: none;
}

/* ===== チャットログ（ スマホの広い方・520〜767px ）=====
   この幅だと映像が横に広く、 ログが下半分（ height:50% ）＋横80% のままだと
   余白ばかりで読みにくい。 上まで伸ばし、 横はキャラに掛からないところで折り返す。

   ⚠️ **519px 以下は変えない**。 狭い画面で上まで伸ばすとキャラが隠れてしまうため、
      そこは従来どおり（ 下半分・横80% ）。 下限 520px は そのための線。
   ⚠️ 768px 以上（ PC ）も対象外。 あちらは別レイアウト（ position:relative の段組み ）。
   ⚠️ % ではなく top/bottom で持つ。 高さではなく **上端の位置**を決めたいため。
   ⚠️ ゲーム中の高さ（ .h300 / .h320 ）は詳細度が上なので素通しされる（ 意図的 ）。 */
@media (min-width: 520px) and (max-width: 767px) {
    /* ⚠️ ログを左 56% に広げたぶん、 キャラが吹き出しの裏に回る。 右へ逃がす。
       焚き火の場所かどうかに関係なく効かせる（ 通常の背景でも同じことが起きるため ）。
       焚き火のときは薪の位置に合わせた別ルールが上書きする
       （ .chat.bf-burning .img-character … public/css/bonfire-menu.css・詳細度が上 ）。
       ⚠️ 519px 以下は対象外。 あちらはログが下半分・横80% のままなので寄せる必要がない。 */
    .chat .img-character {
        transform: translateX(16vw);   /* ← 足りなければ増やす／行き過ぎなら減らす */
        transition: transform .3s ease;
    }

    .chat .box-chatlogs {
        /* ⚠️ 0 にしない。 映像の左上には「退出する」ボタンが重なっていて、
           吹き出しが下に潜り込む（ ボタンの高さ＋余白ぶん下げる ） */
        top: 44px;       /* ← まだ掛かるなら増やす／もっと上まで出すなら減らす */
        bottom: 32px;
        height: auto;
        width: 56%;      /* ← 折り返す位置。 キャラに掛かるなら減らす */
    }
}


/* ============================================================
   親密度ゲージ（ 2026-11-22 刷新・仮 ）
   旧: 虹色の画像 gauge_bar.png。 序盤が緑でピンク基調の画面から浮いていた。
   - 通常: ピンク → 濃いピンク（ #e91e63 はサイトのボタン色 ）
   - イベント: 既定は明るいオレンジ → 濃いオレンジ。 extend の gauge_colors で回ごとに変えられる
     （ VLHelper::gaugeStyleVars が style に --g-from / --g-to を出す ）
   ⚠️ background-size は Vue 側（ gaugeStyles ）が 100*100/割合 % で入れている。
      グラデはバー全体の幅で敷かれ、 溜まった所まで見える（ 溜まるほど濃くなる ）。 消さないこと
   ============================================================ */
.gauge.vl-gauge {
    --g-from: #ffb3d1;
    --g-to: #e91e63;
    background-image: linear-gradient(90deg, var(--g-from), var(--g-to)) !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-color: transparent !important;
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .06);
}
.gauge.vl-gauge.vl-gauge--event {
    --g-from: #ffd08a;
    --g-to: #f2711c;
}
/* 土台（ 空の部分 ）。 グレーをやめて ごく薄いピンク。 イベントは薄いオレンジ */
.gauge-area .base:has(> .vl-gauge) {
    background-color: #fbe7ef !important;
    border-radius: 999px;
}
.gauge-area .base:has(> .vl-gauge--event) {
    background-color: #fdf0e1 !important;
}
/* ゲージの太さ（ 元 26px → 11px ／ SP 16px → 6px ）。 Lv の数字画像は元の大きさのまま、 バーを縦中央に置く */
.gauge-area:has(.vl-gauge) {
    align-items: center;
}
.gauge-area .base:has(> .vl-gauge) {
    align-self: center;
}
.gauge-area .base > .gauge.vl-gauge {
    height: 11px !important;
}
@media (max-width: 767px) {
    .gauge-area .base > .gauge.vl-gauge {
        height: 6px !important;
    }
}

/* キャラ詳細のイベント限定親密度（ 開催中 ）。 PC だけ詰めて 2列にする。 SP は触らない */
@media (min-width: 768px) {
    /* ゲージの上の隙間を半分に（ rank_area の margin-top 20px → 10px ） */
    .char-ranking .box-fraborder-color-pink .rank_area.lim-gauge-row { margin-top: 10px !important; }
    /* 獲得Exp の行の上の隙間を半分に（ 8px → 4px ） */
    .char-ranking .box-fraborder-color-pink .point.lim-point-row { margin-top: 4px !important; }
    /* ランキング（左）｜説明（右）。 真ん中に区切り線 */
    .lim-split { display: flex; align-items: center; margin-top: 6px; }
    .lim-split-rank { order: 1; flex: 1 1 50%; padding: 0 12px; }
    .lim-split-desc { order: 2; flex: 1 1 50%; padding: 4px 12px; border-left: 1px solid #f3c1d6; }
    /* 説明だけのとき（ ランキング無しのイベント ）は区切り線を出さない */
    .lim-split-desc:only-child { border-left: none; }
    .lim-split-rank .btn-more-gradipink { width: 90%; }
}
