/* Path:/css/common/common.css */

@charset "UTF-8";

/* ▼▼▼ タップ操作（サイト共通） ▼▼▼ */
html {
    -webkit-tap-highlight-color: transparent;
}

a,
button,
label,
summary,
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="file"],
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.footer_item,
.share_btn,
[role="button"] {
    transition: opacity 0.12s ease, transform 0.12s ease, background-color 0.12s ease;
}

@media (hover: none) and (pointer: coarse) {
    button:active:not(:disabled),
    input[type="button"]:active:not(:disabled),
    input[type="submit"]:active:not(:disabled),
    input[type="reset"]:active:not(:disabled),
    .footer_item:active,
    .share_btn:active,
    [role="button"]:active {
        opacity: 0.88;
    }

    button:active:not(:disabled),
    .footer_item:active,
    .share_btn:active,
    [role="button"]:active {
        transform: scale(0.98);
    }
}

button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
.footer_item:focus-visible,
.share_btn:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid #9ec5e8;
    outline-offset: 2px;
}

/* ▼▼▼ アイコンシステム（Material SVG 統一） ▼▼▼ */
:root {
    --icon-color-nav: #5a7a96;
    --icon-color-ui: #444444;
    --icon-size-nav: 24px;
    --icon-size-feed: 20px;
    --icon-size-menu: 20px;
}

.ui_icon {
    width: var(--icon-size-menu);
    height: var(--icon-size-menu);
    flex-shrink: 0;
    object-fit: contain;
    vertical-align: middle;
}

.share_btn .ui_icon {
    width: 22px;
    height: 22px;
}

.share_btn.instant .ui_icon {
    filter: brightness(0) invert(1);
}

.share_btn.follow .ui_icon {
    filter: none;
}

.share_btn.danger .ui_icon {
    opacity: 0.9;
}

/* ヘッダー・フッターの基本構造 */
.header_banner {
    width: 100%;
    height: 44px;
    background: #F0F8FF;
    border-bottom: 1px solid #D6EAF8;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    transition: transform 0.6s ease;
}

.header_grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    width: 100%;
}

.grid_item_left { grid-column: 1 / 5; display: flex; align-items: center; padding-left: 15px; gap: 12px; }
.grid_item_center { grid-column: 5 / 9; display: flex; justify-content: center; }
.grid_item_right { grid-column: 9 / 13; display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding-right: 15px; }

/* アイコンサイズ統一 */
.header_banner .user_icon, .header_banner .logo_svg { height: 30px !important; width: auto; object-fit: contain; }
.header_search_icon {
    height: var(--icon-size-nav);
    width: var(--icon-size-nav);
    object-fit: contain;
}

.header_pwa_install_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    line-height: 0;
    color: inherit;
}

.header_pwa_install_btn img {
    display: block;
    border: 0;
    background: transparent;
}

.header_pwa_install_btn:focus,
.header_pwa_install_btn:focus-visible {
    outline: 2px solid #1f6feb;
    outline-offset: 2px;
}

.header_pwa_install_btn[hidden] {
    display: none !important;
}

@media (display-mode: standalone) {
    .header_pwa_install_btn {
        display: none !important;
    }
}

.pwa_install_sheet[hidden] {
    display: none !important;
}

.pwa_install_sheet {
    position: fixed !important;
    inset: 0;
    z-index: 1200;
}

.pwa_install_sheet_backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 30, 40, 0.45);
}

.pwa_install_sheet_panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 520px;
    margin: 0 auto;
    padding: 16px 18px 24px;
    border-radius: 16px 16px 0 0;
    background: #fff;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12);
}

.pwa_install_sheet_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.pwa_install_sheet_title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #334;
}

.pwa_install_sheet_close {
    border: 0 !important;
    border-radius: 999px;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #667;
    min-width: 36px;
    min-height: 36px;
}

.pwa_install_lead,
.pwa_install_sheet_body p,
.pwa_install_note {
    margin: 0 0 10px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #556;
}

.pwa_install_steps_list {
    margin: 0 0 12px;
    padding-left: 1.2em;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #445;
}

.pwa_install_action_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
    border: 0 !important;
    border-radius: 999px !important;
    background: #1f6feb !important;
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
}

.pwa_install_action_btn[hidden] {
    display: none !important;
}

body.pwa-install-sheet-open {
    overflow: hidden;
}

/* フッター */
.footer_banner {
    width: 100%;
    height: 52px;
    background: #F0F8FF;
    border-top: 1px solid #D6EAF8;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    overflow: visible;
    transition: bottom 0.6s ease;
}

/* ▼▼▼ サイト表示広告枠（Phase 3 B・フィードカード間のみ） ▼▼▼ */
.site_ad_slot {
    box-sizing: border-box;
}

.site_ad_slot--feed {
    display: block;
    width: 100%;
    max-width: 720px;
    margin: 10px auto;
    padding: 0 8px;
}

.site_ad_placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 72px;
    padding: 12px 14px;
    border: 1px dashed #c5ced6;
    border-radius: 8px;
    background: #f8fafc;
    color: #6b7785;
    text-align: center;
}

.site_ad_placeholder_label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site_ad_placeholder_hint {
    font-size: 0.72rem;
    color: #8a96a3;
}
/* ▲▲▲ サイト表示広告枠 ▲▲▲ */

