/* =========================================================
   genesis/web-app/styles/page-nongroup.css
   設定ページ（settings.html）などの独立したページ専用スタイル
========================================================= */

/* オリジナルにあった settings.html 固有のクラス */
.alert-non-evm {
    text-align: center;
    font-size: 0.85rem;
    color: var(--danger);
    margin-top: 0px;
    margin-bottom: 12px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px var(--danger-glow);
}

body.lang-ja .alert-non-evm {
    font-family: 'Noto Serif JP', serif;
}

.notice-text {
    color: var(--primary-cyan);
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
}

body.lang-ja .notice-text {
    font-family: 'Noto Serif JP', serif;
}

.sub-notice {
    color: var(--text-main);
    font-size: 1.05rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    font-family: 'Courier New', monospace;
    line-height: 1.8;
}

body.lang-ja .sub-notice {
    font-family: 'Noto Serif JP', serif;
}

.inline-btn-mock {
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.85em;
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    font-weight: bold;
    vertical-align: middle;
    margin: 0 4px;
    pointer-events: none;
}

body.lang-ja .inline-btn-mock {
    font-family: 'Noto Serif JP', serif;
}

.mock-update {
    background: transparent;
    color: #fff;
    border: 1px solid #666;
}

.mock-primary {
    background: transparent;
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan);
}

.section-header {
    font-family: 'Cinzel', serif;
    border-left: 4px solid var(--primary-cyan);
    padding-left: 15px;
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
}

body.lang-ja .section-header {
    font-family: 'Noto Serif JP', serif;
}

.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    border: 1px solid var(--border-dark);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.table-scroll-container {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background: #050505;
}

.table-scroll-container-large {
    max-height: 550px;
}

th {
    position: sticky;
    top: 0;
    background: #111;
    font-family: 'Cinzel', serif;
    color: var(--primary-cyan);
    z-index: 10;
    box-shadow: 0 1px 0 var(--border-dark);
    letter-spacing: 1px;
}

body.lang-ja th {
    font-family: 'Noto Serif JP', serif;
}

input {
    width: 100%;
    padding: 8px;
    background: #111;
    border: 1px solid var(--border-dark);
    color: #fff;
    border-radius: var(--radius);
    box-sizing: border-box;
    outline: none;
    font-family: monospace;
    transition: 0.2s;
}

input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 8px var(--primary-glow);
}

input[readonly] {
    background-color: #080808;
    color: #666;
    cursor: not-allowed;
    border-color: #111;
    text-overflow: ellipsis;
}

.network-card {
    border-top: 2px solid var(--primary-cyan);
}

.network-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    background: #0a0a0a;
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border-dark);
}

.net-info-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
}

.net-input-unit {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.net-input-unit label {
    font-size: 0.75em;
    font-weight: bold;
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
}

body.lang-ja .net-input-unit label {
    font-family: 'Noto Serif JP', serif;
}

.net-input-unit input {
    font-size: 1.1em;
    width: 230px;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-group-network {
    margin-left: 20px;
    margin-bottom: 50px;
}

.btn-update {
    background: transparent;
    color: #fff;
    border: 1px solid #666;
}

.btn-update:hover:not(:disabled) {
    background: #fff;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-reset {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-reset:hover:not(:disabled) {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 0 10px var(--danger-glow);
}

.btn-import {
    background: transparent;
    color: var(--import-color);
    border: 1px solid var(--import-color);
    padding: 6px 12px;
}

.btn-import:hover:not(:disabled) {
    background: var(--import-color);
    color: #000;
    box-shadow: 0 0 10px var(--import-glow);
}

.btn-nav.btn-reset-all {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-nav.btn-reset-all:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
    box-shadow: 0 0 10px var(--danger-glow);
}

.duplicate-error {
    border: 1px solid var(--danger) !important;
    background: rgba(255, 68, 68, 0.1) !important;
}

.code-output {
    background: #050505;
    color: var(--primary-cyan);
    padding: 20px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    white-space: pre-wrap;
    margin-top: 15px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 1);
}

/* =========================================================
   JS内のインラインスタイル（style="..."）排除用ユーティリティ
========================================================= */

.col-w-60 {
    width: 60px;
    min-width: 60px;
}

.col-w-70 {
    width: 70px;
    min-width: 70px;
}

.col-w-80 {
    width: 80px;
    min-width: 80px;
}

.col-w-90 {
    width: 90px;
    min-width: 90px;
}

.col-w-110 {
    width: 110px;
    min-width: 110px;
}

.col-w-120 {
    width: 120px;
    min-width: 120px;
}

.col-w-125 {
    width: 125px;
    min-width: 125px;
}

.col-w-150 {
    width: 150px;
    min-width: 150px;
}

.col-w-200 {
    width: 200px;
    min-width: 200px;
}

.col-w-250 {
    width: 250px;
    min-width: 250px;
}

.flex-row-nowrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 5px;
}

