/* IPアドレス確認ツール専用スタイル */

.subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* メインIPアドレス表示セクション */
.ip-main-section {
    margin-bottom: 3rem;
}

.ip-main-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ip-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

/* ローディング状態 */
.ip-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: #64748b;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* IP表示 */
.ip-display {
    margin-bottom: 2rem;
}

.ip-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.ip-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ip-text {
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e293b;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.copy-btn {
    padding: 0.75rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.copy-btn:hover .copy-icon {
    stroke: white;
}

.copy-btn.copied {
    background: #10b981;
    border-color: #10b981;
}

.copy-btn.copied .copy-icon {
    stroke: white;
}

.copy-icon {
    width: 20px;
    height: 20px;
    stroke: #64748b;
    transition: all 0.3s ease;
}

.copy-icon.success {
    stroke: white;
}

.ip-type {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ip-type.ipv4 {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.ip-type.ipv6 {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

/* リフレッシュセクション */
.refresh-section {
    margin-top: 1.5rem;
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.refresh-icon {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.refresh-icon.spinning {
    animation: spin 1s linear infinite;
}

/* エラー表示 */
.ip-error {
    text-align: center;
    color: #dc2626;
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.error-icon {
    width: 48px;
    height: 48px;
    stroke: #dc2626;
}

.retry-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

/* 詳細情報セクション */
.details-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #334155;
    text-align: center;
    margin-bottom: 2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.detail-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.detail-icon {
    width: 24px;
    height: 24px;
    stroke: #3b82f6;
    flex-shrink: 0;
}

.detail-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.875rem;
    min-width: 100px;
}

.detail-value {
    color: #1e293b;
    font-weight: 500;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

/* セキュリティバッジ */
.security-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.security-badge.safe {
    background: #dcfce7;
    color: #166534;
}

.security-badge.detected {
    background: #fee2e2;
    color: #991b1b;
}

.security-badge.unknown {
    background: #f3f4f6;
    color: #6b7280;
}

/* 使い方説明セクション */
.usage-section {
    margin: 3rem 0;
}

.usage-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3b82f6;
}

.usage-steps {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.25rem 0;
}

.step-content p {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.feature-list, .use-cases {
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1.5rem;
}

.feature-list h4, .use-cases h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
}

.feature-list ul, .use-cases ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.feature-list li, .use-cases li {
    color: #6b7280;
    line-height: 1.5;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .subtitle {
        font-size: 1rem;
    }
    
    .ip-main-card {
        padding: 2rem 1.5rem;
    }
    
    .ip-text {
        font-size: 2rem;
    }
    
    .ip-address {
        flex-direction: column;
        gap: 1rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-card {
        padding: 1.5rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .detail-label {
        min-width: auto;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    .usage-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ip-text {
        font-size: 1.5rem;
    }
    
    .copy-btn {
        padding: 0.5rem;
    }
    
    .copy-icon {
        width: 16px;
        height: 16px;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-card {
    animation: fadeIn 0.5s ease-out;
}

.ip-result {
    animation: fadeIn 0.5s ease-out;
}