.footer_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    align-items: center;
    padding: 0 4px;
    gap: 2px;
    overflow: visible;
}

.footer_item {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2px 4px;
    border: none;
    background: transparent;
    min-width: 0;
    text-decoration: none;
    color: var(--icon-color-nav);
    cursor: pointer;
    border-radius: 8px;
}

.footer_item:focus {
    outline: none;
}

.footer_item:focus-visible {
    outline: 2px solid #9ec5e8;
    outline-offset: 2px;
}

.footer_link:hover {
    opacity: 0.85;
}

.footer_label {
    font-size: 10px;
    line-height: 1.2;
    margin-top: 1px;
    font-weight: 600;
    white-space: nowrap;
}

.footer_item--post {
    justify-self: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1E90FF;
    box-shadow: 0 2px 6px rgba(30, 144, 255, 0.35);
    padding: 0;
}

.footer_item--post img {
    width: 22px;
    height: 22px;
}

.footer_item:not(:last-child) { margin-right: 0; }
.footer_item:last-child { margin-left: 0; }
.footer_item img {
    height: var(--icon-size-nav);
    width: var(--icon-size-nav);
    object-fit: contain;
}

.footer_icon_wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.footer_icon_wrap .notis {
    top: -6px;
    right: -8px;
    background: #E68031;
    color: #fff;
    border-radius: 10px;
    min-width: 20px;
    height: 18px;
    padding: 0 4px;
    font-size: 11px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
    z-index: 1;
}

/* 通知バッジ */
.rel_pos { position: relative; }
.notis {
    position: absolute; top: -5px; right: -10px;
    background: #E68031; color: #FFF; border-radius: 10px;
    min-width: 20px; padding: 0 3px; font-size: 0.8em; font-weight: bold;
}

/* フッター：X風ポップオーバー（背景操作可・フッター直上） */
.footer_menu_wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.footer_menu_wrap .footer_link.is_open {
    opacity: 1;
    background: rgba(214, 234, 248, 0.55);
    box-shadow: inset 0 0 0 1px #b8d4ea;
}

.footer_menu_wrap .footer_link.is_open:focus,
.footer_menu_wrap .footer_link.is_open:focus-visible {
    outline: none;
}

.footer_info_popover {
    position: fixed;
    left: 0;
    bottom: 0;
    max-width: calc(100vw - 24px);
    min-width: min(220px, calc(100vw - 24px));
    width: max-content;
    padding: 6px 0;
    background: #fff;
    color: #333;
    border: 1px solid #D6EAF8;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(90, 122, 150, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 150;
    box-sizing: border-box;
    transform: translateY(6px);
}

.footer_info_popover::after {
    content: '';
    position: absolute;
    left: var(--footer-popover-caret-left, 50%);
    bottom: -7px;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #fff;
    filter: drop-shadow(0 1px 0 #D6EAF8);
}

.footer_info_popover.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.footer_popover_link {
    display: block;
    padding: 12px 16px;
    color: #0068b7;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.footer_popover_link:hover {
    background: #F0F8FF;
}

.footer_popover_link:first-child {
    border-radius: 12px 12px 0 0;
}

.footer_popover_link:last-child {
    border-radius: 0 0 12px 12px;
}

.footer_popover_link:only-child {
    border-radius: 12px;
}

/* スクロール時の非表示クラス */
.hide {
    bottom: -70px !important;
}
.hide_top {
    transform: translateY(-100%) !important;
}

/* サブタブ用の非表示クラス */
.hide_top_2 {
    /* メインヘッダー(44px) ＋ 自分の高さ分、上へ移動して隠れる */
    transform: translateY(calc(-100% - 44px)) !important;
}

/* 第3ヘッダー用の非表示クラス */
.hide_top_3 {
    /* 第1(44px) ＋ 第2(44px) ＝ 88px 分と、自分の高さを足して上へ移動 */
    transform: translateY(calc(-100% - 88px)) !important;
}

/* 静的ページ（規約・プライバシー・通知） */
.legal_page {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 16px 80px;
    color: #333;
    line-height: 1.7;
}

.legal_page h1 {
    font-size: 1.35rem;
    margin: 0 0 16px;
    color: #1a3a52;
}

.legal_page h2 {
    font-size: 1.05rem;
    margin: 24px 0 8px;
    color: #1a3a52;
}

.legal_page p,
.legal_page li {
    font-size: 0.95rem;
}

.legal_page ul {
    padding-left: 1.2em;
}

.legal_notice {
    background: #eef6ff;
    border: 1px solid #cfe3f7;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 0.92rem;
}

/* /about/ — 趣旨説明（薄いランディング） */
.about_page .about_tagline {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #5a7a94;
    letter-spacing: 0.04em;
}

.about_page .about_cta_row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 8px;
}

.about_page .about_cta_row .empty_state_btn {
    margin: 0;
}

.about_page .about_foot {
    margin-top: 32px;
    font-size: 0.85rem;
    color: #888;
}

.about_promo_card {
    max-width: 720px;
    margin: 0 auto 16px;
    padding: 14px 16px;
    background: #f7fbff;
    border: 1px solid #d5e6f5;
    border-radius: 12px;
}

.about_promo_card_title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a3a52;
}