.w-full {
    width: 100%;
}

.text-center {
    text-align: center;
}

.ml-auto {
    margin-left: auto;
}

.mr-2 {
    margin-right: 2px;
}

.flex-col-gap10 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-sm-action {
    padding: 4px 8px;
}

.font-sm {
    font-size: 0.8em;
}

.alert-banner {
    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.2);
    line-height: 1.6;
}

body.lang-ja .alert-banner {
    font-family: 'Noto Serif JP', serif;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-0 {
    margin-top: 0;
}

.p-0 {
    padding: 0;
}

.border-none {
    border: none !important;
}

.opacity-80 {
    opacity: 0.8;
}

/* =========================================================
   advanced-storage.html 専用スタイル
========================================================= */

.container-narrow {
    max-width: 680px;
    padding: 40px;
    background: rgba(10, 15, 12, 0.85);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9), 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.advanced-input-group {
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
}

.advanced-input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-muted);
    text-align: center;
    font-family: 'Cinzel', serif;
}

body.lang-ja .advanced-input-group label {
    font-family: 'Noto Serif JP', serif;
}

.advanced-input-group select {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border-dark);
    box-sizing: border-box;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-cyan);
    background: #050505;
    outline: none;
    text-align: center;
    font-family: 'Cinzel', serif;
    cursor: pointer;
}

.advanced-input-group select:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-glow);
}

.history-item-padded {
    padding: 15px;
}

.page-title-size {
    font-size: 1.5em;
    line-height: 1.3;
}

body.lang-ja .page-title-size {
    font-family: 'Noto Serif JP', serif;
}

.compatibility-info {
    text-align: center;
    font-size: 0.85rem;
    color: var(--danger);
    margin-bottom: 30px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px var(--danger-glow);
}

body.lang-ja .compatibility-info {
    font-family: 'Noto Serif JP', serif;
}

.notice-container {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-dark);
    border-left: 4px solid var(--accent-amber);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: var(--radius);
}

.notice-heading {
    color: var(--accent-amber);
    font-size: 1.2rem;
    font-family: 'Cinzel', serif;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

body.lang-ja .notice-heading {
    font-family: 'Noto Serif JP', serif;
}

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

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

.notice-subheading {
    color: var(--text-main);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    margin-bottom: 5px;
    margin-left: 10px;
}

body.lang-ja .notice-subheading {
    font-family: 'Noto Serif JP', serif;
}

.notice-desc {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-left: 25px;
    line-height: 1.5;
    font-family: 'Courier New', monospace;
}

body.lang-ja .notice-desc {
    font-family: 'Noto Serif JP', serif;
}

.header {
    border-bottom: 1px solid var(--border-dark);
    margin-bottom: 25px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.wallet-info {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--danger);
    text-align: center;
    word-break: break-all;
    margin-bottom: 5px;
    font-family: monospace;
    text-shadow: 0 0 10px var(--danger-glow);
}

.wallet-info.connected {
    color: var(--primary-cyan);
    text-shadow: 0 0 10px var(--primary-glow);
}

.name-setting {
    margin-bottom: 25px;
    background: #050505;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-dark);
}

.name-setting label {
    font-size: 0.85em;
    font-weight: bold;
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

body.lang-ja .name-setting label {
    font-family: 'Noto Serif JP', serif;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.item-card {
    background: var(--card-bg);
    border: 1px solid var(--border-dark);
    padding: 20px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8), 0 4px 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.public-card {
    border-top: 3px solid var(--primary-cyan);
}

.owner-card {
    border-top: 3px solid var(--accent-amber);
}

.label {
    display: inline-block;
    font-size: 0.8em;
    color: #fff;
    padding: 4px 10px;
    border-radius: 2px;
    font-weight: bold;
    margin-bottom: 15px;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

body.lang-ja .label {
    font-family: 'Noto Serif JP', serif;
}

.any-label {
    background: rgba(0, 229, 255, 0.15);
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan);
}

.owner-label {
    background: rgba(230, 171, 8, 0.15);
    color: var(--accent-amber);
    border: 1px solid var(--accent-amber);
}

.display-val {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
    border-left: 3px solid var(--text-muted);
    padding-left: 10px;
    min-height: 1.4em;
    word-break: break-all;
}

.public-card .display-val {
    border-left-color: var(--primary-cyan);
}

.owner-card .display-val {
    border-left-color: var(--accent-amber);
}

.update-info {
    font-size: 0.7em;
    color: var(--text-muted);
    margin-bottom: 15px;
    padding-left: 14px;
    line-height: 1.4;
    min-height: 2.8em;
}

body.lang-ja .update-info {
    font-family: 'Noto Serif JP', serif;
}

input.data-input,
input#userNameInput {
    width: 100%;
    padding: 12px;
    background: #000;
    border: 1px solid var(--border-dark);
    color: #fff;
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-sizing: border-box;
    outline: none;
    font-family: monospace;
    transition: 0.3s;
}

.public-card input.data-input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 8px var(--primary-glow);
}

.owner-card input.data-input:focus {
    border-color: var(--accent-amber);
    box-shadow: 0 0 8px var(--amber-glow);
}

input#userNameInput:focus {
    border-color: #888;
}

