
/* ------------------------------------------------------------------- */
/* 記号一覧（コピペ用） /symbols/（2026-10-25） */

.sym-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.6rem 0;
}
.sym-tab {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border: 2px solid #ced4da;
    border-radius: 100vh;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-family: inherit;
}
.sym-tab:hover {
    background: #f3f3f3;
}
.sym-tab.active {
    background: var(--capital-color);
    border-color: var(--capital-color);
    font-weight: bold;
}
.sym-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.3rem 1rem;
    min-height: 1.8rem;
    margin: 0.4rem 0;
}
.sym-count {
    font-size: 0.9rem;
    color: #666;
}
.sym-status {
    font-size: 0.9rem;
    font-weight: bold;
    color: #1b5e20;
    background: #edf7ee;
    border-radius: 100vh;
    padding: 0.15rem 0.9rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.sym-status.show {
    opacity: 1;
}
.sym-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(3.1rem, 1fr));
    gap: 0.35rem;
    max-height: 26rem;
    overflow-y: auto;
    padding: 0.4rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.3rem;
    background: #fafafa;
}
.sym-grid.sym-grid-all {
    max-height: none;
    overflow-y: visible;
}
.sym-group-title {
    grid-column: 1 / -1;
    margin: 0.8rem 0 0.1rem;
    padding-bottom: 0.2rem;
    font-size: 1rem;
    font-weight: bold;
    border-bottom: 2px solid var(--capital-color);
}
.sym-group-title:first-child {
    margin-top: 0.1rem;
}
.sym-btn {
    min-height: 3.1rem;
    padding: 0.1rem;
    font-size: 1.5rem;
    line-height: 1.2;
    border: 1px solid #d5d5d5;
    border-radius: 0.3rem;
    background: #fff;
    color: #222;
    cursor: pointer;
    font-family: "Segoe UI Symbol", "Apple Symbols", "Hiragino Sans", "Yu Gothic UI", "Noto Sans Symbols 2", "Noto Sans Symbols", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    word-break: keep-all;
}
.sym-btn:hover, .sym-btn:focus-visible {
    background: var(--capital-color);
    border-color: var(--capital-color);
    outline: none;
}
.sym-btn:active {
    transform: scale(0.94);
}
.sym-btn.sym-wide {
    grid-column: span 2;
    font-size: 1.1rem;
}
.sym-btn.sym-ph {
    font-size: 0.72rem;
    color: #666;
    background: #f4f4f4;
    border-style: dashed;
}
.sym-empty {
    grid-column: 1 / -1;
    margin: 0.6rem 0;
    color: #666;
}
.sym-detail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 52rem;
    margin: 0 auto;
    padding: 1rem 3rem 1rem 1.2rem;
    border: 1px solid #d0d0d0;
    border-bottom: none;
    border-radius: 0.8rem 0.8rem 0 0;
    background: #fff;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
    max-height: 70vh;
    overflow-y: auto;
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
}
.sym-detail.open {
    transform: translateY(0);
    visibility: visible;
}
body.sym-sheet-open {
    padding-bottom: 11rem;
}
.sym-sheet-close {
    position: absolute;
    top: 0.4rem;
    right: 0.6rem;
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.sym-sheet-close:hover {
    background: #ddd;
}
.sym-detail-actions {
    margin: 0.3rem 0 0.5rem;
}
.sym-detail-char {
    flex: 0 0 4.5rem;
    text-align: center;
    font-size: 2.8rem;
    line-height: 1.2;
    font-family: "Segoe UI Symbol", "Apple Symbols", "Hiragino Sans", "Yu Gothic UI", "Noto Sans Symbols 2", "Noto Sans Symbols", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    word-break: break-all;
}
.sym-detail-body {
    flex: 1;
    min-width: 0;
}
.sym-detail-name {
    font-weight: bold;
}
.sym-detail-cat {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.3rem;
}
.sym-codes {
    border-collapse: collapse;
    font-size: 0.85rem;
}
.sym-codes th {
    padding: 0.1rem 0.6rem 0.1rem 0;
    text-align: left;
    font-weight: normal;
    color: #666;
    white-space: nowrap;
}
.sym-codes td {
    padding: 0.1rem 0.5rem 0.1rem 0;
    word-break: break-all;
}
.sym-box-count {
    align-self: center;
    font-size: 0.9rem;
    color: #666;
}
@media screen and (max-width: 480px) {
    .sym-grid {
        grid-template-columns: repeat(auto-fill, minmax(2.8rem, 1fr));
        max-height: 22rem;
    }
    .sym-detail {
        flex-direction: column;
        align-items: flex-start;
    }
    .sym-detail-char {
        flex-basis: auto;
        text-align: left;
    }
}