.about_promo_card_lead {
    margin: 0 0 10px;
    font-size: 0.92rem;
    color: #445;
    line-height: 1.6;
}

.about_promo_card_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about_promo_card_actions a {
    font-size: 0.92rem;
}


/* ログインなど認証ページ */
.auth_page_card {
    max-width: 440px;
    text-align: center;
}

.auth_page_card h1 {
    margin-bottom: 8px;
}

.auth_page_lead {
    margin: 0 0 18px;
    font-size: 0.95rem;
    color: #556;
    line-height: 1.55;
}

.auth_page_notice {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f5f8fb;
    border: 1px solid #d6e4f0;
    font-size: 0.9rem;
    color: #334;
    text-align: left;
}

.auth_page_notice--error {
    background: #fff5f5;
    border-color: #f0cfcf;
    color: #8a2f2f;
}

.auth_page_actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
}

.auth_google_btn,
.auth_password_submit {
    max-width: 320px;
    width: 100%;
    font-weight: 600;
}

.auth_password_block {
    margin: 0 0 16px;
    text-align: left;
}

.auth_password_divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: #889;
    font-size: 0.82rem;
}

.auth_password_divider::before,
.auth_password_divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dde5ec;
}

.auth_password_form .contact_form_field {
    text-align: left;
}

.auth_password_submit {
    margin-top: 4px;
}

.auth_page_secondary {
    margin: 12px 0 0;
    font-size: 0.9rem;
    color: #667;
}

.auth_page_secondary a {
    color: #1e90ff;
    text-decoration: none;
}

.auth_page_secondary a:hover {
    text-decoration: underline;
}


.legal_env_banner {
    background: #fff8e8;
    border-color: #f0d9a8;
    color: #5a4a28;
}

.contact_form {
    margin-top: 8px;
}

.contact_form_field {
    margin-bottom: 18px;
}

.contact_form_field label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a3a52;
    margin-bottom: 6px;
}

.contact_form_body {
    min-height: 160px;
    resize: vertical;
}

.contact_form_hint {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
}

.contact_form_recaptcha {
    display: flex;
    justify-content: center;
}

.contact_form_submit {
    width: 100%;
    max-width: 280px;
    margin-top: 8px;
}

.contact_page .post_modal_notice.is_error {
    background: #fff0f0;
    border-color: #f5c2c2;
    color: #a33;
}

.contact_page .post_modal_notice.is_success {
    background: #f0fff4;
    border-color: #b8e6c8;
    color: #26734a;
}

/* ▼▼▼ トップ・検索フィードカード（共通） ▼▼▼ */
.content_list_div {
    box-sizing: border-box;
    margin: 12px 0;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.content_title {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: #222;
    text-decoration: none;
    margin-bottom: 6px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

a.content_title,
a.content_title:visited,
a.content_title:hover {
    color: #222;
    text-decoration: none;
}

a.content_title:active {
    opacity: 0.65;
}

.genre_tag {
    display: flex;
    width: 100%;
    max-width: 100%;
    height: fit-content;
    flex-wrap: wrap;
    justify-content: flex-start;
    font-size: 0.8em;
    color: #666;
    margin-top: 2px;
    box-sizing: border-box;
    min-width: 0;
}

.tag_button,
.genre_button_margin {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 100vh;
    padding: 0 0.65em;
    height: auto;
    min-height: 1.5em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    margin: 4px 3px 0 0;
    align-items: center;
    color: #666;
    background-color: #fff;
}

.genre_button {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    height: fit-content;
    gap: 3px;
    flex-wrap: wrap;
    min-width: 0;
}

.genre_button img,
.genre_icon {
    max-height: 100%;
    height: 1.2em;
    object-fit: cover;
    opacity: 0.75;
}

.fit-content {
    width: fit-content;
    max-width: 100%;
    height: fit-content;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (hover: hover) {
    .tag_button:hover,
    .genre_button_margin:hover {
        background: #f0f4f8;
        cursor: pointer;
    }
}

.tag_button:active,
.genre_button_margin:active {
    background: #e8eef3;
    opacity: 0.85;
}

a.tag_search_link {
    text-decoration: none;
    color: inherit;
}

a.tag_search_link:active {
    opacity: 0.85;
}

a.inherit,
a.inherit:hover,
a.inherit:visited {
    color: inherit;
    text-decoration: none;
}

a.inherit:active {
    opacity: 0.85;
}

/* ▼▼▼ 作品メタ情報のモダンデザイン（共通パーツ） ▼▼▼ */
.works_meta_box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.85em;
    color: #777; /* 文字色を少し薄くして洗練させる */
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.meta_row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px; /* 横の隙間 */
    line-height: 1.4;
    max-width: 100%;
    min-width: 0;
}

.meta_item {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
}

/* ★ フィード内 SVG アイコン（nice / fire / reply / share / schedule / folder 等） */
.feed_icon,
.meta_icon_img,
.meta_icon_img_fire,
.nice_icon_modern {
    width: var(--icon-size-feed);
    height: var(--icon-size-feed);
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
}

.meta_icon_img {
    opacity: 0.4;
}

.meta_icon_img_fire {
    filter: brightness(0) invert(1);
}

/* ★ フィード共通：作者アバター（作品・コメントで30pxに統一） */
.meta_author_icon,
.search_comment_author_icon {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 登録ブックのタグ（ピル型）デザイン */
.book_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
}
.book_tags .book_tags_item {
    display: inline-flex;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
    gap: 2px;
}
.book_tags a {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #F0F4F8;
    color: #0068b7;
    padding: 2px 10px;
    border-radius: 12px; /* 丸っこいピル型に */
    text-decoration: none;
    font-size: 0.9em;
    border: 1px solid #D6EAF8;
    transition: all 0.2s ease;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}
.book_tags a:hover {
    background-color: #D6EAF8;
}
/* PHPで出力されている「,（カンマ）」をCSSの魔法で非表示にする！ */
.book_tags .marginright5 {
    display: none;
}

.book_tags_bookmark_icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    cursor: pointer;
    margin-left: 3px;
    object-fit: contain;
    flex-shrink: 0;
}

.book_tags_bookmark_icon.is_active {
    filter: brightness(0) saturate(100%) invert(76%) sepia(56%) saturate(1595%) hue-rotate(187deg) brightness(104%) contrast(102%);
}

/* 公開範囲・自分の作品/コメントバッジ */
.visibility_badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 8px;
}

