/* src/public/css/json-table.css */

.jt-zone {
    display: flex;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.jt-col {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}
.jt-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.jt-col-title {
    font-size: 1.05rem;
    color: #2a5298;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ツールバー（text-counter.css と同じ見た目のボタン） */
.toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-tool {
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    color: #475569;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-tool:hover { background: #e2e8f0; }
.btn-danger { color: #ef4444; border-color: #fca5a5; }
.btn-danger:hover { background: #fee2e2; }

/* 入力・出力の文字欄 */
.jt-textarea {
    flex: 1;
    min-height: 320px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.jt-textarea:focus { border-color: #3498db; }

/* 中央の変換コントロール */
.jt-controls {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    min-width: 190px;
    padding: 10px 4px;
}
.jt-convert-btn {
    padding: 12px 14px;
    background: #2a5298;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}
.jt-convert-btn:hover { background: #1e3c72; }

.jt-format {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
}
.jt-format-label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #64748b;
}
.jt-format select {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #22303f;
    font-size: 0.85rem;
    outline: none;
}
.jt-format select:focus { border-color: #2a5298; }

.privacy-note {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.6;
    margin-top: 18px;
}

/* トースト通知 */
.toast-area {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast-msg {
    background: rgba(30, 41, 59, 0.9);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.toast-msg.show {
    opacity: 1;
    transform: translateY(0);
}

/* 📱 スマホ・タブレット（iPad含む）レスポンシブ対応 */
@media (max-width: 900px) {
    .jt-zone { flex-direction: column; }
    .jt-col, .jt-controls { width: 100%; min-width: 100%; }
    .jt-controls { flex-direction: row; align-items: center; padding: 4px 0; }
    .jt-convert-btn { flex: 1; }
    .jt-format { flex: 1; }
}
@media (max-width: 560px) {
    .jt-controls { flex-direction: column; }
    .toolbar { flex-direction: column; gap: 8px; }
    .btn-tool { width: 100%; justify-content: center; padding: 12px; }
}
