:root {
    --cloud-connection-element-display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Hiragino Sans', 'Noto Sans CJK JP', sans-serif;
    background: #F6F6F680;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.sp-only {
    display: none;
}
/* ヘッダー */
.header {
    background-color: #000000;
    color: white;
    padding: 12px 20px;
    height: 72px;
    display: flex;
    align-items: center;
    position: relative;
}

.header-top {
    width: 100%;
    padding: 28px;;
    align-items: center;
    position: relative;
}
#logo {
    width: 260px;
    position:absolute;
    top: 50%;
    transform: translateY(-50%);
}
.header h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0, -50%);
}

.header-icon {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    font-size: 12px;
    color: #2c3e50;
    font-weight: 700;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px;
}
 

/* メインコンテンツ */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 72px 20px;
    text-align: center;
}

.main-title {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 34px;
}

.main-subtitle {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

.help-link {
    color: #3498db;
    text-decoration: underline;
    font-size: 16px;
    margin-bottom: 40px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.help-link:hover {
    border-bottom-color: #3498db;
}

/* QRコードエリア */
.qr-container {
    /* QRコンテナのスタイル */
}

.qr-code {
    width: 200px;
    height: 200px;
    border: 3px solid #002050;
    border-radius: 8px;
    background: white;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.qr-placeholder {
    width: 180px;
    height: 180px;
    background: 
        linear-gradient(90deg, #2c3e50 25%, transparent 25%),
        linear-gradient(#2c3e50 25%, transparent 25%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.device-instruction {
    font-size: 14px;
    color: #000000;
    font-weight: 500;
}

/* フッター */
.footer {
    background: white;
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

.copyright {
    font-size: 12px;
    color: #000000;
    font-weight: 400;
}

/* エラーダイアログ */
.error-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.error-dialog {
    background: white;
    border-radius: 8px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.error-dialog-message {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    padding: 30px 30px 20px 30px;
    margin: 0;
}

.error-info-section {
    background: white;
    padding: 0 30px;
    margin: 0;
    border: none;
}

.error-info-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.error-file-list {
    margin: 15px 0;
    padding: 0;
}

.error-file-item {
    font-size: 14px;
    color: #333;
    margin: 5px 0;
    padding: 0;
    overflow-wrap: anywhere;
}

.error-dialog-button-section {
    padding: 20px 30px 30px 30px;
    border-top: 1px solid #e9ecef;
    margin: 20px 0 0 0;
    background: white;
}

.error-dialog-button {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    margin: 0;
}

.error-dialog-button:hover {
    background: #1e40af;
}

/* 接続後画面のスタイル */
.connected-screen {
    flex: 1;
    margin: 16px;
    max-width: 100%;
}

.status-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 12px 24px;
    margin: 0;
    border: none;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #FFFFFF;
}

.status-indicator {
    width: 16px;
    height: 16px;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #FF99A4;
    background: #FF99A4;
    border-radius: 50%;
    padding: 1px;
    color: #000000;
    margin: 1px;
    line-height: 16px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
}
.status-indicator svg {
    display: none;
    width: 12px;
    height: 12px;
}

.status-indicator.connected {
    border: 1px solid #6CCB5F;
    background: #6CCB5F;
}
.status-indicator.connected svg.connected {
    display: block;
}

.status-indicator:not(.connected) svg.disconnected {
    display: block;
}

.connected-title, .disconnected-title {
    font-size: 24px;
    font-weight: 400;
    color: #000000;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
    padding: 0 10px;
}
.connected-title.hidden, .disconnected-title.hidden {
    display: none;
}

.section {
    margin-bottom: 25px;
    max-width: min(498px, 90%);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.section-title {
    font-size: 16px;
    color: #000000;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-update-time {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

#notice {
    font-size: 10px;
    color: #FF0000;
    margin-top: 10px;
    margin-bottom: -8px;
    text-align: left;
}
#notice.hidden {
    display: none;
}
.section-subtitle {
    font-size: 13px;
    color: #000000;
    display: flex;
    align-items: center;
    padding: 16px 4px 8px;
}

.file-select-btn-small {
    background: #FFFFFF;
    color: #000000E4;
    border: 1px solid #00000029;
    width: 116px;
    height: 28px;
    padding: 0px 10px 0px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    position: absolute;
    right: 0;
}
.file-select-btn-small:hover {
    color: #0000009B;
}

.file-limit-text {
    display: block;
}
.file-limit-text-sp {
    display: none;
}
.drag-drop-area {
    text-align: center;
}

/* ファイルリスト表示エリア */
.file-list-area {
    text-align: left;
    pointer-events: auto; /* 親要素のpointer-events: noneを上書き */
}

.drop-message-area {
    text-align: center;
}

.file-section {
    margin-bottom: 15px;
}

.file-section:last-child {
    margin-bottom: 0;
}

.file-item {
    padding: 8px 10px;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    background: transparent;
}

.file-name {
    font-size: 14px;
    color: #000000E4;
    cursor: pointer;
    flex: 1;
    overflow-wrap: anywhere;
    display: flex;
}

.sent-file .file-name {
    color: #666;
}

.sent-file .file-name::before {
    content: "• ";
    margin-right: 5px;
    color: #0000005C;
}

.received-file .file-name::before {
    content: "";
}

.file-buttons {
    display: var(--cloud-connection-element-display);
    gap: 10px;
    margin-top: 15px;
    justify-content: space-between;
}


/* ファイルサイズ上限エラー表示 */
.file-size-warning{
    color: #C42B1C;
    font-size: 10px;
    margin-top: 8px;
}

.file-size-warning.hidden{
    display: none;
}

.file-size-warning-sp{
    color: #C42B1C;
    font-size: 10px;
    line-height: 13px;
    margin-top: 8px;
}

.file-size-warning-sp.hidden{
    display: none;
}

/* PC表示 */
@media (min-width: 769px) {
    .file-size-warning:not(.hidden) {
        display: block;
    }
    
    .file-size-warning-sp {
        display: none !important; /* スマホ版は完全に非表示 */
    }
}

/* スマホ表示 */
@media (max-width: 768px) {
    .file-size-warning {
        display: none !important; /* PC版は完全に非表示 */
    }
    
    .file-size-warning-sp:not(.hidden) {
        display: block;
    }
}

.clipboard-btn {
    background: #FFFFFF;
    border: 1px solid #00000029;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 400;
    width: 28px;
    height: 28px;
    padding: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
}
.clipboard-btn:disabled {
    background: #00000037;
    color: #FFFFFF;
    cursor: not-allowed;
    border: none;
}
.clipboard-btn:disabled svg {
    fill: #FFFFFF;
}
/* テキストボタン */
.text-buttons, .file-buttons {
    display: var(--cloud-connection-element-display);
    gap: 10px;
    margin-top: 8px;
    justify-content: space-between;
}

.text-btn, .file-btn {
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    width: 116px;
    height: 28px;
    background: #002C5E;
    color: white;
    border: 1px solid #00000029;
}
.text-btn:hover, .file-btn:hover {
    background: #054288;
}
.text-btn:disabled, .file-btn:disabled {
    background: #00000037;
    border: none;
    cursor: not-allowed;
}

#deleteBtn {
    background: #FFFFFF;
    color: #000000E4;
    border: 1px solid #00000029;
    width: 116px;
    height: 28px;
    padding: 4px 10px 6px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
}
#deleteBtn:disabled {
    background: #00000037;
    color: white;
    border: none;
    cursor: not-allowed;
}

/* ファイル送信エリア */
.file-upload-area {
    border: 1px dashed #535353;
    border-radius: 4px;
    padding: 16px;
    text-align: center;
    background: #F3F3F3;
    position: relative;
    transition: all 0.3s ease;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: #3498db;
    background: #ebf3fd;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    display: block;
}
.upload-text {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.file-note {
    font-size: 12px;
    color: #000000;
    margin-top: 10px;
}

/* テキスト共有エリア */
.text-share-area {
}

.text-input {
    width: 100%;
    min-height: 120px;
    border: 0.8px solid #9F9F9F;
	background: #F3F3F3;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}

.text-input:focus {
    border-color: #3498db;
}

.text-note {
    font-size: 12px;
    color: #000000;
    margin-top: 8px;
}

.text-counter {
    text-align: right;
    margin-top: 5px;
    margin-bottom: 10px;
}

#textCounter {
    font-size: 12px;
    color: #666;
}

#textCounter.warning {
    color: #ff6b35;
}

#textCounter.error {
    color: #e74c3c;
}

.receive-hint-txt {
    display: var(--cloud-connection-element-display);
    font-weight: 400;
    font-size: 10px;
    line-height: 16px;
    letter-spacing: 0%;
    color: #0000009B;
    margin: 8px 4px;
}
/* 画面切り替え用 */
.screen {
    flex: 1;
    transition: opacity 0.3s ease;
}

.screen.hidden {
    display: none;
}

/* アップロード進捗画面 */
.upload-progress-area {
    border: 1px dashed #535353;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    background: #FAFAFA;
    position: relative;
}

/* データ受信中エリア */
.data-receiving-area {
    min-height: 220px;
    border: 1px dashed #E0E0E0;
    border-radius: 8px;
    padding: 30px 15px;
    text-align: center;
    background: #F8F9FA;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.receiving-status {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.upload-status-text {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.progress-container {
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #E0E0E0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: #007ACC;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}
#fileName {
    overflow-wrap: anywhere;
}
.upload-count {
    font-size: 12px;
    color: #95a5a6;
}

/* 接続方法エリア */
.connection-info-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.connection-info-dialog {
    background: #F3F3F3;
    border-radius: 6px;
    max-width: 588px;
    width: 95%;
    max-height: 90vh;
    padding: 0px 24px 24px 24px;
    overflow-y: auto;
    position: fixed;
    top: 143px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.connection-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative; /* 閉じるボタンの基準位置 */
}

.close-button {
    position:absolute;
    top: 8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #666;
}

.close-button:hover {
    background: #e0e0e0;
}

/* テーブル部分をスクロール可能にする */
.connection-limits {
    position: relative;
    overflow-x: auto; /* 横スクロールを有効 */
}

.limits-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 17px 0;
    font-size: 14px;
    margin-top: 40px;
}

.method-header {
    background: #002C5E;
    color: white;
    font-size: 16px;;
    padding: 6px;
    font-weight: bold;
    text-align: center;
    border: transparent;
    border-radius: 6px 6px 0 0;
}

.method-header.direct {
    position: relative;
}

.method-header.direct::before {
    content: "\\　おすすめ　/";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: transparent;
    color: black;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}

.limit-label,
.limit-label-header {
    width: 116px; /* 幅を116pxに設定 */
    min-width: 116px; /* 最小幅も116pxに設定 */
    max-width: 116px; /* 最大幅も116pxに設定（固定幅） */
}

.limit-label {
    padding: 0;
    vertical-align: top;
    width: 140px;
}

.label-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 12px 8px;
    border-top: #C2C2C2 1px solid;
}

.label-content.hooter {
    padding-bottom: 16px;
}

.label-text {
    font-weight: bold;
    text-align: center;
    line-height: 1.4;
}

.method-description {
    padding: 16px 12px 8px 12px;
    text-align: center;
    vertical-align: top;
    background: white;
    border: 0px;
}

.method-description p{
    padding: 10px 10px;
}

.method-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.device-icons {
    display: flex;
    align-items: center;
}

.method-description p {
    font-size: 12px;
    line-height: 1.3;
    margin: 0;
}

.limit-value {
    text-align: center;
    padding: 12px;
    font-weight: bold;
    background: white;
}

.limit-value{
    position: relative;
}

.limit-value.hooter{
    border-radius: 0 0 6px 6px;
    padding-bottom: 16px;
}

.limit-value:before {
    content: '';
    position: absolute;
    top: 0px;
    left: 25%;   /* 左端25%空ける */
    width: 50%;  /* 幅50% */
    height: 1px;
    background: #ccc;
    border-radius: 0.5px;
}

/* レスポンシブ対応 */
/* タブレット向け（768px以下） */
@media (max-width: 768px) {
    .header h1 {
        font-size: 22px;
    }
    #logo {
        width: 220px;
        position:absolute;
        left: 50%;
        transform: translate(-50%, -100%);
    }

    .header {
        height: 84px;
        padding: 8px 12px;
        flex-direction: column;
        gap: 6px;
        align-items: stretch;
    }
    
    .header-top {
        width: 100%;
        padding: 28px;;
        align-items: center;
        position: relative;
    }
    #logo {
        width: 220px;
        position:absolute;
        left: 50%;
        transform: translate(-50%, -100%);
    }
    .header h1 {
        font-size: 12px;
        font-weight: 700;
        left: 50%;
        transform: translate(-50%, -100%);
    }
    
    .header-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
        transform: translate(0, -100%);
        padding: 6px;
    }
    
    .status-bar {
        position:absolute;
        bottom: 0;
        padding: 12px 24px;
        border-radius: 3px;
        justify-content: center;
        left: 50%;
        transform: translate(-50%, 0);
    }
    
    .status-item {
        font-size: 12px;
        color: #FFFFFF;
        gap: 4px;
    }



    .connected-screen {
        padding: 12px;
    }
    
    .connected-title, .disconnected-title {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .section {
        margin-bottom: 20px;
    }
    .file-limit-text {
        display: none;
    }
    .file-limit-text-sp {
        display: block;
    }
    .file-upload-area {
        padding: 12px 12px;
    }
    
    .upload-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }
    
    .upload-text {
        font-size: 13px;
    }
    
    .text-input {
        min-height: 90px;
        font-size: 13px;
    }

    .data-receiving-area {
        min-height: 192px;
    }

    .upload-progress-area {
        padding: 18px 12px;
    }

    .limits-table {
        font-size: 12px;
    }
    
    .method-header {
        font-size: 14px;;
    }

    .method-description {
        padding: 12px 8px 6px 8px;
    }
    
    .device-icons {
        gap: 6px;
    }
    
    .method-description p {
        font-size: 11px;
    }

    .limit-label,
    .limit-label-header {
        width: 100px; /* モバイルではさらに狭く */
        min-width: 100px;
        max-width: 100px;
    }
    
    .label-content {
        padding: 12px 6px;
    }
    
    .label-text {
        font-size: 12px;
    }

    .method-header.direct::before {
        font-size: 14px;
        top: -24px;
    }
}