.visibility_badge {
    display: inline-block;
    font-size: 0.72em;
    line-height: 1.4;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.visibility_badge_own {
    background: #e8f4fd;
    color: #1e90ff;
}

.visibility_badge_limited {
    background: #f5f0e8;
    color: #b8860b;
}

.collabo_details {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
    font-size: 0.8em;
    max-width: 100%;
    min-width: 0;
}

.collabo_details summary {
    list-style: none;
}

.collabo_details summary::-webkit-details-marker {
    display: none;
}

.collabo_summary {
    cursor: pointer;
    background-color: #F0F4F8;
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 100vh;
    padding: 0 0.5em 0 0.65em;
    min-height: 1.5em;
    margin: 4px 3px 0 0;
    align-items: center;
    gap: 0.35em;
    color: #777;
    user-select: none;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.collabo_details[open] > .collabo_summary {
    background: #e8eef3;
    border-color: #c5d0db;
    color: #555;
}

.collabo_summary_chevron {
    display: inline-block;
    width: 0.45em;
    height: 0.45em;
    border-right: 1.5px solid #888;
    border-bottom: 1.5px solid #888;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -0.15em;
    flex-shrink: 0;
}

.collabo_details[open] .collabo_summary_chevron {
    transform: rotate(-135deg);
    margin-top: 0.1em;
}

.collabo_panel {
    margin-top: 0.5em;
    padding: 0.75em 0.85em;
    background: #f7f8fa;
    border: 1px solid #e4e8ed;
    border-radius: 10px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.collabo_panel_title {
    font-size: 0.95em;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5em;
}

.collabo_pill_list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em;
}

.collabo_pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.2em 0.55em;
    border-radius: 100vh;
    font-size: 0.92em;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.collabo_pill_ok {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.collabo_pill_ok::before {
    content: "✓";
    margin-right: 0.25em;
    font-weight: 700;
    font-size: 0.85em;
}

.collabo_pill_notice {
    background: #fff8e1;
    color: #b8860b;
    border: 1px solid #ffe082;
}

.collabo_note {
    margin-top: 0.65em;
    padding: 0.5em 0.65em;
    background: #fff;
    border: 1px solid #e4e8ed;
    border-radius: 8px;
    font-size: 0.92em;
    color: #666;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.collabo_note_label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: #888;
    margin-bottom: 0.25em;
}

@media (hover: hover) {
    .collabo_summary:hover {
        background: #e8eef3;
        cursor: pointer;
    }
}

.collabo_summary:active {
    background: #dde4ea;
    opacity: 0.85;
    cursor: pointer;
}

.feed_work_card,
.feed_comment_card,
.feed_book_update_card,
.feed_user_card {
    position: relative;
    padding-bottom: 0;
}

.comment_page_thread .feed_comment_card {
    margin-bottom: 0;
}

.comment_page_main {
    max-width: 720px;
    margin: 0 auto;
}

.comment_page_section {
    margin-bottom: 24px;
}

.comment_page_section_title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px 2px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #5f6b7a;
    letter-spacing: 0.02em;
}

.comment_page_section_hint {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9aa3af;
}

.comment_page_section_count {
    display: inline-block;
    padding: 1px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0068b7;
    background: #e8f4fc;
    border-radius: 999px;
}

.comment_page_focus_badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: #0068b7;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.comment_page_thread_rail {
    position: relative;
    margin-left: 6px;
    padding: 4px 0 4px 18px;
    border-left: 2px solid #d6e0ea;
}

.comment_page_thread_rail--replies {
    border-left-color: #b8d4ea;
}

.comment_page_thread_item {
    position: relative;
    margin-bottom: 12px;
}

.comment_page_thread_item:last-child {
    margin-bottom: 0;
}

.comment_page_thread_item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 28px;
    width: 14px;
    height: 2px;
    background: #d6e0ea;
}

.comment_page_thread_rail--replies .comment_page_thread_item::before {
    background: #b8d4ea;
}

.comment_page_spine {
    --thread-inset: 20px;
    --thread-width: 2px;
    position: relative;
    margin-left: 6px;
    padding-left: var(--thread-inset);
}

.comment_page_thread_rail--in-spine {
    position: relative;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
}