.btn-write {
    width: 100%;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: bold;
    background: transparent;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    transition: 0.3s;
    text-transform: uppercase;
}

body.lang-ja .btn-write {
    font-family: 'Noto Serif JP', serif;
}

.public-card .btn-write {
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
}

.public-card .btn-write:hover:not(:disabled) {
    background: var(--primary-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
}

.owner-card .btn-write {
    color: var(--accent-amber);
    border-color: var(--accent-amber);
}

.owner-card .btn-write:hover:not(:disabled) {
    background: var(--accent-amber);
    color: #000;
    box-shadow: 0 0 15px var(--amber-glow);
}

.btn-write:disabled {
    background: #111 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

.history-section {
    margin-top: 40px;
    border-top: 1px solid var(--border-dark);
    padding-top: 25px;
}

.history-title {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--text-main);
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    text-align: center;
}

body.lang-ja .history-title {
    font-family: 'Noto Serif JP', serif;
}

.history-list {
    background: #050505;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 15px;
}

.tag-owner {
    background: rgba(230, 171, 8, 0.1);
    color: var(--accent-amber);
    border: 1px solid var(--accent-amber);
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 0.75em;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tag-public {
    color: var(--primary-cyan);
    font-weight: bold;
}

.history-val {
    font-weight: bold;
    color: #fff;
    font-size: 1.1em;
    margin-top: 5px;
    word-break: break-all;
}

#loadMoreBtn {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background: transparent;
    border: 1px solid #444;
    color: #888;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    transition: 0.3s;
}

body.lang-ja #loadMoreBtn {
    font-family: 'Noto Serif JP', serif;
}

#loadMoreBtn:hover {
    color: #fff;
    border-color: #888;
}

.history-notice {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-dark);
    border-left: 4px solid #444;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: var(--radius);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.history-notice-icon {
    font-size: 1.2em;
}

.history-notice-text {
    margin: 0;
    font-size: 0.85em;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.5;
    font-family: 'Courier New', monospace;
}

body.lang-ja .history-notice-text {
    font-family: 'Noto Serif JP', serif;
}

#log {
    padding: 15px;
    background: #000;
    border: 1px solid var(--border-dark);
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.8em;
    border-radius: var(--radius);
    height: 120px;
    overflow-y: auto;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.card-pending {
    opacity: 0.6;
    pointer-events: none;
}

.text-cyan {
    color: var(--primary-cyan);
}

.history-meta-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.font-mono {
    font-family: monospace;
}

.mb-5 {
    margin-bottom: 5px;
}

.val-owner {
    color: var(--accent-amber);
}

.val-public {
    color: var(--primary-cyan);
}

/* 箱が光るアニメーション */
.flash-cyan {
    animation: neon-glow-cyan 1.5s ease-out forwards;
}

.flash-amber {
    animation: neon-glow-amber 1.5s ease-out forwards;
}

@keyframes neon-glow-cyan {
    0% {
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
        border-color: var(--primary-cyan);
    }

    100% {
        box-shadow: 0 0 0px transparent;
        border-color: var(--border-dark);
    }
}

@keyframes neon-glow-amber {
    0% {
        box-shadow: 0 0 20px rgba(230, 171, 8, 0.6);
        border-color: var(--accent-amber);
    }

    100% {
        box-shadow: 0 0 0px transparent;
        border-color: var(--border-dark);
    }
}