/* --- タブUIスタイル --- */
.ghostgate-tabs {
    margin-top: 20px;
    border-bottom: 2px solid #ccd0d4;
    display: flex;
    gap: 10px;
}

.ghostgate-tab {
    padding: 10px 16px;
    cursor: pointer;
    border: 1px solid #ccd0d4;
    border-bottom: none;
    background: #f1f1f1;
    border-radius: 6px 6px 0 0;
}

.ghostgate-tab.active {
    background: #fff;
    font-weight: bold;
    border-color: #ccd0d4 #ccd0d4 #fff;
}

.ghostgate-tab-content {
    display: none;
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-top: none;
}

.ghostgate-tab-content.active {
    display: block;
}

/* --- レイアウト構造 --- */
.ghostgate-flex-wrap {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.ghostgate-settings-box {
    flex: 2;
}

.ghostgate-setting-card {
    background: #fff;
    border-left: 4px solid #0073aa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.ghostgate-setting-card h3 {
    margin-top: 0;
    font-size: 15px;
    color: #0073aa;
}

.ghostgate-status-box {
    flex: 1;
    background: #f9f9f9;
    border: 1px solid #ccd0d4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* --- バッジ --- */
.ghostgate-badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 0.25em;
    font-size: 0.9em;
    font-weight: bold;
    color: #fff;
}

.ghostgate-badge.success { background-color: #28a745; }
.ghostgate-badge.danger  { background-color: #dc3545; }
.ghostgate-badge.warning { background-color: #ffc107; color: #212529; }

/* --- IPリスト --- */
.ghostgate-ip-list li {
    margin-bottom: 6px;
}

/* --- スイッチUI --- */
.ghostgate-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin: 10px;
}

.ghostgate-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ghostgate-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.ghostgate-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.ghostgate-switch input:checked + .ghostgate-slider {
    background-color: #0073aa;
}

.ghostgate-switch input:checked + .ghostgate-slider:before {
    transform: translateX(26px);
}

/* --- 機能紹介セクション --- */
.ghostgate-feature-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.ghostgate-feature-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px 30px;
    padding: 20px;
    background: #fff;
    border-left: 5px solid #0073aa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
    scroll-margin-top: 100px;
}

.ghostgate-feature-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ghostgate-feature-title {
    font-weight: bold;
    font-size: 15px;
    line-height: 1.5;
    color: #0073aa;
}

.ghostgate-feature-desc {
    font-size: 14px;
    line-height: 1.8;
}

.ghostgate-feature-desc .lead {
    font-weight: bold;
    color: #444;
    margin-bottom: 10px;
    display: block;
}

.ghostgate-toc {
    margin-top: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-left: 5px solid #0073aa;
    border-radius: 8px;
}

.ghostgate-toc a {
    display: inline-block;
    margin-right: 15px;
    text-decoration: none;
    font-weight: bold;
    color: #0073aa;
}

#ghostgate_custom_code_wrap {
  display: none;
}
#ghostgate_custom_code_wrap.visible {
  display: block;
}

.ghostgate-route-label {
  display: block;
  margin: 4px 0;
}
.ghostgate-route-name {
  margin-left: 8px;
}


@media (max-width: 768px) {
    .ghostgate-feature-item {
        grid-template-columns: 1fr;
    }
}

/* ✅ 補助クラス */
.hidden {
    display: none;
}