.comment_page_thread_rail--in-spine::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--thread-inset));
    top: 0;
    bottom: 0;
    width: var(--thread-width);
    background: #d6e0ea;
}

.comment_page_thread_rail--in-spine .comment_page_thread_item::before {
    left: calc(-1 * var(--thread-inset));
}

.comment_page_section_title--focus {
    margin-top: 4px;
}

.comment_page_spine_tail {
    margin-left: 0;
    padding-left: 0;
}

.comment_page_flow_connector {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
    margin: 0;
}

.comment_page_flow_connector_stem {
    display: block;
    width: var(--thread-width);
    margin-left: calc(-1 * var(--thread-inset));
}

.comment_page_flow_connector_stem--top {
    height: 8px;
    background: linear-gradient(180deg, #d6e0ea 0%, #8ec0e8 100%);
}

.comment_page_flow_connector_chevron {
    position: relative;
    left: 0;
    margin-left: calc(-1 * var(--thread-inset) + var(--thread-width) / 2 - 11px);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #0068b7;
    background: #fff;
    border: 2px solid #0068b7;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 104, 183, 0.12);
}

.comment_page_flow_connector_chevron svg {
    display: block;
    width: 14px;
    height: 14px;
}

.comment_page_card--focus {
    scroll-margin-top: 56px;
    border-color: #0068b7 !important;
    box-shadow: 0 0 0 1px rgba(0, 104, 183, 0.12), 0 4px 14px rgba(0, 104, 183, 0.1) !important;
}

.comment_page_card--ancestor {
    border-color: #e2e8f0;
    background: #fafbfc;
}

.comment_page_card--ancestor .search_comment_body {
    background: #f3f6f9;
}

.comment_page_card--reply {
    border-color: #dce8f2;
}

.comment_page_section--focus .comment_page_card--focus {
    margin-top: 0;
}

.comment_page_section--solo .comment_page_section_title {
    margin-bottom: 12px;
}

.comment_page_login_hint {
    margin: 16px 0 8px;
    padding: 12px 14px;
    font-size: 0.9em;
    color: #666;
    background: #f7f9fb;
    border-radius: 8px;
    line-height: 1.55;
}

.comment_page_login_hint a {
    color: #1E90FF;
    text-decoration: none;
}

.empty_state {
    padding: 24px 16px;
    text-align: center;
    color: #888;
    font-size: 0.95em;
}

.empty_state p {
    margin: 0;
}

.empty_state_title {
    margin: 0 0 8px;
    color: #445;
    font-size: 1rem;
    font-weight: 600;
}

.empty_state_lead {
    margin: 0 0 16px;
    line-height: 1.55;
}

.empty_state_actions {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.empty_state_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 280px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #c5d0da;
    border-radius: 8px;
    background: #fff;
    color: #1a3a52;
    font-size: 0.9rem;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    position: static;
}

a.empty_state_btn,
a.empty_state_btn:visited,
a.empty_state_btn:hover {
    color: #1a3a52;
    text-decoration: none;
}

.empty_state_btn--primary,
a.empty_state_btn--primary,
a.empty_state_btn--primary:visited {
    border-color: #1E90FF;
    background: #1E90FF;
    color: #fff;
}

.empty_state_hint {
    margin: 0;
    font-size: 0.85rem;
    color: #8a96a3;
    line-height: 1.6;
}

.empty_state_hint a,
.empty_state_text_link {
    display: inline;
    color: #1E90FF;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
    text-decoration: none;
    position: static;
}

.empty_state_hint_sep {
    margin: 0 6px;
    color: #c0c8d0;
}

.feed_load_status {
    text-align: center;
    padding: 12px 16px 20px;
    color: #889;
    font-size: 0.85rem;
    line-height: 1.4;
}

.feed_load_status[hidden] {
    display: none !important;
}

.dm_push_nudge {
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid #c5d0da;
    border-radius: 12px;
    background: #f7fbff;
    position: relative;
    z-index: 40;
}

.dm_push_nudge_title {
    margin: 0 0 4px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334;
}

.dm_push_nudge_lead {
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: #667;
    line-height: 1.45;
}

.dm_push_nudge_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dm_push_nudge_actions a,
.dm_push_nudge_actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px !important;
    border: 1px solid #c5d0da !important;
    background: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: #334 !important;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
}

.dm_push_nudge_actions a.dm_push_nudge_primary,
.dm_push_nudge_actions .dm_push_nudge_primary {
    background: #1f6feb !important;
    border-color: #1f6feb !important;
    color: #fff !important;
}

.welcome_card {
    max-width: 720px;
    margin: 0 auto 14px;
    padding: 16px 16px 14px;
    border: 1px solid #cfe3f7;
    border-radius: 12px;
    background: #f5faff;
    color: #334;
}

.welcome_card_title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a3a52;
}

.welcome_card_lead {
    margin: 0 0 12px;
    font-size: 0.92rem;
    color: #5a6a7a;
}

.welcome_card_steps {
    margin: 0 0 14px;
    padding-left: 1.2em;
    font-size: 0.92rem;
    line-height: 1.7;
}

.welcome_card_steps a,
.welcome_card_action {
    color: #1E90FF;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    text-align: left;
}

.welcome_card_dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border: 0;
    border-radius: 8px;
    background: #1E90FF;
    color: #fff;
    font-size: 0.92rem;
    cursor: pointer;
}