/* スマートフォン向け（600px以下） */
@media (max-width: 600px) {
    .sp-only {
        display: block;
    }
    .header {
        height: 84px;
        padding: 8px 12px;
        flex-direction: column;
        gap: 6px;
        align-items: stretch;
    }
    
    .header-top {
        width: 100%;
        padding: 28px;;
        align-items: center;
        position: relative;
    }
    #logo {
        width: 220px;
        position:absolute;
        left: 50%;
        transform: translate(-50%, -100%);
    }
    .header h1 {
        font-size: 12px;
        font-weight: 700;
        left: 50%;
        transform: translate(-50%, -100%);
    }
    
    .header-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
        transform: translate(0, -100%);
        padding: 6px;
    }
    
    .status-bar {
        position:absolute;
        bottom: 0;
        padding: 12px 24px;
        border-radius: 3px;
        justify-content: center;
        left: 50%;
        transform: translate(-50%, 0);
    }
    
    .status-item {
        font-size: 12px;
        color: #FFFFFF;
        gap: 4px;
    }
             
    .main-content {
        padding: 15px 12px;
    }

    .main-title,
    .main-subtitle {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .help-link {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .qr-container {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .device-instruction {
        font-size: 13px;
    }
    
    .connected-screen {
        padding: 10px;
    }
    
    .connected-title, .disconnected-title {
        font-size: 14px;
        margin-bottom: 18px;
        padding: 0 5px;
    }
    
    .section-title {
        font-size: 14px;
    }
   .file-select-btn-small {
        top: 0;
    }
    .text-update-time {
        font-size: 10px;
    }
    .section-subtitle {
        font-size: 10px;    
        justify-content: space-between;
    }

    .file-upload-area {
        padding: 12px 10px;
    }
    
    .upload-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 10px;
    }
    
    .upload-text {
        font-size: 12px;
        margin-bottom: 12px;
    }
    

    .file-note {
        font-size: 11px;
        margin-top: 8px;
    }
    
    .text-input {
        min-height: 80px;
        font-size: 12px;
        padding: 10px;
    }
    
    .text-note {
        font-size: 11px;
        margin-top: 6px;
    }
    
    .data-receiving-area {
        min-height: 167px;
    }

    .upload-progress-area {
        padding: 15px 10px;
    }
    
    .upload-status-text {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .progress-bar {
        height: 5px;
        margin-bottom: 6px;
    }
    
    .file-info {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .footer {
        padding: 15px;
    }
    
    .copyright {
        font-size: 11px;
    }
}

/* 小さなスマートフォン向け（360px以下） */
@media (max-width: 360px) {
    .header {
        padding: 8px 12px;
        flex-direction: column;
        gap: 6px;
        align-items: stretch;
    }
    
    .status-item {
        font-size: 12px;
        color: #FFFFFF !important;
        gap: 4px;
    }
    
    .main-content {
        padding: 12px 10px;
    }
    
    .main-title,
    .main-subtitle {
        font-size: 15px;
    }
    
    .qr-container {
        padding: 12px;
    }
        
    .qr-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .connected-screen {
        padding: 8px;
    }
    
    .connected-title, .disconnected-title {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .file-upload-area {
        padding: 15px 8px;
    }
    
    .upload-text {
        font-size: 11px;
    }
    
    .text-input {
        min-height: 70px;
        font-size: 11px;
        padding: 8px;
    }
}

/* 横向き（ランドスケープ）対応 */
@media (max-height: 600px) and (orientation: landscape) {
    .main-content {
        padding: 10px 15px;
    }
    
    .qr-container {
        margin-bottom: 15px;
    }
    
    .connected-title, .disconnected-title {
        margin-bottom: 15px;
    }
    
    .section {
        margin-bottom: 15px;
    }
    
    .text-input {
        min-height: 60px;
    }

    .connection-info-dialog{
        top: 82px;
    }
}

/* 接続切断時の無効化スタイル */
#connectedScreen.disabled {
    position: relative;
    pointer-events: none;
    user-select: none;
}

#connectedScreen.disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.5);
    z-index: 100;
    pointer-events: none;
}

#connectedScreen.disabled button,
#connectedScreen.disabled input,
#connectedScreen.disabled textarea,
#connectedScreen.disabled select {
    opacity: 0.5;
    cursor: not-allowed;
}

#connectedScreen.disabled .file-item,
#connectedScreen.disabled .text-section {
    opacity: 0.6;
}
