@charset "UTF-8";

table {border-collapse: collapse;border: 1px solid #b3b3b3;width:100%;}
table th {border: 1px solid #b3b3b3;text-align: left;background-color: #fdfbf2;color: #000;padding : 0 4px;font-size:14px;}
table td {border: 1px solid #b3b3b3;}
.num {border-left:none;background-color: #f7f7f7;text-align:center;}
.icon {font-size:20px;text-align:center;}
td > code {font-size:12px;}
.cent, .topth {text-align:center;padding:4px;}
.result {font-size:28px;font-weight:bold;margin:16px 0;}
input[type="number"] {width:10em;font-size:16px;}
#cp-input,#dec-input,#char-input, #start, #end {font-family: "ArticleMono", "ArticleCjk", monospace;font-weight: 400;border: 1px solid #888;border-radius: 4px;padding:2px 4px;font-size:16px;}
#cp-input, #dec-input,#start {margin-bottom:2px;}
#tag-scroll-wrapper {
  width: 100%;
  height: 180px;        
  overflow-x: auto;  
  overflow-y: hidden; 
  border-bottom: 1px solid #ddd;
}
#tag-buttons {
  display: grid;
  grid-auto-flow: column;    
  grid-template-rows: repeat(3, auto); 
  gap: 8px;
  padding: 10px 0;
  width: max-content;        
}
#tag-buttons button {
  flex: 0 0 auto;
  padding: 6px 12px;
  font-size: 16px;
  cursor: pointer;
  text-align:left;
}

.tag-icon {
  font-size: 20px;
  margin-right: 6px;
}
#tag-scroll-wrapper {
  cursor: grab;
}

#tag-scroll-wrapper.dragging {
  cursor: grabbing;
}
.label {padding: 0 8px;}
.clear-btn {
  margin-left: 2px;
}
#convert-result,#status-message {margin-top: 10px; font-size: 18px;font-family:"Yu Gothic Medium","Yu Gothic","Meiryo",sans-serif;}
.memo {font-size: 13px;color: #111;padding: 4px 8px;line-height:1.2;font-family:"Yu Gothic Medium","Yu Gothic","Meiryo",sans-serif;}
.topth {width:3em;}
.memot {text-align:center;}
td.cent {font-size:14px;}
td.cent,
td.num code {
  white-space: break-spaces;
  word-break: break-all;
}
.unicode-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
    font-size: 14px;
}

.unicode-table th {
    background: #fdfbf2;
    text-align: left;
    padding: 4px 8px;
    width: 160px;
    border-bottom: 1px solid #ccc;
}

.unicode-table td {
    padding: 4px 8px;
    border-bottom: 1px solid #ccc;
}
.big-emoji {
    font-size: 32px;
}
.multi-cp-table th,.multi-cp-table td {text-align:center;}
.multi-cp-table th:nth-child(1),
.multi-cp-table td:nth-child(1) {
    max-width: 60px;
}

.multi-cp-table th:nth-child(2),
.multi-cp-table td:nth-child(2) {
    width: 60px;
}
.multi-cp-table td:nth-child(3),
.multi-cp-table td:nth-child(4),
.multi-cp-table td:nth-child(5) {
text-align:left;
padding-left:4%;
}
.big-ch {font-size: 28px; font-family: sans-serif;}
#char-popup {
    position: absolute;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10000;
    border-radius: 6px;
    line-height: 1.4;
    min-width: 150px;
	cursor: default; 
    pointer-events: auto; /* クリックを無視しないようにする */
}
#char-popup div {
    cursor: text; /* テキスト選択できることをユーザーに示す */
}
/* 矢印（吹き出し風にする場合） */
#char-popup::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 20px;
    border: 8px solid transparent;
    border-top-color: #ccc;
}


/* ポップアップ内のテーブル幅を固定 */
#char-popup .unicode-table {
    width: 380px; 
    margin-top: 0;
    border: none;
}
.popup-inner {user-select: text; position: relative;}
.close-btn {position:absolute; right:8px; top:8px;font-size:18px; font-weight:bold; color:#888;width: 28px;height: 28px;}
#char-popup .close-btn:hover {
    color: #333;
    cursor: pointer;
}
.popup-big-ch {padding: 8px;font-size:28px;}
.popup-p {padding: 0 0 0 8px;font-weight:bold;margin-top:0;}
#char-popup .popup-table {
    width: 540px; 
    margin-top: 0;
    border: none;
}
@media screen and (min-width: 768px) {
.label {padding: 0;}
.icon {font-size:32px;}
td > code {font-size:16px;}
td.cent {font-size:16px;}
table th {font-size:16px;padding : 0 8px;}
.topth {width:4em;}
.cent {width:9em;}
.multi-cp-table td:nth-child(3),
.multi-cp-table td:nth-child(4),
.multi-cp-table td:nth-child(5) {
text-align:left;
padding-left:8%;
}
}
@media screen and (max-width: 1023px) {
#char-popup {
        display: none !important;
    }
}