.feed_work_card_clickable {
    cursor: pointer;
}

@media (hover: hover) {
    .feed_work_card_clickable:hover {
        border-color: #d6eaf8;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    }
}

.feed_work_card_clickable a,
.feed_work_card_clickable .feed_card_more,
.feed_work_card_clickable .action_badge,
.feed_work_card_clickable .collabo_details,
.feed_work_card_clickable .book_tags_bookmark_icon {
    cursor: pointer;
}

.feed_card_more {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 2;
}

.feed_card_more img {
    width: var(--icon-size-feed);
    height: var(--icon-size-feed);
    opacity: 0.6;
}

.feed_card_more_inline {
    position: static;
    top: auto;
    right: auto;
    margin-left: auto;
    flex-shrink: 0;
    padding: 2px 0 2px 8px;
    line-height: 0;
}

.feed_card_more_inline img {
    display: block;
}

.search_comment_card {
    padding-bottom: 0;
}

.search_comment_author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.search_comment_author strong {
    font-weight: 600;
    color: #222;
}

.works_meta_box > .search_comment_author,
.works_meta_box > .feed_work_author {
    margin-top: 0;
    margin-bottom: 4px;
}

.works_meta_box .feed_work_author {
    gap: 10px;
    flex-wrap: nowrap;
}

.works_meta_box .feed_work_author strong {
    flex: 0 1 auto;
    min-width: 0;
}

.search_comment_date {
    font-size: 0.7em;
    color: #999;
    text-align: right;
    margin-top: 5px;
}

.search_comment_context {
    margin-bottom: 8px;
    font-size: 0.85em;
    color: #888;
}

.search_comment_context .reply_message {
    background: #f0f4f8;
    padding: 6px 10px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.search_comment_context .reply_message a {
    color: #1E90FF;
    text-decoration: none;
}

.search_share_label,
.search_reply_label {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 8px;
}

.search_share_label a,
.search_reply_label a {
    color: inherit;
    text-decoration: none;
}

.search_share_label a:hover,
.search_reply_label a:hover {
    opacity: 0.85;
}

.search_share_quote .search_comment_author a {
    color: inherit;
    text-decoration: none;
}

.search_share_quote .search_comment_author a:hover {
    opacity: 0.85;
}

.search_comment_context .search_share_quote {
    margin: 6px 0 0;
}

.search_comment_body {
    padding: 10px 12px;
    background: #f9f9f9;
    border-radius: 8px;
    line-height: 1.55;
    word-break: break-word;
}

.search_comment_body_muted {
    color: #999;
}

.search_comment_body_link {
    display: block;
    margin: 0 0 8px;
    text-decoration: none;
    color: inherit;
}

.search_comment_body_with_media {
    padding: 8px;
}

.search_comment_body_with_media .timeline_img_container {
    margin-top: 8px;
}

.search_comment_body_with_media .timeline_img_container:first-child {
    margin-top: 0;
}

.search_comment_body_link .timeline_img_container .thumb__items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.search_comment_body_link .timeline_img_container .thumb__items > li {
    flex: 0 1 calc(25% - 6px);
    min-width: 72px;
    cursor: zoom-in;
    position: relative;
}

.search_comment_body_link .timeline_thumb {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    vertical-align: top;
}

.search_share_quote {
    margin: 8px 0;
}

.search_share_quote_inner {
    padding: 8px 10px;
    background: #f7f9fb;
    border-left: 3px solid #d6e0ea;
    border-radius: 0 8px 8px 0;
}

/* コメントカード：返信・シェア時も作者名・アイコン・本文サイズを揃える */
.feed_comment_card .search_comment_context {
    font-size: 1rem;
    color: inherit;
}

.feed_comment_card .search_share_label,
.feed_comment_card .search_reply_label {
    font-size: 1rem;
    color: #708090;
    line-height: 1.4;
}

.feed_comment_card .search_share_quote {
    margin: 8px 0 0;
}

.feed_comment_card .search_share_quote_inner .search_comment_body {
    font-size: 1rem;
    line-height: 1.55;
}

.feed_comment_card .search_share_quote_inner .works_meta_box {
    font-size: 1rem;
    margin-top: 8px;
}

.feed_comment_card .search_share_quote_inner .search_comment_author {
    margin: 8px 0 4px;
}

.feed_comment_card .search_share_quote_inner .search_comment_author strong {
    font-weight: 600;
    color: #222;
}

.feed_comment_card .search_share_quote_inner .meta_row {
    font-size: 0.85rem;
    color: #999;
}

.feed_comment_card .search_share_quote_inner .feed_engagement_row {
    font-size: 0.9rem;
}

.feed_embedded_work_card {
    margin: 0;
    padding: 0;
}

.feed_embedded_work_title {
    display: block;
    font-size: 1em;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    line-height: 1.35;
    margin-bottom: 6px;
}

.feed_embedded_work_title:hover {
    color: #0068b7;
}

.feed_embedded_work_genre {
    margin-bottom: 6px;
}

.feed_embedded_work_meta {
    margin-top: 2px;
    margin-bottom: 4px;
}

.feed_embedded_work_card .feed_engagement_row {
    margin-top: 4px;
}

.share_messeage {
    margin: 8px 0;
    font-size: 0.9em;
}

/* フィード反応バッジ行（作品・コメント共通） */
.feed_engagement_row {
    gap: 10px;
    line-height: 1;
}

.feed_engagement_row .trend_badge,
.feed_engagement_row .nice_badge {
    font-size: 12px;
    padding: 4px 10px;
    gap: 4px;
}

.feed_engagement_row .meta_icon_img_fire,
.feed_engagement_row .nice_icon_modern {
    width: var(--icon-size-feed);
    height: var(--icon-size-feed);
    min-width: var(--icon-size-feed);
    min-height: var(--icon-size-feed);
    flex-shrink: 0;
}

.feed_comment_meta.works_meta_box {
    margin-top: 12px;
}

/* トレンドスコアの光るグラデーションバッジ */
.trend_badge {
    background: linear-gradient(135deg, #ff8059, #ff9f70);
    color: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 4px rgba(255, 107, 107, 0.22);
    line-height: 1;
}

/* いいねバッジ（シンプル枠線） */
.nice_badge {
    background: #f8f9fa;
    color: #555;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.88em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #eee;
    line-height: 1;
}

@keyframes heartBounce {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.nice_active {
    filter: brightness(0) saturate(100%) invert(90%) sepia(92%) saturate(3185%) hue-rotate(284deg) brightness(100%) contrast(97%) !important;
    animation: heartBounce 0.3s ease;
}

.margin_top_5 {
    margin-top: 5px;
}
/* ▲▲▲ ここまで ▲▲▲ */

/* ▼▼▼ クリック可能なアクションバッジ用アニメーション ▼▼▼ */
.action_badge {
    cursor: pointer;
    transition: all 0.2s ease;
}
@media (hover: hover) {
    .action_badge:hover {
        background: #e2e6ea;
        transform: translateY(-2px); /* ホバーで少し浮き上がる */
    }
}
.action_badge:active {
    background: #dae0e5;
    transform: translateY(1px);  /* クリックで沈む */
}
/* ▲▲▲ ここまで ▲▲▲ */

/* ▼▼▼ トップ・検索：ページ背景（左右・ヘッダー下の白抜け防止） ▼▼▼ */
body.feed-page {
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
}

body.feed-page #main_box,
body.feed-page .top_margin,
body.feed-page .content_slider_window,
body.feed-page .content_slider,
body.feed-page #contentlist_box,
body.feed-page #timeline_box,
body.feed-page #new_commlist_box,
body.feed-page #search_list_box_w,
body.feed-page #search_list_box_c,
body.feed-page .search_result_window,
body.feed-page .search_result_slider {
    background-color: #f5f7fa;
}

/* ▼▼▼ トップ・検索：タブ & モーダル（トーン統一） ▼▼▼ */
.content_slide,
.search_result_slide,
#contentslist,
#timelinelist,
#new_commlist,
#search_list_c {
    background: #f5f7fa;
    box-sizing: border-box;
}

.sub_tab_container {
    border-top: 1px solid #e8ecf0;
}

.top_sub_tab,
.header_banner_2,
.sub_tab_container {
    background: #fff;
    border-bottom: 1px solid #e8ecf0;
}

.sub_tab,
.hedder_2_1,
.hedder_2_2,
.hedder_2_3 {
    padding: 11px 0;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sub_tab.active,
.under {
    color: #1E90FF;
    font-weight: 700;
}

.sub_tab_count {
    margin-left: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #1E90FF;
}

.sub_tab:not(.active) .sub_tab_count {
    color: #aaa;
}

.top_active_bar,
.active_bar,
.sub_active_bar {
    height: 2px;
    background: linear-gradient(90deg, #1E90FF, #6ec1ff);
    border-radius: 2px 2px 0 0;
}

.post_modal_overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.post_modal_overlay.show {
    opacity: 1;
    visibility: visible;
}

.post_modal_content {
    background-color: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    transform: translateY(12px);
    transition: transform 0.25s ease;
}

.post_modal_overlay.show .post_modal_content {
    transform: translateY(0);
}

.post_modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f7f9fb;
    border-bottom: 1px solid #e8ecf0;
}

.post_modal_close {
    color: #666;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
}

.post_modal_close:hover {
    color: #333;
}

.post_submit_btn {
    background-color: #1E90FF;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 7px 18px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.post_submit_btn:hover {
    opacity: 0.9;
}

.post_submit_btn:active {
    background-color: #1674cc;
}

.post_modal_body {
    padding: 16px;
}

.post_modal_body_scroll {
    max-height: 70vh;
    overflow-y: auto;
}

.post_textarea {
    width: 100%;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    padding: 12px;
    resize: none;
    font-size: 1em;
    outline: none;
    box-sizing: border-box;
    background: #fff;
    line-height: 1.5;
}

.post_textarea:focus {
    border-color: #9ecbf7;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.12);
}

.post_textarea::placeholder {
    color: #aaa;
}

.post_modal_items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.post_modal_actions_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 12px;
}

.post_pict_add_space {
    margin-top: 15px;
}

.post_drop_zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    width: 100%;
    min-height: 100px;
    padding: 24px 16px;
    border: 2px dashed #d6e0ea;
    border-radius: 12px;
    background: #f7f9fb;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.post_drop_zone:hover {
    border-color: #9eb8e8;
    background: #eef5ff;
}

.post_drop_zone.is-dragover {
    border-color: #7aa3e8;
    background: #eef5ff;
}

.post_drop_zone input[type="file"] {
    display: none;
}

.post_drop_zone_title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.post_drop_zone_sub {
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.5;
}

.share_menu_content {
    max-width: 360px !important;
    text-align: center;
    padding: 20px !important;
    border-radius: 16px !important;
}

.share_menu_content.report_modal_content {
    max-width: 400px !important;
}

.share_menu_header h3 {
    margin: 0 0 16px;
    font-size: 1.05em;
    color: #333;
    font-weight: 700;
}

.share_menu_body {
    text-align: center;
}

.share_menu_body_left {
    text-align: left;
}

.share_menu_footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8ecf0;
}

.share_menu_hint {
    font-size: 0.9em;
    color: #666;
    margin: 0 0 10px;
}

.share_menu_warning {
    font-size: 0.8em;
    color: #c0392b;
    margin: 0 0 5px;
}

.share_menu_section {
    margin-top: 15px;
}

.share_menu_section_center {
    margin-top: 15px;
    text-align: center;
}

.ui_state_message {
    padding: 20px;
    color: #888;
    font-size: 0.9em;
}

.ui_state_error {
    padding: 20px;
    color: #c0392b;
    font-size: 0.9em;
}

.share_btn {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
    transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.share_btn:last-child {
    margin-bottom: 0;
}

.share_btn.instant {
    background: linear-gradient(135deg, #3ecf7a, #2fb86a);
    color: #fff;
}

.share_btn.share_btn_disabled,
.share_btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.share_btn.follow {
    background: #1E90FF;
    color: #fff;
}

.share_btn.quote,
.share_btn.media,
.share_btn.camera {
    background: #f0f4f8;
    color: #444;
    border-color: #e8ecf0;
}

.share_btn.warning {
    background: #fff8e1;
    color: #b8860b;
    border-color: #ffe082;
}

.share_btn.danger {
    background: #fff5f5;
    color: #c0392b;
    border-color: #f5c6cb;
}

.share_btn.report_submit {
    margin-top: 20px;
}

.share_menu_row {
    display: flex;
    gap: 10px;
}

.share_menu_row .share_btn {
    margin-bottom: 0;
}

.share_menu_row .share_btn.media,
.share_menu_row .share_btn.camera {
    flex: 1;
}

.share_btn img {
    height: 22px;
    width: 22px;
    vertical-align: middle;
    object-fit: contain;
}

.share_btn:active {
    opacity: 0.85;
    transform: scale(0.98);
}

.post_select {
    height: auto;
    padding: 10px 12px;
}

.post_input {
    height: auto;
    padding: 10px 12px;
}

/* 画像ライトボックス（トップ・検索共通トーン） */
.image_lightbox {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background-color: rgba(15, 23, 42, 0.92);
    z-index: 2147483647;
}

.image_lightbox.is_open {
    display: block;
}

.image_lightbox_track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    width: 100%;
}

.image_lightbox_track::-webkit-scrollbar {
    display: none;
}

.image_lightbox_close {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 2147483648;
    cursor: pointer;
}

.image_lightbox_close img {
    height: 35px;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.8));
}

.modal-overlay {
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

#flalauz_dialog_modal,
.image_lightbox_dialog {
    padding: 0;
    margin: 0;
    border: none;
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    background-color: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow: hidden;
}
/* ▲▲▲ タブ & モーダルここまで ▲▲▲ */

/* ▼▼▼ インライン通知・確認・トースト ▼▼▼ */
.post_modal_notice {
    display: none;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9em;
    line-height: 1.5;
}

.post_modal_notice.is_visible {
    display: block;
}

.post_modal_notice.error {
    background: #fff5f5;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.post_modal_notice.success {
    background: #eefbf3;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.ui_confirm_modal {
    z-index: 1100;
}

.ui_confirm_content {
    max-width: 360px !important;
}

.ui_confirm_actions .share_btn {
    margin-bottom: 0;
}

.ui_toast_container {
    position: fixed;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(92vw, 420px);
    pointer-events: none;
}

.ui_toast {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.92em;
    line-height: 1.45;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ui_toast.is_visible {
    opacity: 1;
    transform: translateY(0);
}

.ui_toast_info {
    background: #f0f4f8;
    color: #444;
    border-color: #e8ecf0;
}

.ui_toast_success {
    background: #eefbf3;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.ui_toast_error {
    background: #fff5f5;
    color: #c0392b;
    border-color: #f5c6cb;
}
/* ▲▲▲ インライン通知・確認・トーストここまで ▲▲▲ */

/* ▼▼▼ PWA 更新バナー ▼▼▼ */
.pwa_update_banner {
    position: fixed;
    left: 50%;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 1100;
    width: min(92vw, 420px);
    padding: 12px 14px;
    border-radius: 12px;
    background: #0f172a;
    color: #f8fafc;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pwa_update_banner[hidden] {
    display: none !important;
}

.pwa_update_banner_text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.pwa_update_banner_actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pwa_update_banner_btn {
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    background: #00aeff;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
}

.pwa_update_banner_dismiss {
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px 10px;
}
/* ▲▲▲ PWA 更新バナー ▲▲▲ */
